My cool commit message
[supertux.git] / src / SDL2 / external / libwebp-0.3.0 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libwebp 0.3.0.
4 #
5 # Report bugs to <http://code.google.com/p/webp/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://code.google.com/p/webp/issues about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libwebp'
592 PACKAGE_TARNAME='libwebp'
593 PACKAGE_VERSION='0.3.0'
594 PACKAGE_STRING='libwebp 0.3.0'
595 PACKAGE_BUGREPORT='http://code.google.com/p/webp/issues'
596 PACKAGE_URL='http://developers.google.com/speed/webp'
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 BUILD_LIBWEBPDECODER_FALSE
639 BUILD_LIBWEBPDECODER_TRUE
640 WANT_DEMUX_FALSE
641 WANT_DEMUX_TRUE
642 WANT_MUX_FALSE
643 WANT_MUX_TRUE
644 USE_EXPERIMENTAL_CODE
645 USE_SWAP_16BIT_CSP
646 BUILD_GIF2WEBP_FALSE
647 BUILD_GIF2WEBP_TRUE
648 GIF_INCLUDES
649 GIF_LIBS
650 TIFF_INCLUDES
651 TIFF_LIBS
652 JPEG_INCLUDES
653 JPEG_LIBS
654 PNG_INCLUDES
655 PNG_LIBS
656 LIBPNG_CONFIG
657 BUILD_VWEBP_FALSE
658 BUILD_VWEBP_TRUE
659 GL_INCLUDES
660 GL_LIBS
661 PTHREAD_CFLAGS
662 PTHREAD_LIBS
663 PTHREAD_CC
664 ax_pthread_config
665 AM_CFLAGS
666 pkgconfigdir
667 CPP
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 LIBTOOL
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 am__nodep
691 AMDEPBACKSLASH
692 AMDEP_FALSE
693 AMDEP_TRUE
694 am__quote
695 am__include
696 DEPDIR
697 OBJEXT
698 EXEEXT
699 ac_ct_CC
700 CPPFLAGS
701 LDFLAGS
702 CFLAGS
703 CC
704 ac_ct_AR
705 AR
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 enable_everything
796 with_pkgconfigdir
797 enable_threading
798 with_glincludedir
799 with_gllibdir
800 with_pngincludedir
801 with_pnglibdir
802 with_jpegincludedir
803 with_jpeglibdir
804 with_tiffincludedir
805 with_tifflibdir
806 with_gifincludedir
807 with_giflibdir
808 enable_swap_16bit_csp
809 enable_experimental
810 enable_libwebpmux
811 enable_libwebpdemux
812 enable_libwebpdecoder
813 '
814       ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877   # If the previous option needs an argument, assign it.
878   if test -n "$ac_prev"; then
879     eval $ac_prev=\$ac_option
880     ac_prev=
881     continue
882   fi
883
884   case $ac_option in
885   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886   *=)   ac_optarg= ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error $? "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error $? "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=\$ac_optarg ;;
1173
1174   -without-* | --without-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     case $ac_envvar in #(
1216       '' | [0-9]* | *[!_$as_cr_alnum]* )
1217       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218     esac
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   as_fn_error $? "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239   case $enable_option_checking in
1240     no) ;;
1241     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243   esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   # Remove trailing slashes.
1254   case $ac_val in
1255     */ )
1256       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257       eval $ac_var=\$ac_val;;
1258   esac
1259   # Be sure to have absolute directory names.
1260   case $ac_val in
1261     [\\/$]* | ?:[\\/]* )  continue;;
1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263   esac
1264   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276   if test "x$build_alias" = x; then
1277     cross_compiling=maybe
1278   elif test "x$build_alias" != "x$host_alias"; then
1279     cross_compiling=yes
1280   fi
1281 fi
1282
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286 test "$silent" = yes && exec 6>/dev/null
1287
1288
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292   as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294   as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299   ac_srcdir_defaulted=yes
1300   # Try the directory containing this script, then the parent directory.
1301   ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303          X"$as_myself" : 'X\(//\)[^/]' \| \
1304          X"$as_myself" : 'X\(//\)$' \| \
1305          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)[^/].*/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\/\)$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\).*/{
1320             s//\1/
1321             q
1322           }
1323           s/.*/./; q'`
1324   srcdir=$ac_confdir
1325   if test ! -r "$srcdir/$ac_unique_file"; then
1326     srcdir=..
1327   fi
1328 else
1329   ac_srcdir_defaulted=no
1330 fi
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338         pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341   srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351   eval ac_env_${ac_var}_value=\$${ac_var}
1352   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1355
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360   # Omit some internal or obsolete options to make the list less imposing.
1361   # This message is too long to be a string in the A/UX 3.1 sh.
1362   cat <<_ACEOF
1363 \`configure' configures libwebp 0.3.0 to adapt to many kinds of systems.
1364
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE.  See below for descriptions of some of the useful variables.
1369
1370 Defaults for the options are specified in brackets.
1371
1372 Configuration:
1373   -h, --help              display this help and exit
1374       --help=short        display options specific to this package
1375       --help=recursive    display the short help of all the included packages
1376   -V, --version           display version information and exit
1377   -q, --quiet, --silent   do not print \`checking ...' messages
1378       --cache-file=FILE   cache test results in FILE [disabled]
1379   -C, --config-cache      alias for \`--cache-file=config.cache'
1380   -n, --no-create         do not create output files
1381       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1382
1383 Installation directories:
1384   --prefix=PREFIX         install architecture-independent files in PREFIX
1385                           [$ac_default_prefix]
1386   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387                           [PREFIX]
1388
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1393
1394 For better control, use the options below.
1395
1396 Fine tuning of the installation directories:
1397   --bindir=DIR            user executables [EPREFIX/bin]
1398   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1399   --libexecdir=DIR        program executables [EPREFIX/libexec]
1400   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1401   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1402   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1403   --libdir=DIR            object code libraries [EPREFIX/lib]
1404   --includedir=DIR        C header files [PREFIX/include]
1405   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408   --infodir=DIR           info documentation [DATAROOTDIR/info]
1409   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410   --mandir=DIR            man documentation [DATAROOTDIR/man]
1411   --docdir=DIR            documentation root [DATAROOTDIR/doc/libwebp]
1412   --htmldir=DIR           html documentation [DOCDIR]
1413   --dvidir=DIR            dvi documentation [DOCDIR]
1414   --pdfdir=DIR            pdf documentation [DOCDIR]
1415   --psdir=DIR             ps documentation [DOCDIR]
1416 _ACEOF
1417
1418   cat <<\_ACEOF
1419
1420 Program names:
1421   --program-prefix=PREFIX            prepend PREFIX to installed program names
1422   --program-suffix=SUFFIX            append SUFFIX to installed program names
1423   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425 System types:
1426   --build=BUILD     configure for building on BUILD [guessed]
1427   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428   --target=TARGET   configure for building compilers for TARGET [HOST]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433   case $ac_init_help in
1434      short | recursive ) echo "Configuration of libwebp 0.3.0:";;
1435    esac
1436   cat <<\_ACEOF
1437
1438 Optional Features:
1439   --disable-option-checking  ignore unrecognized --enable/--with options
1440   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1441   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1442   --enable-silent-rules   less verbose build output (undo: "make V=1")
1443   --disable-silent-rules  verbose build output (undo: "make V=0")
1444   --enable-dependency-tracking
1445                           do not reject slow dependency extractors
1446   --disable-dependency-tracking
1447                           speeds up one-time build
1448   --enable-shared[=PKGS]  build shared libraries [default=yes]
1449   --enable-static[=PKGS]  build static libraries [default=yes]
1450   --enable-fast-install[=PKGS]
1451                           optimize for fast installation [default=yes]
1452   --disable-libtool-lock  avoid locking (might break parallel builds)
1453   --enable-everything     Enable all optional targets. These can still be
1454                           disabled with --disable-target
1455   --disable-threading     Disable detection of thread support
1456   --enable-swap-16bit-csp Enable byte swap for 16 bit colorspaces
1457   --enable-experimental   Activate experimental features
1458   --enable-libwebpmux     Build libwebpmux [default=no]
1459   --enable-libwebpdemux   Build libwebpdemux [default=no]
1460   --enable-libwebpdecoder Build libwebpdecoder [default=no]
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1466                           both]
1467   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1468   --with-sysroot=DIR Search for dependent libraries within DIR
1469                         (or the compiler's sysroot if not specified).
1470   --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1471   --with-glincludedir=DIR use GL includes from DIR
1472   --with-gllibdir=DIR     use GL libraries from DIR
1473   --with-pngincludedir=DIR
1474                           use PNG includes from DIR
1475   --with-pnglibdir=DIR    use PNG libraries from DIR
1476   --with-jpegincludedir=DIR
1477                           use JPEG includes from DIR
1478   --with-jpeglibdir=DIR   use JPEG libraries from DIR
1479   --with-tiffincludedir=DIR
1480                           use TIFF includes from DIR
1481   --with-tifflibdir=DIR   use TIFF libraries from DIR
1482   --with-gifincludedir=DIR
1483                           use GIF includes from DIR
1484   --with-giflibdir=DIR    use GIF libraries from DIR
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   LIBS        libraries to pass to the linker, e.g. -l<library>
1492   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CPP         C preprocessor
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to <http://code.google.com/p/webp/issues>.
1500 libwebp home page: <http://developers.google.com/speed/webp>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506   # If there are subdirs, report their specific --help.
1507   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508     test -d "$ac_dir" ||
1509       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510       continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 libwebp configure 0.3.0
1564 generated by GNU Autoconf 2.69
1565
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570   exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext
1584   if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_compile") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest.$ac_objext; then :
1603   ac_retval=0
1604 else
1605   $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608         ac_retval=1
1609 fi
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   rm -f conftest.$ac_objext conftest$ac_exeext
1622   if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_link") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } && {
1638          test -z "$ac_c_werror_flag" ||
1639          test ! -s conftest.err
1640        } && test -s conftest$ac_exeext && {
1641          test "$cross_compiling" = yes ||
1642          test -x conftest$ac_exeext
1643        }; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649         ac_retval=1
1650 fi
1651   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653   # interfere with the next link command; also delete a directory that is
1654   # left behind by Apple's compiler.  We do this before executing the actions.
1655   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_link
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671   $as_echo_n "(cached) " >&6
1672 else
1673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h.  */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679   eval "$3=yes"
1680 else
1681   eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } > conftest.i && {
1714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722     ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_link") 2>&5
1744   ac_status=$?
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747   { { case "(($ac_try" in
1748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749   *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753   (eval "$ac_try") 2>&5
1754   ac_status=$?
1755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756   test $ac_status = 0; }; }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: program exited with status $ac_status" >&5
1760        $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763        ac_retval=$ac_status
1764 fi
1765   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780   $as_echo_n "(cached) " >&6
1781 else
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789     which can conflict with char $2 (); below.
1790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791     <limits.h> exists even on freestanding compilers.  */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802    Use char because int might match the return type of a GCC
1803    builtin and then its argument prototype would still apply.  */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809     to always fail with ENOSYS.  Some functions are actually named
1810     something starting with __ and the normal name is an alias.  */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824   eval "$3=yes"
1825 else
1826   eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829     conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   if eval \${$3+:} false; then :
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856   # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865   ac_header_compiler=yes
1866 else
1867   ac_header_compiler=no
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1872
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881   ac_header_preproc=yes
1882 else
1883   ac_header_preproc=no
1884 fi
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1888
1889 # So?  What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891   yes:no: )
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896     ;;
1897   no:yes:* )
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ( $as_echo "## --------------------------------------------------- ##
1909 ## Report this to http://code.google.com/p/webp/issues ##
1910 ## --------------------------------------------------- ##"
1911      ) | sed "s/^/$as_me: WARNING:     /" >&2
1912     ;;
1913 esac
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   eval "$3=\$ac_header_compiler"
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 fi
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_mongrel
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1931
1932 It was created by libwebp $as_me 0.3.0, which was
1933 generated by GNU Autoconf 2.69.  Invocation command line was
1934
1935   $ $0 $@
1936
1937 _ACEOF
1938 exec 5>>config.log
1939 {
1940 cat <<_ASUNAME
1941 ## --------- ##
1942 ## Platform. ##
1943 ## --------- ##
1944
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1953
1954 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1955 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1958 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1959 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1960 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1961
1962 _ASUNAME
1963
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969     $as_echo "PATH: $as_dir"
1970   done
1971 IFS=$as_save_IFS
1972
1973 } >&5
1974
1975 cat >&5 <<_ACEOF
1976
1977
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1981
1982 _ACEOF
1983
1984
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1995 do
1996   for ac_arg
1997   do
1998     case $ac_arg in
1999     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001     | -silent | --silent | --silen | --sile | --sil)
2002       continue ;;
2003     *\'*)
2004       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005     esac
2006     case $ac_pass in
2007     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008     2)
2009       as_fn_append ac_configure_args1 " '$ac_arg'"
2010       if test $ac_must_keep_next = true; then
2011         ac_must_keep_next=false # Got value, back to normal.
2012       else
2013         case $ac_arg in
2014           *=* | --config-cache | -C | -disable-* | --disable-* \
2015           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017           | -with-* | --with-* | -without-* | --without-* | --x)
2018             case "$ac_configure_args0 " in
2019               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020             esac
2021             ;;
2022           -* ) ac_must_keep_next=true ;;
2023         esac
2024       fi
2025       as_fn_append ac_configure_args " '$ac_arg'"
2026       ;;
2027     esac
2028   done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2032
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log.  We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039   # Save into config.log some information that might help in debugging.
2040   {
2041     echo
2042
2043     $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2046     echo
2047     # The following way of writing the cache mishandles newlines in values,
2048 (
2049   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050     eval ac_val=\$$ac_var
2051     case $ac_val in #(
2052     *${as_nl}*)
2053       case $ac_var in #(
2054       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056       esac
2057       case $ac_var in #(
2058       _ | IFS | as_nl) ;; #(
2059       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060       *) { eval $ac_var=; unset $ac_var;} ;;
2061       esac ;;
2062     esac
2063   done
2064   (set) 2>&1 |
2065     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066     *${as_nl}ac_space=\ *)
2067       sed -n \
2068         "s/'\''/'\''\\\\'\'''\''/g;
2069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070       ;; #(
2071     *)
2072       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073       ;;
2074     esac |
2075     sort
2076 )
2077     echo
2078
2079     $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2082     echo
2083     for ac_var in $ac_subst_vars
2084     do
2085       eval ac_val=\$$ac_var
2086       case $ac_val in
2087       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088       esac
2089       $as_echo "$ac_var='\''$ac_val'\''"
2090     done | sort
2091     echo
2092
2093     if test -n "$ac_subst_files"; then
2094       $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2097       echo
2098       for ac_var in $ac_subst_files
2099       do
2100         eval ac_val=\$$ac_var
2101         case $ac_val in
2102         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103         esac
2104         $as_echo "$ac_var='\''$ac_val'\''"
2105       done | sort
2106       echo
2107     fi
2108
2109     if test -s confdefs.h; then
2110       $as_echo "## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##"
2113       echo
2114       cat confdefs.h
2115       echo
2116     fi
2117     test "$ac_signal" != 0 &&
2118       $as_echo "$as_me: caught signal $ac_signal"
2119     $as_echo "$as_me: exit $exit_status"
2120   } >&5
2121   rm -f core *.core core.conftest.* &&
2122     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123     exit $exit_status
2124 ' 0
2125 for ac_signal in 1 2 13 15; do
2126   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 done
2128 ac_signal=0
2129
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2132
2133 $as_echo "/* confdefs.h */" > confdefs.h
2134
2135 # Predefined preprocessor variables.
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2159 _ACEOF
2160
2161
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2164 ac_site_file1=NONE
2165 ac_site_file2=NONE
2166 if test -n "$CONFIG_SITE"; then
2167   # We do not want a PATH search for config.site.
2168   case $CONFIG_SITE in #((
2169     -*)  ac_site_file1=./$CONFIG_SITE;;
2170     */*) ac_site_file1=$CONFIG_SITE;;
2171     *)   ac_site_file1=./$CONFIG_SITE;;
2172   esac
2173 elif test "x$prefix" != xNONE; then
2174   ac_site_file1=$prefix/share/config.site
2175   ac_site_file2=$prefix/etc/config.site
2176 else
2177   ac_site_file1=$ac_default_prefix/share/config.site
2178   ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182   test "x$ac_site_file" = xNONE && continue
2183   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186     sed 's/^/| /' "$ac_site_file" >&5
2187     . "$ac_site_file" \
2188       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2192   fi
2193 done
2194
2195 if test -r "$cache_file"; then
2196   # Some versions of bash will fail to source /dev/null (special files
2197   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2198   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2201     case $cache_file in
2202       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203       *)                      . "./$cache_file";;
2204     esac
2205   fi
2206 else
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2209   >$cache_file
2210 fi
2211
2212 # Check that the precious variables saved in the cache have kept the same
2213 # value.
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217   eval ac_new_set=\$ac_env_${ac_var}_set
2218   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219   eval ac_new_val=\$ac_env_${ac_var}_value
2220   case $ac_old_set,$ac_new_set in
2221     set,)
2222       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224       ac_cache_corrupted=: ;;
2225     ,set)
2226       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228       ac_cache_corrupted=: ;;
2229     ,);;
2230     *)
2231       if test "x$ac_old_val" != "x$ac_new_val"; then
2232         # differences in whitespace do not lead to failure.
2233         ac_old_val_w=`echo x $ac_old_val`
2234         ac_new_val_w=`echo x $ac_new_val`
2235         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238           ac_cache_corrupted=:
2239         else
2240           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242           eval $ac_var=\$ac_old_val
2243         fi
2244         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2245 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2246         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2248       fi;;
2249   esac
2250   # Pass precious variables to config.status.
2251   if test "$ac_new_set" = set; then
2252     case $ac_new_val in
2253     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254     *) ac_arg=$ac_var=$ac_new_val ;;
2255     esac
2256     case " $ac_configure_args " in
2257       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2258       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259     esac
2260   fi
2261 done
2262 if $ac_cache_corrupted; then
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 fi
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278
2279
2280 ac_aux_dir=
2281 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2282   if test -f "$ac_dir/install-sh"; then
2283     ac_aux_dir=$ac_dir
2284     ac_install_sh="$ac_aux_dir/install-sh -c"
2285     break
2286   elif test -f "$ac_dir/install.sh"; then
2287     ac_aux_dir=$ac_dir
2288     ac_install_sh="$ac_aux_dir/install.sh -c"
2289     break
2290   elif test -f "$ac_dir/shtool"; then
2291     ac_aux_dir=$ac_dir
2292     ac_install_sh="$ac_aux_dir/shtool install -c"
2293     break
2294   fi
2295 done
2296 if test -z "$ac_aux_dir"; then
2297   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2298 fi
2299
2300 # These three variables are undocumented and unsupported,
2301 # and are intended to be withdrawn in a future Autoconf release.
2302 # They can cause serious problems if a builder's source tree is in a directory
2303 # whose full name contains unusual characters.
2304 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2305 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2306 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2307
2308
2309 # Make sure we can run config.sub.
2310 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2311   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2312
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2314 $as_echo_n "checking build system type... " >&6; }
2315 if ${ac_cv_build+:} false; then :
2316   $as_echo_n "(cached) " >&6
2317 else
2318   ac_build_alias=$build_alias
2319 test "x$ac_build_alias" = x &&
2320   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2321 test "x$ac_build_alias" = x &&
2322   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2323 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2324   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2325
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2328 $as_echo "$ac_cv_build" >&6; }
2329 case $ac_cv_build in
2330 *-*-*) ;;
2331 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2332 esac
2333 build=$ac_cv_build
2334 ac_save_IFS=$IFS; IFS='-'
2335 set x $ac_cv_build
2336 shift
2337 build_cpu=$1
2338 build_vendor=$2
2339 shift; shift
2340 # Remember, the first character of IFS is used to create $*,
2341 # except with old shells:
2342 build_os=$*
2343 IFS=$ac_save_IFS
2344 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2345
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2348 $as_echo_n "checking host system type... " >&6; }
2349 if ${ac_cv_host+:} false; then :
2350   $as_echo_n "(cached) " >&6
2351 else
2352   if test "x$host_alias" = x; then
2353   ac_cv_host=$ac_cv_build
2354 else
2355   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2356     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2357 fi
2358
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2361 $as_echo "$ac_cv_host" >&6; }
2362 case $ac_cv_host in
2363 *-*-*) ;;
2364 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2365 esac
2366 host=$ac_cv_host
2367 ac_save_IFS=$IFS; IFS='-'
2368 set x $ac_cv_host
2369 shift
2370 host_cpu=$1
2371 host_vendor=$2
2372 shift; shift
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2375 host_os=$*
2376 IFS=$ac_save_IFS
2377 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2378
2379
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2381 $as_echo_n "checking target system type... " >&6; }
2382 if ${ac_cv_target+:} false; then :
2383   $as_echo_n "(cached) " >&6
2384 else
2385   if test "x$target_alias" = x; then
2386   ac_cv_target=$ac_cv_host
2387 else
2388   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2389     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2390 fi
2391
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2394 $as_echo "$ac_cv_target" >&6; }
2395 case $ac_cv_target in
2396 *-*-*) ;;
2397 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2398 esac
2399 target=$ac_cv_target
2400 ac_save_IFS=$IFS; IFS='-'
2401 set x $ac_cv_target
2402 shift
2403 target_cpu=$1
2404 target_vendor=$2
2405 shift; shift
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2408 target_os=$*
2409 IFS=$ac_save_IFS
2410 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2411
2412
2413 # The aliases save the names the user supplied, while $host etc.
2414 # will get canonicalized.
2415 test -n "$target_alias" &&
2416   test "$program_prefix$program_suffix$program_transform_name" = \
2417     NONENONEs,x,x, &&
2418   program_prefix=${target_alias}-
2419 am__api_version='1.13'
2420
2421 # Find a good install program.  We prefer a C program (faster),
2422 # so one script is as good as another.  But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439   $as_echo_n "(cached) " >&6
2440 else
2441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446     # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448   ./ | .// | /[cC]/* | \
2449   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451   /usr/ucb/* ) ;;
2452   *)
2453     # OSF1 and SCO ODT 3.0 have their own names for install.
2454     # Don't use installbsd from OSF since it installs stuff as root
2455     # by default.
2456     for ac_prog in ginstall scoinst install; do
2457       for ac_exec_ext in '' $ac_executable_extensions; do
2458         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2459           if test $ac_prog = install &&
2460             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461             # AIX install.  It has an incompatible calling convention.
2462             :
2463           elif test $ac_prog = install &&
2464             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # program-specific install script used by HP pwplus--don't use.
2466             :
2467           else
2468             rm -rf conftest.one conftest.two conftest.dir
2469             echo one > conftest.one
2470             echo two > conftest.two
2471             mkdir conftest.dir
2472             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473               test -s conftest.one && test -s conftest.two &&
2474               test -s conftest.dir/conftest.one &&
2475               test -s conftest.dir/conftest.two
2476             then
2477               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478               break 3
2479             fi
2480           fi
2481         fi
2482       done
2483     done
2484     ;;
2485 esac
2486
2487   done
2488 IFS=$as_save_IFS
2489
2490 rm -rf conftest.one conftest.two conftest.dir
2491
2492 fi
2493   if test "${ac_cv_path_install+set}" = set; then
2494     INSTALL=$ac_cv_path_install
2495   else
2496     # As a last resort, use the slow shell script.  Don't cache a
2497     # value for INSTALL within a source directory, because that will
2498     # break other packages using the cache if that directory is
2499     # removed, or if the value is a relative name.
2500     INSTALL=$ac_install_sh
2501   fi
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2505
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2516 # Reject unsafe characters in $srcdir or the absolute working directory
2517 # name.  Accept space and tab only in the latter.
2518 am_lf='
2519 '
2520 case `pwd` in
2521   *[\\\"\#\$\&\'\`$am_lf]*)
2522     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2523 esac
2524 case $srcdir in
2525   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2526     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2527 esac
2528
2529 # Do 'set' in a subshell so we don't clobber the current shell's
2530 # arguments.  Must try -L first in case configure is actually a
2531 # symlink; some systems play weird games with the mod time of symlinks
2532 # (eg FreeBSD returns the mod time of the symlink's containing
2533 # directory).
2534 if (
2535    am_has_slept=no
2536    for am_try in 1 2; do
2537      echo "timestamp, slept: $am_has_slept" > conftest.file
2538      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539      if test "$*" = "X"; then
2540         # -L didn't work.
2541         set X `ls -t "$srcdir/configure" conftest.file`
2542      fi
2543      if test "$*" != "X $srcdir/configure conftest.file" \
2544         && test "$*" != "X conftest.file $srcdir/configure"; then
2545
2546         # If neither matched, then we have a broken ls.  This can happen
2547         # if, for instance, CONFIG_SHELL is bash and it inherits a
2548         # broken ls alias from the environment.  This has actually
2549         # happened.  Such a system could not be considered "sane".
2550         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2551   alias in your environment" "$LINENO" 5
2552      fi
2553      if test "$2" = conftest.file || test $am_try -eq 2; then
2554        break
2555      fi
2556      # Just in case.
2557      sleep 1
2558      am_has_slept=yes
2559    done
2560    test "$2" = conftest.file
2561    )
2562 then
2563    # Ok.
2564    :
2565 else
2566    as_fn_error $? "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 # If we didn't sleep, we still need to ensure time stamps of config.status and
2572 # generated files are strictly newer.
2573 am_sleep_pid=
2574 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2575   ( sleep 1 ) &
2576   am_sleep_pid=$!
2577 fi
2578
2579 rm -f conftest.file
2580
2581 test "$program_prefix" != NONE &&
2582   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2583 # Use a double $ so make ignores it.
2584 test "$program_suffix" != NONE &&
2585   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2586 # Double any \ or $.
2587 # By default was `s,x,x', remove it if useless.
2588 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2589 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2590
2591 # expand $ac_aux_dir to an absolute path
2592 am_aux_dir=`cd $ac_aux_dir && pwd`
2593
2594 if test x"${MISSING+set}" != xset; then
2595   case $am_aux_dir in
2596   *\ * | *\     *)
2597     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2598   *)
2599     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2600   esac
2601 fi
2602 # Use eval to expand $SHELL
2603 if eval "$MISSING --is-lightweight"; then
2604   am_missing_run="$MISSING "
2605 else
2606   am_missing_run=
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2608 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2609 fi
2610
2611 if test x"${install_sh}" != xset; then
2612   case $am_aux_dir in
2613   *\ * | *\     *)
2614     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2615   *)
2616     install_sh="\${SHELL} $am_aux_dir/install-sh"
2617   esac
2618 fi
2619
2620 # Installed binaries are usually stripped using 'strip' when the user
2621 # run "make install-strip".  However 'strip' might not be the right
2622 # tool to use in cross-compilation environments, therefore Automake
2623 # will honor the 'STRIP' environment variable to overrule this program.
2624 if test "$cross_compiling" != no; then
2625   if test -n "$ac_tool_prefix"; then
2626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_STRIP+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test -n "$STRIP"; then
2634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_exec_ext in '' $ac_executable_extensions; do
2642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648   done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 STRIP=$ac_cv_prog_STRIP
2654 if test -n "$STRIP"; then
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2656 $as_echo "$STRIP" >&6; }
2657 else
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662
2663 fi
2664 if test -z "$ac_cv_prog_STRIP"; then
2665   ac_ct_STRIP=$STRIP
2666   # Extract the first word of "strip", so it can be a program name with args.
2667 set dummy strip; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   if test -n "$ac_ct_STRIP"; then
2674   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681     for ac_exec_ext in '' $ac_executable_extensions; do
2682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683     ac_cv_prog_ac_ct_STRIP="strip"
2684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688   done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2694 if test -n "$ac_ct_STRIP"; then
2695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2696 $as_echo "$ac_ct_STRIP" >&6; }
2697 else
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2700 fi
2701
2702   if test "x$ac_ct_STRIP" = x; then
2703     STRIP=":"
2704   else
2705     case $cross_compiling:$ac_tool_warned in
2706 yes:)
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2709 ac_tool_warned=yes ;;
2710 esac
2711     STRIP=$ac_ct_STRIP
2712   fi
2713 else
2714   STRIP="$ac_cv_prog_STRIP"
2715 fi
2716
2717 fi
2718 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723   if ${ac_cv_path_mkdir+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_prog in mkdir gmkdir; do
2732          for ac_exec_ext in '' $ac_executable_extensions; do
2733            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2734            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735              'mkdir (GNU coreutils) '* | \
2736              'mkdir (coreutils) '* | \
2737              'mkdir (fileutils) '4.1*)
2738                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2739                break 3;;
2740            esac
2741          done
2742        done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747
2748   test -d ./--version && rmdir ./--version
2749   if test "${ac_cv_path_mkdir+set}" = set; then
2750     MKDIR_P="$ac_cv_path_mkdir -p"
2751   else
2752     # As a last resort, use the slow shell script.  Don't cache a
2753     # value for MKDIR_P within a source directory, because that will
2754     # break other packages using the cache if that directory is
2755     # removed, or if the value is a relative name.
2756     MKDIR_P="$ac_install_sh -d"
2757   fi
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2761
2762 for ac_prog in gawk mawk nawk awk
2763 do
2764   # Extract the first word of "$ac_prog", so it can be a program name with args.
2765 set dummy $ac_prog; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_AWK+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$AWK"; then
2772   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781     ac_cv_prog_AWK="$ac_prog"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 AWK=$ac_cv_prog_AWK
2792 if test -n "$AWK"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2794 $as_echo "$AWK" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801   test -n "$AWK" && break
2802 done
2803
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2805 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2806 set x ${MAKE-make}
2807 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2808 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   cat >conftest.make <<\_ACEOF
2812 SHELL = /bin/sh
2813 all:
2814         @echo '@@@%%%=$(MAKE)=@@@%%%'
2815 _ACEOF
2816 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2818   *@@@%%%=?*=@@@%%%*)
2819     eval ac_cv_prog_make_${ac_make}_set=yes;;
2820   *)
2821     eval ac_cv_prog_make_${ac_make}_set=no;;
2822 esac
2823 rm -f conftest.make
2824 fi
2825 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2827 $as_echo "yes" >&6; }
2828   SET_MAKE=
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832   SET_MAKE="MAKE=${MAKE-make}"
2833 fi
2834
2835 rm -rf .tst 2>/dev/null
2836 mkdir .tst 2>/dev/null
2837 if test -d .tst; then
2838   am__leading_dot=.
2839 else
2840   am__leading_dot=_
2841 fi
2842 rmdir .tst 2>/dev/null
2843
2844 # Check whether --enable-silent-rules was given.
2845 if test "${enable_silent_rules+set}" = set; then :
2846   enableval=$enable_silent_rules;
2847 fi
2848
2849 case $enable_silent_rules in # (((
2850   yes) AM_DEFAULT_VERBOSITY=0;;
2851    no) AM_DEFAULT_VERBOSITY=1;;
2852     *) AM_DEFAULT_VERBOSITY=1;;
2853 esac
2854 am_make=${MAKE-make}
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2856 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2857 if ${am_cv_make_support_nested_variables+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if $as_echo 'TRUE=$(BAR$(V))
2861 BAR0=false
2862 BAR1=true
2863 V=1
2864 am__doit:
2865         @$(TRUE)
2866 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2867   am_cv_make_support_nested_variables=yes
2868 else
2869   am_cv_make_support_nested_variables=no
2870 fi
2871 fi
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2873 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2874 if test $am_cv_make_support_nested_variables = yes; then
2875     AM_V='$(V)'
2876   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2877 else
2878   AM_V=$AM_DEFAULT_VERBOSITY
2879   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2880 fi
2881 AM_BACKSLASH='\'
2882
2883 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2884   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2885   # is not polluted with repeated "-I."
2886   am__isrc=' -I$(srcdir)'
2887   # test to see if srcdir already configured
2888   if test -f $srcdir/config.status; then
2889     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2890   fi
2891 fi
2892
2893 # test whether we have cygpath
2894 if test -z "$CYGPATH_W"; then
2895   if (cygpath --version) >/dev/null 2>/dev/null; then
2896     CYGPATH_W='cygpath -w'
2897   else
2898     CYGPATH_W=echo
2899   fi
2900 fi
2901
2902
2903 # Define the identity of the package.
2904  PACKAGE='libwebp'
2905  VERSION='0.3.0'
2906
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE "$PACKAGE"
2910 _ACEOF
2911
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define VERSION "$VERSION"
2915 _ACEOF
2916
2917 # Some tools Automake needs.
2918
2919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2920
2921
2922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2923
2924
2925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2926
2927
2928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2929
2930
2931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932
2933 # For better backward compatibility.  To be removed once Automake 1.9.x
2934 # dies out for good.  For more background, see:
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2936 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2937 mkdir_p='$(MKDIR_P)'
2938
2939 # We need awk for the "check" target.  The system "awk" is bad on
2940 # some platforms.
2941 # Always define AMTAR for backward compatibility.  Yes, it's still used
2942 # in the wild :-(  We should find a proper way to deprecate it ...
2943 AMTAR='$${TAR-tar}'
2944
2945 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2946
2947
2948
2949
2950
2951
2952 DEPDIR="${am__leading_dot}deps"
2953
2954 ac_config_commands="$ac_config_commands depfiles"
2955
2956
2957 am_make=${MAKE-make}
2958 cat > confinc << 'END'
2959 am__doit:
2960         @echo this is the am__doit target
2961 .PHONY: am__doit
2962 END
2963 # If we don't find an include directive, just comment out the code.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2965 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2966 am__include="#"
2967 am__quote=
2968 _am_result=none
2969 # First try GNU make style include.
2970 echo "include confinc" > confmf
2971 # Ignore all kinds of additional output from 'make'.
2972 case `$am_make -s -f confmf 2> /dev/null` in #(
2973 *the\ am__doit\ target*)
2974   am__include=include
2975   am__quote=
2976   _am_result=GNU
2977   ;;
2978 esac
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981    echo '.include "confinc"' > confmf
2982    case `$am_make -s -f confmf 2> /dev/null` in #(
2983    *the\ am__doit\ target*)
2984      am__include=.include
2985      am__quote="\""
2986      _am_result=BSD
2987      ;;
2988    esac
2989 fi
2990
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2993 $as_echo "$_am_result" >&6; }
2994 rm -f confinc confmf
2995
2996 # Check whether --enable-dependency-tracking was given.
2997 if test "${enable_dependency_tracking+set}" = set; then :
2998   enableval=$enable_dependency_tracking;
2999 fi
3000
3001 if test "x$enable_dependency_tracking" != xno; then
3002   am_depcomp="$ac_aux_dir/depcomp"
3003   AMDEPBACKSLASH='\'
3004   am__nodep='_no'
3005 fi
3006  if test "x$enable_dependency_tracking" != xno; then
3007   AMDEP_TRUE=
3008   AMDEP_FALSE='#'
3009 else
3010   AMDEP_TRUE='#'
3011   AMDEP_FALSE=
3012 fi
3013
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$CC"; then
3029   ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_exec_ext in '' $ac_executable_extensions; do
3037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043   done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 if test -z "$ac_cv_prog_CC"; then
3060   ac_ct_CC=$CC
3061   # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$ac_ct_CC"; then
3069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_ac_ct_CC="gcc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097   if test "x$ac_ct_CC" = x; then
3098     CC=""
3099   else
3100     case $cross_compiling:$ac_tool_warned in
3101 yes:)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3105 esac
3106     CC=$ac_ct_CC
3107   fi
3108 else
3109   CC="$ac_cv_prog_CC"
3110 fi
3111
3112 if test -z "$CC"; then
3113           if test -n "$ac_tool_prefix"; then
3114     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_CC="${ac_tool_prefix}cc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151   fi
3152 fi
3153 if test -z "$CC"; then
3154   # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$CC"; then
3162   ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164   ac_prog_rejected=no
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173        ac_prog_rejected=yes
3174        continue
3175      fi
3176     ac_cv_prog_CC="cc"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 if test $ac_prog_rejected = yes; then
3185   # We found a bogon in the path, so make sure we never use it.
3186   set dummy $ac_cv_prog_CC
3187   shift
3188   if test $# != 0; then
3189     # We chose a different compiler from the bogus one.
3190     # However, it has the same basename, so the bogon will be chosen
3191     # first if we set CC to just the basename; use the full file name.
3192     shift
3193     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194   fi
3195 fi
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 fi
3209 if test -z "$CC"; then
3210   if test -n "$ac_tool_prefix"; then
3211   for ac_prog in cl.exe
3212   do
3213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   if test -n "$CC"; then
3221   ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250     test -n "$CC" && break
3251   done
3252 fi
3253 if test -z "$CC"; then
3254   ac_ct_CC=$CC
3255   for ac_prog in cl.exe
3256 do
3257   # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262   $as_echo_n "(cached) " >&6
3263 else
3264   if test -n "$ac_ct_CC"; then
3265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272     for ac_exec_ext in '' $ac_executable_extensions; do
3273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274     ac_cv_prog_ac_ct_CC="$ac_prog"
3275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279   done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3288 else
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294   test -n "$ac_ct_CC" && break
3295 done
3296
3297   if test "x$ac_ct_CC" = x; then
3298     CC=""
3299   else
3300     case $cross_compiling:$ac_tool_warned in
3301 yes:)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3305 esac
3306     CC=$ac_ct_CC
3307   fi
3308 fi
3309
3310 fi
3311
3312
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found in \$PATH
3316 See \`config.log' for more details" "$LINENO" 5; }
3317
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3320 set X $ac_compile
3321 ac_compiler=$2
3322 for ac_option in --version -v -V -qversion; do
3323   { { ac_try="$ac_compiler $ac_option >&5"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331   ac_status=$?
3332   if test -s conftest.err; then
3333     sed '10a\
3334 ... rest of stderr output deleted ...
3335          10q' conftest.err >conftest.er1
3336     cat conftest.er1 >&5
3337   fi
3338   rm -f conftest.er1 conftest.err
3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340   test $ac_status = 0; }
3341 done
3342
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349
3350   ;
3351   return 0;
3352 }
3353 _ACEOF
3354 ac_clean_files_save=$ac_clean_files
3355 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3358 # of exeext.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362
3363 # The possible output files:
3364 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3365
3366 ac_rmfiles=
3367 for ac_file in $ac_files
3368 do
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3372   esac
3373 done
3374 rm -f $ac_rmfiles
3375
3376 if { { ac_try="$ac_link_default"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_link_default") 2>&5
3384   ac_status=$?
3385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386   test $ac_status = 0; }; then :
3387   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3391 # Autoconf.
3392 for ac_file in $ac_files ''
3393 do
3394   test -f "$ac_file" || continue
3395   case $ac_file in
3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3397         ;;
3398     [ab].out )
3399         # We found the default executable, but exeext='' is most
3400         # certainly right.
3401         break;;
3402     *.* )
3403         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404         then :; else
3405            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406         fi
3407         # We set ac_cv_exeext here because the later test for it is not
3408         # safe: cross compilers may not add the suffix if given an `-o'
3409         # argument, so we may need to know it at that point already.
3410         # Even if this section looks crufty: it has the advantage of
3411         # actually working.
3412         break;;
3413     * )
3414         break;;
3415   esac
3416 done
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3418
3419 else
3420   ac_file=''
3421 fi
3422 if test -z "$ac_file"; then :
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 else
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3441
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_link") 2>&5
3454   ac_status=$?
3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456   test $ac_status = 0; }; then :
3457   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe'), while it won't with
3460 # `rm'.
3461 for ac_file in conftest.exe conftest conftest.*; do
3462   test -f "$ac_file" || continue
3463   case $ac_file in
3464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466           break;;
3467     * ) break;;
3468   esac
3469 done
3470 else
3471   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest conftest$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3479
3480 rm -f conftest.$ac_ext
3481 EXEEXT=$ac_cv_exeext
3482 ac_exeext=$EXEEXT
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485 #include <stdio.h>
3486 int
3487 main ()
3488 {
3489 FILE *f = fopen ("conftest.out", "w");
3490  return ferror (f) || fclose (f) != 0;
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run.  If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502   { { ac_try="$ac_link"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_link") 2>&5
3510   ac_status=$?
3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512   test $ac_status = 0; }
3513   if { ac_try='./conftest$ac_cv_exeext'
3514   { { case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520   (eval "$ac_try") 2>&5
3521   ac_status=$?
3522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523   test $ac_status = 0; }; }; then
3524     cross_compiling=no
3525   else
3526     if test "$cross_compiling" = maybe; then
3527         cross_compiling=yes
3528     else
3529         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3534     fi
3535   fi
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3539
3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try="$ac_compile"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566   (eval "$ac_compile") 2>&5
3567   ac_status=$?
3568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569   test $ac_status = 0; }; then :
3570   for ac_file in conftest.o conftest.obj conftest.*; do
3571   test -f "$ac_file" || continue;
3572   case $ac_file in
3573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575        break;;
3576   esac
3577 done
3578 else
3579   $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3592 ac_objext=$OBJEXT
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600
3601 int
3602 main ()
3603 {
3604 #ifndef __GNUC__
3605        choke me
3606 #endif
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613   ac_compiler_gnu=yes
3614 else
3615   ac_compiler_gnu=no
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3624   GCC=yes
3625 else
3626   GCC=
3627 fi
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   ac_save_c_werror_flag=$ac_c_werror_flag
3636    ac_c_werror_flag=yes
3637    ac_cv_prog_cc_g=no
3638    CFLAGS="-g"
3639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641
3642 int
3643 main ()
3644 {
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651   ac_cv_prog_cc_g=yes
3652 else
3653   CFLAGS=""
3654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666
3667 else
3668   ac_c_werror_flag=$ac_save_c_werror_flag
3669          CFLAGS="-g"
3670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682   ac_cv_prog_cc_g=yes
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689    ac_c_werror_flag=$ac_save_c_werror_flag
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694   CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696   if test "$GCC" = yes; then
3697     CFLAGS="-g -O2"
3698   else
3699     CFLAGS="-g"
3700   fi
3701 else
3702   if test "$GCC" = yes; then
3703     CFLAGS="-O2"
3704   else
3705     CFLAGS=
3706   fi
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   ac_cv_prog_cc_c89=no
3714 ac_save_CC=$CC
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 struct stat;
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3724      char **p;
3725      int i;
3726 {
3727   return p[i];
3728 }
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3730 {
3731   char *s;
3732   va_list v;
3733   va_start (v,p);
3734   s = g (p, va_arg (v,int));
3735   va_end (v);
3736   return s;
3737 }
3738
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3740    function prototypes and stuff, but not '\xHH' hex character constants.
3741    These don't provoke an error unfortunately, instead are silently treated
3742    as 'x'.  The following induces an error, until -std is added to get
3743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3744    array size at least.  It's necessary to write '\x00'==0 to get something
3745    that's true only with -std.  */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749    inside strings and character constants.  */
3750 #define FOO(x) 'x'
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 int argc;
3758 char **argv;
3759 int
3760 main ()
3761 {
3762 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 do
3770   CC="$ac_save_CC $ac_arg"
3771   if ac_fn_c_try_compile "$LINENO"; then :
3772   ac_cv_prog_cc_c89=$ac_arg
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext
3775   test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 done
3777 rm -f conftest.$ac_ext
3778 CC=$ac_save_CC
3779
3780 fi
3781 # AC_CACHE_VAL
3782 case "x$ac_cv_prog_cc_c89" in
3783   x)
3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3786   xno)
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3789   *)
3790     CC="$CC $ac_cv_prog_cc_c89"
3791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 esac
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795
3796 fi
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804 depcc="$CC"   am_compiler_list=
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807 $as_echo_n "checking dependency style of $depcc... " >&6; }
3808 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812   # We make a subdir and do the tests there.  Otherwise we can end up
3813   # making bogus files that we don't know about and never remove.  For
3814   # instance it was reported that on HP-UX the gcc test will end up
3815   # making a dummy file named 'D' -- because '-MD' means "put the output
3816   # in D".
3817   rm -rf conftest.dir
3818   mkdir conftest.dir
3819   # Copy depcomp to subdir because otherwise we won't find it if we're
3820   # using a relative directory.
3821   cp "$am_depcomp" conftest.dir
3822   cd conftest.dir
3823   # We will build objects and dependencies in a subdirectory because
3824   # it helps to detect inapplicable dependency modes.  For instance
3825   # both Tru64's cc and ICC support -MD to output dependencies as a
3826   # side effect of compilation, but ICC will put the dependencies in
3827   # the current directory while Tru64 will put them in the object
3828   # directory.
3829   mkdir sub
3830
3831   am_cv_CC_dependencies_compiler_type=none
3832   if test "$am_compiler_list" = ""; then
3833      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3834   fi
3835   am__universal=false
3836   case " $depcc " in #(
3837      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3838      esac
3839
3840   for depmode in $am_compiler_list; do
3841     # Setup a source with many dependencies, because some compilers
3842     # like to wrap large dependency lists on column 80 (with \), and
3843     # we should not choose a depcomp mode which is confused by this.
3844     #
3845     # We need to recreate these files for each test, as the compiler may
3846     # overwrite some of them when testing with obscure command lines.
3847     # This happens at least with the AIX C compiler.
3848     : > sub/conftest.c
3849     for i in 1 2 3 4 5 6; do
3850       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3852       # Solaris 10 /bin/sh.
3853       echo '/* dummy */' > sub/conftst$i.h
3854     done
3855     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3856
3857     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3858     # mode.  It turns out that the SunPro C++ compiler does not properly
3859     # handle '-M -o', and we need to detect this.  Also, some Intel
3860     # versions had trouble with output in subdirs.
3861     am__obj=sub/conftest.${OBJEXT-o}
3862     am__minus_obj="-o $am__obj"
3863     case $depmode in
3864     gcc)
3865       # This depmode causes a compiler race in universal mode.
3866       test "$am__universal" = false || continue
3867       ;;
3868     nosideeffect)
3869       # After this tag, mechanisms are not by side-effect, so they'll
3870       # only be used when explicitly requested.
3871       if test "x$enable_dependency_tracking" = xyes; then
3872         continue
3873       else
3874         break
3875       fi
3876       ;;
3877     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3878       # This compiler won't grok '-c -o', but also, the minuso test has
3879       # not run yet.  These depmodes are late enough in the game, and
3880       # so weak that their functioning should not be impacted.
3881       am__obj=conftest.${OBJEXT-o}
3882       am__minus_obj=
3883       ;;
3884     none) break ;;
3885     esac
3886     if depmode=$depmode \
3887        source=sub/conftest.c object=$am__obj \
3888        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3890          >/dev/null 2>conftest.err &&
3891        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3894        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895       # icc doesn't choke on unknown options, it will just issue warnings
3896       # or remarks (even with -Werror).  So we grep stderr for any message
3897       # that says an option was ignored or not supported.
3898       # When given -MP, icc 7.0 and 7.1 complain thusly:
3899       #   icc: Command line warning: ignoring option '-M'; no argument required
3900       # The diagnosis changed in icc 8.0:
3901       #   icc: Command line remark: option '-MP' not supported
3902       if (grep 'ignoring option' conftest.err ||
3903           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904         am_cv_CC_dependencies_compiler_type=$depmode
3905         break
3906       fi
3907     fi
3908   done
3909
3910   cd ..
3911   rm -rf conftest.dir
3912 else
3913   am_cv_CC_dependencies_compiler_type=none
3914 fi
3915
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3918 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3920
3921  if
3922   test "x$enable_dependency_tracking" != xno \
3923   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3924   am__fastdepCC_TRUE=
3925   am__fastdepCC_FALSE='#'
3926 else
3927   am__fastdepCC_TRUE='#'
3928   am__fastdepCC_FALSE=
3929 fi
3930
3931
3932
3933 if test -n "$ac_tool_prefix"; then
3934   for ac_prog in ar lib "link -lib"
3935   do
3936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_AR+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   if test -n "$AR"; then
3944   ac_cv_prog_AR="$AR" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951     for ac_exec_ext in '' $ac_executable_extensions; do
3952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958   done
3959 IFS=$as_save_IFS
3960
3961 fi
3962 fi
3963 AR=$ac_cv_prog_AR
3964 if test -n "$AR"; then
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3966 $as_echo "$AR" >&6; }
3967 else
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973     test -n "$AR" && break
3974   done
3975 fi
3976 if test -z "$AR"; then
3977   ac_ct_AR=$AR
3978   for ac_prog in ar lib "link -lib"
3979 do
3980   # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -n "$ac_ct_AR"; then
3988   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995     for ac_exec_ext in '' $ac_executable_extensions; do
3996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_ac_ct_AR="$ac_prog"
3998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002   done
4003 IFS=$as_save_IFS
4004
4005 fi
4006 fi
4007 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4008 if test -n "$ac_ct_AR"; then
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4010 $as_echo "$ac_ct_AR" >&6; }
4011 else
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016
4017   test -n "$ac_ct_AR" && break
4018 done
4019
4020   if test "x$ac_ct_AR" = x; then
4021     AR="false"
4022   else
4023     case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029     AR=$ac_ct_AR
4030   fi
4031 fi
4032
4033 : ${AR=ar}
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4036 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4037 if ${am_cv_ar_interface+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   am_cv_ar_interface=ar
4041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043 int some_variable = 0;
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4047       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4048   (eval $am_ar_try) 2>&5
4049   ac_status=$?
4050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051   test $ac_status = 0; }
4052       if test "$ac_status" -eq 0; then
4053         am_cv_ar_interface=ar
4054       else
4055         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4056         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4057   (eval $am_ar_try) 2>&5
4058   ac_status=$?
4059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060   test $ac_status = 0; }
4061         if test "$ac_status" -eq 0; then
4062           am_cv_ar_interface=lib
4063         else
4064           am_cv_ar_interface=unknown
4065         fi
4066       fi
4067       rm -f conftest.lib libconftest.a
4068
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4074 $as_echo "$am_cv_ar_interface" >&6; }
4075
4076 case $am_cv_ar_interface in
4077 ar)
4078   ;;
4079 lib)
4080   # Microsoft lib, so override with the ar-lib wrapper script.
4081   # FIXME: It is wrong to rewrite AR.
4082   # But if we don't then we get into trouble of one sort or another.
4083   # A longer-term fix would be to have automake use am__AR in this case,
4084   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4085   # similar.
4086   AR="$am_aux_dir/ar-lib $AR"
4087   ;;
4088 unknown)
4089   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4090   ;;
4091 esac
4092
4093
4094 case `pwd` in
4095   *\ * | *\     *)
4096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4097 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4098 esac
4099
4100
4101
4102 macro_version='2.4.2'
4103 macro_revision='1.3337'
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117 ltmain="$ac_aux_dir/ltmain.sh"
4118
4119 # Backslashify metacharacters that are still active within
4120 # double-quoted strings.
4121 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4122
4123 # Same as above, but do not quote variable references.
4124 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4125
4126 # Sed substitution to delay expansion of an escaped shell variable in a
4127 # double_quote_subst'ed string.
4128 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4129
4130 # Sed substitution to delay expansion of an escaped single quote.
4131 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4132
4133 # Sed substitution to avoid accidental globbing in evaled expressions
4134 no_glob_subst='s/\*/\\\*/g'
4135
4136 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4138 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4141 $as_echo_n "checking how to print strings... " >&6; }
4142 # Test print first, because it will be a builtin if present.
4143 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4144    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4145   ECHO='print -r --'
4146 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4147   ECHO='printf %s\n'
4148 else
4149   # Use this function as a fallback that always works.
4150   func_fallback_echo ()
4151   {
4152     eval 'cat <<_LTECHO_EOF
4153 $1
4154 _LTECHO_EOF'
4155   }
4156   ECHO='func_fallback_echo'
4157 fi
4158
4159 # func_echo_all arg...
4160 # Invoke $ECHO with all args, space-separated.
4161 func_echo_all ()
4162 {
4163     $ECHO ""
4164 }
4165
4166 case "$ECHO" in
4167   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4168 $as_echo "printf" >&6; } ;;
4169   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4170 $as_echo "print -r" >&6; } ;;
4171   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4172 $as_echo "cat" >&6; } ;;
4173 esac
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4190 if ${ac_cv_path_SED+:} false; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4194      for ac_i in 1 2 3 4 5 6 7; do
4195        ac_script="$ac_script$as_nl$ac_script"
4196      done
4197      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4198      { ac_script=; unset ac_script;}
4199      if test -z "$SED"; then
4200   ac_path_SED_found=false
4201   # Loop through the user's path and test for each of PROGNAME-LIST
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_prog in sed gsed; do
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4210       as_fn_executable_p "$ac_path_SED" || continue
4211 # Check for GNU ac_path_SED and select it if it is found.
4212   # Check for GNU $ac_path_SED
4213 case `"$ac_path_SED" --version 2>&1` in
4214 *GNU*)
4215   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4216 *)
4217   ac_count=0
4218   $as_echo_n 0123456789 >"conftest.in"
4219   while :
4220   do
4221     cat "conftest.in" "conftest.in" >"conftest.tmp"
4222     mv "conftest.tmp" "conftest.in"
4223     cp "conftest.in" "conftest.nl"
4224     $as_echo '' >> "conftest.nl"
4225     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227     as_fn_arith $ac_count + 1 && ac_count=$as_val
4228     if test $ac_count -gt ${ac_path_SED_max-0}; then
4229       # Best one so far, save it but keep looking for a better one
4230       ac_cv_path_SED="$ac_path_SED"
4231       ac_path_SED_max=$ac_count
4232     fi
4233     # 10*(2^10) chars as input seems more than enough
4234     test $ac_count -gt 10 && break
4235   done
4236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4238
4239       $ac_path_SED_found && break 3
4240     done
4241   done
4242   done
4243 IFS=$as_save_IFS
4244   if test -z "$ac_cv_path_SED"; then
4245     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4246   fi
4247 else
4248   ac_cv_path_SED=$SED
4249 fi
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4253 $as_echo "$ac_cv_path_SED" >&6; }
4254  SED="$ac_cv_path_SED"
4255   rm -f conftest.sed
4256
4257 test -z "$SED" && SED=sed
4258 Xsed="$SED -e 1s/^X//"
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if ${ac_cv_path_GREP+:} false; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   if test -z "$GREP"; then
4276   ac_path_GREP_found=false
4277   # Loop through the user's path and test for each of PROGNAME-LIST
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_prog in grep ggrep; do
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286       as_fn_executable_p "$ac_path_GREP" || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288   # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4290 *GNU*)
4291   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4292 *)
4293   ac_count=0
4294   $as_echo_n 0123456789 >"conftest.in"
4295   while :
4296   do
4297     cat "conftest.in" "conftest.in" >"conftest.tmp"
4298     mv "conftest.tmp" "conftest.in"
4299     cp "conftest.in" "conftest.nl"
4300     $as_echo 'GREP' >> "conftest.nl"
4301     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303     as_fn_arith $ac_count + 1 && ac_count=$as_val
4304     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305       # Best one so far, save it but keep looking for a better one
4306       ac_cv_path_GREP="$ac_path_GREP"
4307       ac_path_GREP_max=$ac_count
4308     fi
4309     # 10*(2^10) chars as input seems more than enough
4310     test $ac_count -gt 10 && break
4311   done
4312   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315       $ac_path_GREP_found && break 3
4316     done
4317   done
4318   done
4319 IFS=$as_save_IFS
4320   if test -z "$ac_cv_path_GREP"; then
4321     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322   fi
4323 else
4324   ac_cv_path_GREP=$GREP
4325 fi
4326
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; }
4330  GREP="$ac_cv_path_GREP"
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; }
4335 if ${ac_cv_path_EGREP+:} false; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339    then ac_cv_path_EGREP="$GREP -E"
4340    else
4341      if test -z "$EGREP"; then
4342   ac_path_EGREP_found=false
4343   # Loop through the user's path and test for each of PROGNAME-LIST
4344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347   IFS=$as_save_IFS
4348   test -z "$as_dir" && as_dir=.
4349     for ac_prog in egrep; do
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352       as_fn_executable_p "$ac_path_EGREP" || continue
4353 # Check for GNU ac_path_EGREP and select it if it is found.
4354   # Check for GNU $ac_path_EGREP
4355 case `"$ac_path_EGREP" --version 2>&1` in
4356 *GNU*)
4357   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4358 *)
4359   ac_count=0
4360   $as_echo_n 0123456789 >"conftest.in"
4361   while :
4362   do
4363     cat "conftest.in" "conftest.in" >"conftest.tmp"
4364     mv "conftest.tmp" "conftest.in"
4365     cp "conftest.in" "conftest.nl"
4366     $as_echo 'EGREP' >> "conftest.nl"
4367     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369     as_fn_arith $ac_count + 1 && ac_count=$as_val
4370     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371       # Best one so far, save it but keep looking for a better one
4372       ac_cv_path_EGREP="$ac_path_EGREP"
4373       ac_path_EGREP_max=$ac_count
4374     fi
4375     # 10*(2^10) chars as input seems more than enough
4376     test $ac_count -gt 10 && break
4377   done
4378   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381       $ac_path_EGREP_found && break 3
4382     done
4383   done
4384   done
4385 IFS=$as_save_IFS
4386   if test -z "$ac_cv_path_EGREP"; then
4387     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388   fi
4389 else
4390   ac_cv_path_EGREP=$EGREP
4391 fi
4392
4393    fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4396 $as_echo "$ac_cv_path_EGREP" >&6; }
4397  EGREP="$ac_cv_path_EGREP"
4398
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4401 $as_echo_n "checking for fgrep... " >&6; }
4402 if ${ac_cv_path_FGREP+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4406    then ac_cv_path_FGREP="$GREP -F"
4407    else
4408      if test -z "$FGREP"; then
4409   ac_path_FGREP_found=false
4410   # Loop through the user's path and test for each of PROGNAME-LIST
4411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_prog in fgrep; do
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4419       as_fn_executable_p "$ac_path_FGREP" || continue
4420 # Check for GNU ac_path_FGREP and select it if it is found.
4421   # Check for GNU $ac_path_FGREP
4422 case `"$ac_path_FGREP" --version 2>&1` in
4423 *GNU*)
4424   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4425 *)
4426   ac_count=0
4427   $as_echo_n 0123456789 >"conftest.in"
4428   while :
4429   do
4430     cat "conftest.in" "conftest.in" >"conftest.tmp"
4431     mv "conftest.tmp" "conftest.in"
4432     cp "conftest.in" "conftest.nl"
4433     $as_echo 'FGREP' >> "conftest.nl"
4434     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436     as_fn_arith $ac_count + 1 && ac_count=$as_val
4437     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4438       # Best one so far, save it but keep looking for a better one
4439       ac_cv_path_FGREP="$ac_path_FGREP"
4440       ac_path_FGREP_max=$ac_count
4441     fi
4442     # 10*(2^10) chars as input seems more than enough
4443     test $ac_count -gt 10 && break
4444   done
4445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4447
4448       $ac_path_FGREP_found && break 3
4449     done
4450   done
4451   done
4452 IFS=$as_save_IFS
4453   if test -z "$ac_cv_path_FGREP"; then
4454     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4455   fi
4456 else
4457   ac_cv_path_FGREP=$FGREP
4458 fi
4459
4460    fi
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4463 $as_echo "$ac_cv_path_FGREP" >&6; }
4464  FGREP="$ac_cv_path_FGREP"
4465
4466
4467 test -z "$GREP" && GREP=grep
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 # Check whether --with-gnu-ld was given.
4488 if test "${with_gnu_ld+set}" = set; then :
4489   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4490 else
4491   with_gnu_ld=no
4492 fi
4493
4494 ac_prog=ld
4495 if test "$GCC" = yes; then
4496   # Check if gcc -print-prog-name=ld gives a path.
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4498 $as_echo_n "checking for ld used by $CC... " >&6; }
4499   case $host in
4500   *-*-mingw*)
4501     # gcc leaves a trailing carriage return which upsets mingw
4502     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4503   *)
4504     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4505   esac
4506   case $ac_prog in
4507     # Accept absolute paths.
4508     [\\/]* | ?:[\\/]*)
4509       re_direlt='/[^/][^/]*/\.\./'
4510       # Canonicalize the pathname of ld
4511       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4512       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4513         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4514       done
4515       test -z "$LD" && LD="$ac_prog"
4516       ;;
4517   "")
4518     # If it fails, then pretend we aren't using GCC.
4519     ac_prog=ld
4520     ;;
4521   *)
4522     # If it is relative, then search for the first ld in PATH.
4523     with_gnu_ld=unknown
4524     ;;
4525   esac
4526 elif test "$with_gnu_ld" = yes; then
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4528 $as_echo_n "checking for GNU ld... " >&6; }
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4531 $as_echo_n "checking for non-GNU ld... " >&6; }
4532 fi
4533 if ${lt_cv_path_LD+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if test -z "$LD"; then
4537   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538   for ac_dir in $PATH; do
4539     IFS="$lt_save_ifs"
4540     test -z "$ac_dir" && ac_dir=.
4541     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4542       lt_cv_path_LD="$ac_dir/$ac_prog"
4543       # Check to see if the program is GNU ld.  I'd rather use --version,
4544       # but apparently some variants of GNU ld only accept -v.
4545       # Break only if it was the GNU/non-GNU ld that we prefer.
4546       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4547       *GNU* | *'with BFD'*)
4548         test "$with_gnu_ld" != no && break
4549         ;;
4550       *)
4551         test "$with_gnu_ld" != yes && break
4552         ;;
4553       esac
4554     fi
4555   done
4556   IFS="$lt_save_ifs"
4557 else
4558   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4559 fi
4560 fi
4561
4562 LD="$lt_cv_path_LD"
4563 if test -n "$LD"; then
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4565 $as_echo "$LD" >&6; }
4566 else
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4573 if ${lt_cv_prog_gnu_ld+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4577 case `$LD -v 2>&1 </dev/null` in
4578 *GNU* | *'with BFD'*)
4579   lt_cv_prog_gnu_ld=yes
4580   ;;
4581 *)
4582   lt_cv_prog_gnu_ld=no
4583   ;;
4584 esac
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4587 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4588 with_gnu_ld=$lt_cv_prog_gnu_ld
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4599 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4600 if ${lt_cv_path_NM+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$NM"; then
4604   # Let the user override the test.
4605   lt_cv_path_NM="$NM"
4606 else
4607   lt_nm_to_check="${ac_tool_prefix}nm"
4608   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4609     lt_nm_to_check="$lt_nm_to_check nm"
4610   fi
4611   for lt_tmp_nm in $lt_nm_to_check; do
4612     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4613     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4614       IFS="$lt_save_ifs"
4615       test -z "$ac_dir" && ac_dir=.
4616       tmp_nm="$ac_dir/$lt_tmp_nm"
4617       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4618         # Check to see if the nm accepts a BSD-compat flag.
4619         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4620         #   nm: unknown option "B" ignored
4621         # Tru64's nm complains that /dev/null is an invalid object file
4622         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4623         */dev/null* | *'Invalid file or object type'*)
4624           lt_cv_path_NM="$tmp_nm -B"
4625           break
4626           ;;
4627         *)
4628           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4629           */dev/null*)
4630             lt_cv_path_NM="$tmp_nm -p"
4631             break
4632             ;;
4633           *)
4634             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4635             continue # so that we can try to find one that supports BSD flags
4636             ;;
4637           esac
4638           ;;
4639         esac
4640       fi
4641     done
4642     IFS="$lt_save_ifs"
4643   done
4644   : ${lt_cv_path_NM=no}
4645 fi
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4648 $as_echo "$lt_cv_path_NM" >&6; }
4649 if test "$lt_cv_path_NM" != "no"; then
4650   NM="$lt_cv_path_NM"
4651 else
4652   # Didn't find any BSD compatible name lister, look for dumpbin.
4653   if test -n "$DUMPBIN"; then :
4654     # Let the user override the test.
4655   else
4656     if test -n "$ac_tool_prefix"; then
4657   for ac_prog in dumpbin "link -dump"
4658   do
4659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_DUMPBIN+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   if test -n "$DUMPBIN"; then
4667   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681   done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 DUMPBIN=$ac_cv_prog_DUMPBIN
4687 if test -n "$DUMPBIN"; then
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4689 $as_echo "$DUMPBIN" >&6; }
4690 else
4691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696     test -n "$DUMPBIN" && break
4697   done
4698 fi
4699 if test -z "$DUMPBIN"; then
4700   ac_ct_DUMPBIN=$DUMPBIN
4701   for ac_prog in dumpbin "link -dump"
4702 do
4703   # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710   if test -n "$ac_ct_DUMPBIN"; then
4711   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718     for ac_exec_ext in '' $ac_executable_extensions; do
4719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725   done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4731 if test -n "$ac_ct_DUMPBIN"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4733 $as_echo "$ac_ct_DUMPBIN" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740   test -n "$ac_ct_DUMPBIN" && break
4741 done
4742
4743   if test "x$ac_ct_DUMPBIN" = x; then
4744     DUMPBIN=":"
4745   else
4746     case $cross_compiling:$ac_tool_warned in
4747 yes:)
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4750 ac_tool_warned=yes ;;
4751 esac
4752     DUMPBIN=$ac_ct_DUMPBIN
4753   fi
4754 fi
4755
4756     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4757     *COFF*)
4758       DUMPBIN="$DUMPBIN -symbols"
4759       ;;
4760     *)
4761       DUMPBIN=:
4762       ;;
4763     esac
4764   fi
4765
4766   if test "$DUMPBIN" != ":"; then
4767     NM="$DUMPBIN"
4768   fi
4769 fi
4770 test -z "$NM" && NM=nm
4771
4772
4773
4774
4775
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4778 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4779 if ${lt_cv_nm_interface+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   lt_cv_nm_interface="BSD nm"
4783   echo "int some_variable = 0;" > conftest.$ac_ext
4784   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4785   (eval "$ac_compile" 2>conftest.err)
4786   cat conftest.err >&5
4787   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4788   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4789   cat conftest.err >&5
4790   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4791   cat conftest.out >&5
4792   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4793     lt_cv_nm_interface="MS dumpbin"
4794   fi
4795   rm -f conftest*
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4798 $as_echo "$lt_cv_nm_interface" >&6; }
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4801 $as_echo_n "checking whether ln -s works... " >&6; }
4802 LN_S=$as_ln_s
4803 if test "$LN_S" = "ln -s"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4805 $as_echo "yes" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4808 $as_echo "no, using $LN_S" >&6; }
4809 fi
4810
4811 # find the maximum length of command line arguments
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4813 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4814 if ${lt_cv_sys_max_cmd_len+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817     i=0
4818   teststring="ABCD"
4819
4820   case $build_os in
4821   msdosdjgpp*)
4822     # On DJGPP, this test can blow up pretty badly due to problems in libc
4823     # (any single argument exceeding 2000 bytes causes a buffer overrun
4824     # during glob expansion).  Even if it were fixed, the result of this
4825     # check would be larger than it should be.
4826     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4827     ;;
4828
4829   gnu*)
4830     # Under GNU Hurd, this test is not required because there is
4831     # no limit to the length of command line arguments.
4832     # Libtool will interpret -1 as no limit whatsoever
4833     lt_cv_sys_max_cmd_len=-1;
4834     ;;
4835
4836   cygwin* | mingw* | cegcc*)
4837     # On Win9x/ME, this test blows up -- it succeeds, but takes
4838     # about 5 minutes as the teststring grows exponentially.
4839     # Worse, since 9x/ME are not pre-emptively multitasking,
4840     # you end up with a "frozen" computer, even though with patience
4841     # the test eventually succeeds (with a max line length of 256k).
4842     # Instead, let's just punt: use the minimum linelength reported by
4843     # all of the supported platforms: 8192 (on NT/2K/XP).
4844     lt_cv_sys_max_cmd_len=8192;
4845     ;;
4846
4847   mint*)
4848     # On MiNT this can take a long time and run out of memory.
4849     lt_cv_sys_max_cmd_len=8192;
4850     ;;
4851
4852   amigaos*)
4853     # On AmigaOS with pdksh, this test takes hours, literally.
4854     # So we just punt and use a minimum line length of 8192.
4855     lt_cv_sys_max_cmd_len=8192;
4856     ;;
4857
4858   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859     # This has been around since 386BSD, at least.  Likely further.
4860     if test -x /sbin/sysctl; then
4861       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862     elif test -x /usr/sbin/sysctl; then
4863       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4864     else
4865       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4866     fi
4867     # And add a safety zone
4868     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870     ;;
4871
4872   interix*)
4873     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874     lt_cv_sys_max_cmd_len=196608
4875     ;;
4876
4877   os2*)
4878     # The test takes a long time on OS/2.
4879     lt_cv_sys_max_cmd_len=8192
4880     ;;
4881
4882   osf*)
4883     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4884     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4885     # nice to cause kernel panics so lets avoid the loop below.
4886     # First set a reasonable default.
4887     lt_cv_sys_max_cmd_len=16384
4888     #
4889     if test -x /sbin/sysconfig; then
4890       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4891         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4892       esac
4893     fi
4894     ;;
4895   sco3.2v5*)
4896     lt_cv_sys_max_cmd_len=102400
4897     ;;
4898   sysv5* | sco5v6* | sysv4.2uw2*)
4899     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4900     if test -n "$kargmax"; then
4901       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4902     else
4903       lt_cv_sys_max_cmd_len=32768
4904     fi
4905     ;;
4906   *)
4907     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4908     if test -n "$lt_cv_sys_max_cmd_len"; then
4909       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4910       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4911     else
4912       # Make teststring a little bigger before we do anything with it.
4913       # a 1K string should be a reasonable start.
4914       for i in 1 2 3 4 5 6 7 8 ; do
4915         teststring=$teststring$teststring
4916       done
4917       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4918       # If test is not a shell built-in, we'll probably end up computing a
4919       # maximum length that is only half of the actual maximum length, but
4920       # we can't tell.
4921       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4922                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4923               test $i != 17 # 1/2 MB should be enough
4924       do
4925         i=`expr $i + 1`
4926         teststring=$teststring$teststring
4927       done
4928       # Only check the string length outside the loop.
4929       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4930       teststring=
4931       # Add a significant safety factor because C++ compilers can tack on
4932       # massive amounts of additional arguments before passing them to the
4933       # linker.  It appears as though 1/2 is a usable value.
4934       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4935     fi
4936     ;;
4937   esac
4938
4939 fi
4940
4941 if test -n $lt_cv_sys_max_cmd_len ; then
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4943 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4944 else
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4946 $as_echo "none" >&6; }
4947 fi
4948 max_cmd_len=$lt_cv_sys_max_cmd_len
4949
4950
4951
4952
4953
4954
4955 : ${CP="cp -f"}
4956 : ${MV="mv -f"}
4957 : ${RM="rm -f"}
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4960 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4961 # Try some XSI features
4962 xsi_shell=no
4963 ( _lt_dummy="a/b/c"
4964   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4965       = c,a/b,b/c, \
4966     && eval 'test $(( 1 + 1 )) -eq 2 \
4967     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4968   && xsi_shell=yes
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4970 $as_echo "$xsi_shell" >&6; }
4971
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4974 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4975 lt_shell_append=no
4976 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4977     >/dev/null 2>&1 \
4978   && lt_shell_append=yes
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4980 $as_echo "$lt_shell_append" >&6; }
4981
4982
4983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4984   lt_unset=unset
4985 else
4986   lt_unset=false
4987 fi
4988
4989
4990
4991
4992
4993 # test EBCDIC or ASCII
4994 case `echo X|tr X '\101'` in
4995  A) # ASCII based system
4996     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4997   lt_SP2NL='tr \040 \012'
4998   lt_NL2SP='tr \015\012 \040\040'
4999   ;;
5000  *) # EBCDIC based system
5001   lt_SP2NL='tr \100 \n'
5002   lt_NL2SP='tr \r\n \100\100'
5003   ;;
5004 esac
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5015 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5016 if ${lt_cv_to_host_file_cmd+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   case $host in
5020   *-*-mingw* )
5021     case $build in
5022       *-*-mingw* ) # actually msys
5023         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5024         ;;
5025       *-*-cygwin* )
5026         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5027         ;;
5028       * ) # otherwise, assume *nix
5029         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5030         ;;
5031     esac
5032     ;;
5033   *-*-cygwin* )
5034     case $build in
5035       *-*-mingw* ) # actually msys
5036         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5037         ;;
5038       *-*-cygwin* )
5039         lt_cv_to_host_file_cmd=func_convert_file_noop
5040         ;;
5041       * ) # otherwise, assume *nix
5042         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5043         ;;
5044     esac
5045     ;;
5046   * ) # unhandled hosts (and "normal" native builds)
5047     lt_cv_to_host_file_cmd=func_convert_file_noop
5048     ;;
5049 esac
5050
5051 fi
5052
5053 to_host_file_cmd=$lt_cv_to_host_file_cmd
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5055 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5056
5057
5058
5059
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5062 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5063 if ${lt_cv_to_tool_file_cmd+:} false; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   #assume ordinary cross tools, or native build.
5067 lt_cv_to_tool_file_cmd=func_convert_file_noop
5068 case $host in
5069   *-*-mingw* )
5070     case $build in
5071       *-*-mingw* ) # actually msys
5072         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5073         ;;
5074     esac
5075     ;;
5076 esac
5077
5078 fi
5079
5080 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5082 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5083
5084
5085
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5089 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5090 if ${lt_cv_ld_reload_flag+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   lt_cv_ld_reload_flag='-r'
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5096 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5097 reload_flag=$lt_cv_ld_reload_flag
5098 case $reload_flag in
5099 "" | " "*) ;;
5100 *) reload_flag=" $reload_flag" ;;
5101 esac
5102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5103 case $host_os in
5104   cygwin* | mingw* | pw32* | cegcc*)
5105     if test "$GCC" != yes; then
5106       reload_cmds=false
5107     fi
5108     ;;
5109   darwin*)
5110     if test "$GCC" = yes; then
5111       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5112     else
5113       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5114     fi
5115     ;;
5116 esac
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126 if test -n "$ac_tool_prefix"; then
5127   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_OBJDUMP+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   if test -n "$OBJDUMP"; then
5135   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 OBJDUMP=$ac_cv_prog_OBJDUMP
5155 if test -n "$OBJDUMP"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5157 $as_echo "$OBJDUMP" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 fi
5165 if test -z "$ac_cv_prog_OBJDUMP"; then
5166   ac_ct_OBJDUMP=$OBJDUMP
5167   # Extract the first word of "objdump", so it can be a program name with args.
5168 set dummy objdump; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   if test -n "$ac_ct_OBJDUMP"; then
5175   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182     for ac_exec_ext in '' $ac_executable_extensions; do
5183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189   done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5195 if test -n "$ac_ct_OBJDUMP"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5197 $as_echo "$ac_ct_OBJDUMP" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203   if test "x$ac_ct_OBJDUMP" = x; then
5204     OBJDUMP="false"
5205   else
5206     case $cross_compiling:$ac_tool_warned in
5207 yes:)
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5211 esac
5212     OBJDUMP=$ac_ct_OBJDUMP
5213   fi
5214 else
5215   OBJDUMP="$ac_cv_prog_OBJDUMP"
5216 fi
5217
5218 test -z "$OBJDUMP" && OBJDUMP=objdump
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5229 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5230 if ${lt_cv_deplibs_check_method+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   lt_cv_file_magic_cmd='$MAGIC_CMD'
5234 lt_cv_file_magic_test_file=
5235 lt_cv_deplibs_check_method='unknown'
5236 # Need to set the preceding variable on all platforms that support
5237 # interlibrary dependencies.
5238 # 'none' -- dependencies not supported.
5239 # `unknown' -- same as none, but documents that we really don't know.
5240 # 'pass_all' -- all dependencies passed with no checks.
5241 # 'test_compile' -- check by making test program.
5242 # 'file_magic [[regex]]' -- check by looking for files in library path
5243 # which responds to the $file_magic_cmd with a given extended regex.
5244 # If you have `file' or equivalent on your system and you're not sure
5245 # whether `pass_all' will *always* work, you probably want this one.
5246
5247 case $host_os in
5248 aix[4-9]*)
5249   lt_cv_deplibs_check_method=pass_all
5250   ;;
5251
5252 beos*)
5253   lt_cv_deplibs_check_method=pass_all
5254   ;;
5255
5256 bsdi[45]*)
5257   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5258   lt_cv_file_magic_cmd='/usr/bin/file -L'
5259   lt_cv_file_magic_test_file=/shlib/libc.so
5260   ;;
5261
5262 cygwin*)
5263   # func_win32_libid is a shell function defined in ltmain.sh
5264   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5265   lt_cv_file_magic_cmd='func_win32_libid'
5266   ;;
5267
5268 mingw* | pw32*)
5269   # Base MSYS/MinGW do not provide the 'file' command needed by
5270   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5271   # unless we find 'file', for example because we are cross-compiling.
5272   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5273   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5274     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5275     lt_cv_file_magic_cmd='func_win32_libid'
5276   else
5277     # Keep this pattern in sync with the one in func_win32_libid.
5278     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5279     lt_cv_file_magic_cmd='$OBJDUMP -f'
5280   fi
5281   ;;
5282
5283 cegcc*)
5284   # use the weaker test based on 'objdump'. See mingw*.
5285   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5286   lt_cv_file_magic_cmd='$OBJDUMP -f'
5287   ;;
5288
5289 darwin* | rhapsody*)
5290   lt_cv_deplibs_check_method=pass_all
5291   ;;
5292
5293 freebsd* | dragonfly*)
5294   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5295     case $host_cpu in
5296     i*86 )
5297       # Not sure whether the presence of OpenBSD here was a mistake.
5298       # Let's accept both of them until this is cleared up.
5299       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5300       lt_cv_file_magic_cmd=/usr/bin/file
5301       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5302       ;;
5303     esac
5304   else
5305     lt_cv_deplibs_check_method=pass_all
5306   fi
5307   ;;
5308
5309 gnu*)
5310   lt_cv_deplibs_check_method=pass_all
5311   ;;
5312
5313 haiku*)
5314   lt_cv_deplibs_check_method=pass_all
5315   ;;
5316
5317 hpux10.20* | hpux11*)
5318   lt_cv_file_magic_cmd=/usr/bin/file
5319   case $host_cpu in
5320   ia64*)
5321     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5322     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5323     ;;
5324   hppa*64*)
5325     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]'
5326     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5327     ;;
5328   *)
5329     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5330     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5331     ;;
5332   esac
5333   ;;
5334
5335 interix[3-9]*)
5336   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5337   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5338   ;;
5339
5340 irix5* | irix6* | nonstopux*)
5341   case $LD in
5342   *-32|*"-32 ") libmagic=32-bit;;
5343   *-n32|*"-n32 ") libmagic=N32;;
5344   *-64|*"-64 ") libmagic=64-bit;;
5345   *) libmagic=never-match;;
5346   esac
5347   lt_cv_deplibs_check_method=pass_all
5348   ;;
5349
5350 # This must be glibc/ELF.
5351 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5352   lt_cv_deplibs_check_method=pass_all
5353   ;;
5354
5355 netbsd*)
5356   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358   else
5359     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5360   fi
5361   ;;
5362
5363 newos6*)
5364   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5365   lt_cv_file_magic_cmd=/usr/bin/file
5366   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5367   ;;
5368
5369 *nto* | *qnx*)
5370   lt_cv_deplibs_check_method=pass_all
5371   ;;
5372
5373 openbsd*)
5374   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5375     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5376   else
5377     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5378   fi
5379   ;;
5380
5381 osf3* | osf4* | osf5*)
5382   lt_cv_deplibs_check_method=pass_all
5383   ;;
5384
5385 rdos*)
5386   lt_cv_deplibs_check_method=pass_all
5387   ;;
5388
5389 solaris*)
5390   lt_cv_deplibs_check_method=pass_all
5391   ;;
5392
5393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 sysv4 | sysv4.3*)
5398   case $host_vendor in
5399   motorola)
5400     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]'
5401     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5402     ;;
5403   ncr)
5404     lt_cv_deplibs_check_method=pass_all
5405     ;;
5406   sequent)
5407     lt_cv_file_magic_cmd='/bin/file'
5408     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5409     ;;
5410   sni)
5411     lt_cv_file_magic_cmd='/bin/file'
5412     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5413     lt_cv_file_magic_test_file=/lib/libc.so
5414     ;;
5415   siemens)
5416     lt_cv_deplibs_check_method=pass_all
5417     ;;
5418   pc)
5419     lt_cv_deplibs_check_method=pass_all
5420     ;;
5421   esac
5422   ;;
5423
5424 tpf*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427 esac
5428
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5431 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5432
5433 file_magic_glob=
5434 want_nocaseglob=no
5435 if test "$build" = "$host"; then
5436   case $host_os in
5437   mingw* | pw32*)
5438     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5439       want_nocaseglob=yes
5440     else
5441       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5442     fi
5443     ;;
5444   esac
5445 fi
5446
5447 file_magic_cmd=$lt_cv_file_magic_cmd
5448 deplibs_check_method=$lt_cv_deplibs_check_method
5449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 if test -n "$ac_tool_prefix"; then
5473   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_DLLTOOL+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -n "$DLLTOOL"; then
5481   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 DLLTOOL=$ac_cv_prog_DLLTOOL
5501 if test -n "$DLLTOOL"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5503 $as_echo "$DLLTOOL" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 fi
5511 if test -z "$ac_cv_prog_DLLTOOL"; then
5512   ac_ct_DLLTOOL=$DLLTOOL
5513   # Extract the first word of "dlltool", so it can be a program name with args.
5514 set dummy dlltool; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   if test -n "$ac_ct_DLLTOOL"; then
5521   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528     for ac_exec_ext in '' $ac_executable_extensions; do
5529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535   done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5541 if test -n "$ac_ct_DLLTOOL"; then
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5543 $as_echo "$ac_ct_DLLTOOL" >&6; }
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549   if test "x$ac_ct_DLLTOOL" = x; then
5550     DLLTOOL="false"
5551   else
5552     case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558     DLLTOOL=$ac_ct_DLLTOOL
5559   fi
5560 else
5561   DLLTOOL="$ac_cv_prog_DLLTOOL"
5562 fi
5563
5564 test -z "$DLLTOOL" && DLLTOOL=dlltool
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5576 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5577 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   lt_cv_sharedlib_from_linklib_cmd='unknown'
5581
5582 case $host_os in
5583 cygwin* | mingw* | pw32* | cegcc*)
5584   # two different shell functions defined in ltmain.sh
5585   # decide which to use based on capabilities of $DLLTOOL
5586   case `$DLLTOOL --help 2>&1` in
5587   *--identify-strict*)
5588     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5589     ;;
5590   *)
5591     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5592     ;;
5593   esac
5594   ;;
5595 *)
5596   # fallback: assume linklib IS sharedlib
5597   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5598   ;;
5599 esac
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5603 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5604 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5605 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5606
5607
5608
5609
5610
5611
5612
5613 if test -n "$ac_tool_prefix"; then
5614   for ac_prog in ar
5615   do
5616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AR+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$AR"; then
5624   ac_cv_prog_AR="$AR" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 AR=$ac_cv_prog_AR
5644 if test -n "$AR"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646 $as_echo "$AR" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653     test -n "$AR" && break
5654   done
5655 fi
5656 if test -z "$AR"; then
5657   ac_ct_AR=$AR
5658   for ac_prog in ar
5659 do
5660   # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if test -n "$ac_ct_AR"; then
5668   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     for ac_exec_ext in '' $ac_executable_extensions; do
5676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677     ac_cv_prog_ac_ct_AR="$ac_prog"
5678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682   done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688 if test -n "$ac_ct_AR"; then
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5690 $as_echo "$ac_ct_AR" >&6; }
5691 else
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697   test -n "$ac_ct_AR" && break
5698 done
5699
5700   if test "x$ac_ct_AR" = x; then
5701     AR="false"
5702   else
5703     case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709     AR=$ac_ct_AR
5710   fi
5711 fi
5712
5713 : ${AR=ar}
5714 : ${AR_FLAGS=cru}
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5727 $as_echo_n "checking for archiver @FILE support... " >&6; }
5728 if ${lt_cv_ar_at_file+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   lt_cv_ar_at_file=no
5732    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734
5735 int
5736 main ()
5737 {
5738
5739   ;
5740   return 0;
5741 }
5742 _ACEOF
5743 if ac_fn_c_try_compile "$LINENO"; then :
5744   echo conftest.$ac_objext > conftest.lst
5745       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5746       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5747   (eval $lt_ar_try) 2>&5
5748   ac_status=$?
5749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750   test $ac_status = 0; }
5751       if test "$ac_status" -eq 0; then
5752         # Ensure the archiver fails upon bogus file names.
5753         rm -f conftest.$ac_objext libconftest.a
5754         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5755   (eval $lt_ar_try) 2>&5
5756   ac_status=$?
5757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758   test $ac_status = 0; }
5759         if test "$ac_status" -ne 0; then
5760           lt_cv_ar_at_file=@
5761         fi
5762       fi
5763       rm -f conftest.* libconftest.a
5764
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5770 $as_echo "$lt_cv_ar_at_file" >&6; }
5771
5772 if test "x$lt_cv_ar_at_file" = xno; then
5773   archiver_list_spec=
5774 else
5775   archiver_list_spec=$lt_cv_ar_at_file
5776 fi
5777
5778
5779
5780
5781
5782
5783
5784 if test -n "$ac_tool_prefix"; then
5785   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5786 set dummy ${ac_tool_prefix}strip; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_STRIP+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$STRIP"; then
5793   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798   IFS=$as_save_IFS
5799   test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805   fi
5806 done
5807   done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 STRIP=$ac_cv_prog_STRIP
5813 if test -n "$STRIP"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5815 $as_echo "$STRIP" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821
5822 fi
5823 if test -z "$ac_cv_prog_STRIP"; then
5824   ac_ct_STRIP=$STRIP
5825   # Extract the first word of "strip", so it can be a program name with args.
5826 set dummy strip; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if test -n "$ac_ct_STRIP"; then
5833   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840     for ac_exec_ext in '' $ac_executable_extensions; do
5841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_prog_ac_ct_STRIP="strip"
5843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847   done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5853 if test -n "$ac_ct_STRIP"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5855 $as_echo "$ac_ct_STRIP" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861   if test "x$ac_ct_STRIP" = x; then
5862     STRIP=":"
5863   else
5864     case $cross_compiling:$ac_tool_warned in
5865 yes:)
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868 ac_tool_warned=yes ;;
5869 esac
5870     STRIP=$ac_ct_STRIP
5871   fi
5872 else
5873   STRIP="$ac_cv_prog_STRIP"
5874 fi
5875
5876 test -z "$STRIP" && STRIP=:
5877
5878
5879
5880
5881
5882
5883 if test -n "$ac_tool_prefix"; then
5884   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_RANLIB+:} false; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   if test -n "$RANLIB"; then
5892   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899     for ac_exec_ext in '' $ac_executable_extensions; do
5900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906   done
5907 IFS=$as_save_IFS
5908
5909 fi
5910 fi
5911 RANLIB=$ac_cv_prog_RANLIB
5912 if test -n "$RANLIB"; then
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5914 $as_echo "$RANLIB" >&6; }
5915 else
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920
5921 fi
5922 if test -z "$ac_cv_prog_RANLIB"; then
5923   ac_ct_RANLIB=$RANLIB
5924   # Extract the first word of "ranlib", so it can be a program name with args.
5925 set dummy ranlib; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   if test -n "$ac_ct_RANLIB"; then
5932   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_prog_ac_ct_RANLIB="ranlib"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5952 if test -n "$ac_ct_RANLIB"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5954 $as_echo "$ac_ct_RANLIB" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960   if test "x$ac_ct_RANLIB" = x; then
5961     RANLIB=":"
5962   else
5963     case $cross_compiling:$ac_tool_warned in
5964 yes:)
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967 ac_tool_warned=yes ;;
5968 esac
5969     RANLIB=$ac_ct_RANLIB
5970   fi
5971 else
5972   RANLIB="$ac_cv_prog_RANLIB"
5973 fi
5974
5975 test -z "$RANLIB" && RANLIB=:
5976
5977
5978
5979
5980
5981
5982 # Determine commands to create old-style static archives.
5983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5984 old_postinstall_cmds='chmod 644 $oldlib'
5985 old_postuninstall_cmds=
5986
5987 if test -n "$RANLIB"; then
5988   case $host_os in
5989   openbsd*)
5990     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5991     ;;
5992   *)
5993     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5994     ;;
5995   esac
5996   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5997 fi
5998
5999 case $host_os in
6000   darwin*)
6001     lock_old_archive_extraction=yes ;;
6002   *)
6003     lock_old_archive_extraction=no ;;
6004 esac
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 # If no C compiler was specified, use CC.
6045 LTCC=${LTCC-"$CC"}
6046
6047 # If no C compiler flags were specified, use CFLAGS.
6048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6049
6050 # Allow CC to be a program name with arguments.
6051 compiler=$CC
6052
6053
6054 # Check for command to grab the raw symbol name followed by C symbol from nm.
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6056 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6057 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060
6061 # These are sane defaults that work on at least a few old systems.
6062 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6063
6064 # Character class describing NM global symbol codes.
6065 symcode='[BCDEGRST]'
6066
6067 # Regexp to match symbols that can be accessed directly from C.
6068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6069
6070 # Define system-specific variables.
6071 case $host_os in
6072 aix*)
6073   symcode='[BCDT]'
6074   ;;
6075 cygwin* | mingw* | pw32* | cegcc*)
6076   symcode='[ABCDGISTW]'
6077   ;;
6078 hpux*)
6079   if test "$host_cpu" = ia64; then
6080     symcode='[ABCDEGRST]'
6081   fi
6082   ;;
6083 irix* | nonstopux*)
6084   symcode='[BCDEGRST]'
6085   ;;
6086 osf*)
6087   symcode='[BCDEGQRST]'
6088   ;;
6089 solaris*)
6090   symcode='[BDRT]'
6091   ;;
6092 sco3.2v5*)
6093   symcode='[DT]'
6094   ;;
6095 sysv4.2uw2*)
6096   symcode='[DT]'
6097   ;;
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6099   symcode='[ABDT]'
6100   ;;
6101 sysv4)
6102   symcode='[DFNSTU]'
6103   ;;
6104 esac
6105
6106 # If we're using GNU nm, then use its standard symbol codes.
6107 case `$NM -V 2>&1` in
6108 *GNU* | *'with BFD'*)
6109   symcode='[ABCDGIRSTW]' ;;
6110 esac
6111
6112 # Transform an extracted symbol line into a proper C declaration.
6113 # Some systems (esp. on ia64) link data and code symbols differently,
6114 # so use this general approach.
6115 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6116
6117 # Transform an extracted symbol line into symbol name and symbol address
6118 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6120
6121 # Handle CRLF in mingw tool chain
6122 opt_cr=
6123 case $build_os in
6124 mingw*)
6125   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6126   ;;
6127 esac
6128
6129 # Try without a prefix underscore, then with it.
6130 for ac_symprfx in "" "_"; do
6131
6132   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6133   symxfrm="\\1 $ac_symprfx\\2 \\2"
6134
6135   # Write the raw and C identifiers.
6136   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6137     # Fake it for dumpbin and say T for any non-static function
6138     # and D for any global variable.
6139     # Also find C++ and __fastcall symbols from MSVC++,
6140     # which start with @ or ?.
6141     lt_cv_sys_global_symbol_pipe="$AWK '"\
6142 "     {last_section=section; section=\$ 3};"\
6143 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6144 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6145 "     \$ 0!~/External *\|/{next};"\
6146 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6147 "     {if(hide[section]) next};"\
6148 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6149 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6150 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6151 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6152 "     ' prfx=^$ac_symprfx"
6153   else
6154     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6155   fi
6156   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6157
6158   # Check to see that the pipe works correctly.
6159   pipe_works=no
6160
6161   rm -f conftest*
6162   cat > conftest.$ac_ext <<_LT_EOF
6163 #ifdef __cplusplus
6164 extern "C" {
6165 #endif
6166 char nm_test_var;
6167 void nm_test_func(void);
6168 void nm_test_func(void){}
6169 #ifdef __cplusplus
6170 }
6171 #endif
6172 int main(){nm_test_var='a';nm_test_func();return(0);}
6173 _LT_EOF
6174
6175   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176   (eval $ac_compile) 2>&5
6177   ac_status=$?
6178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179   test $ac_status = 0; }; then
6180     # Now try to grab the symbols.
6181     nlist=conftest.nm
6182     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6183   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; } && test -s "$nlist"; then
6187       # Try sorting and uniquifying the output.
6188       if sort "$nlist" | uniq > "$nlist"T; then
6189         mv -f "$nlist"T "$nlist"
6190       else
6191         rm -f "$nlist"T
6192       fi
6193
6194       # Make sure that we snagged all the symbols we need.
6195       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6196         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6197           cat <<_LT_EOF > conftest.$ac_ext
6198 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6199 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6200 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6201    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6202 # define LT_DLSYM_CONST
6203 #elif defined(__osf__)
6204 /* This system does not cope well with relocations in const data.  */
6205 # define LT_DLSYM_CONST
6206 #else
6207 # define LT_DLSYM_CONST const
6208 #endif
6209
6210 #ifdef __cplusplus
6211 extern "C" {
6212 #endif
6213
6214 _LT_EOF
6215           # Now generate the symbol file.
6216           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6217
6218           cat <<_LT_EOF >> conftest.$ac_ext
6219
6220 /* The mapping between symbol names and symbols.  */
6221 LT_DLSYM_CONST struct {
6222   const char *name;
6223   void       *address;
6224 }
6225 lt__PROGRAM__LTX_preloaded_symbols[] =
6226 {
6227   { "@PROGRAM@", (void *) 0 },
6228 _LT_EOF
6229           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6230           cat <<\_LT_EOF >> conftest.$ac_ext
6231   {0, (void *) 0}
6232 };
6233
6234 /* This works around a problem in FreeBSD linker */
6235 #ifdef FREEBSD_WORKAROUND
6236 static const void *lt_preloaded_setup() {
6237   return lt__PROGRAM__LTX_preloaded_symbols;
6238 }
6239 #endif
6240
6241 #ifdef __cplusplus
6242 }
6243 #endif
6244 _LT_EOF
6245           # Now try linking the two files.
6246           mv conftest.$ac_objext conftstm.$ac_objext
6247           lt_globsym_save_LIBS=$LIBS
6248           lt_globsym_save_CFLAGS=$CFLAGS
6249           LIBS="conftstm.$ac_objext"
6250           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6251           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6252   (eval $ac_link) 2>&5
6253   ac_status=$?
6254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6256             pipe_works=yes
6257           fi
6258           LIBS=$lt_globsym_save_LIBS
6259           CFLAGS=$lt_globsym_save_CFLAGS
6260         else
6261           echo "cannot find nm_test_func in $nlist" >&5
6262         fi
6263       else
6264         echo "cannot find nm_test_var in $nlist" >&5
6265       fi
6266     else
6267       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6268     fi
6269   else
6270     echo "$progname: failed program was:" >&5
6271     cat conftest.$ac_ext >&5
6272   fi
6273   rm -rf conftest* conftst*
6274
6275   # Do not use the global_symbol_pipe unless it works.
6276   if test "$pipe_works" = yes; then
6277     break
6278   else
6279     lt_cv_sys_global_symbol_pipe=
6280   fi
6281 done
6282
6283 fi
6284
6285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6286   lt_cv_sys_global_symbol_to_cdecl=
6287 fi
6288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6290 $as_echo "failed" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6293 $as_echo "ok" >&6; }
6294 fi
6295
6296 # Response file support.
6297 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6298   nm_file_list_spec='@'
6299 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6300   nm_file_list_spec='@'
6301 fi
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6330 $as_echo_n "checking for sysroot... " >&6; }
6331
6332 # Check whether --with-sysroot was given.
6333 if test "${with_sysroot+set}" = set; then :
6334   withval=$with_sysroot;
6335 else
6336   with_sysroot=no
6337 fi
6338
6339
6340 lt_sysroot=
6341 case ${with_sysroot} in #(
6342  yes)
6343    if test "$GCC" = yes; then
6344      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6345    fi
6346    ;; #(
6347  /*)
6348    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6349    ;; #(
6350  no|'')
6351    ;; #(
6352  *)
6353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6354 $as_echo "${with_sysroot}" >&6; }
6355    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6356    ;;
6357 esac
6358
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6360 $as_echo "${lt_sysroot:-no}" >&6; }
6361
6362
6363
6364
6365
6366 # Check whether --enable-libtool-lock was given.
6367 if test "${enable_libtool_lock+set}" = set; then :
6368   enableval=$enable_libtool_lock;
6369 fi
6370
6371 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6372
6373 # Some flags need to be propagated to the compiler or linker for good
6374 # libtool support.
6375 case $host in
6376 ia64-*-hpux*)
6377   # Find out which ABI we are using.
6378   echo 'int i;' > conftest.$ac_ext
6379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380   (eval $ac_compile) 2>&5
6381   ac_status=$?
6382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383   test $ac_status = 0; }; then
6384     case `/usr/bin/file conftest.$ac_objext` in
6385       *ELF-32*)
6386         HPUX_IA64_MODE="32"
6387         ;;
6388       *ELF-64*)
6389         HPUX_IA64_MODE="64"
6390         ;;
6391     esac
6392   fi
6393   rm -rf conftest*
6394   ;;
6395 *-*-irix6*)
6396   # Find out which ABI we are using.
6397   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6398   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399   (eval $ac_compile) 2>&5
6400   ac_status=$?
6401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402   test $ac_status = 0; }; then
6403     if test "$lt_cv_prog_gnu_ld" = yes; then
6404       case `/usr/bin/file conftest.$ac_objext` in
6405         *32-bit*)
6406           LD="${LD-ld} -melf32bsmip"
6407           ;;
6408         *N32*)
6409           LD="${LD-ld} -melf32bmipn32"
6410           ;;
6411         *64-bit*)
6412           LD="${LD-ld} -melf64bmip"
6413         ;;
6414       esac
6415     else
6416       case `/usr/bin/file conftest.$ac_objext` in
6417         *32-bit*)
6418           LD="${LD-ld} -32"
6419           ;;
6420         *N32*)
6421           LD="${LD-ld} -n32"
6422           ;;
6423         *64-bit*)
6424           LD="${LD-ld} -64"
6425           ;;
6426       esac
6427     fi
6428   fi
6429   rm -rf conftest*
6430   ;;
6431
6432 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6433 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6434   # Find out which ABI we are using.
6435   echo 'int i;' > conftest.$ac_ext
6436   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437   (eval $ac_compile) 2>&5
6438   ac_status=$?
6439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440   test $ac_status = 0; }; then
6441     case `/usr/bin/file conftest.o` in
6442       *32-bit*)
6443         case $host in
6444           x86_64-*kfreebsd*-gnu)
6445             LD="${LD-ld} -m elf_i386_fbsd"
6446             ;;
6447           x86_64-*linux*)
6448             LD="${LD-ld} -m elf_i386"
6449             ;;
6450           ppc64-*linux*|powerpc64-*linux*)
6451             LD="${LD-ld} -m elf32ppclinux"
6452             ;;
6453           s390x-*linux*)
6454             LD="${LD-ld} -m elf_s390"
6455             ;;
6456           sparc64-*linux*)
6457             LD="${LD-ld} -m elf32_sparc"
6458             ;;
6459         esac
6460         ;;
6461       *64-bit*)
6462         case $host in
6463           x86_64-*kfreebsd*-gnu)
6464             LD="${LD-ld} -m elf_x86_64_fbsd"
6465             ;;
6466           x86_64-*linux*)
6467             LD="${LD-ld} -m elf_x86_64"
6468             ;;
6469           ppc*-*linux*|powerpc*-*linux*)
6470             LD="${LD-ld} -m elf64ppc"
6471             ;;
6472           s390*-*linux*|s390*-*tpf*)
6473             LD="${LD-ld} -m elf64_s390"
6474             ;;
6475           sparc*-*linux*)
6476             LD="${LD-ld} -m elf64_sparc"
6477             ;;
6478         esac
6479         ;;
6480     esac
6481   fi
6482   rm -rf conftest*
6483   ;;
6484
6485 *-*-sco3.2v5*)
6486   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6487   SAVE_CFLAGS="$CFLAGS"
6488   CFLAGS="$CFLAGS -belf"
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6490 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6491 if ${lt_cv_cc_needs_belf+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   ac_ext=c
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499
6500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502
6503 int
6504 main ()
6505 {
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_link "$LINENO"; then :
6512   lt_cv_cc_needs_belf=yes
6513 else
6514   lt_cv_cc_needs_belf=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext \
6517     conftest$ac_exeext conftest.$ac_ext
6518      ac_ext=c
6519 ac_cpp='$CPP $CPPFLAGS'
6520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523
6524 fi
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6526 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6527   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6529     CFLAGS="$SAVE_CFLAGS"
6530   fi
6531   ;;
6532 *-*solaris*)
6533   # Find out which ABI we are using.
6534   echo 'int i;' > conftest.$ac_ext
6535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536   (eval $ac_compile) 2>&5
6537   ac_status=$?
6538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539   test $ac_status = 0; }; then
6540     case `/usr/bin/file conftest.o` in
6541     *64-bit*)
6542       case $lt_cv_prog_gnu_ld in
6543       yes*)
6544         case $host in
6545         i?86-*-solaris*)
6546           LD="${LD-ld} -m elf_x86_64"
6547           ;;
6548         sparc*-*-solaris*)
6549           LD="${LD-ld} -m elf64_sparc"
6550           ;;
6551         esac
6552         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6553         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6554           LD="${LD-ld}_sol2"
6555         fi
6556         ;;
6557       *)
6558         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6559           LD="${LD-ld} -64"
6560         fi
6561         ;;
6562       esac
6563       ;;
6564     esac
6565   fi
6566   rm -rf conftest*
6567   ;;
6568 esac
6569
6570 need_locks="$enable_libtool_lock"
6571
6572 if test -n "$ac_tool_prefix"; then
6573   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}mt; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   if test -n "$MANIFEST_TOOL"; then
6581   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588     for ac_exec_ext in '' $ac_executable_extensions; do
6589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595   done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6601 if test -n "$MANIFEST_TOOL"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6603 $as_echo "$MANIFEST_TOOL" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609
6610 fi
6611 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6612   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6613   # Extract the first word of "mt", so it can be a program name with args.
6614 set dummy mt; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   if test -n "$ac_ct_MANIFEST_TOOL"; then
6621   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628     for ac_exec_ext in '' $ac_executable_extensions; do
6629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635   done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6641 if test -n "$ac_ct_MANIFEST_TOOL"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6643 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6644 else
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6650     MANIFEST_TOOL=":"
6651   else
6652     case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6657 esac
6658     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6659   fi
6660 else
6661   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6662 fi
6663
6664 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6666 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6667 if ${lt_cv_path_mainfest_tool+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   lt_cv_path_mainfest_tool=no
6671   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6672   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6673   cat conftest.err >&5
6674   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6675     lt_cv_path_mainfest_tool=yes
6676   fi
6677   rm -f conftest*
6678 fi
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6680 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6681 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6682   MANIFEST_TOOL=:
6683 fi
6684
6685
6686
6687
6688
6689
6690   case $host_os in
6691     rhapsody* | darwin*)
6692     if test -n "$ac_tool_prefix"; then
6693   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$DSYMUTIL"; then
6701   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6721 if test -n "$DSYMUTIL"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6723 $as_echo "$DSYMUTIL" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_prog_DSYMUTIL"; then
6732   ac_ct_DSYMUTIL=$DSYMUTIL
6733   # Extract the first word of "dsymutil", so it can be a program name with args.
6734 set dummy dsymutil; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$ac_ct_DSYMUTIL"; then
6741   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6761 if test -n "$ac_ct_DSYMUTIL"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6763 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769   if test "x$ac_ct_DSYMUTIL" = x; then
6770     DSYMUTIL=":"
6771   else
6772     case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778     DSYMUTIL=$ac_ct_DSYMUTIL
6779   fi
6780 else
6781   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6782 fi
6783
6784     if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_NMEDIT+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$NMEDIT"; then
6793   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 NMEDIT=$ac_cv_prog_NMEDIT
6813 if test -n "$NMEDIT"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6815 $as_echo "$NMEDIT" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_NMEDIT"; then
6824   ac_ct_NMEDIT=$NMEDIT
6825   # Extract the first word of "nmedit", so it can be a program name with args.
6826 set dummy nmedit; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$ac_ct_NMEDIT"; then
6833   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6853 if test -n "$ac_ct_NMEDIT"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6855 $as_echo "$ac_ct_NMEDIT" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_NMEDIT" = x; then
6862     NMEDIT=":"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870     NMEDIT=$ac_ct_NMEDIT
6871   fi
6872 else
6873   NMEDIT="$ac_cv_prog_NMEDIT"
6874 fi
6875
6876     if test -n "$ac_tool_prefix"; then
6877   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_LIPO+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$LIPO"; then
6885   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 LIPO=$ac_cv_prog_LIPO
6905 if test -n "$LIPO"; then
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6907 $as_echo "$LIPO" >&6; }
6908 else
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_LIPO"; then
6916   ac_ct_LIPO=$LIPO
6917   # Extract the first word of "lipo", so it can be a program name with args.
6918 set dummy lipo; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   if test -n "$ac_ct_LIPO"; then
6925   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932     for ac_exec_ext in '' $ac_executable_extensions; do
6933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934     ac_cv_prog_ac_ct_LIPO="lipo"
6935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939   done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6945 if test -n "$ac_ct_LIPO"; then
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6947 $as_echo "$ac_ct_LIPO" >&6; }
6948 else
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953   if test "x$ac_ct_LIPO" = x; then
6954     LIPO=":"
6955   else
6956     case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962     LIPO=$ac_ct_LIPO
6963   fi
6964 else
6965   LIPO="$ac_cv_prog_LIPO"
6966 fi
6967
6968     if test -n "$ac_tool_prefix"; then
6969   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}otool; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_OTOOL+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   if test -n "$OTOOL"; then
6977   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984     for ac_exec_ext in '' $ac_executable_extensions; do
6985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991   done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 OTOOL=$ac_cv_prog_OTOOL
6997 if test -n "$OTOOL"; then
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6999 $as_echo "$OTOOL" >&6; }
7000 else
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 fi
7004
7005
7006 fi
7007 if test -z "$ac_cv_prog_OTOOL"; then
7008   ac_ct_OTOOL=$OTOOL
7009   # Extract the first word of "otool", so it can be a program name with args.
7010 set dummy otool; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   if test -n "$ac_ct_OTOOL"; then
7017   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024     for ac_exec_ext in '' $ac_executable_extensions; do
7025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026     ac_cv_prog_ac_ct_OTOOL="otool"
7027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031   done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7037 if test -n "$ac_ct_OTOOL"; then
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7039 $as_echo "$ac_ct_OTOOL" >&6; }
7040 else
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7043 fi
7044
7045   if test "x$ac_ct_OTOOL" = x; then
7046     OTOOL=":"
7047   else
7048     case $cross_compiling:$ac_tool_warned in
7049 yes:)
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052 ac_tool_warned=yes ;;
7053 esac
7054     OTOOL=$ac_ct_OTOOL
7055   fi
7056 else
7057   OTOOL="$ac_cv_prog_OTOOL"
7058 fi
7059
7060     if test -n "$ac_tool_prefix"; then
7061   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_OTOOL64+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   if test -n "$OTOOL64"; then
7069   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076     for ac_exec_ext in '' $ac_executable_extensions; do
7077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083   done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 OTOOL64=$ac_cv_prog_OTOOL64
7089 if test -n "$OTOOL64"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7091 $as_echo "$OTOOL64" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_OTOOL64"; then
7100   ac_ct_OTOOL64=$OTOOL64
7101   # Extract the first word of "otool64", so it can be a program name with args.
7102 set dummy otool64; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if test -n "$ac_ct_OTOOL64"; then
7109   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118     ac_cv_prog_ac_ct_OTOOL64="otool64"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7129 if test -n "$ac_ct_OTOOL64"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7131 $as_echo "$ac_ct_OTOOL64" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137   if test "x$ac_ct_OTOOL64" = x; then
7138     OTOOL64=":"
7139   else
7140     case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146     OTOOL64=$ac_ct_OTOOL64
7147   fi
7148 else
7149   OTOOL64="$ac_cv_prog_OTOOL64"
7150 fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7179 $as_echo_n "checking for -single_module linker flag... " >&6; }
7180 if ${lt_cv_apple_cc_single_mod+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   lt_cv_apple_cc_single_mod=no
7184       if test -z "${LT_MULTI_MODULE}"; then
7185         # By default we will add the -single_module flag. You can override
7186         # by either setting the environment variable LT_MULTI_MODULE
7187         # non-empty at configure time, or by adding -multi_module to the
7188         # link flags.
7189         rm -rf libconftest.dylib*
7190         echo "int foo(void){return 1;}" > conftest.c
7191         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7192 -dynamiclib -Wl,-single_module conftest.c" >&5
7193         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7194           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7195         _lt_result=$?
7196         # If there is a non-empty error log, and "single_module"
7197         # appears in it, assume the flag caused a linker warning
7198         if test -s conftest.err && $GREP single_module conftest.err; then
7199           cat conftest.err >&5
7200         # Otherwise, if the output was created with a 0 exit code from
7201         # the compiler, it worked.
7202         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7203           lt_cv_apple_cc_single_mod=yes
7204         else
7205           cat conftest.err >&5
7206         fi
7207         rm -rf libconftest.dylib*
7208         rm -f conftest.*
7209       fi
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7212 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7213
7214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7215 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7216 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   lt_cv_ld_exported_symbols_list=no
7220       save_LDFLAGS=$LDFLAGS
7221       echo "_main" > conftest.sym
7222       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7223       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_c_try_link "$LINENO"; then :
7235   lt_cv_ld_exported_symbols_list=yes
7236 else
7237   lt_cv_ld_exported_symbols_list=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext \
7240     conftest$ac_exeext conftest.$ac_ext
7241         LDFLAGS="$save_LDFLAGS"
7242
7243 fi
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7245 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7246
7247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7248 $as_echo_n "checking for -force_load linker flag... " >&6; }
7249 if ${lt_cv_ld_force_load+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   lt_cv_ld_force_load=no
7253       cat > conftest.c << _LT_EOF
7254 int forced_loaded() { return 2;}
7255 _LT_EOF
7256       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7257       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7258       echo "$AR cru libconftest.a conftest.o" >&5
7259       $AR cru libconftest.a conftest.o 2>&5
7260       echo "$RANLIB libconftest.a" >&5
7261       $RANLIB libconftest.a 2>&5
7262       cat > conftest.c << _LT_EOF
7263 int main() { return 0;}
7264 _LT_EOF
7265       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7266       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7267       _lt_result=$?
7268       if test -s conftest.err && $GREP force_load conftest.err; then
7269         cat conftest.err >&5
7270       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7271         lt_cv_ld_force_load=yes
7272       else
7273         cat conftest.err >&5
7274       fi
7275         rm -f conftest.err libconftest.a conftest conftest.c
7276         rm -rf conftest.dSYM
7277
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7280 $as_echo "$lt_cv_ld_force_load" >&6; }
7281     case $host_os in
7282     rhapsody* | darwin1.[012])
7283       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7284     darwin1.*)
7285       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7286     darwin*) # darwin 5.x on
7287       # if running on 10.5 or later, the deployment target defaults
7288       # to the OS version, if on x86, and 10.4, the deployment
7289       # target defaults to 10.4. Don't you love it?
7290       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7291         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7292           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7293         10.[012]*)
7294           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7295         10.*)
7296           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7297       esac
7298     ;;
7299   esac
7300     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7301       _lt_dar_single_mod='$single_module'
7302     fi
7303     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7304       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7305     else
7306       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7307     fi
7308     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7309       _lt_dsymutil='~$DSYMUTIL $lib || :'
7310     else
7311       _lt_dsymutil=
7312     fi
7313     ;;
7314   esac
7315
7316 ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7322 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7323 # On Suns, sometimes $CPP names a directory.
7324 if test -n "$CPP" && test -d "$CPP"; then
7325   CPP=
7326 fi
7327 if test -z "$CPP"; then
7328   if ${ac_cv_prog_CPP+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331       # Double quotes because CPP needs to be expanded
7332     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7333     do
7334       ac_preproc_ok=false
7335 for ac_c_preproc_warn_flag in '' yes
7336 do
7337   # Use a header file that comes with gcc, so configuring glibc
7338   # with a fresh cross-compiler works.
7339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340   # <limits.h> exists even on freestanding compilers.
7341   # On the NeXT, cc -E runs the code through the compiler's parser,
7342   # not just through cpp. "Syntax error" is here to catch this case.
7343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h.  */
7345 #ifdef __STDC__
7346 # include <limits.h>
7347 #else
7348 # include <assert.h>
7349 #endif
7350                      Syntax error
7351 _ACEOF
7352 if ac_fn_c_try_cpp "$LINENO"; then :
7353
7354 else
7355   # Broken: fails on valid input.
7356 continue
7357 fi
7358 rm -f conftest.err conftest.i conftest.$ac_ext
7359
7360   # OK, works on sane cases.  Now check whether nonexistent headers
7361   # can be detected and how.
7362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h.  */
7364 #include <ac_nonexistent.h>
7365 _ACEOF
7366 if ac_fn_c_try_cpp "$LINENO"; then :
7367   # Broken: success on invalid input.
7368 continue
7369 else
7370   # Passes both tests.
7371 ac_preproc_ok=:
7372 break
7373 fi
7374 rm -f conftest.err conftest.i conftest.$ac_ext
7375
7376 done
7377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7378 rm -f conftest.i conftest.err conftest.$ac_ext
7379 if $ac_preproc_ok; then :
7380   break
7381 fi
7382
7383     done
7384     ac_cv_prog_CPP=$CPP
7385
7386 fi
7387   CPP=$ac_cv_prog_CPP
7388 else
7389   ac_cv_prog_CPP=$CPP
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7392 $as_echo "$CPP" >&6; }
7393 ac_preproc_ok=false
7394 for ac_c_preproc_warn_flag in '' yes
7395 do
7396   # Use a header file that comes with gcc, so configuring glibc
7397   # with a fresh cross-compiler works.
7398   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399   # <limits.h> exists even on freestanding compilers.
7400   # On the NeXT, cc -E runs the code through the compiler's parser,
7401   # not just through cpp. "Syntax error" is here to catch this case.
7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h.  */
7404 #ifdef __STDC__
7405 # include <limits.h>
7406 #else
7407 # include <assert.h>
7408 #endif
7409                      Syntax error
7410 _ACEOF
7411 if ac_fn_c_try_cpp "$LINENO"; then :
7412
7413 else
7414   # Broken: fails on valid input.
7415 continue
7416 fi
7417 rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419   # OK, works on sane cases.  Now check whether nonexistent headers
7420   # can be detected and how.
7421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423 #include <ac_nonexistent.h>
7424 _ACEOF
7425 if ac_fn_c_try_cpp "$LINENO"; then :
7426   # Broken: success on invalid input.
7427 continue
7428 else
7429   # Passes both tests.
7430 ac_preproc_ok=:
7431 break
7432 fi
7433 rm -f conftest.err conftest.i conftest.$ac_ext
7434
7435 done
7436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437 rm -f conftest.i conftest.err conftest.$ac_ext
7438 if $ac_preproc_ok; then :
7439
7440 else
7441   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7443 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7444 See \`config.log' for more details" "$LINENO" 5; }
7445 fi
7446
7447 ac_ext=c
7448 ac_cpp='$CPP $CPPFLAGS'
7449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452
7453
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7455 $as_echo_n "checking for ANSI C header files... " >&6; }
7456 if ${ac_cv_header_stdc+:} false; then :
7457   $as_echo_n "(cached) " >&6
7458 else
7459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h.  */
7461 #include <stdlib.h>
7462 #include <stdarg.h>
7463 #include <string.h>
7464 #include <float.h>
7465
7466 int
7467 main ()
7468 {
7469
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475   ac_cv_header_stdc=yes
7476 else
7477   ac_cv_header_stdc=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480
7481 if test $ac_cv_header_stdc = yes; then
7482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h.  */
7485 #include <string.h>
7486
7487 _ACEOF
7488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489   $EGREP "memchr" >/dev/null 2>&1; then :
7490
7491 else
7492   ac_cv_header_stdc=no
7493 fi
7494 rm -f conftest*
7495
7496 fi
7497
7498 if test $ac_cv_header_stdc = yes; then
7499   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h.  */
7502 #include <stdlib.h>
7503
7504 _ACEOF
7505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7506   $EGREP "free" >/dev/null 2>&1; then :
7507
7508 else
7509   ac_cv_header_stdc=no
7510 fi
7511 rm -f conftest*
7512
7513 fi
7514
7515 if test $ac_cv_header_stdc = yes; then
7516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7517   if test "$cross_compiling" = yes; then :
7518   :
7519 else
7520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h.  */
7522 #include <ctype.h>
7523 #include <stdlib.h>
7524 #if ((' ' & 0x0FF) == 0x020)
7525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7527 #else
7528 # define ISLOWER(c) \
7529                    (('a' <= (c) && (c) <= 'i') \
7530                      || ('j' <= (c) && (c) <= 'r') \
7531                      || ('s' <= (c) && (c) <= 'z'))
7532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7533 #endif
7534
7535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7536 int
7537 main ()
7538 {
7539   int i;
7540   for (i = 0; i < 256; i++)
7541     if (XOR (islower (i), ISLOWER (i))
7542         || toupper (i) != TOUPPER (i))
7543       return 2;
7544   return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_run "$LINENO"; then :
7548
7549 else
7550   ac_cv_header_stdc=no
7551 fi
7552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7553   conftest.$ac_objext conftest.beam conftest.$ac_ext
7554 fi
7555
7556 fi
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7559 $as_echo "$ac_cv_header_stdc" >&6; }
7560 if test $ac_cv_header_stdc = yes; then
7561
7562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7563
7564 fi
7565
7566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7568                   inttypes.h stdint.h unistd.h
7569 do :
7570   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7571 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7572 "
7573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7574   cat >>confdefs.h <<_ACEOF
7575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7576 _ACEOF
7577
7578 fi
7579
7580 done
7581
7582
7583 for ac_header in dlfcn.h
7584 do :
7585   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7586 "
7587 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7588   cat >>confdefs.h <<_ACEOF
7589 #define HAVE_DLFCN_H 1
7590 _ACEOF
7591
7592 fi
7593
7594 done
7595
7596
7597
7598
7599
7600 # Set options
7601
7602
7603
7604         enable_dlopen=no
7605
7606
7607   enable_win32_dll=no
7608
7609
7610             # Check whether --enable-shared was given.
7611 if test "${enable_shared+set}" = set; then :
7612   enableval=$enable_shared; p=${PACKAGE-default}
7613     case $enableval in
7614     yes) enable_shared=yes ;;
7615     no) enable_shared=no ;;
7616     *)
7617       enable_shared=no
7618       # Look at the argument we got.  We use all the common list separators.
7619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7620       for pkg in $enableval; do
7621         IFS="$lt_save_ifs"
7622         if test "X$pkg" = "X$p"; then
7623           enable_shared=yes
7624         fi
7625       done
7626       IFS="$lt_save_ifs"
7627       ;;
7628     esac
7629 else
7630   enable_shared=yes
7631 fi
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641   # Check whether --enable-static was given.
7642 if test "${enable_static+set}" = set; then :
7643   enableval=$enable_static; p=${PACKAGE-default}
7644     case $enableval in
7645     yes) enable_static=yes ;;
7646     no) enable_static=no ;;
7647     *)
7648      enable_static=no
7649       # Look at the argument we got.  We use all the common list separators.
7650       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651       for pkg in $enableval; do
7652         IFS="$lt_save_ifs"
7653         if test "X$pkg" = "X$p"; then
7654           enable_static=yes
7655         fi
7656       done
7657       IFS="$lt_save_ifs"
7658       ;;
7659     esac
7660 else
7661   enable_static=yes
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 # Check whether --with-pic was given.
7674 if test "${with_pic+set}" = set; then :
7675   withval=$with_pic; lt_p=${PACKAGE-default}
7676     case $withval in
7677     yes|no) pic_mode=$withval ;;
7678     *)
7679       pic_mode=default
7680       # Look at the argument we got.  We use all the common list separators.
7681       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682       for lt_pkg in $withval; do
7683         IFS="$lt_save_ifs"
7684         if test "X$lt_pkg" = "X$lt_p"; then
7685           pic_mode=yes
7686         fi
7687       done
7688       IFS="$lt_save_ifs"
7689       ;;
7690     esac
7691 else
7692   pic_mode=default
7693 fi
7694
7695
7696 test -z "$pic_mode" && pic_mode=default
7697
7698
7699
7700
7701
7702
7703
7704   # Check whether --enable-fast-install was given.
7705 if test "${enable_fast_install+set}" = set; then :
7706   enableval=$enable_fast_install; p=${PACKAGE-default}
7707     case $enableval in
7708     yes) enable_fast_install=yes ;;
7709     no) enable_fast_install=no ;;
7710     *)
7711       enable_fast_install=no
7712       # Look at the argument we got.  We use all the common list separators.
7713       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714       for pkg in $enableval; do
7715         IFS="$lt_save_ifs"
7716         if test "X$pkg" = "X$p"; then
7717           enable_fast_install=yes
7718         fi
7719       done
7720       IFS="$lt_save_ifs"
7721       ;;
7722     esac
7723 else
7724   enable_fast_install=yes
7725 fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737 # This can be used to rebuild libtool when needed
7738 LIBTOOL_DEPS="$ltmain"
7739
7740 # Always use our own libtool.
7741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772 test -z "$LN_S" && LN_S="ln -s"
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 if test -n "${ZSH_VERSION+set}" ; then
7788    setopt NO_GLOB_SUBST
7789 fi
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7792 $as_echo_n "checking for objdir... " >&6; }
7793 if ${lt_cv_objdir+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   rm -f .libs 2>/dev/null
7797 mkdir .libs 2>/dev/null
7798 if test -d .libs; then
7799   lt_cv_objdir=.libs
7800 else
7801   # MS-DOS does not allow filenames that begin with a dot.
7802   lt_cv_objdir=_libs
7803 fi
7804 rmdir .libs 2>/dev/null
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7807 $as_echo "$lt_cv_objdir" >&6; }
7808 objdir=$lt_cv_objdir
7809
7810
7811
7812
7813
7814 cat >>confdefs.h <<_ACEOF
7815 #define LT_OBJDIR "$lt_cv_objdir/"
7816 _ACEOF
7817
7818
7819
7820
7821 case $host_os in
7822 aix3*)
7823   # AIX sometimes has problems with the GCC collect2 program.  For some
7824   # reason, if we set the COLLECT_NAMES environment variable, the problems
7825   # vanish in a puff of smoke.
7826   if test "X${COLLECT_NAMES+set}" != Xset; then
7827     COLLECT_NAMES=
7828     export COLLECT_NAMES
7829   fi
7830   ;;
7831 esac
7832
7833 # Global variables:
7834 ofile=libtool
7835 can_build_shared=yes
7836
7837 # All known linkers require a `.a' archive for static linking (except MSVC,
7838 # which needs '.lib').
7839 libext=a
7840
7841 with_gnu_ld="$lt_cv_prog_gnu_ld"
7842
7843 old_CC="$CC"
7844 old_CFLAGS="$CFLAGS"
7845
7846 # Set sane defaults for various variables
7847 test -z "$CC" && CC=cc
7848 test -z "$LTCC" && LTCC=$CC
7849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7850 test -z "$LD" && LD=ld
7851 test -z "$ac_objext" && ac_objext=o
7852
7853 for cc_temp in $compiler""; do
7854   case $cc_temp in
7855     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7856     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7857     \-*) ;;
7858     *) break;;
7859   esac
7860 done
7861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7862
7863
7864 # Only perform the check for file, if the check method requires it
7865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7866 case $deplibs_check_method in
7867 file_magic*)
7868   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7871 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874   case $MAGIC_CMD in
7875 [\\/*] |  ?:[\\/]*)
7876   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7877   ;;
7878 *)
7879   lt_save_MAGIC_CMD="$MAGIC_CMD"
7880   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7881   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7882   for ac_dir in $ac_dummy; do
7883     IFS="$lt_save_ifs"
7884     test -z "$ac_dir" && ac_dir=.
7885     if test -f $ac_dir/${ac_tool_prefix}file; then
7886       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7887       if test -n "$file_magic_test_file"; then
7888         case $deplibs_check_method in
7889         "file_magic "*)
7890           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7891           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7893             $EGREP "$file_magic_regex" > /dev/null; then
7894             :
7895           else
7896             cat <<_LT_EOF 1>&2
7897
7898 *** Warning: the command libtool uses to detect shared libraries,
7899 *** $file_magic_cmd, produces output that libtool cannot recognize.
7900 *** The result is that libtool may fail to recognize shared libraries
7901 *** as such.  This will affect the creation of libtool libraries that
7902 *** depend on shared libraries, but programs linked with such libtool
7903 *** libraries will work regardless of this problem.  Nevertheless, you
7904 *** may want to report the problem to your system manager and/or to
7905 *** bug-libtool@gnu.org
7906
7907 _LT_EOF
7908           fi ;;
7909         esac
7910       fi
7911       break
7912     fi
7913   done
7914   IFS="$lt_save_ifs"
7915   MAGIC_CMD="$lt_save_MAGIC_CMD"
7916   ;;
7917 esac
7918 fi
7919
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if test -n "$MAGIC_CMD"; then
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7923 $as_echo "$MAGIC_CMD" >&6; }
7924 else
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930
7931
7932
7933 if test -z "$lt_cv_path_MAGIC_CMD"; then
7934   if test -n "$ac_tool_prefix"; then
7935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7936 $as_echo_n "checking for file... " >&6; }
7937 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7938   $as_echo_n "(cached) " >&6
7939 else
7940   case $MAGIC_CMD in
7941 [\\/*] |  ?:[\\/]*)
7942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7943   ;;
7944 *)
7945   lt_save_MAGIC_CMD="$MAGIC_CMD"
7946   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7947   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7948   for ac_dir in $ac_dummy; do
7949     IFS="$lt_save_ifs"
7950     test -z "$ac_dir" && ac_dir=.
7951     if test -f $ac_dir/file; then
7952       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7953       if test -n "$file_magic_test_file"; then
7954         case $deplibs_check_method in
7955         "file_magic "*)
7956           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7957           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7959             $EGREP "$file_magic_regex" > /dev/null; then
7960             :
7961           else
7962             cat <<_LT_EOF 1>&2
7963
7964 *** Warning: the command libtool uses to detect shared libraries,
7965 *** $file_magic_cmd, produces output that libtool cannot recognize.
7966 *** The result is that libtool may fail to recognize shared libraries
7967 *** as such.  This will affect the creation of libtool libraries that
7968 *** depend on shared libraries, but programs linked with such libtool
7969 *** libraries will work regardless of this problem.  Nevertheless, you
7970 *** may want to report the problem to your system manager and/or to
7971 *** bug-libtool@gnu.org
7972
7973 _LT_EOF
7974           fi ;;
7975         esac
7976       fi
7977       break
7978     fi
7979   done
7980   IFS="$lt_save_ifs"
7981   MAGIC_CMD="$lt_save_MAGIC_CMD"
7982   ;;
7983 esac
7984 fi
7985
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if test -n "$MAGIC_CMD"; then
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7989 $as_echo "$MAGIC_CMD" >&6; }
7990 else
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994
7995
7996   else
7997     MAGIC_CMD=:
7998   fi
7999 fi
8000
8001   fi
8002   ;;
8003 esac
8004
8005 # Use C for the default configuration in the libtool script
8006
8007 lt_save_CC="$CC"
8008 ac_ext=c
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013
8014
8015 # Source file extension for C test sources.
8016 ac_ext=c
8017
8018 # Object file extension for compiled C test sources.
8019 objext=o
8020 objext=$objext
8021
8022 # Code to be used in simple compile tests
8023 lt_simple_compile_test_code="int some_variable = 0;"
8024
8025 # Code to be used in simple link tests
8026 lt_simple_link_test_code='int main(){return(0);}'
8027
8028
8029
8030
8031
8032
8033
8034 # If no C compiler was specified, use CC.
8035 LTCC=${LTCC-"$CC"}
8036
8037 # If no C compiler flags were specified, use CFLAGS.
8038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8039
8040 # Allow CC to be a program name with arguments.
8041 compiler=$CC
8042
8043 # Save the default compiler, since it gets overwritten when the other
8044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8045 compiler_DEFAULT=$CC
8046
8047 # save warnings/boilerplate of simple test code
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051 _lt_compiler_boilerplate=`cat conftest.err`
8052 $RM conftest*
8053
8054 ac_outfile=conftest.$ac_objext
8055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8057 _lt_linker_boilerplate=`cat conftest.err`
8058 $RM -r conftest*
8059
8060
8061 ## CAVEAT EMPTOR:
8062 ## There is no encapsulation within the following macros, do not change
8063 ## the running order or otherwise move them around unless you know exactly
8064 ## what you are doing...
8065 if test -n "$compiler"; then
8066
8067 lt_prog_compiler_no_builtin_flag=
8068
8069 if test "$GCC" = yes; then
8070   case $cc_basename in
8071   nvcc*)
8072     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8073   *)
8074     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8075   esac
8076
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8078 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8079 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   lt_cv_prog_compiler_rtti_exceptions=no
8083    ac_outfile=conftest.$ac_objext
8084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085    lt_compiler_flag="-fno-rtti -fno-exceptions"
8086    # Insert the option either (1) after the last *FLAGS variable, or
8087    # (2) before a word containing "conftest.", or (3) at the end.
8088    # Note that $ac_compile itself does not contain backslashes and begins
8089    # with a dollar sign (not a hyphen), so the echo should work correctly.
8090    # The option is referenced via a variable to avoid confusing sed.
8091    lt_compile=`echo "$ac_compile" | $SED \
8092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094    -e 's:$: $lt_compiler_flag:'`
8095    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096    (eval "$lt_compile" 2>conftest.err)
8097    ac_status=$?
8098    cat conftest.err >&5
8099    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100    if (exit $ac_status) && test -s "$ac_outfile"; then
8101      # The compiler can only warn and ignore the option if not recognized
8102      # So say no if there are warnings other than the usual output.
8103      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8104      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8106        lt_cv_prog_compiler_rtti_exceptions=yes
8107      fi
8108    fi
8109    $RM conftest*
8110
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8114
8115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8116     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8117 else
8118     :
8119 fi
8120
8121 fi
8122
8123
8124
8125
8126
8127
8128   lt_prog_compiler_wl=
8129 lt_prog_compiler_pic=
8130 lt_prog_compiler_static=
8131
8132
8133   if test "$GCC" = yes; then
8134     lt_prog_compiler_wl='-Wl,'
8135     lt_prog_compiler_static='-static'
8136
8137     case $host_os in
8138       aix*)
8139       # All AIX code is PIC.
8140       if test "$host_cpu" = ia64; then
8141         # AIX 5 now supports IA64 processor
8142         lt_prog_compiler_static='-Bstatic'
8143       fi
8144       ;;
8145
8146     amigaos*)
8147       case $host_cpu in
8148       powerpc)
8149             # see comment about AmigaOS4 .so support
8150             lt_prog_compiler_pic='-fPIC'
8151         ;;
8152       m68k)
8153             # FIXME: we need at least 68020 code to build shared libraries, but
8154             # adding the `-m68020' flag to GCC prevents building anything better,
8155             # like `-m68040'.
8156             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8157         ;;
8158       esac
8159       ;;
8160
8161     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8162       # PIC is the default for these OSes.
8163       ;;
8164
8165     mingw* | cygwin* | pw32* | os2* | cegcc*)
8166       # This hack is so that the source file can tell whether it is being
8167       # built for inclusion in a dll (and should export symbols for example).
8168       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8169       # (--disable-auto-import) libraries
8170       lt_prog_compiler_pic='-DDLL_EXPORT'
8171       ;;
8172
8173     darwin* | rhapsody*)
8174       # PIC is the default on this platform
8175       # Common symbols not allowed in MH_DYLIB files
8176       lt_prog_compiler_pic='-fno-common'
8177       ;;
8178
8179     haiku*)
8180       # PIC is the default for Haiku.
8181       # The "-static" flag exists, but is broken.
8182       lt_prog_compiler_static=
8183       ;;
8184
8185     hpux*)
8186       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8187       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8188       # sets the default TLS model and affects inlining.
8189       case $host_cpu in
8190       hppa*64*)
8191         # +Z the default
8192         ;;
8193       *)
8194         lt_prog_compiler_pic='-fPIC'
8195         ;;
8196       esac
8197       ;;
8198
8199     interix[3-9]*)
8200       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8201       # Instead, we relocate shared libraries at runtime.
8202       ;;
8203
8204     msdosdjgpp*)
8205       # Just because we use GCC doesn't mean we suddenly get shared libraries
8206       # on systems that don't support them.
8207       lt_prog_compiler_can_build_shared=no
8208       enable_shared=no
8209       ;;
8210
8211     *nto* | *qnx*)
8212       # QNX uses GNU C++, but need to define -shared option too, otherwise
8213       # it will coredump.
8214       lt_prog_compiler_pic='-fPIC -shared'
8215       ;;
8216
8217     sysv4*MP*)
8218       if test -d /usr/nec; then
8219         lt_prog_compiler_pic=-Kconform_pic
8220       fi
8221       ;;
8222
8223     *)
8224       lt_prog_compiler_pic='-fPIC'
8225       ;;
8226     esac
8227
8228     case $cc_basename in
8229     nvcc*) # Cuda Compiler Driver 2.2
8230       lt_prog_compiler_wl='-Xlinker '
8231       if test -n "$lt_prog_compiler_pic"; then
8232         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8233       fi
8234       ;;
8235     esac
8236   else
8237     # PORTME Check for flag to pass linker flags through the system compiler.
8238     case $host_os in
8239     aix*)
8240       lt_prog_compiler_wl='-Wl,'
8241       if test "$host_cpu" = ia64; then
8242         # AIX 5 now supports IA64 processor
8243         lt_prog_compiler_static='-Bstatic'
8244       else
8245         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8246       fi
8247       ;;
8248
8249     mingw* | cygwin* | pw32* | os2* | cegcc*)
8250       # This hack is so that the source file can tell whether it is being
8251       # built for inclusion in a dll (and should export symbols for example).
8252       lt_prog_compiler_pic='-DDLL_EXPORT'
8253       ;;
8254
8255     hpux9* | hpux10* | hpux11*)
8256       lt_prog_compiler_wl='-Wl,'
8257       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8258       # not for PA HP-UX.
8259       case $host_cpu in
8260       hppa*64*|ia64*)
8261         # +Z the default
8262         ;;
8263       *)
8264         lt_prog_compiler_pic='+Z'
8265         ;;
8266       esac
8267       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268       lt_prog_compiler_static='${wl}-a ${wl}archive'
8269       ;;
8270
8271     irix5* | irix6* | nonstopux*)
8272       lt_prog_compiler_wl='-Wl,'
8273       # PIC (with -KPIC) is the default.
8274       lt_prog_compiler_static='-non_shared'
8275       ;;
8276
8277     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8278       case $cc_basename in
8279       # old Intel for x86_64 which still supported -KPIC.
8280       ecc*)
8281         lt_prog_compiler_wl='-Wl,'
8282         lt_prog_compiler_pic='-KPIC'
8283         lt_prog_compiler_static='-static'
8284         ;;
8285       # icc used to be incompatible with GCC.
8286       # ICC 10 doesn't accept -KPIC any more.
8287       icc* | ifort*)
8288         lt_prog_compiler_wl='-Wl,'
8289         lt_prog_compiler_pic='-fPIC'
8290         lt_prog_compiler_static='-static'
8291         ;;
8292       # Lahey Fortran 8.1.
8293       lf95*)
8294         lt_prog_compiler_wl='-Wl,'
8295         lt_prog_compiler_pic='--shared'
8296         lt_prog_compiler_static='--static'
8297         ;;
8298       nagfor*)
8299         # NAG Fortran compiler
8300         lt_prog_compiler_wl='-Wl,-Wl,,'
8301         lt_prog_compiler_pic='-PIC'
8302         lt_prog_compiler_static='-Bstatic'
8303         ;;
8304       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8305         # Portland Group compilers (*not* the Pentium gcc compiler,
8306         # which looks to be a dead project)
8307         lt_prog_compiler_wl='-Wl,'
8308         lt_prog_compiler_pic='-fpic'
8309         lt_prog_compiler_static='-Bstatic'
8310         ;;
8311       ccc*)
8312         lt_prog_compiler_wl='-Wl,'
8313         # All Alpha code is PIC.
8314         lt_prog_compiler_static='-non_shared'
8315         ;;
8316       xl* | bgxl* | bgf* | mpixl*)
8317         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8318         lt_prog_compiler_wl='-Wl,'
8319         lt_prog_compiler_pic='-qpic'
8320         lt_prog_compiler_static='-qstaticlink'
8321         ;;
8322       *)
8323         case `$CC -V 2>&1 | sed 5q` in
8324         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8325           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326           lt_prog_compiler_pic='-KPIC'
8327           lt_prog_compiler_static='-Bstatic'
8328           lt_prog_compiler_wl=''
8329           ;;
8330         *Sun\ F* | *Sun*Fortran*)
8331           lt_prog_compiler_pic='-KPIC'
8332           lt_prog_compiler_static='-Bstatic'
8333           lt_prog_compiler_wl='-Qoption ld '
8334           ;;
8335         *Sun\ C*)
8336           # Sun C 5.9
8337           lt_prog_compiler_pic='-KPIC'
8338           lt_prog_compiler_static='-Bstatic'
8339           lt_prog_compiler_wl='-Wl,'
8340           ;;
8341         *Intel*\ [CF]*Compiler*)
8342           lt_prog_compiler_wl='-Wl,'
8343           lt_prog_compiler_pic='-fPIC'
8344           lt_prog_compiler_static='-static'
8345           ;;
8346         *Portland\ Group*)
8347           lt_prog_compiler_wl='-Wl,'
8348           lt_prog_compiler_pic='-fpic'
8349           lt_prog_compiler_static='-Bstatic'
8350           ;;
8351         esac
8352         ;;
8353       esac
8354       ;;
8355
8356     newsos6)
8357       lt_prog_compiler_pic='-KPIC'
8358       lt_prog_compiler_static='-Bstatic'
8359       ;;
8360
8361     *nto* | *qnx*)
8362       # QNX uses GNU C++, but need to define -shared option too, otherwise
8363       # it will coredump.
8364       lt_prog_compiler_pic='-fPIC -shared'
8365       ;;
8366
8367     osf3* | osf4* | osf5*)
8368       lt_prog_compiler_wl='-Wl,'
8369       # All OSF/1 code is PIC.
8370       lt_prog_compiler_static='-non_shared'
8371       ;;
8372
8373     rdos*)
8374       lt_prog_compiler_static='-non_shared'
8375       ;;
8376
8377     solaris*)
8378       lt_prog_compiler_pic='-KPIC'
8379       lt_prog_compiler_static='-Bstatic'
8380       case $cc_basename in
8381       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8382         lt_prog_compiler_wl='-Qoption ld ';;
8383       *)
8384         lt_prog_compiler_wl='-Wl,';;
8385       esac
8386       ;;
8387
8388     sunos4*)
8389       lt_prog_compiler_wl='-Qoption ld '
8390       lt_prog_compiler_pic='-PIC'
8391       lt_prog_compiler_static='-Bstatic'
8392       ;;
8393
8394     sysv4 | sysv4.2uw2* | sysv4.3*)
8395       lt_prog_compiler_wl='-Wl,'
8396       lt_prog_compiler_pic='-KPIC'
8397       lt_prog_compiler_static='-Bstatic'
8398       ;;
8399
8400     sysv4*MP*)
8401       if test -d /usr/nec ;then
8402         lt_prog_compiler_pic='-Kconform_pic'
8403         lt_prog_compiler_static='-Bstatic'
8404       fi
8405       ;;
8406
8407     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8408       lt_prog_compiler_wl='-Wl,'
8409       lt_prog_compiler_pic='-KPIC'
8410       lt_prog_compiler_static='-Bstatic'
8411       ;;
8412
8413     unicos*)
8414       lt_prog_compiler_wl='-Wl,'
8415       lt_prog_compiler_can_build_shared=no
8416       ;;
8417
8418     uts4*)
8419       lt_prog_compiler_pic='-pic'
8420       lt_prog_compiler_static='-Bstatic'
8421       ;;
8422
8423     *)
8424       lt_prog_compiler_can_build_shared=no
8425       ;;
8426     esac
8427   fi
8428
8429 case $host_os in
8430   # For platforms which do not support PIC, -DPIC is meaningless:
8431   *djgpp*)
8432     lt_prog_compiler_pic=
8433     ;;
8434   *)
8435     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8436     ;;
8437 esac
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8441 if ${lt_cv_prog_compiler_pic+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8447 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8448 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8449
8450 #
8451 # Check to make sure the PIC flag actually works.
8452 #
8453 if test -n "$lt_prog_compiler_pic"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8455 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8456 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   lt_cv_prog_compiler_pic_works=no
8460    ac_outfile=conftest.$ac_objext
8461    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8463    # Insert the option either (1) after the last *FLAGS variable, or
8464    # (2) before a word containing "conftest.", or (3) at the end.
8465    # Note that $ac_compile itself does not contain backslashes and begins
8466    # with a dollar sign (not a hyphen), so the echo should work correctly.
8467    # The option is referenced via a variable to avoid confusing sed.
8468    lt_compile=`echo "$ac_compile" | $SED \
8469    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471    -e 's:$: $lt_compiler_flag:'`
8472    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473    (eval "$lt_compile" 2>conftest.err)
8474    ac_status=$?
8475    cat conftest.err >&5
8476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477    if (exit $ac_status) && test -s "$ac_outfile"; then
8478      # The compiler can only warn and ignore the option if not recognized
8479      # So say no if there are warnings other than the usual output.
8480      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483        lt_cv_prog_compiler_pic_works=yes
8484      fi
8485    fi
8486    $RM conftest*
8487
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8490 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8491
8492 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8493     case $lt_prog_compiler_pic in
8494      "" | " "*) ;;
8495      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8496      esac
8497 else
8498     lt_prog_compiler_pic=
8499      lt_prog_compiler_can_build_shared=no
8500 fi
8501
8502 fi
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 #
8515 # Check to make sure the static flag actually works.
8516 #
8517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8520 if ${lt_cv_prog_compiler_static_works+:} false; then :
8521   $as_echo_n "(cached) " >&6
8522 else
8523   lt_cv_prog_compiler_static_works=no
8524    save_LDFLAGS="$LDFLAGS"
8525    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8526    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8527    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8528      # The linker can only warn and ignore the option if not recognized
8529      # So say no if there are warnings
8530      if test -s conftest.err; then
8531        # Append any errors to the config.log.
8532        cat conftest.err 1>&5
8533        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8534        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8535        if diff conftest.exp conftest.er2 >/dev/null; then
8536          lt_cv_prog_compiler_static_works=yes
8537        fi
8538      else
8539        lt_cv_prog_compiler_static_works=yes
8540      fi
8541    fi
8542    $RM -r conftest*
8543    LDFLAGS="$save_LDFLAGS"
8544
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8547 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8548
8549 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8550     :
8551 else
8552     lt_prog_compiler_static=
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8563 if ${lt_cv_prog_compiler_c_o+:} false; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   lt_cv_prog_compiler_c_o=no
8567    $RM -r conftest 2>/dev/null
8568    mkdir conftest
8569    cd conftest
8570    mkdir out
8571    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572
8573    lt_compiler_flag="-o out/conftest2.$ac_objext"
8574    # Insert the option either (1) after the last *FLAGS variable, or
8575    # (2) before a word containing "conftest.", or (3) at the end.
8576    # Note that $ac_compile itself does not contain backslashes and begins
8577    # with a dollar sign (not a hyphen), so the echo should work correctly.
8578    lt_compile=`echo "$ac_compile" | $SED \
8579    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581    -e 's:$: $lt_compiler_flag:'`
8582    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583    (eval "$lt_compile" 2>out/conftest.err)
8584    ac_status=$?
8585    cat out/conftest.err >&5
8586    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8588    then
8589      # The compiler can only warn and ignore the option if not recognized
8590      # So say no if there are warnings
8591      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8592      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8593      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594        lt_cv_prog_compiler_c_o=yes
8595      fi
8596    fi
8597    chmod u+w . 2>&5
8598    $RM conftest*
8599    # SGI C++ compiler will create directory out/ii_files/ for
8600    # template instantiation
8601    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8602    $RM out/* && rmdir out
8603    cd ..
8604    $RM -r conftest
8605    $RM conftest*
8606
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8609 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8610
8611
8612
8613
8614
8615
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8618 if ${lt_cv_prog_compiler_c_o+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   lt_cv_prog_compiler_c_o=no
8622    $RM -r conftest 2>/dev/null
8623    mkdir conftest
8624    cd conftest
8625    mkdir out
8626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8627
8628    lt_compiler_flag="-o out/conftest2.$ac_objext"
8629    # Insert the option either (1) after the last *FLAGS variable, or
8630    # (2) before a word containing "conftest.", or (3) at the end.
8631    # Note that $ac_compile itself does not contain backslashes and begins
8632    # with a dollar sign (not a hyphen), so the echo should work correctly.
8633    lt_compile=`echo "$ac_compile" | $SED \
8634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8636    -e 's:$: $lt_compiler_flag:'`
8637    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8638    (eval "$lt_compile" 2>out/conftest.err)
8639    ac_status=$?
8640    cat out/conftest.err >&5
8641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8643    then
8644      # The compiler can only warn and ignore the option if not recognized
8645      # So say no if there are warnings
8646      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8647      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8648      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8649        lt_cv_prog_compiler_c_o=yes
8650      fi
8651    fi
8652    chmod u+w . 2>&5
8653    $RM conftest*
8654    # SGI C++ compiler will create directory out/ii_files/ for
8655    # template instantiation
8656    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8657    $RM out/* && rmdir out
8658    cd ..
8659    $RM -r conftest
8660    $RM conftest*
8661
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8665
8666
8667
8668
8669 hard_links="nottested"
8670 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8671   # do not overwrite the value of need_locks provided by the user
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8673 $as_echo_n "checking if we can lock with hard links... " >&6; }
8674   hard_links=yes
8675   $RM conftest*
8676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8677   touch conftest.a
8678   ln conftest.a conftest.b 2>&5 || hard_links=no
8679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8681 $as_echo "$hard_links" >&6; }
8682   if test "$hard_links" = no; then
8683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8684 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8685     need_locks=warn
8686   fi
8687 else
8688   need_locks=no
8689 fi
8690
8691
8692
8693
8694
8695
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8698
8699   runpath_var=
8700   allow_undefined_flag=
8701   always_export_symbols=no
8702   archive_cmds=
8703   archive_expsym_cmds=
8704   compiler_needs_object=no
8705   enable_shared_with_static_runtimes=no
8706   export_dynamic_flag_spec=
8707   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8708   hardcode_automatic=no
8709   hardcode_direct=no
8710   hardcode_direct_absolute=no
8711   hardcode_libdir_flag_spec=
8712   hardcode_libdir_separator=
8713   hardcode_minus_L=no
8714   hardcode_shlibpath_var=unsupported
8715   inherit_rpath=no
8716   link_all_deplibs=unknown
8717   module_cmds=
8718   module_expsym_cmds=
8719   old_archive_from_new_cmds=
8720   old_archive_from_expsyms_cmds=
8721   thread_safe_flag_spec=
8722   whole_archive_flag_spec=
8723   # include_expsyms should be a list of space-separated symbols to be *always*
8724   # included in the symbol list
8725   include_expsyms=
8726   # exclude_expsyms can be an extended regexp of symbols to exclude
8727   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729   # as well as any symbol that contains `d'.
8730   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732   # platforms (ab)use it in PIC code, but their linkers get confused if
8733   # the symbol is explicitly referenced.  Since portable code cannot
8734   # rely on this symbol name, it's probably fine to never include it in
8735   # preloaded symbol tables.
8736   # Exclude shared library initialization/finalization symbols.
8737   extract_expsyms_cmds=
8738
8739   case $host_os in
8740   cygwin* | mingw* | pw32* | cegcc*)
8741     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742     # When not using gcc, we currently assume that we are using
8743     # Microsoft Visual C++.
8744     if test "$GCC" != yes; then
8745       with_gnu_ld=no
8746     fi
8747     ;;
8748   interix*)
8749     # we just hope/assume this is gcc and not c89 (= MSVC++)
8750     with_gnu_ld=yes
8751     ;;
8752   openbsd*)
8753     with_gnu_ld=no
8754     ;;
8755   esac
8756
8757   ld_shlibs=yes
8758
8759   # On some targets, GNU ld is compatible enough with the native linker
8760   # that we're better off using the native interface for both.
8761   lt_use_gnu_ld_interface=no
8762   if test "$with_gnu_ld" = yes; then
8763     case $host_os in
8764       aix*)
8765         # The AIX port of GNU ld has always aspired to compatibility
8766         # with the native linker.  However, as the warning in the GNU ld
8767         # block says, versions before 2.19.5* couldn't really create working
8768         # shared libraries, regardless of the interface used.
8769         case `$LD -v 2>&1` in
8770           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8773           *)
8774             lt_use_gnu_ld_interface=yes
8775             ;;
8776         esac
8777         ;;
8778       *)
8779         lt_use_gnu_ld_interface=yes
8780         ;;
8781     esac
8782   fi
8783
8784   if test "$lt_use_gnu_ld_interface" = yes; then
8785     # If archive_cmds runs LD, not CC, wlarc should be empty
8786     wlarc='${wl}'
8787
8788     # Set some defaults for GNU ld with shared library support. These
8789     # are reset later if shared libraries are not supported. Putting them
8790     # here allows them to be overridden if necessary.
8791     runpath_var=LD_RUN_PATH
8792     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793     export_dynamic_flag_spec='${wl}--export-dynamic'
8794     # ancient GNU ld didn't support --whole-archive et. al.
8795     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797     else
8798       whole_archive_flag_spec=
8799     fi
8800     supports_anon_versioning=no
8801     case `$LD -v 2>&1` in
8802       *GNU\ gold*) supports_anon_versioning=yes ;;
8803       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806       *\ 2.11.*) ;; # other 2.11 versions
8807       *) supports_anon_versioning=yes ;;
8808     esac
8809
8810     # See if GNU ld supports shared libraries.
8811     case $host_os in
8812     aix[3-9]*)
8813       # On AIX/PPC, the GNU linker is very broken
8814       if test "$host_cpu" != ia64; then
8815         ld_shlibs=no
8816         cat <<_LT_EOF 1>&2
8817
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support.  If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8824
8825 _LT_EOF
8826       fi
8827       ;;
8828
8829     amigaos*)
8830       case $host_cpu in
8831       powerpc)
8832             # see comment about AmigaOS4 .so support
8833             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834             archive_expsym_cmds=''
8835         ;;
8836       m68k)
8837             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)'
8838             hardcode_libdir_flag_spec='-L$libdir'
8839             hardcode_minus_L=yes
8840         ;;
8841       esac
8842       ;;
8843
8844     beos*)
8845       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846         allow_undefined_flag=unsupported
8847         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848         # support --undefined.  This deserves some investigation.  FIXME
8849         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850       else
8851         ld_shlibs=no
8852       fi
8853       ;;
8854
8855     cygwin* | mingw* | pw32* | cegcc*)
8856       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857       # as there is no search path for DLLs.
8858       hardcode_libdir_flag_spec='-L$libdir'
8859       export_dynamic_flag_spec='${wl}--export-all-symbols'
8860       allow_undefined_flag=unsupported
8861       always_export_symbols=no
8862       enable_shared_with_static_runtimes=yes
8863       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'
8864       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8865
8866       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868         # If the export-symbols file already is a .def file (1st line
8869         # is EXPORTS), use it as is; otherwise, prepend...
8870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871           cp $export_symbols $output_objdir/$soname.def;
8872         else
8873           echo EXPORTS > $output_objdir/$soname.def;
8874           cat $export_symbols >> $output_objdir/$soname.def;
8875         fi~
8876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877       else
8878         ld_shlibs=no
8879       fi
8880       ;;
8881
8882     haiku*)
8883       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884       link_all_deplibs=yes
8885       ;;
8886
8887     interix[3-9]*)
8888       hardcode_direct=no
8889       hardcode_shlibpath_var=no
8890       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891       export_dynamic_flag_spec='${wl}-E'
8892       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8893       # Instead, shared libraries are loaded at an image base (0x10000000 by
8894       # default) and relocated if they conflict, which is a slow very memory
8895       # consuming and fragmenting process.  To avoid this, we pick a random,
8896       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8897       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8898       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8899       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'
8900       ;;
8901
8902     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8903       tmp_diet=no
8904       if test "$host_os" = linux-dietlibc; then
8905         case $cc_basename in
8906           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8907         esac
8908       fi
8909       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8910          && test "$tmp_diet" = no
8911       then
8912         tmp_addflag=' $pic_flag'
8913         tmp_sharedflag='-shared'
8914         case $cc_basename,$host_cpu in
8915         pgcc*)                          # Portland Group C compiler
8916           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'
8917           tmp_addflag=' $pic_flag'
8918           ;;
8919         pgf77* | pgf90* | pgf95* | pgfortran*)
8920                                         # Portland Group f77 and f90 compilers
8921           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'
8922           tmp_addflag=' $pic_flag -Mnomain' ;;
8923         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8924           tmp_addflag=' -i_dynamic' ;;
8925         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8926           tmp_addflag=' -i_dynamic -nofor_main' ;;
8927         ifc* | ifort*)                  # Intel Fortran compiler
8928           tmp_addflag=' -nofor_main' ;;
8929         lf95*)                          # Lahey Fortran 8.1
8930           whole_archive_flag_spec=
8931           tmp_sharedflag='--shared' ;;
8932         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8933           tmp_sharedflag='-qmkshrobj'
8934           tmp_addflag= ;;
8935         nvcc*)  # Cuda Compiler Driver 2.2
8936           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'
8937           compiler_needs_object=yes
8938           ;;
8939         esac
8940         case `$CC -V 2>&1 | sed 5q` in
8941         *Sun\ C*)                       # Sun C 5.9
8942           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'
8943           compiler_needs_object=yes
8944           tmp_sharedflag='-G' ;;
8945         *Sun\ F*)                       # Sun Fortran 8.3
8946           tmp_sharedflag='-G' ;;
8947         esac
8948         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949
8950         if test "x$supports_anon_versioning" = xyes; then
8951           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953             echo "local: *; };" >> $output_objdir/$libname.ver~
8954             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8955         fi
8956
8957         case $cc_basename in
8958         xlf* | bgf* | bgxlf* | mpixlf*)
8959           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8960           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8961           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8963           if test "x$supports_anon_versioning" = xyes; then
8964             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966               echo "local: *; };" >> $output_objdir/$libname.ver~
8967               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8968           fi
8969           ;;
8970         esac
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     netbsd*)
8977       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979         wlarc=
8980       else
8981         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983       fi
8984       ;;
8985
8986     solaris*)
8987       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988         ld_shlibs=no
8989         cat <<_LT_EOF 1>&2
8990
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems.  Therefore, libtool
8993 *** is disabling shared libraries support.  We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer.  Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002       else
9003         ld_shlibs=no
9004       fi
9005       ;;
9006
9007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008       case `$LD -v 2>&1` in
9009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010         ld_shlibs=no
9011         cat <<_LT_EOF 1>&2
9012
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9015 *** is disabling shared libraries support.  We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9019
9020 _LT_EOF
9021         ;;
9022         *)
9023           # For security reasons, it is highly recommended that you always
9024           # use absolute paths for naming shared libraries, and exclude the
9025           # DT_RUNPATH tag from executables and libraries.  But doing so
9026           # requires that you compile everything twice, which is a pain.
9027           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031           else
9032             ld_shlibs=no
9033           fi
9034         ;;
9035       esac
9036       ;;
9037
9038     sunos4*)
9039       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040       wlarc=
9041       hardcode_direct=yes
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     *)
9046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049       else
9050         ld_shlibs=no
9051       fi
9052       ;;
9053     esac
9054
9055     if test "$ld_shlibs" = no; then
9056       runpath_var=
9057       hardcode_libdir_flag_spec=
9058       export_dynamic_flag_spec=
9059       whole_archive_flag_spec=
9060     fi
9061   else
9062     # PORTME fill in a description of your system's linker (not GNU ld)
9063     case $host_os in
9064     aix3*)
9065       allow_undefined_flag=unsupported
9066       always_export_symbols=yes
9067       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'
9068       # Note: this linker hardcodes the directories in LIBPATH if there
9069       # are no directories specified by -L.
9070       hardcode_minus_L=yes
9071       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072         # Neither direct hardcoding nor static linking is supported with a
9073         # broken collect2.
9074         hardcode_direct=unsupported
9075       fi
9076       ;;
9077
9078     aix[4-9]*)
9079       if test "$host_cpu" = ia64; then
9080         # On IA64, the linker does run time linking by default, so we don't
9081         # have to do anything special.
9082         aix_use_runtimelinking=no
9083         exp_sym_flag='-Bexport'
9084         no_entry_flag=""
9085       else
9086         # If we're using GNU nm, then we don't want the "-C" option.
9087         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088         # Also, AIX nm treats weak defined symbols like other global
9089         # defined symbols, whereas GNU nm marks them as "W".
9090         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9092         else
9093           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9094         fi
9095         aix_use_runtimelinking=no
9096
9097         # Test if we are trying to use run time linking or normal
9098         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099         # need to do runtime linking.
9100         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101           for ld_flag in $LDFLAGS; do
9102           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103             aix_use_runtimelinking=yes
9104             break
9105           fi
9106           done
9107           ;;
9108         esac
9109
9110         exp_sym_flag='-bexport'
9111         no_entry_flag='-bnoentry'
9112       fi
9113
9114       # When large executables or shared objects are built, AIX ld can
9115       # have problems creating the table of contents.  If linking a library
9116       # or program results in "error TOC overflow" add -mminimal-toc to
9117       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9118       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120       archive_cmds=''
9121       hardcode_direct=yes
9122       hardcode_direct_absolute=yes
9123       hardcode_libdir_separator=':'
9124       link_all_deplibs=yes
9125       file_list_spec='${wl}-f,'
9126
9127       if test "$GCC" = yes; then
9128         case $host_os in aix4.[012]|aix4.[012].*)
9129         # We only want to do this on AIX 4.2 and lower, the check
9130         # below for broken collect2 doesn't work under 4.3+
9131           collect2name=`${CC} -print-prog-name=collect2`
9132           if test -f "$collect2name" &&
9133            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134           then
9135           # We have reworked collect2
9136           :
9137           else
9138           # We have old collect2
9139           hardcode_direct=unsupported
9140           # It fails to find uninstalled libraries when the uninstalled
9141           # path is not listed in the libpath.  Setting hardcode_minus_L
9142           # to unsupported forces relinking
9143           hardcode_minus_L=yes
9144           hardcode_libdir_flag_spec='-L$libdir'
9145           hardcode_libdir_separator=
9146           fi
9147           ;;
9148         esac
9149         shared_flag='-shared'
9150         if test "$aix_use_runtimelinking" = yes; then
9151           shared_flag="$shared_flag "'${wl}-G'
9152         fi
9153       else
9154         # not using gcc
9155         if test "$host_cpu" = ia64; then
9156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157         # chokes on -Wl,-G. The following line is correct:
9158           shared_flag='-G'
9159         else
9160           if test "$aix_use_runtimelinking" = yes; then
9161             shared_flag='${wl}-G'
9162           else
9163             shared_flag='${wl}-bM:SRE'
9164           fi
9165         fi
9166       fi
9167
9168       export_dynamic_flag_spec='${wl}-bexpall'
9169       # It seems that -bexpall does not export symbols beginning with
9170       # underscore (_), so it is better to generate a list of symbols to export.
9171       always_export_symbols=yes
9172       if test "$aix_use_runtimelinking" = yes; then
9173         # Warning - without using the other runtime loading flags (-brtl),
9174         # -berok will link without error, but may produce a broken library.
9175         allow_undefined_flag='-berok'
9176         # Determine the default libpath from the value encoded in an
9177         # empty executable.
9178         if test "${lt_cv_aix_libpath+set}" = set; then
9179   aix_libpath=$lt_cv_aix_libpath
9180 else
9181   if ${lt_cv_aix_libpath_+:} false; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h.  */
9186
9187 int
9188 main ()
9189 {
9190
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196
9197   lt_aix_libpath_sed='
9198       /Import File Strings/,/^$/ {
9199           /^0/ {
9200               s/^0  *\([^ ]*\) *$/\1/
9201               p
9202           }
9203       }'
9204   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205   # Check for a 64-bit object if we didn't find anything.
9206   if test -z "$lt_cv_aix_libpath_"; then
9207     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208   fi
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211     conftest$ac_exeext conftest.$ac_ext
9212   if test -z "$lt_cv_aix_libpath_"; then
9213     lt_cv_aix_libpath_="/usr/lib:/lib"
9214   fi
9215
9216 fi
9217
9218   aix_libpath=$lt_cv_aix_libpath_
9219 fi
9220
9221         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9223       else
9224         if test "$host_cpu" = ia64; then
9225           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226           allow_undefined_flag="-z nodefs"
9227           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"
9228         else
9229          # Determine the default libpath from the value encoded in an
9230          # empty executable.
9231          if test "${lt_cv_aix_libpath+set}" = set; then
9232   aix_libpath=$lt_cv_aix_libpath
9233 else
9234   if ${lt_cv_aix_libpath_+:} false; then :
9235   $as_echo_n "(cached) " >&6
9236 else
9237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h.  */
9239
9240 int
9241 main ()
9242 {
9243
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249
9250   lt_aix_libpath_sed='
9251       /Import File Strings/,/^$/ {
9252           /^0/ {
9253               s/^0  *\([^ ]*\) *$/\1/
9254               p
9255           }
9256       }'
9257   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9258   # Check for a 64-bit object if we didn't find anything.
9259   if test -z "$lt_cv_aix_libpath_"; then
9260     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9261   fi
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext \
9264     conftest$ac_exeext conftest.$ac_ext
9265   if test -z "$lt_cv_aix_libpath_"; then
9266     lt_cv_aix_libpath_="/usr/lib:/lib"
9267   fi
9268
9269 fi
9270
9271   aix_libpath=$lt_cv_aix_libpath_
9272 fi
9273
9274          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9275           # Warning - without using the other run time loading flags,
9276           # -berok will link without error, but may produce a broken library.
9277           no_undefined_flag=' ${wl}-bernotok'
9278           allow_undefined_flag=' ${wl}-berok'
9279           if test "$with_gnu_ld" = yes; then
9280             # We only use this code for GNU lds that support --whole-archive.
9281             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9282           else
9283             # Exported symbols can be pulled into shared objects from archives
9284             whole_archive_flag_spec='$convenience'
9285           fi
9286           archive_cmds_need_lc=yes
9287           # This is similar to how AIX traditionally builds its shared libraries.
9288           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9289         fi
9290       fi
9291       ;;
9292
9293     amigaos*)
9294       case $host_cpu in
9295       powerpc)
9296             # see comment about AmigaOS4 .so support
9297             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298             archive_expsym_cmds=''
9299         ;;
9300       m68k)
9301             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)'
9302             hardcode_libdir_flag_spec='-L$libdir'
9303             hardcode_minus_L=yes
9304         ;;
9305       esac
9306       ;;
9307
9308     bsdi[45]*)
9309       export_dynamic_flag_spec=-rdynamic
9310       ;;
9311
9312     cygwin* | mingw* | pw32* | cegcc*)
9313       # When not using gcc, we currently assume that we are using
9314       # Microsoft Visual C++.
9315       # hardcode_libdir_flag_spec is actually meaningless, as there is
9316       # no search path for DLLs.
9317       case $cc_basename in
9318       cl*)
9319         # Native MSVC
9320         hardcode_libdir_flag_spec=' '
9321         allow_undefined_flag=unsupported
9322         always_export_symbols=yes
9323         file_list_spec='@'
9324         # Tell ltmain to make .lib files, not .a files.
9325         libext=lib
9326         # Tell ltmain to make .dll files, not .so files.
9327         shrext_cmds=".dll"
9328         # FIXME: Setting linknames here is a bad hack.
9329         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9330         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9332           else
9333             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9334           fi~
9335           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9336           linknames='
9337         # The linker will not automatically build a static lib if we build a DLL.
9338         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9339         enable_shared_with_static_runtimes=yes
9340         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9341         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9342         # Don't use ranlib
9343         old_postinstall_cmds='chmod 644 $oldlib'
9344         postlink_cmds='lt_outputfile="@OUTPUT@"~
9345           lt_tool_outputfile="@TOOL_OUTPUT@"~
9346           case $lt_outputfile in
9347             *.exe|*.EXE) ;;
9348             *)
9349               lt_outputfile="$lt_outputfile.exe"
9350               lt_tool_outputfile="$lt_tool_outputfile.exe"
9351               ;;
9352           esac~
9353           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9354             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9355             $RM "$lt_outputfile.manifest";
9356           fi'
9357         ;;
9358       *)
9359         # Assume MSVC wrapper
9360         hardcode_libdir_flag_spec=' '
9361         allow_undefined_flag=unsupported
9362         # Tell ltmain to make .lib files, not .a files.
9363         libext=lib
9364         # Tell ltmain to make .dll files, not .so files.
9365         shrext_cmds=".dll"
9366         # FIXME: Setting linknames here is a bad hack.
9367         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9368         # The linker will automatically build a .lib file if we build a DLL.
9369         old_archive_from_new_cmds='true'
9370         # FIXME: Should let the user specify the lib program.
9371         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9372         enable_shared_with_static_runtimes=yes
9373         ;;
9374       esac
9375       ;;
9376
9377     darwin* | rhapsody*)
9378
9379
9380   archive_cmds_need_lc=no
9381   hardcode_direct=no
9382   hardcode_automatic=yes
9383   hardcode_shlibpath_var=unsupported
9384   if test "$lt_cv_ld_force_load" = "yes"; then
9385     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\"`'
9386
9387   else
9388     whole_archive_flag_spec=''
9389   fi
9390   link_all_deplibs=yes
9391   allow_undefined_flag="$_lt_dar_allow_undefined"
9392   case $cc_basename in
9393      ifort*) _lt_dar_can_shared=yes ;;
9394      *) _lt_dar_can_shared=$GCC ;;
9395   esac
9396   if test "$_lt_dar_can_shared" = "yes"; then
9397     output_verbose_link_cmd=func_echo_all
9398     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9399     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9400     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}"
9401     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}"
9402
9403   else
9404   ld_shlibs=no
9405   fi
9406
9407       ;;
9408
9409     dgux*)
9410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411       hardcode_libdir_flag_spec='-L$libdir'
9412       hardcode_shlibpath_var=no
9413       ;;
9414
9415     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9416     # support.  Future versions do this automatically, but an explicit c++rt0.o
9417     # does not break anything, and helps significantly (at the cost of a little
9418     # extra space).
9419     freebsd2.2*)
9420       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9421       hardcode_libdir_flag_spec='-R$libdir'
9422       hardcode_direct=yes
9423       hardcode_shlibpath_var=no
9424       ;;
9425
9426     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9427     freebsd2.*)
9428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9429       hardcode_direct=yes
9430       hardcode_minus_L=yes
9431       hardcode_shlibpath_var=no
9432       ;;
9433
9434     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9435     freebsd* | dragonfly*)
9436       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9437       hardcode_libdir_flag_spec='-R$libdir'
9438       hardcode_direct=yes
9439       hardcode_shlibpath_var=no
9440       ;;
9441
9442     hpux9*)
9443       if test "$GCC" = yes; then
9444         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9445       else
9446         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9447       fi
9448       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449       hardcode_libdir_separator=:
9450       hardcode_direct=yes
9451
9452       # hardcode_minus_L: Not really in the search PATH,
9453       # but as the default location of the library.
9454       hardcode_minus_L=yes
9455       export_dynamic_flag_spec='${wl}-E'
9456       ;;
9457
9458     hpux10*)
9459       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9460         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9461       else
9462         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9463       fi
9464       if test "$with_gnu_ld" = no; then
9465         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466         hardcode_libdir_separator=:
9467         hardcode_direct=yes
9468         hardcode_direct_absolute=yes
9469         export_dynamic_flag_spec='${wl}-E'
9470         # hardcode_minus_L: Not really in the search PATH,
9471         # but as the default location of the library.
9472         hardcode_minus_L=yes
9473       fi
9474       ;;
9475
9476     hpux11*)
9477       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9478         case $host_cpu in
9479         hppa*64*)
9480           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481           ;;
9482         ia64*)
9483           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9484           ;;
9485         *)
9486           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9487           ;;
9488         esac
9489       else
9490         case $host_cpu in
9491         hppa*64*)
9492           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9493           ;;
9494         ia64*)
9495           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9496           ;;
9497         *)
9498
9499           # Older versions of the 11.00 compiler do not understand -b yet
9500           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9501           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9502 $as_echo_n "checking if $CC understands -b... " >&6; }
9503 if ${lt_cv_prog_compiler__b+:} false; then :
9504   $as_echo_n "(cached) " >&6
9505 else
9506   lt_cv_prog_compiler__b=no
9507    save_LDFLAGS="$LDFLAGS"
9508    LDFLAGS="$LDFLAGS -b"
9509    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9511      # The linker can only warn and ignore the option if not recognized
9512      # So say no if there are warnings
9513      if test -s conftest.err; then
9514        # Append any errors to the config.log.
9515        cat conftest.err 1>&5
9516        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9518        if diff conftest.exp conftest.er2 >/dev/null; then
9519          lt_cv_prog_compiler__b=yes
9520        fi
9521      else
9522        lt_cv_prog_compiler__b=yes
9523      fi
9524    fi
9525    $RM -r conftest*
9526    LDFLAGS="$save_LDFLAGS"
9527
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9530 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9531
9532 if test x"$lt_cv_prog_compiler__b" = xyes; then
9533     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9536 fi
9537
9538           ;;
9539         esac
9540       fi
9541       if test "$with_gnu_ld" = no; then
9542         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543         hardcode_libdir_separator=:
9544
9545         case $host_cpu in
9546         hppa*64*|ia64*)
9547           hardcode_direct=no
9548           hardcode_shlibpath_var=no
9549           ;;
9550         *)
9551           hardcode_direct=yes
9552           hardcode_direct_absolute=yes
9553           export_dynamic_flag_spec='${wl}-E'
9554
9555           # hardcode_minus_L: Not really in the search PATH,
9556           # but as the default location of the library.
9557           hardcode_minus_L=yes
9558           ;;
9559         esac
9560       fi
9561       ;;
9562
9563     irix5* | irix6* | nonstopux*)
9564       if test "$GCC" = yes; then
9565         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'
9566         # Try to use the -exported_symbol ld option, if it does not
9567         # work, assume that -exports_file does not work either and
9568         # implicitly export all symbols.
9569         # This should be the same for all languages, so no per-tag cache variable.
9570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9571 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9572 if ${lt_cv_irix_exported_symbol+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   save_LDFLAGS="$LDFLAGS"
9576            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9577            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h.  */
9579 int foo (void) { return 0; }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582   lt_cv_irix_exported_symbol=yes
9583 else
9584   lt_cv_irix_exported_symbol=no
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587     conftest$ac_exeext conftest.$ac_ext
9588            LDFLAGS="$save_LDFLAGS"
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9591 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9592         if test "$lt_cv_irix_exported_symbol" = yes; then
9593           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'
9594         fi
9595       else
9596         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'
9597         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'
9598       fi
9599       archive_cmds_need_lc='no'
9600       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601       hardcode_libdir_separator=:
9602       inherit_rpath=yes
9603       link_all_deplibs=yes
9604       ;;
9605
9606     netbsd*)
9607       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9608         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9609       else
9610         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9611       fi
9612       hardcode_libdir_flag_spec='-R$libdir'
9613       hardcode_direct=yes
9614       hardcode_shlibpath_var=no
9615       ;;
9616
9617     newsos6)
9618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619       hardcode_direct=yes
9620       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621       hardcode_libdir_separator=:
9622       hardcode_shlibpath_var=no
9623       ;;
9624
9625     *nto* | *qnx*)
9626       ;;
9627
9628     openbsd*)
9629       if test -f /usr/libexec/ld.so; then
9630         hardcode_direct=yes
9631         hardcode_shlibpath_var=no
9632         hardcode_direct_absolute=yes
9633         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637           export_dynamic_flag_spec='${wl}-E'
9638         else
9639           case $host_os in
9640            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642              hardcode_libdir_flag_spec='-R$libdir'
9643              ;;
9644            *)
9645              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647              ;;
9648           esac
9649         fi
9650       else
9651         ld_shlibs=no
9652       fi
9653       ;;
9654
9655     os2*)
9656       hardcode_libdir_flag_spec='-L$libdir'
9657       hardcode_minus_L=yes
9658       allow_undefined_flag=unsupported
9659       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9660       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9661       ;;
9662
9663     osf3*)
9664       if test "$GCC" = yes; then
9665         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9666         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'
9667       else
9668         allow_undefined_flag=' -expect_unresolved \*'
9669         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'
9670       fi
9671       archive_cmds_need_lc='no'
9672       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673       hardcode_libdir_separator=:
9674       ;;
9675
9676     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9677       if test "$GCC" = yes; then
9678         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679         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'
9680         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681       else
9682         allow_undefined_flag=' -expect_unresolved \*'
9683         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'
9684         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~
9685         $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'
9686
9687         # Both c and cxx compiler support -rpath directly
9688         hardcode_libdir_flag_spec='-rpath $libdir'
9689       fi
9690       archive_cmds_need_lc='no'
9691       hardcode_libdir_separator=:
9692       ;;
9693
9694     solaris*)
9695       no_undefined_flag=' -z defs'
9696       if test "$GCC" = yes; then
9697         wlarc='${wl}'
9698         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700           $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'
9701       else
9702         case `$CC -V 2>&1` in
9703         *"Compilers 5.0"*)
9704           wlarc=''
9705           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9708           ;;
9709         *)
9710           wlarc='${wl}'
9711           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9714           ;;
9715         esac
9716       fi
9717       hardcode_libdir_flag_spec='-R$libdir'
9718       hardcode_shlibpath_var=no
9719       case $host_os in
9720       solaris2.[0-5] | solaris2.[0-5].*) ;;
9721       *)
9722         # The compiler driver will combine and reorder linker options,
9723         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9724         # but is careful enough not to reorder.
9725         # Supported since Solaris 2.6 (maybe 2.5.1?)
9726         if test "$GCC" = yes; then
9727           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9728         else
9729           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9730         fi
9731         ;;
9732       esac
9733       link_all_deplibs=yes
9734       ;;
9735
9736     sunos4*)
9737       if test "x$host_vendor" = xsequent; then
9738         # Use $CC to link under sequent, because it throws in some extra .o
9739         # files that make .init and .fini sections work.
9740         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9741       else
9742         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9743       fi
9744       hardcode_libdir_flag_spec='-L$libdir'
9745       hardcode_direct=yes
9746       hardcode_minus_L=yes
9747       hardcode_shlibpath_var=no
9748       ;;
9749
9750     sysv4)
9751       case $host_vendor in
9752         sni)
9753           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754           hardcode_direct=yes # is this really true???
9755         ;;
9756         siemens)
9757           ## LD is ld it makes a PLAMLIB
9758           ## CC just makes a GrossModule.
9759           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760           reload_cmds='$CC -r -o $output$reload_objs'
9761           hardcode_direct=no
9762         ;;
9763         motorola)
9764           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9766         ;;
9767       esac
9768       runpath_var='LD_RUN_PATH'
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     sysv4.3*)
9773       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774       hardcode_shlibpath_var=no
9775       export_dynamic_flag_spec='-Bexport'
9776       ;;
9777
9778     sysv4*MP*)
9779       if test -d /usr/nec; then
9780         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781         hardcode_shlibpath_var=no
9782         runpath_var=LD_RUN_PATH
9783         hardcode_runpath_var=yes
9784         ld_shlibs=yes
9785       fi
9786       ;;
9787
9788     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9789       no_undefined_flag='${wl}-z,text'
9790       archive_cmds_need_lc=no
9791       hardcode_shlibpath_var=no
9792       runpath_var='LD_RUN_PATH'
9793
9794       if test "$GCC" = yes; then
9795         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797       else
9798         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800       fi
9801       ;;
9802
9803     sysv5* | sco3.2v5* | sco5v6*)
9804       # Note: We can NOT use -z defs as we might desire, because we do not
9805       # link with -lc, and that would cause any symbols used from libc to
9806       # always be unresolved, which means just about no library would
9807       # ever link correctly.  If we're not using GNU ld we use -z text
9808       # though, which does catch some bad symbols but isn't as heavy-handed
9809       # as -z defs.
9810       no_undefined_flag='${wl}-z,text'
9811       allow_undefined_flag='${wl}-z,nodefs'
9812       archive_cmds_need_lc=no
9813       hardcode_shlibpath_var=no
9814       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9815       hardcode_libdir_separator=':'
9816       link_all_deplibs=yes
9817       export_dynamic_flag_spec='${wl}-Bexport'
9818       runpath_var='LD_RUN_PATH'
9819
9820       if test "$GCC" = yes; then
9821         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823       else
9824         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826       fi
9827       ;;
9828
9829     uts4*)
9830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831       hardcode_libdir_flag_spec='-L$libdir'
9832       hardcode_shlibpath_var=no
9833       ;;
9834
9835     *)
9836       ld_shlibs=no
9837       ;;
9838     esac
9839
9840     if test x$host_vendor = xsni; then
9841       case $host in
9842       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843         export_dynamic_flag_spec='${wl}-Blargedynsym'
9844         ;;
9845       esac
9846     fi
9847   fi
9848
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9850 $as_echo "$ld_shlibs" >&6; }
9851 test "$ld_shlibs" = no && can_build_shared=no
9852
9853 with_gnu_ld=$with_gnu_ld
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869 #
9870 # Do we need to explicitly link libc?
9871 #
9872 case "x$archive_cmds_need_lc" in
9873 x|xyes)
9874   # Assume -lc should be added
9875   archive_cmds_need_lc=yes
9876
9877   if test "$enable_shared" = yes && test "$GCC" = yes; then
9878     case $archive_cmds in
9879     *'~'*)
9880       # FIXME: we may have to deal with multi-command sequences.
9881       ;;
9882     '$CC '*)
9883       # Test whether the compiler implicitly links with -lc since on some
9884       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885       # to ld, don't add -lc before -lgcc.
9886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9888 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9889   $as_echo_n "(cached) " >&6
9890 else
9891   $RM conftest*
9892         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9893
9894         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9895   (eval $ac_compile) 2>&5
9896   ac_status=$?
9897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898   test $ac_status = 0; } 2>conftest.err; then
9899           soname=conftest
9900           lib=conftest
9901           libobjs=conftest.$ac_objext
9902           deplibs=
9903           wl=$lt_prog_compiler_wl
9904           pic_flag=$lt_prog_compiler_pic
9905           compiler_flags=-v
9906           linker_flags=-v
9907           verstring=
9908           output_objdir=.
9909           libname=conftest
9910           lt_save_allow_undefined_flag=$allow_undefined_flag
9911           allow_undefined_flag=
9912           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9913   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9914   ac_status=$?
9915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916   test $ac_status = 0; }
9917           then
9918             lt_cv_archive_cmds_need_lc=no
9919           else
9920             lt_cv_archive_cmds_need_lc=yes
9921           fi
9922           allow_undefined_flag=$lt_save_allow_undefined_flag
9923         else
9924           cat conftest.err 1>&5
9925         fi
9926         $RM conftest*
9927
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9930 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9931       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9932       ;;
9933     esac
9934   fi
9935   ;;
9936 esac
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10091
10092 if test "$GCC" = yes; then
10093   case $host_os in
10094     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10095     *) lt_awk_arg="/^libraries:/" ;;
10096   esac
10097   case $host_os in
10098     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10099     *) lt_sed_strip_eq="s,=/,/,g" ;;
10100   esac
10101   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10102   case $lt_search_path_spec in
10103   *\;*)
10104     # if the path contains ";" then we assume it to be the separator
10105     # otherwise default to the standard path separator (i.e. ":") - it is
10106     # assumed that no part of a normal pathname contains ";" but that should
10107     # okay in the real world where ";" in dirpaths is itself problematic.
10108     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10109     ;;
10110   *)
10111     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10112     ;;
10113   esac
10114   # Ok, now we have the path, separated by spaces, we can step through it
10115   # and add multilib dir if necessary.
10116   lt_tmp_lt_search_path_spec=
10117   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10118   for lt_sys_path in $lt_search_path_spec; do
10119     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10120       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10121     else
10122       test -d "$lt_sys_path" && \
10123         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10124     fi
10125   done
10126   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10127 BEGIN {RS=" "; FS="/|\n";} {
10128   lt_foo="";
10129   lt_count=0;
10130   for (lt_i = NF; lt_i > 0; lt_i--) {
10131     if ($lt_i != "" && $lt_i != ".") {
10132       if ($lt_i == "..") {
10133         lt_count++;
10134       } else {
10135         if (lt_count == 0) {
10136           lt_foo="/" $lt_i lt_foo;
10137         } else {
10138           lt_count--;
10139         }
10140       }
10141     }
10142   }
10143   if (lt_foo != "") { lt_freq[lt_foo]++; }
10144   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10145 }'`
10146   # AWK program above erroneously prepends '/' to C:/dos/paths
10147   # for these hosts.
10148   case $host_os in
10149     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10150       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10151   esac
10152   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10153 else
10154   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10155 fi
10156 library_names_spec=
10157 libname_spec='lib$name'
10158 soname_spec=
10159 shrext_cmds=".so"
10160 postinstall_cmds=
10161 postuninstall_cmds=
10162 finish_cmds=
10163 finish_eval=
10164 shlibpath_var=
10165 shlibpath_overrides_runpath=unknown
10166 version_type=none
10167 dynamic_linker="$host_os ld.so"
10168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169 need_lib_prefix=unknown
10170 hardcode_into_libs=no
10171
10172 # when you set need_version to no, make sure it does not cause -set_version
10173 # flags to be left without arguments
10174 need_version=unknown
10175
10176 case $host_os in
10177 aix3*)
10178   version_type=linux # correct to gnu/linux during the next big refactor
10179   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10180   shlibpath_var=LIBPATH
10181
10182   # AIX 3 has no versioning support, so we append a major version to the name.
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   ;;
10185
10186 aix[4-9]*)
10187   version_type=linux # correct to gnu/linux during the next big refactor
10188   need_lib_prefix=no
10189   need_version=no
10190   hardcode_into_libs=yes
10191   if test "$host_cpu" = ia64; then
10192     # AIX 5 supports IA64
10193     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10194     shlibpath_var=LD_LIBRARY_PATH
10195   else
10196     # With GCC up to 2.95.x, collect2 would create an import file
10197     # for dependence libraries.  The import file would start with
10198     # the line `#! .'.  This would cause the generated library to
10199     # depend on `.', always an invalid library.  This was fixed in
10200     # development snapshots of GCC prior to 3.0.
10201     case $host_os in
10202       aix4 | aix4.[01] | aix4.[01].*)
10203       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10204            echo ' yes '
10205            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10206         :
10207       else
10208         can_build_shared=no
10209       fi
10210       ;;
10211     esac
10212     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10213     # soname into executable. Probably we can add versioning support to
10214     # collect2, so additional links can be useful in future.
10215     if test "$aix_use_runtimelinking" = yes; then
10216       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10217       # instead of lib<name>.a to let people know that these are not
10218       # typical AIX shared libraries.
10219       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220     else
10221       # We preserve .a as extension for shared libraries through AIX4.2
10222       # and later when we are not doing run time linking.
10223       library_names_spec='${libname}${release}.a $libname.a'
10224       soname_spec='${libname}${release}${shared_ext}$major'
10225     fi
10226     shlibpath_var=LIBPATH
10227   fi
10228   ;;
10229
10230 amigaos*)
10231   case $host_cpu in
10232   powerpc)
10233     # Since July 2007 AmigaOS4 officially supports .so libraries.
10234     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236     ;;
10237   m68k)
10238     library_names_spec='$libname.ixlibrary $libname.a'
10239     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10240     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10241     ;;
10242   esac
10243   ;;
10244
10245 beos*)
10246   library_names_spec='${libname}${shared_ext}'
10247   dynamic_linker="$host_os ld.so"
10248   shlibpath_var=LIBRARY_PATH
10249   ;;
10250
10251 bsdi[45]*)
10252   version_type=linux # correct to gnu/linux during the next big refactor
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10257   shlibpath_var=LD_LIBRARY_PATH
10258   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10259   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10260   # the default ld.so.conf also contains /usr/contrib/lib and
10261   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10262   # libtool to hard-code these into programs
10263   ;;
10264
10265 cygwin* | mingw* | pw32* | cegcc*)
10266   version_type=windows
10267   shrext_cmds=".dll"
10268   need_version=no
10269   need_lib_prefix=no
10270
10271   case $GCC,$cc_basename in
10272   yes,*)
10273     # gcc
10274     library_names_spec='$libname.dll.a'
10275     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10276     postinstall_cmds='base_file=`basename \${file}`~
10277       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10278       dldir=$destdir/`dirname \$dlpath`~
10279       test -d \$dldir || mkdir -p \$dldir~
10280       $install_prog $dir/$dlname \$dldir/$dlname~
10281       chmod a+x \$dldir/$dlname~
10282       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10283         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10284       fi'
10285     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10286       dlpath=$dir/\$dldll~
10287        $RM \$dlpath'
10288     shlibpath_overrides_runpath=yes
10289
10290     case $host_os in
10291     cygwin*)
10292       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10293       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10294
10295       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10296       ;;
10297     mingw* | cegcc*)
10298       # MinGW DLLs use traditional 'lib' prefix
10299       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300       ;;
10301     pw32*)
10302       # pw32 DLLs use 'pw' prefix rather than 'lib'
10303       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304       ;;
10305     esac
10306     dynamic_linker='Win32 ld.exe'
10307     ;;
10308
10309   *,cl*)
10310     # Native MSVC
10311     libname_spec='$name'
10312     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10313     library_names_spec='${libname}.dll.lib'
10314
10315     case $build_os in
10316     mingw*)
10317       sys_lib_search_path_spec=
10318       lt_save_ifs=$IFS
10319       IFS=';'
10320       for lt_path in $LIB
10321       do
10322         IFS=$lt_save_ifs
10323         # Let DOS variable expansion print the short 8.3 style file name.
10324         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10325         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10326       done
10327       IFS=$lt_save_ifs
10328       # Convert to MSYS style.
10329       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10330       ;;
10331     cygwin*)
10332       # Convert to unix form, then to dos form, then back to unix form
10333       # but this time dos style (no spaces!) so that the unix form looks
10334       # like /cygdrive/c/PROGRA~1:/cygdr...
10335       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10336       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10337       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10338       ;;
10339     *)
10340       sys_lib_search_path_spec="$LIB"
10341       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10342         # It is most probably a Windows format PATH.
10343         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10344       else
10345         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10346       fi
10347       # FIXME: find the short name or the path components, as spaces are
10348       # common. (e.g. "Program Files" -> "PROGRA~1")
10349       ;;
10350     esac
10351
10352     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10353     postinstall_cmds='base_file=`basename \${file}`~
10354       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10355       dldir=$destdir/`dirname \$dlpath`~
10356       test -d \$dldir || mkdir -p \$dldir~
10357       $install_prog $dir/$dlname \$dldir/$dlname'
10358     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10359       dlpath=$dir/\$dldll~
10360        $RM \$dlpath'
10361     shlibpath_overrides_runpath=yes
10362     dynamic_linker='Win32 link.exe'
10363     ;;
10364
10365   *)
10366     # Assume MSVC wrapper
10367     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10368     dynamic_linker='Win32 ld.exe'
10369     ;;
10370   esac
10371   # FIXME: first we should search . and the directory the executable is in
10372   shlibpath_var=PATH
10373   ;;
10374
10375 darwin* | rhapsody*)
10376   dynamic_linker="$host_os dyld"
10377   version_type=darwin
10378   need_lib_prefix=no
10379   need_version=no
10380   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10381   soname_spec='${libname}${release}${major}$shared_ext'
10382   shlibpath_overrides_runpath=yes
10383   shlibpath_var=DYLD_LIBRARY_PATH
10384   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10385
10386   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10387   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10388   ;;
10389
10390 dgux*)
10391   version_type=linux # correct to gnu/linux during the next big refactor
10392   need_lib_prefix=no
10393   need_version=no
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   ;;
10398
10399 freebsd* | dragonfly*)
10400   # DragonFly does not have aout.  When/if they implement a new
10401   # versioning mechanism, adjust this.
10402   if test -x /usr/bin/objformat; then
10403     objformat=`/usr/bin/objformat`
10404   else
10405     case $host_os in
10406     freebsd[23].*) objformat=aout ;;
10407     *) objformat=elf ;;
10408     esac
10409   fi
10410   version_type=freebsd-$objformat
10411   case $version_type in
10412     freebsd-elf*)
10413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10414       need_version=no
10415       need_lib_prefix=no
10416       ;;
10417     freebsd-*)
10418       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10419       need_version=yes
10420       ;;
10421   esac
10422   shlibpath_var=LD_LIBRARY_PATH
10423   case $host_os in
10424   freebsd2.*)
10425     shlibpath_overrides_runpath=yes
10426     ;;
10427   freebsd3.[01]* | freebsdelf3.[01]*)
10428     shlibpath_overrides_runpath=yes
10429     hardcode_into_libs=yes
10430     ;;
10431   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10432   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10433     shlibpath_overrides_runpath=no
10434     hardcode_into_libs=yes
10435     ;;
10436   *) # from 4.6 on, and DragonFly
10437     shlibpath_overrides_runpath=yes
10438     hardcode_into_libs=yes
10439     ;;
10440   esac
10441   ;;
10442
10443 gnu*)
10444   version_type=linux # correct to gnu/linux during the next big refactor
10445   need_lib_prefix=no
10446   need_version=no
10447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10448   soname_spec='${libname}${release}${shared_ext}$major'
10449   shlibpath_var=LD_LIBRARY_PATH
10450   shlibpath_overrides_runpath=no
10451   hardcode_into_libs=yes
10452   ;;
10453
10454 haiku*)
10455   version_type=linux # correct to gnu/linux during the next big refactor
10456   need_lib_prefix=no
10457   need_version=no
10458   dynamic_linker="$host_os runtime_loader"
10459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10460   soname_spec='${libname}${release}${shared_ext}$major'
10461   shlibpath_var=LIBRARY_PATH
10462   shlibpath_overrides_runpath=yes
10463   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10464   hardcode_into_libs=yes
10465   ;;
10466
10467 hpux9* | hpux10* | hpux11*)
10468   # Give a soname corresponding to the major version so that dld.sl refuses to
10469   # link against other versions.
10470   version_type=sunos
10471   need_lib_prefix=no
10472   need_version=no
10473   case $host_cpu in
10474   ia64*)
10475     shrext_cmds='.so'
10476     hardcode_into_libs=yes
10477     dynamic_linker="$host_os dld.so"
10478     shlibpath_var=LD_LIBRARY_PATH
10479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481     soname_spec='${libname}${release}${shared_ext}$major'
10482     if test "X$HPUX_IA64_MODE" = X32; then
10483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10484     else
10485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10486     fi
10487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10488     ;;
10489   hppa*64*)
10490     shrext_cmds='.sl'
10491     hardcode_into_libs=yes
10492     dynamic_linker="$host_os dld.sl"
10493     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10494     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496     soname_spec='${libname}${release}${shared_ext}$major'
10497     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10498     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10499     ;;
10500   *)
10501     shrext_cmds='.sl'
10502     dynamic_linker="$host_os dld.sl"
10503     shlibpath_var=SHLIB_PATH
10504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506     soname_spec='${libname}${release}${shared_ext}$major'
10507     ;;
10508   esac
10509   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10510   postinstall_cmds='chmod 555 $lib'
10511   # or fails outright, so override atomically:
10512   install_override_mode=555
10513   ;;
10514
10515 interix[3-9]*)
10516   version_type=linux # correct to gnu/linux during the next big refactor
10517   need_lib_prefix=no
10518   need_version=no
10519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520   soname_spec='${libname}${release}${shared_ext}$major'
10521   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   shlibpath_overrides_runpath=no
10524   hardcode_into_libs=yes
10525   ;;
10526
10527 irix5* | irix6* | nonstopux*)
10528   case $host_os in
10529     nonstopux*) version_type=nonstopux ;;
10530     *)
10531         if test "$lt_cv_prog_gnu_ld" = yes; then
10532                 version_type=linux # correct to gnu/linux during the next big refactor
10533         else
10534                 version_type=irix
10535         fi ;;
10536   esac
10537   need_lib_prefix=no
10538   need_version=no
10539   soname_spec='${libname}${release}${shared_ext}$major'
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10541   case $host_os in
10542   irix5* | nonstopux*)
10543     libsuff= shlibsuff=
10544     ;;
10545   *)
10546     case $LD in # libtool.m4 will add one of these switches to LD
10547     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10548       libsuff= shlibsuff= libmagic=32-bit;;
10549     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10550       libsuff=32 shlibsuff=N32 libmagic=N32;;
10551     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10552       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10553     *) libsuff= shlibsuff= libmagic=never-match;;
10554     esac
10555     ;;
10556   esac
10557   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10558   shlibpath_overrides_runpath=no
10559   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10560   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10561   hardcode_into_libs=yes
10562   ;;
10563
10564 # No shared lib support for Linux oldld, aout, or coff.
10565 linux*oldld* | linux*aout* | linux*coff*)
10566   dynamic_linker=no
10567   ;;
10568
10569 # This must be glibc/ELF.
10570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10571   version_type=linux # correct to gnu/linux during the next big refactor
10572   need_lib_prefix=no
10573   need_version=no
10574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575   soname_spec='${libname}${release}${shared_ext}$major'
10576   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10577   shlibpath_var=LD_LIBRARY_PATH
10578   shlibpath_overrides_runpath=no
10579
10580   # Some binutils ld are patched to set DT_RUNPATH
10581   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   lt_cv_shlibpath_overrides_runpath=no
10585     save_LDFLAGS=$LDFLAGS
10586     save_libdir=$libdir
10587     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10588          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h.  */
10591
10592 int
10593 main ()
10594 {
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 if ac_fn_c_try_link "$LINENO"; then :
10601   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10602   lt_cv_shlibpath_overrides_runpath=yes
10603 fi
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext \
10606     conftest$ac_exeext conftest.$ac_ext
10607     LDFLAGS=$save_LDFLAGS
10608     libdir=$save_libdir
10609
10610 fi
10611
10612   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10613
10614   # This implies no fast_install, which is unacceptable.
10615   # Some rework will be needed to allow for fast_install
10616   # before this can be enabled.
10617   hardcode_into_libs=yes
10618
10619   # Append ld.so.conf contents to the search path
10620   if test -f /etc/ld.so.conf; then
10621     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' ' '`
10622     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10623   fi
10624
10625   # We used to test for /lib/ld.so.1 and disable shared libraries on
10626   # powerpc, because MkLinux only supported shared libraries with the
10627   # GNU dynamic linker.  Since this was broken with cross compilers,
10628   # most powerpc-linux boxes support dynamic linking these days and
10629   # people can always --disable-shared, the test was removed, and we
10630   # assume the GNU/Linux dynamic linker is in use.
10631   dynamic_linker='GNU/Linux ld.so'
10632   ;;
10633
10634 netbsd*)
10635   version_type=sunos
10636   need_lib_prefix=no
10637   need_version=no
10638   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641     dynamic_linker='NetBSD (a.out) ld.so'
10642   else
10643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10644     soname_spec='${libname}${release}${shared_ext}$major'
10645     dynamic_linker='NetBSD ld.elf_so'
10646   fi
10647   shlibpath_var=LD_LIBRARY_PATH
10648   shlibpath_overrides_runpath=yes
10649   hardcode_into_libs=yes
10650   ;;
10651
10652 newsos6)
10653   version_type=linux # correct to gnu/linux during the next big refactor
10654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655   shlibpath_var=LD_LIBRARY_PATH
10656   shlibpath_overrides_runpath=yes
10657   ;;
10658
10659 *nto* | *qnx*)
10660   version_type=qnx
10661   need_lib_prefix=no
10662   need_version=no
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664   soname_spec='${libname}${release}${shared_ext}$major'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   shlibpath_overrides_runpath=no
10667   hardcode_into_libs=yes
10668   dynamic_linker='ldqnx.so'
10669   ;;
10670
10671 openbsd*)
10672   version_type=sunos
10673   sys_lib_dlsearch_path_spec="/usr/lib"
10674   need_lib_prefix=no
10675   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10676   case $host_os in
10677     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10678     *)                          need_version=no  ;;
10679   esac
10680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10682   shlibpath_var=LD_LIBRARY_PATH
10683   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10684     case $host_os in
10685       openbsd2.[89] | openbsd2.[89].*)
10686         shlibpath_overrides_runpath=no
10687         ;;
10688       *)
10689         shlibpath_overrides_runpath=yes
10690         ;;
10691       esac
10692   else
10693     shlibpath_overrides_runpath=yes
10694   fi
10695   ;;
10696
10697 os2*)
10698   libname_spec='$name'
10699   shrext_cmds=".dll"
10700   need_lib_prefix=no
10701   library_names_spec='$libname${shared_ext} $libname.a'
10702   dynamic_linker='OS/2 ld.exe'
10703   shlibpath_var=LIBPATH
10704   ;;
10705
10706 osf3* | osf4* | osf5*)
10707   version_type=osf
10708   need_lib_prefix=no
10709   need_version=no
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10714   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10715   ;;
10716
10717 rdos*)
10718   dynamic_linker=no
10719   ;;
10720
10721 solaris*)
10722   version_type=linux # correct to gnu/linux during the next big refactor
10723   need_lib_prefix=no
10724   need_version=no
10725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726   soname_spec='${libname}${release}${shared_ext}$major'
10727   shlibpath_var=LD_LIBRARY_PATH
10728   shlibpath_overrides_runpath=yes
10729   hardcode_into_libs=yes
10730   # ldd complains unless libraries are executable
10731   postinstall_cmds='chmod +x $lib'
10732   ;;
10733
10734 sunos4*)
10735   version_type=sunos
10736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10738   shlibpath_var=LD_LIBRARY_PATH
10739   shlibpath_overrides_runpath=yes
10740   if test "$with_gnu_ld" = yes; then
10741     need_lib_prefix=no
10742   fi
10743   need_version=yes
10744   ;;
10745
10746 sysv4 | sysv4.3*)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   shlibpath_var=LD_LIBRARY_PATH
10751   case $host_vendor in
10752     sni)
10753       shlibpath_overrides_runpath=no
10754       need_lib_prefix=no
10755       runpath_var=LD_RUN_PATH
10756       ;;
10757     siemens)
10758       need_lib_prefix=no
10759       ;;
10760     motorola)
10761       need_lib_prefix=no
10762       need_version=no
10763       shlibpath_overrides_runpath=no
10764       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10765       ;;
10766   esac
10767   ;;
10768
10769 sysv4*MP*)
10770   if test -d /usr/nec ;then
10771     version_type=linux # correct to gnu/linux during the next big refactor
10772     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10773     soname_spec='$libname${shared_ext}.$major'
10774     shlibpath_var=LD_LIBRARY_PATH
10775   fi
10776   ;;
10777
10778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10779   version_type=freebsd-elf
10780   need_lib_prefix=no
10781   need_version=no
10782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10783   soname_spec='${libname}${release}${shared_ext}$major'
10784   shlibpath_var=LD_LIBRARY_PATH
10785   shlibpath_overrides_runpath=yes
10786   hardcode_into_libs=yes
10787   if test "$with_gnu_ld" = yes; then
10788     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10789   else
10790     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10791     case $host_os in
10792       sco3.2v5*)
10793         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10794         ;;
10795     esac
10796   fi
10797   sys_lib_dlsearch_path_spec='/usr/lib'
10798   ;;
10799
10800 tpf*)
10801   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10802   version_type=linux # correct to gnu/linux during the next big refactor
10803   need_lib_prefix=no
10804   need_version=no
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806   shlibpath_var=LD_LIBRARY_PATH
10807   shlibpath_overrides_runpath=no
10808   hardcode_into_libs=yes
10809   ;;
10810
10811 uts4*)
10812   version_type=linux # correct to gnu/linux during the next big refactor
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   ;;
10817
10818 *)
10819   dynamic_linker=no
10820   ;;
10821 esac
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10823 $as_echo "$dynamic_linker" >&6; }
10824 test "$dynamic_linker" = no && can_build_shared=no
10825
10826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10827 if test "$GCC" = yes; then
10828   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10829 fi
10830
10831 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10832   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10833 fi
10834 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10835   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10930 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10931 hardcode_action=
10932 if test -n "$hardcode_libdir_flag_spec" ||
10933    test -n "$runpath_var" ||
10934    test "X$hardcode_automatic" = "Xyes" ; then
10935
10936   # We can hardcode non-existent directories.
10937   if test "$hardcode_direct" != no &&
10938      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10939      # have to relink, otherwise we might link with an installed library
10940      # when we should be linking with a yet-to-be-installed one
10941      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10942      test "$hardcode_minus_L" != no; then
10943     # Linking always hardcodes the temporary library directory.
10944     hardcode_action=relink
10945   else
10946     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10947     hardcode_action=immediate
10948   fi
10949 else
10950   # We cannot hardcode anything, or else we can only hardcode existing
10951   # directories.
10952   hardcode_action=unsupported
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10955 $as_echo "$hardcode_action" >&6; }
10956
10957 if test "$hardcode_action" = relink ||
10958    test "$inherit_rpath" = yes; then
10959   # Fast installation is not supported
10960   enable_fast_install=no
10961 elif test "$shlibpath_overrides_runpath" = yes ||
10962      test "$enable_shared" = no; then
10963   # Fast installation is not necessary
10964   enable_fast_install=needless
10965 fi
10966
10967
10968
10969
10970
10971
10972   if test "x$enable_dlopen" != xyes; then
10973   enable_dlopen=unknown
10974   enable_dlopen_self=unknown
10975   enable_dlopen_self_static=unknown
10976 else
10977   lt_cv_dlopen=no
10978   lt_cv_dlopen_libs=
10979
10980   case $host_os in
10981   beos*)
10982     lt_cv_dlopen="load_add_on"
10983     lt_cv_dlopen_libs=
10984     lt_cv_dlopen_self=yes
10985     ;;
10986
10987   mingw* | pw32* | cegcc*)
10988     lt_cv_dlopen="LoadLibrary"
10989     lt_cv_dlopen_libs=
10990     ;;
10991
10992   cygwin*)
10993     lt_cv_dlopen="dlopen"
10994     lt_cv_dlopen_libs=
10995     ;;
10996
10997   darwin*)
10998   # if libdl is installed we need to link against it
10999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11001 if ${ac_cv_lib_dl_dlopen+:} false; then :
11002   $as_echo_n "(cached) " >&6
11003 else
11004   ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldl  $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010    Use char because int might match the return type of a GCC
11011    builtin and then its argument prototype would still apply.  */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11016 int
11017 main ()
11018 {
11019 return dlopen ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025   ac_cv_lib_dl_dlopen=yes
11026 else
11027   ac_cv_lib_dl_dlopen=no
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030     conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11036   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11037 else
11038
11039     lt_cv_dlopen="dyld"
11040     lt_cv_dlopen_libs=
11041     lt_cv_dlopen_self=yes
11042
11043 fi
11044
11045     ;;
11046
11047   *)
11048     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11049 if test "x$ac_cv_func_shl_load" = xyes; then :
11050   lt_cv_dlopen="shl_load"
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11053 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11054 if ${ac_cv_lib_dld_shl_load+:} false; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-ldld  $LIBS"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h.  */
11061
11062 /* Override any GCC internal prototype to avoid an error.
11063    Use char because int might match the return type of a GCC
11064    builtin and then its argument prototype would still apply.  */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char shl_load ();
11069 int
11070 main ()
11071 {
11072 return shl_load ();
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 if ac_fn_c_try_link "$LINENO"; then :
11078   ac_cv_lib_dld_shl_load=yes
11079 else
11080   ac_cv_lib_dld_shl_load=no
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext \
11083     conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11088 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11089   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11090 else
11091   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11092 if test "x$ac_cv_func_dlopen" = xyes; then :
11093   lt_cv_dlopen="dlopen"
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11097 if ${ac_cv_lib_dl_dlopen+:} false; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-ldl  $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h.  */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106    Use char because int might match the return type of a GCC
11107    builtin and then its argument prototype would still apply.  */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char dlopen ();
11112 int
11113 main ()
11114 {
11115 return dlopen ();
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121   ac_cv_lib_dl_dlopen=yes
11122 else
11123   ac_cv_lib_dl_dlopen=no
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext \
11126     conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11131 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11132   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11136 if ${ac_cv_lib_svld_dlopen+:} false; then :
11137   $as_echo_n "(cached) " >&6
11138 else
11139   ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lsvld  $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h.  */
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145    Use char because int might match the return type of a GCC
11146    builtin and then its argument prototype would still apply.  */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char dlopen ();
11151 int
11152 main ()
11153 {
11154 return dlopen ();
11155   ;
11156   return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160   ac_cv_lib_svld_dlopen=yes
11161 else
11162   ac_cv_lib_svld_dlopen=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165     conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11169 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11170 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11174 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11175 if ${ac_cv_lib_dld_dld_link+:} false; then :
11176   $as_echo_n "(cached) " >&6
11177 else
11178   ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-ldld  $LIBS"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h.  */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184    Use char because int might match the return type of a GCC
11185    builtin and then its argument prototype would still apply.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char dld_link ();
11190 int
11191 main ()
11192 {
11193 return dld_link ();
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199   ac_cv_lib_dld_dld_link=yes
11200 else
11201   ac_cv_lib_dld_dld_link=no
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext \
11204     conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11208 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11209 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11211 fi
11212
11213
11214 fi
11215
11216
11217 fi
11218
11219
11220 fi
11221
11222
11223 fi
11224
11225
11226 fi
11227
11228     ;;
11229   esac
11230
11231   if test "x$lt_cv_dlopen" != xno; then
11232     enable_dlopen=yes
11233   else
11234     enable_dlopen=no
11235   fi
11236
11237   case $lt_cv_dlopen in
11238   dlopen)
11239     save_CPPFLAGS="$CPPFLAGS"
11240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11241
11242     save_LDFLAGS="$LDFLAGS"
11243     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11244
11245     save_LIBS="$LIBS"
11246     LIBS="$lt_cv_dlopen_libs $LIBS"
11247
11248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11249 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11250 if ${lt_cv_dlopen_self+:} false; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253           if test "$cross_compiling" = yes; then :
11254   lt_cv_dlopen_self=cross
11255 else
11256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11257   lt_status=$lt_dlunknown
11258   cat > conftest.$ac_ext <<_LT_EOF
11259 #line $LINENO "configure"
11260 #include "confdefs.h"
11261
11262 #if HAVE_DLFCN_H
11263 #include <dlfcn.h>
11264 #endif
11265
11266 #include <stdio.h>
11267
11268 #ifdef RTLD_GLOBAL
11269 #  define LT_DLGLOBAL           RTLD_GLOBAL
11270 #else
11271 #  ifdef DL_GLOBAL
11272 #    define LT_DLGLOBAL         DL_GLOBAL
11273 #  else
11274 #    define LT_DLGLOBAL         0
11275 #  endif
11276 #endif
11277
11278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11279    find out it does not work in some platform. */
11280 #ifndef LT_DLLAZY_OR_NOW
11281 #  ifdef RTLD_LAZY
11282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11283 #  else
11284 #    ifdef DL_LAZY
11285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11286 #    else
11287 #      ifdef RTLD_NOW
11288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11289 #      else
11290 #        ifdef DL_NOW
11291 #          define LT_DLLAZY_OR_NOW      DL_NOW
11292 #        else
11293 #          define LT_DLLAZY_OR_NOW      0
11294 #        endif
11295 #      endif
11296 #    endif
11297 #  endif
11298 #endif
11299
11300 /* When -fvisbility=hidden is used, assume the code has been annotated
11301    correspondingly for the symbols needed.  */
11302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11303 int fnord () __attribute__((visibility("default")));
11304 #endif
11305
11306 int fnord () { return 42; }
11307 int main ()
11308 {
11309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11310   int status = $lt_dlunknown;
11311
11312   if (self)
11313     {
11314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11315       else
11316         {
11317           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11318           else puts (dlerror ());
11319         }
11320       /* dlclose (self); */
11321     }
11322   else
11323     puts (dlerror ());
11324
11325   return status;
11326 }
11327 _LT_EOF
11328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11329   (eval $ac_link) 2>&5
11330   ac_status=$?
11331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11332   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11333     (./conftest; exit; ) >&5 2>/dev/null
11334     lt_status=$?
11335     case x$lt_status in
11336       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11337       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11338       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11339     esac
11340   else :
11341     # compilation failed
11342     lt_cv_dlopen_self=no
11343   fi
11344 fi
11345 rm -fr conftest*
11346
11347
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11350 $as_echo "$lt_cv_dlopen_self" >&6; }
11351
11352     if test "x$lt_cv_dlopen_self" = xyes; then
11353       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11355 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11356 if ${lt_cv_dlopen_self_static+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359           if test "$cross_compiling" = yes; then :
11360   lt_cv_dlopen_self_static=cross
11361 else
11362   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11363   lt_status=$lt_dlunknown
11364   cat > conftest.$ac_ext <<_LT_EOF
11365 #line $LINENO "configure"
11366 #include "confdefs.h"
11367
11368 #if HAVE_DLFCN_H
11369 #include <dlfcn.h>
11370 #endif
11371
11372 #include <stdio.h>
11373
11374 #ifdef RTLD_GLOBAL
11375 #  define LT_DLGLOBAL           RTLD_GLOBAL
11376 #else
11377 #  ifdef DL_GLOBAL
11378 #    define LT_DLGLOBAL         DL_GLOBAL
11379 #  else
11380 #    define LT_DLGLOBAL         0
11381 #  endif
11382 #endif
11383
11384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11385    find out it does not work in some platform. */
11386 #ifndef LT_DLLAZY_OR_NOW
11387 #  ifdef RTLD_LAZY
11388 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11389 #  else
11390 #    ifdef DL_LAZY
11391 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11392 #    else
11393 #      ifdef RTLD_NOW
11394 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11395 #      else
11396 #        ifdef DL_NOW
11397 #          define LT_DLLAZY_OR_NOW      DL_NOW
11398 #        else
11399 #          define LT_DLLAZY_OR_NOW      0
11400 #        endif
11401 #      endif
11402 #    endif
11403 #  endif
11404 #endif
11405
11406 /* When -fvisbility=hidden is used, assume the code has been annotated
11407    correspondingly for the symbols needed.  */
11408 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11409 int fnord () __attribute__((visibility("default")));
11410 #endif
11411
11412 int fnord () { return 42; }
11413 int main ()
11414 {
11415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11416   int status = $lt_dlunknown;
11417
11418   if (self)
11419     {
11420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11421       else
11422         {
11423           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11424           else puts (dlerror ());
11425         }
11426       /* dlclose (self); */
11427     }
11428   else
11429     puts (dlerror ());
11430
11431   return status;
11432 }
11433 _LT_EOF
11434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11435   (eval $ac_link) 2>&5
11436   ac_status=$?
11437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11439     (./conftest; exit; ) >&5 2>/dev/null
11440     lt_status=$?
11441     case x$lt_status in
11442       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11443       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11444       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11445     esac
11446   else :
11447     # compilation failed
11448     lt_cv_dlopen_self_static=no
11449   fi
11450 fi
11451 rm -fr conftest*
11452
11453
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11457     fi
11458
11459     CPPFLAGS="$save_CPPFLAGS"
11460     LDFLAGS="$save_LDFLAGS"
11461     LIBS="$save_LIBS"
11462     ;;
11463   esac
11464
11465   case $lt_cv_dlopen_self in
11466   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11467   *) enable_dlopen_self=unknown ;;
11468   esac
11469
11470   case $lt_cv_dlopen_self_static in
11471   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11472   *) enable_dlopen_self_static=unknown ;;
11473   esac
11474 fi
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 striplib=
11493 old_striplib=
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11497   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11498   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11500 $as_echo "yes" >&6; }
11501 else
11502 # FIXME - insert some real tests, host_os isn't really good enough
11503   case $host_os in
11504   darwin*)
11505     if test -n "$STRIP" ; then
11506       striplib="$STRIP -x"
11507       old_striplib="$STRIP -S"
11508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509 $as_echo "yes" >&6; }
11510     else
11511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513     fi
11514     ;;
11515   *)
11516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11518     ;;
11519   esac
11520 fi
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533   # Report which library types will actually be built
11534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11537 $as_echo "$can_build_shared" >&6; }
11538
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11540 $as_echo_n "checking whether to build shared libraries... " >&6; }
11541   test "$can_build_shared" = "no" && enable_shared=no
11542
11543   # On AIX, shared libraries and static libraries use the same namespace, and
11544   # are all built from PIC.
11545   case $host_os in
11546   aix3*)
11547     test "$enable_shared" = yes && enable_static=no
11548     if test -n "$RANLIB"; then
11549       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11550       postinstall_cmds='$RANLIB $lib'
11551     fi
11552     ;;
11553
11554   aix[4-9]*)
11555     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11556       test "$enable_shared" = yes && enable_static=no
11557     fi
11558     ;;
11559   esac
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11561 $as_echo "$enable_shared" >&6; }
11562
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11564 $as_echo_n "checking whether to build static libraries... " >&6; }
11565   # Make sure either enable_shared or enable_static is yes.
11566   test "$enable_shared" = yes || enable_static=yes
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11568 $as_echo "$enable_static" >&6; }
11569
11570
11571
11572
11573 fi
11574 ac_ext=c
11575 ac_cpp='$CPP $CPPFLAGS'
11576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11579
11580 CC="$lt_save_CC"
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596         ac_config_commands="$ac_config_commands libtool"
11597
11598
11599
11600
11601 # Only expand once:
11602
11603
11604 if test "x$CC" != xcc; then
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11606 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11607 else
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11609 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11610 fi
11611 set dummy $CC; ac_cc=`$as_echo "$2" |
11612                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11613 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h.  */
11618
11619 int
11620 main ()
11621 {
11622
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 # Make sure it works both with $CC and with simple cc.
11628 # We do the test twice because some compilers refuse to overwrite an
11629 # existing .o file with -o, though they will create one.
11630 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11631 rm -f conftest2.*
11632 if { { case "(($ac_try" in
11633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634   *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11637 $as_echo "$ac_try_echo"; } >&5
11638   (eval "$ac_try") 2>&5
11639   ac_status=$?
11640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641   test $ac_status = 0; } &&
11642    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11647 $as_echo "$ac_try_echo"; } >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651   test $ac_status = 0; };
11652 then
11653   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11654   if test "x$CC" != xcc; then
11655     # Test first that cc exists at all.
11656     if { ac_try='cc -c conftest.$ac_ext >&5'
11657   { { case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11662 $as_echo "$ac_try_echo"; } >&5
11663   (eval "$ac_try") 2>&5
11664   ac_status=$?
11665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666   test $ac_status = 0; }; }; then
11667       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11668       rm -f conftest2.*
11669       if { { case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11674 $as_echo "$ac_try_echo"; } >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678   test $ac_status = 0; } &&
11679          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11684 $as_echo "$ac_try_echo"; } >&5
11685   (eval "$ac_try") 2>&5
11686   ac_status=$?
11687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688   test $ac_status = 0; };
11689       then
11690         # cc works too.
11691         :
11692       else
11693         # cc exists but doesn't like -o.
11694         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11695       fi
11696     fi
11697   fi
11698 else
11699   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11700 fi
11701 rm -f core conftest*
11702
11703 fi
11704 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706 $as_echo "yes" >&6; }
11707 else
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710
11711 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11712
11713 fi
11714
11715 # FIXME: we rely on the cache variable name because
11716 # there is no other way.
11717 set dummy $CC
11718 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11719 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11720 if test "$am_t" != yes; then
11721    # Losing compiler, so override with the script.
11722    # FIXME: It is wrong to rewrite CC.
11723    # But if we don't then we get into trouble of one sort or another.
11724    # A longer-term fix would be to have automake use am__CC in this case,
11725    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11726    CC="$am_aux_dir/compile $CC"
11727 fi
11728
11729
11730
11731 # Check whether --enable-silent-rules was given.
11732 if test "${enable_silent_rules+set}" = set; then :
11733   enableval=$enable_silent_rules;
11734 fi
11735
11736 case $enable_silent_rules in # (((
11737   yes) AM_DEFAULT_VERBOSITY=0;;
11738    no) AM_DEFAULT_VERBOSITY=1;;
11739     *) AM_DEFAULT_VERBOSITY=0;;
11740 esac
11741 am_make=${MAKE-make}
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11744 if ${am_cv_make_support_nested_variables+:} false; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   if $as_echo 'TRUE=$(BAR$(V))
11748 BAR0=false
11749 BAR1=true
11750 V=1
11751 am__doit:
11752         @$(TRUE)
11753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11754   am_cv_make_support_nested_variables=yes
11755 else
11756   am_cv_make_support_nested_variables=no
11757 fi
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11761 if test $am_cv_make_support_nested_variables = yes; then
11762     AM_V='$(V)'
11763   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11764 else
11765   AM_V=$AM_DEFAULT_VERBOSITY
11766   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11767 fi
11768 AM_BACKSLASH='\'
11769
11770
11771
11772
11773 # Check whether --enable-everything was given.
11774 if test "${enable_everything+set}" = set; then :
11775   enableval=$enable_everything; test "${enable_libwebpdecoder+set}" = "set" || enable_libwebpdecoder=$enableval
11776                test "${enable_libwebpdemux+set}" = "set" || enable_libwebpdemux=$enableval
11777                test "${enable_libwebpmux+set}" = "set" || enable_libwebpmux=$enableval
11778 fi
11779
11780
11781
11782 # Check whether --with-pkgconfigdir was given.
11783 if test "${with_pkgconfigdir+set}" = set; then :
11784   withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11785 else
11786   pkgconfigdir='${libdir}/pkgconfig'
11787 fi
11788
11789
11790
11791
11792 SAVED_CFLAGS="$CFLAGS"
11793           CFLAGS="-Werror -Wall"
11794           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11795 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
11796                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h.  */
11798 int main(void) { return 0; }
11799 _ACEOF
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803                             as_fn_append AM_CFLAGS " -Wall"
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809           CFLAGS="$SAVED_CFLAGS"
11810 SAVED_CFLAGS="$CFLAGS"
11811           CFLAGS="-Werror -Wdeclaration-after-statement"
11812           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
11813 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
11814                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h.  */
11816 int main(void) { return 0; }
11817 _ACEOF
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820 $as_echo "yes" >&6; }
11821                             as_fn_append AM_CFLAGS " -Wdeclaration-after-statement"
11822 else
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827           CFLAGS="$SAVED_CFLAGS"
11828 SAVED_CFLAGS="$CFLAGS"
11829           CFLAGS="-Werror -Wextra"
11830           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
11831 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
11832                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h.  */
11834 int main(void) { return 0; }
11835 _ACEOF
11836 if ac_fn_c_try_compile "$LINENO"; then :
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11838 $as_echo "yes" >&6; }
11839                             as_fn_append AM_CFLAGS " -Wextra"
11840 else
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845           CFLAGS="$SAVED_CFLAGS"
11846 SAVED_CFLAGS="$CFLAGS"
11847           CFLAGS="-Werror -Wmissing-declarations"
11848           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations" >&5
11849 $as_echo_n "checking whether $CC supports -Wmissing-declarations... " >&6; }
11850                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852 int main(void) { return 0; }
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856 $as_echo "yes" >&6; }
11857                             as_fn_append AM_CFLAGS " -Wmissing-declarations"
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863           CFLAGS="$SAVED_CFLAGS"
11864 SAVED_CFLAGS="$CFLAGS"
11865           CFLAGS="-Werror -Wmissing-prototypes"
11866           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
11867 $as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
11868                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870 int main(void) { return 0; }
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11874 $as_echo "yes" >&6; }
11875                             as_fn_append AM_CFLAGS " -Wmissing-prototypes"
11876 else
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881           CFLAGS="$SAVED_CFLAGS"
11882 SAVED_CFLAGS="$CFLAGS"
11883           CFLAGS="-Werror -Wold-style-definition"
11884           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wold-style-definition" >&5
11885 $as_echo_n "checking whether $CC supports -Wold-style-definition... " >&6; }
11886                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888 int main(void) { return 0; }
11889 _ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893                             as_fn_append AM_CFLAGS " -Wold-style-definition"
11894 else
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899           CFLAGS="$SAVED_CFLAGS"
11900 SAVED_CFLAGS="$CFLAGS"
11901           CFLAGS="-Werror -Wshadow"
11902           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow" >&5
11903 $as_echo_n "checking whether $CC supports -Wshadow... " >&6; }
11904                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h.  */
11906 int main(void) { return 0; }
11907 _ACEOF
11908 if ac_fn_c_try_compile "$LINENO"; then :
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911                             as_fn_append AM_CFLAGS " -Wshadow"
11912 else
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917           CFLAGS="$SAVED_CFLAGS"
11918 SAVED_CFLAGS="$CFLAGS"
11919           CFLAGS="-Werror -Wunused-but-set-variable"
11920           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-but-set-variable" >&5
11921 $as_echo_n "checking whether $CC supports -Wunused-but-set-variable... " >&6; }
11922                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h.  */
11924 int main(void) { return 0; }
11925 _ACEOF
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929                             as_fn_append AM_CFLAGS " -Wunused-but-set-variable"
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935           CFLAGS="$SAVED_CFLAGS"
11936 SAVED_CFLAGS="$CFLAGS"
11937           CFLAGS="-Werror -Wunused"
11938           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused" >&5
11939 $as_echo_n "checking whether $CC supports -Wunused... " >&6; }
11940                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11942 int main(void) { return 0; }
11943 _ACEOF
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11947                             as_fn_append AM_CFLAGS " -Wunused"
11948 else
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953           CFLAGS="$SAVED_CFLAGS"
11954 SAVED_CFLAGS="$CFLAGS"
11955           CFLAGS="-Werror -Wvla"
11956           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wvla" >&5
11957 $as_echo_n "checking whether $CC supports -Wvla... " >&6; }
11958                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h.  */
11960 int main(void) { return 0; }
11961 _ACEOF
11962 if ac_fn_c_try_compile "$LINENO"; then :
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965                             as_fn_append AM_CFLAGS " -Wvla"
11966 else
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971           CFLAGS="$SAVED_CFLAGS"
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 # Check whether --enable-threading was given.
11983 if test "${enable_threading+set}" = set; then :
11984   enableval=$enable_threading;
11985 else
11986   enable_threading=yes
11987 fi
11988
11989 if test "$enable_threading" = "yes"; then
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for threading support..." >&5
11991 $as_echo "$as_me: checking for threading support..." >&6;}
11992
11993
11994 ac_ext=c
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11999
12000 ax_pthread_ok=no
12001
12002 # We used to check for pthread.h first, but this fails if pthread.h
12003 # requires special compiler flags (e.g. on True64 or Sequent).
12004 # It gets checked for in the link test anyway.
12005
12006 # First of all, check if the user has set any of the PTHREAD_LIBS,
12007 # etcetera environment variables, and if threads linking works using
12008 # them:
12009 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12010         save_CFLAGS="$CFLAGS"
12011         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12012         save_LIBS="$LIBS"
12013         LIBS="$PTHREAD_LIBS $LIBS"
12014         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12015 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12016         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h.  */
12018
12019 /* Override any GCC internal prototype to avoid an error.
12020    Use char because int might match the return type of a GCC
12021    builtin and then its argument prototype would still apply.  */
12022 #ifdef __cplusplus
12023 extern "C"
12024 #endif
12025 char pthread_join ();
12026 int
12027 main ()
12028 {
12029 return pthread_join ();
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_link "$LINENO"; then :
12035   ax_pthread_ok=yes
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext \
12038     conftest$ac_exeext conftest.$ac_ext
12039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12040 $as_echo "$ax_pthread_ok" >&6; }
12041         if test x"$ax_pthread_ok" = xno; then
12042                 PTHREAD_LIBS=""
12043                 PTHREAD_CFLAGS=""
12044         fi
12045         LIBS="$save_LIBS"
12046         CFLAGS="$save_CFLAGS"
12047 fi
12048
12049 # We must check for the threads library under a number of different
12050 # names; the ordering is very important because some systems
12051 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12052 # libraries is broken (non-POSIX).
12053
12054 # Create a list of thread flags to try.  Items starting with a "-" are
12055 # C compiler flags, and other items are library names, except for "none"
12056 # which indicates that we try without any flags at all, and "pthread-config"
12057 # which is a program returning the flags for the Pth emulation library.
12058
12059 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
12060
12061 # The ordering *is* (sometimes) important.  Some notes on the
12062 # individual items follow:
12063
12064 # pthreads: AIX (must check this before -lpthread)
12065 # none: in case threads are in libc; should be tried before -Kthread and
12066 #       other compiler flags to prevent continual compiler warnings
12067 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12068 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12069 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12070 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12071 # -pthreads: Solaris/gcc
12072 # -mthreads: Mingw32/gcc, Lynx/gcc
12073 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12074 #      doesn't hurt to check since this sometimes defines pthreads too;
12075 #      also defines -D_REENTRANT)
12076 #      ... -mt is also the pthreads flag for HP/aCC
12077 # pthread: Linux, etcetera
12078 # --thread-safe: KAI C++
12079 # pthread-config: use pthread-config program (for GNU Pth library)
12080
12081 case ${host_os} in
12082         solaris*)
12083
12084         # On Solaris (at least, for some versions), libc contains stubbed
12085         # (non-functional) versions of the pthreads routines, so link-based
12086         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
12087         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
12088         # a function called by this macro, so we could check for that, but
12089         # who knows whether they'll stub that too in a future libc.)  So,
12090         # we'll just look for -pthreads and -lpthread first:
12091
12092         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
12093         ;;
12094
12095         darwin*)
12096         ax_pthread_flags="-pthread $ax_pthread_flags"
12097         ;;
12098 esac
12099
12100 if test x"$ax_pthread_ok" = xno; then
12101 for flag in $ax_pthread_flags; do
12102
12103         case $flag in
12104                 none)
12105                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12106 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12107                 ;;
12108
12109                 -*)
12110                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12111 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12112                 PTHREAD_CFLAGS="$flag"
12113                 ;;
12114
12115                 pthread-config)
12116                 # Extract the first word of "pthread-config", so it can be a program name with args.
12117 set dummy pthread-config; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_prog_ax_pthread_config+:} false; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   if test -n "$ax_pthread_config"; then
12124   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
12125 else
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12128 do
12129   IFS=$as_save_IFS
12130   test -z "$as_dir" && as_dir=.
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133     ac_cv_prog_ax_pthread_config="yes"
12134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138   done
12139 IFS=$as_save_IFS
12140
12141   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
12142 fi
12143 fi
12144 ax_pthread_config=$ac_cv_prog_ax_pthread_config
12145 if test -n "$ax_pthread_config"; then
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
12147 $as_echo "$ax_pthread_config" >&6; }
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154                 if test x"$ax_pthread_config" = xno; then continue; fi
12155                 PTHREAD_CFLAGS="`pthread-config --cflags`"
12156                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12157                 ;;
12158
12159                 *)
12160                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12161 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12162                 PTHREAD_LIBS="-l$flag"
12163                 ;;
12164         esac
12165
12166         save_LIBS="$LIBS"
12167         save_CFLAGS="$CFLAGS"
12168         LIBS="$PTHREAD_LIBS $LIBS"
12169         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12170
12171         # Check for various functions.  We must include pthread.h,
12172         # since some functions may be macros.  (On the Sequent, we
12173         # need a special flag -Kthread to make this header compile.)
12174         # We check for pthread_join because it is in -lpthread on IRIX
12175         # while pthread_create is in libc.  We check for pthread_attr_init
12176         # due to DEC craziness with -lpthreads.  We check for
12177         # pthread_cleanup_push because it is one of the few pthread
12178         # functions on Solaris that doesn't have a non-functional libc stub.
12179         # We try pthread_create on general principles.
12180         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h.  */
12182 #include <pthread.h>
12183                         static void routine(void *a) { a = 0; }
12184                         static void *start_routine(void *a) { return a; }
12185 int
12186 main ()
12187 {
12188 pthread_t th; pthread_attr_t attr;
12189                         pthread_create(&th, 0, start_routine, 0);
12190                         pthread_join(th, 0);
12191                         pthread_attr_init(&attr);
12192                         pthread_cleanup_push(routine, 0);
12193                         pthread_cleanup_pop(0) /* ; */
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199   ax_pthread_ok=yes
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202     conftest$ac_exeext conftest.$ac_ext
12203
12204         LIBS="$save_LIBS"
12205         CFLAGS="$save_CFLAGS"
12206
12207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12208 $as_echo "$ax_pthread_ok" >&6; }
12209         if test "x$ax_pthread_ok" = xyes; then
12210                 break;
12211         fi
12212
12213         PTHREAD_LIBS=""
12214         PTHREAD_CFLAGS=""
12215 done
12216 fi
12217
12218 # Various other checks:
12219 if test "x$ax_pthread_ok" = xyes; then
12220         save_LIBS="$LIBS"
12221         LIBS="$PTHREAD_LIBS $LIBS"
12222         save_CFLAGS="$CFLAGS"
12223         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12224
12225         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
12226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12227 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12228         attr_name=unknown
12229         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
12230             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232 #include <pthread.h>
12233 int
12234 main ()
12235 {
12236 int attr = $attr; return attr /* ; */
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242   attr_name=$attr; break
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext \
12245     conftest$ac_exeext conftest.$ac_ext
12246         done
12247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
12248 $as_echo "$attr_name" >&6; }
12249         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
12250
12251 cat >>confdefs.h <<_ACEOF
12252 #define PTHREAD_CREATE_JOINABLE $attr_name
12253 _ACEOF
12254
12255         fi
12256
12257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12258 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12259         flag=no
12260         case ${host_os} in
12261             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
12262             osf* | hpux*) flag="-D_REENTRANT";;
12263             solaris*)
12264             if test "$GCC" = "yes"; then
12265                 flag="-D_REENTRANT"
12266             else
12267                 flag="-mt -D_REENTRANT"
12268             fi
12269             ;;
12270         esac
12271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12272 $as_echo "${flag}" >&6; }
12273         if test "x$flag" != xno; then
12274             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12275         fi
12276
12277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
12278 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
12279 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282
12283                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285
12286                     #include <pthread.h>
12287 int
12288 main ()
12289 {
12290 int i = PTHREAD_PRIO_INHERIT;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296   ax_cv_PTHREAD_PRIO_INHERIT=yes
12297 else
12298   ax_cv_PTHREAD_PRIO_INHERIT=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301     conftest$ac_exeext conftest.$ac_ext
12302
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
12305 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
12306         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
12307
12308 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
12309
12310 fi
12311
12312         LIBS="$save_LIBS"
12313         CFLAGS="$save_CFLAGS"
12314
12315         # More AIX lossage: must compile with xlc_r or cc_r
12316         if test x"$GCC" != xyes; then
12317           for ac_prog in xlc_r cc_r
12318 do
12319   # Extract the first word of "$ac_prog", so it can be a program name with args.
12320 set dummy $ac_prog; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   if test -n "$PTHREAD_CC"; then
12327   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_exec_ext in '' $ac_executable_extensions; do
12335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336     ac_cv_prog_PTHREAD_CC="$ac_prog"
12337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338     break 2
12339   fi
12340 done
12341   done
12342 IFS=$as_save_IFS
12343
12344 fi
12345 fi
12346 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12347 if test -n "$PTHREAD_CC"; then
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12349 $as_echo "$PTHREAD_CC" >&6; }
12350 else
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354
12355
12356   test -n "$PTHREAD_CC" && break
12357 done
12358 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
12359
12360         else
12361           PTHREAD_CC=$CC
12362         fi
12363 else
12364         PTHREAD_CC="$CC"
12365 fi
12366
12367
12368
12369
12370
12371 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12372 if test x"$ax_pthread_ok" = xyes; then
12373
12374 $as_echo "#define WEBP_USE_THREAD 1" >>confdefs.h
12375
12376               LIBS="$PTHREAD_LIBS $LIBS"
12377               CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12378               CC="$PTHREAD_CC"
12379
12380         :
12381 else
12382         ax_pthread_ok=no
12383         enable_threading=no
12384 fi
12385 ac_ext=c
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12390
12391
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if threading is enabled... ${enable_threading-no}" >&5
12394 $as_echo "$as_me: checking if threading is enabled... ${enable_threading-no}" >&6;}
12395
12396 GL_INCLUDES=""; GL_LIBS=""
12397
12398 # Check whether --with-glincludedir was given.
12399 if test "${with_glincludedir+set}" = set; then :
12400   withval=$with_glincludedir; GL_INCLUDES="-I$withval"
12401 fi
12402
12403
12404 # Check whether --with-gllibdir was given.
12405 if test "${with_gllibdir+set}" = set; then :
12406   withval=$with_gllibdir; GL_LIBS="-L$withval"
12407 fi
12408
12409
12410 SAVED_CPPFLAGS=$CPPFLAGS
12411           SAVED_LIBS=$LIBS
12412           CPPFLAGS="$GL_INCLUDES $CPPFLAGS"
12413           LIBS="$GL_LIBS $LIBS"
12414
12415 glut_cflags="none"
12416 glut_ldflags="none"
12417 case $host_os in
12418   darwin*)
12419     # Special case for OSX builds. Append these to give the user a chance to
12420     # override with --with-gl*
12421     glut_cflags="$glut_cflags|-framework GLUT -framework OpenGL"
12422     glut_ldflags="$glut_ldflags|-framework GLUT -framework OpenGL"
12423     ;;
12424 esac
12425
12426 GLUT_SAVED_CPPFLAGS="$CPPFLAGS"
12427 SAVED_IFS="$IFS"
12428 IFS="|"
12429 for flag in $glut_cflags; do
12430   # restore IFS immediately as the autoconf macros may need the default.
12431   IFS="$SAVED_IFS"
12432   unset ac_cv_header_GL_glut_h
12433   unset ac_cv_header_OpenGL_glut_h
12434
12435   case $flag in
12436     none) ;;
12437     *) CPPFLAGS="$flag $CPPFLAGS";;
12438   esac
12439   for ac_header in GL/glut.h GLUT/glut.h OpenGL/glut.h
12440 do :
12441   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12442 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12443 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12444   cat >>confdefs.h <<_ACEOF
12445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12446 _ACEOF
12447  glut_headers=yes;
12448                     test "$flag" = "none" || GL_INCLUDES="$CPPFLAGS";
12449                     break
12450 fi
12451
12452 done
12453
12454   CPPFLAGS="$GLUT_SAVED_CPPFLAGS"
12455   test "$glut_headers" = "yes" && break
12456 done
12457 IFS="$SAVED_IFS"
12458
12459 if test "$glut_headers" = "yes"; then
12460   ac_ext=c
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466   GLUT_SAVED_LDFLAGS="$LDFLAGS"
12467   SAVED_IFS="$IFS"
12468   IFS="|"
12469   for flag in $glut_ldflags; do
12470     # restore IFS immediately as the autoconf macros may need the default.
12471     IFS="$SAVED_IFS"
12472     unset ac_cv_search_glBegin
12473
12474     case $flag in
12475       none) ;;
12476       *) LDFLAGS="$flag $LDFLAGS";;
12477     esac
12478
12479     # find libGL
12480     GL_SAVED_LIBS="$LIBS"
12481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
12482 $as_echo_n "checking for library containing glBegin... " >&6; }
12483 if ${ac_cv_search_glBegin+:} false; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491    Use char because int might match the return type of a GCC
12492    builtin and then its argument prototype would still apply.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char glBegin ();
12497 int
12498 main ()
12499 {
12500 return glBegin ();
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 for ac_lib in '' GL OpenGL; do
12506   if test -z "$ac_lib"; then
12507     ac_res="none required"
12508   else
12509     ac_res=-l$ac_lib
12510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12511   fi
12512   if ac_fn_c_try_link "$LINENO"; then :
12513   ac_cv_search_glBegin=$ac_res
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext \
12516     conftest$ac_exeext
12517   if ${ac_cv_search_glBegin+:} false; then :
12518   break
12519 fi
12520 done
12521 if ${ac_cv_search_glBegin+:} false; then :
12522
12523 else
12524   ac_cv_search_glBegin=no
12525 fi
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
12530 $as_echo "$ac_cv_search_glBegin" >&6; }
12531 ac_res=$ac_cv_search_glBegin
12532 if test "$ac_res" != no; then :
12533   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12534
12535 fi
12536
12537     LIBS="$GL_SAVED_LIBS"
12538
12539     # A direct link to libGL may not be necessary on e.g., linux.
12540     for lib in "" $ac_cv_search_glBegin; do
12541       unset ac_cv_search_glutMainLoop
12542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glutMainLoop" >&5
12543 $as_echo_n "checking for library containing glutMainLoop... " >&6; }
12544 if ${ac_cv_search_glutMainLoop+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   ac_func_search_save_LIBS=$LIBS
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h.  */
12550
12551 /* Override any GCC internal prototype to avoid an error.
12552    Use char because int might match the return type of a GCC
12553    builtin and then its argument prototype would still apply.  */
12554 #ifdef __cplusplus
12555 extern "C"
12556 #endif
12557 char glutMainLoop ();
12558 int
12559 main ()
12560 {
12561 return glutMainLoop ();
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 for ac_lib in '' glut; do
12567   if test -z "$ac_lib"; then
12568     ac_res="none required"
12569   else
12570     ac_res=-l$ac_lib
12571     LIBS="-l$ac_lib $lib $ac_func_search_save_LIBS"
12572   fi
12573   if ac_fn_c_try_link "$LINENO"; then :
12574   ac_cv_search_glutMainLoop=$ac_res
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext \
12577     conftest$ac_exeext
12578   if ${ac_cv_search_glutMainLoop+:} false; then :
12579   break
12580 fi
12581 done
12582 if ${ac_cv_search_glutMainLoop+:} false; then :
12583
12584 else
12585   ac_cv_search_glutMainLoop=no
12586 fi
12587 rm conftest.$ac_ext
12588 LIBS=$ac_func_search_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glutMainLoop" >&5
12591 $as_echo "$ac_cv_search_glutMainLoop" >&6; }
12592 ac_res=$ac_cv_search_glutMainLoop
12593 if test "$ac_res" != no; then :
12594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12595   glut_support=yes
12596 fi
12597
12598       if test "$glut_support" = "yes"; then
12599         GL_LIBS="$LDFLAGS"
12600         if test "$ac_cv_search_glutMainLoop" != "none required"; then
12601           GL_LIBS="$GL_LIBS $ac_cv_search_glutMainLoop"
12602         fi
12603         GL_LIBS="$GL_LIBS $lib"
12604         break
12605       fi
12606     done
12607     LDFLAGS="$GLUT_SAVED_LDFLAGS"
12608     test "$glut_support" = "yes" && break
12609   done
12610   IFS="$SAVED_IFS"
12611   ac_ext=c
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12616
12617 fi
12618
12619
12620
12621           CPPFLAGS=$SAVED_CPPFLAGS
12622           LIBS=$SAVED_LIBS
12623
12624 if test "$glut_support" = "yes" -a "$enable_libwebpdemux" = "yes"; then
12625   build_vwebp=yes
12626 fi
12627  if test "$build_vwebp" = "yes"; then
12628   BUILD_VWEBP_TRUE=
12629   BUILD_VWEBP_FALSE='#'
12630 else
12631   BUILD_VWEBP_TRUE='#'
12632   BUILD_VWEBP_FALSE=
12633 fi
12634
12635
12636
12637 PNG_INCLUDES=""; PNG_LIBS=""
12638 for ac_prog in libpng-config libpng15-config libpng14-config libpng12-config
12639 do
12640   # Extract the first word of "$ac_prog", so it can be a program name with args.
12641 set dummy $ac_prog; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_path_LIBPNG_CONFIG+:} false; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   case $LIBPNG_CONFIG in
12648   [\\/]* | ?:[\\/]*)
12649   ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
12650   ;;
12651   *)
12652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655   IFS=$as_save_IFS
12656   test -z "$as_dir" && as_dir=.
12657     for ac_exec_ext in '' $ac_executable_extensions; do
12658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659     ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661     break 2
12662   fi
12663 done
12664   done
12665 IFS=$as_save_IFS
12666
12667   ;;
12668 esac
12669 fi
12670 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
12671 if test -n "$LIBPNG_CONFIG"; then
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
12673 $as_echo "$LIBPNG_CONFIG" >&6; }
12674 else
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680   test -n "$LIBPNG_CONFIG" && break
12681 done
12682
12683 if test -n "$LIBPNG_CONFIG"; then
12684   PNG_INCLUDES=`$LIBPNG_CONFIG --cflags`
12685   PNG_PREFIX=`$LIBPNG_CONFIG --prefix`
12686   if test "${PNG_PREFIX}/lib" != "/usr/lib" ; then
12687     PNG_LIBS="-L${PNG_PREFIX}/lib"
12688   fi
12689   PNG_LIBS="$PNG_LIBS `$LIBPNG_CONFIG --libs`"
12690 fi
12691
12692
12693 # Check whether --with-pngincludedir was given.
12694 if test "${with_pngincludedir+set}" = set; then :
12695   withval=$with_pngincludedir; PNG_INCLUDES="-I$withval"
12696 fi
12697
12698
12699 # Check whether --with-pnglibdir was given.
12700 if test "${with_pnglibdir+set}" = set; then :
12701   withval=$with_pnglibdir; PNG_LIBS="-L$withval"
12702 fi
12703
12704
12705 SAVED_CPPFLAGS=$CPPFLAGS
12706           SAVED_LIBS=$LIBS
12707           CPPFLAGS="$PNG_INCLUDES $CPPFLAGS"
12708           LIBS="$PNG_LIBS $LIBS"
12709 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12710 if test "x$ac_cv_header_png_h" = xyes; then :
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing png_get_libpng_ver" >&5
12712 $as_echo_n "checking for library containing png_get_libpng_ver... " >&6; }
12713 if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   ac_func_search_save_LIBS=$LIBS
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h.  */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721    Use char because int might match the return type of a GCC
12722    builtin and then its argument prototype would still apply.  */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char png_get_libpng_ver ();
12727 int
12728 main ()
12729 {
12730 return png_get_libpng_ver ();
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 for ac_lib in '' png; do
12736   if test -z "$ac_lib"; then
12737     ac_res="none required"
12738   else
12739     ac_res=-l$ac_lib
12740     LIBS="-l$ac_lib $MATH_LIBS $ac_func_search_save_LIBS"
12741   fi
12742   if ac_fn_c_try_link "$LINENO"; then :
12743   ac_cv_search_png_get_libpng_ver=$ac_res
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext \
12746     conftest$ac_exeext
12747   if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12748   break
12749 fi
12750 done
12751 if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12752
12753 else
12754   ac_cv_search_png_get_libpng_ver=no
12755 fi
12756 rm conftest.$ac_ext
12757 LIBS=$ac_func_search_save_LIBS
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_png_get_libpng_ver" >&5
12760 $as_echo "$ac_cv_search_png_get_libpng_ver" >&6; }
12761 ac_res=$ac_cv_search_png_get_libpng_ver
12762 if test "$ac_res" != no; then :
12763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764   test "$ac_cv_search_png_get_libpng_ver" = "none required" \
12765                     || PNG_LIBS="$PNG_LIBS $ac_cv_search_png_get_libpng_ver"
12766                   PNG_INCLUDES="$PNG_INCLUDES -DWEBP_HAVE_PNG"
12767
12768 $as_echo "#define WEBP_HAVE_PNG 1" >>confdefs.h
12769
12770                   png_support=yes
12771
12772 else
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional png library not found" >&5
12774 $as_echo "$as_me: WARNING: Optional png library not found" >&2;}
12775                   PNG_LIBS=""
12776                   PNG_INCLUDES=""
12777
12778 fi
12779
12780 else
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: png library not available - no png.h" >&5
12782 $as_echo "$as_me: WARNING: png library not available - no png.h" >&2;}
12783    PNG_LIBS=""
12784    PNG_INCLUDES=""
12785
12786 fi
12787
12788
12789
12790
12791           CPPFLAGS=$SAVED_CPPFLAGS
12792           LIBS=$SAVED_LIBS
12793
12794
12795 JPEG_INCLUDES=""; JPEG_LIBS=""
12796
12797 # Check whether --with-jpegincludedir was given.
12798 if test "${with_jpegincludedir+set}" = set; then :
12799   withval=$with_jpegincludedir; JPEG_INCLUDES="-I$withval"
12800 fi
12801
12802
12803 # Check whether --with-jpeglibdir was given.
12804 if test "${with_jpeglibdir+set}" = set; then :
12805   withval=$with_jpeglibdir; JPEG_LIBS="-L$withval"
12806 fi
12807
12808
12809 SAVED_CPPFLAGS=$CPPFLAGS
12810           SAVED_LIBS=$LIBS
12811           CPPFLAGS="$JPEG_INCLUDES $CPPFLAGS"
12812           LIBS="$JPEG_LIBS $LIBS"
12813 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12814 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
12816 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
12817 if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820   ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ljpeg $MATH_LIBS $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826    Use char because int might match the return type of a GCC
12827    builtin and then its argument prototype would still apply.  */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char jpeg_set_defaults ();
12832 int
12833 main ()
12834 {
12835 return jpeg_set_defaults ();
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841   ac_cv_lib_jpeg_jpeg_set_defaults=yes
12842 else
12843   ac_cv_lib_jpeg_jpeg_set_defaults=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846     conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
12850 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
12851 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
12852   JPEG_LIBS="$JPEG_LIBS -ljpeg"
12853                 JPEG_INCLUDES="$JPEG_INCLUDES -DWEBP_HAVE_JPEG"
12854
12855 $as_echo "#define WEBP_HAVE_JPEG 1" >>confdefs.h
12856
12857                 jpeg_support=yes
12858
12859 else
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional jpeg library not found" >&5
12861 $as_echo "$as_me: WARNING: Optional jpeg library not found" >&2;}
12862 fi
12863
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: jpeg library not available - no jpeglib.h" >&5
12866 $as_echo "$as_me: WARNING: jpeg library not available - no jpeglib.h" >&2;}
12867
12868 fi
12869
12870
12871
12872
12873           CPPFLAGS=$SAVED_CPPFLAGS
12874           LIBS=$SAVED_LIBS
12875
12876
12877 TIFF_INCLUDES=""; TIFF_LIBS=""
12878
12879 # Check whether --with-tiffincludedir was given.
12880 if test "${with_tiffincludedir+set}" = set; then :
12881   withval=$with_tiffincludedir; TIFF_INCLUDES="-I$withval"
12882 fi
12883
12884
12885 # Check whether --with-tifflibdir was given.
12886 if test "${with_tifflibdir+set}" = set; then :
12887   withval=$with_tifflibdir; TIFF_LIBS="-L$withval"
12888 fi
12889
12890
12891 SAVED_CPPFLAGS=$CPPFLAGS
12892           SAVED_LIBS=$LIBS
12893           CPPFLAGS="$TIFF_INCLUDES $CPPFLAGS"
12894           LIBS="$TIFF_LIBS $LIBS"
12895 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12898 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12899 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12900   $as_echo_n "(cached) " >&6
12901 else
12902   ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-ltiff $MATH_LIBS $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h.  */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908    Use char because int might match the return type of a GCC
12909    builtin and then its argument prototype would still apply.  */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char TIFFGetVersion ();
12914 int
12915 main ()
12916 {
12917 return TIFFGetVersion ();
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923   ac_cv_lib_tiff_TIFFGetVersion=yes
12924 else
12925   ac_cv_lib_tiff_TIFFGetVersion=no
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928     conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12930 fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12932 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12933 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12934   TIFF_LIBS="$TIFF_LIBS -ltiff"
12935                 TIFF_INCLUDES="$TIFF_INCLUDES -DWEBP_HAVE_TIFF"
12936
12937 $as_echo "#define WEBP_HAVE_TIFF 1" >>confdefs.h
12938
12939                 tiff_support=yes
12940
12941 else
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional tiff library not found" >&5
12943 $as_echo "$as_me: WARNING: Optional tiff library not found" >&2;}
12944 fi
12945
12946 else
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tiff library not available - no tiffio.h" >&5
12948 $as_echo "$as_me: WARNING: tiff library not available - no tiffio.h" >&2;}
12949
12950 fi
12951
12952
12953
12954
12955           CPPFLAGS=$SAVED_CPPFLAGS
12956           LIBS=$SAVED_LIBS
12957
12958
12959 GIF_INCLUDES=""; GIF_LIBS=""
12960
12961 # Check whether --with-gifincludedir was given.
12962 if test "${with_gifincludedir+set}" = set; then :
12963   withval=$with_gifincludedir; GIF_INCLUDES="-I$withval"
12964 fi
12965
12966
12967 # Check whether --with-giflibdir was given.
12968 if test "${with_giflibdir+set}" = set; then :
12969   withval=$with_giflibdir; GIF_LIBS="-L$withval"
12970 fi
12971
12972
12973 SAVED_CPPFLAGS=$CPPFLAGS
12974           SAVED_LIBS=$LIBS
12975           CPPFLAGS="$GIF_INCLUDES $CPPFLAGS"
12976           LIBS="$GIF_LIBS $LIBS"
12977 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12978 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileHandle in -lgif" >&5
12980 $as_echo_n "checking for DGifOpenFileHandle in -lgif... " >&6; }
12981 if ${ac_cv_lib_gif_DGifOpenFileHandle+:} false; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984   ac_check_lib_save_LIBS=$LIBS
12985 LIBS="-lgif $MATH_LIBS $LIBS"
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h.  */
12988
12989 /* Override any GCC internal prototype to avoid an error.
12990    Use char because int might match the return type of a GCC
12991    builtin and then its argument prototype would still apply.  */
12992 #ifdef __cplusplus
12993 extern "C"
12994 #endif
12995 char DGifOpenFileHandle ();
12996 int
12997 main ()
12998 {
12999 return DGifOpenFileHandle ();
13000   ;
13001   return 0;
13002 }
13003 _ACEOF
13004 if ac_fn_c_try_link "$LINENO"; then :
13005   ac_cv_lib_gif_DGifOpenFileHandle=yes
13006 else
13007   ac_cv_lib_gif_DGifOpenFileHandle=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010     conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileHandle" >&5
13014 $as_echo "$ac_cv_lib_gif_DGifOpenFileHandle" >&6; }
13015 if test "x$ac_cv_lib_gif_DGifOpenFileHandle" = xyes; then :
13016   GIF_LIBS="$GIF_LIBS -lgif"
13017                 gif_support=yes
13018
13019 else
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional gif library not found" >&5
13021 $as_echo "$as_me: WARNING: Optional gif library not found" >&2;}
13022 fi
13023
13024 else
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gif library not available - no gif_lib.h" >&5
13026 $as_echo "$as_me: WARNING: gif library not available - no gif_lib.h" >&2;}
13027
13028 fi
13029
13030
13031
13032
13033           CPPFLAGS=$SAVED_CPPFLAGS
13034           LIBS=$SAVED_LIBS
13035
13036 if test "$gif_support" = "yes" -a \
13037         "$enable_libwebpmux" = "yes"; then
13038   build_gif2webp=yes
13039 fi
13040  if test "${build_gif2webp}" = "yes"; then
13041   BUILD_GIF2WEBP_TRUE=
13042   BUILD_GIF2WEBP_FALSE='#'
13043 else
13044   BUILD_GIF2WEBP_TRUE='#'
13045   BUILD_GIF2WEBP_FALSE=
13046 fi
13047
13048
13049
13050 if test "$target_os" = "mingw32"; then
13051   for ac_header in wincodec.h shlwapi.h windows.h
13052 do :
13053   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13054 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13056   cat >>confdefs.h <<_ACEOF
13057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13058 _ACEOF
13059
13060 fi
13061
13062 done
13063
13064   if test "$ac_cv_header_wincodec_h" = "yes"; then
13065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows Imaging Component support" >&5
13066 $as_echo_n "checking for Windows Imaging Component support... " >&6; }
13067     SAVED_LIBS=$LIBS
13068     LIBS="-lshlwapi -lole32 $LIBS"
13069     # match include structure from [cd]webp.c
13070     wic_headers="
13071       #define INITGUID
13072       #define CINTERFACE
13073       #define COBJMACROS
13074       #define _WIN32_IE 0x500
13075
13076       #include <shlwapi.h>
13077       #include <windows.h>
13078       #include <wincodec.h>
13079       "
13080     # test for functions from each lib and the GUID is created properly
13081     wic_main="
13082       int main(void) {
13083         CLSID_WICImagingFactory;
13084         CoInitialize(NULL);
13085         SHCreateStreamOnFile(NULL, 0, NULL);
13086         return 0;
13087       }
13088       "
13089     ac_ext=c
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094
13095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097
13098          $wic_headers
13099          $wic_main
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102   wic_support=yes
13103 else
13104   wic_support=no
13105
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext \
13108     conftest$ac_exeext conftest.$ac_ext
13109     ac_ext=c
13110 ac_cpp='$CPP $CPPFLAGS'
13111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
13115
13116     test "$wic_support" = "yes" || LIBS=$SAVED_LIBS
13117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wic_support-no}" >&5
13118 $as_echo "${wic_support-no}" >&6; }
13119   fi
13120 fi
13121
13122
13123 USE_SWAP_16BIT_CSP=""
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-swap-16bit-csp option is specified" >&5
13125 $as_echo_n "checking if --enable-swap-16bit-csp option is specified... " >&6; }
13126 # Check whether --enable-swap-16bit-csp was given.
13127 if test "${enable_swap_16bit_csp+set}" = set; then :
13128   enableval=$enable_swap_16bit_csp;
13129 fi
13130
13131 if test "$enable_swap_16bit_csp" = "yes"; then
13132   USE_SWAP_16BIT_CSP="-DWEBP_SWAP_16BIT_CSP"
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_swap_16bit_csp-no}" >&5
13135 $as_echo "${enable_swap_16bit_csp-no}" >&6; }
13136
13137
13138
13139 USE_EXPERIMENTAL_CODE=""
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-experimental option is specified" >&5
13141 $as_echo_n "checking if --enable-experimental option is specified... " >&6; }
13142 # Check whether --enable-experimental was given.
13143 if test "${enable_experimental+set}" = set; then :
13144   enableval=$enable_experimental;
13145 fi
13146
13147 if test "$enable_experimental" = "yes"; then
13148
13149 $as_echo "#define WEBP_EXPERIMENTAL_FEATURES 1" >>confdefs.h
13150
13151   USE_EXPERIMENTAL_CODE="-DWEBP_EXPERIMENTAL_FEATURES"
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_experimental-no}" >&5
13154 $as_echo "${enable_experimental-no}" >&6; }
13155
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libwebpmux is to be built" >&5
13158 $as_echo_n "checking whether libwebpmux is to be built... " >&6; }
13159 # Check whether --enable-libwebpmux was given.
13160 if test "${enable_libwebpmux+set}" = set; then :
13161   enableval=$enable_libwebpmux;
13162 fi
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpmux-no}" >&5
13165 $as_echo "${enable_libwebpmux-no}" >&6; }
13166  if test "$enable_libwebpmux" = "yes"; then
13167   WANT_MUX_TRUE=
13168   WANT_MUX_FALSE='#'
13169 else
13170   WANT_MUX_TRUE='#'
13171   WANT_MUX_FALSE=
13172 fi
13173
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libwebpdemux is to be built" >&5
13176 $as_echo_n "checking whether libwebpdemux is to be built... " >&6; }
13177 # Check whether --enable-libwebpdemux was given.
13178 if test "${enable_libwebpdemux+set}" = set; then :
13179   enableval=$enable_libwebpdemux;
13180 fi
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdemux-no}" >&5
13183 $as_echo "${enable_libwebpdemux-no}" >&6; }
13184  if test "$enable_libwebpdemux" = "yes"; then
13185   WANT_DEMUX_TRUE=
13186   WANT_DEMUX_FALSE='#'
13187 else
13188   WANT_DEMUX_TRUE='#'
13189   WANT_DEMUX_FALSE=
13190 fi
13191
13192
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decoder library is to be built" >&5
13194 $as_echo_n "checking whether decoder library is to be built... " >&6; }
13195 # Check whether --enable-libwebpdecoder was given.
13196 if test "${enable_libwebpdecoder+set}" = set; then :
13197   enableval=$enable_libwebpdecoder;
13198 fi
13199
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdecoder-no}" >&5
13201 $as_echo "${enable_libwebpdecoder-no}" >&6; }
13202  if test "$enable_libwebpdecoder" = "yes"; then
13203   BUILD_LIBWEBPDECODER_TRUE=
13204   BUILD_LIBWEBPDECODER_FALSE='#'
13205 else
13206   BUILD_LIBWEBPDECODER_TRUE='#'
13207   BUILD_LIBWEBPDECODER_FALSE=
13208 fi
13209
13210
13211
13212
13213 ac_config_headers="$ac_config_headers config.h"
13214
13215 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile examples/Makefile 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"
13216
13217
13218
13219 cat >confcache <<\_ACEOF
13220 # This file is a shell script that caches the results of configure
13221 # tests run on this system so they can be shared between configure
13222 # scripts and configure runs, see configure's option --config-cache.
13223 # It is not useful on other systems.  If it contains results you don't
13224 # want to keep, you may remove or edit it.
13225 #
13226 # config.status only pays attention to the cache file if you give it
13227 # the --recheck option to rerun configure.
13228 #
13229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13231 # following values.
13232
13233 _ACEOF
13234
13235 # The following way of writing the cache mishandles newlines in values,
13236 # but we know of no workaround that is simple, portable, and efficient.
13237 # So, we kill variables containing newlines.
13238 # Ultrix sh set writes to stderr and can't be redirected directly,
13239 # and sets the high bit in the cache file unless we assign to the vars.
13240 (
13241   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13242     eval ac_val=\$$ac_var
13243     case $ac_val in #(
13244     *${as_nl}*)
13245       case $ac_var in #(
13246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13248       esac
13249       case $ac_var in #(
13250       _ | IFS | as_nl) ;; #(
13251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13252       *) { eval $ac_var=; unset $ac_var;} ;;
13253       esac ;;
13254     esac
13255   done
13256
13257   (set) 2>&1 |
13258     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13259     *${as_nl}ac_space=\ *)
13260       # `set' does not quote correctly, so add quotes: double-quote
13261       # substitution turns \\\\ into \\, and sed turns \\ into \.
13262       sed -n \
13263         "s/'/'\\\\''/g;
13264           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13265       ;; #(
13266     *)
13267       # `set' quotes correctly as required by POSIX, so do not add quotes.
13268       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13269       ;;
13270     esac |
13271     sort
13272 ) |
13273   sed '
13274      /^ac_cv_env_/b end
13275      t clear
13276      :clear
13277      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13278      t end
13279      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13280      :end' >>confcache
13281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13282   if test -w "$cache_file"; then
13283     if test "x$cache_file" != "x/dev/null"; then
13284       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13285 $as_echo "$as_me: updating cache $cache_file" >&6;}
13286       if test ! -f "$cache_file" || test -h "$cache_file"; then
13287         cat confcache >"$cache_file"
13288       else
13289         case $cache_file in #(
13290         */* | ?:*)
13291           mv -f confcache "$cache_file"$$ &&
13292           mv -f "$cache_file"$$ "$cache_file" ;; #(
13293         *)
13294           mv -f confcache "$cache_file" ;;
13295         esac
13296       fi
13297     fi
13298   else
13299     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13301   fi
13302 fi
13303 rm -f confcache
13304
13305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13306 # Let make expand exec_prefix.
13307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13308
13309 DEFS=-DHAVE_CONFIG_H
13310
13311 ac_libobjs=
13312 ac_ltlibobjs=
13313 U=
13314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13315   # 1. Remove the extension, and $U if already installed.
13316   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13317   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13318   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13319   #    will be set to the directory where LIBOBJS objects are built.
13320   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13321   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13322 done
13323 LIBOBJS=$ac_libobjs
13324
13325 LTLIBOBJS=$ac_ltlibobjs
13326
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13329 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13330    if test -n "$am_sleep_pid"; then
13331      # Hide warnings about reused PIDs.
13332      wait $am_sleep_pid 2>/dev/null
13333    fi
13334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13335 $as_echo "done" >&6; }
13336  if test -n "$EXEEXT"; then
13337   am__EXEEXT_TRUE=
13338   am__EXEEXT_FALSE='#'
13339 else
13340   am__EXEEXT_TRUE='#'
13341   am__EXEEXT_FALSE=
13342 fi
13343
13344 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13345   as_fn_error $? "conditional \"AMDEP\" was never defined.
13346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13347 fi
13348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13349   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13351 fi
13352 if test -z "${BUILD_VWEBP_TRUE}" && test -z "${BUILD_VWEBP_FALSE}"; then
13353   as_fn_error $? "conditional \"BUILD_VWEBP\" was never defined.
13354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13355 fi
13356 if test -z "${BUILD_GIF2WEBP_TRUE}" && test -z "${BUILD_GIF2WEBP_FALSE}"; then
13357   as_fn_error $? "conditional \"BUILD_GIF2WEBP\" was never defined.
13358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13359 fi
13360 if test -z "${WANT_MUX_TRUE}" && test -z "${WANT_MUX_FALSE}"; then
13361   as_fn_error $? "conditional \"WANT_MUX\" was never defined.
13362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13363 fi
13364 if test -z "${WANT_DEMUX_TRUE}" && test -z "${WANT_DEMUX_FALSE}"; then
13365   as_fn_error $? "conditional \"WANT_DEMUX\" was never defined.
13366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13367 fi
13368 if test -z "${BUILD_LIBWEBPDECODER_TRUE}" && test -z "${BUILD_LIBWEBPDECODER_FALSE}"; then
13369   as_fn_error $? "conditional \"BUILD_LIBWEBPDECODER\" was never defined.
13370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13371 fi
13372
13373 : "${CONFIG_STATUS=./config.status}"
13374 ac_write_fail=0
13375 ac_clean_files_save=$ac_clean_files
13376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13378 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13379 as_write_fail=0
13380 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13381 #! $SHELL
13382 # Generated by $as_me.
13383 # Run this file to recreate the current configuration.
13384 # Compiler output produced by configure, useful for debugging
13385 # configure, is in config.log if it exists.
13386
13387 debug=false
13388 ac_cs_recheck=false
13389 ac_cs_silent=false
13390
13391 SHELL=\${CONFIG_SHELL-$SHELL}
13392 export SHELL
13393 _ASEOF
13394 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13395 ## -------------------- ##
13396 ## M4sh Initialization. ##
13397 ## -------------------- ##
13398
13399 # Be more Bourne compatible
13400 DUALCASE=1; export DUALCASE # for MKS sh
13401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13402   emulate sh
13403   NULLCMD=:
13404   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13405   # is contrary to our usage.  Disable this feature.
13406   alias -g '${1+"$@"}'='"$@"'
13407   setopt NO_GLOB_SUBST
13408 else
13409   case `(set -o) 2>/dev/null` in #(
13410   *posix*) :
13411     set -o posix ;; #(
13412   *) :
13413      ;;
13414 esac
13415 fi
13416
13417
13418 as_nl='
13419 '
13420 export as_nl
13421 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13422 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13425 # Prefer a ksh shell builtin over an external printf program on Solaris,
13426 # but without wasting forks for bash or zsh.
13427 if test -z "$BASH_VERSION$ZSH_VERSION" \
13428     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13429   as_echo='print -r --'
13430   as_echo_n='print -rn --'
13431 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13432   as_echo='printf %s\n'
13433   as_echo_n='printf %s'
13434 else
13435   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13436     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13437     as_echo_n='/usr/ucb/echo -n'
13438   else
13439     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13440     as_echo_n_body='eval
13441       arg=$1;
13442       case $arg in #(
13443       *"$as_nl"*)
13444         expr "X$arg" : "X\\(.*\\)$as_nl";
13445         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13446       esac;
13447       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13448     '
13449     export as_echo_n_body
13450     as_echo_n='sh -c $as_echo_n_body as_echo'
13451   fi
13452   export as_echo_body
13453   as_echo='sh -c $as_echo_body as_echo'
13454 fi
13455
13456 # The user is always right.
13457 if test "${PATH_SEPARATOR+set}" != set; then
13458   PATH_SEPARATOR=:
13459   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13460     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13461       PATH_SEPARATOR=';'
13462   }
13463 fi
13464
13465
13466 # IFS
13467 # We need space, tab and new line, in precisely that order.  Quoting is
13468 # there to prevent editors from complaining about space-tab.
13469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13470 # splitting by setting IFS to empty value.)
13471 IFS=" ""        $as_nl"
13472
13473 # Find who we are.  Look in the path if we contain no directory separator.
13474 as_myself=
13475 case $0 in #((
13476   *[\\/]* ) as_myself=$0 ;;
13477   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13479 do
13480   IFS=$as_save_IFS
13481   test -z "$as_dir" && as_dir=.
13482     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13483   done
13484 IFS=$as_save_IFS
13485
13486      ;;
13487 esac
13488 # We did not find ourselves, most probably we were run as `sh COMMAND'
13489 # in which case we are not to be found in the path.
13490 if test "x$as_myself" = x; then
13491   as_myself=$0
13492 fi
13493 if test ! -f "$as_myself"; then
13494   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13495   exit 1
13496 fi
13497
13498 # Unset variables that we do not need and which cause bugs (e.g. in
13499 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13500 # suppresses any "Segmentation fault" message there.  '((' could
13501 # trigger a bug in pdksh 5.2.14.
13502 for as_var in BASH_ENV ENV MAIL MAILPATH
13503 do eval test x\${$as_var+set} = xset \
13504   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13505 done
13506 PS1='$ '
13507 PS2='> '
13508 PS4='+ '
13509
13510 # NLS nuisances.
13511 LC_ALL=C
13512 export LC_ALL
13513 LANGUAGE=C
13514 export LANGUAGE
13515
13516 # CDPATH.
13517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13518
13519
13520 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13521 # ----------------------------------------
13522 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13523 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13524 # script with STATUS, using 1 if that was 0.
13525 as_fn_error ()
13526 {
13527   as_status=$1; test $as_status -eq 0 && as_status=1
13528   if test "$4"; then
13529     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13530     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13531   fi
13532   $as_echo "$as_me: error: $2" >&2
13533   as_fn_exit $as_status
13534 } # as_fn_error
13535
13536
13537 # as_fn_set_status STATUS
13538 # -----------------------
13539 # Set $? to STATUS, without forking.
13540 as_fn_set_status ()
13541 {
13542   return $1
13543 } # as_fn_set_status
13544
13545 # as_fn_exit STATUS
13546 # -----------------
13547 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13548 as_fn_exit ()
13549 {
13550   set +e
13551   as_fn_set_status $1
13552   exit $1
13553 } # as_fn_exit
13554
13555 # as_fn_unset VAR
13556 # ---------------
13557 # Portably unset VAR.
13558 as_fn_unset ()
13559 {
13560   { eval $1=; unset $1;}
13561 }
13562 as_unset=as_fn_unset
13563 # as_fn_append VAR VALUE
13564 # ----------------------
13565 # Append the text in VALUE to the end of the definition contained in VAR. Take
13566 # advantage of any shell optimizations that allow amortized linear growth over
13567 # repeated appends, instead of the typical quadratic growth present in naive
13568 # implementations.
13569 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13570   eval 'as_fn_append ()
13571   {
13572     eval $1+=\$2
13573   }'
13574 else
13575   as_fn_append ()
13576   {
13577     eval $1=\$$1\$2
13578   }
13579 fi # as_fn_append
13580
13581 # as_fn_arith ARG...
13582 # ------------------
13583 # Perform arithmetic evaluation on the ARGs, and store the result in the
13584 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13585 # must be portable across $(()) and expr.
13586 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13587   eval 'as_fn_arith ()
13588   {
13589     as_val=$(( $* ))
13590   }'
13591 else
13592   as_fn_arith ()
13593   {
13594     as_val=`expr "$@" || test $? -eq 1`
13595   }
13596 fi # as_fn_arith
13597
13598
13599 if expr a : '\(a\)' >/dev/null 2>&1 &&
13600    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13601   as_expr=expr
13602 else
13603   as_expr=false
13604 fi
13605
13606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13607   as_basename=basename
13608 else
13609   as_basename=false
13610 fi
13611
13612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13613   as_dirname=dirname
13614 else
13615   as_dirname=false
13616 fi
13617
13618 as_me=`$as_basename -- "$0" ||
13619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13620          X"$0" : 'X\(//\)$' \| \
13621          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13622 $as_echo X/"$0" |
13623     sed '/^.*\/\([^/][^/]*\)\/*$/{
13624             s//\1/
13625             q
13626           }
13627           /^X\/\(\/\/\)$/{
13628             s//\1/
13629             q
13630           }
13631           /^X\/\(\/\).*/{
13632             s//\1/
13633             q
13634           }
13635           s/.*/./; q'`
13636
13637 # Avoid depending upon Character Ranges.
13638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13641 as_cr_digits='0123456789'
13642 as_cr_alnum=$as_cr_Letters$as_cr_digits
13643
13644 ECHO_C= ECHO_N= ECHO_T=
13645 case `echo -n x` in #(((((
13646 -n*)
13647   case `echo 'xy\c'` in
13648   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13649   xy)  ECHO_C='\c';;
13650   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13651        ECHO_T=' ';;
13652   esac;;
13653 *)
13654   ECHO_N='-n';;
13655 esac
13656
13657 rm -f conf$$ conf$$.exe conf$$.file
13658 if test -d conf$$.dir; then
13659   rm -f conf$$.dir/conf$$.file
13660 else
13661   rm -f conf$$.dir
13662   mkdir conf$$.dir 2>/dev/null
13663 fi
13664 if (echo >conf$$.file) 2>/dev/null; then
13665   if ln -s conf$$.file conf$$ 2>/dev/null; then
13666     as_ln_s='ln -s'
13667     # ... but there are two gotchas:
13668     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13669     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13670     # In both cases, we have to default to `cp -pR'.
13671     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13672       as_ln_s='cp -pR'
13673   elif ln conf$$.file conf$$ 2>/dev/null; then
13674     as_ln_s=ln
13675   else
13676     as_ln_s='cp -pR'
13677   fi
13678 else
13679   as_ln_s='cp -pR'
13680 fi
13681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13682 rmdir conf$$.dir 2>/dev/null
13683
13684
13685 # as_fn_mkdir_p
13686 # -------------
13687 # Create "$as_dir" as a directory, including parents if necessary.
13688 as_fn_mkdir_p ()
13689 {
13690
13691   case $as_dir in #(
13692   -*) as_dir=./$as_dir;;
13693   esac
13694   test -d "$as_dir" || eval $as_mkdir_p || {
13695     as_dirs=
13696     while :; do
13697       case $as_dir in #(
13698       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13699       *) as_qdir=$as_dir;;
13700       esac
13701       as_dirs="'$as_qdir' $as_dirs"
13702       as_dir=`$as_dirname -- "$as_dir" ||
13703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13704          X"$as_dir" : 'X\(//\)[^/]' \| \
13705          X"$as_dir" : 'X\(//\)$' \| \
13706          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13707 $as_echo X"$as_dir" |
13708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13709             s//\1/
13710             q
13711           }
13712           /^X\(\/\/\)[^/].*/{
13713             s//\1/
13714             q
13715           }
13716           /^X\(\/\/\)$/{
13717             s//\1/
13718             q
13719           }
13720           /^X\(\/\).*/{
13721             s//\1/
13722             q
13723           }
13724           s/.*/./; q'`
13725       test -d "$as_dir" && break
13726     done
13727     test -z "$as_dirs" || eval "mkdir $as_dirs"
13728   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13729
13730
13731 } # as_fn_mkdir_p
13732 if mkdir -p . 2>/dev/null; then
13733   as_mkdir_p='mkdir -p "$as_dir"'
13734 else
13735   test -d ./-p && rmdir ./-p
13736   as_mkdir_p=false
13737 fi
13738
13739
13740 # as_fn_executable_p FILE
13741 # -----------------------
13742 # Test if FILE is an executable regular file.
13743 as_fn_executable_p ()
13744 {
13745   test -f "$1" && test -x "$1"
13746 } # as_fn_executable_p
13747 as_test_x='test -x'
13748 as_executable_p=as_fn_executable_p
13749
13750 # Sed expression to map a string onto a valid CPP name.
13751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13752
13753 # Sed expression to map a string onto a valid variable name.
13754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13755
13756
13757 exec 6>&1
13758 ## ----------------------------------- ##
13759 ## Main body of $CONFIG_STATUS script. ##
13760 ## ----------------------------------- ##
13761 _ASEOF
13762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13763
13764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765 # Save the log message, to keep $0 and so on meaningful, and to
13766 # report actual input values of CONFIG_FILES etc. instead of their
13767 # values after options handling.
13768 ac_log="
13769 This file was extended by libwebp $as_me 0.3.0, which was
13770 generated by GNU Autoconf 2.69.  Invocation command line was
13771
13772   CONFIG_FILES    = $CONFIG_FILES
13773   CONFIG_HEADERS  = $CONFIG_HEADERS
13774   CONFIG_LINKS    = $CONFIG_LINKS
13775   CONFIG_COMMANDS = $CONFIG_COMMANDS
13776   $ $0 $@
13777
13778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13779 "
13780
13781 _ACEOF
13782
13783 case $ac_config_files in *"
13784 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13785 esac
13786
13787 case $ac_config_headers in *"
13788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13789 esac
13790
13791
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 # Files that config.status was made for.
13794 config_files="$ac_config_files"
13795 config_headers="$ac_config_headers"
13796 config_commands="$ac_config_commands"
13797
13798 _ACEOF
13799
13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801 ac_cs_usage="\
13802 \`$as_me' instantiates files and other configuration actions
13803 from templates according to the current configuration.  Unless the files
13804 and actions are specified as TAGs, all are instantiated by default.
13805
13806 Usage: $0 [OPTION]... [TAG]...
13807
13808   -h, --help       print this help, then exit
13809   -V, --version    print version number and configuration settings, then exit
13810       --config     print configuration, then exit
13811   -q, --quiet, --silent
13812                    do not print progress messages
13813   -d, --debug      don't remove temporary files
13814       --recheck    update $as_me by reconfiguring in the same conditions
13815       --file=FILE[:TEMPLATE]
13816                    instantiate the configuration file FILE
13817       --header=FILE[:TEMPLATE]
13818                    instantiate the configuration header FILE
13819
13820 Configuration files:
13821 $config_files
13822
13823 Configuration headers:
13824 $config_headers
13825
13826 Configuration commands:
13827 $config_commands
13828
13829 Report bugs to <http://code.google.com/p/webp/issues>.
13830 libwebp home page: <http://developers.google.com/speed/webp>."
13831
13832 _ACEOF
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13835 ac_cs_version="\\
13836 libwebp config.status 0.3.0
13837 configured by $0, generated by GNU Autoconf 2.69,
13838   with options \\"\$ac_cs_config\\"
13839
13840 Copyright (C) 2012 Free Software Foundation, Inc.
13841 This config.status script is free software; the Free Software Foundation
13842 gives unlimited permission to copy, distribute and modify it."
13843
13844 ac_pwd='$ac_pwd'
13845 srcdir='$srcdir'
13846 INSTALL='$INSTALL'
13847 MKDIR_P='$MKDIR_P'
13848 AWK='$AWK'
13849 test -n "\$AWK" || AWK=awk
13850 _ACEOF
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 # The default lists apply if the user does not specify any file.
13854 ac_need_defaults=:
13855 while test $# != 0
13856 do
13857   case $1 in
13858   --*=?*)
13859     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13860     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13861     ac_shift=:
13862     ;;
13863   --*=)
13864     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13865     ac_optarg=
13866     ac_shift=:
13867     ;;
13868   *)
13869     ac_option=$1
13870     ac_optarg=$2
13871     ac_shift=shift
13872     ;;
13873   esac
13874
13875   case $ac_option in
13876   # Handling of the options.
13877   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13878     ac_cs_recheck=: ;;
13879   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13880     $as_echo "$ac_cs_version"; exit ;;
13881   --config | --confi | --conf | --con | --co | --c )
13882     $as_echo "$ac_cs_config"; exit ;;
13883   --debug | --debu | --deb | --de | --d | -d )
13884     debug=: ;;
13885   --file | --fil | --fi | --f )
13886     $ac_shift
13887     case $ac_optarg in
13888     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13889     '') as_fn_error $? "missing file argument" ;;
13890     esac
13891     as_fn_append CONFIG_FILES " '$ac_optarg'"
13892     ac_need_defaults=false;;
13893   --header | --heade | --head | --hea )
13894     $ac_shift
13895     case $ac_optarg in
13896     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13897     esac
13898     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13899     ac_need_defaults=false;;
13900   --he | --h)
13901     # Conflict between --help and --header
13902     as_fn_error $? "ambiguous option: \`$1'
13903 Try \`$0 --help' for more information.";;
13904   --help | --hel | -h )
13905     $as_echo "$ac_cs_usage"; exit ;;
13906   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13907   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13908     ac_cs_silent=: ;;
13909
13910   # This is an error.
13911   -*) as_fn_error $? "unrecognized option: \`$1'
13912 Try \`$0 --help' for more information." ;;
13913
13914   *) as_fn_append ac_config_targets " $1"
13915      ac_need_defaults=false ;;
13916
13917   esac
13918   shift
13919 done
13920
13921 ac_configure_extra_args=
13922
13923 if $ac_cs_silent; then
13924   exec 6>/dev/null
13925   ac_configure_extra_args="$ac_configure_extra_args --silent"
13926 fi
13927
13928 _ACEOF
13929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930 if \$ac_cs_recheck; then
13931   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13932   shift
13933   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13934   CONFIG_SHELL='$SHELL'
13935   export CONFIG_SHELL
13936   exec "\$@"
13937 fi
13938
13939 _ACEOF
13940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13941 exec 5>>config.log
13942 {
13943   echo
13944   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13945 ## Running $as_me. ##
13946 _ASBOX
13947   $as_echo "$ac_log"
13948 } >&5
13949
13950 _ACEOF
13951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13952 #
13953 # INIT-COMMANDS
13954 #
13955 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13956
13957
13958 # The HP-UX ksh and POSIX shell print the target directory to stdout
13959 # if CDPATH is set.
13960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13961
13962 sed_quote_subst='$sed_quote_subst'
13963 double_quote_subst='$double_quote_subst'
13964 delay_variable_subst='$delay_variable_subst'
13965 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13966 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13967 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13968 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13969 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13970 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13973 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13974 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13975 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13976 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13977 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13978 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13979 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13980 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13981 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13982 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13983 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13984 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13985 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13986 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13987 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13988 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13989 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13990 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13991 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13992 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13993 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13994 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13995 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13996 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13997 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13999 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14000 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14001 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14002 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14003 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14004 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14005 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14006 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14007 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14008 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14009 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14010 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14011 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14012 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14013 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14014 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14015 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14016 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14017 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14018 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14020 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14021 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"`'
14022 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14023 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14024 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14025 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14026 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14027 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14028 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14029 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14030 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14031 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14032 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14033 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14034 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14035 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14036 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14037 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14038 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14039 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14040 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14041 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14042 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14043 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14044 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14045 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14046 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14047 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14048 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14049 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14050 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14051 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14052 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14053 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14054 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14055 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14056 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14057 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14058 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14059 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14060 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14061 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14062 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14063 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14064 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14065 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14066 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14067 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14068 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14069 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14070 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14071 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14072 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14073 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14074 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14075 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14076 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14077 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14078 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14079 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14080 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14081 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14082 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14083 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14084 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14085 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14086 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14087 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14088 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14089 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14090 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14091 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14092 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14093 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14094 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14095
14096 LTCC='$LTCC'
14097 LTCFLAGS='$LTCFLAGS'
14098 compiler='$compiler_DEFAULT'
14099
14100 # A function that is used when there is no print builtin or printf.
14101 func_fallback_echo ()
14102 {
14103   eval 'cat <<_LTECHO_EOF
14104 \$1
14105 _LTECHO_EOF'
14106 }
14107
14108 # Quote evaled strings.
14109 for var in SHELL \
14110 ECHO \
14111 PATH_SEPARATOR \
14112 SED \
14113 GREP \
14114 EGREP \
14115 FGREP \
14116 LD \
14117 NM \
14118 LN_S \
14119 lt_SP2NL \
14120 lt_NL2SP \
14121 reload_flag \
14122 OBJDUMP \
14123 deplibs_check_method \
14124 file_magic_cmd \
14125 file_magic_glob \
14126 want_nocaseglob \
14127 DLLTOOL \
14128 sharedlib_from_linklib_cmd \
14129 AR \
14130 AR_FLAGS \
14131 archiver_list_spec \
14132 STRIP \
14133 RANLIB \
14134 CC \
14135 CFLAGS \
14136 compiler \
14137 lt_cv_sys_global_symbol_pipe \
14138 lt_cv_sys_global_symbol_to_cdecl \
14139 lt_cv_sys_global_symbol_to_c_name_address \
14140 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14141 nm_file_list_spec \
14142 lt_prog_compiler_no_builtin_flag \
14143 lt_prog_compiler_pic \
14144 lt_prog_compiler_wl \
14145 lt_prog_compiler_static \
14146 lt_cv_prog_compiler_c_o \
14147 need_locks \
14148 MANIFEST_TOOL \
14149 DSYMUTIL \
14150 NMEDIT \
14151 LIPO \
14152 OTOOL \
14153 OTOOL64 \
14154 shrext_cmds \
14155 export_dynamic_flag_spec \
14156 whole_archive_flag_spec \
14157 compiler_needs_object \
14158 with_gnu_ld \
14159 allow_undefined_flag \
14160 no_undefined_flag \
14161 hardcode_libdir_flag_spec \
14162 hardcode_libdir_separator \
14163 exclude_expsyms \
14164 include_expsyms \
14165 file_list_spec \
14166 variables_saved_for_relink \
14167 libname_spec \
14168 library_names_spec \
14169 soname_spec \
14170 install_override_mode \
14171 finish_eval \
14172 old_striplib \
14173 striplib; do
14174     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14175     *[\\\\\\\`\\"\\\$]*)
14176       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14177       ;;
14178     *)
14179       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14180       ;;
14181     esac
14182 done
14183
14184 # Double-quote double-evaled strings.
14185 for var in reload_cmds \
14186 old_postinstall_cmds \
14187 old_postuninstall_cmds \
14188 old_archive_cmds \
14189 extract_expsyms_cmds \
14190 old_archive_from_new_cmds \
14191 old_archive_from_expsyms_cmds \
14192 archive_cmds \
14193 archive_expsym_cmds \
14194 module_cmds \
14195 module_expsym_cmds \
14196 export_symbols_cmds \
14197 prelink_cmds \
14198 postlink_cmds \
14199 postinstall_cmds \
14200 postuninstall_cmds \
14201 finish_cmds \
14202 sys_lib_search_path_spec \
14203 sys_lib_dlsearch_path_spec; do
14204     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14205     *[\\\\\\\`\\"\\\$]*)
14206       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14207       ;;
14208     *)
14209       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14210       ;;
14211     esac
14212 done
14213
14214 ac_aux_dir='$ac_aux_dir'
14215 xsi_shell='$xsi_shell'
14216 lt_shell_append='$lt_shell_append'
14217
14218 # See if we are running on zsh, and set the options which allow our
14219 # commands through without removal of \ escapes INIT.
14220 if test -n "\${ZSH_VERSION+set}" ; then
14221    setopt NO_GLOB_SUBST
14222 fi
14223
14224
14225     PACKAGE='$PACKAGE'
14226     VERSION='$VERSION'
14227     TIMESTAMP='$TIMESTAMP'
14228     RM='$RM'
14229     ofile='$ofile'
14230
14231
14232
14233
14234 _ACEOF
14235
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237
14238 # Handling of arguments.
14239 for ac_config_target in $ac_config_targets
14240 do
14241   case $ac_config_target in
14242     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14243     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14244     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14245     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14246     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14247     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14248     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14249     "src/dec/Makefile") CONFIG_FILES="$CONFIG_FILES src/dec/Makefile" ;;
14250     "src/enc/Makefile") CONFIG_FILES="$CONFIG_FILES src/enc/Makefile" ;;
14251     "src/dsp/Makefile") CONFIG_FILES="$CONFIG_FILES src/dsp/Makefile" ;;
14252     "src/demux/Makefile") CONFIG_FILES="$CONFIG_FILES src/demux/Makefile" ;;
14253     "src/mux/Makefile") CONFIG_FILES="$CONFIG_FILES src/mux/Makefile" ;;
14254     "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14255     "src/libwebp.pc") CONFIG_FILES="$CONFIG_FILES src/libwebp.pc" ;;
14256     "src/libwebpdecoder.pc") CONFIG_FILES="$CONFIG_FILES src/libwebpdecoder.pc" ;;
14257     "src/demux/libwebpdemux.pc") CONFIG_FILES="$CONFIG_FILES src/demux/libwebpdemux.pc" ;;
14258     "src/mux/libwebpmux.pc") CONFIG_FILES="$CONFIG_FILES src/mux/libwebpmux.pc" ;;
14259
14260   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14261   esac
14262 done
14263
14264
14265 # If the user did not use the arguments to specify the items to instantiate,
14266 # then the envvar interface is used.  Set only those that are not.
14267 # We use the long form for the default assignment because of an extremely
14268 # bizarre bug on SunOS 4.1.3.
14269 if $ac_need_defaults; then
14270   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14271   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14272   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14273 fi
14274
14275 # Have a temporary directory for convenience.  Make it in the build tree
14276 # simply because there is no reason against having it here, and in addition,
14277 # creating and moving files from /tmp can sometimes cause problems.
14278 # Hook for its removal unless debugging.
14279 # Note that there is a small window in which the directory will not be cleaned:
14280 # after its creation but before its name has been assigned to `$tmp'.
14281 $debug ||
14282 {
14283   tmp= ac_tmp=
14284   trap 'exit_status=$?
14285   : "${ac_tmp:=$tmp}"
14286   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14287 ' 0
14288   trap 'as_fn_exit 1' 1 2 13 15
14289 }
14290 # Create a (secure) tmp directory for tmp files.
14291
14292 {
14293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14294   test -d "$tmp"
14295 }  ||
14296 {
14297   tmp=./conf$$-$RANDOM
14298   (umask 077 && mkdir "$tmp")
14299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14300 ac_tmp=$tmp
14301
14302 # Set up the scripts for CONFIG_FILES section.
14303 # No need to generate them if there are no CONFIG_FILES.
14304 # This happens for instance with `./config.status config.h'.
14305 if test -n "$CONFIG_FILES"; then
14306
14307
14308 ac_cr=`echo X | tr X '\015'`
14309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14310 # But we know of no other shell where ac_cr would be empty at this
14311 # point, so we can use a bashism as a fallback.
14312 if test "x$ac_cr" = x; then
14313   eval ac_cr=\$\'\\r\'
14314 fi
14315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14317   ac_cs_awk_cr='\\r'
14318 else
14319   ac_cs_awk_cr=$ac_cr
14320 fi
14321
14322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14323 _ACEOF
14324
14325
14326 {
14327   echo "cat >conf$$subs.awk <<_ACEOF" &&
14328   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14329   echo "_ACEOF"
14330 } >conf$$subs.sh ||
14331   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14333 ac_delim='%!_!# '
14334 for ac_last_try in false false false false false :; do
14335   . ./conf$$subs.sh ||
14336     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14337
14338   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14339   if test $ac_delim_n = $ac_delim_num; then
14340     break
14341   elif $ac_last_try; then
14342     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14343   else
14344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14345   fi
14346 done
14347 rm -f conf$$subs.sh
14348
14349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14351 _ACEOF
14352 sed -n '
14353 h
14354 s/^/S["/; s/!.*/"]=/
14355 p
14356 g
14357 s/^[^!]*!//
14358 :repl
14359 t repl
14360 s/'"$ac_delim"'$//
14361 t delim
14362 :nl
14363 h
14364 s/\(.\{148\}\)..*/\1/
14365 t more1
14366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14367 p
14368 n
14369 b repl
14370 :more1
14371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14372 p
14373 g
14374 s/.\{148\}//
14375 t nl
14376 :delim
14377 h
14378 s/\(.\{148\}\)..*/\1/
14379 t more2
14380 s/["\\]/\\&/g; s/^/"/; s/$/"/
14381 p
14382 b
14383 :more2
14384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14385 p
14386 g
14387 s/.\{148\}//
14388 t delim
14389 ' <conf$$subs.awk | sed '
14390 /^[^""]/{
14391   N
14392   s/\n//
14393 }
14394 ' >>$CONFIG_STATUS || ac_write_fail=1
14395 rm -f conf$$subs.awk
14396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14397 _ACAWK
14398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14399   for (key in S) S_is_set[key] = 1
14400   FS = "\a"
14401
14402 }
14403 {
14404   line = $ 0
14405   nfields = split(line, field, "@")
14406   substed = 0
14407   len = length(field[1])
14408   for (i = 2; i < nfields; i++) {
14409     key = field[i]
14410     keylen = length(key)
14411     if (S_is_set[key]) {
14412       value = S[key]
14413       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14414       len += length(value) + length(field[++i])
14415       substed = 1
14416     } else
14417       len += 1 + keylen
14418   }
14419
14420   print line
14421 }
14422
14423 _ACAWK
14424 _ACEOF
14425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14427   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14428 else
14429   cat
14430 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14431   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14432 _ACEOF
14433
14434 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14435 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14436 # trailing colons and then remove the whole line if VPATH becomes empty
14437 # (actually we leave an empty line to preserve line numbers).
14438 if test "x$srcdir" = x.; then
14439   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14440 h
14441 s///
14442 s/^/:/
14443 s/[      ]*$/:/
14444 s/:\$(srcdir):/:/g
14445 s/:\${srcdir}:/:/g
14446 s/:@srcdir@:/:/g
14447 s/^:*//
14448 s/:*$//
14449 x
14450 s/\(=[   ]*\).*/\1/
14451 G
14452 s/\n//
14453 s/^[^=]*=[       ]*$//
14454 }'
14455 fi
14456
14457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14458 fi # test -n "$CONFIG_FILES"
14459
14460 # Set up the scripts for CONFIG_HEADERS section.
14461 # No need to generate them if there are no CONFIG_HEADERS.
14462 # This happens for instance with `./config.status Makefile'.
14463 if test -n "$CONFIG_HEADERS"; then
14464 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14465 BEGIN {
14466 _ACEOF
14467
14468 # Transform confdefs.h into an awk script `defines.awk', embedded as
14469 # here-document in config.status, that substitutes the proper values into
14470 # config.h.in to produce config.h.
14471
14472 # Create a delimiter string that does not exist in confdefs.h, to ease
14473 # handling of long lines.
14474 ac_delim='%!_!# '
14475 for ac_last_try in false false :; do
14476   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14477   if test -z "$ac_tt"; then
14478     break
14479   elif $ac_last_try; then
14480     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14481   else
14482     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14483   fi
14484 done
14485
14486 # For the awk script, D is an array of macro values keyed by name,
14487 # likewise P contains macro parameters if any.  Preserve backslash
14488 # newline sequences.
14489
14490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14491 sed -n '
14492 s/.\{148\}/&'"$ac_delim"'/g
14493 t rset
14494 :rset
14495 s/^[     ]*#[    ]*define[       ][      ]*/ /
14496 t def
14497 d
14498 :def
14499 s/\\$//
14500 t bsnl
14501 s/["\\]/\\&/g
14502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14503 D["\1"]=" \3"/p
14504 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14505 d
14506 :bsnl
14507 s/["\\]/\\&/g
14508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14509 D["\1"]=" \3\\\\\\n"\\/p
14510 t cont
14511 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14512 t cont
14513 d
14514 :cont
14515 n
14516 s/.\{148\}/&'"$ac_delim"'/g
14517 t clear
14518 :clear
14519 s/\\$//
14520 t bsnlc
14521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14522 d
14523 :bsnlc
14524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14525 b cont
14526 ' <confdefs.h | sed '
14527 s/'"$ac_delim"'/"\\\
14528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14529
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531   for (key in D) D_is_set[key] = 1
14532   FS = "\a"
14533 }
14534 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14535   line = \$ 0
14536   split(line, arg, " ")
14537   if (arg[1] == "#") {
14538     defundef = arg[2]
14539     mac1 = arg[3]
14540   } else {
14541     defundef = substr(arg[1], 2)
14542     mac1 = arg[2]
14543   }
14544   split(mac1, mac2, "(") #)
14545   macro = mac2[1]
14546   prefix = substr(line, 1, index(line, defundef) - 1)
14547   if (D_is_set[macro]) {
14548     # Preserve the white space surrounding the "#".
14549     print prefix "define", macro P[macro] D[macro]
14550     next
14551   } else {
14552     # Replace #undef with comments.  This is necessary, for example,
14553     # in the case of _POSIX_SOURCE, which is predefined and required
14554     # on some systems where configure will not decide to define it.
14555     if (defundef == "undef") {
14556       print "/*", prefix defundef, macro, "*/"
14557       next
14558     }
14559   }
14560 }
14561 { print }
14562 _ACAWK
14563 _ACEOF
14564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14565   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14566 fi # test -n "$CONFIG_HEADERS"
14567
14568
14569 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14570 shift
14571 for ac_tag
14572 do
14573   case $ac_tag in
14574   :[FHLC]) ac_mode=$ac_tag; continue;;
14575   esac
14576   case $ac_mode$ac_tag in
14577   :[FHL]*:*);;
14578   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14579   :[FH]-) ac_tag=-:-;;
14580   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14581   esac
14582   ac_save_IFS=$IFS
14583   IFS=:
14584   set x $ac_tag
14585   IFS=$ac_save_IFS
14586   shift
14587   ac_file=$1
14588   shift
14589
14590   case $ac_mode in
14591   :L) ac_source=$1;;
14592   :[FH])
14593     ac_file_inputs=
14594     for ac_f
14595     do
14596       case $ac_f in
14597       -) ac_f="$ac_tmp/stdin";;
14598       *) # Look for the file first in the build tree, then in the source tree
14599          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14600          # because $ac_f cannot contain `:'.
14601          test -f "$ac_f" ||
14602            case $ac_f in
14603            [\\/$]*) false;;
14604            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14605            esac ||
14606            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14607       esac
14608       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14609       as_fn_append ac_file_inputs " '$ac_f'"
14610     done
14611
14612     # Let's still pretend it is `configure' which instantiates (i.e., don't
14613     # use $as_me), people would be surprised to read:
14614     #    /* config.h.  Generated by config.status.  */
14615     configure_input='Generated from '`
14616           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14617         `' by configure.'
14618     if test x"$ac_file" != x-; then
14619       configure_input="$ac_file.  $configure_input"
14620       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14621 $as_echo "$as_me: creating $ac_file" >&6;}
14622     fi
14623     # Neutralize special characters interpreted by sed in replacement strings.
14624     case $configure_input in #(
14625     *\&* | *\|* | *\\* )
14626        ac_sed_conf_input=`$as_echo "$configure_input" |
14627        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14628     *) ac_sed_conf_input=$configure_input;;
14629     esac
14630
14631     case $ac_tag in
14632     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14633       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14634     esac
14635     ;;
14636   esac
14637
14638   ac_dir=`$as_dirname -- "$ac_file" ||
14639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14640          X"$ac_file" : 'X\(//\)[^/]' \| \
14641          X"$ac_file" : 'X\(//\)$' \| \
14642          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14643 $as_echo X"$ac_file" |
14644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14645             s//\1/
14646             q
14647           }
14648           /^X\(\/\/\)[^/].*/{
14649             s//\1/
14650             q
14651           }
14652           /^X\(\/\/\)$/{
14653             s//\1/
14654             q
14655           }
14656           /^X\(\/\).*/{
14657             s//\1/
14658             q
14659           }
14660           s/.*/./; q'`
14661   as_dir="$ac_dir"; as_fn_mkdir_p
14662   ac_builddir=.
14663
14664 case "$ac_dir" in
14665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14666 *)
14667   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14668   # A ".." for each directory in $ac_dir_suffix.
14669   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14670   case $ac_top_builddir_sub in
14671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14673   esac ;;
14674 esac
14675 ac_abs_top_builddir=$ac_pwd
14676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14677 # for backward compatibility:
14678 ac_top_builddir=$ac_top_build_prefix
14679
14680 case $srcdir in
14681   .)  # We are building in place.
14682     ac_srcdir=.
14683     ac_top_srcdir=$ac_top_builddir_sub
14684     ac_abs_top_srcdir=$ac_pwd ;;
14685   [\\/]* | ?:[\\/]* )  # Absolute name.
14686     ac_srcdir=$srcdir$ac_dir_suffix;
14687     ac_top_srcdir=$srcdir
14688     ac_abs_top_srcdir=$srcdir ;;
14689   *) # Relative name.
14690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14691     ac_top_srcdir=$ac_top_build_prefix$srcdir
14692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14693 esac
14694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14695
14696
14697   case $ac_mode in
14698   :F)
14699   #
14700   # CONFIG_FILE
14701   #
14702
14703   case $INSTALL in
14704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14705   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14706   esac
14707   ac_MKDIR_P=$MKDIR_P
14708   case $MKDIR_P in
14709   [\\/$]* | ?:[\\/]* ) ;;
14710   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14711   esac
14712 _ACEOF
14713
14714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14715 # If the template does not know about datarootdir, expand it.
14716 # FIXME: This hack should be removed a few years after 2.60.
14717 ac_datarootdir_hack=; ac_datarootdir_seen=
14718 ac_sed_dataroot='
14719 /datarootdir/ {
14720   p
14721   q
14722 }
14723 /@datadir@/p
14724 /@docdir@/p
14725 /@infodir@/p
14726 /@localedir@/p
14727 /@mandir@/p'
14728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14729 *datarootdir*) ac_datarootdir_seen=yes;;
14730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14731   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14733 _ACEOF
14734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14735   ac_datarootdir_hack='
14736   s&@datadir@&$datadir&g
14737   s&@docdir@&$docdir&g
14738   s&@infodir@&$infodir&g
14739   s&@localedir@&$localedir&g
14740   s&@mandir@&$mandir&g
14741   s&\\\${datarootdir}&$datarootdir&g' ;;
14742 esac
14743 _ACEOF
14744
14745 # Neutralize VPATH when `$srcdir' = `.'.
14746 # Shell code in configure.ac might set extrasub.
14747 # FIXME: do we really want to maintain this feature?
14748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14749 ac_sed_extra="$ac_vpsub
14750 $extrasub
14751 _ACEOF
14752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14753 :t
14754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14755 s|@configure_input@|$ac_sed_conf_input|;t t
14756 s&@top_builddir@&$ac_top_builddir_sub&;t t
14757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14758 s&@srcdir@&$ac_srcdir&;t t
14759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14760 s&@top_srcdir@&$ac_top_srcdir&;t t
14761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14762 s&@builddir@&$ac_builddir&;t t
14763 s&@abs_builddir@&$ac_abs_builddir&;t t
14764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14765 s&@INSTALL@&$ac_INSTALL&;t t
14766 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14767 $ac_datarootdir_hack
14768 "
14769 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14770   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14771
14772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14773   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14774   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14775       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14777 which seems to be undefined.  Please make sure it is defined" >&5
14778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14779 which seems to be undefined.  Please make sure it is defined" >&2;}
14780
14781   rm -f "$ac_tmp/stdin"
14782   case $ac_file in
14783   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14784   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14785   esac \
14786   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14787  ;;
14788   :H)
14789   #
14790   # CONFIG_HEADER
14791   #
14792   if test x"$ac_file" != x-; then
14793     {
14794       $as_echo "/* $configure_input  */" \
14795       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14796     } >"$ac_tmp/config.h" \
14797       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14798     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14799       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14801     else
14802       rm -f "$ac_file"
14803       mv "$ac_tmp/config.h" "$ac_file" \
14804         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14805     fi
14806   else
14807     $as_echo "/* $configure_input  */" \
14808       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14809       || as_fn_error $? "could not create -" "$LINENO" 5
14810   fi
14811 # Compute "$ac_file"'s index in $config_headers.
14812 _am_arg="$ac_file"
14813 _am_stamp_count=1
14814 for _am_header in $config_headers :; do
14815   case $_am_header in
14816     $_am_arg | $_am_arg:* )
14817       break ;;
14818     * )
14819       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14820   esac
14821 done
14822 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14823 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824          X"$_am_arg" : 'X\(//\)[^/]' \| \
14825          X"$_am_arg" : 'X\(//\)$' \| \
14826          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14827 $as_echo X"$_am_arg" |
14828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14829             s//\1/
14830             q
14831           }
14832           /^X\(\/\/\)[^/].*/{
14833             s//\1/
14834             q
14835           }
14836           /^X\(\/\/\)$/{
14837             s//\1/
14838             q
14839           }
14840           /^X\(\/\).*/{
14841             s//\1/
14842             q
14843           }
14844           s/.*/./; q'`/stamp-h$_am_stamp_count
14845  ;;
14846
14847   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14848 $as_echo "$as_me: executing $ac_file commands" >&6;}
14849  ;;
14850   esac
14851
14852
14853   case $ac_file$ac_mode in
14854     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14855   # Older Autoconf quotes --file arguments for eval, but not when files
14856   # are listed without --file.  Let's play safe and only enable the eval
14857   # if we detect the quoting.
14858   case $CONFIG_FILES in
14859   *\'*) eval set x "$CONFIG_FILES" ;;
14860   *)   set x $CONFIG_FILES ;;
14861   esac
14862   shift
14863   for mf
14864   do
14865     # Strip MF so we end up with the name of the file.
14866     mf=`echo "$mf" | sed -e 's/:.*$//'`
14867     # Check whether this is an Automake generated Makefile or not.
14868     # We used to match only the files named 'Makefile.in', but
14869     # some people rename them; so instead we look at the file content.
14870     # Grep'ing the first line is not enough: some people post-process
14871     # each Makefile.in and add a new line on top of each file to say so.
14872     # Grep'ing the whole file is not good either: AIX grep has a line
14873     # limit of 2048, but all sed's we know have understand at least 4000.
14874     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14875       dirpart=`$as_dirname -- "$mf" ||
14876 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14877          X"$mf" : 'X\(//\)[^/]' \| \
14878          X"$mf" : 'X\(//\)$' \| \
14879          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14880 $as_echo X"$mf" |
14881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14882             s//\1/
14883             q
14884           }
14885           /^X\(\/\/\)[^/].*/{
14886             s//\1/
14887             q
14888           }
14889           /^X\(\/\/\)$/{
14890             s//\1/
14891             q
14892           }
14893           /^X\(\/\).*/{
14894             s//\1/
14895             q
14896           }
14897           s/.*/./; q'`
14898     else
14899       continue
14900     fi
14901     # Extract the definition of DEPDIR, am__include, and am__quote
14902     # from the Makefile without running 'make'.
14903     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14904     test -z "$DEPDIR" && continue
14905     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14906     test -z "am__include" && continue
14907     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14908     # Find all dependency output files, they are included files with
14909     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14910     # simplest approach to changing $(DEPDIR) to its actual value in the
14911     # expansion.
14912     for file in `sed -n "
14913       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14914          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14915       # Make sure the directory exists.
14916       test -f "$dirpart/$file" && continue
14917       fdir=`$as_dirname -- "$file" ||
14918 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14919          X"$file" : 'X\(//\)[^/]' \| \
14920          X"$file" : 'X\(//\)$' \| \
14921          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14922 $as_echo X"$file" |
14923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14924             s//\1/
14925             q
14926           }
14927           /^X\(\/\/\)[^/].*/{
14928             s//\1/
14929             q
14930           }
14931           /^X\(\/\/\)$/{
14932             s//\1/
14933             q
14934           }
14935           /^X\(\/\).*/{
14936             s//\1/
14937             q
14938           }
14939           s/.*/./; q'`
14940       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14941       # echo "creating $dirpart/$file"
14942       echo '# dummy' > "$dirpart/$file"
14943     done
14944   done
14945 }
14946  ;;
14947     "libtool":C)
14948
14949     # See if we are running on zsh, and set the options which allow our
14950     # commands through without removal of \ escapes.
14951     if test -n "${ZSH_VERSION+set}" ; then
14952       setopt NO_GLOB_SUBST
14953     fi
14954
14955     cfgfile="${ofile}T"
14956     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14957     $RM "$cfgfile"
14958
14959     cat <<_LT_EOF >> "$cfgfile"
14960 #! $SHELL
14961
14962 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14963 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14965 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14966 #
14967 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14968 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14969 #                 Foundation, Inc.
14970 #   Written by Gordon Matzigkeit, 1996
14971 #
14972 #   This file is part of GNU Libtool.
14973 #
14974 # GNU Libtool is free software; you can redistribute it and/or
14975 # modify it under the terms of the GNU General Public License as
14976 # published by the Free Software Foundation; either version 2 of
14977 # the License, or (at your option) any later version.
14978 #
14979 # As a special exception to the GNU General Public License,
14980 # if you distribute this file as part of a program or library that
14981 # is built using GNU Libtool, you may include this file under the
14982 # same distribution terms that you use for the rest of that program.
14983 #
14984 # GNU Libtool is distributed in the hope that it will be useful,
14985 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14986 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14987 # GNU General Public License for more details.
14988 #
14989 # You should have received a copy of the GNU General Public License
14990 # along with GNU Libtool; see the file COPYING.  If not, a copy
14991 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14992 # obtained by writing to the Free Software Foundation, Inc.,
14993 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14994
14995
14996 # The names of the tagged configurations supported by this script.
14997 available_tags=""
14998
14999 # ### BEGIN LIBTOOL CONFIG
15000
15001 # Which release of libtool.m4 was used?
15002 macro_version=$macro_version
15003 macro_revision=$macro_revision
15004
15005 # Whether or not to build shared libraries.
15006 build_libtool_libs=$enable_shared
15007
15008 # Whether or not to build static libraries.
15009 build_old_libs=$enable_static
15010
15011 # What type of objects to build.
15012 pic_mode=$pic_mode
15013
15014 # Whether or not to optimize for fast installation.
15015 fast_install=$enable_fast_install
15016
15017 # Shell to use when invoking shell scripts.
15018 SHELL=$lt_SHELL
15019
15020 # An echo program that protects backslashes.
15021 ECHO=$lt_ECHO
15022
15023 # The PATH separator for the build system.
15024 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15025
15026 # The host system.
15027 host_alias=$host_alias
15028 host=$host
15029 host_os=$host_os
15030
15031 # The build system.
15032 build_alias=$build_alias
15033 build=$build
15034 build_os=$build_os
15035
15036 # A sed program that does not truncate output.
15037 SED=$lt_SED
15038
15039 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15040 Xsed="\$SED -e 1s/^X//"
15041
15042 # A grep program that handles long lines.
15043 GREP=$lt_GREP
15044
15045 # An ERE matcher.
15046 EGREP=$lt_EGREP
15047
15048 # A literal string matcher.
15049 FGREP=$lt_FGREP
15050
15051 # A BSD- or MS-compatible name lister.
15052 NM=$lt_NM
15053
15054 # Whether we need soft or hard links.
15055 LN_S=$lt_LN_S
15056
15057 # What is the maximum length of a command?
15058 max_cmd_len=$max_cmd_len
15059
15060 # Object file suffix (normally "o").
15061 objext=$ac_objext
15062
15063 # Executable file suffix (normally "").
15064 exeext=$exeext
15065
15066 # whether the shell understands "unset".
15067 lt_unset=$lt_unset
15068
15069 # turn spaces into newlines.
15070 SP2NL=$lt_lt_SP2NL
15071
15072 # turn newlines into spaces.
15073 NL2SP=$lt_lt_NL2SP
15074
15075 # convert \$build file names to \$host format.
15076 to_host_file_cmd=$lt_cv_to_host_file_cmd
15077
15078 # convert \$build files to toolchain format.
15079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15080
15081 # An object symbol dumper.
15082 OBJDUMP=$lt_OBJDUMP
15083
15084 # Method to check whether dependent libraries are shared objects.
15085 deplibs_check_method=$lt_deplibs_check_method
15086
15087 # Command to use when deplibs_check_method = "file_magic".
15088 file_magic_cmd=$lt_file_magic_cmd
15089
15090 # How to find potential files when deplibs_check_method = "file_magic".
15091 file_magic_glob=$lt_file_magic_glob
15092
15093 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15094 want_nocaseglob=$lt_want_nocaseglob
15095
15096 # DLL creation program.
15097 DLLTOOL=$lt_DLLTOOL
15098
15099 # Command to associate shared and link libraries.
15100 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15101
15102 # The archiver.
15103 AR=$lt_AR
15104
15105 # Flags to create an archive.
15106 AR_FLAGS=$lt_AR_FLAGS
15107
15108 # How to feed a file listing to the archiver.
15109 archiver_list_spec=$lt_archiver_list_spec
15110
15111 # A symbol stripping program.
15112 STRIP=$lt_STRIP
15113
15114 # Commands used to install an old-style archive.
15115 RANLIB=$lt_RANLIB
15116 old_postinstall_cmds=$lt_old_postinstall_cmds
15117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15118
15119 # Whether to use a lock for old archive extraction.
15120 lock_old_archive_extraction=$lock_old_archive_extraction
15121
15122 # A C compiler.
15123 LTCC=$lt_CC
15124
15125 # LTCC compiler flags.
15126 LTCFLAGS=$lt_CFLAGS
15127
15128 # Take the output of nm and produce a listing of raw symbols and C names.
15129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15130
15131 # Transform the output of nm in a proper C declaration.
15132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15133
15134 # Transform the output of nm in a C name address pair.
15135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15136
15137 # Transform the output of nm in a C name address pair when lib prefix is needed.
15138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15139
15140 # Specify filename containing input files for \$NM.
15141 nm_file_list_spec=$lt_nm_file_list_spec
15142
15143 # The root where to search for dependent libraries,and in which our libraries should be installed.
15144 lt_sysroot=$lt_sysroot
15145
15146 # The name of the directory that contains temporary libtool files.
15147 objdir=$objdir
15148
15149 # Used to examine libraries when file_magic_cmd begins with "file".
15150 MAGIC_CMD=$MAGIC_CMD
15151
15152 # Must we lock files when doing compilation?
15153 need_locks=$lt_need_locks
15154
15155 # Manifest tool.
15156 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15157
15158 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15159 DSYMUTIL=$lt_DSYMUTIL
15160
15161 # Tool to change global to local symbols on Mac OS X.
15162 NMEDIT=$lt_NMEDIT
15163
15164 # Tool to manipulate fat objects and archives on Mac OS X.
15165 LIPO=$lt_LIPO
15166
15167 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15168 OTOOL=$lt_OTOOL
15169
15170 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15171 OTOOL64=$lt_OTOOL64
15172
15173 # Old archive suffix (normally "a").
15174 libext=$libext
15175
15176 # Shared library suffix (normally ".so").
15177 shrext_cmds=$lt_shrext_cmds
15178
15179 # The commands to extract the exported symbol list from a shared archive.
15180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15181
15182 # Variables whose values should be saved in libtool wrapper scripts and
15183 # restored at link time.
15184 variables_saved_for_relink=$lt_variables_saved_for_relink
15185
15186 # Do we need the "lib" prefix for modules?
15187 need_lib_prefix=$need_lib_prefix
15188
15189 # Do we need a version for libraries?
15190 need_version=$need_version
15191
15192 # Library versioning type.
15193 version_type=$version_type
15194
15195 # Shared library runtime path variable.
15196 runpath_var=$runpath_var
15197
15198 # Shared library path variable.
15199 shlibpath_var=$shlibpath_var
15200
15201 # Is shlibpath searched before the hard-coded library search path?
15202 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15203
15204 # Format of library name prefix.
15205 libname_spec=$lt_libname_spec
15206
15207 # List of archive names.  First name is the real one, the rest are links.
15208 # The last name is the one that the linker finds with -lNAME
15209 library_names_spec=$lt_library_names_spec
15210
15211 # The coded name of the library, if different from the real name.
15212 soname_spec=$lt_soname_spec
15213
15214 # Permission mode override for installation of shared libraries.
15215 install_override_mode=$lt_install_override_mode
15216
15217 # Command to use after installation of a shared archive.
15218 postinstall_cmds=$lt_postinstall_cmds
15219
15220 # Command to use after uninstallation of a shared archive.
15221 postuninstall_cmds=$lt_postuninstall_cmds
15222
15223 # Commands used to finish a libtool library installation in a directory.
15224 finish_cmds=$lt_finish_cmds
15225
15226 # As "finish_cmds", except a single script fragment to be evaled but
15227 # not shown.
15228 finish_eval=$lt_finish_eval
15229
15230 # Whether we should hardcode library paths into libraries.
15231 hardcode_into_libs=$hardcode_into_libs
15232
15233 # Compile-time system search path for libraries.
15234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15235
15236 # Run-time system search path for libraries.
15237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15238
15239 # Whether dlopen is supported.
15240 dlopen_support=$enable_dlopen
15241
15242 # Whether dlopen of programs is supported.
15243 dlopen_self=$enable_dlopen_self
15244
15245 # Whether dlopen of statically linked programs is supported.
15246 dlopen_self_static=$enable_dlopen_self_static
15247
15248 # Commands to strip libraries.
15249 old_striplib=$lt_old_striplib
15250 striplib=$lt_striplib
15251
15252
15253 # The linker used to build libraries.
15254 LD=$lt_LD
15255
15256 # How to create reloadable object files.
15257 reload_flag=$lt_reload_flag
15258 reload_cmds=$lt_reload_cmds
15259
15260 # Commands used to build an old-style archive.
15261 old_archive_cmds=$lt_old_archive_cmds
15262
15263 # A language specific compiler.
15264 CC=$lt_compiler
15265
15266 # Is the compiler the GNU compiler?
15267 with_gcc=$GCC
15268
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15271
15272 # Additional compiler flags for building library objects.
15273 pic_flag=$lt_lt_prog_compiler_pic
15274
15275 # How to pass a linker flag through the compiler.
15276 wl=$lt_lt_prog_compiler_wl
15277
15278 # Compiler flag to prevent dynamic linking.
15279 link_static_flag=$lt_lt_prog_compiler_static
15280
15281 # Does compiler simultaneously support -c and -o options?
15282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15283
15284 # Whether or not to add -lc for building shared libraries.
15285 build_libtool_need_lc=$archive_cmds_need_lc
15286
15287 # Whether or not to disallow shared libs when runtime libs are static.
15288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15289
15290 # Compiler flag to allow reflexive dlopens.
15291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15292
15293 # Compiler flag to generate shared objects directly from archives.
15294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15295
15296 # Whether the compiler copes with passing no objects directly.
15297 compiler_needs_object=$lt_compiler_needs_object
15298
15299 # Create an old-style archive from a shared archive.
15300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15301
15302 # Create a temporary old-style archive to link instead of a shared archive.
15303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15304
15305 # Commands used to build a shared archive.
15306 archive_cmds=$lt_archive_cmds
15307 archive_expsym_cmds=$lt_archive_expsym_cmds
15308
15309 # Commands used to build a loadable module if different from building
15310 # a shared archive.
15311 module_cmds=$lt_module_cmds
15312 module_expsym_cmds=$lt_module_expsym_cmds
15313
15314 # Whether we are building with GNU ld or not.
15315 with_gnu_ld=$lt_with_gnu_ld
15316
15317 # Flag that allows shared libraries with undefined symbols to be built.
15318 allow_undefined_flag=$lt_allow_undefined_flag
15319
15320 # Flag that enforces no undefined symbols.
15321 no_undefined_flag=$lt_no_undefined_flag
15322
15323 # Flag to hardcode \$libdir into a binary during linking.
15324 # This must work even if \$libdir does not exist
15325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15326
15327 # Whether we need a single "-rpath" flag with a separated argument.
15328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15329
15330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15331 # DIR into the resulting binary.
15332 hardcode_direct=$hardcode_direct
15333
15334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15335 # DIR into the resulting binary and the resulting library dependency is
15336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15337 # library is relocated.
15338 hardcode_direct_absolute=$hardcode_direct_absolute
15339
15340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15341 # into the resulting binary.
15342 hardcode_minus_L=$hardcode_minus_L
15343
15344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15345 # into the resulting binary.
15346 hardcode_shlibpath_var=$hardcode_shlibpath_var
15347
15348 # Set to "yes" if building a shared library automatically hardcodes DIR
15349 # into the library and all subsequent libraries and executables linked
15350 # against it.
15351 hardcode_automatic=$hardcode_automatic
15352
15353 # Set to yes if linker adds runtime paths of dependent libraries
15354 # to runtime path list.
15355 inherit_rpath=$inherit_rpath
15356
15357 # Whether libtool must link a program against all its dependency libraries.
15358 link_all_deplibs=$link_all_deplibs
15359
15360 # Set to "yes" if exported symbols are required.
15361 always_export_symbols=$always_export_symbols
15362
15363 # The commands to list exported symbols.
15364 export_symbols_cmds=$lt_export_symbols_cmds
15365
15366 # Symbols that should not be listed in the preloaded symbols.
15367 exclude_expsyms=$lt_exclude_expsyms
15368
15369 # Symbols that must always be exported.
15370 include_expsyms=$lt_include_expsyms
15371
15372 # Commands necessary for linking programs (against libraries) with templates.
15373 prelink_cmds=$lt_prelink_cmds
15374
15375 # Commands necessary for finishing linking programs.
15376 postlink_cmds=$lt_postlink_cmds
15377
15378 # Specify filename containing input files.
15379 file_list_spec=$lt_file_list_spec
15380
15381 # How to hardcode a shared library path into an executable.
15382 hardcode_action=$hardcode_action
15383
15384 # ### END LIBTOOL CONFIG
15385
15386 _LT_EOF
15387
15388   case $host_os in
15389   aix3*)
15390     cat <<\_LT_EOF >> "$cfgfile"
15391 # AIX sometimes has problems with the GCC collect2 program.  For some
15392 # reason, if we set the COLLECT_NAMES environment variable, the problems
15393 # vanish in a puff of smoke.
15394 if test "X${COLLECT_NAMES+set}" != Xset; then
15395   COLLECT_NAMES=
15396   export COLLECT_NAMES
15397 fi
15398 _LT_EOF
15399     ;;
15400   esac
15401
15402
15403 ltmain="$ac_aux_dir/ltmain.sh"
15404
15405
15406   # We use sed instead of cat because bash on DJGPP gets confused if
15407   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15408   # text mode, it properly converts lines to CR/LF.  This bash problem
15409   # is reportedly fixed, but why not run on old versions too?
15410   sed '$q' "$ltmain" >> "$cfgfile" \
15411      || (rm -f "$cfgfile"; exit 1)
15412
15413   if test x"$xsi_shell" = xyes; then
15414   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15415 func_dirname ()\
15416 {\
15417 \    case ${1} in\
15418 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15419 \      *  ) func_dirname_result="${3}" ;;\
15420 \    esac\
15421 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15422   && mv -f "$cfgfile.tmp" "$cfgfile" \
15423     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15424 test 0 -eq $? || _lt_function_replace_fail=:
15425
15426
15427   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15428 func_basename ()\
15429 {\
15430 \    func_basename_result="${1##*/}"\
15431 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15432   && mv -f "$cfgfile.tmp" "$cfgfile" \
15433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15434 test 0 -eq $? || _lt_function_replace_fail=:
15435
15436
15437   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15438 func_dirname_and_basename ()\
15439 {\
15440 \    case ${1} in\
15441 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15442 \      *  ) func_dirname_result="${3}" ;;\
15443 \    esac\
15444 \    func_basename_result="${1##*/}"\
15445 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15446   && mv -f "$cfgfile.tmp" "$cfgfile" \
15447     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15448 test 0 -eq $? || _lt_function_replace_fail=:
15449
15450
15451   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15452 func_stripname ()\
15453 {\
15454 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15455 \    # positional parameters, so assign one to ordinary parameter first.\
15456 \    func_stripname_result=${3}\
15457 \    func_stripname_result=${func_stripname_result#"${1}"}\
15458 \    func_stripname_result=${func_stripname_result%"${2}"}\
15459 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15460   && mv -f "$cfgfile.tmp" "$cfgfile" \
15461     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15462 test 0 -eq $? || _lt_function_replace_fail=:
15463
15464
15465   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15466 func_split_long_opt ()\
15467 {\
15468 \    func_split_long_opt_name=${1%%=*}\
15469 \    func_split_long_opt_arg=${1#*=}\
15470 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15471   && mv -f "$cfgfile.tmp" "$cfgfile" \
15472     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15473 test 0 -eq $? || _lt_function_replace_fail=:
15474
15475
15476   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15477 func_split_short_opt ()\
15478 {\
15479 \    func_split_short_opt_arg=${1#??}\
15480 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15481 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15482   && mv -f "$cfgfile.tmp" "$cfgfile" \
15483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15484 test 0 -eq $? || _lt_function_replace_fail=:
15485
15486
15487   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15488 func_lo2o ()\
15489 {\
15490 \    case ${1} in\
15491 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15492 \      *)    func_lo2o_result=${1} ;;\
15493 \    esac\
15494 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15495   && mv -f "$cfgfile.tmp" "$cfgfile" \
15496     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15497 test 0 -eq $? || _lt_function_replace_fail=:
15498
15499
15500   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15501 func_xform ()\
15502 {\
15503     func_xform_result=${1%.*}.lo\
15504 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15505   && mv -f "$cfgfile.tmp" "$cfgfile" \
15506     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15507 test 0 -eq $? || _lt_function_replace_fail=:
15508
15509
15510   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15511 func_arith ()\
15512 {\
15513     func_arith_result=$(( $* ))\
15514 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15515   && mv -f "$cfgfile.tmp" "$cfgfile" \
15516     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15517 test 0 -eq $? || _lt_function_replace_fail=:
15518
15519
15520   sed -e '/^func_len ()$/,/^} # func_len /c\
15521 func_len ()\
15522 {\
15523     func_len_result=${#1}\
15524 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15525   && mv -f "$cfgfile.tmp" "$cfgfile" \
15526     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15527 test 0 -eq $? || _lt_function_replace_fail=:
15528
15529 fi
15530
15531 if test x"$lt_shell_append" = xyes; then
15532   sed -e '/^func_append ()$/,/^} # func_append /c\
15533 func_append ()\
15534 {\
15535     eval "${1}+=\\${2}"\
15536 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15537   && mv -f "$cfgfile.tmp" "$cfgfile" \
15538     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15539 test 0 -eq $? || _lt_function_replace_fail=:
15540
15541
15542   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15543 func_append_quoted ()\
15544 {\
15545 \    func_quote_for_eval "${2}"\
15546 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15547 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15548   && mv -f "$cfgfile.tmp" "$cfgfile" \
15549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15550 test 0 -eq $? || _lt_function_replace_fail=:
15551
15552
15553   # Save a `func_append' function call where possible by direct use of '+='
15554   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15555     && mv -f "$cfgfile.tmp" "$cfgfile" \
15556       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15557   test 0 -eq $? || _lt_function_replace_fail=:
15558 else
15559   # Save a `func_append' function call even when '+=' is not available
15560   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15561     && mv -f "$cfgfile.tmp" "$cfgfile" \
15562       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15563   test 0 -eq $? || _lt_function_replace_fail=:
15564 fi
15565
15566 if test x"$_lt_function_replace_fail" = x":"; then
15567   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15568 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15569 fi
15570
15571
15572    mv -f "$cfgfile" "$ofile" ||
15573     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15574   chmod +x "$ofile"
15575
15576  ;;
15577
15578   esac
15579 done # for ac_tag
15580
15581
15582 as_fn_exit 0
15583 _ACEOF
15584 ac_clean_files=$ac_clean_files_save
15585
15586 test $ac_write_fail = 0 ||
15587   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15588
15589
15590 # configure is writing to config.log, and then calls config.status.
15591 # config.status does its own redirection, appending to config.log.
15592 # Unfortunately, on DOS this fails, as config.log is still kept open
15593 # by configure, so config.status won't be able to write to it; its
15594 # output is simply discarded.  So we exec the FD to /dev/null,
15595 # effectively closing config.log, so it can be properly (re)opened and
15596 # appended to by config.status.  When coming back to configure, we
15597 # need to make the FD available again.
15598 if test "$no_create" != yes; then
15599   ac_cs_success=:
15600   ac_config_status_args=
15601   test "$silent" = yes &&
15602     ac_config_status_args="$ac_config_status_args --quiet"
15603   exec 5>/dev/null
15604   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15605   exec 5>>config.log
15606   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15607   # would make configure fail if this is the last instruction.
15608   $ac_cs_success || as_fn_exit 1
15609 fi
15610 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15612 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15613 fi
15614
15615
15616 { $as_echo "$as_me:${as_lineno-$LINENO}:
15617 WebP Configuration Summary
15618 --------------------------
15619
15620 Shared libraries: ${enable_shared}
15621 Static libraries: ${enable_static}
15622 Threaded decode: ${enable_threading-no}
15623 libwebp: yes
15624 libwebpdecoder: ${enable_libwebpdecoder-no}
15625 libwebpdemux: ${enable_libwebpdemux-no}
15626 libwebpmux: ${enable_libwebpmux-no}
15627
15628 Tools:
15629 cwebp : yes
15630   Input format support
15631   ====================
15632   JPEG : ${jpeg_support-no}
15633   PNG  : ${png_support-no}
15634   TIFF : ${tiff_support-no}
15635   WIC  : ${wic_support-no}
15636 dwebp : yes
15637   Output format support
15638   =====================
15639   PNG  : ${png_support-no}
15640   WIC  : ${wic_support-no}
15641 gif2webp : ${build_gif2webp-no}
15642 webpmux  : ${enable_libwebpmux-no}
15643 vwebp    : ${build_vwebp-no}
15644 " >&5
15645 $as_echo "$as_me:
15646 WebP Configuration Summary
15647 --------------------------
15648
15649 Shared libraries: ${enable_shared}
15650 Static libraries: ${enable_static}
15651 Threaded decode: ${enable_threading-no}
15652 libwebp: yes
15653 libwebpdecoder: ${enable_libwebpdecoder-no}
15654 libwebpdemux: ${enable_libwebpdemux-no}
15655 libwebpmux: ${enable_libwebpmux-no}
15656
15657 Tools:
15658 cwebp : yes
15659   Input format support
15660   ====================
15661   JPEG : ${jpeg_support-no}
15662   PNG  : ${png_support-no}
15663   TIFF : ${tiff_support-no}
15664   WIC  : ${wic_support-no}
15665 dwebp : yes
15666   Output format support
15667   =====================
15668   PNG  : ${png_support-no}
15669   WIC  : ${wic_support-no}
15670 gif2webp : ${build_gif2webp-no}
15671 webpmux  : ${enable_libwebpmux-no}
15672 vwebp    : ${build_vwebp-no}
15673 " >&6;}