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 libwebp 1.5.0.
4 #
5 # Report bugs to <https://issues.webmproject.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://issues.webmproject.org about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libwebp'
623 PACKAGE_TARNAME='libwebp'
624 PACKAGE_VERSION='1.5.0'
625 PACKAGE_STRING='libwebp 1.5.0'
626 PACKAGE_BUGREPORT='https://issues.webmproject.org'
627 PACKAGE_URL='https://developers.google.com/speed/webp'
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 webp_libname_prefix
666 USE_SWAP_16BIT_CSP
667 BUILD_WEBPINFO_FALSE
668 BUILD_WEBPINFO_TRUE
669 BUILD_IMG2WEBP_FALSE
670 BUILD_IMG2WEBP_TRUE
671 BUILD_GIF2WEBP_FALSE
672 BUILD_GIF2WEBP_TRUE
673 BUILD_ANIMDIFF_FALSE
674 BUILD_ANIMDIFF_TRUE
675 GIF_INCLUDES
676 GIF_LIBS
677 TIFF_INCLUDES
678 TIFF_LIBS
679 JPEG_INCLUDES
680 JPEG_LIBS
681 PNG_INCLUDES
682 PNG_LIBS
683 LIBPNG_CONFIG
684 BUILD_VWEBP_SDL_FALSE
685 BUILD_VWEBP_SDL_TRUE
686 SDL_INCLUDES
687 SDL_LIBS
688 LIBSDL_CONFIG
689 BUILD_VWEBP_FALSE
690 BUILD_VWEBP_TRUE
691 GL_INCLUDES
692 GL_LIBS
693 PTHREAD_CFLAGS
694 PTHREAD_LIBS
695 PTHREAD_CC
696 ax_pthread_config
697 NEON_FLAGS
698 SSE2_FLAGS
699 SSE41_FLAGS
700 AM_CFLAGS
701 pkgconfigdir
702 AM_CPPFLAGS
703 BUILD_EXTRAS_FALSE
704 BUILD_EXTRAS_TRUE
705 BUILD_LIBWEBPDECODER_FALSE
706 BUILD_LIBWEBPDECODER_TRUE
707 BUILD_DEMUX_FALSE
708 BUILD_DEMUX_TRUE
709 BUILD_MUX_FALSE
710 BUILD_MUX_TRUE
711 LT_SYS_LIBRARY_PATH
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 MANIFEST_TOOL
718 RANLIB
719 DLLTOOL
720 OBJDUMP
721 FILECMD
722 LN_S
723 NM
724 ac_ct_DUMPBIN
725 DUMPBIN
726 LD
727 FGREP
728 EGREP
729 GREP
730 SED
731 LIBTOOL
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 ac_ct_AR
749 AR
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 CSCOPE
755 ETAGS
756 CTAGS
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 runstatedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL
827 am__quote'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_dependency_tracking
833 enable_shared
834 enable_static
835 with_pic
836 enable_fast_install
837 with_aix_soname
838 with_gnu_ld
839 with_sysroot
840 enable_libtool_lock
841 enable_everything
842 enable_libwebpmux
843 enable_libwebpdemux
844 enable_libwebpdecoder
845 enable_libwebpextras
846 enable_asserts
847 with_pkgconfigdir
848 enable_sse4_1
849 enable_sse2
850 enable_neon
851 enable_neon_rtcd
852 enable_threading
853 enable_gl
854 with_glincludedir
855 with_gllibdir
856 enable_sdl
857 with_sdlincludedir
858 with_sdllibdir
859 enable_png
860 with_pngincludedir
861 with_pnglibdir
862 enable_jpeg
863 with_jpegincludedir
864 with_jpeglibdir
865 enable_tiff
866 with_tiffincludedir
867 with_tifflibdir
868 enable_gif
869 with_gifincludedir
870 with_giflibdir
871 enable_wic
872 enable_swap_16bit_csp
873 enable_near_lossless
874 '
875 ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 LT_SYS_LIBRARY_PATH'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 runstatedir='${localstatedir}/run'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
960
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
965
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
975
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
980
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
987
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: \`$ac_useropt'"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1013
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -runstatedir | --runstatedir | --runstatedi | --runstated \
1174 | --runstate | --runstat | --runsta | --runst | --runs \
1175 | --run | --ru | --r)
1176 ac_prev=runstatedir ;;
1177 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179 | --run=* | --ru=* | --r=*)
1180 runstatedir=$ac_optarg ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: \`$ac_useropt'"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir runstatedir
1320 do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 printf "%s\n" X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397 else
1398 ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures libwebp 1.5.0 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/libwebp]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of libwebp 1.5.0:";;
1504 esac
1505 cat <<\_ACEOF
1506
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-silent-rules less verbose build output (undo: "make V=1")
1512 --disable-silent-rules verbose build output (undo: "make V=0")
1513 --enable-dependency-tracking
1514 do not reject slow dependency extractors
1515 --disable-dependency-tracking
1516 speeds up one-time build
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --enable-everything Enable all optional targets. These can still be
1523 disabled with --disable-target
1524 --disable-libwebpmux Disable libwebpmux [default=no]
1525 --disable-libwebpdemux Disable libwebpdemux [default=no]
1526 --enable-libwebpdecoder Build libwebpdecoder [default=no]
1527 --enable-libwebpextras Build libwebpextras [default=no]
1528 --enable-asserts Enable assert checks
1529 --disable-sse4.1 Disable detection of SSE4.1 support [default=auto]
1530 --disable-sse2 Disable detection of SSE2 support [default=auto]
1531 --disable-neon Disable detection of NEON support [default=auto]
1532 --disable-neon-rtcd Disable runtime detection of NEON support via
1533 /proc/cpuinfo on Linux hosts [default=auto]
1534 --disable-threading Disable detection of thread support
1535 --disable-gl Disable detection of OpenGL support [default=auto]
1536 --disable-sdl Disable detection of SDL support [default=auto]
1537 --disable-png Disable detection of PNG format support
1538 [default=auto]
1539 --disable-jpeg Disable detection of JPEG format support
1540 [default=auto]
1541 --disable-tiff Disable detection of TIFF format support
1542 [default=auto]
1543 --disable-gif Disable detection of GIF format support
1544 [default=auto]
1545 --disable-wic Disable Windows Imaging Component (WIC) detection.
1546 [default=auto]
1547 --enable-swap-16bit-csp Enable byte swap for 16 bit colorspaces
1548 --disable-near-lossless Disable near lossless encoding
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-aix-soname=aix|svr4|both
1556 shared library versioning (aka "SONAME") variant to
1557 provide on AIX, [default=aix].
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
1561 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1562 --with-glincludedir=DIR use GL includes from DIR
1563 --with-gllibdir=DIR use GL libraries from DIR
1564 --with-sdlincludedir=DIR
1565 use SDL includes from DIR
1566 --with-sdllibdir=DIR use SDL libraries from DIR
1567 --with-pngincludedir=DIR
1568 use PNG includes from DIR
1569 --with-pnglibdir=DIR use PNG libraries from DIR
1570 --with-jpegincludedir=DIR
1571 use JPEG includes from DIR
1572 --with-jpeglibdir=DIR use JPEG libraries from DIR
1573 --with-tiffincludedir=DIR
1574 use TIFF includes from DIR
1575 --with-tifflibdir=DIR use TIFF libraries from DIR
1576 --with-gifincludedir=DIR
1577 use GIF includes from DIR
1578 --with-giflibdir=DIR use GIF libraries from DIR
1579
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 LT_SYS_LIBRARY_PATH
1589 User-defined run-time library search path.
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <https://issues.webmproject.org>.
1595 libwebp home page: <https://developers.google.com/speed/webp>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for configure.gnu first; this name is used for a wrapper for
1642 # Metaconfig's "Configure" on case-insensitive file systems.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 libwebp configure 1.5.0
1660 generated by GNU Autoconf 2.71
1661
1662 Copyright (C) 2021 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext
1699 then :
1700 ac_retval=0
1701 else $as_nop
1702 printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 printf "%s\n" "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 test -x conftest$ac_exeext
1740 }
1741 then :
1742 ac_retval=0
1743 else $as_nop
1744 printf "%s\n" "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748 fi
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_link
1758
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 printf %s "checking for $2... " >&6; }
1768 if eval test \${$3+y}
1769 then :
1770 printf %s "(cached) " >&6
1771 else $as_nop
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"
1778 then :
1779 eval "$3=yes"
1780 else $as_nop
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 printf "%s\n" "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1808 #define $2 innocuous_$2
1809
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $2 (); below. */
1812
1813 #include <limits.h>
1814 #undef $2
1815
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1829
1830 int
1831 main (void)
1832 {
1833 return $2 ();
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"
1839 then :
1840 eval "$3=yes"
1841 else $as_nop
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1845 conftest$ac_exeext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 printf "%s\n" "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_func
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1857 # executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 printf "%s\n" "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 printf "%s\n" "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }
1882 then :
1883 ac_retval=0
1884 else $as_nop
1885 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1886 printf "%s\n" "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890 fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895 } # ac_fn_c_try_run
1896 ac_configure_args_raw=
1897 for ac_arg
1898 do
1899 case $ac_arg in
1900 *\'*)
1901 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 esac
1903 as_fn_append ac_configure_args_raw " '$ac_arg'"
1904 done
1905
1906 case $ac_configure_args_raw in
1907 *$as_nl*)
1908 ac_safe_unquote= ;;
1909 *)
1910 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1911 ac_unsafe_a="$ac_unsafe_z#~"
1912 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1913 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1914 esac
1915
1916 cat >config.log <<_ACEOF
1917 This file contains any messages produced by compilers while
1918 running configure, to aid debugging if configure makes a mistake.
1919
1920 It was created by libwebp $as_me 1.5.0, which was
1921 generated by GNU Autoconf 2.71. Invocation command line was
1922
1923 $ $0$ac_configure_args_raw
1924
1925 _ACEOF
1926 exec 5>>config.log
1927 {
1928 cat <<_ASUNAME
1929 ## --------- ##
1930 ## Platform. ##
1931 ## --------- ##
1932
1933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941
1942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949
1950 _ASUNAME
1951
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 case $as_dir in #(((
1957 '') as_dir=./ ;;
1958 */) ;;
1959 *) as_dir=$as_dir/ ;;
1960 esac
1961 printf "%s\n" "PATH: $as_dir"
1962 done
1963 IFS=$as_save_IFS
1964
1965 } >&5
1966
1967 cat >&5 <<_ACEOF
1968
1969
1970 ## ----------- ##
1971 ## Core tests. ##
1972 ## ----------- ##
1973
1974 _ACEOF
1975
1976
1977 # Keep a trace of the command line.
1978 # Strip out --no-create and --no-recursion so they do not pile up.
1979 # Strip out --silent because we don't want to record it for future runs.
1980 # Also quote any args containing shell meta-characters.
1981 # Make two passes to allow for proper duplicate-argument suppression.
1982 ac_configure_args=
1983 ac_configure_args0=
1984 ac_configure_args1=
1985 ac_must_keep_next=false
1986 for ac_pass in 1 2
1987 do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
1996 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 case $ac_pass in
1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 2)
2001 as_fn_append ac_configure_args1 " '$ac_arg'"
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
2017 as_fn_append ac_configure_args " '$ac_arg'"
2018 ;;
2019 esac
2020 done
2021 done
2022 { ac_configure_args0=; unset ac_configure_args0;}
2023 { ac_configure_args1=; unset ac_configure_args1;}
2024
2025 # When interrupted or exit'd, cleanup temporary files, and complete
2026 # config.log. We remove comments because anyway the quotes in there
2027 # would cause problems or look ugly.
2028 # WARNING: Use '\'' to represent an apostrophe within the trap.
2029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030 trap 'exit_status=$?
2031 # Sanitize IFS.
2032 IFS=" "" $as_nl"
2033 # Save into config.log some information that might help in debugging.
2034 {
2035 echo
2036
2037 printf "%s\n" "## ---------------- ##
2038 ## Cache variables. ##
2039 ## ---------------- ##"
2040 echo
2041 # The following way of writing the cache mishandles newlines in values,
2042 (
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in #(
2046 *${as_nl}*)
2047 case $ac_var in #(
2048 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 esac
2051 case $ac_var in #(
2052 _ | IFS | as_nl) ;; #(
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054 *) { eval $ac_var=; unset $ac_var;} ;;
2055 esac ;;
2056 esac
2057 done
2058 (set) 2>&1 |
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060 *${as_nl}ac_space=\ *)
2061 sed -n \
2062 "s/'\''/'\''\\\\'\'''\''/g;
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 ;; #(
2065 *)
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 ;;
2068 esac |
2069 sort
2070 )
2071 echo
2072
2073 printf "%s\n" "## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##"
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 printf "%s\n" "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 printf "%s\n" "## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##"
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 printf "%s\n" "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 printf "%s\n" "## ----------- ##
2105 ## confdefs.h. ##
2106 ## ----------- ##"
2107 echo
2108 cat confdefs.h
2109 echo
2110 fi
2111 test "$ac_signal" != 0 &&
2112 printf "%s\n" "$as_me: caught signal $ac_signal"
2113 printf "%s\n" "$as_me: exit $exit_status"
2114 } >&5
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 exit $exit_status
2118 ' 0
2119 for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121 done
2122 ac_signal=0
2123
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2126
2127 printf "%s\n" "/* confdefs.h */" > confdefs.h
2128
2129 # Predefined preprocessor variables.
2130
2131 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2132
2133 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2134
2135 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2136
2137 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2138
2139 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2140
2141 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2142
2143
2144 # Let the site file select an alternate cache file if it wants to.
2145 # Prefer an explicitly selected file to automatically selected ones.
2146 if test -n "$CONFIG_SITE"; then
2147 ac_site_files="$CONFIG_SITE"
2148 elif test "x$prefix" != xNONE; then
2149 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2150 else
2151 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2152 fi
2153
2154 for ac_site_file in $ac_site_files
2155 do
2156 case $ac_site_file in #(
2157 */*) :
2158 ;; #(
2159 *) :
2160 ac_site_file=./$ac_site_file ;;
2161 esac
2162 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file" \
2167 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171 fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2184 fi
2185 else
2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2189 fi
2190
2191 # Test code for whether the C compiler supports C89 (global declarations)
2192 ac_c_conftest_c89_globals='
2193 /* Does the compiler advertise C89 conformance?
2194 Do not test the value of __STDC__, because some compilers set it to 0
2195 while being otherwise adequately conformant. */
2196 #if !defined __STDC__
2197 # error "Compiler does not advertise C89 conformance"
2198 #endif
2199
2200 #include <stddef.h>
2201 #include <stdarg.h>
2202 struct stat;
2203 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2204 struct buf { int x; };
2205 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2206 static char *e (p, i)
2207 char **p;
2208 int i;
2209 {
2210 return p[i];
2211 }
2212 static char *f (char * (*g) (char **, int), char **p, ...)
2213 {
2214 char *s;
2215 va_list v;
2216 va_start (v,p);
2217 s = g (p, va_arg (v,int));
2218 va_end (v);
2219 return s;
2220 }
2221
2222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2223 function prototypes and stuff, but not \xHH hex character constants.
2224 These do not provoke an error unfortunately, instead are silently treated
2225 as an "x". The following induces an error, until -std is added to get
2226 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2227 array size at least. It is necessary to write \x00 == 0 to get something
2228 that is true only with -std. */
2229 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2230
2231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2232 inside strings and character constants. */
2233 #define FOO(x) '\''x'\''
2234 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2235
2236 int test (int i, double x);
2237 struct s1 {int (*f) (int a);};
2238 struct s2 {int (*f) (double a);};
2239 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2240 int, int);'
2241
2242 # Test code for whether the C compiler supports C89 (body of main).
2243 ac_c_conftest_c89_main='
2244 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2245 '
2246
2247 # Test code for whether the C compiler supports C99 (global declarations)
2248 ac_c_conftest_c99_globals='
2249 // Does the compiler advertise C99 conformance?
2250 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2251 # error "Compiler does not advertise C99 conformance"
2252 #endif
2253
2254 #include <stdbool.h>
2255 extern int puts (const char *);
2256 extern int printf (const char *, ...);
2257 extern int dprintf (int, const char *, ...);
2258 extern void *malloc (size_t);
2259
2260 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2261 // dprintf is used instead of fprintf to avoid needing to declare
2262 // FILE and stderr.
2263 #define debug(...) dprintf (2, __VA_ARGS__)
2264 #define showlist(...) puts (#__VA_ARGS__)
2265 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2266 static void
2267 test_varargs_macros (void)
2268 {
2269 int x = 1234;
2270 int y = 5678;
2271 debug ("Flag");
2272 debug ("X = %d\n", x);
2273 showlist (The first, second, and third items.);
2274 report (x>y, "x is %d but y is %d", x, y);
2275 }
2276
2277 // Check long long types.
2278 #define BIG64 18446744073709551615ull
2279 #define BIG32 4294967295ul
2280 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2281 #if !BIG_OK
2282 #error "your preprocessor is broken"
2283 #endif
2284 #if BIG_OK
2285 #else
2286 #error "your preprocessor is broken"
2287 #endif
2288 static long long int bignum = -9223372036854775807LL;
2289 static unsigned long long int ubignum = BIG64;
2290
2291 struct incomplete_array
2292 {
2293 int datasize;
2294 double data[];
2295 };
2296
2297 struct named_init {
2298 int number;
2299 const wchar_t *name;
2300 double average;
2301 };
2302
2303 typedef const char *ccp;
2304
2305 static inline int
2306 test_restrict (ccp restrict text)
2307 {
2308 // See if C++-style comments work.
2309 // Iterate through items via the restricted pointer.
2310 // Also check for declarations in for loops.
2311 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2312 continue;
2313 return 0;
2314 }
2315
2316 // Check varargs and va_copy.
2317 static bool
2318 test_varargs (const char *format, ...)
2319 {
2320 va_list args;
2321 va_start (args, format);
2322 va_list args_copy;
2323 va_copy (args_copy, args);
2324
2325 const char *str = "";
2326 int number = 0;
2327 float fnumber = 0;
2328
2329 while (*format)
2330 {
2331 switch (*format++)
2332 {
2333 case '\''s'\'': // string
2334 str = va_arg (args_copy, const char *);
2335 break;
2336 case '\''d'\'': // int
2337 number = va_arg (args_copy, int);
2338 break;
2339 case '\''f'\'': // float
2340 fnumber = va_arg (args_copy, double);
2341 break;
2342 default:
2343 break;
2344 }
2345 }
2346 va_end (args_copy);
2347 va_end (args);
2348
2349 return *str && number && fnumber;
2350 }
2351 '
2352
2353 # Test code for whether the C compiler supports C99 (body of main).
2354 ac_c_conftest_c99_main='
2355 // Check bool.
2356 _Bool success = false;
2357 success |= (argc != 0);
2358
2359 // Check restrict.
2360 if (test_restrict ("String literal") == 0)
2361 success = true;
2362 char *restrict newvar = "Another string";
2363
2364 // Check varargs.
2365 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2366 test_varargs_macros ();
2367
2368 // Check flexible array members.
2369 struct incomplete_array *ia =
2370 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2371 ia->datasize = 10;
2372 for (int i = 0; i < ia->datasize; ++i)
2373 ia->data[i] = i * 1.234;
2374
2375 // Check named initializers.
2376 struct named_init ni = {
2377 .number = 34,
2378 .name = L"Test wide string",
2379 .average = 543.34343,
2380 };
2381
2382 ni.number = 58;
2383
2384 int dynamic_array[ni.number];
2385 dynamic_array[0] = argv[0][0];
2386 dynamic_array[ni.number - 1] = 543;
2387
2388 // work around unused variable warnings
2389 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2390 || dynamic_array[ni.number - 1] != 543);
2391 '
2392
2393 # Test code for whether the C compiler supports C11 (global declarations)
2394 ac_c_conftest_c11_globals='
2395 // Does the compiler advertise C11 conformance?
2396 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2397 # error "Compiler does not advertise C11 conformance"
2398 #endif
2399
2400 // Check _Alignas.
2401 char _Alignas (double) aligned_as_double;
2402 char _Alignas (0) no_special_alignment;
2403 extern char aligned_as_int;
2404 char _Alignas (0) _Alignas (int) aligned_as_int;
2405
2406 // Check _Alignof.
2407 enum
2408 {
2409 int_alignment = _Alignof (int),
2410 int_array_alignment = _Alignof (int[100]),
2411 char_alignment = _Alignof (char)
2412 };
2413 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2414
2415 // Check _Noreturn.
2416 int _Noreturn does_not_return (void) { for (;;) continue; }
2417
2418 // Check _Static_assert.
2419 struct test_static_assert
2420 {
2421 int x;
2422 _Static_assert (sizeof (int) <= sizeof (long int),
2423 "_Static_assert does not work in struct");
2424 long int y;
2425 };
2426
2427 // Check UTF-8 literals.
2428 #define u8 syntax error!
2429 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2430
2431 // Check duplicate typedefs.
2432 typedef long *long_ptr;
2433 typedef long int *long_ptr;
2434 typedef long_ptr long_ptr;
2435
2436 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2437 struct anonymous
2438 {
2439 union {
2440 struct { int i; int j; };
2441 struct { int k; long int l; } w;
2442 };
2443 int m;
2444 } v1;
2445 '
2446
2447 # Test code for whether the C compiler supports C11 (body of main).
2448 ac_c_conftest_c11_main='
2449 _Static_assert ((offsetof (struct anonymous, i)
2450 == offsetof (struct anonymous, w.k)),
2451 "Anonymous union alignment botch");
2452 v1.i = 2;
2453 v1.w.k = 5;
2454 ok |= v1.i != 5;
2455 '
2456
2457 # Test code for whether the C compiler supports C11 (complete).
2458 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460 ${ac_c_conftest_c11_globals}
2461
2462 int
2463 main (int argc, char **argv)
2464 {
2465 int ok = 0;
2466 ${ac_c_conftest_c89_main}
2467 ${ac_c_conftest_c99_main}
2468 ${ac_c_conftest_c11_main}
2469 return ok;
2470 }
2471 "
2472
2473 # Test code for whether the C compiler supports C99 (complete).
2474 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2475 ${ac_c_conftest_c99_globals}
2476
2477 int
2478 main (int argc, char **argv)
2479 {
2480 int ok = 0;
2481 ${ac_c_conftest_c89_main}
2482 ${ac_c_conftest_c99_main}
2483 return ok;
2484 }
2485 "
2486
2487 # Test code for whether the C compiler supports C89 (complete).
2488 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2489
2490 int
2491 main (int argc, char **argv)
2492 {
2493 int ok = 0;
2494 ${ac_c_conftest_c89_main}
2495 return ok;
2496 }
2497 "
2498
2499 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2500 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2501 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2502 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2503 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2504 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2505 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2506 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2507 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2508
2509 # Auxiliary files required by this configure script.
2510 ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
2511
2512 # Locations in which to look for auxiliary files.
2513 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2514
2515 # Search for a directory containing all of the required auxiliary files,
2516 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2517 # If we don't find one directory that contains all the files we need,
2518 # we report the set of missing files from the *first* directory in
2519 # $ac_aux_dir_candidates and give up.
2520 ac_missing_aux_files=""
2521 ac_first_candidate=:
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 as_found=false
2525 for as_dir in $ac_aux_dir_candidates
2526 do
2527 IFS=$as_save_IFS
2528 case $as_dir in #(((
2529 '') as_dir=./ ;;
2530 */) ;;
2531 *) as_dir=$as_dir/ ;;
2532 esac
2533 as_found=:
2534
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2536 ac_aux_dir_found=yes
2537 ac_install_sh=
2538 for ac_aux in $ac_aux_files
2539 do
2540 # As a special case, if "install-sh" is required, that requirement
2541 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2542 # and $ac_install_sh is set appropriately for whichever one is found.
2543 if test x"$ac_aux" = x"install-sh"
2544 then
2545 if test -f "${as_dir}install-sh"; then
2546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2547 ac_install_sh="${as_dir}install-sh -c"
2548 elif test -f "${as_dir}install.sh"; then
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2550 ac_install_sh="${as_dir}install.sh -c"
2551 elif test -f "${as_dir}shtool"; then
2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2553 ac_install_sh="${as_dir}shtool install -c"
2554 else
2555 ac_aux_dir_found=no
2556 if $ac_first_candidate; then
2557 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2558 else
2559 break
2560 fi
2561 fi
2562 else
2563 if test -f "${as_dir}${ac_aux}"; then
2564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2565 else
2566 ac_aux_dir_found=no
2567 if $ac_first_candidate; then
2568 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2569 else
2570 break
2571 fi
2572 fi
2573 fi
2574 done
2575 if test "$ac_aux_dir_found" = yes; then
2576 ac_aux_dir="$as_dir"
2577 break
2578 fi
2579 ac_first_candidate=false
2580
2581 as_found=false
2582 done
2583 IFS=$as_save_IFS
2584 if $as_found
2585 then :
2586
2587 else $as_nop
2588 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2589 fi
2590
2591
2592 # These three variables are undocumented and unsupported,
2593 # and are intended to be withdrawn in a future Autoconf release.
2594 # They can cause serious problems if a builder's source tree is in a directory
2595 # whose full name contains unusual characters.
2596 if test -f "${ac_aux_dir}config.guess"; then
2597 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2598 fi
2599 if test -f "${ac_aux_dir}config.sub"; then
2600 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2601 fi
2602 if test -f "$ac_aux_dir/configure"; then
2603 ac_configure="$SHELL ${ac_aux_dir}configure"
2604 fi
2605
2606 # Check that the precious variables saved in the cache have kept the same
2607 # value.
2608 ac_cache_corrupted=false
2609 for ac_var in $ac_precious_vars; do
2610 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2611 eval ac_new_set=\$ac_env_${ac_var}_set
2612 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2613 eval ac_new_val=\$ac_env_${ac_var}_value
2614 case $ac_old_set,$ac_new_set in
2615 set,)
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2617 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,set)
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2621 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,);;
2624 *)
2625 if test "x$ac_old_val" != "x$ac_new_val"; then
2626 # differences in whitespace do not lead to failure.
2627 ac_old_val_w=`echo x $ac_old_val`
2628 ac_new_val_w=`echo x $ac_new_val`
2629 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2631 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2632 ac_cache_corrupted=:
2633 else
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2635 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2636 eval $ac_var=\$ac_old_val
2637 fi
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2639 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2641 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2642 fi;;
2643 esac
2644 # Pass precious variables to config.status.
2645 if test "$ac_new_set" = set; then
2646 case $ac_new_val in
2647 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2648 *) ac_arg=$ac_var=$ac_new_val ;;
2649 esac
2650 case " $ac_configure_args " in
2651 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2652 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2653 esac
2654 fi
2655 done
2656 if $ac_cache_corrupted; then
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2660 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2661 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2662 and start over" "$LINENO" 5
2663 fi
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2667
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676
2677
2678 # Make sure we can run config.sub.
2679 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2680 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2681
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 printf %s "checking build system type... " >&6; }
2684 if test ${ac_cv_build+y}
2685 then :
2686 printf %s "(cached) " >&6
2687 else $as_nop
2688 ac_build_alias=$build_alias
2689 test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2691 test "x$ac_build_alias" = x &&
2692 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2693 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2694 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2695
2696 fi
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2698 printf "%s\n" "$ac_cv_build" >&6; }
2699 case $ac_cv_build in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2702 esac
2703 build=$ac_cv_build
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_build
2706 shift
2707 build_cpu=$1
2708 build_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 build_os=$*
2713 IFS=$ac_save_IFS
2714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2715
2716
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2718 printf %s "checking host system type... " >&6; }
2719 if test ${ac_cv_host+y}
2720 then :
2721 printf %s "(cached) " >&6
2722 else $as_nop
2723 if test "x$host_alias" = x; then
2724 ac_cv_host=$ac_cv_build
2725 else
2726 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2727 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2728 fi
2729
2730 fi
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2732 printf "%s\n" "$ac_cv_host" >&6; }
2733 case $ac_cv_host in
2734 *-*-*) ;;
2735 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2736 esac
2737 host=$ac_cv_host
2738 ac_save_IFS=$IFS; IFS='-'
2739 set x $ac_cv_host
2740 shift
2741 host_cpu=$1
2742 host_vendor=$2
2743 shift; shift
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2746 host_os=$*
2747 IFS=$ac_save_IFS
2748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2749
2750
2751
2752 am__api_version='1.16'
2753
2754
2755 # Find a good install program. We prefer a C program (faster),
2756 # so one script is as good as another. But avoid the broken or
2757 # incompatible versions:
2758 # SysV /etc/install, /usr/sbin/install
2759 # SunOS /usr/etc/install
2760 # IRIX /sbin/install
2761 # AIX /bin/install
2762 # AmigaOS /C/install, which installs bootblocks on floppy discs
2763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2766 # OS/2's system install, which has a completely different semantic
2767 # ./install, which can be erroneously created by make from ./install.sh.
2768 # Reject install programs that cannot install multiple files.
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2770 printf %s "checking for a BSD-compatible install... " >&6; }
2771 if test -z "$INSTALL"; then
2772 if test ${ac_cv_path_install+y}
2773 then :
2774 printf %s "(cached) " >&6
2775 else $as_nop
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 # Account for fact that we put trailing slashes in our PATH walk.
2786 case $as_dir in #((
2787 ./ | /[cC]/* | \
2788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2789 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790 /usr/ucb/* ) ;;
2791 *)
2792 # OSF1 and SCO ODT 3.0 have their own names for install.
2793 # Don't use installbsd from OSF since it installs stuff as root
2794 # by default.
2795 for ac_prog in ginstall scoinst install; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2798 if test $ac_prog = install &&
2799 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800 # AIX install. It has an incompatible calling convention.
2801 :
2802 elif test $ac_prog = install &&
2803 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804 # program-specific install script used by HP pwplus--don't use.
2805 :
2806 else
2807 rm -rf conftest.one conftest.two conftest.dir
2808 echo one > conftest.one
2809 echo two > conftest.two
2810 mkdir conftest.dir
2811 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2812 test -s conftest.one && test -s conftest.two &&
2813 test -s conftest.dir/conftest.one &&
2814 test -s conftest.dir/conftest.two
2815 then
2816 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2817 break 3
2818 fi
2819 fi
2820 fi
2821 done
2822 done
2823 ;;
2824 esac
2825
2826 done
2827 IFS=$as_save_IFS
2828
2829 rm -rf conftest.one conftest.two conftest.dir
2830
2831 fi
2832 if test ${ac_cv_path_install+y}; then
2833 INSTALL=$ac_cv_path_install
2834 else
2835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for INSTALL within a source directory, because that will
2837 # break other packages using the cache if that directory is
2838 # removed, or if the value is a relative name.
2839 INSTALL=$ac_install_sh
2840 fi
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843 printf "%s\n" "$INSTALL" >&6; }
2844
2845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846 # It thinks the first close brace ends the variable substitution.
2847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2848
2849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2850
2851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2852
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854 printf %s "checking whether build environment is sane... " >&6; }
2855 # Reject unsafe characters in $srcdir or the absolute working directory
2856 # name. Accept space and tab only in the latter.
2857 am_lf='
2858 '
2859 case `pwd` in
2860 *[\\\"\#\$\&\'\`$am_lf]*)
2861 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2862 esac
2863 case $srcdir in
2864 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2865 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2866 esac
2867
2868 # Do 'set' in a subshell so we don't clobber the current shell's
2869 # arguments. Must try -L first in case configure is actually a
2870 # symlink; some systems play weird games with the mod time of symlinks
2871 # (eg FreeBSD returns the mod time of the symlink's containing
2872 # directory).
2873 if (
2874 am_has_slept=no
2875 for am_try in 1 2; do
2876 echo "timestamp, slept: $am_has_slept" > conftest.file
2877 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878 if test "$*" = "X"; then
2879 # -L didn't work.
2880 set X `ls -t "$srcdir/configure" conftest.file`
2881 fi
2882 if test "$*" != "X $srcdir/configure conftest.file" \
2883 && test "$*" != "X conftest.file $srcdir/configure"; then
2884
2885 # If neither matched, then we have a broken ls. This can happen
2886 # if, for instance, CONFIG_SHELL is bash and it inherits a
2887 # broken ls alias from the environment. This has actually
2888 # happened. Such a system could not be considered "sane".
2889 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2890 alias in your environment" "$LINENO" 5
2891 fi
2892 if test "$2" = conftest.file || test $am_try -eq 2; then
2893 break
2894 fi
2895 # Just in case.
2896 sleep 1
2897 am_has_slept=yes
2898 done
2899 test "$2" = conftest.file
2900 )
2901 then
2902 # Ok.
2903 :
2904 else
2905 as_fn_error $? "newly created file is older than distributed files!
2906 Check your system clock" "$LINENO" 5
2907 fi
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 printf "%s\n" "yes" >&6; }
2910 # If we didn't sleep, we still need to ensure time stamps of config.status and
2911 # generated files are strictly newer.
2912 am_sleep_pid=
2913 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2914 ( sleep 1 ) &
2915 am_sleep_pid=$!
2916 fi
2917
2918 rm -f conftest.file
2919
2920 test "$program_prefix" != NONE &&
2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922 # Use a double $ so make ignores it.
2923 test "$program_suffix" != NONE &&
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925 # Double any \ or $.
2926 # By default was `s,x,x', remove it if useless.
2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2929
2930
2931 # Expand $ac_aux_dir to an absolute path.
2932 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2933
2934
2935 if test x"${MISSING+set}" != xset; then
2936 MISSING="\${SHELL} '$am_aux_dir/missing'"
2937 fi
2938 # Use eval to expand $SHELL
2939 if eval "$MISSING --is-lightweight"; then
2940 am_missing_run="$MISSING "
2941 else
2942 am_missing_run=
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2944 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2945 fi
2946
2947 if test x"${install_sh+set}" != xset; then
2948 case $am_aux_dir in
2949 *\ * | *\ *)
2950 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2951 *)
2952 install_sh="\${SHELL} $am_aux_dir/install-sh"
2953 esac
2954 fi
2955
2956 # Installed binaries are usually stripped using 'strip' when the user
2957 # run "make install-strip". However 'strip' might not be the right
2958 # tool to use in cross-compilation environments, therefore Automake
2959 # will honor the 'STRIP' environment variable to overrule this program.
2960 if test "$cross_compiling" != no; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}strip; ac_word=$2
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 printf %s "checking for $ac_word... " >&6; }
2966 if test ${ac_cv_prog_STRIP+y}
2967 then :
2968 printf %s "(cached) " >&6
2969 else $as_nop
2970 if test -n "$STRIP"; then
2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 case $as_dir in #(((
2978 '') as_dir=./ ;;
2979 */) ;;
2980 *) as_dir=$as_dir/ ;;
2981 esac
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 STRIP=$ac_cv_prog_STRIP
2995 if test -n "$STRIP"; then
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997 printf "%s\n" "$STRIP" >&6; }
2998 else
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 printf "%s\n" "no" >&6; }
3001 fi
3002
3003
3004 fi
3005 if test -z "$ac_cv_prog_STRIP"; then
3006 ac_ct_STRIP=$STRIP
3007 # Extract the first word of "strip", so it can be a program name with args.
3008 set dummy strip; ac_word=$2
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 printf %s "checking for $ac_word... " >&6; }
3011 if test ${ac_cv_prog_ac_ct_STRIP+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else $as_nop
3015 if test -n "$ac_ct_STRIP"; then
3016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 case $as_dir in #(((
3023 '') as_dir=./ ;;
3024 */) ;;
3025 *) as_dir=$as_dir/ ;;
3026 esac
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_ac_ct_STRIP="strip"
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3040 if test -n "$ac_ct_STRIP"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3042 printf "%s\n" "$ac_ct_STRIP" >&6; }
3043 else
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3046 fi
3047
3048 if test "x$ac_ct_STRIP" = x; then
3049 STRIP=":"
3050 else
3051 case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3056 esac
3057 STRIP=$ac_ct_STRIP
3058 fi
3059 else
3060 STRIP="$ac_cv_prog_STRIP"
3061 fi
3062
3063 fi
3064 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3065
3066
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3068 printf %s "checking for a race-free mkdir -p... " >&6; }
3069 if test -z "$MKDIR_P"; then
3070 if test ${ac_cv_path_mkdir+y}
3071 then :
3072 printf %s "(cached) " >&6
3073 else $as_nop
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_prog in mkdir gmkdir; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3086 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3087 'mkdir ('*'coreutils) '* | \
3088 'BusyBox '* | \
3089 'mkdir (fileutils) '4.1*)
3090 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3091 break 3;;
3092 esac
3093 done
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099
3100 test -d ./--version && rmdir ./--version
3101 if test ${ac_cv_path_mkdir+y}; then
3102 MKDIR_P="$ac_cv_path_mkdir -p"
3103 else
3104 # As a last resort, use the slow shell script. Don't cache a
3105 # value for MKDIR_P within a source directory, because that will
3106 # break other packages using the cache if that directory is
3107 # removed, or if the value is a relative name.
3108 MKDIR_P="$ac_install_sh -d"
3109 fi
3110 fi
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3112 printf "%s\n" "$MKDIR_P" >&6; }
3113
3114 for ac_prog in gawk mawk nawk awk
3115 do
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 printf %s "checking for $ac_word... " >&6; }
3120 if test ${ac_cv_prog_AWK+y}
3121 then :
3122 printf %s "(cached) " >&6
3123 else $as_nop
3124 if test -n "$AWK"; then
3125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 case $as_dir in #(((
3132 '') as_dir=./ ;;
3133 */) ;;
3134 *) as_dir=$as_dir/ ;;
3135 esac
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_AWK="$ac_prog"
3139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 AWK=$ac_cv_prog_AWK
3149 if test -n "$AWK"; then
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3151 printf "%s\n" "$AWK" >&6; }
3152 else
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3155 fi
3156
3157
3158 test -n "$AWK" && break
3159 done
3160
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3162 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3163 set x ${MAKE-make}
3164 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3165 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else $as_nop
3169 cat >conftest.make <<\_ACEOF
3170 SHELL = /bin/sh
3171 all:
3172 @echo '@@@%%%=$(MAKE)=@@@%%%'
3173 _ACEOF
3174 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3175 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3176 *@@@%%%=?*=@@@%%%*)
3177 eval ac_cv_prog_make_${ac_make}_set=yes;;
3178 *)
3179 eval ac_cv_prog_make_${ac_make}_set=no;;
3180 esac
3181 rm -f conftest.make
3182 fi
3183 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 printf "%s\n" "yes" >&6; }
3186 SET_MAKE=
3187 else
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 printf "%s\n" "no" >&6; }
3190 SET_MAKE="MAKE=${MAKE-make}"
3191 fi
3192
3193 rm -rf .tst 2>/dev/null
3194 mkdir .tst 2>/dev/null
3195 if test -d .tst; then
3196 am__leading_dot=.
3197 else
3198 am__leading_dot=_
3199 fi
3200 rmdir .tst 2>/dev/null
3201
3202 # Check whether --enable-silent-rules was given.
3203 if test ${enable_silent_rules+y}
3204 then :
3205 enableval=$enable_silent_rules;
3206 fi
3207
3208 case $enable_silent_rules in # (((
3209 yes) AM_DEFAULT_VERBOSITY=0;;
3210 no) AM_DEFAULT_VERBOSITY=1;;
3211 *) AM_DEFAULT_VERBOSITY=1;;
3212 esac
3213 am_make=${MAKE-make}
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3215 printf %s "checking whether $am_make supports nested variables... " >&6; }
3216 if test ${am_cv_make_support_nested_variables+y}
3217 then :
3218 printf %s "(cached) " >&6
3219 else $as_nop
3220 if printf "%s\n" 'TRUE=$(BAR$(V))
3221 BAR0=false
3222 BAR1=true
3223 V=1
3224 am__doit:
3225 @$(TRUE)
3226 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3227 am_cv_make_support_nested_variables=yes
3228 else
3229 am_cv_make_support_nested_variables=no
3230 fi
3231 fi
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3233 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3234 if test $am_cv_make_support_nested_variables = yes; then
3235 AM_V='$(V)'
3236 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3237 else
3238 AM_V=$AM_DEFAULT_VERBOSITY
3239 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3240 fi
3241 AM_BACKSLASH='\'
3242
3243 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245 # is not polluted with repeated "-I."
3246 am__isrc=' -I$(srcdir)'
3247 # test to see if srcdir already configured
3248 if test -f $srcdir/config.status; then
3249 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250 fi
3251 fi
3252
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath --version) >/dev/null 2>/dev/null; then
3256 CYGPATH_W='cygpath -w'
3257 else
3258 CYGPATH_W=echo
3259 fi
3260 fi
3261
3262
3263 # Define the identity of the package.
3264 PACKAGE='libwebp'
3265 VERSION='1.5.0'
3266
3267
3268 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3269
3270
3271 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3272
3273 # Some tools Automake needs.
3274
3275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3276
3277
3278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3279
3280
3281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3282
3283
3284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3285
3286
3287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3288
3289 # For better backward compatibility. To be removed once Automake 1.9.x
3290 # dies out for good. For more background, see:
3291 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3292 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3293 mkdir_p='$(MKDIR_P)'
3294
3295 # We need awk for the "check" target (and possibly the TAP driver). The
3296 # system "awk" is bad on some platforms.
3297 # Always define AMTAR for backward compatibility. Yes, it's still used
3298 # in the wild :-( We should find a proper way to deprecate it ...
3299 AMTAR='$${TAR-tar}'
3300
3301
3302 # We'll loop over all known methods to create a tar archive until one works.
3303 _am_tools='gnutar pax cpio none'
3304
3305 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3306
3307
3308
3309
3310
3311 # Variables for tags utilities; see am/tags.am
3312 if test -z "$CTAGS"; then
3313 CTAGS=ctags
3314 fi
3315
3316 if test -z "$ETAGS"; then
3317 ETAGS=etags
3318 fi
3319
3320 if test -z "$CSCOPE"; then
3321 CSCOPE=cscope
3322 fi
3323
3324
3325
3326 # POSIX will say in a future version that running "rm -f" with no argument
3327 # is OK; and we want to be able to make that assumption in our Makefile
3328 # recipes. So use an aggressive probe to check that the usage we want is
3329 # actually supported "in the wild" to an acceptable degree.
3330 # See automake bug#10828.
3331 # To make any issue more visible, cause the running configure to be aborted
3332 # by default if the 'rm' program in use doesn't match our expectations; the
3333 # user can still override this though.
3334 if rm -f && rm -fr && rm -rf; then : OK; else
3335 cat >&2 <<'END'
3336 Oops!
3337
3338 Your 'rm' program seems unable to run without file operands specified
3339 on the command line, even when the '-f' option is present. This is contrary
3340 to the behaviour of most rm programs out there, and not conforming with
3341 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3342
3343 Please tell [email protected] about your system, including the value
3344 of your $PATH and any error possibly output before this message. This
3345 can help us improve future automake versions.
3346
3347 END
3348 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3349 echo 'Configuration will proceed anyway, since you have set the' >&2
3350 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3351 echo >&2
3352 else
3353 cat >&2 <<'END'
3354 Aborting the configuration process, to ensure you take notice of the issue.
3355
3356 You can download and install GNU coreutils to get an 'rm' implementation
3357 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3358
3359 If you want to complete the configuration process using your problematic
3360 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3361 to "yes", and re-run configure.
3362
3363 END
3364 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3365 fi
3366 fi
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378 DEPDIR="${am__leading_dot}deps"
3379
3380 ac_config_commands="$ac_config_commands depfiles"
3381
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3383 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3384 cat > confinc.mk << 'END'
3385 am__doit:
3386 @echo this is the am__doit target >confinc.out
3387 .PHONY: am__doit
3388 END
3389 am__include="#"
3390 am__quote=
3391 # BSD make does it like this.
3392 echo '.include "confinc.mk" # ignored' > confmf.BSD
3393 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3394 echo 'include confinc.mk # ignored' > confmf.GNU
3395 _am_result=no
3396 for s in GNU BSD; do
3397 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3398 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }
3402 case $?:`cat confinc.out 2>/dev/null` in #(
3403 '0:this is the am__doit target') :
3404 case $s in #(
3405 BSD) :
3406 am__include='.include' am__quote='"' ;; #(
3407 *) :
3408 am__include='include' am__quote='' ;;
3409 esac ;; #(
3410 *) :
3411 ;;
3412 esac
3413 if test "$am__include" != "#"; then
3414 _am_result="yes ($s style)"
3415 break
3416 fi
3417 done
3418 rm -f confinc.* confmf.*
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3420 printf "%s\n" "${_am_result}" >&6; }
3421
3422 # Check whether --enable-dependency-tracking was given.
3423 if test ${enable_dependency_tracking+y}
3424 then :
3425 enableval=$enable_dependency_tracking;
3426 fi
3427
3428 if test "x$enable_dependency_tracking" != xno; then
3429 am_depcomp="$ac_aux_dir/depcomp"
3430 AMDEPBACKSLASH='\'
3431 am__nodep='_no'
3432 fi
3433 if test "x$enable_dependency_tracking" != xno; then
3434 AMDEP_TRUE=
3435 AMDEP_FALSE='#'
3436 else
3437 AMDEP_TRUE='#'
3438 AMDEP_FALSE=
3439 fi
3440
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 printf %s "checking for $ac_word... " >&6; }
3452 if test ${ac_cv_prog_CC+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else $as_nop
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 case $as_dir in #(((
3464 '') as_dir=./ ;;
3465 */) ;;
3466 *) as_dir=$as_dir/ ;;
3467 esac
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 printf "%s\n" "$CC" >&6; }
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$ac_cv_prog_CC"; then
3492 ac_ct_CC=$CC
3493 # Extract the first word of "gcc", so it can be a program name with args.
3494 set dummy gcc; ac_word=$2
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 printf %s "checking for $ac_word... " >&6; }
3497 if test ${ac_cv_prog_ac_ct_CC+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else $as_nop
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 case $as_dir in #(((
3509 '') as_dir=./ ;;
3510 */) ;;
3511 *) as_dir=$as_dir/ ;;
3512 esac
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 printf "%s\n" "$ac_ct_CC" >&6; }
3529 else
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 printf "%s\n" "no" >&6; }
3532 fi
3533
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3544 fi
3545 else
3546 CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 printf %s "checking for $ac_word... " >&6; }
3555 if test ${ac_cv_prog_CC+y}
3556 then :
3557 printf %s "(cached) " >&6
3558 else $as_nop
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 case $as_dir in #(((
3567 '') as_dir=./ ;;
3568 */) ;;
3569 *) as_dir=$as_dir/ ;;
3570 esac
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="${ac_tool_prefix}cc"
3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 printf "%s\n" "$CC" >&6; }
3587 else
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 printf "%s\n" "no" >&6; }
3590 fi
3591
3592
3593 fi
3594 fi
3595 if test -z "$CC"; then
3596 # Extract the first word of "cc", so it can be a program name with args.
3597 set dummy cc; ac_word=$2
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 printf %s "checking for $ac_word... " >&6; }
3600 if test ${ac_cv_prog_CC+y}
3601 then :
3602 printf %s "(cached) " >&6
3603 else $as_nop
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3606 else
3607 ac_prog_rejected=no
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 case $as_dir in #(((
3613 '') as_dir=./ ;;
3614 */) ;;
3615 *) as_dir=$as_dir/ ;;
3616 esac
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3619 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3620 ac_prog_rejected=yes
3621 continue
3622 fi
3623 ac_cv_prog_CC="cc"
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 if test $ac_prog_rejected = yes; then
3632 # We found a bogon in the path, so make sure we never use it.
3633 set dummy $ac_cv_prog_CC
3634 shift
3635 if test $# != 0; then
3636 # We chose a different compiler from the bogus one.
3637 # However, it has the same basename, so the bogon will be chosen
3638 # first if we set CC to just the basename; use the full file name.
3639 shift
3640 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3641 fi
3642 fi
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 printf "%s\n" "$CC" >&6; }
3649 else
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 printf "%s\n" "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 if test -z "$CC"; then
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in cl.exe
3659 do
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 printf %s "checking for $ac_word... " >&6; }
3664 if test ${ac_cv_prog_CC+y}
3665 then :
3666 printf %s "(cached) " >&6
3667 else $as_nop
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 case $as_dir in #(((
3676 '') as_dir=./ ;;
3677 */) ;;
3678 *) as_dir=$as_dir/ ;;
3679 esac
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 printf "%s\n" "$CC" >&6; }
3696 else
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 printf "%s\n" "no" >&6; }
3699 fi
3700
3701
3702 test -n "$CC" && break
3703 done
3704 fi
3705 if test -z "$CC"; then
3706 ac_ct_CC=$CC
3707 for ac_prog in cl.exe
3708 do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_ac_ct_CC+y}
3714 then :
3715 printf %s "(cached) " >&6
3716 else $as_nop
3717 if test -n "$ac_ct_CC"; then
3718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723 IFS=$as_save_IFS
3724 case $as_dir in #(((
3725 '') as_dir=./ ;;
3726 */) ;;
3727 *) as_dir=$as_dir/ ;;
3728 esac
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_CC="$ac_prog"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 printf "%s\n" "$ac_ct_CC" >&6; }
3745 else
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 fi
3749
3750
3751 test -n "$ac_ct_CC" && break
3752 done
3753
3754 if test "x$ac_ct_CC" = x; then
3755 CC=""
3756 else
3757 case $cross_compiling:$ac_tool_warned in
3758 yes:)
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3760 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned=yes ;;
3762 esac
3763 CC=$ac_ct_CC
3764 fi
3765 fi
3766
3767 fi
3768 if test -z "$CC"; then
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}clang; ac_word=$2
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 printf %s "checking for $ac_word... " >&6; }
3774 if test ${ac_cv_prog_CC+y}
3775 then :
3776 printf %s "(cached) " >&6
3777 else $as_nop
3778 if test -n "$CC"; then
3779 ac_cv_prog_CC="$CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 case $as_dir in #(((
3786 '') as_dir=./ ;;
3787 */) ;;
3788 *) as_dir=$as_dir/ ;;
3789 esac
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_CC="${ac_tool_prefix}clang"
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796 done
3797 done
3798 IFS=$as_save_IFS
3799
3800 fi
3801 fi
3802 CC=$ac_cv_prog_CC
3803 if test -n "$CC"; then
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3805 printf "%s\n" "$CC" >&6; }
3806 else
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 printf "%s\n" "no" >&6; }
3809 fi
3810
3811
3812 fi
3813 if test -z "$ac_cv_prog_CC"; then
3814 ac_ct_CC=$CC
3815 # Extract the first word of "clang", so it can be a program name with args.
3816 set dummy clang; ac_word=$2
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 printf %s "checking for $ac_word... " >&6; }
3819 if test ${ac_cv_prog_ac_ct_CC+y}
3820 then :
3821 printf %s "(cached) " >&6
3822 else $as_nop
3823 if test -n "$ac_ct_CC"; then
3824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829 IFS=$as_save_IFS
3830 case $as_dir in #(((
3831 '') as_dir=./ ;;
3832 */) ;;
3833 *) as_dir=$as_dir/ ;;
3834 esac
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_CC="clang"
3838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3848 if test -n "$ac_ct_CC"; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3850 printf "%s\n" "$ac_ct_CC" >&6; }
3851 else
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 fi
3855
3856 if test "x$ac_ct_CC" = x; then
3857 CC=""
3858 else
3859 case $cross_compiling:$ac_tool_warned in
3860 yes:)
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3863 ac_tool_warned=yes ;;
3864 esac
3865 CC=$ac_ct_CC
3866 fi
3867 else
3868 CC="$ac_cv_prog_CC"
3869 fi
3870
3871 fi
3872
3873
3874 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details" "$LINENO" 5; }
3878
3879 # Provide some information about the compiler.
3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3881 set X $ac_compile
3882 ac_compiler=$2
3883 for ac_option in --version -v -V -qversion -version; do
3884 { { ac_try="$ac_compiler $ac_option >&5"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 printf "%s\n" "$ac_try_echo"; } >&5
3891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3892 ac_status=$?
3893 if test -s conftest.err; then
3894 sed '10a\
3895 ... rest of stderr output deleted ...
3896 10q' conftest.err >conftest.er1
3897 cat conftest.er1 >&5
3898 fi
3899 rm -f conftest.er1 conftest.err
3900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 done
3903
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906
3907 int
3908 main (void)
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 ac_clean_files_save=$ac_clean_files
3916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3917 # Try to create an executable without -o first, disregard a.out.
3918 # It will help us diagnose broken compilers, and finding out an intuition
3919 # of exeext.
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 printf %s "checking whether the C compiler works... " >&6; }
3922 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3923
3924 # The possible output files:
3925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3926
3927 ac_rmfiles=
3928 for ac_file in $ac_files
3929 do
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3933 esac
3934 done
3935 rm -f $ac_rmfiles
3936
3937 if { { ac_try="$ac_link_default"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 printf "%s\n" "$ac_try_echo"; } >&5
3944 (eval "$ac_link_default") 2>&5
3945 ac_status=$?
3946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 then :
3949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3950 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3951 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3952 # so that the user can short-circuit this test for compilers unknown to
3953 # Autoconf.
3954 for ac_file in $ac_files ''
3955 do
3956 test -f "$ac_file" || continue
3957 case $ac_file in
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3959 ;;
3960 [ab].out )
3961 # We found the default executable, but exeext='' is most
3962 # certainly right.
3963 break;;
3964 *.* )
3965 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3966 then :; else
3967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 fi
3969 # We set ac_cv_exeext here because the later test for it is not
3970 # safe: cross compilers may not add the suffix if given an `-o'
3971 # argument, so we may need to know it at that point already.
3972 # Even if this section looks crufty: it has the advantage of
3973 # actually working.
3974 break;;
3975 * )
3976 break;;
3977 esac
3978 done
3979 test "$ac_cv_exeext" = no && ac_cv_exeext=
3980
3981 else $as_nop
3982 ac_file=''
3983 fi
3984 if test -z "$ac_file"
3985 then :
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 printf "%s\n" "no" >&6; }
3988 printf "%s\n" "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error 77 "C compiler cannot create executables
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 else $as_nop
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997 printf "%s\n" "yes" >&6; }
3998 fi
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4000 printf %s "checking for C compiler default output file name... " >&6; }
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4002 printf "%s\n" "$ac_file" >&6; }
4003 ac_exeext=$ac_cv_exeext
4004
4005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4006 ac_clean_files=$ac_clean_files_save
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4008 printf %s "checking for suffix of executables... " >&6; }
4009 if { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 printf "%s\n" "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 then :
4021 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4022 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4023 # work properly (i.e., refer to `conftest.exe'), while it won't with
4024 # `rm'.
4025 for ac_file in conftest.exe conftest conftest.*; do
4026 test -f "$ac_file" || continue
4027 case $ac_file in
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4029 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4030 break;;
4031 * ) break;;
4032 esac
4033 done
4034 else $as_nop
4035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4038 See \`config.log' for more details" "$LINENO" 5; }
4039 fi
4040 rm -f conftest conftest$ac_cv_exeext
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4042 printf "%s\n" "$ac_cv_exeext" >&6; }
4043
4044 rm -f conftest.$ac_ext
4045 EXEEXT=$ac_cv_exeext
4046 ac_exeext=$EXEEXT
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <stdio.h>
4050 int
4051 main (void)
4052 {
4053 FILE *f = fopen ("conftest.out", "w");
4054 return ferror (f) || fclose (f) != 0;
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 ac_clean_files="$ac_clean_files conftest.out"
4061 # Check that the compiler produces executables we can run. If not, either
4062 # the compiler is broken, or we cross compile.
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4064 printf %s "checking whether we are cross compiling... " >&6; }
4065 if test "$cross_compiling" != yes; then
4066 { { ac_try="$ac_link"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 printf "%s\n" "$ac_try_echo"; } >&5
4073 (eval "$ac_link") 2>&5
4074 ac_status=$?
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 if { ac_try='./conftest$ac_cv_exeext'
4078 { { case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 printf "%s\n" "$ac_try_echo"; } >&5
4084 (eval "$ac_try") 2>&5
4085 ac_status=$?
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; }; then
4088 cross_compiling=no
4089 else
4090 if test "$cross_compiling" = maybe; then
4091 cross_compiling=yes
4092 else
4093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error 77 "cannot run C compiled programs.
4096 If you meant to cross compile, use \`--host'.
4097 See \`config.log' for more details" "$LINENO" 5; }
4098 fi
4099 fi
4100 fi
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4102 printf "%s\n" "$cross_compiling" >&6; }
4103
4104 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4105 ac_clean_files=$ac_clean_files_save
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4107 printf %s "checking for suffix of object files... " >&6; }
4108 if test ${ac_cv_objext+y}
4109 then :
4110 printf %s "(cached) " >&6
4111 else $as_nop
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main (void)
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.o conftest.obj
4124 if { { ac_try="$ac_compile"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4130 printf "%s\n" "$ac_try_echo"; } >&5
4131 (eval "$ac_compile") 2>&5
4132 ac_status=$?
4133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134 test $ac_status = 0; }
4135 then :
4136 for ac_file in conftest.o conftest.obj conftest.*; do
4137 test -f "$ac_file" || continue;
4138 case $ac_file in
4139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4141 break;;
4142 esac
4143 done
4144 else $as_nop
4145 printf "%s\n" "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4150 as_fn_error $? "cannot compute suffix of object files: cannot compile
4151 See \`config.log' for more details" "$LINENO" 5; }
4152 fi
4153 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4154 fi
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4156 printf "%s\n" "$ac_cv_objext" >&6; }
4157 OBJEXT=$ac_cv_objext
4158 ac_objext=$OBJEXT
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4160 printf %s "checking whether the compiler supports GNU C... " >&6; }
4161 if test ${ac_cv_c_compiler_gnu+y}
4162 then :
4163 printf %s "(cached) " >&6
4164 else $as_nop
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main (void)
4170 {
4171 #ifndef __GNUC__
4172 choke me
4173 #endif
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"
4180 then :
4181 ac_compiler_gnu=yes
4182 else $as_nop
4183 ac_compiler_gnu=no
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4186 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4187
4188 fi
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4190 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 if test $ac_compiler_gnu = yes; then
4194 GCC=yes
4195 else
4196 GCC=
4197 fi
4198 ac_test_CFLAGS=${CFLAGS+y}
4199 ac_save_CFLAGS=$CFLAGS
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201 printf %s "checking whether $CC accepts -g... " >&6; }
4202 if test ${ac_cv_prog_cc_g+y}
4203 then :
4204 printf %s "(cached) " >&6
4205 else $as_nop
4206 ac_save_c_werror_flag=$ac_c_werror_flag
4207 ac_c_werror_flag=yes
4208 ac_cv_prog_cc_g=no
4209 CFLAGS="-g"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212
4213 int
4214 main (void)
4215 {
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"
4222 then :
4223 ac_cv_prog_cc_g=yes
4224 else $as_nop
4225 CFLAGS=""
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228
4229 int
4230 main (void)
4231 {
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"
4238 then :
4239
4240 else $as_nop
4241 ac_c_werror_flag=$ac_save_c_werror_flag
4242 CFLAGS="-g"
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 int
4247 main (void)
4248 {
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"
4255 then :
4256 ac_cv_prog_cc_g=yes
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4263 ac_c_werror_flag=$ac_save_c_werror_flag
4264 fi
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4266 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4267 if test $ac_test_CFLAGS; then
4268 CFLAGS=$ac_save_CFLAGS
4269 elif test $ac_cv_prog_cc_g = yes; then
4270 if test "$GCC" = yes; then
4271 CFLAGS="-g -O2"
4272 else
4273 CFLAGS="-g"
4274 fi
4275 else
4276 if test "$GCC" = yes; then
4277 CFLAGS="-O2"
4278 else
4279 CFLAGS=
4280 fi
4281 fi
4282 ac_prog_cc_stdc=no
4283 if test x$ac_prog_cc_stdc = xno
4284 then :
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4286 printf %s "checking for $CC option to enable C11 features... " >&6; }
4287 if test ${ac_cv_prog_cc_c11+y}
4288 then :
4289 printf %s "(cached) " >&6
4290 else $as_nop
4291 ac_cv_prog_cc_c11=no
4292 ac_save_CC=$CC
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 $ac_c_conftest_c11_program
4296 _ACEOF
4297 for ac_arg in '' -std=gnu11
4298 do
4299 CC="$ac_save_CC $ac_arg"
4300 if ac_fn_c_try_compile "$LINENO"
4301 then :
4302 ac_cv_prog_cc_c11=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.beam
4305 test "x$ac_cv_prog_cc_c11" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309 fi
4310
4311 if test "x$ac_cv_prog_cc_c11" = xno
4312 then :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 printf "%s\n" "unsupported" >&6; }
4315 else $as_nop
4316 if test "x$ac_cv_prog_cc_c11" = x
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319 printf "%s\n" "none needed" >&6; }
4320 else $as_nop
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4322 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4323 CC="$CC $ac_cv_prog_cc_c11"
4324 fi
4325 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4326 ac_prog_cc_stdc=c11
4327 fi
4328 fi
4329 if test x$ac_prog_cc_stdc = xno
4330 then :
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4332 printf %s "checking for $CC option to enable C99 features... " >&6; }
4333 if test ${ac_cv_prog_cc_c99+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else $as_nop
4337 ac_cv_prog_cc_c99=no
4338 ac_save_CC=$CC
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 $ac_c_conftest_c99_program
4342 _ACEOF
4343 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4344 do
4345 CC="$ac_save_CC $ac_arg"
4346 if ac_fn_c_try_compile "$LINENO"
4347 then :
4348 ac_cv_prog_cc_c99=$ac_arg
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.beam
4351 test "x$ac_cv_prog_cc_c99" != "xno" && break
4352 done
4353 rm -f conftest.$ac_ext
4354 CC=$ac_save_CC
4355 fi
4356
4357 if test "x$ac_cv_prog_cc_c99" = xno
4358 then :
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4360 printf "%s\n" "unsupported" >&6; }
4361 else $as_nop
4362 if test "x$ac_cv_prog_cc_c99" = x
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365 printf "%s\n" "none needed" >&6; }
4366 else $as_nop
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4368 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4369 CC="$CC $ac_cv_prog_cc_c99"
4370 fi
4371 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4372 ac_prog_cc_stdc=c99
4373 fi
4374 fi
4375 if test x$ac_prog_cc_stdc = xno
4376 then :
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4378 printf %s "checking for $CC option to enable C89 features... " >&6; }
4379 if test ${ac_cv_prog_cc_c89+y}
4380 then :
4381 printf %s "(cached) " >&6
4382 else $as_nop
4383 ac_cv_prog_cc_c89=no
4384 ac_save_CC=$CC
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 $ac_c_conftest_c89_program
4388 _ACEOF
4389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4390 do
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"
4393 then :
4394 ac_cv_prog_cc_c89=$ac_arg
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.beam
4397 test "x$ac_cv_prog_cc_c89" != "xno" && break
4398 done
4399 rm -f conftest.$ac_ext
4400 CC=$ac_save_CC
4401 fi
4402
4403 if test "x$ac_cv_prog_cc_c89" = xno
4404 then :
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4406 printf "%s\n" "unsupported" >&6; }
4407 else $as_nop
4408 if test "x$ac_cv_prog_cc_c89" = x
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4411 printf "%s\n" "none needed" >&6; }
4412 else $as_nop
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4414 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4415 CC="$CC $ac_cv_prog_cc_c89"
4416 fi
4417 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4418 ac_prog_cc_stdc=c89
4419 fi
4420 fi
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4435 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4436 if test ${am_cv_prog_cc_c_o+y}
4437 then :
4438 printf %s "(cached) " >&6
4439 else $as_nop
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 # Make sure it works both with $CC and with simple cc.
4452 # Following AC_PROG_CC_C_O, we do the test twice because some
4453 # compilers refuse to overwrite an existing .o file with -o,
4454 # though they will create one.
4455 am_cv_prog_cc_c_o=yes
4456 for am_i in 1 2; do
4457 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4458 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } \
4462 && test -f conftest2.$ac_objext; then
4463 : OK
4464 else
4465 am_cv_prog_cc_c_o=no
4466 break
4467 fi
4468 done
4469 rm -f core conftest*
4470 unset am_i
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4473 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4474 if test "$am_cv_prog_cc_c_o" != yes; then
4475 # Losing compiler, so override with the script.
4476 # FIXME: It is wrong to rewrite CC.
4477 # But if we don't then we get into trouble of one sort or another.
4478 # A longer-term fix would be to have automake use am__CC in this case,
4479 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4480 CC="$am_aux_dir/compile $CC"
4481 fi
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 depcc="$CC" am_compiler_list=
4490
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492 printf %s "checking dependency style of $depcc... " >&6; }
4493 if test ${am_cv_CC_dependencies_compiler_type+y}
4494 then :
4495 printf %s "(cached) " >&6
4496 else $as_nop
4497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4498 # We make a subdir and do the tests there. Otherwise we can end up
4499 # making bogus files that we don't know about and never remove. For
4500 # instance it was reported that on HP-UX the gcc test will end up
4501 # making a dummy file named 'D' -- because '-MD' means "put the output
4502 # in D".
4503 rm -rf conftest.dir
4504 mkdir conftest.dir
4505 # Copy depcomp to subdir because otherwise we won't find it if we're
4506 # using a relative directory.
4507 cp "$am_depcomp" conftest.dir
4508 cd conftest.dir
4509 # We will build objects and dependencies in a subdirectory because
4510 # it helps to detect inapplicable dependency modes. For instance
4511 # both Tru64's cc and ICC support -MD to output dependencies as a
4512 # side effect of compilation, but ICC will put the dependencies in
4513 # the current directory while Tru64 will put them in the object
4514 # directory.
4515 mkdir sub
4516
4517 am_cv_CC_dependencies_compiler_type=none
4518 if test "$am_compiler_list" = ""; then
4519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4520 fi
4521 am__universal=false
4522 case " $depcc " in #(
4523 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4524 esac
4525
4526 for depmode in $am_compiler_list; do
4527 # Setup a source with many dependencies, because some compilers
4528 # like to wrap large dependency lists on column 80 (with \), and
4529 # we should not choose a depcomp mode which is confused by this.
4530 #
4531 # We need to recreate these files for each test, as the compiler may
4532 # overwrite some of them when testing with obscure command lines.
4533 # This happens at least with the AIX C compiler.
4534 : > sub/conftest.c
4535 for i in 1 2 3 4 5 6; do
4536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4537 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4538 # Solaris 10 /bin/sh.
4539 echo '/* dummy */' > sub/conftst$i.h
4540 done
4541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4542
4543 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4544 # mode. It turns out that the SunPro C++ compiler does not properly
4545 # handle '-M -o', and we need to detect this. Also, some Intel
4546 # versions had trouble with output in subdirs.
4547 am__obj=sub/conftest.${OBJEXT-o}
4548 am__minus_obj="-o $am__obj"
4549 case $depmode in
4550 gcc)
4551 # This depmode causes a compiler race in universal mode.
4552 test "$am__universal" = false || continue
4553 ;;
4554 nosideeffect)
4555 # After this tag, mechanisms are not by side-effect, so they'll
4556 # only be used when explicitly requested.
4557 if test "x$enable_dependency_tracking" = xyes; then
4558 continue
4559 else
4560 break
4561 fi
4562 ;;
4563 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4564 # This compiler won't grok '-c -o', but also, the minuso test has
4565 # not run yet. These depmodes are late enough in the game, and
4566 # so weak that their functioning should not be impacted.
4567 am__obj=conftest.${OBJEXT-o}
4568 am__minus_obj=
4569 ;;
4570 none) break ;;
4571 esac
4572 if depmode=$depmode \
4573 source=sub/conftest.c object=$am__obj \
4574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4576 >/dev/null 2>conftest.err &&
4577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4581 # icc doesn't choke on unknown options, it will just issue warnings
4582 # or remarks (even with -Werror). So we grep stderr for any message
4583 # that says an option was ignored or not supported.
4584 # When given -MP, icc 7.0 and 7.1 complain thusly:
4585 # icc: Command line warning: ignoring option '-M'; no argument required
4586 # The diagnosis changed in icc 8.0:
4587 # icc: Command line remark: option '-MP' not supported
4588 if (grep 'ignoring option' conftest.err ||
4589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4590 am_cv_CC_dependencies_compiler_type=$depmode
4591 break
4592 fi
4593 fi
4594 done
4595
4596 cd ..
4597 rm -rf conftest.dir
4598 else
4599 am_cv_CC_dependencies_compiler_type=none
4600 fi
4601
4602 fi
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4604 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4606
4607 if
4608 test "x$enable_dependency_tracking" != xno \
4609 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4610 am__fastdepCC_TRUE=
4611 am__fastdepCC_FALSE='#'
4612 else
4613 am__fastdepCC_TRUE='#'
4614 am__fastdepCC_FALSE=
4615 fi
4616
4617
4618
4619
4620 if test -n "$ac_tool_prefix"; then
4621 for ac_prog in ar lib "link -lib"
4622 do
4623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 printf %s "checking for $ac_word... " >&6; }
4627 if test ${ac_cv_prog_AR+y}
4628 then :
4629 printf %s "(cached) " >&6
4630 else $as_nop
4631 if test -n "$AR"; then
4632 ac_cv_prog_AR="$AR" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 case $as_dir in #(((
4639 '') as_dir=./ ;;
4640 */) ;;
4641 *) as_dir=$as_dir/ ;;
4642 esac
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 AR=$ac_cv_prog_AR
4656 if test -n "$AR"; then
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4658 printf "%s\n" "$AR" >&6; }
4659 else
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 printf "%s\n" "no" >&6; }
4662 fi
4663
4664
4665 test -n "$AR" && break
4666 done
4667 fi
4668 if test -z "$AR"; then
4669 ac_ct_AR=$AR
4670 for ac_prog in ar lib "link -lib"
4671 do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 printf %s "checking for $ac_word... " >&6; }
4676 if test ${ac_cv_prog_ac_ct_AR+y}
4677 then :
4678 printf %s "(cached) " >&6
4679 else $as_nop
4680 if test -n "$ac_ct_AR"; then
4681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 case $as_dir in #(((
4688 '') as_dir=./ ;;
4689 */) ;;
4690 *) as_dir=$as_dir/ ;;
4691 esac
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4694 ac_cv_prog_ac_ct_AR="$ac_prog"
4695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4705 if test -n "$ac_ct_AR"; then
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4707 printf "%s\n" "$ac_ct_AR" >&6; }
4708 else
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 printf "%s\n" "no" >&6; }
4711 fi
4712
4713
4714 test -n "$ac_ct_AR" && break
4715 done
4716
4717 if test "x$ac_ct_AR" = x; then
4718 AR="false"
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726 AR=$ac_ct_AR
4727 fi
4728 fi
4729
4730 : ${AR=ar}
4731
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4733 printf %s "checking the archiver ($AR) interface... " >&6; }
4734 if test ${am_cv_ar_interface+y}
4735 then :
4736 printf %s "(cached) " >&6
4737 else $as_nop
4738 ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
4744 am_cv_ar_interface=ar
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 int some_variable = 0;
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"
4750 then :
4751 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4753 (eval $am_ar_try) 2>&5
4754 ac_status=$?
4755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757 if test "$ac_status" -eq 0; then
4758 am_cv_ar_interface=ar
4759 else
4760 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4762 (eval $am_ar_try) 2>&5
4763 ac_status=$?
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }
4766 if test "$ac_status" -eq 0; then
4767 am_cv_ar_interface=lib
4768 else
4769 am_cv_ar_interface=unknown
4770 fi
4771 fi
4772 rm -f conftest.lib libconftest.a
4773
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781
4782 fi
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4784 printf "%s\n" "$am_cv_ar_interface" >&6; }
4785
4786 case $am_cv_ar_interface in
4787 ar)
4788 ;;
4789 lib)
4790 # Microsoft lib, so override with the ar-lib wrapper script.
4791 # FIXME: It is wrong to rewrite AR.
4792 # But if we don't then we get into trouble of one sort or another.
4793 # A longer-term fix would be to have automake use am__AR in this case,
4794 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4795 # similar.
4796 AR="$am_aux_dir/ar-lib $AR"
4797 ;;
4798 unknown)
4799 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4800 ;;
4801 esac
4802
4803
4804 case `pwd` in
4805 *\ * | *\ *)
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4807 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4808 esac
4809
4810
4811
4812 macro_version='2.4.7'
4813 macro_revision='2.4.7'
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 ltmain=$ac_aux_dir/ltmain.sh
4829
4830 # Backslashify metacharacters that are still active within
4831 # double-quoted strings.
4832 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4833
4834 # Same as above, but do not quote variable references.
4835 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4836
4837 # Sed substitution to delay expansion of an escaped shell variable in a
4838 # double_quote_subst'ed string.
4839 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4840
4841 # Sed substitution to delay expansion of an escaped single quote.
4842 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4843
4844 # Sed substitution to avoid accidental globbing in evaled expressions
4845 no_glob_subst='s/\*/\\\*/g'
4846
4847 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4849 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4850
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4852 printf %s "checking how to print strings... " >&6; }
4853 # Test print first, because it will be a builtin if present.
4854 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4855 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4856 ECHO='print -r --'
4857 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4858 ECHO='printf %s\n'
4859 else
4860 # Use this function as a fallback that always works.
4861 func_fallback_echo ()
4862 {
4863 eval 'cat <<_LTECHO_EOF
4864 $1
4865 _LTECHO_EOF'
4866 }
4867 ECHO='func_fallback_echo'
4868 fi
4869
4870 # func_echo_all arg...
4871 # Invoke $ECHO with all args, space-separated.
4872 func_echo_all ()
4873 {
4874 $ECHO ""
4875 }
4876
4877 case $ECHO in
4878 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4879 printf "%s\n" "printf" >&6; } ;;
4880 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4881 printf "%s\n" "print -r" >&6; } ;;
4882 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4883 printf "%s\n" "cat" >&6; } ;;
4884 esac
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4900 printf %s "checking for a sed that does not truncate output... " >&6; }
4901 if test ${ac_cv_path_SED+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4906 for ac_i in 1 2 3 4 5 6 7; do
4907 ac_script="$ac_script$as_nl$ac_script"
4908 done
4909 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4910 { ac_script=; unset ac_script;}
4911 if test -z "$SED"; then
4912 ac_path_SED_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 case $as_dir in #(((
4919 '') as_dir=./ ;;
4920 */) ;;
4921 *) as_dir=$as_dir/ ;;
4922 esac
4923 for ac_prog in sed gsed
4924 do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4927 as_fn_executable_p "$ac_path_SED" || continue
4928 # Check for GNU ac_path_SED and select it if it is found.
4929 # Check for GNU $ac_path_SED
4930 case `"$ac_path_SED" --version 2>&1` in
4931 *GNU*)
4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4933 *)
4934 ac_count=0
4935 printf %s 0123456789 >"conftest.in"
4936 while :
4937 do
4938 cat "conftest.in" "conftest.in" >"conftest.tmp"
4939 mv "conftest.tmp" "conftest.in"
4940 cp "conftest.in" "conftest.nl"
4941 printf "%s\n" '' >> "conftest.nl"
4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944 as_fn_arith $ac_count + 1 && ac_count=$as_val
4945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4946 # Best one so far, save it but keep looking for a better one
4947 ac_cv_path_SED="$ac_path_SED"
4948 ac_path_SED_max=$ac_count
4949 fi
4950 # 10*(2^10) chars as input seems more than enough
4951 test $ac_count -gt 10 && break
4952 done
4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954 esac
4955
4956 $ac_path_SED_found && break 3
4957 done
4958 done
4959 done
4960 IFS=$as_save_IFS
4961 if test -z "$ac_cv_path_SED"; then
4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4963 fi
4964 else
4965 ac_cv_path_SED=$SED
4966 fi
4967
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4970 printf "%s\n" "$ac_cv_path_SED" >&6; }
4971 SED="$ac_cv_path_SED"
4972 rm -f conftest.sed
4973
4974 test -z "$SED" && SED=sed
4975 Xsed="$SED -e 1s/^X//"
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4988 printf %s "checking for grep that handles long lines and -e... " >&6; }
4989 if test ${ac_cv_path_GREP+y}
4990 then :
4991 printf %s "(cached) " >&6
4992 else $as_nop
4993 if test -z "$GREP"; then
4994 ac_path_GREP_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998 do
4999 IFS=$as_save_IFS
5000 case $as_dir in #(((
5001 '') as_dir=./ ;;
5002 */) ;;
5003 *) as_dir=$as_dir/ ;;
5004 esac
5005 for ac_prog in grep ggrep
5006 do
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5009 as_fn_executable_p "$ac_path_GREP" || continue
5010 # Check for GNU ac_path_GREP and select it if it is found.
5011 # Check for GNU $ac_path_GREP
5012 case `"$ac_path_GREP" --version 2>&1` in
5013 *GNU*)
5014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5015 *)
5016 ac_count=0
5017 printf %s 0123456789 >"conftest.in"
5018 while :
5019 do
5020 cat "conftest.in" "conftest.in" >"conftest.tmp"
5021 mv "conftest.tmp" "conftest.in"
5022 cp "conftest.in" "conftest.nl"
5023 printf "%s\n" 'GREP' >> "conftest.nl"
5024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026 as_fn_arith $ac_count + 1 && ac_count=$as_val
5027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5028 # Best one so far, save it but keep looking for a better one
5029 ac_cv_path_GREP="$ac_path_GREP"
5030 ac_path_GREP_max=$ac_count
5031 fi
5032 # 10*(2^10) chars as input seems more than enough
5033 test $ac_count -gt 10 && break
5034 done
5035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036 esac
5037
5038 $ac_path_GREP_found && break 3
5039 done
5040 done
5041 done
5042 IFS=$as_save_IFS
5043 if test -z "$ac_cv_path_GREP"; then
5044 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5045 fi
5046 else
5047 ac_cv_path_GREP=$GREP
5048 fi
5049
5050 fi
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5052 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5053 GREP="$ac_cv_path_GREP"
5054
5055
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5057 printf %s "checking for egrep... " >&6; }
5058 if test ${ac_cv_path_EGREP+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else $as_nop
5062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5063 then ac_cv_path_EGREP="$GREP -E"
5064 else
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5070 do
5071 IFS=$as_save_IFS
5072 case $as_dir in #(((
5073 '') as_dir=./ ;;
5074 */) ;;
5075 *) as_dir=$as_dir/ ;;
5076 esac
5077 for ac_prog in egrep
5078 do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5081 as_fn_executable_p "$ac_path_EGREP" || continue
5082 # Check for GNU ac_path_EGREP and select it if it is found.
5083 # Check for GNU $ac_path_EGREP
5084 case `"$ac_path_EGREP" --version 2>&1` in
5085 *GNU*)
5086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5087 *)
5088 ac_count=0
5089 printf %s 0123456789 >"conftest.in"
5090 while :
5091 do
5092 cat "conftest.in" "conftest.in" >"conftest.tmp"
5093 mv "conftest.tmp" "conftest.in"
5094 cp "conftest.in" "conftest.nl"
5095 printf "%s\n" 'EGREP' >> "conftest.nl"
5096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098 as_fn_arith $ac_count + 1 && ac_count=$as_val
5099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5100 # Best one so far, save it but keep looking for a better one
5101 ac_cv_path_EGREP="$ac_path_EGREP"
5102 ac_path_EGREP_max=$ac_count
5103 fi
5104 # 10*(2^10) chars as input seems more than enough
5105 test $ac_count -gt 10 && break
5106 done
5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108 esac
5109
5110 $ac_path_EGREP_found && break 3
5111 done
5112 done
5113 done
5114 IFS=$as_save_IFS
5115 if test -z "$ac_cv_path_EGREP"; then
5116 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 fi
5118 else
5119 ac_cv_path_EGREP=$EGREP
5120 fi
5121
5122 fi
5123 fi
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5125 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5126 EGREP="$ac_cv_path_EGREP"
5127
5128
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5130 printf %s "checking for fgrep... " >&6; }
5131 if test ${ac_cv_path_FGREP+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else $as_nop
5135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5136 then ac_cv_path_FGREP="$GREP -F"
5137 else
5138 if test -z "$FGREP"; then
5139 ac_path_FGREP_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5143 do
5144 IFS=$as_save_IFS
5145 case $as_dir in #(((
5146 '') as_dir=./ ;;
5147 */) ;;
5148 *) as_dir=$as_dir/ ;;
5149 esac
5150 for ac_prog in fgrep
5151 do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5154 as_fn_executable_p "$ac_path_FGREP" || continue
5155 # Check for GNU ac_path_FGREP and select it if it is found.
5156 # Check for GNU $ac_path_FGREP
5157 case `"$ac_path_FGREP" --version 2>&1` in
5158 *GNU*)
5159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5160 *)
5161 ac_count=0
5162 printf %s 0123456789 >"conftest.in"
5163 while :
5164 do
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 printf "%s\n" 'FGREP' >> "conftest.nl"
5169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_FGREP="$ac_path_FGREP"
5175 ac_path_FGREP_max=$ac_count
5176 fi
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181 esac
5182
5183 $ac_path_FGREP_found && break 3
5184 done
5185 done
5186 done
5187 IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_FGREP"; then
5189 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5190 fi
5191 else
5192 ac_cv_path_FGREP=$FGREP
5193 fi
5194
5195 fi
5196 fi
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5198 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5199 FGREP="$ac_cv_path_FGREP"
5200
5201
5202 test -z "$GREP" && GREP=grep
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 # Check whether --with-gnu-ld was given.
5223 if test ${with_gnu_ld+y}
5224 then :
5225 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5226 else $as_nop
5227 with_gnu_ld=no
5228 fi
5229
5230 ac_prog=ld
5231 if test yes = "$GCC"; then
5232 # Check if gcc -print-prog-name=ld gives a path.
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5234 printf %s "checking for ld used by $CC... " >&6; }
5235 case $host in
5236 *-*-mingw*)
5237 # gcc leaves a trailing carriage return, which upsets mingw
5238 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5239 *)
5240 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5241 esac
5242 case $ac_prog in
5243 # Accept absolute paths.
5244 [\\/]* | ?:[\\/]*)
5245 re_direlt='/[^/][^/]*/\.\./'
5246 # Canonicalize the pathname of ld
5247 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5248 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5249 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5250 done
5251 test -z "$LD" && LD=$ac_prog
5252 ;;
5253 "")
5254 # If it fails, then pretend we aren't using GCC.
5255 ac_prog=ld
5256 ;;
5257 *)
5258 # If it is relative, then search for the first ld in PATH.
5259 with_gnu_ld=unknown
5260 ;;
5261 esac
5262 elif test yes = "$with_gnu_ld"; then
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5264 printf %s "checking for GNU ld... " >&6; }
5265 else
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5267 printf %s "checking for non-GNU ld... " >&6; }
5268 fi
5269 if test ${lt_cv_path_LD+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else $as_nop
5273 if test -z "$LD"; then
5274 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5275 for ac_dir in $PATH; do
5276 IFS=$lt_save_ifs
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5279 lt_cv_path_LD=$ac_dir/$ac_prog
5280 # Check to see if the program is GNU ld. I'd rather use --version,
5281 # but apparently some variants of GNU ld only accept -v.
5282 # Break only if it was the GNU/non-GNU ld that we prefer.
5283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5284 *GNU* | *'with BFD'*)
5285 test no != "$with_gnu_ld" && break
5286 ;;
5287 *)
5288 test yes != "$with_gnu_ld" && break
5289 ;;
5290 esac
5291 fi
5292 done
5293 IFS=$lt_save_ifs
5294 else
5295 lt_cv_path_LD=$LD # Let the user override the test with a path.
5296 fi
5297 fi
5298
5299 LD=$lt_cv_path_LD
5300 if test -n "$LD"; then
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5302 printf "%s\n" "$LD" >&6; }
5303 else
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 printf "%s\n" "no" >&6; }
5306 fi
5307 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5309 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5310 if test ${lt_cv_prog_gnu_ld+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5315 case `$LD -v 2>&1 </dev/null` in
5316 *GNU* | *'with BFD'*)
5317 lt_cv_prog_gnu_ld=yes
5318 ;;
5319 *)
5320 lt_cv_prog_gnu_ld=no
5321 ;;
5322 esac
5323 fi
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5325 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5326 with_gnu_ld=$lt_cv_prog_gnu_ld
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5337 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5338 if test ${lt_cv_path_NM+y}
5339 then :
5340 printf %s "(cached) " >&6
5341 else $as_nop
5342 if test -n "$NM"; then
5343 # Let the user override the test.
5344 lt_cv_path_NM=$NM
5345 else
5346 lt_nm_to_check=${ac_tool_prefix}nm
5347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5348 lt_nm_to_check="$lt_nm_to_check nm"
5349 fi
5350 for lt_tmp_nm in $lt_nm_to_check; do
5351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5352 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5353 IFS=$lt_save_ifs
5354 test -z "$ac_dir" && ac_dir=.
5355 tmp_nm=$ac_dir/$lt_tmp_nm
5356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5357 # Check to see if the nm accepts a BSD-compat flag.
5358 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5359 # nm: unknown option "B" ignored
5360 # Tru64's nm complains that /dev/null is an invalid object file
5361 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5362 case $build_os in
5363 mingw*) lt_bad_file=conftest.nm/nofile ;;
5364 *) lt_bad_file=/dev/null ;;
5365 esac
5366 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5367 *$lt_bad_file* | *'Invalid file or object type'*)
5368 lt_cv_path_NM="$tmp_nm -B"
5369 break 2
5370 ;;
5371 *)
5372 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5373 */dev/null*)
5374 lt_cv_path_NM="$tmp_nm -p"
5375 break 2
5376 ;;
5377 *)
5378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5379 continue # so that we can try to find one that supports BSD flags
5380 ;;
5381 esac
5382 ;;
5383 esac
5384 fi
5385 done
5386 IFS=$lt_save_ifs
5387 done
5388 : ${lt_cv_path_NM=no}
5389 fi
5390 fi
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5392 printf "%s\n" "$lt_cv_path_NM" >&6; }
5393 if test no != "$lt_cv_path_NM"; then
5394 NM=$lt_cv_path_NM
5395 else
5396 # Didn't find any BSD compatible name lister, look for dumpbin.
5397 if test -n "$DUMPBIN"; then :
5398 # Let the user override the test.
5399 else
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in dumpbin "link -dump"
5402 do
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 printf %s "checking for $ac_word... " >&6; }
5407 if test ${ac_cv_prog_DUMPBIN+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 if test -n "$DUMPBIN"; then
5412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 case $as_dir in #(((
5419 '') as_dir=./ ;;
5420 */) ;;
5421 *) as_dir=$as_dir/ ;;
5422 esac
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 DUMPBIN=$ac_cv_prog_DUMPBIN
5436 if test -n "$DUMPBIN"; then
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5438 printf "%s\n" "$DUMPBIN" >&6; }
5439 else
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 printf "%s\n" "no" >&6; }
5442 fi
5443
5444
5445 test -n "$DUMPBIN" && break
5446 done
5447 fi
5448 if test -z "$DUMPBIN"; then
5449 ac_ct_DUMPBIN=$DUMPBIN
5450 for ac_prog in dumpbin "link -dump"
5451 do
5452 # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 printf %s "checking for $ac_word... " >&6; }
5456 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else $as_nop
5460 if test -n "$ac_ct_DUMPBIN"; then
5461 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 case $as_dir in #(((
5468 '') as_dir=./ ;;
5469 */) ;;
5470 *) as_dir=$as_dir/ ;;
5471 esac
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5485 if test -n "$ac_ct_DUMPBIN"; then
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5487 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5488 else
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 printf "%s\n" "no" >&6; }
5491 fi
5492
5493
5494 test -n "$ac_ct_DUMPBIN" && break
5495 done
5496
5497 if test "x$ac_ct_DUMPBIN" = x; then
5498 DUMPBIN=":"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501 yes:)
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5505 esac
5506 DUMPBIN=$ac_ct_DUMPBIN
5507 fi
5508 fi
5509
5510 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5511 *COFF*)
5512 DUMPBIN="$DUMPBIN -symbols -headers"
5513 ;;
5514 *)
5515 DUMPBIN=:
5516 ;;
5517 esac
5518 fi
5519
5520 if test : != "$DUMPBIN"; then
5521 NM=$DUMPBIN
5522 fi
5523 fi
5524 test -z "$NM" && NM=nm
5525
5526
5527
5528
5529
5530
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5532 printf %s "checking the name lister ($NM) interface... " >&6; }
5533 if test ${lt_cv_nm_interface+y}
5534 then :
5535 printf %s "(cached) " >&6
5536 else $as_nop
5537 lt_cv_nm_interface="BSD nm"
5538 echo "int some_variable = 0;" > conftest.$ac_ext
5539 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5540 (eval "$ac_compile" 2>conftest.err)
5541 cat conftest.err >&5
5542 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5543 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5544 cat conftest.err >&5
5545 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5546 cat conftest.out >&5
5547 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5548 lt_cv_nm_interface="MS dumpbin"
5549 fi
5550 rm -f conftest*
5551 fi
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5553 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5554
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5556 printf %s "checking whether ln -s works... " >&6; }
5557 LN_S=$as_ln_s
5558 if test "$LN_S" = "ln -s"; then
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5560 printf "%s\n" "yes" >&6; }
5561 else
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5563 printf "%s\n" "no, using $LN_S" >&6; }
5564 fi
5565
5566 # find the maximum length of command line arguments
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5568 printf %s "checking the maximum length of command line arguments... " >&6; }
5569 if test ${lt_cv_sys_max_cmd_len+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else $as_nop
5573 i=0
5574 teststring=ABCD
5575
5576 case $build_os in
5577 msdosdjgpp*)
5578 # On DJGPP, this test can blow up pretty badly due to problems in libc
5579 # (any single argument exceeding 2000 bytes causes a buffer overrun
5580 # during glob expansion). Even if it were fixed, the result of this
5581 # check would be larger than it should be.
5582 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5583 ;;
5584
5585 gnu*)
5586 # Under GNU Hurd, this test is not required because there is
5587 # no limit to the length of command line arguments.
5588 # Libtool will interpret -1 as no limit whatsoever
5589 lt_cv_sys_max_cmd_len=-1;
5590 ;;
5591
5592 cygwin* | mingw* | cegcc*)
5593 # On Win9x/ME, this test blows up -- it succeeds, but takes
5594 # about 5 minutes as the teststring grows exponentially.
5595 # Worse, since 9x/ME are not pre-emptively multitasking,
5596 # you end up with a "frozen" computer, even though with patience
5597 # the test eventually succeeds (with a max line length of 256k).
5598 # Instead, let's just punt: use the minimum linelength reported by
5599 # all of the supported platforms: 8192 (on NT/2K/XP).
5600 lt_cv_sys_max_cmd_len=8192;
5601 ;;
5602
5603 mint*)
5604 # On MiNT this can take a long time and run out of memory.
5605 lt_cv_sys_max_cmd_len=8192;
5606 ;;
5607
5608 amigaos*)
5609 # On AmigaOS with pdksh, this test takes hours, literally.
5610 # So we just punt and use a minimum line length of 8192.
5611 lt_cv_sys_max_cmd_len=8192;
5612 ;;
5613
5614 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5615 # This has been around since 386BSD, at least. Likely further.
5616 if test -x /sbin/sysctl; then
5617 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5618 elif test -x /usr/sbin/sysctl; then
5619 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5620 else
5621 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5622 fi
5623 # And add a safety zone
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626 ;;
5627
5628 interix*)
5629 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5630 lt_cv_sys_max_cmd_len=196608
5631 ;;
5632
5633 os2*)
5634 # The test takes a long time on OS/2.
5635 lt_cv_sys_max_cmd_len=8192
5636 ;;
5637
5638 osf*)
5639 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5640 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5641 # nice to cause kernel panics so lets avoid the loop below.
5642 # First set a reasonable default.
5643 lt_cv_sys_max_cmd_len=16384
5644 #
5645 if test -x /sbin/sysconfig; then
5646 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5647 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5648 esac
5649 fi
5650 ;;
5651 sco3.2v5*)
5652 lt_cv_sys_max_cmd_len=102400
5653 ;;
5654 sysv5* | sco5v6* | sysv4.2uw2*)
5655 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5656 if test -n "$kargmax"; then
5657 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5658 else
5659 lt_cv_sys_max_cmd_len=32768
5660 fi
5661 ;;
5662 *)
5663 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5664 if test -n "$lt_cv_sys_max_cmd_len" && \
5665 test undefined != "$lt_cv_sys_max_cmd_len"; then
5666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5668 else
5669 # Make teststring a little bigger before we do anything with it.
5670 # a 1K string should be a reasonable start.
5671 for i in 1 2 3 4 5 6 7 8; do
5672 teststring=$teststring$teststring
5673 done
5674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5675 # If test is not a shell built-in, we'll probably end up computing a
5676 # maximum length that is only half of the actual maximum length, but
5677 # we can't tell.
5678 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5679 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5680 test 17 != "$i" # 1/2 MB should be enough
5681 do
5682 i=`expr $i + 1`
5683 teststring=$teststring$teststring
5684 done
5685 # Only check the string length outside the loop.
5686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5687 teststring=
5688 # Add a significant safety factor because C++ compilers can tack on
5689 # massive amounts of additional arguments before passing them to the
5690 # linker. It appears as though 1/2 is a usable value.
5691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5692 fi
5693 ;;
5694 esac
5695
5696 fi
5697
5698 if test -n "$lt_cv_sys_max_cmd_len"; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5700 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5701 else
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5703 printf "%s\n" "none" >&6; }
5704 fi
5705 max_cmd_len=$lt_cv_sys_max_cmd_len
5706
5707
5708
5709
5710
5711
5712 : ${CP="cp -f"}
5713 : ${MV="mv -f"}
5714 : ${RM="rm -f"}
5715
5716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5717 lt_unset=unset
5718 else
5719 lt_unset=false
5720 fi
5721
5722
5723
5724
5725
5726 # test EBCDIC or ASCII
5727 case `echo X|tr X '\101'` in
5728 A) # ASCII based system
5729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5730 lt_SP2NL='tr \040 \012'
5731 lt_NL2SP='tr \015\012 \040\040'
5732 ;;
5733 *) # EBCDIC based system
5734 lt_SP2NL='tr \100 \n'
5735 lt_NL2SP='tr \r\n \100\100'
5736 ;;
5737 esac
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5748 printf %s "checking how to convert $build file names to $host format... " >&6; }
5749 if test ${lt_cv_to_host_file_cmd+y}
5750 then :
5751 printf %s "(cached) " >&6
5752 else $as_nop
5753 case $host in
5754 *-*-mingw* )
5755 case $build in
5756 *-*-mingw* ) # actually msys
5757 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5758 ;;
5759 *-*-cygwin* )
5760 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5761 ;;
5762 * ) # otherwise, assume *nix
5763 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5764 ;;
5765 esac
5766 ;;
5767 *-*-cygwin* )
5768 case $build in
5769 *-*-mingw* ) # actually msys
5770 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5771 ;;
5772 *-*-cygwin* )
5773 lt_cv_to_host_file_cmd=func_convert_file_noop
5774 ;;
5775 * ) # otherwise, assume *nix
5776 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5777 ;;
5778 esac
5779 ;;
5780 * ) # unhandled hosts (and "normal" native builds)
5781 lt_cv_to_host_file_cmd=func_convert_file_noop
5782 ;;
5783 esac
5784
5785 fi
5786
5787 to_host_file_cmd=$lt_cv_to_host_file_cmd
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5789 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5790
5791
5792
5793
5794
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5796 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5797 if test ${lt_cv_to_tool_file_cmd+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 #assume ordinary cross tools, or native build.
5802 lt_cv_to_tool_file_cmd=func_convert_file_noop
5803 case $host in
5804 *-*-mingw* )
5805 case $build in
5806 *-*-mingw* ) # actually msys
5807 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5808 ;;
5809 esac
5810 ;;
5811 esac
5812
5813 fi
5814
5815 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5817 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5818
5819
5820
5821
5822
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5824 printf %s "checking for $LD option to reload object files... " >&6; }
5825 if test ${lt_cv_ld_reload_flag+y}
5826 then :
5827 printf %s "(cached) " >&6
5828 else $as_nop
5829 lt_cv_ld_reload_flag='-r'
5830 fi
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5832 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5833 reload_flag=$lt_cv_ld_reload_flag
5834 case $reload_flag in
5835 "" | " "*) ;;
5836 *) reload_flag=" $reload_flag" ;;
5837 esac
5838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5839 case $host_os in
5840 cygwin* | mingw* | pw32* | cegcc*)
5841 if test yes != "$GCC"; then
5842 reload_cmds=false
5843 fi
5844 ;;
5845 darwin*)
5846 if test yes = "$GCC"; then
5847 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5848 else
5849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5850 fi
5851 ;;
5852 esac
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}file; ac_word=$2
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 printf %s "checking for $ac_word... " >&6; }
5867 if test ${ac_cv_prog_FILECMD+y}
5868 then :
5869 printf %s "(cached) " >&6
5870 else $as_nop
5871 if test -n "$FILECMD"; then
5872 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877 IFS=$as_save_IFS
5878 case $as_dir in #(((
5879 '') as_dir=./ ;;
5880 */) ;;
5881 *) as_dir=$as_dir/ ;;
5882 esac
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 FILECMD=$ac_cv_prog_FILECMD
5896 if test -n "$FILECMD"; then
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5898 printf "%s\n" "$FILECMD" >&6; }
5899 else
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 printf "%s\n" "no" >&6; }
5902 fi
5903
5904
5905 fi
5906 if test -z "$ac_cv_prog_FILECMD"; then
5907 ac_ct_FILECMD=$FILECMD
5908 # Extract the first word of "file", so it can be a program name with args.
5909 set dummy file; ac_word=$2
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 printf %s "checking for $ac_word... " >&6; }
5912 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else $as_nop
5916 if test -n "$ac_ct_FILECMD"; then
5917 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922 IFS=$as_save_IFS
5923 case $as_dir in #(((
5924 '') as_dir=./ ;;
5925 */) ;;
5926 *) as_dir=$as_dir/ ;;
5927 esac
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_FILECMD="file"
5931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5941 if test -n "$ac_ct_FILECMD"; then
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5943 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5944 else
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 printf "%s\n" "no" >&6; }
5947 fi
5948
5949 if test "x$ac_ct_FILECMD" = x; then
5950 FILECMD=":"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 FILECMD=$ac_ct_FILECMD
5959 fi
5960 else
5961 FILECMD="$ac_cv_prog_FILECMD"
5962 fi
5963
5964
5965
5966
5967
5968
5969
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 printf %s "checking for $ac_word... " >&6; }
5975 if test ${ac_cv_prog_OBJDUMP+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else $as_nop
5979 if test -n "$OBJDUMP"; then
5980 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 case $as_dir in #(((
5987 '') as_dir=./ ;;
5988 */) ;;
5989 *) as_dir=$as_dir/ ;;
5990 esac
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997 done
5998 done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6006 printf "%s\n" "$OBJDUMP" >&6; }
6007 else
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 printf "%s\n" "no" >&6; }
6010 fi
6011
6012
6013 fi
6014 if test -z "$ac_cv_prog_OBJDUMP"; then
6015 ac_ct_OBJDUMP=$OBJDUMP
6016 # Extract the first word of "objdump", so it can be a program name with args.
6017 set dummy objdump; ac_word=$2
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 printf %s "checking for $ac_word... " >&6; }
6020 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6021 then :
6022 printf %s "(cached) " >&6
6023 else $as_nop
6024 if test -n "$ac_ct_OBJDUMP"; then
6025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 case $as_dir in #(((
6032 '') as_dir=./ ;;
6033 */) ;;
6034 *) as_dir=$as_dir/ ;;
6035 esac
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046 fi
6047 fi
6048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6049 if test -n "$ac_ct_OBJDUMP"; then
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6051 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6052 else
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 printf "%s\n" "no" >&6; }
6055 fi
6056
6057 if test "x$ac_ct_OBJDUMP" = x; then
6058 OBJDUMP="false"
6059 else
6060 case $cross_compiling:$ac_tool_warned in
6061 yes:)
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066 OBJDUMP=$ac_ct_OBJDUMP
6067 fi
6068 else
6069 OBJDUMP="$ac_cv_prog_OBJDUMP"
6070 fi
6071
6072 test -z "$OBJDUMP" && OBJDUMP=objdump
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6083 printf %s "checking how to recognize dependent libraries... " >&6; }
6084 if test ${lt_cv_deplibs_check_method+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 lt_cv_file_magic_cmd='$MAGIC_CMD'
6089 lt_cv_file_magic_test_file=
6090 lt_cv_deplibs_check_method='unknown'
6091 # Need to set the preceding variable on all platforms that support
6092 # interlibrary dependencies.
6093 # 'none' -- dependencies not supported.
6094 # 'unknown' -- same as none, but documents that we really don't know.
6095 # 'pass_all' -- all dependencies passed with no checks.
6096 # 'test_compile' -- check by making test program.
6097 # 'file_magic [[regex]]' -- check by looking for files in library path
6098 # that responds to the $file_magic_cmd with a given extended regex.
6099 # If you have 'file' or equivalent on your system and you're not sure
6100 # whether 'pass_all' will *always* work, you probably want this one.
6101
6102 case $host_os in
6103 aix[4-9]*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 beos*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 bsdi[45]*)
6112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6113 lt_cv_file_magic_cmd='$FILECMD -L'
6114 lt_cv_file_magic_test_file=/shlib/libc.so
6115 ;;
6116
6117 cygwin*)
6118 # func_win32_libid is a shell function defined in ltmain.sh
6119 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6120 lt_cv_file_magic_cmd='func_win32_libid'
6121 ;;
6122
6123 mingw* | pw32*)
6124 # Base MSYS/MinGW do not provide the 'file' command needed by
6125 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6126 # unless we find 'file', for example because we are cross-compiling.
6127 if ( file / ) >/dev/null 2>&1; then
6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6129 lt_cv_file_magic_cmd='func_win32_libid'
6130 else
6131 # Keep this pattern in sync with the one in func_win32_libid.
6132 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6133 lt_cv_file_magic_cmd='$OBJDUMP -f'
6134 fi
6135 ;;
6136
6137 cegcc*)
6138 # use the weaker test based on 'objdump'. See mingw*.
6139 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 ;;
6142
6143 darwin* | rhapsody*)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146
6147 freebsd* | dragonfly* | midnightbsd*)
6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149 case $host_cpu in
6150 i*86 )
6151 # Not sure whether the presence of OpenBSD here was a mistake.
6152 # Let's accept both of them until this is cleared up.
6153 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6154 lt_cv_file_magic_cmd=$FILECMD
6155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6156 ;;
6157 esac
6158 else
6159 lt_cv_deplibs_check_method=pass_all
6160 fi
6161 ;;
6162
6163 haiku*)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166
6167 hpux10.20* | hpux11*)
6168 lt_cv_file_magic_cmd=$FILECMD
6169 case $host_cpu in
6170 ia64*)
6171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6172 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6173 ;;
6174 hppa*64*)
6175 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]'
6176 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6177 ;;
6178 *)
6179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6180 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6181 ;;
6182 esac
6183 ;;
6184
6185 interix[3-9]*)
6186 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6188 ;;
6189
6190 irix5* | irix6* | nonstopux*)
6191 case $LD in
6192 *-32|*"-32 ") libmagic=32-bit;;
6193 *-n32|*"-n32 ") libmagic=N32;;
6194 *-64|*"-64 ") libmagic=64-bit;;
6195 *) libmagic=never-match;;
6196 esac
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 # This must be glibc/ELF.
6201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 netbsd* | netbsdelf*-gnu)
6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6210 fi
6211 ;;
6212
6213 newos6*)
6214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6215 lt_cv_file_magic_cmd=$FILECMD
6216 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6217 ;;
6218
6219 *nto* | *qnx*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 openbsd* | bitrig*)
6224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6226 else
6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6228 fi
6229 ;;
6230
6231 osf3* | osf4* | osf5*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 rdos*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 solaris*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 sysv4 | sysv4.3*)
6248 case $host_vendor in
6249 motorola)
6250 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]'
6251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6252 ;;
6253 ncr)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256 sequent)
6257 lt_cv_file_magic_cmd='/bin/file'
6258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6259 ;;
6260 sni)
6261 lt_cv_file_magic_cmd='/bin/file'
6262 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6263 lt_cv_file_magic_test_file=/lib/libc.so
6264 ;;
6265 siemens)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268 pc)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271 esac
6272 ;;
6273
6274 tpf*)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277 os2*)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280 esac
6281
6282 fi
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6284 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6285
6286 file_magic_glob=
6287 want_nocaseglob=no
6288 if test "$build" = "$host"; then
6289 case $host_os in
6290 mingw* | pw32*)
6291 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6292 want_nocaseglob=yes
6293 else
6294 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6295 fi
6296 ;;
6297 esac
6298 fi
6299
6300 file_magic_cmd=$lt_cv_file_magic_cmd
6301 deplibs_check_method=$lt_cv_deplibs_check_method
6302 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 if test -n "$ac_tool_prefix"; then
6326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6327 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 printf %s "checking for $ac_word... " >&6; }
6330 if test ${ac_cv_prog_DLLTOOL+y}
6331 then :
6332 printf %s "(cached) " >&6
6333 else $as_nop
6334 if test -n "$DLLTOOL"; then
6335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 case $as_dir in #(((
6342 '') as_dir=./ ;;
6343 */) ;;
6344 *) as_dir=$as_dir/ ;;
6345 esac
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 DLLTOOL=$ac_cv_prog_DLLTOOL
6359 if test -n "$DLLTOOL"; then
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6361 printf "%s\n" "$DLLTOOL" >&6; }
6362 else
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 printf "%s\n" "no" >&6; }
6365 fi
6366
6367
6368 fi
6369 if test -z "$ac_cv_prog_DLLTOOL"; then
6370 ac_ct_DLLTOOL=$DLLTOOL
6371 # Extract the first word of "dlltool", so it can be a program name with args.
6372 set dummy dlltool; ac_word=$2
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 printf %s "checking for $ac_word... " >&6; }
6375 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6376 then :
6377 printf %s "(cached) " >&6
6378 else $as_nop
6379 if test -n "$ac_ct_DLLTOOL"; then
6380 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 case $as_dir in #(((
6387 '') as_dir=./ ;;
6388 */) ;;
6389 *) as_dir=$as_dir/ ;;
6390 esac
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6404 if test -n "$ac_ct_DLLTOOL"; then
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6406 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6407 else
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 printf "%s\n" "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_DLLTOOL" = x; then
6413 DLLTOOL="false"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 DLLTOOL=$ac_ct_DLLTOOL
6422 fi
6423 else
6424 DLLTOOL="$ac_cv_prog_DLLTOOL"
6425 fi
6426
6427 test -z "$DLLTOOL" && DLLTOOL=dlltool
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6439 printf %s "checking how to associate runtime and link libraries... " >&6; }
6440 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6441 then :
6442 printf %s "(cached) " >&6
6443 else $as_nop
6444 lt_cv_sharedlib_from_linklib_cmd='unknown'
6445
6446 case $host_os in
6447 cygwin* | mingw* | pw32* | cegcc*)
6448 # two different shell functions defined in ltmain.sh;
6449 # decide which one to use based on capabilities of $DLLTOOL
6450 case `$DLLTOOL --help 2>&1` in
6451 *--identify-strict*)
6452 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6453 ;;
6454 *)
6455 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6456 ;;
6457 esac
6458 ;;
6459 *)
6460 # fallback: assume linklib IS sharedlib
6461 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6462 ;;
6463 esac
6464
6465 fi
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6467 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6468 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6469 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6470
6471
6472
6473
6474
6475
6476
6477 if test -n "$ac_tool_prefix"; then
6478 for ac_prog in ar
6479 do
6480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 printf %s "checking for $ac_word... " >&6; }
6484 if test ${ac_cv_prog_AR+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else $as_nop
6488 if test -n "$AR"; then
6489 ac_cv_prog_AR="$AR" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 AR=$ac_cv_prog_AR
6513 if test -n "$AR"; then
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6515 printf "%s\n" "$AR" >&6; }
6516 else
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 printf "%s\n" "no" >&6; }
6519 fi
6520
6521
6522 test -n "$AR" && break
6523 done
6524 fi
6525 if test -z "$AR"; then
6526 ac_ct_AR=$AR
6527 for ac_prog in ar
6528 do
6529 # Extract the first word of "$ac_prog", so it can be a program name with args.
6530 set dummy $ac_prog; ac_word=$2
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 printf %s "checking for $ac_word... " >&6; }
6533 if test ${ac_cv_prog_ac_ct_AR+y}
6534 then :
6535 printf %s "(cached) " >&6
6536 else $as_nop
6537 if test -n "$ac_ct_AR"; then
6538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 case $as_dir in #(((
6545 '') as_dir=./ ;;
6546 */) ;;
6547 *) as_dir=$as_dir/ ;;
6548 esac
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_AR="$ac_prog"
6552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562 if test -n "$ac_ct_AR"; then
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564 printf "%s\n" "$ac_ct_AR" >&6; }
6565 else
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 printf "%s\n" "no" >&6; }
6568 fi
6569
6570
6571 test -n "$ac_ct_AR" && break
6572 done
6573
6574 if test "x$ac_ct_AR" = x; then
6575 AR="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583 AR=$ac_ct_AR
6584 fi
6585 fi
6586
6587 : ${AR=ar}
6588
6589
6590
6591
6592
6593
6594 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6595 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6596 # higher priority because thats what people were doing historically (setting
6597 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6598 # variable obsoleted/removed.
6599
6600 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6601 lt_ar_flags=$AR_FLAGS
6602
6603
6604
6605
6606
6607
6608 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6609 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6610
6611
6612
6613
6614
6615
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6617 printf %s "checking for archiver @FILE support... " >&6; }
6618 if test ${lt_cv_ar_at_file+y}
6619 then :
6620 printf %s "(cached) " >&6
6621 else $as_nop
6622 lt_cv_ar_at_file=no
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625
6626 int
6627 main (void)
6628 {
6629
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"
6635 then :
6636 echo conftest.$ac_objext > conftest.lst
6637 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6639 (eval $lt_ar_try) 2>&5
6640 ac_status=$?
6641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }
6643 if test 0 -eq "$ac_status"; then
6644 # Ensure the archiver fails upon bogus file names.
6645 rm -f conftest.$ac_objext libconftest.a
6646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6647 (eval $lt_ar_try) 2>&5
6648 ac_status=$?
6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; }
6651 if test 0 -ne "$ac_status"; then
6652 lt_cv_ar_at_file=@
6653 fi
6654 fi
6655 rm -f conftest.* libconftest.a
6656
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6659
6660 fi
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6662 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6663
6664 if test no = "$lt_cv_ar_at_file"; then
6665 archiver_list_spec=
6666 else
6667 archiver_list_spec=$lt_cv_ar_at_file
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 printf %s "checking for $ac_word... " >&6; }
6681 if test ${ac_cv_prog_STRIP+y}
6682 then :
6683 printf %s "(cached) " >&6
6684 else $as_nop
6685 if test -n "$STRIP"; then
6686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 case $as_dir in #(((
6693 '') as_dir=./ ;;
6694 */) ;;
6695 *) as_dir=$as_dir/ ;;
6696 esac
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 STRIP=$ac_cv_prog_STRIP
6710 if test -n "$STRIP"; then
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6712 printf "%s\n" "$STRIP" >&6; }
6713 else
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 printf "%s\n" "no" >&6; }
6716 fi
6717
6718
6719 fi
6720 if test -z "$ac_cv_prog_STRIP"; then
6721 ac_ct_STRIP=$STRIP
6722 # Extract the first word of "strip", so it can be a program name with args.
6723 set dummy strip; ac_word=$2
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 printf %s "checking for $ac_word... " >&6; }
6726 if test ${ac_cv_prog_ac_ct_STRIP+y}
6727 then :
6728 printf %s "(cached) " >&6
6729 else $as_nop
6730 if test -n "$ac_ct_STRIP"; then
6731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 case $as_dir in #(((
6738 '') as_dir=./ ;;
6739 */) ;;
6740 *) as_dir=$as_dir/ ;;
6741 esac
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_STRIP="strip"
6745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755 if test -n "$ac_ct_STRIP"; then
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6757 printf "%s\n" "$ac_ct_STRIP" >&6; }
6758 else
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 printf "%s\n" "no" >&6; }
6761 fi
6762
6763 if test "x$ac_ct_STRIP" = x; then
6764 STRIP=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 STRIP=$ac_ct_STRIP
6773 fi
6774 else
6775 STRIP="$ac_cv_prog_STRIP"
6776 fi
6777
6778 test -z "$STRIP" && STRIP=:
6779
6780
6781
6782
6783
6784
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 printf %s "checking for $ac_word... " >&6; }
6790 if test ${ac_cv_prog_RANLIB+y}
6791 then :
6792 printf %s "(cached) " >&6
6793 else $as_nop
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 case $as_dir in #(((
6802 '') as_dir=./ ;;
6803 */) ;;
6804 *) as_dir=$as_dir/ ;;
6805 esac
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 printf "%s\n" "$RANLIB" >&6; }
6822 else
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 printf "%s\n" "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 printf %s "checking for $ac_word... " >&6; }
6835 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6836 then :
6837 printf %s "(cached) " >&6
6838 else $as_nop
6839 if test -n "$ac_ct_RANLIB"; then
6840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 case $as_dir in #(((
6847 '') as_dir=./ ;;
6848 */) ;;
6849 *) as_dir=$as_dir/ ;;
6850 esac
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_RANLIB="ranlib"
6854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6864 if test -n "$ac_ct_RANLIB"; then
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6866 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6867 else
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 printf "%s\n" "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_RANLIB" = x; then
6873 RANLIB=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 RANLIB=$ac_ct_RANLIB
6882 fi
6883 else
6884 RANLIB="$ac_cv_prog_RANLIB"
6885 fi
6886
6887 test -z "$RANLIB" && RANLIB=:
6888
6889
6890
6891
6892
6893
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6898
6899 if test -n "$RANLIB"; then
6900 case $host_os in
6901 bitrig* | openbsd*)
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6903 ;;
6904 *)
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6906 ;;
6907 esac
6908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6909 fi
6910
6911 case $host_os in
6912 darwin*)
6913 lock_old_archive_extraction=yes ;;
6914 *)
6915 lock_old_archive_extraction=no ;;
6916 esac
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 # If no C compiler was specified, use CC.
6957 LTCC=${LTCC-"$CC"}
6958
6959 # If no C compiler flags were specified, use CFLAGS.
6960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6961
6962 # Allow CC to be a program name with arguments.
6963 compiler=$CC
6964
6965
6966 # Check for command to grab the raw symbol name followed by C symbol from nm.
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6968 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6969 if test ${lt_cv_sys_global_symbol_pipe+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else $as_nop
6973
6974 # These are sane defaults that work on at least a few old systems.
6975 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6976
6977 # Character class describing NM global symbol codes.
6978 symcode='[BCDEGRST]'
6979
6980 # Regexp to match symbols that can be accessed directly from C.
6981 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6982
6983 # Define system-specific variables.
6984 case $host_os in
6985 aix*)
6986 symcode='[BCDT]'
6987 ;;
6988 cygwin* | mingw* | pw32* | cegcc*)
6989 symcode='[ABCDGISTW]'
6990 ;;
6991 hpux*)
6992 if test ia64 = "$host_cpu"; then
6993 symcode='[ABCDEGRST]'
6994 fi
6995 ;;
6996 irix* | nonstopux*)
6997 symcode='[BCDEGRST]'
6998 ;;
6999 osf*)
7000 symcode='[BCDEGQRST]'
7001 ;;
7002 solaris*)
7003 symcode='[BDRT]'
7004 ;;
7005 sco3.2v5*)
7006 symcode='[DT]'
7007 ;;
7008 sysv4.2uw2*)
7009 symcode='[DT]'
7010 ;;
7011 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7012 symcode='[ABDT]'
7013 ;;
7014 sysv4)
7015 symcode='[DFNSTU]'
7016 ;;
7017 esac
7018
7019 # If we're using GNU nm, then use its standard symbol codes.
7020 case `$NM -V 2>&1` in
7021 *GNU* | *'with BFD'*)
7022 symcode='[ABCDGIRSTW]' ;;
7023 esac
7024
7025 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7026 # Gets list of data symbols to import.
7027 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7028 # Adjust the below global symbol transforms to fixup imported variables.
7029 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7030 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7031 lt_c_name_lib_hook="\
7032 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7033 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7034 else
7035 # Disable hooks by default.
7036 lt_cv_sys_global_symbol_to_import=
7037 lt_cdecl_hook=
7038 lt_c_name_hook=
7039 lt_c_name_lib_hook=
7040 fi
7041
7042 # Transform an extracted symbol line into a proper C declaration.
7043 # Some systems (esp. on ia64) link data and code symbols differently,
7044 # so use this general approach.
7045 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7046 $lt_cdecl_hook\
7047 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7048 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7049
7050 # Transform an extracted symbol line into symbol name and symbol address
7051 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7052 $lt_c_name_hook\
7053 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7054 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7055
7056 # Transform an extracted symbol line into symbol name with lib prefix and
7057 # symbol address.
7058 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7059 $lt_c_name_lib_hook\
7060 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7061 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7062 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7063
7064 # Handle CRLF in mingw tool chain
7065 opt_cr=
7066 case $build_os in
7067 mingw*)
7068 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7069 ;;
7070 esac
7071
7072 # Try without a prefix underscore, then with it.
7073 for ac_symprfx in "" "_"; do
7074
7075 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7076 symxfrm="\\1 $ac_symprfx\\2 \\2"
7077
7078 # Write the raw and C identifiers.
7079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7080 # Fake it for dumpbin and say T for any non-static function,
7081 # D for any global variable and I for any imported variable.
7082 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7083 # which start with @ or ?.
7084 lt_cv_sys_global_symbol_pipe="$AWK '"\
7085 " {last_section=section; section=\$ 3};"\
7086 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7087 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7088 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7089 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7090 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7091 " \$ 0!~/External *\|/{next};"\
7092 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7093 " {if(hide[section]) next};"\
7094 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7095 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7096 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7097 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7098 " ' prfx=^$ac_symprfx"
7099 else
7100 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7101 fi
7102 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7103
7104 # Check to see that the pipe works correctly.
7105 pipe_works=no
7106
7107 rm -f conftest*
7108 cat > conftest.$ac_ext <<_LT_EOF
7109 #ifdef __cplusplus
7110 extern "C" {
7111 #endif
7112 char nm_test_var;
7113 void nm_test_func(void);
7114 void nm_test_func(void){}
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 int main(){nm_test_var='a';nm_test_func();return(0);}
7119 _LT_EOF
7120
7121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7122 (eval $ac_compile) 2>&5
7123 ac_status=$?
7124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125 test $ac_status = 0; }; then
7126 # Now try to grab the symbols.
7127 nlist=conftest.nm
7128 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7129 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7130 # Try sorting and uniquifying the output.
7131 if sort "$nlist" | uniq > "$nlist"T; then
7132 mv -f "$nlist"T "$nlist"
7133 else
7134 rm -f "$nlist"T
7135 fi
7136
7137 # Make sure that we snagged all the symbols we need.
7138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7140 cat <<_LT_EOF > conftest.$ac_ext
7141 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7142 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7143 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7144 relocations are performed -- see ld's documentation on pseudo-relocs. */
7145 # define LT_DLSYM_CONST
7146 #elif defined __osf__
7147 /* This system does not cope well with relocations in const data. */
7148 # define LT_DLSYM_CONST
7149 #else
7150 # define LT_DLSYM_CONST const
7151 #endif
7152
7153 #ifdef __cplusplus
7154 extern "C" {
7155 #endif
7156
7157 _LT_EOF
7158 # Now generate the symbol file.
7159 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7160
7161 cat <<_LT_EOF >> conftest.$ac_ext
7162
7163 /* The mapping between symbol names and symbols. */
7164 LT_DLSYM_CONST struct {
7165 const char *name;
7166 void *address;
7167 }
7168 lt__PROGRAM__LTX_preloaded_symbols[] =
7169 {
7170 { "@PROGRAM@", (void *) 0 },
7171 _LT_EOF
7172 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7173 cat <<\_LT_EOF >> conftest.$ac_ext
7174 {0, (void *) 0}
7175 };
7176
7177 /* This works around a problem in FreeBSD linker */
7178 #ifdef FREEBSD_WORKAROUND
7179 static const void *lt_preloaded_setup() {
7180 return lt__PROGRAM__LTX_preloaded_symbols;
7181 }
7182 #endif
7183
7184 #ifdef __cplusplus
7185 }
7186 #endif
7187 _LT_EOF
7188 # Now try linking the two files.
7189 mv conftest.$ac_objext conftstm.$ac_objext
7190 lt_globsym_save_LIBS=$LIBS
7191 lt_globsym_save_CFLAGS=$CFLAGS
7192 LIBS=conftstm.$ac_objext
7193 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7195 (eval $ac_link) 2>&5
7196 ac_status=$?
7197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7199 pipe_works=yes
7200 fi
7201 LIBS=$lt_globsym_save_LIBS
7202 CFLAGS=$lt_globsym_save_CFLAGS
7203 else
7204 echo "cannot find nm_test_func in $nlist" >&5
7205 fi
7206 else
7207 echo "cannot find nm_test_var in $nlist" >&5
7208 fi
7209 else
7210 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7211 fi
7212 else
7213 echo "$progname: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 fi
7216 rm -rf conftest* conftst*
7217
7218 # Do not use the global_symbol_pipe unless it works.
7219 if test yes = "$pipe_works"; then
7220 break
7221 else
7222 lt_cv_sys_global_symbol_pipe=
7223 fi
7224 done
7225
7226 fi
7227
7228 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7229 lt_cv_sys_global_symbol_to_cdecl=
7230 fi
7231 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7233 printf "%s\n" "failed" >&6; }
7234 else
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7236 printf "%s\n" "ok" >&6; }
7237 fi
7238
7239 # Response file support.
7240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7241 nm_file_list_spec='@'
7242 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7243 nm_file_list_spec='@'
7244 fi
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7283 printf %s "checking for sysroot... " >&6; }
7284
7285 # Check whether --with-sysroot was given.
7286 if test ${with_sysroot+y}
7287 then :
7288 withval=$with_sysroot;
7289 else $as_nop
7290 with_sysroot=no
7291 fi
7292
7293
7294 lt_sysroot=
7295 case $with_sysroot in #(
7296 yes)
7297 if test yes = "$GCC"; then
7298 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7299 fi
7300 ;; #(
7301 /*)
7302 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7303 ;; #(
7304 no|'')
7305 ;; #(
7306 *)
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7308 printf "%s\n" "$with_sysroot" >&6; }
7309 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7310 ;;
7311 esac
7312
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7314 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7315
7316
7317
7318
7319
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7321 printf %s "checking for a working dd... " >&6; }
7322 if test ${ac_cv_path_lt_DD+y}
7323 then :
7324 printf %s "(cached) " >&6
7325 else $as_nop
7326 printf 0123456789abcdef0123456789abcdef >conftest.i
7327 cat conftest.i conftest.i >conftest2.i
7328 : ${lt_DD:=$DD}
7329 if test -z "$lt_DD"; then
7330 ac_path_lt_DD_found=false
7331 # Loop through the user's path and test for each of PROGNAME-LIST
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 case $as_dir in #(((
7337 '') as_dir=./ ;;
7338 */) ;;
7339 *) as_dir=$as_dir/ ;;
7340 esac
7341 for ac_prog in dd
7342 do
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7345 as_fn_executable_p "$ac_path_lt_DD" || continue
7346 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7347 cmp -s conftest.i conftest.out \
7348 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7349 fi
7350 $ac_path_lt_DD_found && break 3
7351 done
7352 done
7353 done
7354 IFS=$as_save_IFS
7355 if test -z "$ac_cv_path_lt_DD"; then
7356 :
7357 fi
7358 else
7359 ac_cv_path_lt_DD=$lt_DD
7360 fi
7361
7362 rm -f conftest.i conftest2.i conftest.out
7363 fi
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7365 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7366
7367
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7369 printf %s "checking how to truncate binary pipes... " >&6; }
7370 if test ${lt_cv_truncate_bin+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else $as_nop
7374 printf 0123456789abcdef0123456789abcdef >conftest.i
7375 cat conftest.i conftest.i >conftest2.i
7376 lt_cv_truncate_bin=
7377 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7378 cmp -s conftest.i conftest.out \
7379 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7380 fi
7381 rm -f conftest.i conftest2.i conftest.out
7382 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7383 fi
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7385 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7386
7387
7388
7389
7390
7391
7392
7393 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7394 func_cc_basename ()
7395 {
7396 for cc_temp in $*""; do
7397 case $cc_temp in
7398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7400 \-*) ;;
7401 *) break;;
7402 esac
7403 done
7404 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7405 }
7406
7407 # Check whether --enable-libtool-lock was given.
7408 if test ${enable_libtool_lock+y}
7409 then :
7410 enableval=$enable_libtool_lock;
7411 fi
7412
7413 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7414
7415 # Some flags need to be propagated to the compiler or linker for good
7416 # libtool support.
7417 case $host in
7418 ia64-*-hpux*)
7419 # Find out what ABI is being produced by ac_compile, and set mode
7420 # options accordingly.
7421 echo 'int i;' > conftest.$ac_ext
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; then
7427 case `$FILECMD conftest.$ac_objext` in
7428 *ELF-32*)
7429 HPUX_IA64_MODE=32
7430 ;;
7431 *ELF-64*)
7432 HPUX_IA64_MODE=64
7433 ;;
7434 esac
7435 fi
7436 rm -rf conftest*
7437 ;;
7438 *-*-irix6*)
7439 # Find out what ABI is being produced by ac_compile, and set linker
7440 # options accordingly.
7441 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7444 ac_status=$?
7445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 if test yes = "$lt_cv_prog_gnu_ld"; then
7448 case `$FILECMD conftest.$ac_objext` in
7449 *32-bit*)
7450 LD="${LD-ld} -melf32bsmip"
7451 ;;
7452 *N32*)
7453 LD="${LD-ld} -melf32bmipn32"
7454 ;;
7455 *64-bit*)
7456 LD="${LD-ld} -melf64bmip"
7457 ;;
7458 esac
7459 else
7460 case `$FILECMD conftest.$ac_objext` in
7461 *32-bit*)
7462 LD="${LD-ld} -32"
7463 ;;
7464 *N32*)
7465 LD="${LD-ld} -n32"
7466 ;;
7467 *64-bit*)
7468 LD="${LD-ld} -64"
7469 ;;
7470 esac
7471 fi
7472 fi
7473 rm -rf conftest*
7474 ;;
7475
7476 mips64*-*linux*)
7477 # Find out what ABI is being produced by ac_compile, and set linker
7478 # options accordingly.
7479 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7481 (eval $ac_compile) 2>&5
7482 ac_status=$?
7483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7484 test $ac_status = 0; }; then
7485 emul=elf
7486 case `$FILECMD conftest.$ac_objext` in
7487 *32-bit*)
7488 emul="${emul}32"
7489 ;;
7490 *64-bit*)
7491 emul="${emul}64"
7492 ;;
7493 esac
7494 case `$FILECMD conftest.$ac_objext` in
7495 *MSB*)
7496 emul="${emul}btsmip"
7497 ;;
7498 *LSB*)
7499 emul="${emul}ltsmip"
7500 ;;
7501 esac
7502 case `$FILECMD conftest.$ac_objext` in
7503 *N32*)
7504 emul="${emul}n32"
7505 ;;
7506 esac
7507 LD="${LD-ld} -m $emul"
7508 fi
7509 rm -rf conftest*
7510 ;;
7511
7512 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7513 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7514 # Find out what ABI is being produced by ac_compile, and set linker
7515 # options accordingly. Note that the listed cases only cover the
7516 # situations where additional linker options are needed (such as when
7517 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7518 # vice versa); the common cases where no linker options are needed do
7519 # not appear in the list.
7520 echo 'int i;' > conftest.$ac_ext
7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7522 (eval $ac_compile) 2>&5
7523 ac_status=$?
7524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7525 test $ac_status = 0; }; then
7526 case `$FILECMD conftest.o` in
7527 *32-bit*)
7528 case $host in
7529 x86_64-*kfreebsd*-gnu)
7530 LD="${LD-ld} -m elf_i386_fbsd"
7531 ;;
7532 x86_64-*linux*)
7533 case `$FILECMD conftest.o` in
7534 *x86-64*)
7535 LD="${LD-ld} -m elf32_x86_64"
7536 ;;
7537 *)
7538 LD="${LD-ld} -m elf_i386"
7539 ;;
7540 esac
7541 ;;
7542 powerpc64le-*linux*)
7543 LD="${LD-ld} -m elf32lppclinux"
7544 ;;
7545 powerpc64-*linux*)
7546 LD="${LD-ld} -m elf32ppclinux"
7547 ;;
7548 s390x-*linux*)
7549 LD="${LD-ld} -m elf_s390"
7550 ;;
7551 sparc64-*linux*)
7552 LD="${LD-ld} -m elf32_sparc"
7553 ;;
7554 esac
7555 ;;
7556 *64-bit*)
7557 case $host in
7558 x86_64-*kfreebsd*-gnu)
7559 LD="${LD-ld} -m elf_x86_64_fbsd"
7560 ;;
7561 x86_64-*linux*)
7562 LD="${LD-ld} -m elf_x86_64"
7563 ;;
7564 powerpcle-*linux*)
7565 LD="${LD-ld} -m elf64lppc"
7566 ;;
7567 powerpc-*linux*)
7568 LD="${LD-ld} -m elf64ppc"
7569 ;;
7570 s390*-*linux*|s390*-*tpf*)
7571 LD="${LD-ld} -m elf64_s390"
7572 ;;
7573 sparc*-*linux*)
7574 LD="${LD-ld} -m elf64_sparc"
7575 ;;
7576 esac
7577 ;;
7578 esac
7579 fi
7580 rm -rf conftest*
7581 ;;
7582
7583 *-*-sco3.2v5*)
7584 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7585 SAVE_CFLAGS=$CFLAGS
7586 CFLAGS="$CFLAGS -belf"
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7588 printf %s "checking whether the C compiler needs -belf... " >&6; }
7589 if test ${lt_cv_cc_needs_belf+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else $as_nop
7593 ac_ext=c
7594 ac_cpp='$CPP $CPPFLAGS'
7595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601
7602 int
7603 main (void)
7604 {
7605
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"
7611 then :
7612 lt_cv_cc_needs_belf=yes
7613 else $as_nop
7614 lt_cv_cc_needs_belf=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7617 conftest$ac_exeext conftest.$ac_ext
7618 ac_ext=c
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624 fi
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7626 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7627 if test yes != "$lt_cv_cc_needs_belf"; then
7628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7629 CFLAGS=$SAVE_CFLAGS
7630 fi
7631 ;;
7632 *-*solaris*)
7633 # Find out what ABI is being produced by ac_compile, and set linker
7634 # options accordingly.
7635 echo 'int i;' > conftest.$ac_ext
7636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7637 (eval $ac_compile) 2>&5
7638 ac_status=$?
7639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; }; then
7641 case `$FILECMD conftest.o` in
7642 *64-bit*)
7643 case $lt_cv_prog_gnu_ld in
7644 yes*)
7645 case $host in
7646 i?86-*-solaris*|x86_64-*-solaris*)
7647 LD="${LD-ld} -m elf_x86_64"
7648 ;;
7649 sparc*-*-solaris*)
7650 LD="${LD-ld} -m elf64_sparc"
7651 ;;
7652 esac
7653 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7654 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7655 LD=${LD-ld}_sol2
7656 fi
7657 ;;
7658 *)
7659 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7660 LD="${LD-ld} -64"
7661 fi
7662 ;;
7663 esac
7664 ;;
7665 esac
7666 fi
7667 rm -rf conftest*
7668 ;;
7669 esac
7670
7671 need_locks=$enable_libtool_lock
7672
7673 if test -n "$ac_tool_prefix"; then
7674 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7675 set dummy ${ac_tool_prefix}mt; ac_word=$2
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 printf %s "checking for $ac_word... " >&6; }
7678 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7679 then :
7680 printf %s "(cached) " >&6
7681 else $as_nop
7682 if test -n "$MANIFEST_TOOL"; then
7683 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 case $as_dir in #(((
7690 '') as_dir=./ ;;
7691 */) ;;
7692 *) as_dir=$as_dir/ ;;
7693 esac
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7707 if test -n "$MANIFEST_TOOL"; then
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7709 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7710 else
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 printf "%s\n" "no" >&6; }
7713 fi
7714
7715
7716 fi
7717 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7718 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7719 # Extract the first word of "mt", so it can be a program name with args.
7720 set dummy mt; ac_word=$2
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 printf %s "checking for $ac_word... " >&6; }
7723 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7724 then :
7725 printf %s "(cached) " >&6
7726 else $as_nop
7727 if test -n "$ac_ct_MANIFEST_TOOL"; then
7728 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 case $as_dir in #(((
7735 '') as_dir=./ ;;
7736 */) ;;
7737 *) as_dir=$as_dir/ ;;
7738 esac
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7752 if test -n "$ac_ct_MANIFEST_TOOL"; then
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7754 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7755 else
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 printf "%s\n" "no" >&6; }
7758 fi
7759
7760 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7761 MANIFEST_TOOL=":"
7762 else
7763 case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7770 fi
7771 else
7772 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7773 fi
7774
7775 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7777 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7778 if test ${lt_cv_path_mainfest_tool+y}
7779 then :
7780 printf %s "(cached) " >&6
7781 else $as_nop
7782 lt_cv_path_mainfest_tool=no
7783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7785 cat conftest.err >&5
7786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7787 lt_cv_path_mainfest_tool=yes
7788 fi
7789 rm -f conftest*
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7792 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7793 if test yes != "$lt_cv_path_mainfest_tool"; then
7794 MANIFEST_TOOL=:
7795 fi
7796
7797
7798
7799
7800
7801
7802 case $host_os in
7803 rhapsody* | darwin*)
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 printf %s "checking for $ac_word... " >&6; }
7809 if test ${ac_cv_prog_DSYMUTIL+y}
7810 then :
7811 printf %s "(cached) " >&6
7812 else $as_nop
7813 if test -n "$DSYMUTIL"; then
7814 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819 IFS=$as_save_IFS
7820 case $as_dir in #(((
7821 '') as_dir=./ ;;
7822 */) ;;
7823 *) as_dir=$as_dir/ ;;
7824 esac
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7838 if test -n "$DSYMUTIL"; then
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7840 printf "%s\n" "$DSYMUTIL" >&6; }
7841 else
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 printf "%s\n" "no" >&6; }
7844 fi
7845
7846
7847 fi
7848 if test -z "$ac_cv_prog_DSYMUTIL"; then
7849 ac_ct_DSYMUTIL=$DSYMUTIL
7850 # Extract the first word of "dsymutil", so it can be a program name with args.
7851 set dummy dsymutil; ac_word=$2
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 printf %s "checking for $ac_word... " >&6; }
7854 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7855 then :
7856 printf %s "(cached) " >&6
7857 else $as_nop
7858 if test -n "$ac_ct_DSYMUTIL"; then
7859 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 case $as_dir in #(((
7866 '') as_dir=./ ;;
7867 */) ;;
7868 *) as_dir=$as_dir/ ;;
7869 esac
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7883 if test -n "$ac_ct_DSYMUTIL"; then
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7885 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7886 else
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 printf "%s\n" "no" >&6; }
7889 fi
7890
7891 if test "x$ac_ct_DSYMUTIL" = x; then
7892 DSYMUTIL=":"
7893 else
7894 case $cross_compiling:$ac_tool_warned in
7895 yes:)
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898 ac_tool_warned=yes ;;
7899 esac
7900 DSYMUTIL=$ac_ct_DSYMUTIL
7901 fi
7902 else
7903 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7904 fi
7905
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 printf %s "checking for $ac_word... " >&6; }
7911 if test ${ac_cv_prog_NMEDIT+y}
7912 then :
7913 printf %s "(cached) " >&6
7914 else $as_nop
7915 if test -n "$NMEDIT"; then
7916 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921 IFS=$as_save_IFS
7922 case $as_dir in #(((
7923 '') as_dir=./ ;;
7924 */) ;;
7925 *) as_dir=$as_dir/ ;;
7926 esac
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 NMEDIT=$ac_cv_prog_NMEDIT
7940 if test -n "$NMEDIT"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7942 printf "%s\n" "$NMEDIT" >&6; }
7943 else
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_NMEDIT"; then
7951 ac_ct_NMEDIT=$NMEDIT
7952 # Extract the first word of "nmedit", so it can be a program name with args.
7953 set dummy nmedit; ac_word=$2
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 printf %s "checking for $ac_word... " >&6; }
7956 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else $as_nop
7960 if test -n "$ac_ct_NMEDIT"; then
7961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 case $as_dir in #(((
7968 '') as_dir=./ ;;
7969 */) ;;
7970 *) as_dir=$as_dir/ ;;
7971 esac
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7985 if test -n "$ac_ct_NMEDIT"; then
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7987 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7988 else
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 printf "%s\n" "no" >&6; }
7991 fi
7992
7993 if test "x$ac_ct_NMEDIT" = x; then
7994 NMEDIT=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 NMEDIT=$ac_ct_NMEDIT
8003 fi
8004 else
8005 NMEDIT="$ac_cv_prog_NMEDIT"
8006 fi
8007
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 printf %s "checking for $ac_word... " >&6; }
8013 if test ${ac_cv_prog_LIPO+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else $as_nop
8017 if test -n "$LIPO"; then
8018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 case $as_dir in #(((
8025 '') as_dir=./ ;;
8026 */) ;;
8027 *) as_dir=$as_dir/ ;;
8028 esac
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 LIPO=$ac_cv_prog_LIPO
8042 if test -n "$LIPO"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8044 printf "%s\n" "$LIPO" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050
8051 fi
8052 if test -z "$ac_cv_prog_LIPO"; then
8053 ac_ct_LIPO=$LIPO
8054 # Extract the first word of "lipo", so it can be a program name with args.
8055 set dummy lipo; ac_word=$2
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 printf %s "checking for $ac_word... " >&6; }
8058 if test ${ac_cv_prog_ac_ct_LIPO+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else $as_nop
8062 if test -n "$ac_ct_LIPO"; then
8063 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 case $as_dir in #(((
8070 '') as_dir=./ ;;
8071 */) ;;
8072 *) as_dir=$as_dir/ ;;
8073 esac
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_LIPO="lipo"
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8087 if test -n "$ac_ct_LIPO"; then
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8089 printf "%s\n" "$ac_ct_LIPO" >&6; }
8090 else
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 printf "%s\n" "no" >&6; }
8093 fi
8094
8095 if test "x$ac_ct_LIPO" = x; then
8096 LIPO=":"
8097 else
8098 case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104 LIPO=$ac_ct_LIPO
8105 fi
8106 else
8107 LIPO="$ac_cv_prog_LIPO"
8108 fi
8109
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}otool; ac_word=$2
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 printf %s "checking for $ac_word... " >&6; }
8115 if test ${ac_cv_prog_OTOOL+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else $as_nop
8119 if test -n "$OTOOL"; then
8120 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 OTOOL=$ac_cv_prog_OTOOL
8144 if test -n "$OTOOL"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8146 printf "%s\n" "$OTOOL" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152
8153 fi
8154 if test -z "$ac_cv_prog_OTOOL"; then
8155 ac_ct_OTOOL=$OTOOL
8156 # Extract the first word of "otool", so it can be a program name with args.
8157 set dummy otool; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 if test -n "$ac_ct_OTOOL"; then
8165 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_OTOOL="otool"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8189 if test -n "$ac_ct_OTOOL"; then
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8191 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8192 else
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 printf "%s\n" "no" >&6; }
8195 fi
8196
8197 if test "x$ac_ct_OTOOL" = x; then
8198 OTOOL=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 OTOOL=$ac_ct_OTOOL
8207 fi
8208 else
8209 OTOOL="$ac_cv_prog_OTOOL"
8210 fi
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 printf %s "checking for $ac_word... " >&6; }
8217 if test ${ac_cv_prog_OTOOL64+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else $as_nop
8221 if test -n "$OTOOL64"; then
8222 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227 IFS=$as_save_IFS
8228 case $as_dir in #(((
8229 '') as_dir=./ ;;
8230 */) ;;
8231 *) as_dir=$as_dir/ ;;
8232 esac
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 OTOOL64=$ac_cv_prog_OTOOL64
8246 if test -n "$OTOOL64"; then
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8248 printf "%s\n" "$OTOOL64" >&6; }
8249 else
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 printf "%s\n" "no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_OTOOL64"; then
8257 ac_ct_OTOOL64=$OTOOL64
8258 # Extract the first word of "otool64", so it can be a program name with args.
8259 set dummy otool64; ac_word=$2
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 printf %s "checking for $ac_word... " >&6; }
8262 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 if test -n "$ac_ct_OTOOL64"; then
8267 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_OTOOL64="otool64"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8291 if test -n "$ac_ct_OTOOL64"; then
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8293 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_OTOOL64" = x; then
8300 OTOOL64=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 OTOOL64=$ac_ct_OTOOL64
8309 fi
8310 else
8311 OTOOL64="$ac_cv_prog_OTOOL64"
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8341 printf %s "checking for -single_module linker flag... " >&6; }
8342 if test ${lt_cv_apple_cc_single_mod+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else $as_nop
8346 lt_cv_apple_cc_single_mod=no
8347 if test -z "$LT_MULTI_MODULE"; then
8348 # By default we will add the -single_module flag. You can override
8349 # by either setting the environment variable LT_MULTI_MODULE
8350 # non-empty at configure time, or by adding -multi_module to the
8351 # link flags.
8352 rm -rf libconftest.dylib*
8353 echo "int foo(void){return 1;}" > conftest.c
8354 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8355 -dynamiclib -Wl,-single_module conftest.c" >&5
8356 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8357 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8358 _lt_result=$?
8359 # If there is a non-empty error log, and "single_module"
8360 # appears in it, assume the flag caused a linker warning
8361 if test -s conftest.err && $GREP single_module conftest.err; then
8362 cat conftest.err >&5
8363 # Otherwise, if the output was created with a 0 exit code from
8364 # the compiler, it worked.
8365 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8366 lt_cv_apple_cc_single_mod=yes
8367 else
8368 cat conftest.err >&5
8369 fi
8370 rm -rf libconftest.dylib*
8371 rm -f conftest.*
8372 fi
8373 fi
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8375 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8376
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8378 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8379 if test ${lt_cv_ld_exported_symbols_list+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else $as_nop
8383 lt_cv_ld_exported_symbols_list=no
8384 save_LDFLAGS=$LDFLAGS
8385 echo "_main" > conftest.sym
8386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389
8390 int
8391 main (void)
8392 {
8393
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"
8399 then :
8400 lt_cv_ld_exported_symbols_list=yes
8401 else $as_nop
8402 lt_cv_ld_exported_symbols_list=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LDFLAGS=$save_LDFLAGS
8407
8408 fi
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8410 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8411
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8413 printf %s "checking for -force_load linker flag... " >&6; }
8414 if test ${lt_cv_ld_force_load+y}
8415 then :
8416 printf %s "(cached) " >&6
8417 else $as_nop
8418 lt_cv_ld_force_load=no
8419 cat > conftest.c << _LT_EOF
8420 int forced_loaded() { return 2;}
8421 _LT_EOF
8422 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8423 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8424 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8425 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8426 echo "$RANLIB libconftest.a" >&5
8427 $RANLIB libconftest.a 2>&5
8428 cat > conftest.c << _LT_EOF
8429 int main() { return 0;}
8430 _LT_EOF
8431 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8432 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8433 _lt_result=$?
8434 if test -s conftest.err && $GREP force_load conftest.err; then
8435 cat conftest.err >&5
8436 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8437 lt_cv_ld_force_load=yes
8438 else
8439 cat conftest.err >&5
8440 fi
8441 rm -f conftest.err libconftest.a conftest conftest.c
8442 rm -rf conftest.dSYM
8443
8444 fi
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8446 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8447 case $host_os in
8448 rhapsody* | darwin1.[012])
8449 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8450 darwin1.*)
8451 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8452 darwin*)
8453 case $MACOSX_DEPLOYMENT_TARGET,$host in
8454 10.[012],*|,*powerpc*-darwin[5-8]*)
8455 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8456 *)
8457 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8458 esac
8459 ;;
8460 esac
8461 if test yes = "$lt_cv_apple_cc_single_mod"; then
8462 _lt_dar_single_mod='$single_module'
8463 fi
8464 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8465 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8466 else
8467 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8468 fi
8469 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8470 _lt_dsymutil='~$DSYMUTIL $lib || :'
8471 else
8472 _lt_dsymutil=
8473 fi
8474 ;;
8475 esac
8476
8477 # func_munge_path_list VARIABLE PATH
8478 # -----------------------------------
8479 # VARIABLE is name of variable containing _space_ separated list of
8480 # directories to be munged by the contents of PATH, which is string
8481 # having a format:
8482 # "DIR[:DIR]:"
8483 # string "DIR[ DIR]" will be prepended to VARIABLE
8484 # ":DIR[:DIR]"
8485 # string "DIR[ DIR]" will be appended to VARIABLE
8486 # "DIRP[:DIRP]::[DIRA:]DIRA"
8487 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8488 # "DIRA[ DIRA]" will be appended to VARIABLE
8489 # "DIR[:DIR]"
8490 # VARIABLE will be replaced by "DIR[ DIR]"
8491 func_munge_path_list ()
8492 {
8493 case x$2 in
8494 x)
8495 ;;
8496 *:)
8497 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8498 ;;
8499 x:*)
8500 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8501 ;;
8502 *::*)
8503 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8504 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8505 ;;
8506 *)
8507 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8508 ;;
8509 esac
8510 }
8511
8512 ac_header= ac_cache=
8513 for ac_item in $ac_header_c_list
8514 do
8515 if test $ac_cache; then
8516 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8517 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8518 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8519 fi
8520 ac_header= ac_cache=
8521 elif test $ac_header; then
8522 ac_cache=$ac_item
8523 else
8524 ac_header=$ac_item
8525 fi
8526 done
8527
8528
8529
8530
8531
8532
8533
8534
8535 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8536 then :
8537
8538 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8539
8540 fi
8541 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8542 "
8543 if test "x$ac_cv_header_dlfcn_h" = xyes
8544 then :
8545 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8546
8547 fi
8548
8549
8550
8551
8552
8553 # Set options
8554
8555
8556
8557 enable_dlopen=no
8558
8559
8560 enable_win32_dll=no
8561
8562
8563 # Check whether --enable-shared was given.
8564 if test ${enable_shared+y}
8565 then :
8566 enableval=$enable_shared; p=${PACKAGE-default}
8567 case $enableval in
8568 yes) enable_shared=yes ;;
8569 no) enable_shared=no ;;
8570 *)
8571 enable_shared=no
8572 # Look at the argument we got. We use all the common list separators.
8573 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8574 for pkg in $enableval; do
8575 IFS=$lt_save_ifs
8576 if test "X$pkg" = "X$p"; then
8577 enable_shared=yes
8578 fi
8579 done
8580 IFS=$lt_save_ifs
8581 ;;
8582 esac
8583 else $as_nop
8584 enable_shared=yes
8585 fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 # Check whether --enable-static was given.
8596 if test ${enable_static+y}
8597 then :
8598 enableval=$enable_static; p=${PACKAGE-default}
8599 case $enableval in
8600 yes) enable_static=yes ;;
8601 no) enable_static=no ;;
8602 *)
8603 enable_static=no
8604 # Look at the argument we got. We use all the common list separators.
8605 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8606 for pkg in $enableval; do
8607 IFS=$lt_save_ifs
8608 if test "X$pkg" = "X$p"; then
8609 enable_static=yes
8610 fi
8611 done
8612 IFS=$lt_save_ifs
8613 ;;
8614 esac
8615 else $as_nop
8616 enable_static=yes
8617 fi
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628 # Check whether --with-pic was given.
8629 if test ${with_pic+y}
8630 then :
8631 withval=$with_pic; lt_p=${PACKAGE-default}
8632 case $withval in
8633 yes|no) pic_mode=$withval ;;
8634 *)
8635 pic_mode=default
8636 # Look at the argument we got. We use all the common list separators.
8637 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8638 for lt_pkg in $withval; do
8639 IFS=$lt_save_ifs
8640 if test "X$lt_pkg" = "X$lt_p"; then
8641 pic_mode=yes
8642 fi
8643 done
8644 IFS=$lt_save_ifs
8645 ;;
8646 esac
8647 else $as_nop
8648 pic_mode=default
8649 fi
8650
8651
8652
8653
8654
8655
8656
8657
8658 # Check whether --enable-fast-install was given.
8659 if test ${enable_fast_install+y}
8660 then :
8661 enableval=$enable_fast_install; p=${PACKAGE-default}
8662 case $enableval in
8663 yes) enable_fast_install=yes ;;
8664 no) enable_fast_install=no ;;
8665 *)
8666 enable_fast_install=no
8667 # Look at the argument we got. We use all the common list separators.
8668 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8669 for pkg in $enableval; do
8670 IFS=$lt_save_ifs
8671 if test "X$pkg" = "X$p"; then
8672 enable_fast_install=yes
8673 fi
8674 done
8675 IFS=$lt_save_ifs
8676 ;;
8677 esac
8678 else $as_nop
8679 enable_fast_install=yes
8680 fi
8681
8682
8683
8684
8685
8686
8687
8688
8689 shared_archive_member_spec=
8690 case $host,$enable_shared in
8691 power*-*-aix[5-9]*,yes)
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8693 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8694
8695 # Check whether --with-aix-soname was given.
8696 if test ${with_aix_soname+y}
8697 then :
8698 withval=$with_aix_soname; case $withval in
8699 aix|svr4|both)
8700 ;;
8701 *)
8702 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8703 ;;
8704 esac
8705 lt_cv_with_aix_soname=$with_aix_soname
8706 else $as_nop
8707 if test ${lt_cv_with_aix_soname+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else $as_nop
8711 lt_cv_with_aix_soname=aix
8712 fi
8713
8714 with_aix_soname=$lt_cv_with_aix_soname
8715 fi
8716
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8718 printf "%s\n" "$with_aix_soname" >&6; }
8719 if test aix != "$with_aix_soname"; then
8720 # For the AIX way of multilib, we name the shared archive member
8721 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8722 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8723 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8724 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8725 if test 64 = "${OBJECT_MODE-32}"; then
8726 shared_archive_member_spec=shr_64
8727 else
8728 shared_archive_member_spec=shr
8729 fi
8730 fi
8731 ;;
8732 *)
8733 with_aix_soname=aix
8734 ;;
8735 esac
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 # This can be used to rebuild libtool when needed
8747 LIBTOOL_DEPS=$ltmain
8748
8749 # Always use our own libtool.
8750 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 test -z "$LN_S" && LN_S="ln -s"
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 if test -n "${ZSH_VERSION+set}"; then
8797 setopt NO_GLOB_SUBST
8798 fi
8799
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8801 printf %s "checking for objdir... " >&6; }
8802 if test ${lt_cv_objdir+y}
8803 then :
8804 printf %s "(cached) " >&6
8805 else $as_nop
8806 rm -f .libs 2>/dev/null
8807 mkdir .libs 2>/dev/null
8808 if test -d .libs; then
8809 lt_cv_objdir=.libs
8810 else
8811 # MS-DOS does not allow filenames that begin with a dot.
8812 lt_cv_objdir=_libs
8813 fi
8814 rmdir .libs 2>/dev/null
8815 fi
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8817 printf "%s\n" "$lt_cv_objdir" >&6; }
8818 objdir=$lt_cv_objdir
8819
8820
8821
8822
8823
8824 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8825
8826
8827
8828
8829 case $host_os in
8830 aix3*)
8831 # AIX sometimes has problems with the GCC collect2 program. For some
8832 # reason, if we set the COLLECT_NAMES environment variable, the problems
8833 # vanish in a puff of smoke.
8834 if test set != "${COLLECT_NAMES+set}"; then
8835 COLLECT_NAMES=
8836 export COLLECT_NAMES
8837 fi
8838 ;;
8839 esac
8840
8841 # Global variables:
8842 ofile=libtool
8843 can_build_shared=yes
8844
8845 # All known linkers require a '.a' archive for static linking (except MSVC and
8846 # ICC, which need '.lib').
8847 libext=a
8848
8849 with_gnu_ld=$lt_cv_prog_gnu_ld
8850
8851 old_CC=$CC
8852 old_CFLAGS=$CFLAGS
8853
8854 # Set sane defaults for various variables
8855 test -z "$CC" && CC=cc
8856 test -z "$LTCC" && LTCC=$CC
8857 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8858 test -z "$LD" && LD=ld
8859 test -z "$ac_objext" && ac_objext=o
8860
8861 func_cc_basename $compiler
8862 cc_basename=$func_cc_basename_result
8863
8864
8865 # Only perform the check for file, if the check method requires it
8866 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8867 case $deplibs_check_method in
8868 file_magic*)
8869 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8871 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8872 if test ${lt_cv_path_MAGIC_CMD+y}
8873 then :
8874 printf %s "(cached) " >&6
8875 else $as_nop
8876 case $MAGIC_CMD in
8877 [\\/*] | ?:[\\/]*)
8878 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8879 ;;
8880 *)
8881 lt_save_MAGIC_CMD=$MAGIC_CMD
8882 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8883 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8884 for ac_dir in $ac_dummy; do
8885 IFS=$lt_save_ifs
8886 test -z "$ac_dir" && ac_dir=.
8887 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8888 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8889 if test -n "$file_magic_test_file"; then
8890 case $deplibs_check_method in
8891 "file_magic "*)
8892 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8893 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8894 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8895 $EGREP "$file_magic_regex" > /dev/null; then
8896 :
8897 else
8898 cat <<_LT_EOF 1>&2
8899
8900 *** Warning: the command libtool uses to detect shared libraries,
8901 *** $file_magic_cmd, produces output that libtool cannot recognize.
8902 *** The result is that libtool may fail to recognize shared libraries
8903 *** as such. This will affect the creation of libtool libraries that
8904 *** depend on shared libraries, but programs linked with such libtool
8905 *** libraries will work regardless of this problem. Nevertheless, you
8906 *** may want to report the problem to your system manager and/or to
8907 *** [email protected]
8908
8909 _LT_EOF
8910 fi ;;
8911 esac
8912 fi
8913 break
8914 fi
8915 done
8916 IFS=$lt_save_ifs
8917 MAGIC_CMD=$lt_save_MAGIC_CMD
8918 ;;
8919 esac
8920 fi
8921
8922 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8923 if test -n "$MAGIC_CMD"; then
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8925 printf "%s\n" "$MAGIC_CMD" >&6; }
8926 else
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 printf "%s\n" "no" >&6; }
8929 fi
8930
8931
8932
8933
8934
8935 if test -z "$lt_cv_path_MAGIC_CMD"; then
8936 if test -n "$ac_tool_prefix"; then
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8938 printf %s "checking for file... " >&6; }
8939 if test ${lt_cv_path_MAGIC_CMD+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else $as_nop
8943 case $MAGIC_CMD in
8944 [\\/*] | ?:[\\/]*)
8945 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8946 ;;
8947 *)
8948 lt_save_MAGIC_CMD=$MAGIC_CMD
8949 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8951 for ac_dir in $ac_dummy; do
8952 IFS=$lt_save_ifs
8953 test -z "$ac_dir" && ac_dir=.
8954 if test -f "$ac_dir/file"; then
8955 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8956 if test -n "$file_magic_test_file"; then
8957 case $deplibs_check_method in
8958 "file_magic "*)
8959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8960 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8962 $EGREP "$file_magic_regex" > /dev/null; then
8963 :
8964 else
8965 cat <<_LT_EOF 1>&2
8966
8967 *** Warning: the command libtool uses to detect shared libraries,
8968 *** $file_magic_cmd, produces output that libtool cannot recognize.
8969 *** The result is that libtool may fail to recognize shared libraries
8970 *** as such. This will affect the creation of libtool libraries that
8971 *** depend on shared libraries, but programs linked with such libtool
8972 *** libraries will work regardless of this problem. Nevertheless, you
8973 *** may want to report the problem to your system manager and/or to
8974 *** [email protected]
8975
8976 _LT_EOF
8977 fi ;;
8978 esac
8979 fi
8980 break
8981 fi
8982 done
8983 IFS=$lt_save_ifs
8984 MAGIC_CMD=$lt_save_MAGIC_CMD
8985 ;;
8986 esac
8987 fi
8988
8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8990 if test -n "$MAGIC_CMD"; then
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8992 printf "%s\n" "$MAGIC_CMD" >&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
8999 else
9000 MAGIC_CMD=:
9001 fi
9002 fi
9003
9004 fi
9005 ;;
9006 esac
9007
9008 # Use C for the default configuration in the libtool script
9009
9010 lt_save_CC=$CC
9011 ac_ext=c
9012 ac_cpp='$CPP $CPPFLAGS'
9013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9016
9017
9018 # Source file extension for C test sources.
9019 ac_ext=c
9020
9021 # Object file extension for compiled C test sources.
9022 objext=o
9023 objext=$objext
9024
9025 # Code to be used in simple compile tests
9026 lt_simple_compile_test_code="int some_variable = 0;"
9027
9028 # Code to be used in simple link tests
9029 lt_simple_link_test_code='int main(){return(0);}'
9030
9031
9032
9033
9034
9035
9036
9037 # If no C compiler was specified, use CC.
9038 LTCC=${LTCC-"$CC"}
9039
9040 # If no C compiler flags were specified, use CFLAGS.
9041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9042
9043 # Allow CC to be a program name with arguments.
9044 compiler=$CC
9045
9046 # Save the default compiler, since it gets overwritten when the other
9047 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9048 compiler_DEFAULT=$CC
9049
9050 # save warnings/boilerplate of simple test code
9051 ac_outfile=conftest.$ac_objext
9052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054 _lt_compiler_boilerplate=`cat conftest.err`
9055 $RM conftest*
9056
9057 ac_outfile=conftest.$ac_objext
9058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9060 _lt_linker_boilerplate=`cat conftest.err`
9061 $RM -r conftest*
9062
9063
9064 ## CAVEAT EMPTOR:
9065 ## There is no encapsulation within the following macros, do not change
9066 ## the running order or otherwise move them around unless you know exactly
9067 ## what you are doing...
9068 if test -n "$compiler"; then
9069
9070 lt_prog_compiler_no_builtin_flag=
9071
9072 if test yes = "$GCC"; then
9073 case $cc_basename in
9074 nvcc*)
9075 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9076 *)
9077 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9078 esac
9079
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9081 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9082 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else $as_nop
9086 lt_cv_prog_compiler_rtti_exceptions=no
9087 ac_outfile=conftest.$ac_objext
9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9090 # Insert the option either (1) after the last *FLAGS variable, or
9091 # (2) before a word containing "conftest.", or (3) at the end.
9092 # Note that $ac_compile itself does not contain backslashes and begins
9093 # with a dollar sign (not a hyphen), so the echo should work correctly.
9094 # The option is referenced via a variable to avoid confusing sed.
9095 lt_compile=`echo "$ac_compile" | $SED \
9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098 -e 's:$: $lt_compiler_flag:'`
9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100 (eval "$lt_compile" 2>conftest.err)
9101 ac_status=$?
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 if (exit $ac_status) && test -s "$ac_outfile"; then
9105 # The compiler can only warn and ignore the option if not recognized
9106 # So say no if there are warnings other than the usual output.
9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler_rtti_exceptions=yes
9111 fi
9112 fi
9113 $RM conftest*
9114
9115 fi
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9117 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9118
9119 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9121 else
9122 :
9123 fi
9124
9125 fi
9126
9127
9128
9129
9130
9131
9132 lt_prog_compiler_wl=
9133 lt_prog_compiler_pic=
9134 lt_prog_compiler_static=
9135
9136
9137 if test yes = "$GCC"; then
9138 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_static='-static'
9140
9141 case $host_os in
9142 aix*)
9143 # All AIX code is PIC.
9144 if test ia64 = "$host_cpu"; then
9145 # AIX 5 now supports IA64 processor
9146 lt_prog_compiler_static='-Bstatic'
9147 fi
9148 lt_prog_compiler_pic='-fPIC'
9149 ;;
9150
9151 amigaos*)
9152 case $host_cpu in
9153 powerpc)
9154 # see comment about AmigaOS4 .so support
9155 lt_prog_compiler_pic='-fPIC'
9156 ;;
9157 m68k)
9158 # FIXME: we need at least 68020 code to build shared libraries, but
9159 # adding the '-m68020' flag to GCC prevents building anything better,
9160 # like '-m68040'.
9161 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9162 ;;
9163 esac
9164 ;;
9165
9166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9167 # PIC is the default for these OSes.
9168 ;;
9169
9170 mingw* | cygwin* | pw32* | os2* | cegcc*)
9171 # This hack is so that the source file can tell whether it is being
9172 # built for inclusion in a dll (and should export symbols for example).
9173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9174 # (--disable-auto-import) libraries
9175 lt_prog_compiler_pic='-DDLL_EXPORT'
9176 case $host_os in
9177 os2*)
9178 lt_prog_compiler_static='$wl-static'
9179 ;;
9180 esac
9181 ;;
9182
9183 darwin* | rhapsody*)
9184 # PIC is the default on this platform
9185 # Common symbols not allowed in MH_DYLIB files
9186 lt_prog_compiler_pic='-fno-common'
9187 ;;
9188
9189 haiku*)
9190 # PIC is the default for Haiku.
9191 # The "-static" flag exists, but is broken.
9192 lt_prog_compiler_static=
9193 ;;
9194
9195 hpux*)
9196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9198 # sets the default TLS model and affects inlining.
9199 case $host_cpu in
9200 hppa*64*)
9201 # +Z the default
9202 ;;
9203 *)
9204 lt_prog_compiler_pic='-fPIC'
9205 ;;
9206 esac
9207 ;;
9208
9209 interix[3-9]*)
9210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9211 # Instead, we relocate shared libraries at runtime.
9212 ;;
9213
9214 msdosdjgpp*)
9215 # Just because we use GCC doesn't mean we suddenly get shared libraries
9216 # on systems that don't support them.
9217 lt_prog_compiler_can_build_shared=no
9218 enable_shared=no
9219 ;;
9220
9221 *nto* | *qnx*)
9222 # QNX uses GNU C++, but need to define -shared option too, otherwise
9223 # it will coredump.
9224 lt_prog_compiler_pic='-fPIC -shared'
9225 ;;
9226
9227 sysv4*MP*)
9228 if test -d /usr/nec; then
9229 lt_prog_compiler_pic=-Kconform_pic
9230 fi
9231 ;;
9232
9233 *)
9234 lt_prog_compiler_pic='-fPIC'
9235 ;;
9236 esac
9237
9238 case $cc_basename in
9239 nvcc*) # Cuda Compiler Driver 2.2
9240 lt_prog_compiler_wl='-Xlinker '
9241 if test -n "$lt_prog_compiler_pic"; then
9242 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9243 fi
9244 ;;
9245 esac
9246 else
9247 # PORTME Check for flag to pass linker flags through the system compiler.
9248 case $host_os in
9249 aix*)
9250 lt_prog_compiler_wl='-Wl,'
9251 if test ia64 = "$host_cpu"; then
9252 # AIX 5 now supports IA64 processor
9253 lt_prog_compiler_static='-Bstatic'
9254 else
9255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9256 fi
9257 ;;
9258
9259 darwin* | rhapsody*)
9260 # PIC is the default on this platform
9261 # Common symbols not allowed in MH_DYLIB files
9262 lt_prog_compiler_pic='-fno-common'
9263 case $cc_basename in
9264 nagfor*)
9265 # NAG Fortran compiler
9266 lt_prog_compiler_wl='-Wl,-Wl,,'
9267 lt_prog_compiler_pic='-PIC'
9268 lt_prog_compiler_static='-Bstatic'
9269 ;;
9270 esac
9271 ;;
9272
9273 mingw* | cygwin* | pw32* | os2* | cegcc*)
9274 # This hack is so that the source file can tell whether it is being
9275 # built for inclusion in a dll (and should export symbols for example).
9276 lt_prog_compiler_pic='-DDLL_EXPORT'
9277 case $host_os in
9278 os2*)
9279 lt_prog_compiler_static='$wl-static'
9280 ;;
9281 esac
9282 ;;
9283
9284 hpux9* | hpux10* | hpux11*)
9285 lt_prog_compiler_wl='-Wl,'
9286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9287 # not for PA HP-UX.
9288 case $host_cpu in
9289 hppa*64*|ia64*)
9290 # +Z the default
9291 ;;
9292 *)
9293 lt_prog_compiler_pic='+Z'
9294 ;;
9295 esac
9296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9297 lt_prog_compiler_static='$wl-a ${wl}archive'
9298 ;;
9299
9300 irix5* | irix6* | nonstopux*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # PIC (with -KPIC) is the default.
9303 lt_prog_compiler_static='-non_shared'
9304 ;;
9305
9306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9307 case $cc_basename in
9308 # old Intel for x86_64, which still supported -KPIC.
9309 ecc*)
9310 lt_prog_compiler_wl='-Wl,'
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-static'
9313 ;;
9314 # flang / f18. f95 an alias for gfortran or flang on Debian
9315 flang* | f18* | f95*)
9316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_pic='-fPIC'
9318 lt_prog_compiler_static='-static'
9319 ;;
9320 # icc used to be incompatible with GCC.
9321 # ICC 10 doesn't accept -KPIC any more.
9322 icc* | ifort*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-fPIC'
9325 lt_prog_compiler_static='-static'
9326 ;;
9327 # Lahey Fortran 8.1.
9328 lf95*)
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_pic='--shared'
9331 lt_prog_compiler_static='--static'
9332 ;;
9333 nagfor*)
9334 # NAG Fortran compiler
9335 lt_prog_compiler_wl='-Wl,-Wl,,'
9336 lt_prog_compiler_pic='-PIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 ;;
9339 tcc*)
9340 # Fabrice Bellard et al's Tiny C Compiler
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-fPIC'
9343 lt_prog_compiler_static='-static'
9344 ;;
9345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9346 # Portland Group compilers (*not* the Pentium gcc compiler,
9347 # which looks to be a dead project)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-fpic'
9350 lt_prog_compiler_static='-Bstatic'
9351 ;;
9352 ccc*)
9353 lt_prog_compiler_wl='-Wl,'
9354 # All Alpha code is PIC.
9355 lt_prog_compiler_static='-non_shared'
9356 ;;
9357 xl* | bgxl* | bgf* | mpixl*)
9358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-qpic'
9361 lt_prog_compiler_static='-qstaticlink'
9362 ;;
9363 *)
9364 case `$CC -V 2>&1 | $SED 5q` in
9365 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 lt_prog_compiler_wl=''
9370 ;;
9371 *Sun\ F* | *Sun*Fortran*)
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 lt_prog_compiler_wl='-Qoption ld '
9375 ;;
9376 *Sun\ C*)
9377 # Sun C 5.9
9378 lt_prog_compiler_pic='-KPIC'
9379 lt_prog_compiler_static='-Bstatic'
9380 lt_prog_compiler_wl='-Wl,'
9381 ;;
9382 *Intel*\ [CF]*Compiler*)
9383 lt_prog_compiler_wl='-Wl,'
9384 lt_prog_compiler_pic='-fPIC'
9385 lt_prog_compiler_static='-static'
9386 ;;
9387 *Portland\ Group*)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_pic='-fpic'
9390 lt_prog_compiler_static='-Bstatic'
9391 ;;
9392 esac
9393 ;;
9394 esac
9395 ;;
9396
9397 newsos6)
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 ;;
9401
9402 *nto* | *qnx*)
9403 # QNX uses GNU C++, but need to define -shared option too, otherwise
9404 # it will coredump.
9405 lt_prog_compiler_pic='-fPIC -shared'
9406 ;;
9407
9408 osf3* | osf4* | osf5*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # All OSF/1 code is PIC.
9411 lt_prog_compiler_static='-non_shared'
9412 ;;
9413
9414 rdos*)
9415 lt_prog_compiler_static='-non_shared'
9416 ;;
9417
9418 solaris*)
9419 lt_prog_compiler_pic='-KPIC'
9420 lt_prog_compiler_static='-Bstatic'
9421 case $cc_basename in
9422 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9423 lt_prog_compiler_wl='-Qoption ld ';;
9424 *)
9425 lt_prog_compiler_wl='-Wl,';;
9426 esac
9427 ;;
9428
9429 sunos4*)
9430 lt_prog_compiler_wl='-Qoption ld '
9431 lt_prog_compiler_pic='-PIC'
9432 lt_prog_compiler_static='-Bstatic'
9433 ;;
9434
9435 sysv4 | sysv4.2uw2* | sysv4.3*)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9439 ;;
9440
9441 sysv4*MP*)
9442 if test -d /usr/nec; then
9443 lt_prog_compiler_pic='-Kconform_pic'
9444 lt_prog_compiler_static='-Bstatic'
9445 fi
9446 ;;
9447
9448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-KPIC'
9451 lt_prog_compiler_static='-Bstatic'
9452 ;;
9453
9454 unicos*)
9455 lt_prog_compiler_wl='-Wl,'
9456 lt_prog_compiler_can_build_shared=no
9457 ;;
9458
9459 uts4*)
9460 lt_prog_compiler_pic='-pic'
9461 lt_prog_compiler_static='-Bstatic'
9462 ;;
9463
9464 *)
9465 lt_prog_compiler_can_build_shared=no
9466 ;;
9467 esac
9468 fi
9469
9470 case $host_os in
9471 # For platforms that do not support PIC, -DPIC is meaningless:
9472 *djgpp*)
9473 lt_prog_compiler_pic=
9474 ;;
9475 *)
9476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9477 ;;
9478 esac
9479
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9481 printf %s "checking for $compiler option to produce PIC... " >&6; }
9482 if test ${lt_cv_prog_compiler_pic+y}
9483 then :
9484 printf %s "(cached) " >&6
9485 else $as_nop
9486 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9487 fi
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9489 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9490 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9491
9492 #
9493 # Check to make sure the PIC flag actually works.
9494 #
9495 if test -n "$lt_prog_compiler_pic"; then
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9497 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9498 if test ${lt_cv_prog_compiler_pic_works+y}
9499 then :
9500 printf %s "(cached) " >&6
9501 else $as_nop
9502 lt_cv_prog_compiler_pic_works=no
9503 ac_outfile=conftest.$ac_objext
9504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9505 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9506 # Insert the option either (1) after the last *FLAGS variable, or
9507 # (2) before a word containing "conftest.", or (3) at the end.
9508 # Note that $ac_compile itself does not contain backslashes and begins
9509 # with a dollar sign (not a hyphen), so the echo should work correctly.
9510 # The option is referenced via a variable to avoid confusing sed.
9511 lt_compile=`echo "$ac_compile" | $SED \
9512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9514 -e 's:$: $lt_compiler_flag:'`
9515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9516 (eval "$lt_compile" 2>conftest.err)
9517 ac_status=$?
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 if (exit $ac_status) && test -s "$ac_outfile"; then
9521 # The compiler can only warn and ignore the option if not recognized
9522 # So say no if there are warnings other than the usual output.
9523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9526 lt_cv_prog_compiler_pic_works=yes
9527 fi
9528 fi
9529 $RM conftest*
9530
9531 fi
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9533 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9534
9535 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9536 case $lt_prog_compiler_pic in
9537 "" | " "*) ;;
9538 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9539 esac
9540 else
9541 lt_prog_compiler_pic=
9542 lt_prog_compiler_can_build_shared=no
9543 fi
9544
9545 fi
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557 #
9558 # Check to make sure the static flag actually works.
9559 #
9560 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9562 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9563 if test ${lt_cv_prog_compiler_static_works+y}
9564 then :
9565 printf %s "(cached) " >&6
9566 else $as_nop
9567 lt_cv_prog_compiler_static_works=no
9568 save_LDFLAGS=$LDFLAGS
9569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9572 # The linker can only warn and ignore the option if not recognized
9573 # So say no if there are warnings
9574 if test -s conftest.err; then
9575 # Append any errors to the config.log.
9576 cat conftest.err 1>&5
9577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9579 if diff conftest.exp conftest.er2 >/dev/null; then
9580 lt_cv_prog_compiler_static_works=yes
9581 fi
9582 else
9583 lt_cv_prog_compiler_static_works=yes
9584 fi
9585 fi
9586 $RM -r conftest*
9587 LDFLAGS=$save_LDFLAGS
9588
9589 fi
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9591 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9592
9593 if test yes = "$lt_cv_prog_compiler_static_works"; then
9594 :
9595 else
9596 lt_prog_compiler_static=
9597 fi
9598
9599
9600
9601
9602
9603
9604
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9606 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9607 if test ${lt_cv_prog_compiler_c_o+y}
9608 then :
9609 printf %s "(cached) " >&6
9610 else $as_nop
9611 lt_cv_prog_compiler_c_o=no
9612 $RM -r conftest 2>/dev/null
9613 mkdir conftest
9614 cd conftest
9615 mkdir out
9616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9617
9618 lt_compiler_flag="-o out/conftest2.$ac_objext"
9619 # Insert the option either (1) after the last *FLAGS variable, or
9620 # (2) before a word containing "conftest.", or (3) at the end.
9621 # Note that $ac_compile itself does not contain backslashes and begins
9622 # with a dollar sign (not a hyphen), so the echo should work correctly.
9623 lt_compile=`echo "$ac_compile" | $SED \
9624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9626 -e 's:$: $lt_compiler_flag:'`
9627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9628 (eval "$lt_compile" 2>out/conftest.err)
9629 ac_status=$?
9630 cat out/conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9633 then
9634 # The compiler can only warn and ignore the option if not recognized
9635 # So say no if there are warnings
9636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9639 lt_cv_prog_compiler_c_o=yes
9640 fi
9641 fi
9642 chmod u+w . 2>&5
9643 $RM conftest*
9644 # SGI C++ compiler will create directory out/ii_files/ for
9645 # template instantiation
9646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9647 $RM out/* && rmdir out
9648 cd ..
9649 $RM -r conftest
9650 $RM conftest*
9651
9652 fi
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9654 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9655
9656
9657
9658
9659
9660
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9662 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9663 if test ${lt_cv_prog_compiler_c_o+y}
9664 then :
9665 printf %s "(cached) " >&6
9666 else $as_nop
9667 lt_cv_prog_compiler_c_o=no
9668 $RM -r conftest 2>/dev/null
9669 mkdir conftest
9670 cd conftest
9671 mkdir out
9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673
9674 lt_compiler_flag="-o out/conftest2.$ac_objext"
9675 # Insert the option either (1) after the last *FLAGS variable, or
9676 # (2) before a word containing "conftest.", or (3) at the end.
9677 # Note that $ac_compile itself does not contain backslashes and begins
9678 # with a dollar sign (not a hyphen), so the echo should work correctly.
9679 lt_compile=`echo "$ac_compile" | $SED \
9680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682 -e 's:$: $lt_compiler_flag:'`
9683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684 (eval "$lt_compile" 2>out/conftest.err)
9685 ac_status=$?
9686 cat out/conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9689 then
9690 # The compiler can only warn and ignore the option if not recognized
9691 # So say no if there are warnings
9692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9695 lt_cv_prog_compiler_c_o=yes
9696 fi
9697 fi
9698 chmod u+w . 2>&5
9699 $RM conftest*
9700 # SGI C++ compiler will create directory out/ii_files/ for
9701 # template instantiation
9702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9703 $RM out/* && rmdir out
9704 cd ..
9705 $RM -r conftest
9706 $RM conftest*
9707
9708 fi
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9710 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9711
9712
9713
9714
9715 hard_links=nottested
9716 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9717 # do not overwrite the value of need_locks provided by the user
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9719 printf %s "checking if we can lock with hard links... " >&6; }
9720 hard_links=yes
9721 $RM conftest*
9722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9723 touch conftest.a
9724 ln conftest.a conftest.b 2>&5 || hard_links=no
9725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9727 printf "%s\n" "$hard_links" >&6; }
9728 if test no = "$hard_links"; then
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9730 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9731 need_locks=warn
9732 fi
9733 else
9734 need_locks=no
9735 fi
9736
9737
9738
9739
9740
9741
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9743 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9744
9745 runpath_var=
9746 allow_undefined_flag=
9747 always_export_symbols=no
9748 archive_cmds=
9749 archive_expsym_cmds=
9750 compiler_needs_object=no
9751 enable_shared_with_static_runtimes=no
9752 export_dynamic_flag_spec=
9753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9754 hardcode_automatic=no
9755 hardcode_direct=no
9756 hardcode_direct_absolute=no
9757 hardcode_libdir_flag_spec=
9758 hardcode_libdir_separator=
9759 hardcode_minus_L=no
9760 hardcode_shlibpath_var=unsupported
9761 inherit_rpath=no
9762 link_all_deplibs=unknown
9763 module_cmds=
9764 module_expsym_cmds=
9765 old_archive_from_new_cmds=
9766 old_archive_from_expsyms_cmds=
9767 thread_safe_flag_spec=
9768 whole_archive_flag_spec=
9769 # include_expsyms should be a list of space-separated symbols to be *always*
9770 # included in the symbol list
9771 include_expsyms=
9772 # exclude_expsyms can be an extended regexp of symbols to exclude
9773 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9774 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9775 # as well as any symbol that contains 'd'.
9776 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9777 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9778 # platforms (ab)use it in PIC code, but their linkers get confused if
9779 # the symbol is explicitly referenced. Since portable code cannot
9780 # rely on this symbol name, it's probably fine to never include it in
9781 # preloaded symbol tables.
9782 # Exclude shared library initialization/finalization symbols.
9783 extract_expsyms_cmds=
9784
9785 case $host_os in
9786 cygwin* | mingw* | pw32* | cegcc*)
9787 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9788 # When not using gcc, we currently assume that we are using
9789 # Microsoft Visual C++ or Intel C++ Compiler.
9790 if test yes != "$GCC"; then
9791 with_gnu_ld=no
9792 fi
9793 ;;
9794 interix*)
9795 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9796 with_gnu_ld=yes
9797 ;;
9798 openbsd* | bitrig*)
9799 with_gnu_ld=no
9800 ;;
9801 linux* | k*bsd*-gnu | gnu*)
9802 link_all_deplibs=no
9803 ;;
9804 esac
9805
9806 ld_shlibs=yes
9807
9808 # On some targets, GNU ld is compatible enough with the native linker
9809 # that we're better off using the native interface for both.
9810 lt_use_gnu_ld_interface=no
9811 if test yes = "$with_gnu_ld"; then
9812 case $host_os in
9813 aix*)
9814 # The AIX port of GNU ld has always aspired to compatibility
9815 # with the native linker. However, as the warning in the GNU ld
9816 # block says, versions before 2.19.5* couldn't really create working
9817 # shared libraries, regardless of the interface used.
9818 case `$LD -v 2>&1` in
9819 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9820 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9821 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9822 *)
9823 lt_use_gnu_ld_interface=yes
9824 ;;
9825 esac
9826 ;;
9827 *)
9828 lt_use_gnu_ld_interface=yes
9829 ;;
9830 esac
9831 fi
9832
9833 if test yes = "$lt_use_gnu_ld_interface"; then
9834 # If archive_cmds runs LD, not CC, wlarc should be empty
9835 wlarc='$wl'
9836
9837 # Set some defaults for GNU ld with shared library support. These
9838 # are reset later if shared libraries are not supported. Putting them
9839 # here allows them to be overridden if necessary.
9840 runpath_var=LD_RUN_PATH
9841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9842 export_dynamic_flag_spec='$wl--export-dynamic'
9843 # ancient GNU ld didn't support --whole-archive et. al.
9844 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9845 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9846 else
9847 whole_archive_flag_spec=
9848 fi
9849 supports_anon_versioning=no
9850 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9851 *GNU\ gold*) supports_anon_versioning=yes ;;
9852 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9853 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9854 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9855 *\ 2.11.*) ;; # other 2.11 versions
9856 *) supports_anon_versioning=yes ;;
9857 esac
9858
9859 # See if GNU ld supports shared libraries.
9860 case $host_os in
9861 aix[3-9]*)
9862 # On AIX/PPC, the GNU linker is very broken
9863 if test ia64 != "$host_cpu"; then
9864 ld_shlibs=no
9865 cat <<_LT_EOF 1>&2
9866
9867 *** Warning: the GNU linker, at least up to release 2.19, is reported
9868 *** to be unable to reliably create shared libraries on AIX.
9869 *** Therefore, libtool is disabling shared libraries support. If you
9870 *** really care for shared libraries, you may want to install binutils
9871 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9872 *** You will then need to restart the configuration process.
9873
9874 _LT_EOF
9875 fi
9876 ;;
9877
9878 amigaos*)
9879 case $host_cpu in
9880 powerpc)
9881 # see comment about AmigaOS4 .so support
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883 archive_expsym_cmds=''
9884 ;;
9885 m68k)
9886 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)'
9887 hardcode_libdir_flag_spec='-L$libdir'
9888 hardcode_minus_L=yes
9889 ;;
9890 esac
9891 ;;
9892
9893 beos*)
9894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9895 allow_undefined_flag=unsupported
9896 # Joseph Beckenbach <[email protected]> says some releases of gcc
9897 # support --undefined. This deserves some investigation. FIXME
9898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899 else
9900 ld_shlibs=no
9901 fi
9902 ;;
9903
9904 cygwin* | mingw* | pw32* | cegcc*)
9905 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9906 # as there is no search path for DLLs.
9907 hardcode_libdir_flag_spec='-L$libdir'
9908 export_dynamic_flag_spec='$wl--export-all-symbols'
9909 allow_undefined_flag=unsupported
9910 always_export_symbols=no
9911 enable_shared_with_static_runtimes=yes
9912 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'
9913 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9914
9915 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9917 # If the export-symbols file already is a .def file, use it as
9918 # is; otherwise, prepend EXPORTS...
9919 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9920 cp $export_symbols $output_objdir/$soname.def;
9921 else
9922 echo EXPORTS > $output_objdir/$soname.def;
9923 cat $export_symbols >> $output_objdir/$soname.def;
9924 fi~
9925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
9930
9931 haiku*)
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9933 link_all_deplibs=yes
9934 ;;
9935
9936 os2*)
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_minus_L=yes
9939 allow_undefined_flag=unsupported
9940 shrext_cmds=.dll
9941 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9942 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9943 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9944 $ECHO EXPORTS >> $output_objdir/$libname.def~
9945 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9946 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9947 emximp -o $lib $output_objdir/$libname.def'
9948 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9949 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9950 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9951 $ECHO EXPORTS >> $output_objdir/$libname.def~
9952 prefix_cmds="$SED"~
9953 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9954 prefix_cmds="$prefix_cmds -e 1d";
9955 fi~
9956 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9957 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9959 emximp -o $lib $output_objdir/$libname.def'
9960 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9961 enable_shared_with_static_runtimes=yes
9962 file_list_spec='@'
9963 ;;
9964
9965 interix[3-9]*)
9966 hardcode_direct=no
9967 hardcode_shlibpath_var=no
9968 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9969 export_dynamic_flag_spec='$wl-E'
9970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9971 # Instead, shared libraries are loaded at an image base (0x10000000 by
9972 # default) and relocated if they conflict, which is a slow very memory
9973 # consuming and fragmenting process. To avoid this, we pick a random,
9974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9977 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'
9978 ;;
9979
9980 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9981 tmp_diet=no
9982 if test linux-dietlibc = "$host_os"; then
9983 case $cc_basename in
9984 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9985 esac
9986 fi
9987 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9988 && test no = "$tmp_diet"
9989 then
9990 tmp_addflag=' $pic_flag'
9991 tmp_sharedflag='-shared'
9992 case $cc_basename,$host_cpu in
9993 pgcc*) # Portland Group C compiler
9994 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'
9995 tmp_addflag=' $pic_flag'
9996 ;;
9997 pgf77* | pgf90* | pgf95* | pgfortran*)
9998 # Portland Group f77 and f90 compilers
9999 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'
10000 tmp_addflag=' $pic_flag -Mnomain' ;;
10001 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10002 tmp_addflag=' -i_dynamic' ;;
10003 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10004 tmp_addflag=' -i_dynamic -nofor_main' ;;
10005 ifc* | ifort*) # Intel Fortran compiler
10006 tmp_addflag=' -nofor_main' ;;
10007 lf95*) # Lahey Fortran 8.1
10008 whole_archive_flag_spec=
10009 tmp_sharedflag='--shared' ;;
10010 nagfor*) # NAGFOR 5.3
10011 tmp_sharedflag='-Wl,-shared' ;;
10012 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10013 tmp_sharedflag='-qmkshrobj'
10014 tmp_addflag= ;;
10015 nvcc*) # Cuda Compiler Driver 2.2
10016 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'
10017 compiler_needs_object=yes
10018 ;;
10019 esac
10020 case `$CC -V 2>&1 | $SED 5q` in
10021 *Sun\ C*) # Sun C 5.9
10022 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'
10023 compiler_needs_object=yes
10024 tmp_sharedflag='-G' ;;
10025 *Sun\ F*) # Sun Fortran 8.3
10026 tmp_sharedflag='-G' ;;
10027 esac
10028 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10029
10030 if test yes = "$supports_anon_versioning"; then
10031 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10032 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10033 echo "local: *; };" >> $output_objdir/$libname.ver~
10034 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10035 fi
10036
10037 case $cc_basename in
10038 tcc*)
10039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10040 export_dynamic_flag_spec='-rdynamic'
10041 ;;
10042 xlf* | bgf* | bgxlf* | mpixlf*)
10043 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10044 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10046 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10047 if test yes = "$supports_anon_versioning"; then
10048 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10049 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10050 echo "local: *; };" >> $output_objdir/$libname.ver~
10051 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10052 fi
10053 ;;
10054 esac
10055 else
10056 ld_shlibs=no
10057 fi
10058 ;;
10059
10060 netbsd* | netbsdelf*-gnu)
10061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10062 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10063 wlarc=
10064 else
10065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10067 fi
10068 ;;
10069
10070 solaris*)
10071 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10072 ld_shlibs=no
10073 cat <<_LT_EOF 1>&2
10074
10075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10076 *** create shared libraries on Solaris systems. Therefore, libtool
10077 *** is disabling shared libraries support. We urge you to upgrade GNU
10078 *** binutils to release 2.9.1 or newer. Another option is to modify
10079 *** your PATH or compiler configuration so that the native linker is
10080 *** used, and then restart.
10081
10082 _LT_EOF
10083 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10086 else
10087 ld_shlibs=no
10088 fi
10089 ;;
10090
10091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10092 case `$LD -v 2>&1` in
10093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10094 ld_shlibs=no
10095 cat <<_LT_EOF 1>&2
10096
10097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10098 *** reliably create shared libraries on SCO systems. Therefore, libtool
10099 *** is disabling shared libraries support. We urge you to upgrade GNU
10100 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10101 *** your PATH or compiler configuration so that the native linker is
10102 *** used, and then restart.
10103
10104 _LT_EOF
10105 ;;
10106 *)
10107 # For security reasons, it is highly recommended that you always
10108 # use absolute paths for naming shared libraries, and exclude the
10109 # DT_RUNPATH tag from executables and libraries. But doing so
10110 # requires that you compile everything twice, which is a pain.
10111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10115 else
10116 ld_shlibs=no
10117 fi
10118 ;;
10119 esac
10120 ;;
10121
10122 sunos4*)
10123 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10124 wlarc=
10125 hardcode_direct=yes
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 *)
10130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10133 else
10134 ld_shlibs=no
10135 fi
10136 ;;
10137 esac
10138
10139 if test no = "$ld_shlibs"; then
10140 runpath_var=
10141 hardcode_libdir_flag_spec=
10142 export_dynamic_flag_spec=
10143 whole_archive_flag_spec=
10144 fi
10145 else
10146 # PORTME fill in a description of your system's linker (not GNU ld)
10147 case $host_os in
10148 aix3*)
10149 allow_undefined_flag=unsupported
10150 always_export_symbols=yes
10151 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'
10152 # Note: this linker hardcodes the directories in LIBPATH if there
10153 # are no directories specified by -L.
10154 hardcode_minus_L=yes
10155 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10156 # Neither direct hardcoding nor static linking is supported with a
10157 # broken collect2.
10158 hardcode_direct=unsupported
10159 fi
10160 ;;
10161
10162 aix[4-9]*)
10163 if test ia64 = "$host_cpu"; then
10164 # On IA64, the linker does run time linking by default, so we don't
10165 # have to do anything special.
10166 aix_use_runtimelinking=no
10167 exp_sym_flag='-Bexport'
10168 no_entry_flag=
10169 else
10170 # If we're using GNU nm, then we don't want the "-C" option.
10171 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10172 # Without the "-l" option, or with the "-B" option, AIX nm treats
10173 # weak defined symbols like other global defined symbols, whereas
10174 # GNU nm marks them as "W".
10175 # While the 'weak' keyword is ignored in the Export File, we need
10176 # it in the Import File for the 'aix-soname' feature, so we have
10177 # to replace the "-B" option with "-P" for AIX nm.
10178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10179 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'
10180 else
10181 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'
10182 fi
10183 aix_use_runtimelinking=no
10184
10185 # Test if we are trying to use run time linking or normal
10186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10187 # have runtime linking enabled, and use it for executables.
10188 # For shared libraries, we enable/disable runtime linking
10189 # depending on the kind of the shared library created -
10190 # when "with_aix_soname,aix_use_runtimelinking" is:
10191 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10192 # "aix,yes" lib.so shared, rtl:yes, for executables
10193 # lib.a static archive
10194 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10195 # lib.a(lib.so.V) shared, rtl:no, for executables
10196 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10197 # lib.a(lib.so.V) shared, rtl:no
10198 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10199 # lib.a static archive
10200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10201 for ld_flag in $LDFLAGS; do
10202 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10203 aix_use_runtimelinking=yes
10204 break
10205 fi
10206 done
10207 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10208 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10209 # so we don't have lib.a shared libs to link our executables.
10210 # We have to force runtime linking in this case.
10211 aix_use_runtimelinking=yes
10212 LDFLAGS="$LDFLAGS -Wl,-brtl"
10213 fi
10214 ;;
10215 esac
10216
10217 exp_sym_flag='-bexport'
10218 no_entry_flag='-bnoentry'
10219 fi
10220
10221 # When large executables or shared objects are built, AIX ld can
10222 # have problems creating the table of contents. If linking a library
10223 # or program results in "error TOC overflow" add -mminimal-toc to
10224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10226
10227 archive_cmds=''
10228 hardcode_direct=yes
10229 hardcode_direct_absolute=yes
10230 hardcode_libdir_separator=':'
10231 link_all_deplibs=yes
10232 file_list_spec='$wl-f,'
10233 case $with_aix_soname,$aix_use_runtimelinking in
10234 aix,*) ;; # traditional, no import file
10235 svr4,* | *,yes) # use import file
10236 # The Import File defines what to hardcode.
10237 hardcode_direct=no
10238 hardcode_direct_absolute=no
10239 ;;
10240 esac
10241
10242 if test yes = "$GCC"; then
10243 case $host_os in aix4.[012]|aix4.[012].*)
10244 # We only want to do this on AIX 4.2 and lower, the check
10245 # below for broken collect2 doesn't work under 4.3+
10246 collect2name=`$CC -print-prog-name=collect2`
10247 if test -f "$collect2name" &&
10248 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10249 then
10250 # We have reworked collect2
10251 :
10252 else
10253 # We have old collect2
10254 hardcode_direct=unsupported
10255 # It fails to find uninstalled libraries when the uninstalled
10256 # path is not listed in the libpath. Setting hardcode_minus_L
10257 # to unsupported forces relinking
10258 hardcode_minus_L=yes
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_libdir_separator=
10261 fi
10262 ;;
10263 esac
10264 shared_flag='-shared'
10265 if test yes = "$aix_use_runtimelinking"; then
10266 shared_flag="$shared_flag "'$wl-G'
10267 fi
10268 # Need to ensure runtime linking is disabled for the traditional
10269 # shared library, or the linker may eventually find shared libraries
10270 # /with/ Import File - we do not want to mix them.
10271 shared_flag_aix='-shared'
10272 shared_flag_svr4='-shared $wl-G'
10273 else
10274 # not using gcc
10275 if test ia64 = "$host_cpu"; then
10276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10277 # chokes on -Wl,-G. The following line is correct:
10278 shared_flag='-G'
10279 else
10280 if test yes = "$aix_use_runtimelinking"; then
10281 shared_flag='$wl-G'
10282 else
10283 shared_flag='$wl-bM:SRE'
10284 fi
10285 shared_flag_aix='$wl-bM:SRE'
10286 shared_flag_svr4='$wl-G'
10287 fi
10288 fi
10289
10290 export_dynamic_flag_spec='$wl-bexpall'
10291 # It seems that -bexpall does not export symbols beginning with
10292 # underscore (_), so it is better to generate a list of symbols to export.
10293 always_export_symbols=yes
10294 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10295 # Warning - without using the other runtime loading flags (-brtl),
10296 # -berok will link without error, but may produce a broken library.
10297 allow_undefined_flag='-berok'
10298 # Determine the default libpath from the value encoded in an
10299 # empty executable.
10300 if test set = "${lt_cv_aix_libpath+set}"; then
10301 aix_libpath=$lt_cv_aix_libpath
10302 else
10303 if test ${lt_cv_aix_libpath_+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309
10310 int
10311 main (void)
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"
10319 then :
10320
10321 lt_aix_libpath_sed='
10322 /Import File Strings/,/^$/ {
10323 /^0/ {
10324 s/^0 *\([^ ]*\) *$/\1/
10325 p
10326 }
10327 }'
10328 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10329 # Check for a 64-bit object if we didn't find anything.
10330 if test -z "$lt_cv_aix_libpath_"; then
10331 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 fi
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10335 conftest$ac_exeext conftest.$ac_ext
10336 if test -z "$lt_cv_aix_libpath_"; then
10337 lt_cv_aix_libpath_=/usr/lib:/lib
10338 fi
10339
10340 fi
10341
10342 aix_libpath=$lt_cv_aix_libpath_
10343 fi
10344
10345 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10346 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
10347 else
10348 if test ia64 = "$host_cpu"; then
10349 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10350 allow_undefined_flag="-z nodefs"
10351 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"
10352 else
10353 # Determine the default libpath from the value encoded in an
10354 # empty executable.
10355 if test set = "${lt_cv_aix_libpath+set}"; then
10356 aix_libpath=$lt_cv_aix_libpath
10357 else
10358 if test ${lt_cv_aix_libpath_+y}
10359 then :
10360 printf %s "(cached) " >&6
10361 else $as_nop
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364
10365 int
10366 main (void)
10367 {
10368
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"
10374 then :
10375
10376 lt_aix_libpath_sed='
10377 /Import File Strings/,/^$/ {
10378 /^0/ {
10379 s/^0 *\([^ ]*\) *$/\1/
10380 p
10381 }
10382 }'
10383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 # Check for a 64-bit object if we didn't find anything.
10385 if test -z "$lt_cv_aix_libpath_"; then
10386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 fi
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10390 conftest$ac_exeext conftest.$ac_ext
10391 if test -z "$lt_cv_aix_libpath_"; then
10392 lt_cv_aix_libpath_=/usr/lib:/lib
10393 fi
10394
10395 fi
10396
10397 aix_libpath=$lt_cv_aix_libpath_
10398 fi
10399
10400 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10401 # Warning - without using the other run time loading flags,
10402 # -berok will link without error, but may produce a broken library.
10403 no_undefined_flag=' $wl-bernotok'
10404 allow_undefined_flag=' $wl-berok'
10405 if test yes = "$with_gnu_ld"; then
10406 # We only use this code for GNU lds that support --whole-archive.
10407 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10408 else
10409 # Exported symbols can be pulled into shared objects from archives
10410 whole_archive_flag_spec='$convenience'
10411 fi
10412 archive_cmds_need_lc=yes
10413 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10414 # -brtl affects multiple linker settings, -berok does not and is overridden later
10415 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10416 if test svr4 != "$with_aix_soname"; then
10417 # This is similar to how AIX traditionally builds its shared libraries.
10418 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'
10419 fi
10420 if test aix != "$with_aix_soname"; then
10421 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'
10422 else
10423 # used by -dlpreopen to get the symbols
10424 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10425 fi
10426 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10427 fi
10428 fi
10429 ;;
10430
10431 amigaos*)
10432 case $host_cpu in
10433 powerpc)
10434 # see comment about AmigaOS4 .so support
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10436 archive_expsym_cmds=''
10437 ;;
10438 m68k)
10439 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)'
10440 hardcode_libdir_flag_spec='-L$libdir'
10441 hardcode_minus_L=yes
10442 ;;
10443 esac
10444 ;;
10445
10446 bsdi[45]*)
10447 export_dynamic_flag_spec=-rdynamic
10448 ;;
10449
10450 cygwin* | mingw* | pw32* | cegcc*)
10451 # When not using gcc, we currently assume that we are using
10452 # Microsoft Visual C++ or Intel C++ Compiler.
10453 # hardcode_libdir_flag_spec is actually meaningless, as there is
10454 # no search path for DLLs.
10455 case $cc_basename in
10456 cl* | icl*)
10457 # Native MSVC or ICC
10458 hardcode_libdir_flag_spec=' '
10459 allow_undefined_flag=unsupported
10460 always_export_symbols=yes
10461 file_list_spec='@'
10462 # Tell ltmain to make .lib files, not .a files.
10463 libext=lib
10464 # Tell ltmain to make .dll files, not .so files.
10465 shrext_cmds=.dll
10466 # FIXME: Setting linknames here is a bad hack.
10467 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10468 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10469 cp "$export_symbols" "$output_objdir/$soname.def";
10470 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10471 else
10472 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10473 fi~
10474 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10475 linknames='
10476 # The linker will not automatically build a static lib if we build a DLL.
10477 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10478 enable_shared_with_static_runtimes=yes
10479 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10481 # Don't use ranlib
10482 old_postinstall_cmds='chmod 644 $oldlib'
10483 postlink_cmds='lt_outputfile="@OUTPUT@"~
10484 lt_tool_outputfile="@TOOL_OUTPUT@"~
10485 case $lt_outputfile in
10486 *.exe|*.EXE) ;;
10487 *)
10488 lt_outputfile=$lt_outputfile.exe
10489 lt_tool_outputfile=$lt_tool_outputfile.exe
10490 ;;
10491 esac~
10492 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10493 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10494 $RM "$lt_outputfile.manifest";
10495 fi'
10496 ;;
10497 *)
10498 # Assume MSVC and ICC wrapper
10499 hardcode_libdir_flag_spec=' '
10500 allow_undefined_flag=unsupported
10501 # Tell ltmain to make .lib files, not .a files.
10502 libext=lib
10503 # Tell ltmain to make .dll files, not .so files.
10504 shrext_cmds=.dll
10505 # FIXME: Setting linknames here is a bad hack.
10506 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10507 # The linker will automatically build a .lib file if we build a DLL.
10508 old_archive_from_new_cmds='true'
10509 # FIXME: Should let the user specify the lib program.
10510 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10511 enable_shared_with_static_runtimes=yes
10512 ;;
10513 esac
10514 ;;
10515
10516 darwin* | rhapsody*)
10517
10518
10519 archive_cmds_need_lc=no
10520 hardcode_direct=no
10521 hardcode_automatic=yes
10522 hardcode_shlibpath_var=unsupported
10523 if test yes = "$lt_cv_ld_force_load"; then
10524 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\"`'
10525
10526 else
10527 whole_archive_flag_spec=''
10528 fi
10529 link_all_deplibs=yes
10530 allow_undefined_flag=$_lt_dar_allow_undefined
10531 case $cc_basename in
10532 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10533 *) _lt_dar_can_shared=$GCC ;;
10534 esac
10535 if test yes = "$_lt_dar_can_shared"; then
10536 output_verbose_link_cmd=func_echo_all
10537 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10538 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10539 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"
10540 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"
10541
10542 else
10543 ld_shlibs=no
10544 fi
10545
10546 ;;
10547
10548 dgux*)
10549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10555 # support. Future versions do this automatically, but an explicit c++rt0.o
10556 # does not break anything, and helps significantly (at the cost of a little
10557 # extra space).
10558 freebsd2.2*)
10559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10560 hardcode_libdir_flag_spec='-R$libdir'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10566 freebsd2.*)
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_direct=yes
10569 hardcode_minus_L=yes
10570 hardcode_shlibpath_var=no
10571 ;;
10572
10573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10574 freebsd* | dragonfly* | midnightbsd*)
10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10576 hardcode_libdir_flag_spec='-R$libdir'
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10579 ;;
10580
10581 hpux9*)
10582 if test yes = "$GCC"; then
10583 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'
10584 else
10585 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'
10586 fi
10587 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10590
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 export_dynamic_flag_spec='$wl-E'
10595 ;;
10596
10597 hpux10*)
10598 if test yes,no = "$GCC,$with_gnu_ld"; then
10599 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10600 else
10601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10602 fi
10603 if test no = "$with_gnu_ld"; then
10604 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10605 hardcode_libdir_separator=:
10606 hardcode_direct=yes
10607 hardcode_direct_absolute=yes
10608 export_dynamic_flag_spec='$wl-E'
10609 # hardcode_minus_L: Not really in the search PATH,
10610 # but as the default location of the library.
10611 hardcode_minus_L=yes
10612 fi
10613 ;;
10614
10615 hpux11*)
10616 if test yes,no = "$GCC,$with_gnu_ld"; then
10617 case $host_cpu in
10618 hppa*64*)
10619 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 ia64*)
10622 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 *)
10625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10626 ;;
10627 esac
10628 else
10629 case $host_cpu in
10630 hppa*64*)
10631 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 ;;
10633 ia64*)
10634 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10635 ;;
10636 *)
10637
10638 # Older versions of the 11.00 compiler do not understand -b yet
10639 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10641 printf %s "checking if $CC understands -b... " >&6; }
10642 if test ${lt_cv_prog_compiler__b+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else $as_nop
10646 lt_cv_prog_compiler__b=no
10647 save_LDFLAGS=$LDFLAGS
10648 LDFLAGS="$LDFLAGS -b"
10649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10651 # The linker can only warn and ignore the option if not recognized
10652 # So say no if there are warnings
10653 if test -s conftest.err; then
10654 # Append any errors to the config.log.
10655 cat conftest.err 1>&5
10656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10658 if diff conftest.exp conftest.er2 >/dev/null; then
10659 lt_cv_prog_compiler__b=yes
10660 fi
10661 else
10662 lt_cv_prog_compiler__b=yes
10663 fi
10664 fi
10665 $RM -r conftest*
10666 LDFLAGS=$save_LDFLAGS
10667
10668 fi
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10670 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10671
10672 if test yes = "$lt_cv_prog_compiler__b"; then
10673 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 else
10675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10676 fi
10677
10678 ;;
10679 esac
10680 fi
10681 if test no = "$with_gnu_ld"; then
10682 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10683 hardcode_libdir_separator=:
10684
10685 case $host_cpu in
10686 hppa*64*|ia64*)
10687 hardcode_direct=no
10688 hardcode_shlibpath_var=no
10689 ;;
10690 *)
10691 hardcode_direct=yes
10692 hardcode_direct_absolute=yes
10693 export_dynamic_flag_spec='$wl-E'
10694
10695 # hardcode_minus_L: Not really in the search PATH,
10696 # but as the default location of the library.
10697 hardcode_minus_L=yes
10698 ;;
10699 esac
10700 fi
10701 ;;
10702
10703 irix5* | irix6* | nonstopux*)
10704 if test yes = "$GCC"; then
10705 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'
10706 # Try to use the -exported_symbol ld option, if it does not
10707 # work, assume that -exports_file does not work either and
10708 # implicitly export all symbols.
10709 # This should be the same for all languages, so no per-tag cache variable.
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10711 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10712 if test ${lt_cv_irix_exported_symbol+y}
10713 then :
10714 printf %s "(cached) " >&6
10715 else $as_nop
10716 save_LDFLAGS=$LDFLAGS
10717 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 int foo (void) { return 0; }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"
10723 then :
10724 lt_cv_irix_exported_symbol=yes
10725 else $as_nop
10726 lt_cv_irix_exported_symbol=no
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LDFLAGS=$save_LDFLAGS
10731 fi
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10733 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10734 if test yes = "$lt_cv_irix_exported_symbol"; then
10735 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'
10736 fi
10737 link_all_deplibs=no
10738 else
10739 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'
10740 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'
10741 fi
10742 archive_cmds_need_lc='no'
10743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10744 hardcode_libdir_separator=:
10745 inherit_rpath=yes
10746 link_all_deplibs=yes
10747 ;;
10748
10749 linux*)
10750 case $cc_basename in
10751 tcc*)
10752 # Fabrice Bellard et al's Tiny C Compiler
10753 ld_shlibs=yes
10754 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10756 ;;
10757 esac
10758 ;;
10759
10760 netbsd* | netbsdelf*-gnu)
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10763 else
10764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10765 fi
10766 hardcode_libdir_flag_spec='-R$libdir'
10767 hardcode_direct=yes
10768 hardcode_shlibpath_var=no
10769 ;;
10770
10771 newsos6)
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_direct=yes
10774 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10775 hardcode_libdir_separator=:
10776 hardcode_shlibpath_var=no
10777 ;;
10778
10779 *nto* | *qnx*)
10780 ;;
10781
10782 openbsd* | bitrig*)
10783 if test -f /usr/libexec/ld.so; then
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10786 hardcode_direct_absolute=yes
10787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10790 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10791 export_dynamic_flag_spec='$wl-E'
10792 else
10793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10794 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10795 fi
10796 else
10797 ld_shlibs=no
10798 fi
10799 ;;
10800
10801 os2*)
10802 hardcode_libdir_flag_spec='-L$libdir'
10803 hardcode_minus_L=yes
10804 allow_undefined_flag=unsupported
10805 shrext_cmds=.dll
10806 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10809 $ECHO EXPORTS >> $output_objdir/$libname.def~
10810 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10811 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10812 emximp -o $lib $output_objdir/$libname.def'
10813 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10816 $ECHO EXPORTS >> $output_objdir/$libname.def~
10817 prefix_cmds="$SED"~
10818 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10819 prefix_cmds="$prefix_cmds -e 1d";
10820 fi~
10821 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10822 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10823 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10824 emximp -o $lib $output_objdir/$libname.def'
10825 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10826 enable_shared_with_static_runtimes=yes
10827 file_list_spec='@'
10828 ;;
10829
10830 osf3*)
10831 if test yes = "$GCC"; then
10832 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10833 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'
10834 else
10835 allow_undefined_flag=' -expect_unresolved \*'
10836 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'
10837 fi
10838 archive_cmds_need_lc='no'
10839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10840 hardcode_libdir_separator=:
10841 ;;
10842
10843 osf4* | osf5*) # as osf3* with the addition of -msym flag
10844 if test yes = "$GCC"; then
10845 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10846 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'
10847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10848 else
10849 allow_undefined_flag=' -expect_unresolved \*'
10850 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'
10851 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~
10852 $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'
10853
10854 # Both c and cxx compiler support -rpath directly
10855 hardcode_libdir_flag_spec='-rpath $libdir'
10856 fi
10857 archive_cmds_need_lc='no'
10858 hardcode_libdir_separator=:
10859 ;;
10860
10861 solaris*)
10862 no_undefined_flag=' -z defs'
10863 if test yes = "$GCC"; then
10864 wlarc='$wl'
10865 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867 $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'
10868 else
10869 case `$CC -V 2>&1` in
10870 *"Compilers 5.0"*)
10871 wlarc=''
10872 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10874 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10875 ;;
10876 *)
10877 wlarc='$wl'
10878 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10880 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10881 ;;
10882 esac
10883 fi
10884 hardcode_libdir_flag_spec='-R$libdir'
10885 hardcode_shlibpath_var=no
10886 case $host_os in
10887 solaris2.[0-5] | solaris2.[0-5].*) ;;
10888 *)
10889 # The compiler driver will combine and reorder linker options,
10890 # but understands '-z linker_flag'. GCC discards it without '$wl',
10891 # but is careful enough not to reorder.
10892 # Supported since Solaris 2.6 (maybe 2.5.1?)
10893 if test yes = "$GCC"; then
10894 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10895 else
10896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10897 fi
10898 ;;
10899 esac
10900 link_all_deplibs=yes
10901 ;;
10902
10903 sunos4*)
10904 if test sequent = "$host_vendor"; then
10905 # Use $CC to link under sequent, because it throws in some extra .o
10906 # files that make .init and .fini sections work.
10907 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10908 else
10909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10910 fi
10911 hardcode_libdir_flag_spec='-L$libdir'
10912 hardcode_direct=yes
10913 hardcode_minus_L=yes
10914 hardcode_shlibpath_var=no
10915 ;;
10916
10917 sysv4)
10918 case $host_vendor in
10919 sni)
10920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921 hardcode_direct=yes # is this really true???
10922 ;;
10923 siemens)
10924 ## LD is ld it makes a PLAMLIB
10925 ## CC just makes a GrossModule.
10926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10927 reload_cmds='$CC -r -o $output$reload_objs'
10928 hardcode_direct=no
10929 ;;
10930 motorola)
10931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10933 ;;
10934 esac
10935 runpath_var='LD_RUN_PATH'
10936 hardcode_shlibpath_var=no
10937 ;;
10938
10939 sysv4.3*)
10940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10941 hardcode_shlibpath_var=no
10942 export_dynamic_flag_spec='-Bexport'
10943 ;;
10944
10945 sysv4*MP*)
10946 if test -d /usr/nec; then
10947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10948 hardcode_shlibpath_var=no
10949 runpath_var=LD_RUN_PATH
10950 hardcode_runpath_var=yes
10951 ld_shlibs=yes
10952 fi
10953 ;;
10954
10955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10956 no_undefined_flag='$wl-z,text'
10957 archive_cmds_need_lc=no
10958 hardcode_shlibpath_var=no
10959 runpath_var='LD_RUN_PATH'
10960
10961 if test yes = "$GCC"; then
10962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 else
10965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 fi
10968 ;;
10969
10970 sysv5* | sco3.2v5* | sco5v6*)
10971 # Note: We CANNOT use -z defs as we might desire, because we do not
10972 # link with -lc, and that would cause any symbols used from libc to
10973 # always be unresolved, which means just about no library would
10974 # ever link correctly. If we're not using GNU ld we use -z text
10975 # though, which does catch some bad symbols but isn't as heavy-handed
10976 # as -z defs.
10977 no_undefined_flag='$wl-z,text'
10978 allow_undefined_flag='$wl-z,nodefs'
10979 archive_cmds_need_lc=no
10980 hardcode_shlibpath_var=no
10981 hardcode_libdir_flag_spec='$wl-R,$libdir'
10982 hardcode_libdir_separator=':'
10983 link_all_deplibs=yes
10984 export_dynamic_flag_spec='$wl-Bexport'
10985 runpath_var='LD_RUN_PATH'
10986
10987 if test yes = "$GCC"; then
10988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 else
10991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 fi
10994 ;;
10995
10996 uts4*)
10997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998 hardcode_libdir_flag_spec='-L$libdir'
10999 hardcode_shlibpath_var=no
11000 ;;
11001
11002 *)
11003 ld_shlibs=no
11004 ;;
11005 esac
11006
11007 if test sni = "$host_vendor"; then
11008 case $host in
11009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11010 export_dynamic_flag_spec='$wl-Blargedynsym'
11011 ;;
11012 esac
11013 fi
11014 fi
11015
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11017 printf "%s\n" "$ld_shlibs" >&6; }
11018 test no = "$ld_shlibs" && can_build_shared=no
11019
11020 with_gnu_ld=$with_gnu_ld
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036 #
11037 # Do we need to explicitly link libc?
11038 #
11039 case "x$archive_cmds_need_lc" in
11040 x|xyes)
11041 # Assume -lc should be added
11042 archive_cmds_need_lc=yes
11043
11044 if test yes,yes = "$GCC,$enable_shared"; then
11045 case $archive_cmds in
11046 *'~'*)
11047 # FIXME: we may have to deal with multi-command sequences.
11048 ;;
11049 '$CC '*)
11050 # Test whether the compiler implicitly links with -lc since on some
11051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11052 # to ld, don't add -lc before -lgcc.
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11054 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11055 if test ${lt_cv_archive_cmds_need_lc+y}
11056 then :
11057 printf %s "(cached) " >&6
11058 else $as_nop
11059 $RM conftest*
11060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11061
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063 (eval $ac_compile) 2>&5
11064 ac_status=$?
11065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } 2>conftest.err; then
11067 soname=conftest
11068 lib=conftest
11069 libobjs=conftest.$ac_objext
11070 deplibs=
11071 wl=$lt_prog_compiler_wl
11072 pic_flag=$lt_prog_compiler_pic
11073 compiler_flags=-v
11074 linker_flags=-v
11075 verstring=
11076 output_objdir=.
11077 libname=conftest
11078 lt_save_allow_undefined_flag=$allow_undefined_flag
11079 allow_undefined_flag=
11080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11081 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11082 ac_status=$?
11083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11084 test $ac_status = 0; }
11085 then
11086 lt_cv_archive_cmds_need_lc=no
11087 else
11088 lt_cv_archive_cmds_need_lc=yes
11089 fi
11090 allow_undefined_flag=$lt_save_allow_undefined_flag
11091 else
11092 cat conftest.err 1>&5
11093 fi
11094 $RM conftest*
11095
11096 fi
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11098 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11099 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11100 ;;
11101 esac
11102 fi
11103 ;;
11104 esac
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11258 printf %s "checking dynamic linker characteristics... " >&6; }
11259
11260 if test yes = "$GCC"; then
11261 case $host_os in
11262 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11263 *) lt_awk_arg='/^libraries:/' ;;
11264 esac
11265 case $host_os in
11266 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11267 *) lt_sed_strip_eq='s|=/|/|g' ;;
11268 esac
11269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11270 case $lt_search_path_spec in
11271 *\;*)
11272 # if the path contains ";" then we assume it to be the separator
11273 # otherwise default to the standard path separator (i.e. ":") - it is
11274 # assumed that no part of a normal pathname contains ";" but that should
11275 # okay in the real world where ";" in dirpaths is itself problematic.
11276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11277 ;;
11278 *)
11279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11280 ;;
11281 esac
11282 # Ok, now we have the path, separated by spaces, we can step through it
11283 # and add multilib dir if necessary...
11284 lt_tmp_lt_search_path_spec=
11285 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11286 # ...but if some path component already ends with the multilib dir we assume
11287 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11288 case "$lt_multi_os_dir; $lt_search_path_spec " in
11289 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11290 lt_multi_os_dir=
11291 ;;
11292 esac
11293 for lt_sys_path in $lt_search_path_spec; do
11294 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11296 elif test -n "$lt_multi_os_dir"; then
11297 test -d "$lt_sys_path" && \
11298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11299 fi
11300 done
11301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11302 BEGIN {RS = " "; FS = "/|\n";} {
11303 lt_foo = "";
11304 lt_count = 0;
11305 for (lt_i = NF; lt_i > 0; lt_i--) {
11306 if ($lt_i != "" && $lt_i != ".") {
11307 if ($lt_i == "..") {
11308 lt_count++;
11309 } else {
11310 if (lt_count == 0) {
11311 lt_foo = "/" $lt_i lt_foo;
11312 } else {
11313 lt_count--;
11314 }
11315 }
11316 }
11317 }
11318 if (lt_foo != "") { lt_freq[lt_foo]++; }
11319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11320 }'`
11321 # AWK program above erroneously prepends '/' to C:/dos/paths
11322 # for these hosts.
11323 case $host_os in
11324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11325 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11326 esac
11327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11328 else
11329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11330 fi
11331 library_names_spec=
11332 libname_spec='lib$name'
11333 soname_spec=
11334 shrext_cmds=.so
11335 postinstall_cmds=
11336 postuninstall_cmds=
11337 finish_cmds=
11338 finish_eval=
11339 shlibpath_var=
11340 shlibpath_overrides_runpath=unknown
11341 version_type=none
11342 dynamic_linker="$host_os ld.so"
11343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11344 need_lib_prefix=unknown
11345 hardcode_into_libs=no
11346
11347 # when you set need_version to no, make sure it does not cause -set_version
11348 # flags to be left without arguments
11349 need_version=unknown
11350
11351
11352
11353 case $host_os in
11354 aix3*)
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11357 shlibpath_var=LIBPATH
11358
11359 # AIX 3 has no versioning support, so we append a major version to the name.
11360 soname_spec='$libname$release$shared_ext$major'
11361 ;;
11362
11363 aix[4-9]*)
11364 version_type=linux # correct to gnu/linux during the next big refactor
11365 need_lib_prefix=no
11366 need_version=no
11367 hardcode_into_libs=yes
11368 if test ia64 = "$host_cpu"; then
11369 # AIX 5 supports IA64
11370 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 else
11373 # With GCC up to 2.95.x, collect2 would create an import file
11374 # for dependence libraries. The import file would start with
11375 # the line '#! .'. This would cause the generated library to
11376 # depend on '.', always an invalid library. This was fixed in
11377 # development snapshots of GCC prior to 3.0.
11378 case $host_os in
11379 aix4 | aix4.[01] | aix4.[01].*)
11380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11381 echo ' yes '
11382 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11383 :
11384 else
11385 can_build_shared=no
11386 fi
11387 ;;
11388 esac
11389 # Using Import Files as archive members, it is possible to support
11390 # filename-based versioning of shared library archives on AIX. While
11391 # this would work for both with and without runtime linking, it will
11392 # prevent static linking of such archives. So we do filename-based
11393 # shared library versioning with .so extension only, which is used
11394 # when both runtime linking and shared linking is enabled.
11395 # Unfortunately, runtime linking may impact performance, so we do
11396 # not want this to be the default eventually. Also, we use the
11397 # versioned .so libs for executables only if there is the -brtl
11398 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11399 # To allow for filename-based versioning support, we need to create
11400 # libNAME.so.V as an archive file, containing:
11401 # *) an Import File, referring to the versioned filename of the
11402 # archive as well as the shared archive member, telling the
11403 # bitwidth (32 or 64) of that shared object, and providing the
11404 # list of exported symbols of that shared object, eventually
11405 # decorated with the 'weak' keyword
11406 # *) the shared object with the F_LOADONLY flag set, to really avoid
11407 # it being seen by the linker.
11408 # At run time we better use the real file rather than another symlink,
11409 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11410
11411 case $with_aix_soname,$aix_use_runtimelinking in
11412 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11413 # soname into executable. Probably we can add versioning support to
11414 # collect2, so additional links can be useful in future.
11415 aix,yes) # traditional libtool
11416 dynamic_linker='AIX unversionable lib.so'
11417 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11418 # instead of lib<name>.a to let people know that these are not
11419 # typical AIX shared libraries.
11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421 ;;
11422 aix,no) # traditional AIX only
11423 dynamic_linker='AIX lib.a(lib.so.V)'
11424 # We preserve .a as extension for shared libraries through AIX4.2
11425 # and later when we are not doing run time linking.
11426 library_names_spec='$libname$release.a $libname.a'
11427 soname_spec='$libname$release$shared_ext$major'
11428 ;;
11429 svr4,*) # full svr4 only
11430 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11431 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11432 # We do not specify a path in Import Files, so LIBPATH fires.
11433 shlibpath_overrides_runpath=yes
11434 ;;
11435 *,yes) # both, prefer svr4
11436 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11437 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11438 # unpreferred sharedlib libNAME.a needs extra handling
11439 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"'
11440 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"'
11441 # We do not specify a path in Import Files, so LIBPATH fires.
11442 shlibpath_overrides_runpath=yes
11443 ;;
11444 *,no) # both, prefer aix
11445 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11446 library_names_spec='$libname$release.a $libname.a'
11447 soname_spec='$libname$release$shared_ext$major'
11448 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11449 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)'
11450 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"'
11451 ;;
11452 esac
11453 shlibpath_var=LIBPATH
11454 fi
11455 ;;
11456
11457 amigaos*)
11458 case $host_cpu in
11459 powerpc)
11460 # Since July 2007 AmigaOS4 officially supports .so libraries.
11461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463 ;;
11464 m68k)
11465 library_names_spec='$libname.ixlibrary $libname.a'
11466 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11467 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'
11468 ;;
11469 esac
11470 ;;
11471
11472 beos*)
11473 library_names_spec='$libname$shared_ext'
11474 dynamic_linker="$host_os ld.so"
11475 shlibpath_var=LIBRARY_PATH
11476 ;;
11477
11478 bsdi[45]*)
11479 version_type=linux # correct to gnu/linux during the next big refactor
11480 need_version=no
11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11482 soname_spec='$libname$release$shared_ext$major'
11483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11487 # the default ld.so.conf also contains /usr/contrib/lib and
11488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11489 # libtool to hard-code these into programs
11490 ;;
11491
11492 cygwin* | mingw* | pw32* | cegcc*)
11493 version_type=windows
11494 shrext_cmds=.dll
11495 need_version=no
11496 need_lib_prefix=no
11497
11498 case $GCC,$cc_basename in
11499 yes,*)
11500 # gcc
11501 library_names_spec='$libname.dll.a'
11502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11503 postinstall_cmds='base_file=`basename \$file`~
11504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11505 dldir=$destdir/`dirname \$dlpath`~
11506 test -d \$dldir || mkdir -p \$dldir~
11507 $install_prog $dir/$dlname \$dldir/$dlname~
11508 chmod a+x \$dldir/$dlname~
11509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11511 fi'
11512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11513 dlpath=$dir/\$dldll~
11514 $RM \$dlpath'
11515 shlibpath_overrides_runpath=yes
11516
11517 case $host_os in
11518 cygwin*)
11519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11520 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11521
11522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11523 ;;
11524 mingw* | cegcc*)
11525 # MinGW DLLs use traditional 'lib' prefix
11526 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11527 ;;
11528 pw32*)
11529 # pw32 DLLs use 'pw' prefix rather than 'lib'
11530 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11531 ;;
11532 esac
11533 dynamic_linker='Win32 ld.exe'
11534 ;;
11535
11536 *,cl* | *,icl*)
11537 # Native MSVC or ICC
11538 libname_spec='$name'
11539 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11540 library_names_spec='$libname.dll.lib'
11541
11542 case $build_os in
11543 mingw*)
11544 sys_lib_search_path_spec=
11545 lt_save_ifs=$IFS
11546 IFS=';'
11547 for lt_path in $LIB
11548 do
11549 IFS=$lt_save_ifs
11550 # Let DOS variable expansion print the short 8.3 style file name.
11551 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11552 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11553 done
11554 IFS=$lt_save_ifs
11555 # Convert to MSYS style.
11556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11557 ;;
11558 cygwin*)
11559 # Convert to unix form, then to dos form, then back to unix form
11560 # but this time dos style (no spaces!) so that the unix form looks
11561 # like /cygdrive/c/PROGRA~1:/cygdr...
11562 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11563 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11564 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11565 ;;
11566 *)
11567 sys_lib_search_path_spec=$LIB
11568 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11569 # It is most probably a Windows format PATH.
11570 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11571 else
11572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11573 fi
11574 # FIXME: find the short name or the path components, as spaces are
11575 # common. (e.g. "Program Files" -> "PROGRA~1")
11576 ;;
11577 esac
11578
11579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11580 postinstall_cmds='base_file=`basename \$file`~
11581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11582 dldir=$destdir/`dirname \$dlpath`~
11583 test -d \$dldir || mkdir -p \$dldir~
11584 $install_prog $dir/$dlname \$dldir/$dlname'
11585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11586 dlpath=$dir/\$dldll~
11587 $RM \$dlpath'
11588 shlibpath_overrides_runpath=yes
11589 dynamic_linker='Win32 link.exe'
11590 ;;
11591
11592 *)
11593 # Assume MSVC and ICC wrapper
11594 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11595 dynamic_linker='Win32 ld.exe'
11596 ;;
11597 esac
11598 # FIXME: first we should search . and the directory the executable is in
11599 shlibpath_var=PATH
11600 ;;
11601
11602 darwin* | rhapsody*)
11603 dynamic_linker="$host_os dyld"
11604 version_type=darwin
11605 need_lib_prefix=no
11606 need_version=no
11607 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11608 soname_spec='$libname$release$major$shared_ext'
11609 shlibpath_overrides_runpath=yes
11610 shlibpath_var=DYLD_LIBRARY_PATH
11611 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11612
11613 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11615 ;;
11616
11617 dgux*)
11618 version_type=linux # correct to gnu/linux during the next big refactor
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 ;;
11625
11626 freebsd* | dragonfly* | midnightbsd*)
11627 # DragonFly does not have aout. When/if they implement a new
11628 # versioning mechanism, adjust this.
11629 if test -x /usr/bin/objformat; then
11630 objformat=`/usr/bin/objformat`
11631 else
11632 case $host_os in
11633 freebsd[23].*) objformat=aout ;;
11634 *) objformat=elf ;;
11635 esac
11636 fi
11637 version_type=freebsd-$objformat
11638 case $version_type in
11639 freebsd-elf*)
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 soname_spec='$libname$release$shared_ext$major'
11642 need_version=no
11643 need_lib_prefix=no
11644 ;;
11645 freebsd-*)
11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11647 need_version=yes
11648 ;;
11649 esac
11650 shlibpath_var=LD_LIBRARY_PATH
11651 case $host_os in
11652 freebsd2.*)
11653 shlibpath_overrides_runpath=yes
11654 ;;
11655 freebsd3.[01]* | freebsdelf3.[01]*)
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 ;;
11659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11661 shlibpath_overrides_runpath=no
11662 hardcode_into_libs=yes
11663 ;;
11664 *) # from 4.6 on, and DragonFly
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 ;;
11668 esac
11669 ;;
11670
11671 haiku*)
11672 version_type=linux # correct to gnu/linux during the next big refactor
11673 need_lib_prefix=no
11674 need_version=no
11675 dynamic_linker="$host_os runtime_loader"
11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677 soname_spec='$libname$release$shared_ext$major'
11678 shlibpath_var=LIBRARY_PATH
11679 shlibpath_overrides_runpath=no
11680 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11681 hardcode_into_libs=yes
11682 ;;
11683
11684 hpux9* | hpux10* | hpux11*)
11685 # Give a soname corresponding to the major version so that dld.sl refuses to
11686 # link against other versions.
11687 version_type=sunos
11688 need_lib_prefix=no
11689 need_version=no
11690 case $host_cpu in
11691 ia64*)
11692 shrext_cmds='.so'
11693 hardcode_into_libs=yes
11694 dynamic_linker="$host_os dld.so"
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11698 soname_spec='$libname$release$shared_ext$major'
11699 if test 32 = "$HPUX_IA64_MODE"; then
11700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11701 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11702 else
11703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11704 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11705 fi
11706 ;;
11707 hppa*64*)
11708 shrext_cmds='.sl'
11709 hardcode_into_libs=yes
11710 dynamic_linker="$host_os dld.sl"
11711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11714 soname_spec='$libname$release$shared_ext$major'
11715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11717 ;;
11718 *)
11719 shrext_cmds='.sl'
11720 dynamic_linker="$host_os dld.sl"
11721 shlibpath_var=SHLIB_PATH
11722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11724 soname_spec='$libname$release$shared_ext$major'
11725 ;;
11726 esac
11727 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11728 postinstall_cmds='chmod 555 $lib'
11729 # or fails outright, so override atomically:
11730 install_override_mode=555
11731 ;;
11732
11733 interix[3-9]*)
11734 version_type=linux # correct to gnu/linux during the next big refactor
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11738 soname_spec='$libname$release$shared_ext$major'
11739 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=no
11742 hardcode_into_libs=yes
11743 ;;
11744
11745 irix5* | irix6* | nonstopux*)
11746 case $host_os in
11747 nonstopux*) version_type=nonstopux ;;
11748 *)
11749 if test yes = "$lt_cv_prog_gnu_ld"; then
11750 version_type=linux # correct to gnu/linux during the next big refactor
11751 else
11752 version_type=irix
11753 fi ;;
11754 esac
11755 need_lib_prefix=no
11756 need_version=no
11757 soname_spec='$libname$release$shared_ext$major'
11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11759 case $host_os in
11760 irix5* | nonstopux*)
11761 libsuff= shlibsuff=
11762 ;;
11763 *)
11764 case $LD in # libtool.m4 will add one of these switches to LD
11765 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11766 libsuff= shlibsuff= libmagic=32-bit;;
11767 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11768 libsuff=32 shlibsuff=N32 libmagic=N32;;
11769 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11770 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11771 *) libsuff= shlibsuff= libmagic=never-match;;
11772 esac
11773 ;;
11774 esac
11775 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11776 shlibpath_overrides_runpath=no
11777 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11778 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11779 hardcode_into_libs=yes
11780 ;;
11781
11782 # No shared lib support for Linux oldld, aout, or coff.
11783 linux*oldld* | linux*aout* | linux*coff*)
11784 dynamic_linker=no
11785 ;;
11786
11787 linux*android*)
11788 version_type=none # Android doesn't support versioned libraries.
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='$libname$release$shared_ext'
11792 soname_spec='$libname$release$shared_ext'
11793 finish_cmds=
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=yes
11796
11797 # This implies no fast_install, which is unacceptable.
11798 # Some rework will be needed to allow for fast_install
11799 # before this can be enabled.
11800 hardcode_into_libs=yes
11801
11802 dynamic_linker='Android linker'
11803 # Don't embed -rpath directories since the linker doesn't support them.
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 ;;
11806
11807 # This must be glibc/ELF.
11808 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11809 version_type=linux # correct to gnu/linux during the next big refactor
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813 soname_spec='$libname$release$shared_ext$major'
11814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817
11818 # Some binutils ld are patched to set DT_RUNPATH
11819 if test ${lt_cv_shlibpath_overrides_runpath+y}
11820 then :
11821 printf %s "(cached) " >&6
11822 else $as_nop
11823 lt_cv_shlibpath_overrides_runpath=no
11824 save_LDFLAGS=$LDFLAGS
11825 save_libdir=$libdir
11826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 int
11832 main (void)
11833 {
11834
11835 ;
11836 return 0;
11837 }
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"
11840 then :
11841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11842 then :
11843 lt_cv_shlibpath_overrides_runpath=yes
11844 fi
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LDFLAGS=$save_LDFLAGS
11849 libdir=$save_libdir
11850
11851 fi
11852
11853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11854
11855 # This implies no fast_install, which is unacceptable.
11856 # Some rework will be needed to allow for fast_install
11857 # before this can be enabled.
11858 hardcode_into_libs=yes
11859
11860 # Ideally, we could use ldconfig to report *all* directores which are
11861 # searched for libraries, however this is still not possible. Aside from not
11862 # being certain /sbin/ldconfig is available, command
11863 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11864 # even though it is searched at run-time. Try to do the best guess by
11865 # appending ld.so.conf contents (and includes) to the search path.
11866 if test -f /etc/ld.so.conf; then
11867 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' ' '`
11868 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11869 fi
11870
11871 # We used to test for /lib/ld.so.1 and disable shared libraries on
11872 # powerpc, because MkLinux only supported shared libraries with the
11873 # GNU dynamic linker. Since this was broken with cross compilers,
11874 # most powerpc-linux boxes support dynamic linking these days and
11875 # people can always --disable-shared, the test was removed, and we
11876 # assume the GNU/Linux dynamic linker is in use.
11877 dynamic_linker='GNU/Linux ld.so'
11878 ;;
11879
11880 netbsdelf*-gnu)
11881 version_type=linux
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=no
11888 hardcode_into_libs=yes
11889 dynamic_linker='NetBSD ld.elf_so'
11890 ;;
11891
11892 netbsd*)
11893 version_type=sunos
11894 need_lib_prefix=no
11895 need_version=no
11896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11899 dynamic_linker='NetBSD (a.out) ld.so'
11900 else
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902 soname_spec='$libname$release$shared_ext$major'
11903 dynamic_linker='NetBSD ld.elf_so'
11904 fi
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 hardcode_into_libs=yes
11908 ;;
11909
11910 newsos6)
11911 version_type=linux # correct to gnu/linux during the next big refactor
11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=yes
11915 ;;
11916
11917 *nto* | *qnx*)
11918 version_type=qnx
11919 need_lib_prefix=no
11920 need_version=no
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922 soname_spec='$libname$release$shared_ext$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 shlibpath_overrides_runpath=no
11925 hardcode_into_libs=yes
11926 dynamic_linker='ldqnx.so'
11927 ;;
11928
11929 openbsd* | bitrig*)
11930 version_type=sunos
11931 sys_lib_dlsearch_path_spec=/usr/lib
11932 need_lib_prefix=no
11933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11934 need_version=no
11935 else
11936 need_version=yes
11937 fi
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 ;;
11943
11944 os2*)
11945 libname_spec='$name'
11946 version_type=windows
11947 shrext_cmds=.dll
11948 need_version=no
11949 need_lib_prefix=no
11950 # OS/2 can only load a DLL with a base name of 8 characters or less.
11951 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11952 v=$($ECHO $release$versuffix | tr -d .-);
11953 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11954 $ECHO $n$v`$shared_ext'
11955 library_names_spec='${libname}_dll.$libext'
11956 dynamic_linker='OS/2 ld.exe'
11957 shlibpath_var=BEGINLIBPATH
11958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11960 postinstall_cmds='base_file=`basename \$file`~
11961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11962 dldir=$destdir/`dirname \$dlpath`~
11963 test -d \$dldir || mkdir -p \$dldir~
11964 $install_prog $dir/$dlname \$dldir/$dlname~
11965 chmod a+x \$dldir/$dlname~
11966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11968 fi'
11969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11970 dlpath=$dir/\$dldll~
11971 $RM \$dlpath'
11972 ;;
11973
11974 osf3* | osf4* | osf5*)
11975 version_type=osf
11976 need_lib_prefix=no
11977 need_version=no
11978 soname_spec='$libname$release$shared_ext$major'
11979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11983 ;;
11984
11985 rdos*)
11986 dynamic_linker=no
11987 ;;
11988
11989 solaris*)
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 need_lib_prefix=no
11992 need_version=no
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11997 hardcode_into_libs=yes
11998 # ldd complains unless libraries are executable
11999 postinstall_cmds='chmod +x $lib'
12000 ;;
12001
12002 sunos4*)
12003 version_type=sunos
12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 shlibpath_overrides_runpath=yes
12008 if test yes = "$with_gnu_ld"; then
12009 need_lib_prefix=no
12010 fi
12011 need_version=yes
12012 ;;
12013
12014 sysv4 | sysv4.3*)
12015 version_type=linux # correct to gnu/linux during the next big refactor
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017 soname_spec='$libname$release$shared_ext$major'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 case $host_vendor in
12020 sni)
12021 shlibpath_overrides_runpath=no
12022 need_lib_prefix=no
12023 runpath_var=LD_RUN_PATH
12024 ;;
12025 siemens)
12026 need_lib_prefix=no
12027 ;;
12028 motorola)
12029 need_lib_prefix=no
12030 need_version=no
12031 shlibpath_overrides_runpath=no
12032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12033 ;;
12034 esac
12035 ;;
12036
12037 sysv4*MP*)
12038 if test -d /usr/nec; then
12039 version_type=linux # correct to gnu/linux during the next big refactor
12040 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12041 soname_spec='$libname$shared_ext.$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 fi
12044 ;;
12045
12046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12047 version_type=sco
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12051 soname_spec='$libname$release$shared_ext$major'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 hardcode_into_libs=yes
12055 if test yes = "$with_gnu_ld"; then
12056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12057 else
12058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12059 case $host_os in
12060 sco3.2v5*)
12061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12062 ;;
12063 esac
12064 fi
12065 sys_lib_dlsearch_path_spec='/usr/lib'
12066 ;;
12067
12068 tpf*)
12069 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 need_lib_prefix=no
12072 need_version=no
12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=no
12076 hardcode_into_libs=yes
12077 ;;
12078
12079 uts4*)
12080 version_type=linux # correct to gnu/linux during the next big refactor
12081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12082 soname_spec='$libname$release$shared_ext$major'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 ;;
12085
12086 *)
12087 dynamic_linker=no
12088 ;;
12089 esac
12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12091 printf "%s\n" "$dynamic_linker" >&6; }
12092 test no = "$dynamic_linker" && can_build_shared=no
12093
12094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12095 if test yes = "$GCC"; then
12096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12097 fi
12098
12099 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12101 fi
12102
12103 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12105 fi
12106
12107 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12108 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12109
12110 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12111 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12112
12113 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12114 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12213 printf %s "checking how to hardcode library paths into programs... " >&6; }
12214 hardcode_action=
12215 if test -n "$hardcode_libdir_flag_spec" ||
12216 test -n "$runpath_var" ||
12217 test yes = "$hardcode_automatic"; then
12218
12219 # We can hardcode non-existent directories.
12220 if test no != "$hardcode_direct" &&
12221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12222 # have to relink, otherwise we might link with an installed library
12223 # when we should be linking with a yet-to-be-installed one
12224 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12225 test no != "$hardcode_minus_L"; then
12226 # Linking always hardcodes the temporary library directory.
12227 hardcode_action=relink
12228 else
12229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12230 hardcode_action=immediate
12231 fi
12232 else
12233 # We cannot hardcode anything, or else we can only hardcode existing
12234 # directories.
12235 hardcode_action=unsupported
12236 fi
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12238 printf "%s\n" "$hardcode_action" >&6; }
12239
12240 if test relink = "$hardcode_action" ||
12241 test yes = "$inherit_rpath"; then
12242 # Fast installation is not supported
12243 enable_fast_install=no
12244 elif test yes = "$shlibpath_overrides_runpath" ||
12245 test no = "$enable_shared"; then
12246 # Fast installation is not necessary
12247 enable_fast_install=needless
12248 fi
12249
12250
12251
12252
12253
12254
12255 if test yes != "$enable_dlopen"; then
12256 enable_dlopen=unknown
12257 enable_dlopen_self=unknown
12258 enable_dlopen_self_static=unknown
12259 else
12260 lt_cv_dlopen=no
12261 lt_cv_dlopen_libs=
12262
12263 case $host_os in
12264 beos*)
12265 lt_cv_dlopen=load_add_on
12266 lt_cv_dlopen_libs=
12267 lt_cv_dlopen_self=yes
12268 ;;
12269
12270 mingw* | pw32* | cegcc*)
12271 lt_cv_dlopen=LoadLibrary
12272 lt_cv_dlopen_libs=
12273 ;;
12274
12275 cygwin*)
12276 lt_cv_dlopen=dlopen
12277 lt_cv_dlopen_libs=
12278 ;;
12279
12280 darwin*)
12281 # if libdl is installed we need to link against it
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12283 printf %s "checking for dlopen in -ldl... " >&6; }
12284 if test ${ac_cv_lib_dl_dlopen+y}
12285 then :
12286 printf %s "(cached) " >&6
12287 else $as_nop
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-ldl $LIBS"
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292
12293 /* Override any GCC internal prototype to avoid an error.
12294 Use char because int might match the return type of a GCC
12295 builtin and then its argument prototype would still apply. */
12296 char dlopen ();
12297 int
12298 main (void)
12299 {
12300 return dlopen ();
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 if ac_fn_c_try_link "$LINENO"
12306 then :
12307 ac_cv_lib_dl_dlopen=yes
12308 else $as_nop
12309 ac_cv_lib_dl_dlopen=no
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12314 fi
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12316 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12317 if test "x$ac_cv_lib_dl_dlopen" = xyes
12318 then :
12319 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12320 else $as_nop
12321
12322 lt_cv_dlopen=dyld
12323 lt_cv_dlopen_libs=
12324 lt_cv_dlopen_self=yes
12325
12326 fi
12327
12328 ;;
12329
12330 tpf*)
12331 # Don't try to run any link tests for TPF. We know it's impossible
12332 # because TPF is a cross-compiler, and we know how we open DSOs.
12333 lt_cv_dlopen=dlopen
12334 lt_cv_dlopen_libs=
12335 lt_cv_dlopen_self=no
12336 ;;
12337
12338 *)
12339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12340 if test "x$ac_cv_func_shl_load" = xyes
12341 then :
12342 lt_cv_dlopen=shl_load
12343 else $as_nop
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12345 printf %s "checking for shl_load in -ldld... " >&6; }
12346 if test ${ac_cv_lib_dld_shl_load+y}
12347 then :
12348 printf %s "(cached) " >&6
12349 else $as_nop
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-ldld $LIBS"
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354
12355 /* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12358 char shl_load ();
12359 int
12360 main (void)
12361 {
12362 return shl_load ();
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"
12368 then :
12369 ac_cv_lib_dld_shl_load=yes
12370 else $as_nop
12371 ac_cv_lib_dld_shl_load=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12376 fi
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12378 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12379 if test "x$ac_cv_lib_dld_shl_load" = xyes
12380 then :
12381 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12382 else $as_nop
12383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12384 if test "x$ac_cv_func_dlopen" = xyes
12385 then :
12386 lt_cv_dlopen=dlopen
12387 else $as_nop
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12389 printf %s "checking for dlopen in -ldl... " >&6; }
12390 if test ${ac_cv_lib_dl_dlopen+y}
12391 then :
12392 printf %s "(cached) " >&6
12393 else $as_nop
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-ldl $LIBS"
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 char dlopen ();
12403 int
12404 main (void)
12405 {
12406 return dlopen ();
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"
12412 then :
12413 ac_cv_lib_dl_dlopen=yes
12414 else $as_nop
12415 ac_cv_lib_dl_dlopen=no
12416 fi
12417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12420 fi
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12422 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12423 if test "x$ac_cv_lib_dl_dlopen" = xyes
12424 then :
12425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12426 else $as_nop
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12428 printf %s "checking for dlopen in -lsvld... " >&6; }
12429 if test ${ac_cv_lib_svld_dlopen+y}
12430 then :
12431 printf %s "(cached) " >&6
12432 else $as_nop
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-lsvld $LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12441 char dlopen ();
12442 int
12443 main (void)
12444 {
12445 return dlopen ();
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"
12451 then :
12452 ac_cv_lib_svld_dlopen=yes
12453 else $as_nop
12454 ac_cv_lib_svld_dlopen=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12461 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12462 if test "x$ac_cv_lib_svld_dlopen" = xyes
12463 then :
12464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12465 else $as_nop
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12467 printf %s "checking for dld_link in -ldld... " >&6; }
12468 if test ${ac_cv_lib_dld_dld_link+y}
12469 then :
12470 printf %s "(cached) " >&6
12471 else $as_nop
12472 ac_check_lib_save_LIBS=$LIBS
12473 LIBS="-ldld $LIBS"
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480 char dld_link ();
12481 int
12482 main (void)
12483 {
12484 return dld_link ();
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"
12490 then :
12491 ac_cv_lib_dld_dld_link=yes
12492 else $as_nop
12493 ac_cv_lib_dld_dld_link=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12496 conftest$ac_exeext conftest.$ac_ext
12497 LIBS=$ac_check_lib_save_LIBS
12498 fi
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12500 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12501 if test "x$ac_cv_lib_dld_dld_link" = xyes
12502 then :
12503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12504 fi
12505
12506
12507 fi
12508
12509
12510 fi
12511
12512
12513 fi
12514
12515
12516 fi
12517
12518
12519 fi
12520
12521 ;;
12522 esac
12523
12524 if test no = "$lt_cv_dlopen"; then
12525 enable_dlopen=no
12526 else
12527 enable_dlopen=yes
12528 fi
12529
12530 case $lt_cv_dlopen in
12531 dlopen)
12532 save_CPPFLAGS=$CPPFLAGS
12533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12534
12535 save_LDFLAGS=$LDFLAGS
12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12537
12538 save_LIBS=$LIBS
12539 LIBS="$lt_cv_dlopen_libs $LIBS"
12540
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12542 printf %s "checking whether a program can dlopen itself... " >&6; }
12543 if test ${lt_cv_dlopen_self+y}
12544 then :
12545 printf %s "(cached) " >&6
12546 else $as_nop
12547 if test yes = "$cross_compiling"; then :
12548 lt_cv_dlopen_self=cross
12549 else
12550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12551 lt_status=$lt_dlunknown
12552 cat > conftest.$ac_ext <<_LT_EOF
12553 #line $LINENO "configure"
12554 #include "confdefs.h"
12555
12556 #if HAVE_DLFCN_H
12557 #include <dlfcn.h>
12558 #endif
12559
12560 #include <stdio.h>
12561
12562 #ifdef RTLD_GLOBAL
12563 # define LT_DLGLOBAL RTLD_GLOBAL
12564 #else
12565 # ifdef DL_GLOBAL
12566 # define LT_DLGLOBAL DL_GLOBAL
12567 # else
12568 # define LT_DLGLOBAL 0
12569 # endif
12570 #endif
12571
12572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12573 find out it does not work in some platform. */
12574 #ifndef LT_DLLAZY_OR_NOW
12575 # ifdef RTLD_LAZY
12576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12577 # else
12578 # ifdef DL_LAZY
12579 # define LT_DLLAZY_OR_NOW DL_LAZY
12580 # else
12581 # ifdef RTLD_NOW
12582 # define LT_DLLAZY_OR_NOW RTLD_NOW
12583 # else
12584 # ifdef DL_NOW
12585 # define LT_DLLAZY_OR_NOW DL_NOW
12586 # else
12587 # define LT_DLLAZY_OR_NOW 0
12588 # endif
12589 # endif
12590 # endif
12591 # endif
12592 #endif
12593
12594 /* When -fvisibility=hidden is used, assume the code has been annotated
12595 correspondingly for the symbols needed. */
12596 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12597 int fnord () __attribute__((visibility("default")));
12598 #endif
12599
12600 int fnord () { return 42; }
12601 int main ()
12602 {
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12605
12606 if (self)
12607 {
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else
12610 {
12611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12612 else puts (dlerror ());
12613 }
12614 /* dlclose (self); */
12615 }
12616 else
12617 puts (dlerror ());
12618
12619 return status;
12620 }
12621 _LT_EOF
12622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12623 (eval $ac_link) 2>&5
12624 ac_status=$?
12625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12626 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12627 (./conftest; exit; ) >&5 2>/dev/null
12628 lt_status=$?
12629 case x$lt_status in
12630 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12631 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12632 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12633 esac
12634 else :
12635 # compilation failed
12636 lt_cv_dlopen_self=no
12637 fi
12638 fi
12639 rm -fr conftest*
12640
12641
12642 fi
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12644 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12645
12646 if test yes = "$lt_cv_dlopen_self"; then
12647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12649 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12650 if test ${lt_cv_dlopen_self_static+y}
12651 then :
12652 printf %s "(cached) " >&6
12653 else $as_nop
12654 if test yes = "$cross_compiling"; then :
12655 lt_cv_dlopen_self_static=cross
12656 else
12657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12658 lt_status=$lt_dlunknown
12659 cat > conftest.$ac_ext <<_LT_EOF
12660 #line $LINENO "configure"
12661 #include "confdefs.h"
12662
12663 #if HAVE_DLFCN_H
12664 #include <dlfcn.h>
12665 #endif
12666
12667 #include <stdio.h>
12668
12669 #ifdef RTLD_GLOBAL
12670 # define LT_DLGLOBAL RTLD_GLOBAL
12671 #else
12672 # ifdef DL_GLOBAL
12673 # define LT_DLGLOBAL DL_GLOBAL
12674 # else
12675 # define LT_DLGLOBAL 0
12676 # endif
12677 #endif
12678
12679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12680 find out it does not work in some platform. */
12681 #ifndef LT_DLLAZY_OR_NOW
12682 # ifdef RTLD_LAZY
12683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12684 # else
12685 # ifdef DL_LAZY
12686 # define LT_DLLAZY_OR_NOW DL_LAZY
12687 # else
12688 # ifdef RTLD_NOW
12689 # define LT_DLLAZY_OR_NOW RTLD_NOW
12690 # else
12691 # ifdef DL_NOW
12692 # define LT_DLLAZY_OR_NOW DL_NOW
12693 # else
12694 # define LT_DLLAZY_OR_NOW 0
12695 # endif
12696 # endif
12697 # endif
12698 # endif
12699 #endif
12700
12701 /* When -fvisibility=hidden is used, assume the code has been annotated
12702 correspondingly for the symbols needed. */
12703 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12704 int fnord () __attribute__((visibility("default")));
12705 #endif
12706
12707 int fnord () { return 42; }
12708 int main ()
12709 {
12710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12711 int status = $lt_dlunknown;
12712
12713 if (self)
12714 {
12715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12716 else
12717 {
12718 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12719 else puts (dlerror ());
12720 }
12721 /* dlclose (self); */
12722 }
12723 else
12724 puts (dlerror ());
12725
12726 return status;
12727 }
12728 _LT_EOF
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12730 (eval $ac_link) 2>&5
12731 ac_status=$?
12732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12734 (./conftest; exit; ) >&5 2>/dev/null
12735 lt_status=$?
12736 case x$lt_status in
12737 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12738 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12739 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12740 esac
12741 else :
12742 # compilation failed
12743 lt_cv_dlopen_self_static=no
12744 fi
12745 fi
12746 rm -fr conftest*
12747
12748
12749 fi
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12751 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12752 fi
12753
12754 CPPFLAGS=$save_CPPFLAGS
12755 LDFLAGS=$save_LDFLAGS
12756 LIBS=$save_LIBS
12757 ;;
12758 esac
12759
12760 case $lt_cv_dlopen_self in
12761 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12762 *) enable_dlopen_self=unknown ;;
12763 esac
12764
12765 case $lt_cv_dlopen_self_static in
12766 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12767 *) enable_dlopen_self_static=unknown ;;
12768 esac
12769 fi
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787 striplib=
12788 old_striplib=
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12790 printf %s "checking whether stripping libraries is possible... " >&6; }
12791 if test -z "$STRIP"; then
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 printf "%s\n" "no" >&6; }
12794 else
12795 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12796 old_striplib="$STRIP --strip-debug"
12797 striplib="$STRIP --strip-unneeded"
12798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799 printf "%s\n" "yes" >&6; }
12800 else
12801 case $host_os in
12802 darwin*)
12803 # FIXME - insert some real tests, host_os isn't really good enough
12804 striplib="$STRIP -x"
12805 old_striplib="$STRIP -S"
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807 printf "%s\n" "yes" >&6; }
12808 ;;
12809 freebsd*)
12810 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12811 old_striplib="$STRIP --strip-debug"
12812 striplib="$STRIP --strip-unneeded"
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 printf "%s\n" "yes" >&6; }
12815 else
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 printf "%s\n" "no" >&6; }
12818 fi
12819 ;;
12820 *)
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 printf "%s\n" "no" >&6; }
12823 ;;
12824 esac
12825 fi
12826 fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839 # Report what library types will actually be built
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12841 printf %s "checking if libtool supports shared libraries... " >&6; }
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12843 printf "%s\n" "$can_build_shared" >&6; }
12844
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12846 printf %s "checking whether to build shared libraries... " >&6; }
12847 test no = "$can_build_shared" && enable_shared=no
12848
12849 # On AIX, shared libraries and static libraries use the same namespace, and
12850 # are all built from PIC.
12851 case $host_os in
12852 aix3*)
12853 test yes = "$enable_shared" && enable_static=no
12854 if test -n "$RANLIB"; then
12855 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12856 postinstall_cmds='$RANLIB $lib'
12857 fi
12858 ;;
12859
12860 aix[4-9]*)
12861 if test ia64 != "$host_cpu"; then
12862 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12863 yes,aix,yes) ;; # shared object as lib.so file only
12864 yes,svr4,*) ;; # shared object as lib.so archive member only
12865 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12866 esac
12867 fi
12868 ;;
12869 esac
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12871 printf "%s\n" "$enable_shared" >&6; }
12872
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12874 printf %s "checking whether to build static libraries... " >&6; }
12875 # Make sure either enable_shared or enable_static is yes.
12876 test yes = "$enable_shared" || enable_static=yes
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12878 printf "%s\n" "$enable_static" >&6; }
12879
12880
12881
12882
12883 fi
12884 ac_ext=c
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889
12890 CC=$lt_save_CC
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906 ac_config_commands="$ac_config_commands libtool"
12907
12908
12909
12910
12911 # Only expand once:
12912
12913
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12915 printf %s "checking for a sed that does not truncate output... " >&6; }
12916 if test ${ac_cv_path_SED+y}
12917 then :
12918 printf %s "(cached) " >&6
12919 else $as_nop
12920 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12921 for ac_i in 1 2 3 4 5 6 7; do
12922 ac_script="$ac_script$as_nl$ac_script"
12923 done
12924 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12925 { ac_script=; unset ac_script;}
12926 if test -z "$SED"; then
12927 ac_path_SED_found=false
12928 # Loop through the user's path and test for each of PROGNAME-LIST
12929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932 IFS=$as_save_IFS
12933 case $as_dir in #(((
12934 '') as_dir=./ ;;
12935 */) ;;
12936 *) as_dir=$as_dir/ ;;
12937 esac
12938 for ac_prog in sed gsed
12939 do
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
12942 as_fn_executable_p "$ac_path_SED" || continue
12943 # Check for GNU ac_path_SED and select it if it is found.
12944 # Check for GNU $ac_path_SED
12945 case `"$ac_path_SED" --version 2>&1` in
12946 *GNU*)
12947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12948 *)
12949 ac_count=0
12950 printf %s 0123456789 >"conftest.in"
12951 while :
12952 do
12953 cat "conftest.in" "conftest.in" >"conftest.tmp"
12954 mv "conftest.tmp" "conftest.in"
12955 cp "conftest.in" "conftest.nl"
12956 printf "%s\n" '' >> "conftest.nl"
12957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12959 as_fn_arith $ac_count + 1 && ac_count=$as_val
12960 if test $ac_count -gt ${ac_path_SED_max-0}; then
12961 # Best one so far, save it but keep looking for a better one
12962 ac_cv_path_SED="$ac_path_SED"
12963 ac_path_SED_max=$ac_count
12964 fi
12965 # 10*(2^10) chars as input seems more than enough
12966 test $ac_count -gt 10 && break
12967 done
12968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12969 esac
12970
12971 $ac_path_SED_found && break 3
12972 done
12973 done
12974 done
12975 IFS=$as_save_IFS
12976 if test -z "$ac_cv_path_SED"; then
12977 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12978 fi
12979 else
12980 ac_cv_path_SED=$SED
12981 fi
12982
12983 fi
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12985 printf "%s\n" "$ac_cv_path_SED" >&6; }
12986 SED="$ac_cv_path_SED"
12987 rm -f conftest.sed
12988
12989
12990
12991 # Check whether --enable-silent-rules was given.
12992 if test ${enable_silent_rules+y}
12993 then :
12994 enableval=$enable_silent_rules;
12995 fi
12996
12997 case $enable_silent_rules in # (((
12998 yes) AM_DEFAULT_VERBOSITY=0;;
12999 no) AM_DEFAULT_VERBOSITY=1;;
13000 *) AM_DEFAULT_VERBOSITY=0;;
13001 esac
13002 am_make=${MAKE-make}
13003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13004 printf %s "checking whether $am_make supports nested variables... " >&6; }
13005 if test ${am_cv_make_support_nested_variables+y}
13006 then :
13007 printf %s "(cached) " >&6
13008 else $as_nop
13009 if printf "%s\n" 'TRUE=$(BAR$(V))
13010 BAR0=false
13011 BAR1=true
13012 V=1
13013 am__doit:
13014 @$(TRUE)
13015 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13016 am_cv_make_support_nested_variables=yes
13017 else
13018 am_cv_make_support_nested_variables=no
13019 fi
13020 fi
13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13022 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13023 if test $am_cv_make_support_nested_variables = yes; then
13024 AM_V='$(V)'
13025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13026 else
13027 AM_V=$AM_DEFAULT_VERBOSITY
13028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13029 fi
13030 AM_BACKSLASH='\'
13031
13032
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13034 printf %s "checking whether byte ordering is bigendian... " >&6; }
13035 if test ${ac_cv_c_bigendian+y}
13036 then :
13037 printf %s "(cached) " >&6
13038 else $as_nop
13039 ac_cv_c_bigendian=unknown
13040 # See if we're dealing with a universal compiler.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043 #ifndef __APPLE_CC__
13044 not a universal capable compiler
13045 #endif
13046 typedef int dummy;
13047
13048 _ACEOF
13049 if ac_fn_c_try_compile "$LINENO"
13050 then :
13051
13052 # Check for potential -arch flags. It is not universal unless
13053 # there are at least two -arch flags with different values.
13054 ac_arch=
13055 ac_prev=
13056 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13057 if test -n "$ac_prev"; then
13058 case $ac_word in
13059 i?86 | x86_64 | ppc | ppc64)
13060 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13061 ac_arch=$ac_word
13062 else
13063 ac_cv_c_bigendian=universal
13064 break
13065 fi
13066 ;;
13067 esac
13068 ac_prev=
13069 elif test "x$ac_word" = "x-arch"; then
13070 ac_prev=arch
13071 fi
13072 done
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13075 if test $ac_cv_c_bigendian = unknown; then
13076 # See if sys/param.h defines the BYTE_ORDER macro.
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <sys/types.h>
13080 #include <sys/param.h>
13081
13082 int
13083 main (void)
13084 {
13085 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13086 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13087 && LITTLE_ENDIAN)
13088 bogus endian macros
13089 #endif
13090
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"
13096 then :
13097 # It does; now see whether it defined to BIG_ENDIAN or not.
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #include <sys/types.h>
13101 #include <sys/param.h>
13102
13103 int
13104 main (void)
13105 {
13106 #if BYTE_ORDER != BIG_ENDIAN
13107 not big endian
13108 #endif
13109
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"
13115 then :
13116 ac_cv_c_bigendian=yes
13117 else $as_nop
13118 ac_cv_c_bigendian=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123 fi
13124 if test $ac_cv_c_bigendian = unknown; then
13125 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #include <limits.h>
13129
13130 int
13131 main (void)
13132 {
13133 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13134 bogus endian macros
13135 #endif
13136
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_compile "$LINENO"
13142 then :
13143 # It does; now see whether it defined to _BIG_ENDIAN or not.
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 #include <limits.h>
13147
13148 int
13149 main (void)
13150 {
13151 #ifndef _BIG_ENDIAN
13152 not big endian
13153 #endif
13154
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"
13160 then :
13161 ac_cv_c_bigendian=yes
13162 else $as_nop
13163 ac_cv_c_bigendian=no
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166 fi
13167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13168 fi
13169 if test $ac_cv_c_bigendian = unknown; then
13170 # Compile a test program.
13171 if test "$cross_compiling" = yes
13172 then :
13173 # Try to guess by grepping values from an object file.
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 unsigned short int ascii_mm[] =
13177 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13178 unsigned short int ascii_ii[] =
13179 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13180 int use_ascii (int i) {
13181 return ascii_mm[i] + ascii_ii[i];
13182 }
13183 unsigned short int ebcdic_ii[] =
13184 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13185 unsigned short int ebcdic_mm[] =
13186 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13187 int use_ebcdic (int i) {
13188 return ebcdic_mm[i] + ebcdic_ii[i];
13189 }
13190 extern int foo;
13191
13192 int
13193 main (void)
13194 {
13195 return use_ascii (foo) == use_ebcdic (foo);
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_c_try_compile "$LINENO"
13201 then :
13202 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13203 ac_cv_c_bigendian=yes
13204 fi
13205 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13206 if test "$ac_cv_c_bigendian" = unknown; then
13207 ac_cv_c_bigendian=no
13208 else
13209 # finding both strings is unlikely to happen, but who knows?
13210 ac_cv_c_bigendian=unknown
13211 fi
13212 fi
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13215 else $as_nop
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 int
13220 main (void)
13221 {
13222
13223 /* Are we little or big endian? From Harbison&Steele. */
13224 union
13225 {
13226 long int l;
13227 char c[sizeof (long int)];
13228 } u;
13229 u.l = 1;
13230 return u.c[sizeof (long int) - 1] == 1;
13231
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 if ac_fn_c_try_run "$LINENO"
13237 then :
13238 ac_cv_c_bigendian=no
13239 else $as_nop
13240 ac_cv_c_bigendian=yes
13241 fi
13242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13243 conftest.$ac_objext conftest.beam conftest.$ac_ext
13244 fi
13245
13246 fi
13247 fi
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13249 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13250 case $ac_cv_c_bigendian in #(
13251 yes)
13252 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
13253 ;; #(
13254 no)
13255 ;; #(
13256 universal)
13257
13258 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13259
13260 ;; #(
13261 *)
13262 as_fn_error $? "unknown endianness
13263 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13264 esac
13265
13266
13267
13268
13269 # Check whether --enable-everything was given.
13270 if test ${enable_everything+y}
13271 then :
13272 enableval=$enable_everything; test "${enable_libsharpyuv+set}" = "set" || enable_libsharpyuv=$enableval
13273 test "${enable_libwebpdecoder+set}" = "set" || enable_libwebpdecoder=$enableval
13274 test "${enable_libwebpdemux+set}" = "set" || enable_libwebpdemux=$enableval
13275 test "${enable_libwebpextras+set}" = "set" || enable_libwebpextras=$enableval
13276 test "${enable_libwebpmux+set}" = "set" || enable_libwebpmux=$enableval
13277 fi
13278
13279
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libwebpmux is to be built" >&5
13281 printf %s "checking whether libwebpmux is to be built... " >&6; }
13282 # Check whether --enable-libwebpmux was given.
13283 if test ${enable_libwebpmux+y}
13284 then :
13285 enableval=$enable_libwebpmux;
13286 else $as_nop
13287 enable_libwebpmux=yes
13288 fi
13289
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpmux-no}" >&5
13291 printf "%s\n" "${enable_libwebpmux-no}" >&6; }
13292 if test "$enable_libwebpmux" = "yes"; then
13293 BUILD_MUX_TRUE=
13294 BUILD_MUX_FALSE='#'
13295 else
13296 BUILD_MUX_TRUE='#'
13297 BUILD_MUX_FALSE=
13298 fi
13299
13300
13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libwebpdemux is to be built" >&5
13302 printf %s "checking whether libwebpdemux is to be built... " >&6; }
13303 # Check whether --enable-libwebpdemux was given.
13304 if test ${enable_libwebpdemux+y}
13305 then :
13306 enableval=$enable_libwebpdemux;
13307 else $as_nop
13308 enable_libwebpdemux=yes
13309 fi
13310
13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdemux-no}" >&5
13312 printf "%s\n" "${enable_libwebpdemux-no}" >&6; }
13313 if test "$enable_libwebpdemux" = "yes"; then
13314 BUILD_DEMUX_TRUE=
13315 BUILD_DEMUX_FALSE='#'
13316 else
13317 BUILD_DEMUX_TRUE='#'
13318 BUILD_DEMUX_FALSE=
13319 fi
13320
13321
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether decoder library is to be built" >&5
13323 printf %s "checking whether decoder library is to be built... " >&6; }
13324 # Check whether --enable-libwebpdecoder was given.
13325 if test ${enable_libwebpdecoder+y}
13326 then :
13327 enableval=$enable_libwebpdecoder;
13328 fi
13329
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdecoder-no}" >&5
13331 printf "%s\n" "${enable_libwebpdecoder-no}" >&6; }
13332 if test "$enable_libwebpdecoder" = "yes"; then
13333 BUILD_LIBWEBPDECODER_TRUE=
13334 BUILD_LIBWEBPDECODER_FALSE='#'
13335 else
13336 BUILD_LIBWEBPDECODER_TRUE='#'
13337 BUILD_LIBWEBPDECODER_FALSE=
13338 fi
13339
13340
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libwebpextras is to be built" >&5
13342 printf %s "checking whether libwebpextras is to be built... " >&6; }
13343 # Check whether --enable-libwebpextras was given.
13344 if test ${enable_libwebpextras+y}
13345 then :
13346 enableval=$enable_libwebpextras;
13347 fi
13348
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpextras-no}" >&5
13350 printf "%s\n" "${enable_libwebpextras-no}" >&6; }
13351 if test "$enable_libwebpextras" = "yes"; then
13352 BUILD_EXTRAS_TRUE=
13353 BUILD_EXTRAS_FALSE='#'
13354 else
13355 BUILD_EXTRAS_TRUE='#'
13356 BUILD_EXTRAS_FALSE=
13357 fi
13358
13359
13360
13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether asserts are enabled" >&5
13362 printf %s "checking whether asserts are enabled... " >&6; }
13363 # Check whether --enable-asserts was given.
13364 if test ${enable_asserts+y}
13365 then :
13366 enableval=$enable_asserts;
13367 fi
13368
13369 if test "x${enable_asserts-no}" = "xno"; then
13370 AM_CPPFLAGS="${AM_CPPFLAGS} -DNDEBUG"
13371 fi
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_asserts-no}" >&5
13373 printf "%s\n" "${enable_asserts-no}" >&6; }
13374
13375
13376
13377 # Check whether --with-pkgconfigdir was given.
13378 if test ${with_pkgconfigdir+y}
13379 then :
13380 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
13381 else $as_nop
13382 pkgconfigdir='${libdir}/pkgconfig'
13383 fi
13384
13385
13386
13387
13388 SAVED_CFLAGS="$CFLAGS"
13389 CFLAGS="-Werror -fvisibility=hidden"
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
13391 printf %s "checking whether $CC supports -fvisibility=hidden... " >&6; }
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 int main(void) { return 0; }
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"
13397 then :
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13399 printf "%s\n" "yes" >&6; }
13400 AM_CFLAGS="${AM_CFLAGS} -fvisibility=hidden"
13401 else $as_nop
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 printf "%s\n" "no" >&6; }
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13406 CFLAGS="$SAVED_CFLAGS"
13407 SAVED_CFLAGS="$CFLAGS"
13408 CFLAGS="-Werror -Wall"
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
13410 printf %s "checking whether $CC supports -Wall... " >&6; }
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 int main(void) { return 0; }
13414 _ACEOF
13415 if ac_fn_c_try_compile "$LINENO"
13416 then :
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13418 printf "%s\n" "yes" >&6; }
13419 AM_CFLAGS="${AM_CFLAGS} -Wall"
13420 else $as_nop
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 printf "%s\n" "no" >&6; }
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13425 CFLAGS="$SAVED_CFLAGS"
13426 SAVED_CFLAGS="$CFLAGS"
13427 CFLAGS="-Werror -Wconstant-conversion"
13428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wconstant-conversion" >&5
13429 printf %s "checking whether $CC supports -Wconstant-conversion... " >&6; }
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 int main(void) { return 0; }
13433 _ACEOF
13434 if ac_fn_c_try_compile "$LINENO"
13435 then :
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 printf "%s\n" "yes" >&6; }
13438 AM_CFLAGS="${AM_CFLAGS} -Wconstant-conversion"
13439 else $as_nop
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 printf "%s\n" "no" >&6; }
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13444 CFLAGS="$SAVED_CFLAGS"
13445 SAVED_CFLAGS="$CFLAGS"
13446 CFLAGS="-Werror -Wdeclaration-after-statement"
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
13448 printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 int main(void) { return 0; }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"
13454 then :
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13456 printf "%s\n" "yes" >&6; }
13457 AM_CFLAGS="${AM_CFLAGS} -Wdeclaration-after-statement"
13458 else $as_nop
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 printf "%s\n" "no" >&6; }
13461 fi
13462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13463 CFLAGS="$SAVED_CFLAGS"
13464 SAVED_CFLAGS="$CFLAGS"
13465 CFLAGS="-Werror -Wextra"
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
13467 printf %s "checking whether $CC supports -Wextra... " >&6; }
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 int main(void) { return 0; }
13471 _ACEOF
13472 if ac_fn_c_try_compile "$LINENO"
13473 then :
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13475 printf "%s\n" "yes" >&6; }
13476 AM_CFLAGS="${AM_CFLAGS} -Wextra"
13477 else $as_nop
13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 printf "%s\n" "no" >&6; }
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13482 CFLAGS="$SAVED_CFLAGS"
13483 SAVED_CFLAGS="$CFLAGS"
13484 CFLAGS="-Werror -Wextra-semi-stmt"
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra-semi-stmt" >&5
13486 printf %s "checking whether $CC supports -Wextra-semi-stmt... " >&6; }
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 int main(void) { return 0; }
13490 _ACEOF
13491 if ac_fn_c_try_compile "$LINENO"
13492 then :
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 printf "%s\n" "yes" >&6; }
13495 AM_CFLAGS="${AM_CFLAGS} -Wextra-semi-stmt"
13496 else $as_nop
13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 printf "%s\n" "no" >&6; }
13499 fi
13500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13501 CFLAGS="$SAVED_CFLAGS"
13502 SAVED_CFLAGS="$CFLAGS"
13503 CFLAGS="-Werror -Wfloat-conversion"
13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wfloat-conversion" >&5
13505 printf %s "checking whether $CC supports -Wfloat-conversion... " >&6; }
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 int main(void) { return 0; }
13509 _ACEOF
13510 if ac_fn_c_try_compile "$LINENO"
13511 then :
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13513 printf "%s\n" "yes" >&6; }
13514 AM_CFLAGS="${AM_CFLAGS} -Wfloat-conversion"
13515 else $as_nop
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 printf "%s\n" "no" >&6; }
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13520 CFLAGS="$SAVED_CFLAGS"
13521 SAVED_CFLAGS="$CFLAGS"
13522 CFLAGS="-Werror -Wformat -Wformat-nonliteral"
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat -Wformat-nonliteral" >&5
13524 printf %s "checking whether $CC supports -Wformat -Wformat-nonliteral... " >&6; }
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 int main(void) { return 0; }
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"
13530 then :
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13532 printf "%s\n" "yes" >&6; }
13533 AM_CFLAGS="${AM_CFLAGS} -Wformat -Wformat-nonliteral"
13534 else $as_nop
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 printf "%s\n" "no" >&6; }
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13539 CFLAGS="$SAVED_CFLAGS"
13540 SAVED_CFLAGS="$CFLAGS"
13541 CFLAGS="-Werror -Wformat -Wformat-security"
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat -Wformat-security" >&5
13543 printf %s "checking whether $CC supports -Wformat -Wformat-security... " >&6; }
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 int main(void) { return 0; }
13547 _ACEOF
13548 if ac_fn_c_try_compile "$LINENO"
13549 then :
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13551 printf "%s\n" "yes" >&6; }
13552 AM_CFLAGS="${AM_CFLAGS} -Wformat -Wformat-security"
13553 else $as_nop
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 printf "%s\n" "no" >&6; }
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13558 CFLAGS="$SAVED_CFLAGS"
13559 SAVED_CFLAGS="$CFLAGS"
13560 CFLAGS="-Werror -Wmissing-declarations"
13561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations" >&5
13562 printf %s "checking whether $CC supports -Wmissing-declarations... " >&6; }
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 int main(void) { return 0; }
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"
13568 then :
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 printf "%s\n" "yes" >&6; }
13571 AM_CFLAGS="${AM_CFLAGS} -Wmissing-declarations"
13572 else $as_nop
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 printf "%s\n" "no" >&6; }
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13577 CFLAGS="$SAVED_CFLAGS"
13578 SAVED_CFLAGS="$CFLAGS"
13579 CFLAGS="-Werror -Wmissing-prototypes"
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
13581 printf %s "checking whether $CC supports -Wmissing-prototypes... " >&6; }
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 int main(void) { return 0; }
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"
13587 then :
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589 printf "%s\n" "yes" >&6; }
13590 AM_CFLAGS="${AM_CFLAGS} -Wmissing-prototypes"
13591 else $as_nop
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 printf "%s\n" "no" >&6; }
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13596 CFLAGS="$SAVED_CFLAGS"
13597 SAVED_CFLAGS="$CFLAGS"
13598 CFLAGS="-Werror -Wold-style-definition"
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wold-style-definition" >&5
13600 printf %s "checking whether $CC supports -Wold-style-definition... " >&6; }
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 int main(void) { return 0; }
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"
13606 then :
13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 printf "%s\n" "yes" >&6; }
13609 AM_CFLAGS="${AM_CFLAGS} -Wold-style-definition"
13610 else $as_nop
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 printf "%s\n" "no" >&6; }
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13615 CFLAGS="$SAVED_CFLAGS"
13616 SAVED_CFLAGS="$CFLAGS"
13617 CFLAGS="-Werror -Wparentheses-equality"
13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wparentheses-equality" >&5
13619 printf %s "checking whether $CC supports -Wparentheses-equality... " >&6; }
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 int main(void) { return 0; }
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"
13625 then :
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 printf "%s\n" "yes" >&6; }
13628 AM_CFLAGS="${AM_CFLAGS} -Wparentheses-equality"
13629 else $as_nop
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 printf "%s\n" "no" >&6; }
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13634 CFLAGS="$SAVED_CFLAGS"
13635 SAVED_CFLAGS="$CFLAGS"
13636 CFLAGS="-Werror -Wshadow"
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow" >&5
13638 printf %s "checking whether $CC supports -Wshadow... " >&6; }
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641 int main(void) { return 0; }
13642 _ACEOF
13643 if ac_fn_c_try_compile "$LINENO"
13644 then :
13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646 printf "%s\n" "yes" >&6; }
13647 AM_CFLAGS="${AM_CFLAGS} -Wshadow"
13648 else $as_nop
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 printf "%s\n" "no" >&6; }
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13653 CFLAGS="$SAVED_CFLAGS"
13654 SAVED_CFLAGS="$CFLAGS"
13655 CFLAGS="-Werror -Wshorten-64-to-32"
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshorten-64-to-32" >&5
13657 printf %s "checking whether $CC supports -Wshorten-64-to-32... " >&6; }
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 int main(void) { return 0; }
13661 _ACEOF
13662 if ac_fn_c_try_compile "$LINENO"
13663 then :
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13665 printf "%s\n" "yes" >&6; }
13666 AM_CFLAGS="${AM_CFLAGS} -Wshorten-64-to-32"
13667 else $as_nop
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 printf "%s\n" "no" >&6; }
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672 CFLAGS="$SAVED_CFLAGS"
13673 SAVED_CFLAGS="$CFLAGS"
13674 CFLAGS="-Werror -Wstrict-prototypes"
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
13676 printf %s "checking whether $CC supports -Wstrict-prototypes... " >&6; }
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 int main(void) { return 0; }
13680 _ACEOF
13681 if ac_fn_c_try_compile "$LINENO"
13682 then :
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684 printf "%s\n" "yes" >&6; }
13685 AM_CFLAGS="${AM_CFLAGS} -Wstrict-prototypes"
13686 else $as_nop
13687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 printf "%s\n" "no" >&6; }
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13691 CFLAGS="$SAVED_CFLAGS"
13692 SAVED_CFLAGS="$CFLAGS"
13693 CFLAGS="-Werror -Wundef"
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wundef" >&5
13695 printf %s "checking whether $CC supports -Wundef... " >&6; }
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13698 int main(void) { return 0; }
13699 _ACEOF
13700 if ac_fn_c_try_compile "$LINENO"
13701 then :
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13703 printf "%s\n" "yes" >&6; }
13704 AM_CFLAGS="${AM_CFLAGS} -Wundef"
13705 else $as_nop
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 printf "%s\n" "no" >&6; }
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13710 CFLAGS="$SAVED_CFLAGS"
13711 SAVED_CFLAGS="$CFLAGS"
13712 CFLAGS="-Werror -Wunreachable-code-aggressive"
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunreachable-code-aggressive" >&5
13714 printf %s "checking whether $CC supports -Wunreachable-code-aggressive... " >&6; }
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 int main(void) { return 0; }
13718 _ACEOF
13719 if ac_fn_c_try_compile "$LINENO"
13720 then :
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722 printf "%s\n" "yes" >&6; }
13723 AM_CFLAGS="${AM_CFLAGS} -Wunreachable-code-aggressive"
13724 else $as_nop
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 printf "%s\n" "no" >&6; }
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 CFLAGS="$SAVED_CFLAGS"
13730 SAVED_CFLAGS="$CFLAGS"
13731 CFLAGS="-Werror -Wunreachable-code"
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunreachable-code" >&5
13733 printf %s "checking whether $CC supports -Wunreachable-code... " >&6; }
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 int main(void) { return 0; }
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"
13739 then :
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 printf "%s\n" "yes" >&6; }
13742 AM_CFLAGS="${AM_CFLAGS} -Wunreachable-code"
13743 else $as_nop
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 printf "%s\n" "no" >&6; }
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13748 CFLAGS="$SAVED_CFLAGS"
13749 SAVED_CFLAGS="$CFLAGS"
13750 CFLAGS="-Werror -Wunused-but-set-variable"
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-but-set-variable" >&5
13752 printf %s "checking whether $CC supports -Wunused-but-set-variable... " >&6; }
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 int main(void) { return 0; }
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"
13758 then :
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760 printf "%s\n" "yes" >&6; }
13761 AM_CFLAGS="${AM_CFLAGS} -Wunused-but-set-variable"
13762 else $as_nop
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 printf "%s\n" "no" >&6; }
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13767 CFLAGS="$SAVED_CFLAGS"
13768 SAVED_CFLAGS="$CFLAGS"
13769 CFLAGS="-Werror -Wunused"
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused" >&5
13771 printf %s "checking whether $CC supports -Wunused... " >&6; }
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 int main(void) { return 0; }
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"
13777 then :
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13779 printf "%s\n" "yes" >&6; }
13780 AM_CFLAGS="${AM_CFLAGS} -Wunused"
13781 else $as_nop
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 printf "%s\n" "no" >&6; }
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13786 CFLAGS="$SAVED_CFLAGS"
13787 SAVED_CFLAGS="$CFLAGS"
13788 CFLAGS="-Werror -Wvla"
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wvla" >&5
13790 printf %s "checking whether $CC supports -Wvla... " >&6; }
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 int main(void) { return 0; }
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"
13796 then :
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 printf "%s\n" "yes" >&6; }
13799 AM_CFLAGS="${AM_CFLAGS} -Wvla"
13800 else $as_nop
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 printf "%s\n" "no" >&6; }
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13805 CFLAGS="$SAVED_CFLAGS"
13806 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62040
13807 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622
13808 if test "$GCC" = "yes"
13809 then :
13810
13811 gcc_version=`$CC -dumpversion`
13812 gcc_wht_bug=""
13813 case "$host_cpu" in
13814 aarch64|arm64)
13815 case "$gcc_version" in
13816 4.9|4.9.0|4.9.1) gcc_wht_bug=yes ;;
13817 esac
13818 esac
13819 if test "$gcc_wht_bug" = "yes"
13820 then :
13821
13822 SAVED_CFLAGS="$CFLAGS"
13823 CFLAGS="-Werror -frename-registers"
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -frename-registers" >&5
13825 printf %s "checking whether $CC supports -frename-registers... " >&6; }
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 int main(void) { return 0; }
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"
13831 then :
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833 printf "%s\n" "yes" >&6; }
13834 AM_CFLAGS="${AM_CFLAGS} -frename-registers"
13835 else $as_nop
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 printf "%s\n" "no" >&6; }
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13840 CFLAGS="$SAVED_CFLAGS"
13841 fi
13842 fi
13843 # Use -flax-vector-conversions, if available, when building intrinsics with
13844 # older versions of gcc. The flag appeared in 4.3.x, but if backported, and
13845 # -fno-lax-vector-conversions is set, errors may occur with the intrinsics
13846 # files along with the older system includes, e.g., emmintrin.h.
13847 # Originally observed with cc (GCC) 4.2.1 20070831 patched [FreeBSD] (9.3).
13848 # https://bugs.chromium.org/p/webp/issues/detail?id=274
13849 if test "$GCC" = "yes"
13850 then :
13851
13852 case "$host_cpu" in
13853 amd64|i?86|x86_64)
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 #if !defined(__clang__) && defined(__GNUC__) && \
13857 ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
13858 #error old gcc
13859 #endif
13860 int main(void) { return 0; }
13861
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"
13864 then :
13865
13866 else $as_nop
13867 SAVED_CFLAGS="$CFLAGS"
13868 CFLAGS="-Werror -flax-vector-conversions"
13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flax-vector-conversions" >&5
13870 printf %s "checking whether $CC supports -flax-vector-conversions... " >&6; }
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 int main(void) { return 0; }
13874 _ACEOF
13875 if ac_fn_c_try_compile "$LINENO"
13876 then :
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13878 printf "%s\n" "yes" >&6; }
13879 INTRINSICS_CFLAGS="${INTRINSICS_CFLAGS} -flax-vector-conversions"
13880 else $as_nop
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 printf "%s\n" "no" >&6; }
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885 CFLAGS="$SAVED_CFLAGS"
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13888 ;;
13889 esac
13890 fi
13891
13892
13893 # Check whether --enable-sse4.1 was given.
13894 if test ${enable_sse4_1+y}
13895 then :
13896 enableval=$enable_sse4_1;
13897 fi
13898
13899
13900 if test "x$enable_sse4_1" != "xno" -a "x$enable_sse2" != "xno"
13901 then :
13902
13903 SSE41_FLAGS="$INTRINSICS_CFLAGS $SSE41_FLAGS"
13904 SAVED_CFLAGS="$CFLAGS"
13905 CFLAGS="-Werror -msse4.1"
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -msse4.1" >&5
13907 printf %s "checking whether $CC supports -msse4.1... " >&6; }
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int main(void) { return 0; }
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"
13913 then :
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13915 printf "%s\n" "yes" >&6; }
13916 SSE41_FLAGS="${SSE41_FLAGS} -msse4.1"
13917 else $as_nop
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 printf "%s\n" "no" >&6; }
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13922 CFLAGS="$SAVED_CFLAGS"
13923 if test -n "$SSE41_FLAGS"
13924 then :
13925
13926 SAVED_CFLAGS=$CFLAGS
13927 CFLAGS="$CFLAGS $SSE41_FLAGS"
13928 ac_fn_c_check_header_compile "$LINENO" "smmintrin.h" "ac_cv_header_smmintrin_h" "$ac_includes_default"
13929 if test "x$ac_cv_header_smmintrin_h" = xyes
13930 then :
13931
13932 printf "%s\n" "#define WEBP_HAVE_SSE41 1" >>confdefs.h
13933
13934 else $as_nop
13935 SSE41_FLAGS=""
13936 fi
13937
13938 CFLAGS=$SAVED_CFLAGS
13939 fi
13940
13941 fi
13942
13943 # Check whether --enable-sse2 was given.
13944 if test ${enable_sse2+y}
13945 then :
13946 enableval=$enable_sse2;
13947 fi
13948
13949
13950 if test "x$enable_sse2" != "xno"
13951 then :
13952
13953 SSE2_FLAGS="$INTRINSICS_CFLAGS $SSE2_FLAGS"
13954 SAVED_CFLAGS="$CFLAGS"
13955 CFLAGS="-Werror -msse2"
13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -msse2" >&5
13957 printf %s "checking whether $CC supports -msse2... " >&6; }
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int main(void) { return 0; }
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"
13963 then :
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13965 printf "%s\n" "yes" >&6; }
13966 SSE2_FLAGS="${SSE2_FLAGS} -msse2"
13967 else $as_nop
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 printf "%s\n" "no" >&6; }
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13972 CFLAGS="$SAVED_CFLAGS"
13973 if test -n "$SSE2_FLAGS"
13974 then :
13975
13976 SAVED_CFLAGS=$CFLAGS
13977 CFLAGS="$CFLAGS $SSE2_FLAGS"
13978 ac_fn_c_check_header_compile "$LINENO" "emmintrin.h" "ac_cv_header_emmintrin_h" "$ac_includes_default"
13979 if test "x$ac_cv_header_emmintrin_h" = xyes
13980 then :
13981
13982 printf "%s\n" "#define WEBP_HAVE_SSE2 1" >>confdefs.h
13983
13984 else $as_nop
13985 SSE2_FLAGS=""
13986 fi
13987
13988 CFLAGS=$SAVED_CFLAGS
13989 fi
13990
13991 fi
13992
13993 # Check whether --enable-neon was given.
13994 if test ${enable_neon+y}
13995 then :
13996 enableval=$enable_neon;
13997 fi
13998
13999
14000 # Check whether --enable-neon_rtcd was given.
14001 if test ${enable_neon_rtcd+y}
14002 then :
14003 enableval=$enable_neon_rtcd;
14004 fi
14005
14006 # For ARM(7) hosts:
14007 # Both NEON flags unset and NEON support detected = build all modules with NEON
14008 # NEON detected with the use of -mfpu=neon = build only NEON modules with NEON
14009 if test "x$enable_neon" != "xno"
14010 then :
14011
14012 case "$host_cpu" in
14013 arm|armv7*)
14014 # Test for NEON support without flags before falling back to -mfpu=neon
14015 for flag in '' '-mfpu=neon'; do
14016 LOCAL_NEON_FLAGS="$INTRINSICS_CFLAGS $NEON_FLAGS"
14017 SAVED_CFLAGS="$CFLAGS"
14018 CFLAGS="-Werror $flag"
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $flag" >&5
14020 printf %s "checking whether $CC supports $flag... " >&6; }
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 int main(void) { return 0; }
14024 _ACEOF
14025 if ac_fn_c_try_compile "$LINENO"
14026 then :
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14028 printf "%s\n" "yes" >&6; }
14029 LOCAL_NEON_FLAGS="${LOCAL_NEON_FLAGS} $flag"
14030 else $as_nop
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 printf "%s\n" "no" >&6; }
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14035 CFLAGS="$SAVED_CFLAGS"
14036 SAVED_CFLAGS=$CFLAGS
14037 CFLAGS="$CFLAGS $LOCAL_NEON_FLAGS"
14038
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041
14042 #include <arm_neon.h>
14043 int main(void) {
14044 int8x8_t v = vdup_n_s8(0);
14045 (void)v;
14046 return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"
14050 then :
14051 NEON_FLAGS="$(echo $LOCAL_NEON_FLAGS | $SED 's/^ *//')"
14052 if test -n "$NEON_FLAGS"
14053 then :
14054
14055 if test "${host_os%%-*}" = "linux" -o \
14056 "x$enable_neon_rtcd" = "xno"
14057 then :
14058
14059 CFLAGS=$SAVED_CFLAGS
14060
14061 printf "%s\n" "#define WEBP_HAVE_NEON 1" >>confdefs.h
14062
14063 break
14064
14065 else $as_nop
14066
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NEON runtime cpu-detection is unavailable for ${host_os%%-*}. Force with CFLAGS=-mfpu=neon or --disable-neon-rtcd." >&5
14068 printf "%s\n" "$as_me: WARNING: NEON runtime cpu-detection is unavailable for ${host_os%%-*}. Force with CFLAGS=-mfpu=neon or --disable-neon-rtcd." >&2;}
14069 enable_neon_rtcd=no
14070 NEON_FLAGS=""
14071
14072 fi
14073
14074 else $as_nop
14075
14076 CFLAGS=$SAVED_CFLAGS
14077
14078 printf "%s\n" "#define WEBP_HAVE_NEON 1" >>confdefs.h
14079
14080 break
14081
14082 fi
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14085 CFLAGS=$SAVED_CFLAGS
14086 done
14087
14088 if test -n "$NEON_FLAGS"
14089 then :
14090
14091 # If NEON is available and rtcd is disabled apply NEON_FLAGS globally.
14092 if test "x$enable_neon_rtcd" = "xno"
14093 then :
14094
14095 AM_CFLAGS="$AM_CFLAGS $NEON_FLAGS"
14096 NEON_FLAGS=""
14097 else $as_nop
14098
14099 printf "%s\n" "#define WEBP_HAVE_NEON_RTCD 1" >>confdefs.h
14100
14101 fi
14102 fi
14103
14104 case "$host_os" in
14105 *android*) ac_fn_c_check_header_compile "$LINENO" "cpu-features.h" "ac_cv_header_cpu_features_h" "$ac_includes_default"
14106 if test "x$ac_cv_header_cpu_features_h" = xyes
14107 then :
14108 printf "%s\n" "#define HAVE_CPU_FEATURES_H 1" >>confdefs.h
14109
14110 fi
14111 ;;
14112 esac
14113 ;;
14114 aarch64*|arm64*)
14115
14116 printf "%s\n" "#define WEBP_HAVE_NEON 1" >>confdefs.h
14117
14118 ;;
14119 esac
14120
14121 fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134 ac_ext=c
14135 ac_cpp='$CPP $CPPFLAGS'
14136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14139
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
14141 printf %s "checking for __builtin_bswap16... " >&6; }
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144
14145 int
14146 main (void)
14147 {
14148 (void)__builtin_bswap16(1u << 15)
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"
14154 then :
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14156 printf "%s\n" "yes" >&6; }
14157
14158 printf "%s\n" "#define HAVE_BUILTIN_BSWAP16 1" >>confdefs.h
14159
14160 else $as_nop
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 printf "%s\n" "no" >&6; }
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14165 conftest$ac_exeext conftest.$ac_ext,
14166 ac_ext=c
14167 ac_cpp='$CPP $CPPFLAGS'
14168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14171
14172 ac_ext=c
14173 ac_cpp='$CPP $CPPFLAGS'
14174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14177
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
14179 printf %s "checking for __builtin_bswap32... " >&6; }
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182
14183 int
14184 main (void)
14185 {
14186 (void)__builtin_bswap32(1u << 31)
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"
14192 then :
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14194 printf "%s\n" "yes" >&6; }
14195
14196 printf "%s\n" "#define HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
14197
14198 else $as_nop
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 printf "%s\n" "no" >&6; }
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14203 conftest$ac_exeext conftest.$ac_ext,
14204 ac_ext=c
14205 ac_cpp='$CPP $CPPFLAGS'
14206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14209
14210 ac_ext=c
14211 ac_cpp='$CPP $CPPFLAGS'
14212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14215
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
14217 printf %s "checking for __builtin_bswap64... " >&6; }
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220
14221 int
14222 main (void)
14223 {
14224 (void)__builtin_bswap64(1ull << 63)
14225 ;
14226 return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"
14230 then :
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14232 printf "%s\n" "yes" >&6; }
14233
14234 printf "%s\n" "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
14235
14236 else $as_nop
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 printf "%s\n" "no" >&6; }
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14241 conftest$ac_exeext conftest.$ac_ext,
14242 ac_ext=c
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14247
14248
14249 # Check whether --enable-threading was given.
14250 if test ${enable_threading+y}
14251 then :
14252 enableval=$enable_threading;
14253 else $as_nop
14254 enable_threading=yes
14255 fi
14256
14257 if test "$enable_threading" = "yes"; then
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threading support..." >&5
14259 printf "%s\n" "$as_me: checking for threading support..." >&6;}
14260
14261
14262 ac_ext=c
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14267
14268 ax_pthread_ok=no
14269
14270 # We used to check for pthread.h first, but this fails if pthread.h
14271 # requires special compiler flags (e.g. on True64 or Sequent).
14272 # It gets checked for in the link test anyway.
14273
14274 # First of all, check if the user has set any of the PTHREAD_LIBS,
14275 # etcetera environment variables, and if threads linking works using
14276 # them:
14277 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14278 save_CFLAGS="$CFLAGS"
14279 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14280 save_LIBS="$LIBS"
14281 LIBS="$PTHREAD_LIBS $LIBS"
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14283 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286
14287 /* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14290 char pthread_join ();
14291 int
14292 main (void)
14293 {
14294 return pthread_join ();
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"
14300 then :
14301 ax_pthread_ok=yes
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14304 conftest$ac_exeext conftest.$ac_ext
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14306 printf "%s\n" "$ax_pthread_ok" >&6; }
14307 if test x"$ax_pthread_ok" = xno; then
14308 PTHREAD_LIBS=""
14309 PTHREAD_CFLAGS=""
14310 fi
14311 LIBS="$save_LIBS"
14312 CFLAGS="$save_CFLAGS"
14313 fi
14314
14315 # We must check for the threads library under a number of different
14316 # names; the ordering is very important because some systems
14317 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14318 # libraries is broken (non-POSIX).
14319
14320 # Create a list of thread flags to try. Items starting with a "-" are
14321 # C compiler flags, and other items are library names, except for "none"
14322 # which indicates that we try without any flags at all, and "pthread-config"
14323 # which is a program returning the flags for the Pth emulation library.
14324
14325 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14326
14327 # The ordering *is* (sometimes) important. Some notes on the
14328 # individual items follow:
14329
14330 # pthreads: AIX (must check this before -lpthread)
14331 # none: in case threads are in libc; should be tried before -Kthread and
14332 # other compiler flags to prevent continual compiler warnings
14333 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14334 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14335 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14336 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14337 # -pthreads: Solaris/gcc
14338 # -mthreads: Mingw32/gcc, Lynx/gcc
14339 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14340 # doesn't hurt to check since this sometimes defines pthreads too;
14341 # also defines -D_REENTRANT)
14342 # ... -mt is also the pthreads flag for HP/aCC
14343 # pthread: Linux, etcetera
14344 # --thread-safe: KAI C++
14345 # pthread-config: use pthread-config program (for GNU Pth library)
14346
14347 case ${host_os} in
14348 solaris*)
14349
14350 # On Solaris (at least, for some versions), libc contains stubbed
14351 # (non-functional) versions of the pthreads routines, so link-based
14352 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14353 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14354 # a function called by this macro, so we could check for that, but
14355 # who knows whether they'll stub that too in a future libc.) So,
14356 # we'll just look for -pthreads and -lpthread first:
14357
14358 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14359 ;;
14360
14361 darwin*)
14362 ax_pthread_flags="-pthread $ax_pthread_flags"
14363 ;;
14364 esac
14365
14366 # Clang doesn't consider unrecognized options an error unless we specify
14367 # -Werror. We throw in some extra Clang-specific options to ensure that
14368 # this doesn't happen for GCC, which also accepts -Werror.
14369
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
14371 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
14372 save_CFLAGS="$CFLAGS"
14373 ax_pthread_extra_flags="-Werror"
14374 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 int foo(void);
14378 int
14379 main (void)
14380 {
14381 foo()
14382 ;
14383 return 0;
14384 }
14385 _ACEOF
14386 if ac_fn_c_try_compile "$LINENO"
14387 then :
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14389 printf "%s\n" "yes" >&6; }
14390 else $as_nop
14391 ax_pthread_extra_flags=
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 printf "%s\n" "no" >&6; }
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14396 CFLAGS="$save_CFLAGS"
14397
14398 if test x"$ax_pthread_ok" = xno; then
14399 for flag in $ax_pthread_flags; do
14400
14401 case $flag in
14402 none)
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14404 printf %s "checking whether pthreads work without any flags... " >&6; }
14405 ;;
14406
14407 -*)
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14409 printf %s "checking whether pthreads work with $flag... " >&6; }
14410 PTHREAD_CFLAGS="$flag"
14411 ;;
14412
14413 pthread-config)
14414 # Extract the first word of "pthread-config", so it can be a program name with args.
14415 set dummy pthread-config; ac_word=$2
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 printf %s "checking for $ac_word... " >&6; }
14418 if test ${ac_cv_prog_ax_pthread_config+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else $as_nop
14422 if test -n "$ax_pthread_config"; then
14423 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14424 else
14425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426 for as_dir in $PATH
14427 do
14428 IFS=$as_save_IFS
14429 case $as_dir in #(((
14430 '') as_dir=./ ;;
14431 */) ;;
14432 *) as_dir=$as_dir/ ;;
14433 esac
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14436 ac_cv_prog_ax_pthread_config="yes"
14437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14438 break 2
14439 fi
14440 done
14441 done
14442 IFS=$as_save_IFS
14443
14444 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14445 fi
14446 fi
14447 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14448 if test -n "$ax_pthread_config"; then
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14450 printf "%s\n" "$ax_pthread_config" >&6; }
14451 else
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453 printf "%s\n" "no" >&6; }
14454 fi
14455
14456
14457 if test x"$ax_pthread_config" = xno; then continue; fi
14458 PTHREAD_CFLAGS="`pthread-config --cflags`"
14459 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14460 ;;
14461
14462 *)
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14464 printf %s "checking for the pthreads library -l$flag... " >&6; }
14465 PTHREAD_LIBS="-l$flag"
14466 ;;
14467 esac
14468
14469 save_LIBS="$LIBS"
14470 save_CFLAGS="$CFLAGS"
14471 LIBS="$PTHREAD_LIBS $LIBS"
14472 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
14473
14474 # Check for various functions. We must include pthread.h,
14475 # since some functions may be macros. (On the Sequent, we
14476 # need a special flag -Kthread to make this header compile.)
14477 # We check for pthread_join because it is in -lpthread on IRIX
14478 # while pthread_create is in libc. We check for pthread_attr_init
14479 # due to DEC craziness with -lpthreads. We check for
14480 # pthread_cleanup_push because it is one of the few pthread
14481 # functions on Solaris that doesn't have a non-functional libc stub.
14482 # We try pthread_create on general principles.
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <pthread.h>
14486 static void routine(void *a) { a = 0; }
14487 static void *start_routine(void *a) { return a; }
14488 int
14489 main (void)
14490 {
14491 pthread_t th; pthread_attr_t attr;
14492 pthread_create(&th, 0, start_routine, 0);
14493 pthread_join(th, 0);
14494 pthread_attr_init(&attr);
14495 pthread_cleanup_push(routine, 0);
14496 pthread_cleanup_pop(0) /* ; */
14497 ;
14498 return 0;
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"
14502 then :
14503 ax_pthread_ok=yes
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14506 conftest$ac_exeext conftest.$ac_ext
14507
14508 LIBS="$save_LIBS"
14509 CFLAGS="$save_CFLAGS"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14512 printf "%s\n" "$ax_pthread_ok" >&6; }
14513 if test "x$ax_pthread_ok" = xyes; then
14514 break;
14515 fi
14516
14517 PTHREAD_LIBS=""
14518 PTHREAD_CFLAGS=""
14519 done
14520 fi
14521
14522 # Various other checks:
14523 if test "x$ax_pthread_ok" = xyes; then
14524 save_LIBS="$LIBS"
14525 LIBS="$PTHREAD_LIBS $LIBS"
14526 save_CFLAGS="$CFLAGS"
14527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14528
14529 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14531 printf %s "checking for joinable pthread attribute... " >&6; }
14532 attr_name=unknown
14533 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536 #include <pthread.h>
14537 int
14538 main (void)
14539 {
14540 int attr = $attr; return attr /* ; */
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 if ac_fn_c_try_link "$LINENO"
14546 then :
14547 attr_name=$attr; break
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14550 conftest$ac_exeext conftest.$ac_ext
14551 done
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14553 printf "%s\n" "$attr_name" >&6; }
14554 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14555
14556 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
14557
14558 fi
14559
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14561 printf %s "checking if more special flags are required for pthreads... " >&6; }
14562 flag=no
14563 case ${host_os} in
14564 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
14565 osf* | hpux*) flag="-D_REENTRANT";;
14566 solaris*)
14567 if test "$GCC" = "yes"; then
14568 flag="-D_REENTRANT"
14569 else
14570 # TODO: What about Clang on Solaris?
14571 flag="-mt -D_REENTRANT"
14572 fi
14573 ;;
14574 esac
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
14576 printf "%s\n" "$flag" >&6; }
14577 if test "x$flag" != xno; then
14578 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14579 fi
14580
14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14582 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14583 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
14584 then :
14585 printf %s "(cached) " >&6
14586 else $as_nop
14587
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 #include <pthread.h>
14591 int
14592 main (void)
14593 {
14594 int i = PTHREAD_PRIO_INHERIT;
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_link "$LINENO"
14600 then :
14601 ax_cv_PTHREAD_PRIO_INHERIT=yes
14602 else $as_nop
14603 ax_cv_PTHREAD_PRIO_INHERIT=no
14604 fi
14605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14606 conftest$ac_exeext conftest.$ac_ext
14607
14608 fi
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14610 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14611 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
14612 then :
14613
14614 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14615
14616 fi
14617
14618 LIBS="$save_LIBS"
14619 CFLAGS="$save_CFLAGS"
14620
14621 # More AIX lossage: compile with *_r variant
14622 if test "x$GCC" != xyes; then
14623 case $host_os in
14624 aix*)
14625 case "x/$CC" in #(
14626 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14627 #handle absolute path differently from PATH based program lookup
14628 case "x$CC" in #(
14629 x/*) :
14630 if as_fn_executable_p ${CC}_r
14631 then :
14632 PTHREAD_CC="${CC}_r"
14633 fi ;; #(
14634 *) :
14635 for ac_prog in ${CC}_r
14636 do
14637 # Extract the first word of "$ac_prog", so it can be a program name with args.
14638 set dummy $ac_prog; ac_word=$2
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14640 printf %s "checking for $ac_word... " >&6; }
14641 if test ${ac_cv_prog_PTHREAD_CC+y}
14642 then :
14643 printf %s "(cached) " >&6
14644 else $as_nop
14645 if test -n "$PTHREAD_CC"; then
14646 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14647 else
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14650 do
14651 IFS=$as_save_IFS
14652 case $as_dir in #(((
14653 '') as_dir=./ ;;
14654 */) ;;
14655 *) as_dir=$as_dir/ ;;
14656 esac
14657 for ac_exec_ext in '' $ac_executable_extensions; do
14658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14659 ac_cv_prog_PTHREAD_CC="$ac_prog"
14660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14661 break 2
14662 fi
14663 done
14664 done
14665 IFS=$as_save_IFS
14666
14667 fi
14668 fi
14669 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14670 if test -n "$PTHREAD_CC"; then
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14672 printf "%s\n" "$PTHREAD_CC" >&6; }
14673 else
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 printf "%s\n" "no" >&6; }
14676 fi
14677
14678
14679 test -n "$PTHREAD_CC" && break
14680 done
14681 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14682 ;;
14683 esac ;; #(
14684 *) :
14685 ;;
14686 esac
14687 ;;
14688 esac
14689 fi
14690 fi
14691
14692 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14693
14694
14695
14696
14697
14698 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14699 if test x"$ax_pthread_ok" = xyes; then
14700
14701 printf "%s\n" "#define WEBP_USE_THREAD 1" >>confdefs.h
14702
14703 LIBS="$PTHREAD_LIBS $LIBS"
14704 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14705 CC="$PTHREAD_CC"
14706
14707 :
14708 else
14709 ax_pthread_ok=no
14710 ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex"
14711 if test "x$ac_cv_func__beginthreadex" = xyes
14712 then :
14713
14714 printf "%s\n" "#define WEBP_USE_THREAD 1" >>confdefs.h
14715
14716 else $as_nop
14717 enable_threading=no
14718 fi
14719
14720 fi
14721 ac_ext=c
14722 ac_cpp='$CPP $CPPFLAGS'
14723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14726
14727
14728 fi
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if threading is enabled... ${enable_threading-no}" >&5
14730 printf "%s\n" "$as_me: checking if threading is enabled... ${enable_threading-no}" >&6;}
14731
14732
14733 # Check whether --enable-gl was given.
14734 if test ${enable_gl+y}
14735 then :
14736 enableval=$enable_gl;
14737 fi
14738
14739 if test "x$enable_gl" != "xno"
14740 then :
14741
14742 GL_INCLUDES=""; GL_LIBS=""
14743
14744 # Check whether --with-glincludedir was given.
14745 if test ${with_glincludedir+y}
14746 then :
14747 withval=$with_glincludedir; GL_INCLUDES="-I$withval"
14748 fi
14749
14750
14751 # Check whether --with-gllibdir was given.
14752 if test ${with_gllibdir+y}
14753 then :
14754 withval=$with_gllibdir; GL_LIBS="-L$withval"
14755 fi
14756
14757
14758 SAVED_CPPFLAGS=$CPPFLAGS
14759 SAVED_LIBS=$LIBS
14760 CPPFLAGS="$GL_INCLUDES $CPPFLAGS"
14761 LIBS="$GL_LIBS $LIBS"
14762
14763 glut_cflags="none"
14764 glut_ldflags="none"
14765 case $host_os in
14766 darwin*)
14767 # Special case for OSX builds. Append these to give the user a chance to
14768 # override with --with-gl*
14769 glut_cflags="$glut_cflags|-framework GLUT -framework OpenGL"
14770 glut_ldflags="$glut_ldflags|-framework GLUT -framework OpenGL"
14771 # quiet deprecation warnings for glut
14772 SAVED_CFLAGS="$CFLAGS"
14773 CFLAGS="-Werror -Wno-deprecated-declarations"
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-deprecated-declarations" >&5
14775 printf %s "checking whether $CC supports -Wno-deprecated-declarations... " >&6; }
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 int main(void) { return 0; }
14779 _ACEOF
14780 if ac_fn_c_try_compile "$LINENO"
14781 then :
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 printf "%s\n" "yes" >&6; }
14784 AM_CFLAGS="${AM_CFLAGS} -Wno-deprecated-declarations"
14785 else $as_nop
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 printf "%s\n" "no" >&6; }
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 CFLAGS="$SAVED_CFLAGS"
14791 ;;
14792 esac
14793
14794 GLUT_SAVED_CPPFLAGS="$CPPFLAGS"
14795 SAVED_IFS="$IFS"
14796 IFS="|"
14797 for flag in $glut_cflags; do
14798 # restore IFS immediately as the autoconf macros may need the default.
14799 IFS="$SAVED_IFS"
14800 unset ac_cv_header_GL_glut_h
14801 unset ac_cv_header_OpenGL_glut_h
14802
14803 case $flag in
14804 none) ;;
14805 *) CPPFLAGS="$flag $CPPFLAGS";;
14806 esac
14807 for ac_header in GL/glut.h GLUT/glut.h OpenGL/glut.h
14808 do :
14809 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14810 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14811 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14812 then :
14813 cat >>confdefs.h <<_ACEOF
14814 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14815 _ACEOF
14816 glut_headers=yes;
14817 test "$flag" = "none" || GL_INCLUDES="$CPPFLAGS";
14818 break
14819 fi
14820
14821 done
14822 CPPFLAGS="$GLUT_SAVED_CPPFLAGS"
14823 test "$glut_headers" = "yes" && break
14824 done
14825 IFS="$SAVED_IFS"
14826
14827 if test "$glut_headers" = "yes"; then
14828 ac_ext=c
14829 ac_cpp='$CPP $CPPFLAGS'
14830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14833
14834 GLUT_SAVED_LDFLAGS="$LDFLAGS"
14835 SAVED_IFS="$IFS"
14836 IFS="|"
14837 for flag in $glut_ldflags; do
14838 # restore IFS immediately as the autoconf macros may need the default.
14839 IFS="$SAVED_IFS"
14840 unset ac_cv_search_glBegin
14841
14842 case $flag in
14843 none) ;;
14844 *) LDFLAGS="$flag $LDFLAGS";;
14845 esac
14846
14847 # find libGL
14848 GL_SAVED_LIBS="$LIBS"
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
14850 printf %s "checking for library containing glBegin... " >&6; }
14851 if test ${ac_cv_search_glBegin+y}
14852 then :
14853 printf %s "(cached) " >&6
14854 else $as_nop
14855 ac_func_search_save_LIBS=$LIBS
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14858
14859 /* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14862 char glBegin ();
14863 int
14864 main (void)
14865 {
14866 return glBegin ();
14867 ;
14868 return 0;
14869 }
14870 _ACEOF
14871 for ac_lib in '' GL OpenGL opengl32
14872 do
14873 if test -z "$ac_lib"; then
14874 ac_res="none required"
14875 else
14876 ac_res=-l$ac_lib
14877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14878 fi
14879 if ac_fn_c_try_link "$LINENO"
14880 then :
14881 ac_cv_search_glBegin=$ac_res
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14884 conftest$ac_exeext
14885 if test ${ac_cv_search_glBegin+y}
14886 then :
14887 break
14888 fi
14889 done
14890 if test ${ac_cv_search_glBegin+y}
14891 then :
14892
14893 else $as_nop
14894 ac_cv_search_glBegin=no
14895 fi
14896 rm conftest.$ac_ext
14897 LIBS=$ac_func_search_save_LIBS
14898 fi
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
14900 printf "%s\n" "$ac_cv_search_glBegin" >&6; }
14901 ac_res=$ac_cv_search_glBegin
14902 if test "$ac_res" != no
14903 then :
14904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14905
14906 fi
14907
14908 LIBS="$GL_SAVED_LIBS"
14909
14910 # A direct link to libGL may not be necessary on e.g., linux.
14911 GLUT_SAVED_LIBS="$LIBS"
14912 for lib in "" "-lglut" "-lglut $ac_cv_search_glBegin"; do
14913 LIBS="$lib"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 #ifdef __cplusplus
14918 # define EXTERN_C extern "C"
14919 #else
14920 # define EXTERN_C
14921 #endif
14922 EXTERN_C char glOrtho();
14923 EXTERN_C char glutMainLoop();
14924
14925 int
14926 main (void)
14927 {
14928
14929 glOrtho();
14930 glutMainLoop();
14931
14932 ;
14933 return 0;
14934 }
14935
14936 _ACEOF
14937 if ac_fn_c_try_link "$LINENO"
14938 then :
14939
14940 printf "%s\n" "#define WEBP_HAVE_GL 1" >>confdefs.h
14941
14942 glut_support=yes
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14945 conftest$ac_exeext conftest.$ac_ext
14946 if test "$glut_support" = "yes"; then
14947 GL_LIBS="$LDFLAGS $lib"
14948 break
14949 fi
14950 done
14951 LIBS="$GLUT_SAVED_LIBS"
14952 LDFLAGS="$GLUT_SAVED_LDFLAGS"
14953 test "$glut_support" = "yes" && break
14954 done
14955 IFS="$SAVED_IFS"
14956 ac_ext=c
14957 ac_cpp='$CPP $CPPFLAGS'
14958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961
14962 fi
14963
14964
14965
14966 CPPFLAGS=$SAVED_CPPFLAGS
14967 LIBS=$SAVED_LIBS
14968
14969 if test "$glut_support" = "yes" -a "$enable_libwebpdemux" = "yes"; then
14970 build_vwebp=yes
14971 else
14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building vwebp. OpenGL libraries and --enable-libwebpdemux are required." >&5
14973 printf "%s\n" "$as_me: Not building vwebp. OpenGL libraries and --enable-libwebpdemux are required." >&6;}
14974 fi
14975
14976 fi
14977 if test "$build_vwebp" = "yes"; then
14978 BUILD_VWEBP_TRUE=
14979 BUILD_VWEBP_FALSE='#'
14980 else
14981 BUILD_VWEBP_TRUE='#'
14982 BUILD_VWEBP_FALSE=
14983 fi
14984
14985
14986
14987 # Check whether --enable-sdl was given.
14988 if test ${enable_sdl+y}
14989 then :
14990 enableval=$enable_sdl;
14991 fi
14992
14993 if test "x$enable_sdl" != "xno"
14994 then :
14995
14996 SDL_INCLUDES=""; SDL_LIBS=""
14997 for ac_prog in sdl2-config
14998 do
14999 # Extract the first word of "$ac_prog", so it can be a program name with args.
15000 set dummy $ac_prog; ac_word=$2
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15002 printf %s "checking for $ac_word... " >&6; }
15003 if test ${ac_cv_path_LIBSDL_CONFIG+y}
15004 then :
15005 printf %s "(cached) " >&6
15006 else $as_nop
15007 case $LIBSDL_CONFIG in
15008 [\\/]* | ?:[\\/]*)
15009 ac_cv_path_LIBSDL_CONFIG="$LIBSDL_CONFIG" # Let the user override the test with a path.
15010 ;;
15011 *)
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15014 do
15015 IFS=$as_save_IFS
15016 case $as_dir in #(((
15017 '') as_dir=./ ;;
15018 */) ;;
15019 *) as_dir=$as_dir/ ;;
15020 esac
15021 for ac_exec_ext in '' $ac_executable_extensions; do
15022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15023 ac_cv_path_LIBSDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
15024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15025 break 2
15026 fi
15027 done
15028 done
15029 IFS=$as_save_IFS
15030
15031 ;;
15032 esac
15033 fi
15034 LIBSDL_CONFIG=$ac_cv_path_LIBSDL_CONFIG
15035 if test -n "$LIBSDL_CONFIG"; then
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBSDL_CONFIG" >&5
15037 printf "%s\n" "$LIBSDL_CONFIG" >&6; }
15038 else
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 printf "%s\n" "no" >&6; }
15041 fi
15042
15043
15044 test -n "$LIBSDL_CONFIG" && break
15045 done
15046
15047 if test -n "$LIBSDL_CONFIG"; then
15048 SDL_INCLUDES=`$LIBSDL_CONFIG --cflags`
15049 SDL_LIBS="`$LIBSDL_CONFIG --libs`"
15050 fi
15051
15052
15053 # Check whether --with-sdlincludedir was given.
15054 if test ${with_sdlincludedir+y}
15055 then :
15056 withval=$with_sdlincludedir; SDL_INCLUDES="-I$withval"
15057 fi
15058
15059
15060 # Check whether --with-sdllibdir was given.
15061 if test ${with_sdllibdir+y}
15062 then :
15063 withval=$with_sdllibdir; SDL_LIBS="-L$withval"
15064 fi
15065
15066
15067 sdl_header="no"
15068 SAVED_CPPFLAGS=$CPPFLAGS
15069 SAVED_LIBS=$LIBS
15070 CPPFLAGS="$SDL_INCLUDES $CPPFLAGS"
15071 LIBS="$SDL_LIBS $LIBS"
15072 ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
15073 if test "x$ac_cv_header_SDL2_SDL_h" = xyes
15074 then :
15075 sdl_header="SDL2/SDL.h"
15076 else $as_nop
15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SDL2 library not available - no SDL.h" >&5
15078 printf "%s\n" "$as_me: WARNING: SDL2 library not available - no SDL.h" >&2;}
15079 fi
15080
15081 if test x"$sdl_header" != "xno"; then
15082 ac_ext=c
15083 ac_cpp='$CPP $CPPFLAGS'
15084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087
15088 SDL_SAVED_LIBS="$LIBS"
15089 for lib in "" "-lSDL2" "-lSDL2main -lSDL2"; do
15090 LIBS="$SDL_SAVED_LIBS $lib"
15091 # Perform a full link to ensure SDL_main is resolved if needed.
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 #include <$sdl_header>
15096 int main(int argc, char** argv) {
15097 SDL_Init(0);
15098 return 0;
15099 }
15100 _ACEOF
15101 if ac_fn_c_try_link "$LINENO"
15102 then :
15103 SDL_LIBS="$LDFLAGS $LIBS"
15104 SDL_INCLUDES="$SDL_INCLUDES -DWEBP_HAVE_SDL"
15105
15106 printf "%s\n" "#define WEBP_HAVE_SDL 1" >>confdefs.h
15107
15108 sdl_support=yes
15109
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15112 conftest$ac_exeext conftest.$ac_ext
15113 if test x"$sdl_support" = "xyes"; then
15114 break
15115 fi
15116 done
15117 # LIBS is restored by LIBCHECK_EPILOGUE
15118 ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124 if test x"$sdl_header" = "xSDL.h"; then
15125 SDL_INCLUDES="$SDL_INCLUDES -DWEBP_HAVE_JUST_SDL_H"
15126 fi
15127 fi
15128
15129
15130 CPPFLAGS=$SAVED_CPPFLAGS
15131 LIBS=$SAVED_LIBS
15132
15133 if test x"$sdl_support" = "xyes"; then
15134 build_vwebp_sdl=yes
15135 else
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building vwebp-sdl. SDL library is required." >&5
15137 printf "%s\n" "$as_me: Not building vwebp-sdl. SDL library is required." >&6;}
15138 fi
15139
15140 fi
15141
15142 if test "$build_vwebp_sdl" = "yes"; then
15143 BUILD_VWEBP_SDL_TRUE=
15144 BUILD_VWEBP_SDL_FALSE='#'
15145 else
15146 BUILD_VWEBP_SDL_TRUE='#'
15147 BUILD_VWEBP_SDL_FALSE=
15148 fi
15149
15150
15151
15152 # Check whether --enable-png was given.
15153 if test ${enable_png+y}
15154 then :
15155 enableval=$enable_png;
15156 fi
15157
15158 if test "x$enable_png" != "xno"
15159 then :
15160
15161 PNG_INCLUDES=""; PNG_LIBS=""
15162 for ac_prog in libpng-config libpng16-config libpng15-config libpng14-config \
15163 libpng12-config
15164 do
15165 # Extract the first word of "$ac_prog", so it can be a program name with args.
15166 set dummy $ac_prog; ac_word=$2
15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15168 printf %s "checking for $ac_word... " >&6; }
15169 if test ${ac_cv_path_LIBPNG_CONFIG+y}
15170 then :
15171 printf %s "(cached) " >&6
15172 else $as_nop
15173 case $LIBPNG_CONFIG in
15174 [\\/]* | ?:[\\/]*)
15175 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
15176 ;;
15177 *)
15178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179 for as_dir in $PATH
15180 do
15181 IFS=$as_save_IFS
15182 case $as_dir in #(((
15183 '') as_dir=./ ;;
15184 */) ;;
15185 *) as_dir=$as_dir/ ;;
15186 esac
15187 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15189 ac_cv_path_LIBPNG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15191 break 2
15192 fi
15193 done
15194 done
15195 IFS=$as_save_IFS
15196
15197 ;;
15198 esac
15199 fi
15200 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
15201 if test -n "$LIBPNG_CONFIG"; then
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
15203 printf "%s\n" "$LIBPNG_CONFIG" >&6; }
15204 else
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206 printf "%s\n" "no" >&6; }
15207 fi
15208
15209
15210 test -n "$LIBPNG_CONFIG" && break
15211 done
15212
15213 if test -n "$LIBPNG_CONFIG"; then
15214 PNG_INCLUDES=`$LIBPNG_CONFIG --cflags`
15215 PNG_LIBS="`$LIBPNG_CONFIG --ldflags`"
15216 fi
15217
15218
15219 # Check whether --with-pngincludedir was given.
15220 if test ${with_pngincludedir+y}
15221 then :
15222 withval=$with_pngincludedir; PNG_INCLUDES="-I$withval"
15223 fi
15224
15225
15226 # Check whether --with-pnglibdir was given.
15227 if test ${with_pnglibdir+y}
15228 then :
15229 withval=$with_pnglibdir; PNG_LIBS="-L$withval"
15230 fi
15231
15232
15233 SAVED_CPPFLAGS=$CPPFLAGS
15234 SAVED_LIBS=$LIBS
15235 CPPFLAGS="$PNG_INCLUDES $CPPFLAGS"
15236 LIBS="$PNG_LIBS $LIBS"
15237 ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
15238 if test "x$ac_cv_header_png_h" = xyes
15239 then :
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing png_get_libpng_ver" >&5
15241 printf %s "checking for library containing png_get_libpng_ver... " >&6; }
15242 if test ${ac_cv_search_png_get_libpng_ver+y}
15243 then :
15244 printf %s "(cached) " >&6
15245 else $as_nop
15246 ac_func_search_save_LIBS=$LIBS
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15253 char png_get_libpng_ver ();
15254 int
15255 main (void)
15256 {
15257 return png_get_libpng_ver ();
15258 ;
15259 return 0;
15260 }
15261 _ACEOF
15262 for ac_lib in '' png
15263 do
15264 if test -z "$ac_lib"; then
15265 ac_res="none required"
15266 else
15267 ac_res=-l$ac_lib
15268 LIBS="-l$ac_lib $MATH_LIBS $ac_func_search_save_LIBS"
15269 fi
15270 if ac_fn_c_try_link "$LINENO"
15271 then :
15272 ac_cv_search_png_get_libpng_ver=$ac_res
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15275 conftest$ac_exeext
15276 if test ${ac_cv_search_png_get_libpng_ver+y}
15277 then :
15278 break
15279 fi
15280 done
15281 if test ${ac_cv_search_png_get_libpng_ver+y}
15282 then :
15283
15284 else $as_nop
15285 ac_cv_search_png_get_libpng_ver=no
15286 fi
15287 rm conftest.$ac_ext
15288 LIBS=$ac_func_search_save_LIBS
15289 fi
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_png_get_libpng_ver" >&5
15291 printf "%s\n" "$ac_cv_search_png_get_libpng_ver" >&6; }
15292 ac_res=$ac_cv_search_png_get_libpng_ver
15293 if test "$ac_res" != no
15294 then :
15295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15296 test "$ac_cv_search_png_get_libpng_ver" = "none required" \
15297 || PNG_LIBS="$PNG_LIBS $ac_cv_search_png_get_libpng_ver"
15298 PNG_INCLUDES="$PNG_INCLUDES -DWEBP_HAVE_PNG"
15299
15300 printf "%s\n" "#define WEBP_HAVE_PNG 1" >>confdefs.h
15301
15302 png_support=yes
15303
15304 else $as_nop
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Optional png library not found" >&5
15306 printf "%s\n" "$as_me: WARNING: Optional png library not found" >&2;}
15307 PNG_LIBS=""
15308 PNG_INCLUDES=""
15309
15310 fi
15311
15312 else $as_nop
15313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: png library not available - no png.h" >&5
15314 printf "%s\n" "$as_me: WARNING: png library not available - no png.h" >&2;}
15315 PNG_LIBS=""
15316 PNG_INCLUDES=""
15317
15318 fi
15319
15320
15321
15322 CPPFLAGS=$SAVED_CPPFLAGS
15323 LIBS=$SAVED_LIBS
15324
15325 fi
15326
15327
15328 # Check whether --enable-jpeg was given.
15329 if test ${enable_jpeg+y}
15330 then :
15331 enableval=$enable_jpeg;
15332 fi
15333
15334 if test "x$enable_jpeg" != "xno"
15335 then :
15336
15337 JPEG_INCLUDES=""; JPEG_LIBS=""
15338
15339 # Check whether --with-jpegincludedir was given.
15340 if test ${with_jpegincludedir+y}
15341 then :
15342 withval=$with_jpegincludedir; JPEG_INCLUDES="-I$withval"
15343 fi
15344
15345
15346 # Check whether --with-jpeglibdir was given.
15347 if test ${with_jpeglibdir+y}
15348 then :
15349 withval=$with_jpeglibdir; JPEG_LIBS="-L$withval"
15350 fi
15351
15352
15353 SAVED_CPPFLAGS=$CPPFLAGS
15354 SAVED_LIBS=$LIBS
15355 CPPFLAGS="$JPEG_INCLUDES $CPPFLAGS"
15356 LIBS="$JPEG_LIBS $LIBS"
15357 ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15358 if test "x$ac_cv_header_jpeglib_h" = xyes
15359 then :
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
15361 printf %s "checking for jpeg_set_defaults in -ljpeg... " >&6; }
15362 if test ${ac_cv_lib_jpeg_jpeg_set_defaults+y}
15363 then :
15364 printf %s "(cached) " >&6
15365 else $as_nop
15366 ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-ljpeg $MATH_LIBS $LIBS"
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370
15371 /* Override any GCC internal prototype to avoid an error.
15372 Use char because int might match the return type of a GCC
15373 builtin and then its argument prototype would still apply. */
15374 char jpeg_set_defaults ();
15375 int
15376 main (void)
15377 {
15378 return jpeg_set_defaults ();
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"
15384 then :
15385 ac_cv_lib_jpeg_jpeg_set_defaults=yes
15386 else $as_nop
15387 ac_cv_lib_jpeg_jpeg_set_defaults=no
15388 fi
15389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15390 conftest$ac_exeext conftest.$ac_ext
15391 LIBS=$ac_check_lib_save_LIBS
15392 fi
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
15394 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
15395 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes
15396 then :
15397 JPEG_LIBS="$JPEG_LIBS -ljpeg"
15398 JPEG_INCLUDES="$JPEG_INCLUDES -DWEBP_HAVE_JPEG"
15399
15400 printf "%s\n" "#define WEBP_HAVE_JPEG 1" >>confdefs.h
15401
15402 jpeg_support=yes
15403
15404 else $as_nop
15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Optional jpeg library not found" >&5
15406 printf "%s\n" "$as_me: WARNING: Optional jpeg library not found" >&2;}
15407 fi
15408
15409 else $as_nop
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jpeg library not available - no jpeglib.h" >&5
15411 printf "%s\n" "$as_me: WARNING: jpeg library not available - no jpeglib.h" >&2;}
15412
15413 fi
15414
15415
15416
15417 CPPFLAGS=$SAVED_CPPFLAGS
15418 LIBS=$SAVED_LIBS
15419
15420 fi
15421
15422
15423 # Check whether --enable-tiff was given.
15424 if test ${enable_tiff+y}
15425 then :
15426 enableval=$enable_tiff;
15427 fi
15428
15429 if test "x$enable_tiff" != "xno"
15430 then :
15431
15432 TIFF_INCLUDES=""; TIFF_LIBS=""
15433
15434 # Check whether --with-tiffincludedir was given.
15435 if test ${with_tiffincludedir+y}
15436 then :
15437 withval=$with_tiffincludedir; TIFF_INCLUDES="-I$withval"
15438 fi
15439
15440
15441 # Check whether --with-tifflibdir was given.
15442 if test ${with_tifflibdir+y}
15443 then :
15444 withval=$with_tifflibdir; TIFF_LIBS="-L$withval"
15445 fi
15446
15447
15448 SAVED_CPPFLAGS=$CPPFLAGS
15449 SAVED_LIBS=$LIBS
15450 CPPFLAGS="$TIFF_INCLUDES $CPPFLAGS"
15451 LIBS="$TIFF_LIBS $LIBS"
15452 ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
15453 if test "x$ac_cv_header_tiffio_h" = xyes
15454 then :
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
15456 printf %s "checking for TIFFGetVersion in -ltiff... " >&6; }
15457 if test ${ac_cv_lib_tiff_TIFFGetVersion+y}
15458 then :
15459 printf %s "(cached) " >&6
15460 else $as_nop
15461 ac_check_lib_save_LIBS=$LIBS
15462 LIBS="-ltiff $MATH_LIBS $LIBS"
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465
15466 /* Override any GCC internal prototype to avoid an error.
15467 Use char because int might match the return type of a GCC
15468 builtin and then its argument prototype would still apply. */
15469 char TIFFGetVersion ();
15470 int
15471 main (void)
15472 {
15473 return TIFFGetVersion ();
15474 ;
15475 return 0;
15476 }
15477 _ACEOF
15478 if ac_fn_c_try_link "$LINENO"
15479 then :
15480 ac_cv_lib_tiff_TIFFGetVersion=yes
15481 else $as_nop
15482 ac_cv_lib_tiff_TIFFGetVersion=no
15483 fi
15484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15485 conftest$ac_exeext conftest.$ac_ext
15486 LIBS=$ac_check_lib_save_LIBS
15487 fi
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15489 printf "%s\n" "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15490 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
15491 then :
15492 TIFF_LIBS="$TIFF_LIBS -ltiff"
15493 TIFF_INCLUDES="$TIFF_INCLUDES -DWEBP_HAVE_TIFF"
15494
15495 printf "%s\n" "#define WEBP_HAVE_TIFF 1" >>confdefs.h
15496
15497 tiff_support=yes
15498
15499 else $as_nop
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Optional tiff library not found" >&5
15501 printf "%s\n" "$as_me: WARNING: Optional tiff library not found" >&2;}
15502 fi
15503
15504 else $as_nop
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: tiff library not available - no tiffio.h" >&5
15506 printf "%s\n" "$as_me: WARNING: tiff library not available - no tiffio.h" >&2;}
15507
15508 fi
15509
15510
15511
15512 CPPFLAGS=$SAVED_CPPFLAGS
15513 LIBS=$SAVED_LIBS
15514
15515 fi
15516
15517
15518 # Check whether --enable-gif was given.
15519 if test ${enable_gif+y}
15520 then :
15521 enableval=$enable_gif;
15522 fi
15523
15524 if test "x$enable_gif" != "xno"
15525 then :
15526
15527 GIF_INCLUDES=""; GIF_LIBS=""
15528
15529 # Check whether --with-gifincludedir was given.
15530 if test ${with_gifincludedir+y}
15531 then :
15532 withval=$with_gifincludedir; GIF_INCLUDES="-I$withval"
15533 fi
15534
15535
15536 # Check whether --with-giflibdir was given.
15537 if test ${with_giflibdir+y}
15538 then :
15539 withval=$with_giflibdir; GIF_LIBS="-L$withval"
15540 fi
15541
15542
15543 SAVED_CPPFLAGS=$CPPFLAGS
15544 SAVED_LIBS=$LIBS
15545 CPPFLAGS="$GIF_INCLUDES $CPPFLAGS"
15546 LIBS="$GIF_LIBS $LIBS"
15547 ac_fn_c_check_header_compile "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
15548 if test "x$ac_cv_header_gif_lib_h" = xyes
15549 then :
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileHandle in -lgif" >&5
15551 printf %s "checking for DGifOpenFileHandle in -lgif... " >&6; }
15552 if test ${ac_cv_lib_gif_DGifOpenFileHandle+y}
15553 then :
15554 printf %s "(cached) " >&6
15555 else $as_nop
15556 ac_check_lib_save_LIBS=$LIBS
15557 LIBS="-lgif $MATH_LIBS $LIBS"
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560
15561 /* Override any GCC internal prototype to avoid an error.
15562 Use char because int might match the return type of a GCC
15563 builtin and then its argument prototype would still apply. */
15564 char DGifOpenFileHandle ();
15565 int
15566 main (void)
15567 {
15568 return DGifOpenFileHandle ();
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_link "$LINENO"
15574 then :
15575 ac_cv_lib_gif_DGifOpenFileHandle=yes
15576 else $as_nop
15577 ac_cv_lib_gif_DGifOpenFileHandle=no
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15582 fi
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileHandle" >&5
15584 printf "%s\n" "$ac_cv_lib_gif_DGifOpenFileHandle" >&6; }
15585 if test "x$ac_cv_lib_gif_DGifOpenFileHandle" = xyes
15586 then :
15587 GIF_LIBS="$GIF_LIBS -lgif"
15588
15589 printf "%s\n" "#define WEBP_HAVE_GIF 1" >>confdefs.h
15590
15591 gif_support=yes
15592
15593 else $as_nop
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Optional gif library not found" >&5
15595 printf "%s\n" "$as_me: WARNING: Optional gif library not found" >&2;}
15596 fi
15597
15598 else $as_nop
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gif library not available - no gif_lib.h" >&5
15600 printf "%s\n" "$as_me: WARNING: gif library not available - no gif_lib.h" >&2;}
15601
15602 fi
15603
15604
15605
15606 CPPFLAGS=$SAVED_CPPFLAGS
15607 LIBS=$SAVED_LIBS
15608
15609 if test "$gif_support" = "yes" -a \
15610 "$enable_libwebpdemux" = "yes"; then
15611 build_anim_diff=yes
15612 else
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building anim_diff. libgif and --enable-libwebpdemux are required." >&5
15614 printf "%s\n" "$as_me: Not building anim_diff. libgif and --enable-libwebpdemux are required." >&6;}
15615 fi
15616
15617 if test "$gif_support" = "yes" -a \
15618 "$enable_libwebpmux" = "yes"; then
15619 build_gif2webp=yes
15620 else
15621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building gif2webp. libgif and --enable-libwebpmux are required." >&5
15622 printf "%s\n" "$as_me: Not building gif2webp. libgif and --enable-libwebpmux are required." >&6;}
15623 fi
15624
15625 fi
15626 if test "${build_anim_diff}" = "yes"; then
15627 BUILD_ANIMDIFF_TRUE=
15628 BUILD_ANIMDIFF_FALSE='#'
15629 else
15630 BUILD_ANIMDIFF_TRUE='#'
15631 BUILD_ANIMDIFF_FALSE=
15632 fi
15633
15634 if test "${build_gif2webp}" = "yes"; then
15635 BUILD_GIF2WEBP_TRUE=
15636 BUILD_GIF2WEBP_FALSE='#'
15637 else
15638 BUILD_GIF2WEBP_TRUE='#'
15639 BUILD_GIF2WEBP_FALSE=
15640 fi
15641
15642
15643 if test "$enable_libwebpdemux" = "yes" -a "$enable_libwebpmux" = "yes"; then
15644 build_img2webp=yes
15645 else
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building img2webp. --enable-libwebpdemux & --enable-libwebpmux are required." >&5
15647 printf "%s\n" "$as_me: Not building img2webp. --enable-libwebpdemux & --enable-libwebpmux are required." >&6;}
15648 fi
15649 if test "${build_img2webp}" = "yes"; then
15650 BUILD_IMG2WEBP_TRUE=
15651 BUILD_IMG2WEBP_FALSE='#'
15652 else
15653 BUILD_IMG2WEBP_TRUE='#'
15654 BUILD_IMG2WEBP_FALSE=
15655 fi
15656
15657
15658 if test "$enable_libwebpmux" = "yes"; then
15659 build_webpinfo=yes
15660 else
15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not building webpinfo. --enable-libwebpdemux is required." >&5
15662 printf "%s\n" "$as_me: Not building webpinfo. --enable-libwebpdemux is required." >&6;}
15663 fi
15664 if test "${build_webpinfo}" = "yes"; then
15665 BUILD_WEBPINFO_TRUE=
15666 BUILD_WEBPINFO_FALSE='#'
15667 else
15668 BUILD_WEBPINFO_TRUE='#'
15669 BUILD_WEBPINFO_FALSE=
15670 fi
15671
15672
15673
15674 # Check whether --enable-wic was given.
15675 if test ${enable_wic+y}
15676 then :
15677 enableval=$enable_wic;
15678 else $as_nop
15679 enable_wic=yes
15680 fi
15681
15682
15683 case $host_os in
15684 mingw*)
15685 if test "$enable_wic" = "yes"; then
15686 ac_fn_c_check_header_compile "$LINENO" "wincodec.h" "ac_cv_header_wincodec_h" "$ac_includes_default"
15687 if test "x$ac_cv_header_wincodec_h" = xyes
15688 then :
15689 printf "%s\n" "#define HAVE_WINCODEC_H 1" >>confdefs.h
15690
15691 fi
15692 ac_fn_c_check_header_compile "$LINENO" "shlwapi.h" "ac_cv_header_shlwapi_h" "$ac_includes_default"
15693 if test "x$ac_cv_header_shlwapi_h" = xyes
15694 then :
15695 printf "%s\n" "#define HAVE_SHLWAPI_H 1" >>confdefs.h
15696
15697 fi
15698 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15699 if test "x$ac_cv_header_windows_h" = xyes
15700 then :
15701 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
15702
15703 fi
15704
15705 if test "$ac_cv_header_wincodec_h" = "yes"; then
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Windows Imaging Component support" >&5
15707 printf %s "checking for Windows Imaging Component support... " >&6; }
15708 SAVED_LIBS=$LIBS
15709 LIBS="-lshlwapi -lole32 $LIBS"
15710 # match include structure from [cd]webp.c
15711 wic_headers="
15712 #define INITGUID
15713 #define CINTERFACE
15714 #define COBJMACROS
15715 #define _WIN32_IE 0x500
15716
15717 #include <shlwapi.h>
15718 #include <windows.h>
15719 #include <wincodec.h>
15720 "
15721 # test for functions from each lib and the GUID is created properly
15722 wic_main="
15723 int main(void) {
15724 CLSID_WICImagingFactory;
15725 CoInitialize(NULL);
15726 SHCreateStreamOnFile(NULL, 0, NULL);
15727 return 0;
15728 }
15729 "
15730 ac_ext=c
15731 ac_cpp='$CPP $CPPFLAGS'
15732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15735
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738
15739 $wic_headers
15740 $wic_main
15741 _ACEOF
15742 if ac_fn_c_try_link "$LINENO"
15743 then :
15744 wic_support=yes
15745 else $as_nop
15746 wic_support=no
15747
15748 fi
15749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15750 conftest$ac_exeext conftest.$ac_ext
15751 ac_ext=c
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756
15757
15758 test "$wic_support" = "yes" || LIBS=$SAVED_LIBS
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${wic_support-no}" >&5
15760 printf "%s\n" "${wic_support-no}" >&6; }
15761 fi
15762 fi
15763 esac
15764
15765
15766 USE_SWAP_16BIT_CSP=""
15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-swap-16bit-csp option is specified" >&5
15768 printf %s "checking if --enable-swap-16bit-csp option is specified... " >&6; }
15769 # Check whether --enable-swap-16bit-csp was given.
15770 if test ${enable_swap_16bit_csp+y}
15771 then :
15772 enableval=$enable_swap_16bit_csp;
15773 fi
15774
15775 if test "$enable_swap_16bit_csp" = "yes"; then
15776 USE_SWAP_16BIT_CSP="-DWEBP_SWAP_16BIT_CSP=1"
15777 fi
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_swap_16bit_csp-no}" >&5
15779 printf "%s\n" "${enable_swap_16bit_csp-no}" >&6; }
15780
15781
15782
15783
15784 printf "%s\n" "#define WEBP_NEAR_LOSSLESS 1" >>confdefs.h
15785
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --disable-near-lossless option is specified" >&5
15787 printf %s "checking if --disable-near-lossless option is specified... " >&6; }
15788 # Check whether --enable-near_lossless was given.
15789 if test ${enable_near_lossless+y}
15790 then :
15791 enableval=$enable_near_lossless;
15792 else $as_nop
15793 enable_near_lossless=yes
15794 fi
15795
15796 if test "$enable_near_lossless" = "no"; then
15797
15798 printf "%s\n" "#define WEBP_NEAR_LOSSLESS 0" >>confdefs.h
15799
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15801 printf "%s\n" "yes" >&6; }
15802 else
15803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 printf "%s\n" "no" >&6; }
15805 fi
15806
15807
15808
15809
15810 ac_config_headers="$ac_config_headers src/webp/config.h"
15811
15812 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile examples/Makefile extras/Makefile imageio/Makefile sharpyuv/Makefile sharpyuv/libsharpyuv.pc src/dec/Makefile src/enc/Makefile src/dsp/Makefile src/demux/Makefile src/mux/Makefile src/utils/Makefile src/libwebp.pc src/libwebpdecoder.pc src/demux/libwebpdemux.pc src/mux/libwebpmux.pc"
15813
15814
15815
15816 cat >confcache <<\_ACEOF
15817 # This file is a shell script that caches the results of configure
15818 # tests run on this system so they can be shared between configure
15819 # scripts and configure runs, see configure's option --config-cache.
15820 # It is not useful on other systems. If it contains results you don't
15821 # want to keep, you may remove or edit it.
15822 #
15823 # config.status only pays attention to the cache file if you give it
15824 # the --recheck option to rerun configure.
15825 #
15826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15828 # following values.
15829
15830 _ACEOF
15831
15832 # The following way of writing the cache mishandles newlines in values,
15833 # but we know of no workaround that is simple, portable, and efficient.
15834 # So, we kill variables containing newlines.
15835 # Ultrix sh set writes to stderr and can't be redirected directly,
15836 # and sets the high bit in the cache file unless we assign to the vars.
15837 (
15838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15839 eval ac_val=\$$ac_var
15840 case $ac_val in #(
15841 *${as_nl}*)
15842 case $ac_var in #(
15843 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15844 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15845 esac
15846 case $ac_var in #(
15847 _ | IFS | as_nl) ;; #(
15848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15849 *) { eval $ac_var=; unset $ac_var;} ;;
15850 esac ;;
15851 esac
15852 done
15853
15854 (set) 2>&1 |
15855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15856 *${as_nl}ac_space=\ *)
15857 # `set' does not quote correctly, so add quotes: double-quote
15858 # substitution turns \\\\ into \\, and sed turns \\ into \.
15859 sed -n \
15860 "s/'/'\\\\''/g;
15861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15862 ;; #(
15863 *)
15864 # `set' quotes correctly as required by POSIX, so do not add quotes.
15865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15866 ;;
15867 esac |
15868 sort
15869 ) |
15870 sed '
15871 /^ac_cv_env_/b end
15872 t clear
15873 :clear
15874 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15875 t end
15876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15877 :end' >>confcache
15878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15879 if test -w "$cache_file"; then
15880 if test "x$cache_file" != "x/dev/null"; then
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15882 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15883 if test ! -f "$cache_file" || test -h "$cache_file"; then
15884 cat confcache >"$cache_file"
15885 else
15886 case $cache_file in #(
15887 */* | ?:*)
15888 mv -f confcache "$cache_file"$$ &&
15889 mv -f "$cache_file"$$ "$cache_file" ;; #(
15890 *)
15891 mv -f confcache "$cache_file" ;;
15892 esac
15893 fi
15894 fi
15895 else
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15897 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15898 fi
15899 fi
15900 rm -f confcache
15901
15902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15903 # Let make expand exec_prefix.
15904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15905
15906 DEFS=-DHAVE_CONFIG_H
15907
15908 ac_libobjs=
15909 ac_ltlibobjs=
15910 U=
15911 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15912 # 1. Remove the extension, and $U if already installed.
15913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15914 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15916 # will be set to the directory where LIBOBJS objects are built.
15917 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15918 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15919 done
15920 LIBOBJS=$ac_libobjs
15921
15922 LTLIBOBJS=$ac_ltlibobjs
15923
15924
15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15926 printf %s "checking that generated files are newer than configure... " >&6; }
15927 if test -n "$am_sleep_pid"; then
15928 # Hide warnings about reused PIDs.
15929 wait $am_sleep_pid 2>/dev/null
15930 fi
15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15932 printf "%s\n" "done" >&6; }
15933 if test -n "$EXEEXT"; then
15934 am__EXEEXT_TRUE=
15935 am__EXEEXT_FALSE='#'
15936 else
15937 am__EXEEXT_TRUE='#'
15938 am__EXEEXT_FALSE=
15939 fi
15940
15941 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15942 as_fn_error $? "conditional \"AMDEP\" was never defined.
15943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15944 fi
15945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15946 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15948 fi
15949
15950 if test -z "${BUILD_MUX_TRUE}" && test -z "${BUILD_MUX_FALSE}"; then
15951 as_fn_error $? "conditional \"BUILD_MUX\" was never defined.
15952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15953 fi
15954 if test -z "${BUILD_DEMUX_TRUE}" && test -z "${BUILD_DEMUX_FALSE}"; then
15955 as_fn_error $? "conditional \"BUILD_DEMUX\" was never defined.
15956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15957 fi
15958 if test -z "${BUILD_LIBWEBPDECODER_TRUE}" && test -z "${BUILD_LIBWEBPDECODER_FALSE}"; then
15959 as_fn_error $? "conditional \"BUILD_LIBWEBPDECODER\" was never defined.
15960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15961 fi
15962 if test -z "${BUILD_EXTRAS_TRUE}" && test -z "${BUILD_EXTRAS_FALSE}"; then
15963 as_fn_error $? "conditional \"BUILD_EXTRAS\" was never defined.
15964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15965 fi
15966 if test -z "${BUILD_VWEBP_TRUE}" && test -z "${BUILD_VWEBP_FALSE}"; then
15967 as_fn_error $? "conditional \"BUILD_VWEBP\" was never defined.
15968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15969 fi
15970 if test -z "${BUILD_VWEBP_SDL_TRUE}" && test -z "${BUILD_VWEBP_SDL_FALSE}"; then
15971 as_fn_error $? "conditional \"BUILD_VWEBP_SDL\" was never defined.
15972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15973 fi
15974 if test -z "${BUILD_ANIMDIFF_TRUE}" && test -z "${BUILD_ANIMDIFF_FALSE}"; then
15975 as_fn_error $? "conditional \"BUILD_ANIMDIFF\" was never defined.
15976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15977 fi
15978 if test -z "${BUILD_GIF2WEBP_TRUE}" && test -z "${BUILD_GIF2WEBP_FALSE}"; then
15979 as_fn_error $? "conditional \"BUILD_GIF2WEBP\" was never defined.
15980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15981 fi
15982 if test -z "${BUILD_IMG2WEBP_TRUE}" && test -z "${BUILD_IMG2WEBP_FALSE}"; then
15983 as_fn_error $? "conditional \"BUILD_IMG2WEBP\" was never defined.
15984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15985 fi
15986 if test -z "${BUILD_WEBPINFO_TRUE}" && test -z "${BUILD_WEBPINFO_FALSE}"; then
15987 as_fn_error $? "conditional \"BUILD_WEBPINFO\" was never defined.
15988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15989 fi
15990
15991 : "${CONFIG_STATUS=./config.status}"
15992 ac_write_fail=0
15993 ac_clean_files_save=$ac_clean_files
15994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15996 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15997 as_write_fail=0
15998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15999 #! $SHELL
16000 # Generated by $as_me.
16001 # Run this file to recreate the current configuration.
16002 # Compiler output produced by configure, useful for debugging
16003 # configure, is in config.log if it exists.
16004
16005 debug=false
16006 ac_cs_recheck=false
16007 ac_cs_silent=false
16008
16009 SHELL=\${CONFIG_SHELL-$SHELL}
16010 export SHELL
16011 _ASEOF
16012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16013 ## -------------------- ##
16014 ## M4sh Initialization. ##
16015 ## -------------------- ##
16016
16017 # Be more Bourne compatible
16018 DUALCASE=1; export DUALCASE # for MKS sh
16019 as_nop=:
16020 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16021 then :
16022 emulate sh
16023 NULLCMD=:
16024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16025 # is contrary to our usage. Disable this feature.
16026 alias -g '${1+"$@"}'='"$@"'
16027 setopt NO_GLOB_SUBST
16028 else $as_nop
16029 case `(set -o) 2>/dev/null` in #(
16030 *posix*) :
16031 set -o posix ;; #(
16032 *) :
16033 ;;
16034 esac
16035 fi
16036
16037
16038
16039 # Reset variables that may have inherited troublesome values from
16040 # the environment.
16041
16042 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16043 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16044 # side effect of setting IFS to empty, thus disabling word splitting.)
16045 # Quoting is to prevent editors from complaining about space-tab.
16046 as_nl='
16047 '
16048 export as_nl
16049 IFS=" "" $as_nl"
16050
16051 PS1='$ '
16052 PS2='> '
16053 PS4='+ '
16054
16055 # Ensure predictable behavior from utilities with locale-dependent output.
16056 LC_ALL=C
16057 export LC_ALL
16058 LANGUAGE=C
16059 export LANGUAGE
16060
16061 # We cannot yet rely on "unset" to work, but we need these variables
16062 # to be unset--not just set to an empty or harmless value--now, to
16063 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16064 # also avoids known problems related to "unset" and subshell syntax
16065 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16066 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16067 do eval test \${$as_var+y} \
16068 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16069 done
16070
16071 # Ensure that fds 0, 1, and 2 are open.
16072 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16073 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16074 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16075
16076 # The user is always right.
16077 if ${PATH_SEPARATOR+false} :; then
16078 PATH_SEPARATOR=:
16079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16081 PATH_SEPARATOR=';'
16082 }
16083 fi
16084
16085
16086 # Find who we are. Look in the path if we contain no directory separator.
16087 as_myself=
16088 case $0 in #((
16089 *[\\/]* ) as_myself=$0 ;;
16090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16092 do
16093 IFS=$as_save_IFS
16094 case $as_dir in #(((
16095 '') as_dir=./ ;;
16096 */) ;;
16097 *) as_dir=$as_dir/ ;;
16098 esac
16099 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16100 done
16101 IFS=$as_save_IFS
16102
16103 ;;
16104 esac
16105 # We did not find ourselves, most probably we were run as `sh COMMAND'
16106 # in which case we are not to be found in the path.
16107 if test "x$as_myself" = x; then
16108 as_myself=$0
16109 fi
16110 if test ! -f "$as_myself"; then
16111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16112 exit 1
16113 fi
16114
16115
16116
16117 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16118 # ----------------------------------------
16119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16121 # script with STATUS, using 1 if that was 0.
16122 as_fn_error ()
16123 {
16124 as_status=$1; test $as_status -eq 0 && as_status=1
16125 if test "$4"; then
16126 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16128 fi
16129 printf "%s\n" "$as_me: error: $2" >&2
16130 as_fn_exit $as_status
16131 } # as_fn_error
16132
16133
16134
16135 # as_fn_set_status STATUS
16136 # -----------------------
16137 # Set $? to STATUS, without forking.
16138 as_fn_set_status ()
16139 {
16140 return $1
16141 } # as_fn_set_status
16142
16143 # as_fn_exit STATUS
16144 # -----------------
16145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16146 as_fn_exit ()
16147 {
16148 set +e
16149 as_fn_set_status $1
16150 exit $1
16151 } # as_fn_exit
16152
16153 # as_fn_unset VAR
16154 # ---------------
16155 # Portably unset VAR.
16156 as_fn_unset ()
16157 {
16158 { eval $1=; unset $1;}
16159 }
16160 as_unset=as_fn_unset
16161
16162 # as_fn_append VAR VALUE
16163 # ----------------------
16164 # Append the text in VALUE to the end of the definition contained in VAR. Take
16165 # advantage of any shell optimizations that allow amortized linear growth over
16166 # repeated appends, instead of the typical quadratic growth present in naive
16167 # implementations.
16168 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16169 then :
16170 eval 'as_fn_append ()
16171 {
16172 eval $1+=\$2
16173 }'
16174 else $as_nop
16175 as_fn_append ()
16176 {
16177 eval $1=\$$1\$2
16178 }
16179 fi # as_fn_append
16180
16181 # as_fn_arith ARG...
16182 # ------------------
16183 # Perform arithmetic evaluation on the ARGs, and store the result in the
16184 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16185 # must be portable across $(()) and expr.
16186 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16187 then :
16188 eval 'as_fn_arith ()
16189 {
16190 as_val=$(( $* ))
16191 }'
16192 else $as_nop
16193 as_fn_arith ()
16194 {
16195 as_val=`expr "$@" || test $? -eq 1`
16196 }
16197 fi # as_fn_arith
16198
16199
16200 if expr a : '\(a\)' >/dev/null 2>&1 &&
16201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16202 as_expr=expr
16203 else
16204 as_expr=false
16205 fi
16206
16207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16208 as_basename=basename
16209 else
16210 as_basename=false
16211 fi
16212
16213 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16214 as_dirname=dirname
16215 else
16216 as_dirname=false
16217 fi
16218
16219 as_me=`$as_basename -- "$0" ||
16220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16221 X"$0" : 'X\(//\)$' \| \
16222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16223 printf "%s\n" X/"$0" |
16224 sed '/^.*\/\([^/][^/]*\)\/*$/{
16225 s//\1/
16226 q
16227 }
16228 /^X\/\(\/\/\)$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\/\(\/\).*/{
16233 s//\1/
16234 q
16235 }
16236 s/.*/./; q'`
16237
16238 # Avoid depending upon Character Ranges.
16239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16242 as_cr_digits='0123456789'
16243 as_cr_alnum=$as_cr_Letters$as_cr_digits
16244
16245
16246 # Determine whether it's possible to make 'echo' print without a newline.
16247 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16248 # for compatibility with existing Makefiles.
16249 ECHO_C= ECHO_N= ECHO_T=
16250 case `echo -n x` in #(((((
16251 -n*)
16252 case `echo 'xy\c'` in
16253 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16254 xy) ECHO_C='\c';;
16255 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16256 ECHO_T=' ';;
16257 esac;;
16258 *)
16259 ECHO_N='-n';;
16260 esac
16261
16262 # For backward compatibility with old third-party macros, we provide
16263 # the shell variables $as_echo and $as_echo_n. New code should use
16264 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16265 as_echo='printf %s\n'
16266 as_echo_n='printf %s'
16267
16268 rm -f conf$$ conf$$.exe conf$$.file
16269 if test -d conf$$.dir; then
16270 rm -f conf$$.dir/conf$$.file
16271 else
16272 rm -f conf$$.dir
16273 mkdir conf$$.dir 2>/dev/null
16274 fi
16275 if (echo >conf$$.file) 2>/dev/null; then
16276 if ln -s conf$$.file conf$$ 2>/dev/null; then
16277 as_ln_s='ln -s'
16278 # ... but there are two gotchas:
16279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16281 # In both cases, we have to default to `cp -pR'.
16282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16283 as_ln_s='cp -pR'
16284 elif ln conf$$.file conf$$ 2>/dev/null; then
16285 as_ln_s=ln
16286 else
16287 as_ln_s='cp -pR'
16288 fi
16289 else
16290 as_ln_s='cp -pR'
16291 fi
16292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16293 rmdir conf$$.dir 2>/dev/null
16294
16295
16296 # as_fn_mkdir_p
16297 # -------------
16298 # Create "$as_dir" as a directory, including parents if necessary.
16299 as_fn_mkdir_p ()
16300 {
16301
16302 case $as_dir in #(
16303 -*) as_dir=./$as_dir;;
16304 esac
16305 test -d "$as_dir" || eval $as_mkdir_p || {
16306 as_dirs=
16307 while :; do
16308 case $as_dir in #(
16309 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16310 *) as_qdir=$as_dir;;
16311 esac
16312 as_dirs="'$as_qdir' $as_dirs"
16313 as_dir=`$as_dirname -- "$as_dir" ||
16314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16315 X"$as_dir" : 'X\(//\)[^/]' \| \
16316 X"$as_dir" : 'X\(//\)$' \| \
16317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16318 printf "%s\n" X"$as_dir" |
16319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16320 s//\1/
16321 q
16322 }
16323 /^X\(\/\/\)[^/].*/{
16324 s//\1/
16325 q
16326 }
16327 /^X\(\/\/\)$/{
16328 s//\1/
16329 q
16330 }
16331 /^X\(\/\).*/{
16332 s//\1/
16333 q
16334 }
16335 s/.*/./; q'`
16336 test -d "$as_dir" && break
16337 done
16338 test -z "$as_dirs" || eval "mkdir $as_dirs"
16339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16340
16341
16342 } # as_fn_mkdir_p
16343 if mkdir -p . 2>/dev/null; then
16344 as_mkdir_p='mkdir -p "$as_dir"'
16345 else
16346 test -d ./-p && rmdir ./-p
16347 as_mkdir_p=false
16348 fi
16349
16350
16351 # as_fn_executable_p FILE
16352 # -----------------------
16353 # Test if FILE is an executable regular file.
16354 as_fn_executable_p ()
16355 {
16356 test -f "$1" && test -x "$1"
16357 } # as_fn_executable_p
16358 as_test_x='test -x'
16359 as_executable_p=as_fn_executable_p
16360
16361 # Sed expression to map a string onto a valid CPP name.
16362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16363
16364 # Sed expression to map a string onto a valid variable name.
16365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16366
16367
16368 exec 6>&1
16369 ## ----------------------------------- ##
16370 ## Main body of $CONFIG_STATUS script. ##
16371 ## ----------------------------------- ##
16372 _ASEOF
16373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16374
16375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16376 # Save the log message, to keep $0 and so on meaningful, and to
16377 # report actual input values of CONFIG_FILES etc. instead of their
16378 # values after options handling.
16379 ac_log="
16380 This file was extended by libwebp $as_me 1.5.0, which was
16381 generated by GNU Autoconf 2.71. Invocation command line was
16382
16383 CONFIG_FILES = $CONFIG_FILES
16384 CONFIG_HEADERS = $CONFIG_HEADERS
16385 CONFIG_LINKS = $CONFIG_LINKS
16386 CONFIG_COMMANDS = $CONFIG_COMMANDS
16387 $ $0 $@
16388
16389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16390 "
16391
16392 _ACEOF
16393
16394 case $ac_config_files in *"
16395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16396 esac
16397
16398 case $ac_config_headers in *"
16399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16400 esac
16401
16402
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 # Files that config.status was made for.
16405 config_files="$ac_config_files"
16406 config_headers="$ac_config_headers"
16407 config_commands="$ac_config_commands"
16408
16409 _ACEOF
16410
16411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16412 ac_cs_usage="\
16413 \`$as_me' instantiates files and other configuration actions
16414 from templates according to the current configuration. Unless the files
16415 and actions are specified as TAGs, all are instantiated by default.
16416
16417 Usage: $0 [OPTION]... [TAG]...
16418
16419 -h, --help print this help, then exit
16420 -V, --version print version number and configuration settings, then exit
16421 --config print configuration, then exit
16422 -q, --quiet, --silent
16423 do not print progress messages
16424 -d, --debug don't remove temporary files
16425 --recheck update $as_me by reconfiguring in the same conditions
16426 --file=FILE[:TEMPLATE]
16427 instantiate the configuration file FILE
16428 --header=FILE[:TEMPLATE]
16429 instantiate the configuration header FILE
16430
16431 Configuration files:
16432 $config_files
16433
16434 Configuration headers:
16435 $config_headers
16436
16437 Configuration commands:
16438 $config_commands
16439
16440 Report bugs to <https://issues.webmproject.org>.
16441 libwebp home page: <https://developers.google.com/speed/webp>."
16442
16443 _ACEOF
16444 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16445 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16447 ac_cs_config='$ac_cs_config_escaped'
16448 ac_cs_version="\\
16449 libwebp config.status 1.5.0
16450 configured by $0, generated by GNU Autoconf 2.71,
16451 with options \\"\$ac_cs_config\\"
16452
16453 Copyright (C) 2021 Free Software Foundation, Inc.
16454 This config.status script is free software; the Free Software Foundation
16455 gives unlimited permission to copy, distribute and modify it."
16456
16457 ac_pwd='$ac_pwd'
16458 srcdir='$srcdir'
16459 INSTALL='$INSTALL'
16460 MKDIR_P='$MKDIR_P'
16461 AWK='$AWK'
16462 test -n "\$AWK" || AWK=awk
16463 _ACEOF
16464
16465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 # The default lists apply if the user does not specify any file.
16467 ac_need_defaults=:
16468 while test $# != 0
16469 do
16470 case $1 in
16471 --*=?*)
16472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16474 ac_shift=:
16475 ;;
16476 --*=)
16477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16478 ac_optarg=
16479 ac_shift=:
16480 ;;
16481 *)
16482 ac_option=$1
16483 ac_optarg=$2
16484 ac_shift=shift
16485 ;;
16486 esac
16487
16488 case $ac_option in
16489 # Handling of the options.
16490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16491 ac_cs_recheck=: ;;
16492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16493 printf "%s\n" "$ac_cs_version"; exit ;;
16494 --config | --confi | --conf | --con | --co | --c )
16495 printf "%s\n" "$ac_cs_config"; exit ;;
16496 --debug | --debu | --deb | --de | --d | -d )
16497 debug=: ;;
16498 --file | --fil | --fi | --f )
16499 $ac_shift
16500 case $ac_optarg in
16501 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16502 '') as_fn_error $? "missing file argument" ;;
16503 esac
16504 as_fn_append CONFIG_FILES " '$ac_optarg'"
16505 ac_need_defaults=false;;
16506 --header | --heade | --head | --hea )
16507 $ac_shift
16508 case $ac_optarg in
16509 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16510 esac
16511 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16512 ac_need_defaults=false;;
16513 --he | --h)
16514 # Conflict between --help and --header
16515 as_fn_error $? "ambiguous option: \`$1'
16516 Try \`$0 --help' for more information.";;
16517 --help | --hel | -h )
16518 printf "%s\n" "$ac_cs_usage"; exit ;;
16519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16521 ac_cs_silent=: ;;
16522
16523 # This is an error.
16524 -*) as_fn_error $? "unrecognized option: \`$1'
16525 Try \`$0 --help' for more information." ;;
16526
16527 *) as_fn_append ac_config_targets " $1"
16528 ac_need_defaults=false ;;
16529
16530 esac
16531 shift
16532 done
16533
16534 ac_configure_extra_args=
16535
16536 if $ac_cs_silent; then
16537 exec 6>/dev/null
16538 ac_configure_extra_args="$ac_configure_extra_args --silent"
16539 fi
16540
16541 _ACEOF
16542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16543 if \$ac_cs_recheck; then
16544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16545 shift
16546 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16547 CONFIG_SHELL='$SHELL'
16548 export CONFIG_SHELL
16549 exec "\$@"
16550 fi
16551
16552 _ACEOF
16553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16554 exec 5>>config.log
16555 {
16556 echo
16557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16558 ## Running $as_me. ##
16559 _ASBOX
16560 printf "%s\n" "$ac_log"
16561 } >&5
16562
16563 _ACEOF
16564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16565 #
16566 # INIT-COMMANDS
16567 #
16568 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16569
16570
16571 # The HP-UX ksh and POSIX shell print the target directory to stdout
16572 # if CDPATH is set.
16573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16574
16575 sed_quote_subst='$sed_quote_subst'
16576 double_quote_subst='$double_quote_subst'
16577 delay_variable_subst='$delay_variable_subst'
16578 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16579 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16580 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16581 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16582 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16583 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16584 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16585 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16586 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16587 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16588 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16589 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16590 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16591 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16592 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16593 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16594 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16595 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16596 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16597 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16598 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16599 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16600 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16601 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16602 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16603 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16604 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16605 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16606 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16607 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16608 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16609 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16610 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16611 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16612 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16613 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16614 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16615 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16616 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16617 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16618 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16619 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16620 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16621 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16622 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16623 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16624 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16625 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16626 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16627 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16628 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16629 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16630 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16631 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16632 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16633 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16634 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16635 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16636 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16637 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16638 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"`'
16639 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16640 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16641 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16642 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16643 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16644 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16645 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16646 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16647 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16648 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16649 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16650 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16651 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16652 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16653 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16654 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16655 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16656 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16657 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16658 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16659 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16660 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16661 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16662 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16663 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16664 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16665 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16666 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16667 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16668 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16669 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16670 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16671 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16672 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16673 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16674 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16675 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16676 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16677 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16678 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16679 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16680 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16681 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16682 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16683 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16684 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16685 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16686 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16687 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16688 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16689 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16690 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16691 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16692 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16693 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16694 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16695 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16696 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16697 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16698 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16699 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16700 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16701 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16702 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16703 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16704 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16705 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16706 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16707 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16708 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16709 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16710 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16711 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16712 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16713 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16714 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16715
16716 LTCC='$LTCC'
16717 LTCFLAGS='$LTCFLAGS'
16718 compiler='$compiler_DEFAULT'
16719
16720 # A function that is used when there is no print builtin or printf.
16721 func_fallback_echo ()
16722 {
16723 eval 'cat <<_LTECHO_EOF
16724 \$1
16725 _LTECHO_EOF'
16726 }
16727
16728 # Quote evaled strings.
16729 for var in SHELL \
16730 ECHO \
16731 PATH_SEPARATOR \
16732 SED \
16733 GREP \
16734 EGREP \
16735 FGREP \
16736 LD \
16737 NM \
16738 LN_S \
16739 lt_SP2NL \
16740 lt_NL2SP \
16741 reload_flag \
16742 FILECMD \
16743 OBJDUMP \
16744 deplibs_check_method \
16745 file_magic_cmd \
16746 file_magic_glob \
16747 want_nocaseglob \
16748 DLLTOOL \
16749 sharedlib_from_linklib_cmd \
16750 AR \
16751 archiver_list_spec \
16752 STRIP \
16753 RANLIB \
16754 CC \
16755 CFLAGS \
16756 compiler \
16757 lt_cv_sys_global_symbol_pipe \
16758 lt_cv_sys_global_symbol_to_cdecl \
16759 lt_cv_sys_global_symbol_to_import \
16760 lt_cv_sys_global_symbol_to_c_name_address \
16761 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16762 lt_cv_nm_interface \
16763 nm_file_list_spec \
16764 lt_cv_truncate_bin \
16765 lt_prog_compiler_no_builtin_flag \
16766 lt_prog_compiler_pic \
16767 lt_prog_compiler_wl \
16768 lt_prog_compiler_static \
16769 lt_cv_prog_compiler_c_o \
16770 need_locks \
16771 MANIFEST_TOOL \
16772 DSYMUTIL \
16773 NMEDIT \
16774 LIPO \
16775 OTOOL \
16776 OTOOL64 \
16777 shrext_cmds \
16778 export_dynamic_flag_spec \
16779 whole_archive_flag_spec \
16780 compiler_needs_object \
16781 with_gnu_ld \
16782 allow_undefined_flag \
16783 no_undefined_flag \
16784 hardcode_libdir_flag_spec \
16785 hardcode_libdir_separator \
16786 exclude_expsyms \
16787 include_expsyms \
16788 file_list_spec \
16789 variables_saved_for_relink \
16790 libname_spec \
16791 library_names_spec \
16792 soname_spec \
16793 install_override_mode \
16794 finish_eval \
16795 old_striplib \
16796 striplib; do
16797 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16798 *[\\\\\\\`\\"\\\$]*)
16799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16800 ;;
16801 *)
16802 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16803 ;;
16804 esac
16805 done
16806
16807 # Double-quote double-evaled strings.
16808 for var in reload_cmds \
16809 old_postinstall_cmds \
16810 old_postuninstall_cmds \
16811 old_archive_cmds \
16812 extract_expsyms_cmds \
16813 old_archive_from_new_cmds \
16814 old_archive_from_expsyms_cmds \
16815 archive_cmds \
16816 archive_expsym_cmds \
16817 module_cmds \
16818 module_expsym_cmds \
16819 export_symbols_cmds \
16820 prelink_cmds \
16821 postlink_cmds \
16822 postinstall_cmds \
16823 postuninstall_cmds \
16824 finish_cmds \
16825 sys_lib_search_path_spec \
16826 configure_time_dlsearch_path \
16827 configure_time_lt_sys_library_path; do
16828 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16829 *[\\\\\\\`\\"\\\$]*)
16830 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16831 ;;
16832 *)
16833 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16834 ;;
16835 esac
16836 done
16837
16838 ac_aux_dir='$ac_aux_dir'
16839
16840 # See if we are running on zsh, and set the options that allow our
16841 # commands through without removal of \ escapes INIT.
16842 if test -n "\${ZSH_VERSION+set}"; then
16843 setopt NO_GLOB_SUBST
16844 fi
16845
16846
16847 PACKAGE='$PACKAGE'
16848 VERSION='$VERSION'
16849 RM='$RM'
16850 ofile='$ofile'
16851
16852
16853
16854
16855 _ACEOF
16856
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858
16859 # Handling of arguments.
16860 for ac_config_target in $ac_config_targets
16861 do
16862 case $ac_config_target in
16863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16865 "src/webp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/webp/config.h" ;;
16866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16867 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16868 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16869 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16870 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
16871 "imageio/Makefile") CONFIG_FILES="$CONFIG_FILES imageio/Makefile" ;;
16872 "sharpyuv/Makefile") CONFIG_FILES="$CONFIG_FILES sharpyuv/Makefile" ;;
16873 "sharpyuv/libsharpyuv.pc") CONFIG_FILES="$CONFIG_FILES sharpyuv/libsharpyuv.pc" ;;
16874 "src/dec/Makefile") CONFIG_FILES="$CONFIG_FILES src/dec/Makefile" ;;
16875 "src/enc/Makefile") CONFIG_FILES="$CONFIG_FILES src/enc/Makefile" ;;
16876 "src/dsp/Makefile") CONFIG_FILES="$CONFIG_FILES src/dsp/Makefile" ;;
16877 "src/demux/Makefile") CONFIG_FILES="$CONFIG_FILES src/demux/Makefile" ;;
16878 "src/mux/Makefile") CONFIG_FILES="$CONFIG_FILES src/mux/Makefile" ;;
16879 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16880 "src/libwebp.pc") CONFIG_FILES="$CONFIG_FILES src/libwebp.pc" ;;
16881 "src/libwebpdecoder.pc") CONFIG_FILES="$CONFIG_FILES src/libwebpdecoder.pc" ;;
16882 "src/demux/libwebpdemux.pc") CONFIG_FILES="$CONFIG_FILES src/demux/libwebpdemux.pc" ;;
16883 "src/mux/libwebpmux.pc") CONFIG_FILES="$CONFIG_FILES src/mux/libwebpmux.pc" ;;
16884
16885 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16886 esac
16887 done
16888
16889
16890 # If the user did not use the arguments to specify the items to instantiate,
16891 # then the envvar interface is used. Set only those that are not.
16892 # We use the long form for the default assignment because of an extremely
16893 # bizarre bug on SunOS 4.1.3.
16894 if $ac_need_defaults; then
16895 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16896 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16897 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16898 fi
16899
16900 # Have a temporary directory for convenience. Make it in the build tree
16901 # simply because there is no reason against having it here, and in addition,
16902 # creating and moving files from /tmp can sometimes cause problems.
16903 # Hook for its removal unless debugging.
16904 # Note that there is a small window in which the directory will not be cleaned:
16905 # after its creation but before its name has been assigned to `$tmp'.
16906 $debug ||
16907 {
16908 tmp= ac_tmp=
16909 trap 'exit_status=$?
16910 : "${ac_tmp:=$tmp}"
16911 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16912 ' 0
16913 trap 'as_fn_exit 1' 1 2 13 15
16914 }
16915 # Create a (secure) tmp directory for tmp files.
16916
16917 {
16918 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16919 test -d "$tmp"
16920 } ||
16921 {
16922 tmp=./conf$$-$RANDOM
16923 (umask 077 && mkdir "$tmp")
16924 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16925 ac_tmp=$tmp
16926
16927 # Set up the scripts for CONFIG_FILES section.
16928 # No need to generate them if there are no CONFIG_FILES.
16929 # This happens for instance with `./config.status config.h'.
16930 if test -n "$CONFIG_FILES"; then
16931
16932
16933 ac_cr=`echo X | tr X '\015'`
16934 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16935 # But we know of no other shell where ac_cr would be empty at this
16936 # point, so we can use a bashism as a fallback.
16937 if test "x$ac_cr" = x; then
16938 eval ac_cr=\$\'\\r\'
16939 fi
16940 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16941 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16942 ac_cs_awk_cr='\\r'
16943 else
16944 ac_cs_awk_cr=$ac_cr
16945 fi
16946
16947 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16948 _ACEOF
16949
16950
16951 {
16952 echo "cat >conf$$subs.awk <<_ACEOF" &&
16953 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16954 echo "_ACEOF"
16955 } >conf$$subs.sh ||
16956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16957 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16958 ac_delim='%!_!# '
16959 for ac_last_try in false false false false false :; do
16960 . ./conf$$subs.sh ||
16961 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16962
16963 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16964 if test $ac_delim_n = $ac_delim_num; then
16965 break
16966 elif $ac_last_try; then
16967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16968 else
16969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16970 fi
16971 done
16972 rm -f conf$$subs.sh
16973
16974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16975 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16976 _ACEOF
16977 sed -n '
16978 h
16979 s/^/S["/; s/!.*/"]=/
16980 p
16981 g
16982 s/^[^!]*!//
16983 :repl
16984 t repl
16985 s/'"$ac_delim"'$//
16986 t delim
16987 :nl
16988 h
16989 s/\(.\{148\}\)..*/\1/
16990 t more1
16991 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16992 p
16993 n
16994 b repl
16995 :more1
16996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16997 p
16998 g
16999 s/.\{148\}//
17000 t nl
17001 :delim
17002 h
17003 s/\(.\{148\}\)..*/\1/
17004 t more2
17005 s/["\\]/\\&/g; s/^/"/; s/$/"/
17006 p
17007 b
17008 :more2
17009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17010 p
17011 g
17012 s/.\{148\}//
17013 t delim
17014 ' <conf$$subs.awk | sed '
17015 /^[^""]/{
17016 N
17017 s/\n//
17018 }
17019 ' >>$CONFIG_STATUS || ac_write_fail=1
17020 rm -f conf$$subs.awk
17021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17022 _ACAWK
17023 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17024 for (key in S) S_is_set[key] = 1
17025 FS = ""
17026
17027 }
17028 {
17029 line = $ 0
17030 nfields = split(line, field, "@")
17031 substed = 0
17032 len = length(field[1])
17033 for (i = 2; i < nfields; i++) {
17034 key = field[i]
17035 keylen = length(key)
17036 if (S_is_set[key]) {
17037 value = S[key]
17038 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17039 len += length(value) + length(field[++i])
17040 substed = 1
17041 } else
17042 len += 1 + keylen
17043 }
17044
17045 print line
17046 }
17047
17048 _ACAWK
17049 _ACEOF
17050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17051 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17053 else
17054 cat
17055 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17056 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17057 _ACEOF
17058
17059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17060 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17061 # trailing colons and then remove the whole line if VPATH becomes empty
17062 # (actually we leave an empty line to preserve line numbers).
17063 if test "x$srcdir" = x.; then
17064 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17065 h
17066 s///
17067 s/^/:/
17068 s/[ ]*$/:/
17069 s/:\$(srcdir):/:/g
17070 s/:\${srcdir}:/:/g
17071 s/:@srcdir@:/:/g
17072 s/^:*//
17073 s/:*$//
17074 x
17075 s/\(=[ ]*\).*/\1/
17076 G
17077 s/\n//
17078 s/^[^=]*=[ ]*$//
17079 }'
17080 fi
17081
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 fi # test -n "$CONFIG_FILES"
17084
17085 # Set up the scripts for CONFIG_HEADERS section.
17086 # No need to generate them if there are no CONFIG_HEADERS.
17087 # This happens for instance with `./config.status Makefile'.
17088 if test -n "$CONFIG_HEADERS"; then
17089 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17090 BEGIN {
17091 _ACEOF
17092
17093 # Transform confdefs.h into an awk script `defines.awk', embedded as
17094 # here-document in config.status, that substitutes the proper values into
17095 # config.h.in to produce config.h.
17096
17097 # Create a delimiter string that does not exist in confdefs.h, to ease
17098 # handling of long lines.
17099 ac_delim='%!_!# '
17100 for ac_last_try in false false :; do
17101 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17102 if test -z "$ac_tt"; then
17103 break
17104 elif $ac_last_try; then
17105 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17106 else
17107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17108 fi
17109 done
17110
17111 # For the awk script, D is an array of macro values keyed by name,
17112 # likewise P contains macro parameters if any. Preserve backslash
17113 # newline sequences.
17114
17115 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17116 sed -n '
17117 s/.\{148\}/&'"$ac_delim"'/g
17118 t rset
17119 :rset
17120 s/^[ ]*#[ ]*define[ ][ ]*/ /
17121 t def
17122 d
17123 :def
17124 s/\\$//
17125 t bsnl
17126 s/["\\]/\\&/g
17127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17128 D["\1"]=" \3"/p
17129 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17130 d
17131 :bsnl
17132 s/["\\]/\\&/g
17133 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17134 D["\1"]=" \3\\\\\\n"\\/p
17135 t cont
17136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17137 t cont
17138 d
17139 :cont
17140 n
17141 s/.\{148\}/&'"$ac_delim"'/g
17142 t clear
17143 :clear
17144 s/\\$//
17145 t bsnlc
17146 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17147 d
17148 :bsnlc
17149 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17150 b cont
17151 ' <confdefs.h | sed '
17152 s/'"$ac_delim"'/"\\\
17153 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17154
17155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17156 for (key in D) D_is_set[key] = 1
17157 FS = ""
17158 }
17159 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17160 line = \$ 0
17161 split(line, arg, " ")
17162 if (arg[1] == "#") {
17163 defundef = arg[2]
17164 mac1 = arg[3]
17165 } else {
17166 defundef = substr(arg[1], 2)
17167 mac1 = arg[2]
17168 }
17169 split(mac1, mac2, "(") #)
17170 macro = mac2[1]
17171 prefix = substr(line, 1, index(line, defundef) - 1)
17172 if (D_is_set[macro]) {
17173 # Preserve the white space surrounding the "#".
17174 print prefix "define", macro P[macro] D[macro]
17175 next
17176 } else {
17177 # Replace #undef with comments. This is necessary, for example,
17178 # in the case of _POSIX_SOURCE, which is predefined and required
17179 # on some systems where configure will not decide to define it.
17180 if (defundef == "undef") {
17181 print "/*", prefix defundef, macro, "*/"
17182 next
17183 }
17184 }
17185 }
17186 { print }
17187 _ACAWK
17188 _ACEOF
17189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17190 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17191 fi # test -n "$CONFIG_HEADERS"
17192
17193
17194 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17195 shift
17196 for ac_tag
17197 do
17198 case $ac_tag in
17199 :[FHLC]) ac_mode=$ac_tag; continue;;
17200 esac
17201 case $ac_mode$ac_tag in
17202 :[FHL]*:*);;
17203 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17204 :[FH]-) ac_tag=-:-;;
17205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17206 esac
17207 ac_save_IFS=$IFS
17208 IFS=:
17209 set x $ac_tag
17210 IFS=$ac_save_IFS
17211 shift
17212 ac_file=$1
17213 shift
17214
17215 case $ac_mode in
17216 :L) ac_source=$1;;
17217 :[FH])
17218 ac_file_inputs=
17219 for ac_f
17220 do
17221 case $ac_f in
17222 -) ac_f="$ac_tmp/stdin";;
17223 *) # Look for the file first in the build tree, then in the source tree
17224 # (if the path is not absolute). The absolute path cannot be DOS-style,
17225 # because $ac_f cannot contain `:'.
17226 test -f "$ac_f" ||
17227 case $ac_f in
17228 [\\/$]*) false;;
17229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17230 esac ||
17231 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17232 esac
17233 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17234 as_fn_append ac_file_inputs " '$ac_f'"
17235 done
17236
17237 # Let's still pretend it is `configure' which instantiates (i.e., don't
17238 # use $as_me), people would be surprised to read:
17239 # /* config.h. Generated by config.status. */
17240 configure_input='Generated from '`
17241 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17242 `' by configure.'
17243 if test x"$ac_file" != x-; then
17244 configure_input="$ac_file. $configure_input"
17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17246 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17247 fi
17248 # Neutralize special characters interpreted by sed in replacement strings.
17249 case $configure_input in #(
17250 *\&* | *\|* | *\\* )
17251 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17252 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17253 *) ac_sed_conf_input=$configure_input;;
17254 esac
17255
17256 case $ac_tag in
17257 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17259 esac
17260 ;;
17261 esac
17262
17263 ac_dir=`$as_dirname -- "$ac_file" ||
17264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17265 X"$ac_file" : 'X\(//\)[^/]' \| \
17266 X"$ac_file" : 'X\(//\)$' \| \
17267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17268 printf "%s\n" X"$ac_file" |
17269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17270 s//\1/
17271 q
17272 }
17273 /^X\(\/\/\)[^/].*/{
17274 s//\1/
17275 q
17276 }
17277 /^X\(\/\/\)$/{
17278 s//\1/
17279 q
17280 }
17281 /^X\(\/\).*/{
17282 s//\1/
17283 q
17284 }
17285 s/.*/./; q'`
17286 as_dir="$ac_dir"; as_fn_mkdir_p
17287 ac_builddir=.
17288
17289 case "$ac_dir" in
17290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17291 *)
17292 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17293 # A ".." for each directory in $ac_dir_suffix.
17294 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17295 case $ac_top_builddir_sub in
17296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17298 esac ;;
17299 esac
17300 ac_abs_top_builddir=$ac_pwd
17301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17302 # for backward compatibility:
17303 ac_top_builddir=$ac_top_build_prefix
17304
17305 case $srcdir in
17306 .) # We are building in place.
17307 ac_srcdir=.
17308 ac_top_srcdir=$ac_top_builddir_sub
17309 ac_abs_top_srcdir=$ac_pwd ;;
17310 [\\/]* | ?:[\\/]* ) # Absolute name.
17311 ac_srcdir=$srcdir$ac_dir_suffix;
17312 ac_top_srcdir=$srcdir
17313 ac_abs_top_srcdir=$srcdir ;;
17314 *) # Relative name.
17315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17316 ac_top_srcdir=$ac_top_build_prefix$srcdir
17317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17318 esac
17319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17320
17321
17322 case $ac_mode in
17323 :F)
17324 #
17325 # CONFIG_FILE
17326 #
17327
17328 case $INSTALL in
17329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17331 esac
17332 ac_MKDIR_P=$MKDIR_P
17333 case $MKDIR_P in
17334 [\\/$]* | ?:[\\/]* ) ;;
17335 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17336 esac
17337 _ACEOF
17338
17339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17340 # If the template does not know about datarootdir, expand it.
17341 # FIXME: This hack should be removed a few years after 2.60.
17342 ac_datarootdir_hack=; ac_datarootdir_seen=
17343 ac_sed_dataroot='
17344 /datarootdir/ {
17345 p
17346 q
17347 }
17348 /@datadir@/p
17349 /@docdir@/p
17350 /@infodir@/p
17351 /@localedir@/p
17352 /@mandir@/p'
17353 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17354 *datarootdir*) ac_datarootdir_seen=yes;;
17355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17357 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17358 _ACEOF
17359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17360 ac_datarootdir_hack='
17361 s&@datadir@&$datadir&g
17362 s&@docdir@&$docdir&g
17363 s&@infodir@&$infodir&g
17364 s&@localedir@&$localedir&g
17365 s&@mandir@&$mandir&g
17366 s&\\\${datarootdir}&$datarootdir&g' ;;
17367 esac
17368 _ACEOF
17369
17370 # Neutralize VPATH when `$srcdir' = `.'.
17371 # Shell code in configure.ac might set extrasub.
17372 # FIXME: do we really want to maintain this feature?
17373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17374 ac_sed_extra="$ac_vpsub
17375 $extrasub
17376 _ACEOF
17377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17378 :t
17379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17380 s|@configure_input@|$ac_sed_conf_input|;t t
17381 s&@top_builddir@&$ac_top_builddir_sub&;t t
17382 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17383 s&@srcdir@&$ac_srcdir&;t t
17384 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17385 s&@top_srcdir@&$ac_top_srcdir&;t t
17386 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17387 s&@builddir@&$ac_builddir&;t t
17388 s&@abs_builddir@&$ac_abs_builddir&;t t
17389 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17390 s&@INSTALL@&$ac_INSTALL&;t t
17391 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17392 $ac_datarootdir_hack
17393 "
17394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17395 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17396
17397 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17398 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17400 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17402 which seems to be undefined. Please make sure it is defined" >&5
17403 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17404 which seems to be undefined. Please make sure it is defined" >&2;}
17405
17406 rm -f "$ac_tmp/stdin"
17407 case $ac_file in
17408 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17409 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17410 esac \
17411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17412 ;;
17413 :H)
17414 #
17415 # CONFIG_HEADER
17416 #
17417 if test x"$ac_file" != x-; then
17418 {
17419 printf "%s\n" "/* $configure_input */" >&1 \
17420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17421 } >"$ac_tmp/config.h" \
17422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17423 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17425 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17426 else
17427 rm -f "$ac_file"
17428 mv "$ac_tmp/config.h" "$ac_file" \
17429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17430 fi
17431 else
17432 printf "%s\n" "/* $configure_input */" >&1 \
17433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17434 || as_fn_error $? "could not create -" "$LINENO" 5
17435 fi
17436 # Compute "$ac_file"'s index in $config_headers.
17437 _am_arg="$ac_file"
17438 _am_stamp_count=1
17439 for _am_header in $config_headers :; do
17440 case $_am_header in
17441 $_am_arg | $_am_arg:* )
17442 break ;;
17443 * )
17444 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17445 esac
17446 done
17447 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17448 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17449 X"$_am_arg" : 'X\(//\)[^/]' \| \
17450 X"$_am_arg" : 'X\(//\)$' \| \
17451 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17452 printf "%s\n" X"$_am_arg" |
17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17454 s//\1/
17455 q
17456 }
17457 /^X\(\/\/\)[^/].*/{
17458 s//\1/
17459 q
17460 }
17461 /^X\(\/\/\)$/{
17462 s//\1/
17463 q
17464 }
17465 /^X\(\/\).*/{
17466 s//\1/
17467 q
17468 }
17469 s/.*/./; q'`/stamp-h$_am_stamp_count
17470 ;;
17471
17472 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17473 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17474 ;;
17475 esac
17476
17477
17478 case $ac_file$ac_mode in
17479 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17480 # Older Autoconf quotes --file arguments for eval, but not when files
17481 # are listed without --file. Let's play safe and only enable the eval
17482 # if we detect the quoting.
17483 # TODO: see whether this extra hack can be removed once we start
17484 # requiring Autoconf 2.70 or later.
17485 case $CONFIG_FILES in #(
17486 *\'*) :
17487 eval set x "$CONFIG_FILES" ;; #(
17488 *) :
17489 set x $CONFIG_FILES ;; #(
17490 *) :
17491 ;;
17492 esac
17493 shift
17494 # Used to flag and report bootstrapping failures.
17495 am_rc=0
17496 for am_mf
17497 do
17498 # Strip MF so we end up with the name of the file.
17499 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17500 # Check whether this is an Automake generated Makefile which includes
17501 # dependency-tracking related rules and includes.
17502 # Grep'ing the whole file directly is not great: AIX grep has a line
17503 # limit of 2048, but all sed's we know have understand at least 4000.
17504 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17505 || continue
17506 am_dirpart=`$as_dirname -- "$am_mf" ||
17507 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17508 X"$am_mf" : 'X\(//\)[^/]' \| \
17509 X"$am_mf" : 'X\(//\)$' \| \
17510 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17511 printf "%s\n" X"$am_mf" |
17512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17513 s//\1/
17514 q
17515 }
17516 /^X\(\/\/\)[^/].*/{
17517 s//\1/
17518 q
17519 }
17520 /^X\(\/\/\)$/{
17521 s//\1/
17522 q
17523 }
17524 /^X\(\/\).*/{
17525 s//\1/
17526 q
17527 }
17528 s/.*/./; q'`
17529 am_filepart=`$as_basename -- "$am_mf" ||
17530 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17531 X"$am_mf" : 'X\(//\)$' \| \
17532 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17533 printf "%s\n" X/"$am_mf" |
17534 sed '/^.*\/\([^/][^/]*\)\/*$/{
17535 s//\1/
17536 q
17537 }
17538 /^X\/\(\/\/\)$/{
17539 s//\1/
17540 q
17541 }
17542 /^X\/\(\/\).*/{
17543 s//\1/
17544 q
17545 }
17546 s/.*/./; q'`
17547 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17548 && sed -e '/# am--include-marker/d' "$am_filepart" \
17549 | $MAKE -f - am--depfiles" >&5
17550 (cd "$am_dirpart" \
17551 && sed -e '/# am--include-marker/d' "$am_filepart" \
17552 | $MAKE -f - am--depfiles) >&5 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } || am_rc=$?
17556 done
17557 if test $am_rc -ne 0; then
17558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17560 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17561 for automatic dependency tracking. If GNU make was not used, consider
17562 re-running the configure script with MAKE=\"gmake\" (or whatever is
17563 necessary). You can also try re-running configure with the
17564 '--disable-dependency-tracking' option to at least be able to build
17565 the package (albeit without support for automatic dependency tracking).
17566 See \`config.log' for more details" "$LINENO" 5; }
17567 fi
17568 { am_dirpart=; unset am_dirpart;}
17569 { am_filepart=; unset am_filepart;}
17570 { am_mf=; unset am_mf;}
17571 { am_rc=; unset am_rc;}
17572 rm -f conftest-deps.mk
17573 }
17574 ;;
17575 "libtool":C)
17576
17577 # See if we are running on zsh, and set the options that allow our
17578 # commands through without removal of \ escapes.
17579 if test -n "${ZSH_VERSION+set}"; then
17580 setopt NO_GLOB_SUBST
17581 fi
17582
17583 cfgfile=${ofile}T
17584 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17585 $RM "$cfgfile"
17586
17587 cat <<_LT_EOF >> "$cfgfile"
17588 #! $SHELL
17589 # Generated automatically by $as_me ($PACKAGE) $VERSION
17590 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17591
17592 # Provide generalized library-building support services.
17593 # Written by Gordon Matzigkeit, 1996
17594
17595 # Copyright (C) 2014 Free Software Foundation, Inc.
17596 # This is free software; see the source for copying conditions. There is NO
17597 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17598
17599 # GNU Libtool is free software; you can redistribute it and/or modify
17600 # it under the terms of the GNU General Public License as published by
17601 # the Free Software Foundation; either version 2 of of the License, or
17602 # (at your option) any later version.
17603 #
17604 # As a special exception to the GNU General Public License, if you
17605 # distribute this file as part of a program or library that is built
17606 # using GNU Libtool, you may include this file under the same
17607 # distribution terms that you use for the rest of that program.
17608 #
17609 # GNU Libtool is distributed in the hope that it will be useful, but
17610 # WITHOUT ANY WARRANTY; without even the implied warranty of
17611 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17612 # GNU General Public License for more details.
17613 #
17614 # You should have received a copy of the GNU General Public License
17615 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17616
17617
17618 # The names of the tagged configurations supported by this script.
17619 available_tags=''
17620
17621 # Configured defaults for sys_lib_dlsearch_path munging.
17622 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17623
17624 # ### BEGIN LIBTOOL CONFIG
17625
17626 # Which release of libtool.m4 was used?
17627 macro_version=$macro_version
17628 macro_revision=$macro_revision
17629
17630 # Whether or not to build shared libraries.
17631 build_libtool_libs=$enable_shared
17632
17633 # Whether or not to build static libraries.
17634 build_old_libs=$enable_static
17635
17636 # What type of objects to build.
17637 pic_mode=$pic_mode
17638
17639 # Whether or not to optimize for fast installation.
17640 fast_install=$enable_fast_install
17641
17642 # Shared archive member basename,for filename based shared library versioning on AIX.
17643 shared_archive_member_spec=$shared_archive_member_spec
17644
17645 # Shell to use when invoking shell scripts.
17646 SHELL=$lt_SHELL
17647
17648 # An echo program that protects backslashes.
17649 ECHO=$lt_ECHO
17650
17651 # The PATH separator for the build system.
17652 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17653
17654 # The host system.
17655 host_alias=$host_alias
17656 host=$host
17657 host_os=$host_os
17658
17659 # The build system.
17660 build_alias=$build_alias
17661 build=$build
17662 build_os=$build_os
17663
17664 # A sed program that does not truncate output.
17665 SED=$lt_SED
17666
17667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17668 Xsed="\$SED -e 1s/^X//"
17669
17670 # A grep program that handles long lines.
17671 GREP=$lt_GREP
17672
17673 # An ERE matcher.
17674 EGREP=$lt_EGREP
17675
17676 # A literal string matcher.
17677 FGREP=$lt_FGREP
17678
17679 # A BSD- or MS-compatible name lister.
17680 NM=$lt_NM
17681
17682 # Whether we need soft or hard links.
17683 LN_S=$lt_LN_S
17684
17685 # What is the maximum length of a command?
17686 max_cmd_len=$max_cmd_len
17687
17688 # Object file suffix (normally "o").
17689 objext=$ac_objext
17690
17691 # Executable file suffix (normally "").
17692 exeext=$exeext
17693
17694 # whether the shell understands "unset".
17695 lt_unset=$lt_unset
17696
17697 # turn spaces into newlines.
17698 SP2NL=$lt_lt_SP2NL
17699
17700 # turn newlines into spaces.
17701 NL2SP=$lt_lt_NL2SP
17702
17703 # convert \$build file names to \$host format.
17704 to_host_file_cmd=$lt_cv_to_host_file_cmd
17705
17706 # convert \$build files to toolchain format.
17707 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17708
17709 # A file(cmd) program that detects file types.
17710 FILECMD=$lt_FILECMD
17711
17712 # An object symbol dumper.
17713 OBJDUMP=$lt_OBJDUMP
17714
17715 # Method to check whether dependent libraries are shared objects.
17716 deplibs_check_method=$lt_deplibs_check_method
17717
17718 # Command to use when deplibs_check_method = "file_magic".
17719 file_magic_cmd=$lt_file_magic_cmd
17720
17721 # How to find potential files when deplibs_check_method = "file_magic".
17722 file_magic_glob=$lt_file_magic_glob
17723
17724 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17725 want_nocaseglob=$lt_want_nocaseglob
17726
17727 # DLL creation program.
17728 DLLTOOL=$lt_DLLTOOL
17729
17730 # Command to associate shared and link libraries.
17731 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17732
17733 # The archiver.
17734 AR=$lt_AR
17735
17736 # Flags to create an archive (by configure).
17737 lt_ar_flags=$lt_ar_flags
17738
17739 # Flags to create an archive.
17740 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17741
17742 # How to feed a file listing to the archiver.
17743 archiver_list_spec=$lt_archiver_list_spec
17744
17745 # A symbol stripping program.
17746 STRIP=$lt_STRIP
17747
17748 # Commands used to install an old-style archive.
17749 RANLIB=$lt_RANLIB
17750 old_postinstall_cmds=$lt_old_postinstall_cmds
17751 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17752
17753 # Whether to use a lock for old archive extraction.
17754 lock_old_archive_extraction=$lock_old_archive_extraction
17755
17756 # A C compiler.
17757 LTCC=$lt_CC
17758
17759 # LTCC compiler flags.
17760 LTCFLAGS=$lt_CFLAGS
17761
17762 # Take the output of nm and produce a listing of raw symbols and C names.
17763 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17764
17765 # Transform the output of nm in a proper C declaration.
17766 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17767
17768 # Transform the output of nm into a list of symbols to manually relocate.
17769 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17770
17771 # Transform the output of nm in a C name address pair.
17772 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17773
17774 # Transform the output of nm in a C name address pair when lib prefix is needed.
17775 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17776
17777 # The name lister interface.
17778 nm_interface=$lt_lt_cv_nm_interface
17779
17780 # Specify filename containing input files for \$NM.
17781 nm_file_list_spec=$lt_nm_file_list_spec
17782
17783 # The root where to search for dependent libraries,and where our libraries should be installed.
17784 lt_sysroot=$lt_sysroot
17785
17786 # Command to truncate a binary pipe.
17787 lt_truncate_bin=$lt_lt_cv_truncate_bin
17788
17789 # The name of the directory that contains temporary libtool files.
17790 objdir=$objdir
17791
17792 # Used to examine libraries when file_magic_cmd begins with "file".
17793 MAGIC_CMD=$MAGIC_CMD
17794
17795 # Must we lock files when doing compilation?
17796 need_locks=$lt_need_locks
17797
17798 # Manifest tool.
17799 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17800
17801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17802 DSYMUTIL=$lt_DSYMUTIL
17803
17804 # Tool to change global to local symbols on Mac OS X.
17805 NMEDIT=$lt_NMEDIT
17806
17807 # Tool to manipulate fat objects and archives on Mac OS X.
17808 LIPO=$lt_LIPO
17809
17810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17811 OTOOL=$lt_OTOOL
17812
17813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17814 OTOOL64=$lt_OTOOL64
17815
17816 # Old archive suffix (normally "a").
17817 libext=$libext
17818
17819 # Shared library suffix (normally ".so").
17820 shrext_cmds=$lt_shrext_cmds
17821
17822 # The commands to extract the exported symbol list from a shared archive.
17823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17824
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at link time.
17827 variables_saved_for_relink=$lt_variables_saved_for_relink
17828
17829 # Do we need the "lib" prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17831
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17834
17835 # Library versioning type.
17836 version_type=$version_type
17837
17838 # Shared library runtime path variable.
17839 runpath_var=$runpath_var
17840
17841 # Shared library path variable.
17842 shlibpath_var=$shlibpath_var
17843
17844 # Is shlibpath searched before the hard-coded library search path?
17845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17846
17847 # Format of library name prefix.
17848 libname_spec=$lt_libname_spec
17849
17850 # List of archive names. First name is the real one, the rest are links.
17851 # The last name is the one that the linker finds with -lNAME
17852 library_names_spec=$lt_library_names_spec
17853
17854 # The coded name of the library, if different from the real name.
17855 soname_spec=$lt_soname_spec
17856
17857 # Permission mode override for installation of shared libraries.
17858 install_override_mode=$lt_install_override_mode
17859
17860 # Command to use after installation of a shared archive.
17861 postinstall_cmds=$lt_postinstall_cmds
17862
17863 # Command to use after uninstallation of a shared archive.
17864 postuninstall_cmds=$lt_postuninstall_cmds
17865
17866 # Commands used to finish a libtool library installation in a directory.
17867 finish_cmds=$lt_finish_cmds
17868
17869 # As "finish_cmds", except a single script fragment to be evaled but
17870 # not shown.
17871 finish_eval=$lt_finish_eval
17872
17873 # Whether we should hardcode library paths into libraries.
17874 hardcode_into_libs=$hardcode_into_libs
17875
17876 # Compile-time system search path for libraries.
17877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17878
17879 # Detected run-time system search path for libraries.
17880 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17881
17882 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17883 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17884
17885 # Whether dlopen is supported.
17886 dlopen_support=$enable_dlopen
17887
17888 # Whether dlopen of programs is supported.
17889 dlopen_self=$enable_dlopen_self
17890
17891 # Whether dlopen of statically linked programs is supported.
17892 dlopen_self_static=$enable_dlopen_self_static
17893
17894 # Commands to strip libraries.
17895 old_striplib=$lt_old_striplib
17896 striplib=$lt_striplib
17897
17898
17899 # The linker used to build libraries.
17900 LD=$lt_LD
17901
17902 # How to create reloadable object files.
17903 reload_flag=$lt_reload_flag
17904 reload_cmds=$lt_reload_cmds
17905
17906 # Commands used to build an old-style archive.
17907 old_archive_cmds=$lt_old_archive_cmds
17908
17909 # A language specific compiler.
17910 CC=$lt_compiler
17911
17912 # Is the compiler the GNU compiler?
17913 with_gcc=$GCC
17914
17915 # Compiler flag to turn off builtin functions.
17916 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17917
17918 # Additional compiler flags for building library objects.
17919 pic_flag=$lt_lt_prog_compiler_pic
17920
17921 # How to pass a linker flag through the compiler.
17922 wl=$lt_lt_prog_compiler_wl
17923
17924 # Compiler flag to prevent dynamic linking.
17925 link_static_flag=$lt_lt_prog_compiler_static
17926
17927 # Does compiler simultaneously support -c and -o options?
17928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17929
17930 # Whether or not to add -lc for building shared libraries.
17931 build_libtool_need_lc=$archive_cmds_need_lc
17932
17933 # Whether or not to disallow shared libs when runtime libs are static.
17934 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17935
17936 # Compiler flag to allow reflexive dlopens.
17937 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17938
17939 # Compiler flag to generate shared objects directly from archives.
17940 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17941
17942 # Whether the compiler copes with passing no objects directly.
17943 compiler_needs_object=$lt_compiler_needs_object
17944
17945 # Create an old-style archive from a shared archive.
17946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17947
17948 # Create a temporary old-style archive to link instead of a shared archive.
17949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17950
17951 # Commands used to build a shared archive.
17952 archive_cmds=$lt_archive_cmds
17953 archive_expsym_cmds=$lt_archive_expsym_cmds
17954
17955 # Commands used to build a loadable module if different from building
17956 # a shared archive.
17957 module_cmds=$lt_module_cmds
17958 module_expsym_cmds=$lt_module_expsym_cmds
17959
17960 # Whether we are building with GNU ld or not.
17961 with_gnu_ld=$lt_with_gnu_ld
17962
17963 # Flag that allows shared libraries with undefined symbols to be built.
17964 allow_undefined_flag=$lt_allow_undefined_flag
17965
17966 # Flag that enforces no undefined symbols.
17967 no_undefined_flag=$lt_no_undefined_flag
17968
17969 # Flag to hardcode \$libdir into a binary during linking.
17970 # This must work even if \$libdir does not exist
17971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17972
17973 # Whether we need a single "-rpath" flag with a separated argument.
17974 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17975
17976 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17977 # DIR into the resulting binary.
17978 hardcode_direct=$hardcode_direct
17979
17980 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17981 # DIR into the resulting binary and the resulting library dependency is
17982 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17983 # library is relocated.
17984 hardcode_direct_absolute=$hardcode_direct_absolute
17985
17986 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17987 # into the resulting binary.
17988 hardcode_minus_L=$hardcode_minus_L
17989
17990 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17991 # into the resulting binary.
17992 hardcode_shlibpath_var=$hardcode_shlibpath_var
17993
17994 # Set to "yes" if building a shared library automatically hardcodes DIR
17995 # into the library and all subsequent libraries and executables linked
17996 # against it.
17997 hardcode_automatic=$hardcode_automatic
17998
17999 # Set to yes if linker adds runtime paths of dependent libraries
18000 # to runtime path list.
18001 inherit_rpath=$inherit_rpath
18002
18003 # Whether libtool must link a program against all its dependency libraries.
18004 link_all_deplibs=$link_all_deplibs
18005
18006 # Set to "yes" if exported symbols are required.
18007 always_export_symbols=$always_export_symbols
18008
18009 # The commands to list exported symbols.
18010 export_symbols_cmds=$lt_export_symbols_cmds
18011
18012 # Symbols that should not be listed in the preloaded symbols.
18013 exclude_expsyms=$lt_exclude_expsyms
18014
18015 # Symbols that must always be exported.
18016 include_expsyms=$lt_include_expsyms
18017
18018 # Commands necessary for linking programs (against libraries) with templates.
18019 prelink_cmds=$lt_prelink_cmds
18020
18021 # Commands necessary for finishing linking programs.
18022 postlink_cmds=$lt_postlink_cmds
18023
18024 # Specify filename containing input files.
18025 file_list_spec=$lt_file_list_spec
18026
18027 # How to hardcode a shared library path into an executable.
18028 hardcode_action=$hardcode_action
18029
18030 # ### END LIBTOOL CONFIG
18031
18032 _LT_EOF
18033
18034 cat <<'_LT_EOF' >> "$cfgfile"
18035
18036 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18037
18038 # func_munge_path_list VARIABLE PATH
18039 # -----------------------------------
18040 # VARIABLE is name of variable containing _space_ separated list of
18041 # directories to be munged by the contents of PATH, which is string
18042 # having a format:
18043 # "DIR[:DIR]:"
18044 # string "DIR[ DIR]" will be prepended to VARIABLE
18045 # ":DIR[:DIR]"
18046 # string "DIR[ DIR]" will be appended to VARIABLE
18047 # "DIRP[:DIRP]::[DIRA:]DIRA"
18048 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18049 # "DIRA[ DIRA]" will be appended to VARIABLE
18050 # "DIR[:DIR]"
18051 # VARIABLE will be replaced by "DIR[ DIR]"
18052 func_munge_path_list ()
18053 {
18054 case x$2 in
18055 x)
18056 ;;
18057 *:)
18058 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18059 ;;
18060 x:*)
18061 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18062 ;;
18063 *::*)
18064 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18065 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18066 ;;
18067 *)
18068 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18069 ;;
18070 esac
18071 }
18072
18073
18074 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18075 func_cc_basename ()
18076 {
18077 for cc_temp in $*""; do
18078 case $cc_temp in
18079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18081 \-*) ;;
18082 *) break;;
18083 esac
18084 done
18085 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18086 }
18087
18088
18089 # ### END FUNCTIONS SHARED WITH CONFIGURE
18090
18091 _LT_EOF
18092
18093 case $host_os in
18094 aix3*)
18095 cat <<\_LT_EOF >> "$cfgfile"
18096 # AIX sometimes has problems with the GCC collect2 program. For some
18097 # reason, if we set the COLLECT_NAMES environment variable, the problems
18098 # vanish in a puff of smoke.
18099 if test set != "${COLLECT_NAMES+set}"; then
18100 COLLECT_NAMES=
18101 export COLLECT_NAMES
18102 fi
18103 _LT_EOF
18104 ;;
18105 esac
18106
18107
18108
18109 ltmain=$ac_aux_dir/ltmain.sh
18110
18111
18112 # We use sed instead of cat because bash on DJGPP gets confused if
18113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18114 # text mode, it properly converts lines to CR/LF. This bash problem
18115 # is reportedly fixed, but why not run on old versions too?
18116 $SED '$q' "$ltmain" >> "$cfgfile" \
18117 || (rm -f "$cfgfile"; exit 1)
18118
18119 mv -f "$cfgfile" "$ofile" ||
18120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18121 chmod +x "$ofile"
18122
18123 ;;
18124
18125 esac
18126 done # for ac_tag
18127
18128
18129 as_fn_exit 0
18130 _ACEOF
18131 ac_clean_files=$ac_clean_files_save
18132
18133 test $ac_write_fail = 0 ||
18134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18135
18136 $SED -i 's/-DDLL_EXPORT/-DWEBP_DLL/' config.status
18137
18138 # configure is writing to config.log, and then calls config.status.
18139 # config.status does its own redirection, appending to config.log.
18140 # Unfortunately, on DOS this fails, as config.log is still kept open
18141 # by configure, so config.status won't be able to write to it; its
18142 # output is simply discarded. So we exec the FD to /dev/null,
18143 # effectively closing config.log, so it can be properly (re)opened and
18144 # appended to by config.status. When coming back to configure, we
18145 # need to make the FD available again.
18146 if test "$no_create" != yes; then
18147 ac_cs_success=:
18148 ac_config_status_args=
18149 test "$silent" = yes &&
18150 ac_config_status_args="$ac_config_status_args --quiet"
18151 exec 5>/dev/null
18152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18153 exec 5>>config.log
18154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18155 # would make configure fail if this is the last instruction.
18156 $ac_cs_success || as_fn_exit 1
18157 fi
18158 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18160 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18161 fi
18162
18163
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18165 WebP Configuration Summary
18166 --------------------------
18167
18168 Shared libraries: ${enable_shared}
18169 Static libraries: ${enable_static}
18170 Threading support: ${enable_threading-no}
18171 libwebp: yes
18172 libwebpdecoder: ${enable_libwebpdecoder-no}
18173 libwebpdemux: ${enable_libwebpdemux-no}
18174 libwebpmux: ${enable_libwebpmux-no}
18175 libwebpextras: ${enable_libwebpextras-no}
18176
18177 Tools:
18178 cwebp : ${enable_libwebpdemux-no}
18179 Input format support
18180 ====================
18181 JPEG : ${jpeg_support-no}
18182 PNG : ${png_support-no}
18183 TIFF : ${tiff_support-no}
18184 WIC : ${wic_support-no}
18185 dwebp : ${enable_libwebpdemux-no}
18186 Output format support
18187 =====================
18188 PNG : ${png_support-no}
18189 WIC : ${wic_support-no}
18190 GIF support : ${gif_support-no}
18191 anim_diff : ${build_anim_diff-no}
18192 gif2webp : ${build_gif2webp-no}
18193 img2webp : ${build_img2webp-no}
18194 webpmux : ${enable_libwebpmux-no}
18195 vwebp : ${build_vwebp-no}
18196 webpinfo : ${build_webpinfo-no}
18197 SDL support : ${sdl_support-no}
18198 vwebp_sdl : ${build_vwebp_sdl-no}
18199 " >&5
18200 printf "%s\n" "$as_me:
18201 WebP Configuration Summary
18202 --------------------------
18203
18204 Shared libraries: ${enable_shared}
18205 Static libraries: ${enable_static}
18206 Threading support: ${enable_threading-no}
18207 libwebp: yes
18208 libwebpdecoder: ${enable_libwebpdecoder-no}
18209 libwebpdemux: ${enable_libwebpdemux-no}
18210 libwebpmux: ${enable_libwebpmux-no}
18211 libwebpextras: ${enable_libwebpextras-no}
18212
18213 Tools:
18214 cwebp : ${enable_libwebpdemux-no}
18215 Input format support
18216 ====================
18217 JPEG : ${jpeg_support-no}
18218 PNG : ${png_support-no}
18219 TIFF : ${tiff_support-no}
18220 WIC : ${wic_support-no}
18221 dwebp : ${enable_libwebpdemux-no}
18222 Output format support
18223 =====================
18224 PNG : ${png_support-no}
18225 WIC : ${wic_support-no}
18226 GIF support : ${gif_support-no}
18227 anim_diff : ${build_anim_diff-no}
18228 gif2webp : ${build_gif2webp-no}
18229 img2webp : ${build_img2webp-no}
18230 webpmux : ${enable_libwebpmux-no}
18231 vwebp : ${build_vwebp-no}
18232 webpinfo : ${build_webpinfo-no}
18233 SDL support : ${sdl_support-no}
18234 vwebp_sdl : ${build_vwebp_sdl-no}
18235 " >&6;}
18236