]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libpng/lib/dist/configure
2f2f5f22bdea662dc5d3d730ba0a7eb61bf8cbaf
[l4.git] / l4 / pkg / libpng / lib / dist / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.6.0.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: png-mng-implement@lists.sourceforge.net about your
279 $0: system, 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='libpng'
592 PACKAGE_TARNAME='libpng'
593 PACKAGE_VERSION='1.6.0'
594 PACKAGE_STRING='libpng 1.6.0'
595 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="pngget.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 PNG_ARM_NEON_FALSE
639 PNG_ARM_NEON_TRUE
640 AM_CCASFLAGS
641 DO_PNG_PREFIX_FALSE
642 DO_PNG_PREFIX_TRUE
643 PNG_PREFIX
644 binconfigs
645 pkgconfigdir
646 PNGLIB_RELEASE
647 PNGLIB_MINOR
648 PNGLIB_MAJOR
649 PNGLIB_VERSION
650 SYMBOL_PREFIX
651 HAVE_LD_VERSION_SCRIPT_FALSE
652 HAVE_LD_VERSION_SCRIPT_TRUE
653 HAVE_SOLARIS_LD_FALSE
654 HAVE_SOLARIS_LD_TRUE
655 LIBOBJS
656 POW_LIB
657 PNG_COPTS
658 DFNCPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LIBTOOL
672 OBJDUMP
673 DLLTOOL
674 AS
675 LN_S
676 CPP
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_dependency_tracking
786 with_gnu_ld
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_sysroot
792 enable_libtool_lock
793 enable_werror
794 with_zlib_prefix
795 with_pkgconfigdir
796 with_binconfigs
797 with_libpng_prefix
798 enable_arm_neon
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CCAS
809 CCASFLAGS
810 CPP
811 PNG_COPTS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *=)   ac_optarg= ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       as_fn_error $? "invalid package name: $ac_useropt"
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval with_$ac_useropt=\$ac_optarg ;;
1162
1163   -without-* | --without-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error $? "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=no ;;
1178
1179   --x)
1180     # Obsolete; use --with-x.
1181     with_x=yes ;;
1182
1183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184   | --x-incl | --x-inc | --x-in | --x-i)
1185     ac_prev=x_includes ;;
1186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188     x_includes=$ac_optarg ;;
1189
1190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192     ac_prev=x_libraries ;;
1193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195     x_libraries=$ac_optarg ;;
1196
1197   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199     ;;
1200
1201   *=*)
1202     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203     # Reject names that are not valid shell variable names.
1204     case $ac_envvar in #(
1205       '' | [0-9]* | *[!_$as_cr_alnum]* )
1206       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207     esac
1208     eval $ac_envvar=\$ac_optarg
1209     export $ac_envvar ;;
1210
1211   *)
1212     # FIXME: should be removed in autoconf 3.0.
1213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217     ;;
1218
1219   esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224   as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228   case $enable_option_checking in
1229     no) ;;
1230     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232   esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237                 datadir sysconfdir sharedstatedir localstatedir includedir \
1238                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239                 libdir localedir mandir
1240 do
1241   eval ac_val=\$$ac_var
1242   # Remove trailing slashes.
1243   case $ac_val in
1244     */ )
1245       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246       eval $ac_var=\$ac_val;;
1247   esac
1248   # Be sure to have absolute directory names.
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265   if test "x$build_alias" = x; then
1266     cross_compiling=maybe
1267   elif test "x$build_alias" != "x$host_alias"; then
1268     cross_compiling=yes
1269   fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281   as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283   as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$as_myself" : 'X\(//\)[^/]' \| \
1293          X"$as_myself" : 'X\(//\)$' \| \
1294          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327         pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330   srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_env_${ac_var}_value=\$${ac_var}
1341   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349   # Omit some internal or obsolete options to make the list less imposing.
1350   # This message is too long to be a string in the A/UX 3.1 sh.
1351   cat <<_ACEOF
1352 \`configure' configures libpng 1.6.0 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362   -h, --help              display this help and exit
1363       --help=short        display options specific to this package
1364       --help=recursive    display the short help of all the included packages
1365   -V, --version           display version information and exit
1366   -q, --quiet, --silent   do not print \`checking ...' messages
1367       --cache-file=FILE   cache test results in FILE [disabled]
1368   -C, --config-cache      alias for \`--cache-file=config.cache'
1369   -n, --no-create         do not create output files
1370       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373   --prefix=PREFIX         install architecture-independent files in PREFIX
1374                           [$ac_default_prefix]
1375   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                           [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386   --bindir=DIR            user executables [EPREFIX/bin]
1387   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388   --libexecdir=DIR        program executables [EPREFIX/libexec]
1389   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392   --libdir=DIR            object code libraries [EPREFIX/lib]
1393   --includedir=DIR        C header files [PREFIX/include]
1394   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397   --infodir=DIR           info documentation [DATAROOTDIR/info]
1398   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399   --mandir=DIR            man documentation [DATAROOTDIR/man]
1400   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1401   --htmldir=DIR           html documentation [DOCDIR]
1402   --dvidir=DIR            dvi documentation [DOCDIR]
1403   --pdfdir=DIR            pdf documentation [DOCDIR]
1404   --psdir=DIR             ps documentation [DOCDIR]
1405 _ACEOF
1406
1407   cat <<\_ACEOF
1408
1409 Program names:
1410   --program-prefix=PREFIX            prepend PREFIX to installed program names
1411   --program-suffix=SUFFIX            append SUFFIX to installed program names
1412   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414 System types:
1415   --build=BUILD     configure for building on BUILD [guessed]
1416   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421   case $ac_init_help in
1422      short | recursive ) echo "Configuration of libpng 1.6.0:";;
1423    esac
1424   cat <<\_ACEOF
1425
1426 Optional Features:
1427   --disable-option-checking  ignore unrecognized --enable/--with options
1428   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430   --enable-silent-rules   less verbose build output (undo: "make V=1")
1431   --disable-silent-rules  verbose build output (undo: "make V=0")
1432   --enable-maintainer-mode
1433                           enable make rules and dependencies not useful (and
1434                           sometimes confusing) to the casual installer
1435   --enable-dependency-tracking
1436                           do not reject slow dependency extractors
1437   --disable-dependency-tracking
1438                           speeds up one-time build
1439   --enable-shared[=PKGS]  build shared libraries [default=yes]
1440   --enable-static[=PKGS]  build static libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1445                           if it is supported
1446   --enable-arm-neon     Enable ARM NEON optimizations
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1453                           both]
1454   --with-sysroot=DIR Search for dependent libraries within DIR
1455                         (or the compiler's sysroot if not specified).
1456   --with-zlib-prefix    prefix that may have been used in installed zlib
1457   --with-pkgconfigdir   Use the specified pkgconfig dir (default is
1458                           libdir/pkgconfig)
1459   --with-binconfigs     Generate shell libpng-config scripts as well as
1460                           pkg-config data [default=yes]
1461   --with-libpng-prefix  prefix libpng exported function (API) names with the
1462                           given value
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   LIBS        libraries to pass to the linker, e.g. -l<library>
1470   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   CCAS        assembler compiler command (defaults to CC)
1473   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1474   CPP         C preprocessor
1475   PNG_COPTS   additional flags for the C compiler, use this for options that
1476               would cause configure itself to fail
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487   # If there are subdirs, report their specific --help.
1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489     test -d "$ac_dir" ||
1490       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491       continue
1492     ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498   # A ".." for each directory in $ac_dir_suffix.
1499   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500   case $ac_top_builddir_sub in
1501   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503   esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511   .)  # We are building in place.
1512     ac_srcdir=.
1513     ac_top_srcdir=$ac_top_builddir_sub
1514     ac_abs_top_srcdir=$ac_pwd ;;
1515   [\\/]* | ?:[\\/]* )  # Absolute name.
1516     ac_srcdir=$srcdir$ac_dir_suffix;
1517     ac_top_srcdir=$srcdir
1518     ac_abs_top_srcdir=$srcdir ;;
1519   *) # Relative name.
1520     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521     ac_top_srcdir=$ac_top_build_prefix$srcdir
1522     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526     cd "$ac_dir" || { ac_status=$?; continue; }
1527     # Check for guested configure.
1528     if test -f "$ac_srcdir/configure.gnu"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531     elif test -f "$ac_srcdir/configure"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure" --help=recursive
1534     else
1535       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536     fi || ac_status=$?
1537     cd "$ac_pwd" || { ac_status=$?; break; }
1538   done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543   cat <<\_ACEOF
1544 libpng configure 1.6.0
1545 generated by GNU Autoconf 2.69
1546
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551   exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   rm -f conftest.$ac_objext
1565   if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_compile") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && {
1581          test -z "$ac_c_werror_flag" ||
1582          test ! -s conftest.err
1583        } && test -s conftest.$ac_objext; then :
1584   ac_retval=0
1585 else
1586   $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589         ac_retval=1
1590 fi
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605   *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610   ac_status=$?
1611   if test -s conftest.err; then
1612     grep -v '^ *+' conftest.err >conftest.er1
1613     cat conftest.er1 >&5
1614     mv -f conftest.er1 conftest.err
1615   fi
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; } > conftest.i && {
1618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619          test ! -s conftest.err
1620        }; then :
1621   ac_retval=0
1622 else
1623   $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626     ac_retval=1
1627 fi
1628   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629   as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   rm -f conftest.$ac_objext conftest$ac_exeext
1640   if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_link") 2>conftest.err
1648   ac_status=$?
1649   if test -s conftest.err; then
1650     grep -v '^ *+' conftest.err >conftest.er1
1651     cat conftest.er1 >&5
1652     mv -f conftest.er1 conftest.err
1653   fi
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; } && {
1656          test -z "$ac_c_werror_flag" ||
1657          test ! -s conftest.err
1658        } && test -s conftest$ac_exeext && {
1659          test "$cross_compiling" = yes ||
1660          test -x conftest$ac_exeext
1661        }; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667         ac_retval=1
1668 fi
1669   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671   # interfere with the next link command; also delete a directory that is
1672   # left behind by Apple's compiler.  We do this before executing the actions.
1673   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675   as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_link
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689   $as_echo_n "(cached) " >&6
1690 else
1691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h.  */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697   eval "$3=yes"
1698 else
1699   eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_link") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728   { { case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_try") 2>&5
1735   ac_status=$?
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; }; }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: program exited with status $ac_status" >&5
1741        $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744        ac_retval=$ac_status
1745 fi
1746   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770     which can conflict with char $2 (); below.
1771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772     <limits.h> exists even on freestanding compilers.  */
1773
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1779
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783    Use char because int might match the return type of a GCC
1784    builtin and then its argument prototype would still apply.  */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790     to always fail with ENOSYS.  Some functions are actually named
1791     something starting with __ and the normal name is an alias.  */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main ()
1798 {
1799 return $2 ();
1800   ;
1801   return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805   eval "$3=yes"
1806 else
1807   eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext \
1810     conftest$ac_exeext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_func
1818
1819 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1822 # the include files in INCLUDES and setting the cache variable VAR
1823 # accordingly.
1824 ac_fn_c_check_header_mongrel ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   if eval \${$3+:} false; then :
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 else
1837   # Is the header compilable?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1839 $as_echo_n "checking $2 usability... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h.  */
1842 $4
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846   ac_header_compiler=yes
1847 else
1848   ac_header_compiler=no
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1852 $as_echo "$ac_header_compiler" >&6; }
1853
1854 # Is the header present?
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1856 $as_echo_n "checking $2 presence... " >&6; }
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_cpp "$LINENO"; then :
1862   ac_header_preproc=yes
1863 else
1864   ac_header_preproc=no
1865 fi
1866 rm -f conftest.err conftest.i conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1868 $as_echo "$ac_header_preproc" >&6; }
1869
1870 # So?  What about this header?
1871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1872   yes:no: )
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1874 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877     ;;
1878   no:yes:* )
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1880 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1882 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1884 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1886 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 ( $as_echo "## ------------------------------------------------------ ##
1890 ## Report this to png-mng-implement@lists.sourceforge.net ##
1891 ## ------------------------------------------------------ ##"
1892      ) | sed "s/^/$as_me: WARNING:     /" >&2
1893     ;;
1894 esac
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   eval "$3=\$ac_header_compiler"
1901 fi
1902 eval ac_res=\$$3
1903                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 fi
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_header_mongrel
1909
1910 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911 # -------------------------------------------
1912 # Tests whether TYPE exists after having included INCLUDES, setting cache
1913 # variable VAR accordingly.
1914 ac_fn_c_check_type ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   eval "$3=no"
1923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 int
1927 main ()
1928 {
1929 if (sizeof ($2))
1930          return 0;
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 int
1940 main ()
1941 {
1942 if (sizeof (($2)))
1943             return 0;
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949
1950 else
1951   eval "$3=yes"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_type
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1966
1967 It was created by libpng $as_me 1.6.0, which was
1968 generated by GNU Autoconf 2.69.  Invocation command line was
1969
1970   $ $0 $@
1971
1972 _ACEOF
1973 exec 5>>config.log
1974 {
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1979
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1988
1989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1996
1997 _ASUNAME
1998
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004     $as_echo "PATH: $as_dir"
2005   done
2006 IFS=$as_save_IFS
2007
2008 } >&5
2009
2010 cat >&5 <<_ACEOF
2011
2012
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2016
2017 _ACEOF
2018
2019
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2030 do
2031   for ac_arg
2032   do
2033     case $ac_arg in
2034     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036     | -silent | --silent | --silen | --sile | --sil)
2037       continue ;;
2038     *\'*)
2039       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040     esac
2041     case $ac_pass in
2042     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043     2)
2044       as_fn_append ac_configure_args1 " '$ac_arg'"
2045       if test $ac_must_keep_next = true; then
2046         ac_must_keep_next=false # Got value, back to normal.
2047       else
2048         case $ac_arg in
2049           *=* | --config-cache | -C | -disable-* | --disable-* \
2050           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052           | -with-* | --with-* | -without-* | --without-* | --x)
2053             case "$ac_configure_args0 " in
2054               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055             esac
2056             ;;
2057           -* ) ac_must_keep_next=true ;;
2058         esac
2059       fi
2060       as_fn_append ac_configure_args " '$ac_arg'"
2061       ;;
2062     esac
2063   done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2067
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log.  We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074   # Save into config.log some information that might help in debugging.
2075   {
2076     echo
2077
2078     $as_echo "## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##"
2081     echo
2082     # The following way of writing the cache mishandles newlines in values,
2083 (
2084   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085     eval ac_val=\$$ac_var
2086     case $ac_val in #(
2087     *${as_nl}*)
2088       case $ac_var in #(
2089       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091       esac
2092       case $ac_var in #(
2093       _ | IFS | as_nl) ;; #(
2094       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095       *) { eval $ac_var=; unset $ac_var;} ;;
2096       esac ;;
2097     esac
2098   done
2099   (set) 2>&1 |
2100     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101     *${as_nl}ac_space=\ *)
2102       sed -n \
2103         "s/'\''/'\''\\\\'\'''\''/g;
2104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105       ;; #(
2106     *)
2107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108       ;;
2109     esac |
2110     sort
2111 )
2112     echo
2113
2114     $as_echo "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2117     echo
2118     for ac_var in $ac_subst_vars
2119     do
2120       eval ac_val=\$$ac_var
2121       case $ac_val in
2122       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123       esac
2124       $as_echo "$ac_var='\''$ac_val'\''"
2125     done | sort
2126     echo
2127
2128     if test -n "$ac_subst_files"; then
2129       $as_echo "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2132       echo
2133       for ac_var in $ac_subst_files
2134       do
2135         eval ac_val=\$$ac_var
2136         case $ac_val in
2137         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138         esac
2139         $as_echo "$ac_var='\''$ac_val'\''"
2140       done | sort
2141       echo
2142     fi
2143
2144     if test -s confdefs.h; then
2145       $as_echo "## ----------- ##
2146 ## confdefs.h. ##
2147 ## ----------- ##"
2148       echo
2149       cat confdefs.h
2150       echo
2151     fi
2152     test "$ac_signal" != 0 &&
2153       $as_echo "$as_me: caught signal $ac_signal"
2154     $as_echo "$as_me: exit $exit_status"
2155   } >&5
2156   rm -f core *.core core.conftest.* &&
2157     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2158     exit $exit_status
2159 ' 0
2160 for ac_signal in 1 2 13 15; do
2161   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 done
2163 ac_signal=0
2164
2165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2166 rm -f -r conftest* confdefs.h
2167
2168 $as_echo "/* confdefs.h */" > confdefs.h
2169
2170 # Predefined preprocessor variables.
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_NAME "$PACKAGE_NAME"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_STRING "$PACKAGE_STRING"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_URL "$PACKAGE_URL"
2194 _ACEOF
2195
2196
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2199 ac_site_file1=NONE
2200 ac_site_file2=NONE
2201 if test -n "$CONFIG_SITE"; then
2202   # We do not want a PATH search for config.site.
2203   case $CONFIG_SITE in #((
2204     -*)  ac_site_file1=./$CONFIG_SITE;;
2205     */*) ac_site_file1=$CONFIG_SITE;;
2206     *)   ac_site_file1=./$CONFIG_SITE;;
2207   esac
2208 elif test "x$prefix" != xNONE; then
2209   ac_site_file1=$prefix/share/config.site
2210   ac_site_file2=$prefix/etc/config.site
2211 else
2212   ac_site_file1=$ac_default_prefix/share/config.site
2213   ac_site_file2=$ac_default_prefix/etc/config.site
2214 fi
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 do
2217   test "x$ac_site_file" = xNONE && continue
2218   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221     sed 's/^/| /' "$ac_site_file" >&5
2222     . "$ac_site_file" \
2223       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 as_fn_error $? "failed to load site script $ac_site_file
2226 See \`config.log' for more details" "$LINENO" 5; }
2227   fi
2228 done
2229
2230 if test -r "$cache_file"; then
2231   # Some versions of bash will fail to source /dev/null (special files
2232   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2233   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235 $as_echo "$as_me: loading cache $cache_file" >&6;}
2236     case $cache_file in
2237       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238       *)                      . "./$cache_file";;
2239     esac
2240   fi
2241 else
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244   >$cache_file
2245 fi
2246
2247 # Check that the precious variables saved in the cache have kept the same
2248 # value.
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252   eval ac_new_set=\$ac_env_${ac_var}_set
2253   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254   eval ac_new_val=\$ac_env_${ac_var}_value
2255   case $ac_old_set,$ac_new_set in
2256     set,)
2257       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259       ac_cache_corrupted=: ;;
2260     ,set)
2261       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263       ac_cache_corrupted=: ;;
2264     ,);;
2265     *)
2266       if test "x$ac_old_val" != "x$ac_new_val"; then
2267         # differences in whitespace do not lead to failure.
2268         ac_old_val_w=`echo x $ac_old_val`
2269         ac_new_val_w=`echo x $ac_new_val`
2270         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273           ac_cache_corrupted=:
2274         else
2275           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277           eval $ac_var=\$ac_old_val
2278         fi
2279         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2280 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2281         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2283       fi;;
2284   esac
2285   # Pass precious variables to config.status.
2286   if test "$ac_new_set" = set; then
2287     case $ac_new_val in
2288     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289     *) ac_arg=$ac_var=$ac_new_val ;;
2290     esac
2291     case " $ac_configure_args " in
2292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2293       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294     esac
2295   fi
2296 done
2297 if $ac_cache_corrupted; then
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 fi
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313
2314
2315
2316
2317 # libpng does not follow GNU file name conventions (hence 'foreign')
2318 # color-tests requires automake 1.11 or later
2319 # silent-rules requires automake 1.11 or later
2320 # dist-xz requires automake 1.11 or later
2321 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2322 am__api_version='1.13'
2323
2324 ac_aux_dir=
2325 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2326   if test -f "$ac_dir/install-sh"; then
2327     ac_aux_dir=$ac_dir
2328     ac_install_sh="$ac_aux_dir/install-sh -c"
2329     break
2330   elif test -f "$ac_dir/install.sh"; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/install.sh -c"
2333     break
2334   elif test -f "$ac_dir/shtool"; then
2335     ac_aux_dir=$ac_dir
2336     ac_install_sh="$ac_aux_dir/shtool install -c"
2337     break
2338   fi
2339 done
2340 if test -z "$ac_aux_dir"; then
2341   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342 fi
2343
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2351
2352
2353 # Find a good install program.  We prefer a C program (faster),
2354 # so one script is as good as another.  But avoid the broken or
2355 # incompatible versions:
2356 # SysV /etc/install, /usr/sbin/install
2357 # SunOS /usr/etc/install
2358 # IRIX /sbin/install
2359 # AIX /bin/install
2360 # AmigaOS /C/install, which installs bootblocks on floppy discs
2361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2364 # OS/2's system install, which has a completely different semantic
2365 # ./install, which can be erroneously created by make from ./install.sh.
2366 # Reject install programs that cannot install multiple files.
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2368 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2369 if test -z "$INSTALL"; then
2370 if ${ac_cv_path_install+:} false; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378     # Account for people who put trailing slashes in PATH elements.
2379 case $as_dir/ in #((
2380   ./ | .// | /[cC]/* | \
2381   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2382   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2383   /usr/ucb/* ) ;;
2384   *)
2385     # OSF1 and SCO ODT 3.0 have their own names for install.
2386     # Don't use installbsd from OSF since it installs stuff as root
2387     # by default.
2388     for ac_prog in ginstall scoinst install; do
2389       for ac_exec_ext in '' $ac_executable_extensions; do
2390         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2391           if test $ac_prog = install &&
2392             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393             # AIX install.  It has an incompatible calling convention.
2394             :
2395           elif test $ac_prog = install &&
2396             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397             # program-specific install script used by HP pwplus--don't use.
2398             :
2399           else
2400             rm -rf conftest.one conftest.two conftest.dir
2401             echo one > conftest.one
2402             echo two > conftest.two
2403             mkdir conftest.dir
2404             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2405               test -s conftest.one && test -s conftest.two &&
2406               test -s conftest.dir/conftest.one &&
2407               test -s conftest.dir/conftest.two
2408             then
2409               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2410               break 3
2411             fi
2412           fi
2413         fi
2414       done
2415     done
2416     ;;
2417 esac
2418
2419   done
2420 IFS=$as_save_IFS
2421
2422 rm -rf conftest.one conftest.two conftest.dir
2423
2424 fi
2425   if test "${ac_cv_path_install+set}" = set; then
2426     INSTALL=$ac_cv_path_install
2427   else
2428     # As a last resort, use the slow shell script.  Don't cache a
2429     # value for INSTALL within a source directory, because that will
2430     # break other packages using the cache if that directory is
2431     # removed, or if the value is a relative name.
2432     INSTALL=$ac_install_sh
2433   fi
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2436 $as_echo "$INSTALL" >&6; }
2437
2438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2439 # It thinks the first close brace ends the variable substitution.
2440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2441
2442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2443
2444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2445
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2447 $as_echo_n "checking whether build environment is sane... " >&6; }
2448 # Reject unsafe characters in $srcdir or the absolute working directory
2449 # name.  Accept space and tab only in the latter.
2450 am_lf='
2451 '
2452 case `pwd` in
2453   *[\\\"\#\$\&\'\`$am_lf]*)
2454     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2455 esac
2456 case $srcdir in
2457   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2458     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2459 esac
2460
2461 # Do 'set' in a subshell so we don't clobber the current shell's
2462 # arguments.  Must try -L first in case configure is actually a
2463 # symlink; some systems play weird games with the mod time of symlinks
2464 # (eg FreeBSD returns the mod time of the symlink's containing
2465 # directory).
2466 if (
2467    am_has_slept=no
2468    for am_try in 1 2; do
2469      echo "timestamp, slept: $am_has_slept" > conftest.file
2470      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2471      if test "$*" = "X"; then
2472         # -L didn't work.
2473         set X `ls -t "$srcdir/configure" conftest.file`
2474      fi
2475      if test "$*" != "X $srcdir/configure conftest.file" \
2476         && test "$*" != "X conftest.file $srcdir/configure"; then
2477
2478         # If neither matched, then we have a broken ls.  This can happen
2479         # if, for instance, CONFIG_SHELL is bash and it inherits a
2480         # broken ls alias from the environment.  This has actually
2481         # happened.  Such a system could not be considered "sane".
2482         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2483   alias in your environment" "$LINENO" 5
2484      fi
2485      if test "$2" = conftest.file || test $am_try -eq 2; then
2486        break
2487      fi
2488      # Just in case.
2489      sleep 1
2490      am_has_slept=yes
2491    done
2492    test "$2" = conftest.file
2493    )
2494 then
2495    # Ok.
2496    :
2497 else
2498    as_fn_error $? "newly created file is older than distributed files!
2499 Check your system clock" "$LINENO" 5
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502 $as_echo "yes" >&6; }
2503 # If we didn't sleep, we still need to ensure time stamps of config.status and
2504 # generated files are strictly newer.
2505 am_sleep_pid=
2506 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2507   ( sleep 1 ) &
2508   am_sleep_pid=$!
2509 fi
2510
2511 rm -f conftest.file
2512
2513 test "$program_prefix" != NONE &&
2514   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2515 # Use a double $ so make ignores it.
2516 test "$program_suffix" != NONE &&
2517   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2518 # Double any \ or $.
2519 # By default was `s,x,x', remove it if useless.
2520 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2521 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2522
2523 # expand $ac_aux_dir to an absolute path
2524 am_aux_dir=`cd $ac_aux_dir && pwd`
2525
2526 if test x"${MISSING+set}" != xset; then
2527   case $am_aux_dir in
2528   *\ * | *\     *)
2529     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2530   *)
2531     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2532   esac
2533 fi
2534 # Use eval to expand $SHELL
2535 if eval "$MISSING --is-lightweight"; then
2536   am_missing_run="$MISSING "
2537 else
2538   am_missing_run=
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2540 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2541 fi
2542
2543 if test x"${install_sh}" != xset; then
2544   case $am_aux_dir in
2545   *\ * | *\     *)
2546     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2547   *)
2548     install_sh="\${SHELL} $am_aux_dir/install-sh"
2549   esac
2550 fi
2551
2552 # Installed binaries are usually stripped using 'strip' when the user
2553 # run "make install-strip".  However 'strip' might not be the right
2554 # tool to use in cross-compilation environments, therefore Automake
2555 # will honor the 'STRIP' environment variable to overrule this program.
2556 if test "$cross_compiling" != no; then
2557   if test -n "$ac_tool_prefix"; then
2558   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}strip; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_STRIP+:} false; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   if test -n "$STRIP"; then
2566   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573     for ac_exec_ext in '' $ac_executable_extensions; do
2574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580   done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 STRIP=$ac_cv_prog_STRIP
2586 if test -n "$STRIP"; then
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2588 $as_echo "$STRIP" >&6; }
2589 else
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_STRIP"; then
2597   ac_ct_STRIP=$STRIP
2598   # Extract the first word of "strip", so it can be a program name with args.
2599 set dummy strip; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   if test -n "$ac_ct_STRIP"; then
2606   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     for ac_exec_ext in '' $ac_executable_extensions; do
2614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615     ac_cv_prog_ac_ct_STRIP="strip"
2616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620   done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2626 if test -n "$ac_ct_STRIP"; then
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2628 $as_echo "$ac_ct_STRIP" >&6; }
2629 else
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634   if test "x$ac_ct_STRIP" = x; then
2635     STRIP=":"
2636   else
2637     case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2642 esac
2643     STRIP=$ac_ct_STRIP
2644   fi
2645 else
2646   STRIP="$ac_cv_prog_STRIP"
2647 fi
2648
2649 fi
2650 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2653 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2654 if test -z "$MKDIR_P"; then
2655   if ${ac_cv_path_mkdir+:} false; then :
2656   $as_echo_n "(cached) " >&6
2657 else
2658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663     for ac_prog in mkdir gmkdir; do
2664          for ac_exec_ext in '' $ac_executable_extensions; do
2665            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2666            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2667              'mkdir (GNU coreutils) '* | \
2668              'mkdir (coreutils) '* | \
2669              'mkdir (fileutils) '4.1*)
2670                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2671                break 3;;
2672            esac
2673          done
2674        done
2675   done
2676 IFS=$as_save_IFS
2677
2678 fi
2679
2680   test -d ./--version && rmdir ./--version
2681   if test "${ac_cv_path_mkdir+set}" = set; then
2682     MKDIR_P="$ac_cv_path_mkdir -p"
2683   else
2684     # As a last resort, use the slow shell script.  Don't cache a
2685     # value for MKDIR_P within a source directory, because that will
2686     # break other packages using the cache if that directory is
2687     # removed, or if the value is a relative name.
2688     MKDIR_P="$ac_install_sh -d"
2689   fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2692 $as_echo "$MKDIR_P" >&6; }
2693
2694 for ac_prog in gawk mawk nawk awk
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_AWK+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$AWK"; then
2704   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713     ac_cv_prog_AWK="$ac_prog"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 AWK=$ac_cv_prog_AWK
2724 if test -n "$AWK"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726 $as_echo "$AWK" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$AWK" && break
2734 done
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2738 set x ${MAKE-make}
2739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   cat >conftest.make <<\_ACEOF
2744 SHELL = /bin/sh
2745 all:
2746         @echo '@@@%%%=$(MAKE)=@@@%%%'
2747 _ACEOF
2748 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2750   *@@@%%%=?*=@@@%%%*)
2751     eval ac_cv_prog_make_${ac_make}_set=yes;;
2752   *)
2753     eval ac_cv_prog_make_${ac_make}_set=no;;
2754 esac
2755 rm -f conftest.make
2756 fi
2757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760   SET_MAKE=
2761 else
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764   SET_MAKE="MAKE=${MAKE-make}"
2765 fi
2766
2767 rm -rf .tst 2>/dev/null
2768 mkdir .tst 2>/dev/null
2769 if test -d .tst; then
2770   am__leading_dot=.
2771 else
2772   am__leading_dot=_
2773 fi
2774 rmdir .tst 2>/dev/null
2775
2776 # Check whether --enable-silent-rules was given.
2777 if test "${enable_silent_rules+set}" = set; then :
2778   enableval=$enable_silent_rules;
2779 fi
2780
2781 case $enable_silent_rules in # (((
2782   yes) AM_DEFAULT_VERBOSITY=0;;
2783    no) AM_DEFAULT_VERBOSITY=1;;
2784     *) AM_DEFAULT_VERBOSITY=1;;
2785 esac
2786 am_make=${MAKE-make}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2788 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2789 if ${am_cv_make_support_nested_variables+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   if $as_echo 'TRUE=$(BAR$(V))
2793 BAR0=false
2794 BAR1=true
2795 V=1
2796 am__doit:
2797         @$(TRUE)
2798 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2799   am_cv_make_support_nested_variables=yes
2800 else
2801   am_cv_make_support_nested_variables=no
2802 fi
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2805 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2806 if test $am_cv_make_support_nested_variables = yes; then
2807     AM_V='$(V)'
2808   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2809 else
2810   AM_V=$AM_DEFAULT_VERBOSITY
2811   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2812 fi
2813 AM_BACKSLASH='\'
2814
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817   # is not polluted with repeated "-I."
2818   am__isrc=' -I$(srcdir)'
2819   # test to see if srcdir already configured
2820   if test -f $srcdir/config.status; then
2821     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2822   fi
2823 fi
2824
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827   if (cygpath --version) >/dev/null 2>/dev/null; then
2828     CYGPATH_W='cygpath -w'
2829   else
2830     CYGPATH_W=echo
2831   fi
2832 fi
2833
2834
2835 # Define the identity of the package.
2836  PACKAGE='libpng'
2837  VERSION='1.6.0'
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
2848
2849 # Some tools Automake needs.
2850
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865 # For better backward compatibility.  To be removed once Automake 1.9.x
2866 # dies out for good.  For more background, see:
2867 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2868 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2869 mkdir_p='$(MKDIR_P)'
2870
2871 # We need awk for the "check" target.  The system "awk" is bad on
2872 # some platforms.
2873 # Always define AMTAR for backward compatibility.  Yes, it's still used
2874 # in the wild :-(  We should find a proper way to deprecate it ...
2875 AMTAR='$${TAR-tar}'
2876
2877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2878
2879
2880
2881
2882
2883 # was:
2884 # AM_INIT_AUTOMAKE
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2887 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2888     # Check whether --enable-maintainer-mode was given.
2889 if test "${enable_maintainer_mode+set}" = set; then :
2890   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2891 else
2892   USE_MAINTAINER_MODE=no
2893 fi
2894
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2896 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2897    if test $USE_MAINTAINER_MODE = yes; then
2898   MAINTAINER_MODE_TRUE=
2899   MAINTAINER_MODE_FALSE='#'
2900 else
2901   MAINTAINER_MODE_TRUE='#'
2902   MAINTAINER_MODE_FALSE=
2903 fi
2904
2905   MAINT=$MAINTAINER_MODE_TRUE
2906
2907
2908
2909
2910 PNGLIB_VERSION=1.6.0
2911 PNGLIB_MAJOR=1
2912 PNGLIB_MINOR=6
2913 PNGLIB_RELEASE=0
2914
2915
2916
2917 ac_config_headers="$ac_config_headers config.h"
2918
2919
2920 # Checks for programs.
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$CC"; then
2941   ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_CC"; then
2972   ac_ct_CC=$CC
2973   # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$ac_ct_CC"; then
2981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_ac_ct_CC="gcc"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009   if test "x$ac_ct_CC" = x; then
3010     CC=""
3011   else
3012     case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018     CC=$ac_ct_CC
3019   fi
3020 else
3021   CC="$ac_cv_prog_CC"
3022 fi
3023
3024 if test -z "$CC"; then
3025           if test -n "$ac_tool_prefix"; then
3026     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_CC="${ac_tool_prefix}cc"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063   fi
3064 fi
3065 if test -z "$CC"; then
3066   # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076   ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082     for ac_exec_ext in '' $ac_executable_extensions; do
3083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085        ac_prog_rejected=yes
3086        continue
3087      fi
3088     ac_cv_prog_CC="cc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 if test $ac_prog_rejected = yes; then
3097   # We found a bogon in the path, so make sure we never use it.
3098   set dummy $ac_cv_prog_CC
3099   shift
3100   if test $# != 0; then
3101     # We chose a different compiler from the bogus one.
3102     # However, it has the same basename, so the bogon will be chosen
3103     # first if we set CC to just the basename; use the full file name.
3104     shift
3105     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106   fi
3107 fi
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 fi
3121 if test -z "$CC"; then
3122   if test -n "$ac_tool_prefix"; then
3123   for ac_prog in cl.exe
3124   do
3125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$CC"; then
3133   ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162     test -n "$CC" && break
3163   done
3164 fi
3165 if test -z "$CC"; then
3166   ac_ct_CC=$CC
3167   for ac_prog in cl.exe
3168 do
3169   # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   if test -n "$ac_ct_CC"; then
3177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184     for ac_exec_ext in '' $ac_executable_extensions; do
3185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186     ac_cv_prog_ac_ct_CC="$ac_prog"
3187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191   done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206   test -n "$ac_ct_CC" && break
3207 done
3208
3209   if test "x$ac_ct_CC" = x; then
3210     CC=""
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218     CC=$ac_ct_CC
3219   fi
3220 fi
3221
3222 fi
3223
3224
3225 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details" "$LINENO" 5; }
3229
3230 # Provide some information about the compiler.
3231 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3232 set X $ac_compile
3233 ac_compiler=$2
3234 for ac_option in --version -v -V -qversion; do
3235   { { ac_try="$ac_compiler $ac_option >&5"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3243   ac_status=$?
3244   if test -s conftest.err; then
3245     sed '10a\
3246 ... rest of stderr output deleted ...
3247          10q' conftest.err >conftest.er1
3248     cat conftest.er1 >&5
3249   fi
3250   rm -f conftest.er1 conftest.err
3251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252   test $ac_status = 0; }
3253 done
3254
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 ac_clean_files_save=$ac_clean_files
3267 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3268 # Try to create an executable without -o first, disregard a.out.
3269 # It will help us diagnose broken compilers, and finding out an intuition
3270 # of exeext.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3272 $as_echo_n "checking whether the C compiler works... " >&6; }
3273 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3274
3275 # The possible output files:
3276 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3277
3278 ac_rmfiles=
3279 for ac_file in $ac_files
3280 do
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284   esac
3285 done
3286 rm -f $ac_rmfiles
3287
3288 if { { ac_try="$ac_link_default"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295   (eval "$ac_link_default") 2>&5
3296   ac_status=$?
3297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298   test $ac_status = 0; }; then :
3299   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3300 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3301 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3302 # so that the user can short-circuit this test for compilers unknown to
3303 # Autoconf.
3304 for ac_file in $ac_files ''
3305 do
3306   test -f "$ac_file" || continue
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3309         ;;
3310     [ab].out )
3311         # We found the default executable, but exeext='' is most
3312         # certainly right.
3313         break;;
3314     *.* )
3315         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3316         then :; else
3317            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318         fi
3319         # We set ac_cv_exeext here because the later test for it is not
3320         # safe: cross compilers may not add the suffix if given an `-o'
3321         # argument, so we may need to know it at that point already.
3322         # Even if this section looks crufty: it has the advantage of
3323         # actually working.
3324         break;;
3325     * )
3326         break;;
3327   esac
3328 done
3329 test "$ac_cv_exeext" = no && ac_cv_exeext=
3330
3331 else
3332   ac_file=''
3333 fi
3334 if test -z "$ac_file"; then :
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error 77 "C compiler cannot create executables
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3349 $as_echo_n "checking for C compiler default output file name... " >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 ac_exeext=$ac_cv_exeext
3353
3354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355 ac_clean_files=$ac_clean_files_save
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3357 $as_echo_n "checking for suffix of executables... " >&6; }
3358 if { { ac_try="$ac_link"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365   (eval "$ac_link") 2>&5
3366   ac_status=$?
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }; then :
3369   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3370 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3371 # work properly (i.e., refer to `conftest.exe'), while it won't with
3372 # `rm'.
3373 for ac_file in conftest.exe conftest conftest.*; do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378           break;;
3379     * ) break;;
3380   esac
3381 done
3382 else
3383   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details" "$LINENO" 5; }
3387 fi
3388 rm -f conftest conftest$ac_cv_exeext
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3390 $as_echo "$ac_cv_exeext" >&6; }
3391
3392 rm -f conftest.$ac_ext
3393 EXEEXT=$ac_cv_exeext
3394 ac_exeext=$EXEEXT
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397 #include <stdio.h>
3398 int
3399 main ()
3400 {
3401 FILE *f = fopen ("conftest.out", "w");
3402  return ferror (f) || fclose (f) != 0;
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files="$ac_clean_files conftest.out"
3409 # Check that the compiler produces executables we can run.  If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 $as_echo_n "checking whether we are cross compiling... " >&6; }
3413 if test "$cross_compiling" != yes; then
3414   { { ac_try="$ac_link"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_link") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424   test $ac_status = 0; }
3425   if { ac_try='./conftest$ac_cv_exeext'
3426   { { case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432   (eval "$ac_try") 2>&5
3433   ac_status=$?
3434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435   test $ac_status = 0; }; }; then
3436     cross_compiling=no
3437   else
3438     if test "$cross_compiling" = maybe; then
3439         cross_compiling=yes
3440     else
3441         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot run C compiled programs.
3444 If you meant to cross compile, use \`--host'.
3445 See \`config.log' for more details" "$LINENO" 5; }
3446     fi
3447   fi
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450 $as_echo "$cross_compiling" >&6; }
3451
3452 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3453 ac_clean_files=$ac_clean_files_save
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if ${ac_cv_objext+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.o conftest.obj
3471 if { { ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478   (eval "$ac_compile") 2>&5
3479   ac_status=$?
3480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481   test $ac_status = 0; }; then :
3482   for ac_file in conftest.o conftest.obj conftest.*; do
3483   test -f "$ac_file" || continue;
3484   case $ac_file in
3485     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3486     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3487        break;;
3488   esac
3489 done
3490 else
3491   $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot compute suffix of object files: cannot compile
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 fi
3499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3502 $as_echo "$ac_cv_objext" >&6; }
3503 OBJEXT=$ac_cv_objext
3504 ac_objext=$OBJEXT
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3506 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3507 if ${ac_cv_c_compiler_gnu+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516 #ifndef __GNUC__
3517        choke me
3518 #endif
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525   ac_compiler_gnu=yes
3526 else
3527   ac_compiler_gnu=no
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536   GCC=yes
3537 else
3538   GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if ${ac_cv_prog_cc_g+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_save_c_werror_flag=$ac_c_werror_flag
3548    ac_c_werror_flag=yes
3549    ac_cv_prog_cc_g=no
3550    CFLAGS="-g"
3551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563   ac_cv_prog_cc_g=yes
3564 else
3565   CFLAGS=""
3566       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578
3579 else
3580   ac_c_werror_flag=$ac_save_c_werror_flag
3581          CFLAGS="-g"
3582          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584
3585 int
3586 main ()
3587 {
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594   ac_cv_prog_cc_g=yes
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601    ac_c_werror_flag=$ac_save_c_werror_flag
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3604 $as_echo "$ac_cv_prog_cc_g" >&6; }
3605 if test "$ac_test_CFLAGS" = set; then
3606   CFLAGS=$ac_save_CFLAGS
3607 elif test $ac_cv_prog_cc_g = yes; then
3608   if test "$GCC" = yes; then
3609     CFLAGS="-g -O2"
3610   else
3611     CFLAGS="-g"
3612   fi
3613 else
3614   if test "$GCC" = yes; then
3615     CFLAGS="-O2"
3616   else
3617     CFLAGS=
3618   fi
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3621 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3622 if ${ac_cv_prog_cc_c89+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   ac_cv_prog_cc_c89=no
3626 ac_save_CC=$CC
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629 #include <stdarg.h>
3630 #include <stdio.h>
3631 struct stat;
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636      char **p;
3637      int i;
3638 {
3639   return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643   char *s;
3644   va_list v;
3645   va_start (v,p);
3646   s = g (p, va_arg (v,int));
3647   va_end (v);
3648   return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652    function prototypes and stuff, but not '\xHH' hex character constants.
3653    These don't provoke an error unfortunately, instead are silently treated
3654    as 'x'.  The following induces an error, until -std is added to get
3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656    array size at least.  It's necessary to write '\x00'==0 to get something
3657    that's true only with -std.  */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661    inside strings and character constants.  */
3662 #define FOO(x) 'x'
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 int argc;
3670 char **argv;
3671 int
3672 main ()
3673 {
3674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 do
3682   CC="$ac_save_CC $ac_arg"
3683   if ac_fn_c_try_compile "$LINENO"; then :
3684   ac_cv_prog_cc_c89=$ac_arg
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext
3687   test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3691
3692 fi
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3695   x)
3696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3697 $as_echo "none needed" >&6; } ;;
3698   xno)
3699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3700 $as_echo "unsupported" >&6; } ;;
3701   *)
3702     CC="$CC $ac_cv_prog_cc_c89"
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3704 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707
3708 fi
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 DEPDIR="${am__leading_dot}deps"
3716
3717 ac_config_commands="$ac_config_commands depfiles"
3718
3719
3720 am_make=${MAKE-make}
3721 cat > confinc << 'END'
3722 am__doit:
3723         @echo this is the am__doit target
3724 .PHONY: am__doit
3725 END
3726 # If we don't find an include directive, just comment out the code.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3728 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3729 am__include="#"
3730 am__quote=
3731 _am_result=none
3732 # First try GNU make style include.
3733 echo "include confinc" > confmf
3734 # Ignore all kinds of additional output from 'make'.
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3737   am__include=include
3738   am__quote=
3739   _am_result=GNU
3740   ;;
3741 esac
3742 # Now try BSD make style include.
3743 if test "$am__include" = "#"; then
3744    echo '.include "confinc"' > confmf
3745    case `$am_make -s -f confmf 2> /dev/null` in #(
3746    *the\ am__doit\ target*)
3747      am__include=.include
3748      am__quote="\""
3749      _am_result=BSD
3750      ;;
3751    esac
3752 fi
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3756 $as_echo "$_am_result" >&6; }
3757 rm -f confinc confmf
3758
3759 # Check whether --enable-dependency-tracking was given.
3760 if test "${enable_dependency_tracking+set}" = set; then :
3761   enableval=$enable_dependency_tracking;
3762 fi
3763
3764 if test "x$enable_dependency_tracking" != xno; then
3765   am_depcomp="$ac_aux_dir/depcomp"
3766   AMDEPBACKSLASH='\'
3767   am__nodep='_no'
3768 fi
3769  if test "x$enable_dependency_tracking" != xno; then
3770   AMDEP_TRUE=
3771   AMDEP_FALSE='#'
3772 else
3773   AMDEP_TRUE='#'
3774   AMDEP_FALSE=
3775 fi
3776
3777
3778
3779 depcc="$CC"   am_compiler_list=
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787   # We make a subdir and do the tests there.  Otherwise we can end up
3788   # making bogus files that we don't know about and never remove.  For
3789   # instance it was reported that on HP-UX the gcc test will end up
3790   # making a dummy file named 'D' -- because '-MD' means "put the output
3791   # in D".
3792   rm -rf conftest.dir
3793   mkdir conftest.dir
3794   # Copy depcomp to subdir because otherwise we won't find it if we're
3795   # using a relative directory.
3796   cp "$am_depcomp" conftest.dir
3797   cd conftest.dir
3798   # We will build objects and dependencies in a subdirectory because
3799   # it helps to detect inapplicable dependency modes.  For instance
3800   # both Tru64's cc and ICC support -MD to output dependencies as a
3801   # side effect of compilation, but ICC will put the dependencies in
3802   # the current directory while Tru64 will put them in the object
3803   # directory.
3804   mkdir sub
3805
3806   am_cv_CC_dependencies_compiler_type=none
3807   if test "$am_compiler_list" = ""; then
3808      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809   fi
3810   am__universal=false
3811   case " $depcc " in #(
3812      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3813      esac
3814
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3827       # Solaris 10 /bin/sh.
3828       echo '/* dummy */' > sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3833     # mode.  It turns out that the SunPro C++ compiler does not properly
3834     # handle '-M -o', and we need to detect this.  Also, some Intel
3835     # versions had trouble with output in subdirs.
3836     am__obj=sub/conftest.${OBJEXT-o}
3837     am__minus_obj="-o $am__obj"
3838     case $depmode in
3839     gcc)
3840       # This depmode causes a compiler race in universal mode.
3841       test "$am__universal" = false || continue
3842       ;;
3843     nosideeffect)
3844       # After this tag, mechanisms are not by side-effect, so they'll
3845       # only be used when explicitly requested.
3846       if test "x$enable_dependency_tracking" = xyes; then
3847         continue
3848       else
3849         break
3850       fi
3851       ;;
3852     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3853       # This compiler won't grok '-c -o', but also, the minuso test has
3854       # not run yet.  These depmodes are late enough in the game, and
3855       # so weak that their functioning should not be impacted.
3856       am__obj=conftest.${OBJEXT-o}
3857       am__minus_obj=
3858       ;;
3859     none) break ;;
3860     esac
3861     if depmode=$depmode \
3862        source=sub/conftest.c object=$am__obj \
3863        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865          >/dev/null 2>conftest.err &&
3866        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870       # icc doesn't choke on unknown options, it will just issue warnings
3871       # or remarks (even with -Werror).  So we grep stderr for any message
3872       # that says an option was ignored or not supported.
3873       # When given -MP, icc 7.0 and 7.1 complain thusly:
3874       #   icc: Command line warning: ignoring option '-M'; no argument required
3875       # The diagnosis changed in icc 8.0:
3876       #   icc: Command line remark: option '-MP' not supported
3877       if (grep 'ignoring option' conftest.err ||
3878           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879         am_cv_CC_dependencies_compiler_type=$depmode
3880         break
3881       fi
3882     fi
3883   done
3884
3885   cd ..
3886   rm -rf conftest.dir
3887 else
3888   am_cv_CC_dependencies_compiler_type=none
3889 fi
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3895
3896  if
3897   test "x$enable_dependency_tracking" != xno \
3898   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899   am__fastdepCC_TRUE=
3900   am__fastdepCC_FALSE='#'
3901 else
3902   am__fastdepCC_TRUE='#'
3903   am__fastdepCC_FALSE=
3904 fi
3905
3906
3907 # By default we simply use the C compiler to build assembly code.
3908
3909 test "${CCAS+set}" = set || CCAS=$CC
3910 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3911
3912
3913
3914 depcc="$CCAS"   am_compiler_list=
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3917 $as_echo_n "checking dependency style of $depcc... " >&6; }
3918 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3919   $as_echo_n "(cached) " >&6
3920 else
3921   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3922   # We make a subdir and do the tests there.  Otherwise we can end up
3923   # making bogus files that we don't know about and never remove.  For
3924   # instance it was reported that on HP-UX the gcc test will end up
3925   # making a dummy file named 'D' -- because '-MD' means "put the output
3926   # in D".
3927   rm -rf conftest.dir
3928   mkdir conftest.dir
3929   # Copy depcomp to subdir because otherwise we won't find it if we're
3930   # using a relative directory.
3931   cp "$am_depcomp" conftest.dir
3932   cd conftest.dir
3933   # We will build objects and dependencies in a subdirectory because
3934   # it helps to detect inapplicable dependency modes.  For instance
3935   # both Tru64's cc and ICC support -MD to output dependencies as a
3936   # side effect of compilation, but ICC will put the dependencies in
3937   # the current directory while Tru64 will put them in the object
3938   # directory.
3939   mkdir sub
3940
3941   am_cv_CCAS_dependencies_compiler_type=none
3942   if test "$am_compiler_list" = ""; then
3943      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3944   fi
3945   am__universal=false
3946
3947
3948   for depmode in $am_compiler_list; do
3949     # Setup a source with many dependencies, because some compilers
3950     # like to wrap large dependency lists on column 80 (with \), and
3951     # we should not choose a depcomp mode which is confused by this.
3952     #
3953     # We need to recreate these files for each test, as the compiler may
3954     # overwrite some of them when testing with obscure command lines.
3955     # This happens at least with the AIX C compiler.
3956     : > sub/conftest.c
3957     for i in 1 2 3 4 5 6; do
3958       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3960       # Solaris 10 /bin/sh.
3961       echo '/* dummy */' > sub/conftst$i.h
3962     done
3963     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3966     # mode.  It turns out that the SunPro C++ compiler does not properly
3967     # handle '-M -o', and we need to detect this.  Also, some Intel
3968     # versions had trouble with output in subdirs.
3969     am__obj=sub/conftest.${OBJEXT-o}
3970     am__minus_obj="-o $am__obj"
3971     case $depmode in
3972     gcc)
3973       # This depmode causes a compiler race in universal mode.
3974       test "$am__universal" = false || continue
3975       ;;
3976     nosideeffect)
3977       # After this tag, mechanisms are not by side-effect, so they'll
3978       # only be used when explicitly requested.
3979       if test "x$enable_dependency_tracking" = xyes; then
3980         continue
3981       else
3982         break
3983       fi
3984       ;;
3985     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3986       # This compiler won't grok '-c -o', but also, the minuso test has
3987       # not run yet.  These depmodes are late enough in the game, and
3988       # so weak that their functioning should not be impacted.
3989       am__obj=conftest.${OBJEXT-o}
3990       am__minus_obj=
3991       ;;
3992     none) break ;;
3993     esac
3994     if depmode=$depmode \
3995        source=sub/conftest.c object=$am__obj \
3996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998          >/dev/null 2>conftest.err &&
3999        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003       # icc doesn't choke on unknown options, it will just issue warnings
4004       # or remarks (even with -Werror).  So we grep stderr for any message
4005       # that says an option was ignored or not supported.
4006       # When given -MP, icc 7.0 and 7.1 complain thusly:
4007       #   icc: Command line warning: ignoring option '-M'; no argument required
4008       # The diagnosis changed in icc 8.0:
4009       #   icc: Command line remark: option '-MP' not supported
4010       if (grep 'ignoring option' conftest.err ||
4011           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012         am_cv_CCAS_dependencies_compiler_type=$depmode
4013         break
4014       fi
4015     fi
4016   done
4017
4018   cd ..
4019   rm -rf conftest.dir
4020 else
4021   am_cv_CCAS_dependencies_compiler_type=none
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4026 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4027 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4028
4029  if
4030   test "x$enable_dependency_tracking" != xno \
4031   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4032   am__fastdepCCAS_TRUE=
4033   am__fastdepCCAS_FALSE='#'
4034 else
4035   am__fastdepCCAS_TRUE='#'
4036   am__fastdepCCAS_FALSE=
4037 fi
4038
4039
4040 # Make sure we can run config.sub.
4041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4042   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4045 $as_echo_n "checking build system type... " >&6; }
4046 if ${ac_cv_build+:} false; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   ac_build_alias=$build_alias
4050 test "x$ac_build_alias" = x &&
4051   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4052 test "x$ac_build_alias" = x &&
4053   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4055   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4056
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4059 $as_echo "$ac_cv_build" >&6; }
4060 case $ac_cv_build in
4061 *-*-*) ;;
4062 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4063 esac
4064 build=$ac_cv_build
4065 ac_save_IFS=$IFS; IFS='-'
4066 set x $ac_cv_build
4067 shift
4068 build_cpu=$1
4069 build_vendor=$2
4070 shift; shift
4071 # Remember, the first character of IFS is used to create $*,
4072 # except with old shells:
4073 build_os=$*
4074 IFS=$ac_save_IFS
4075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4076
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4079 $as_echo_n "checking host system type... " >&6; }
4080 if ${ac_cv_host+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   if test "x$host_alias" = x; then
4084   ac_cv_host=$ac_cv_build
4085 else
4086   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4087     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4088 fi
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4092 $as_echo "$ac_cv_host" >&6; }
4093 case $ac_cv_host in
4094 *-*-*) ;;
4095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4096 esac
4097 host=$ac_cv_host
4098 ac_save_IFS=$IFS; IFS='-'
4099 set x $ac_cv_host
4100 shift
4101 host_cpu=$1
4102 host_vendor=$2
4103 shift; shift
4104 # Remember, the first character of IFS is used to create $*,
4105 # except with old shells:
4106 host_os=$*
4107 IFS=$ac_save_IFS
4108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4109
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4113 if ${ac_cv_path_SED+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4117      for ac_i in 1 2 3 4 5 6 7; do
4118        ac_script="$ac_script$as_nl$ac_script"
4119      done
4120      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4121      { ac_script=; unset ac_script;}
4122      if test -z "$SED"; then
4123   ac_path_SED_found=false
4124   # Loop through the user's path and test for each of PROGNAME-LIST
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130     for ac_prog in sed gsed; do
4131     for ac_exec_ext in '' $ac_executable_extensions; do
4132       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4133       as_fn_executable_p "$ac_path_SED" || continue
4134 # Check for GNU ac_path_SED and select it if it is found.
4135   # Check for GNU $ac_path_SED
4136 case `"$ac_path_SED" --version 2>&1` in
4137 *GNU*)
4138   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4139 *)
4140   ac_count=0
4141   $as_echo_n 0123456789 >"conftest.in"
4142   while :
4143   do
4144     cat "conftest.in" "conftest.in" >"conftest.tmp"
4145     mv "conftest.tmp" "conftest.in"
4146     cp "conftest.in" "conftest.nl"
4147     $as_echo '' >> "conftest.nl"
4148     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4149     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4150     as_fn_arith $ac_count + 1 && ac_count=$as_val
4151     if test $ac_count -gt ${ac_path_SED_max-0}; then
4152       # Best one so far, save it but keep looking for a better one
4153       ac_cv_path_SED="$ac_path_SED"
4154       ac_path_SED_max=$ac_count
4155     fi
4156     # 10*(2^10) chars as input seems more than enough
4157     test $ac_count -gt 10 && break
4158   done
4159   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4160 esac
4161
4162       $ac_path_SED_found && break 3
4163     done
4164   done
4165   done
4166 IFS=$as_save_IFS
4167   if test -z "$ac_cv_path_SED"; then
4168     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4169   fi
4170 else
4171   ac_cv_path_SED=$SED
4172 fi
4173
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4176 $as_echo "$ac_cv_path_SED" >&6; }
4177  SED="$ac_cv_path_SED"
4178   rm -f conftest.sed
4179
4180 test -z "$SED" && SED=sed
4181 Xsed="$SED -e 1s/^X//"
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4195 if ${ac_cv_path_GREP+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -z "$GREP"; then
4199   ac_path_GREP_found=false
4200   # Loop through the user's path and test for each of PROGNAME-LIST
4201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_prog in grep ggrep; do
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209       as_fn_executable_p "$ac_path_GREP" || continue
4210 # Check for GNU ac_path_GREP and select it if it is found.
4211   # Check for GNU $ac_path_GREP
4212 case `"$ac_path_GREP" --version 2>&1` in
4213 *GNU*)
4214   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4215 *)
4216   ac_count=0
4217   $as_echo_n 0123456789 >"conftest.in"
4218   while :
4219   do
4220     cat "conftest.in" "conftest.in" >"conftest.tmp"
4221     mv "conftest.tmp" "conftest.in"
4222     cp "conftest.in" "conftest.nl"
4223     $as_echo 'GREP' >> "conftest.nl"
4224     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226     as_fn_arith $ac_count + 1 && ac_count=$as_val
4227     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228       # Best one so far, save it but keep looking for a better one
4229       ac_cv_path_GREP="$ac_path_GREP"
4230       ac_path_GREP_max=$ac_count
4231     fi
4232     # 10*(2^10) chars as input seems more than enough
4233     test $ac_count -gt 10 && break
4234   done
4235   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238       $ac_path_GREP_found && break 3
4239     done
4240   done
4241   done
4242 IFS=$as_save_IFS
4243   if test -z "$ac_cv_path_GREP"; then
4244     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245   fi
4246 else
4247   ac_cv_path_GREP=$GREP
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4252 $as_echo "$ac_cv_path_GREP" >&6; }
4253  GREP="$ac_cv_path_GREP"
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4257 $as_echo_n "checking for egrep... " >&6; }
4258 if ${ac_cv_path_EGREP+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262    then ac_cv_path_EGREP="$GREP -E"
4263    else
4264      if test -z "$EGREP"; then
4265   ac_path_EGREP_found=false
4266   # Loop through the user's path and test for each of PROGNAME-LIST
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272     for ac_prog in egrep; do
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4275       as_fn_executable_p "$ac_path_EGREP" || continue
4276 # Check for GNU ac_path_EGREP and select it if it is found.
4277   # Check for GNU $ac_path_EGREP
4278 case `"$ac_path_EGREP" --version 2>&1` in
4279 *GNU*)
4280   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4281 *)
4282   ac_count=0
4283   $as_echo_n 0123456789 >"conftest.in"
4284   while :
4285   do
4286     cat "conftest.in" "conftest.in" >"conftest.tmp"
4287     mv "conftest.tmp" "conftest.in"
4288     cp "conftest.in" "conftest.nl"
4289     $as_echo 'EGREP' >> "conftest.nl"
4290     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292     as_fn_arith $ac_count + 1 && ac_count=$as_val
4293     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4294       # Best one so far, save it but keep looking for a better one
4295       ac_cv_path_EGREP="$ac_path_EGREP"
4296       ac_path_EGREP_max=$ac_count
4297     fi
4298     # 10*(2^10) chars as input seems more than enough
4299     test $ac_count -gt 10 && break
4300   done
4301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4303
4304       $ac_path_EGREP_found && break 3
4305     done
4306   done
4307   done
4308 IFS=$as_save_IFS
4309   if test -z "$ac_cv_path_EGREP"; then
4310     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311   fi
4312 else
4313   ac_cv_path_EGREP=$EGREP
4314 fi
4315
4316    fi
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4319 $as_echo "$ac_cv_path_EGREP" >&6; }
4320  EGREP="$ac_cv_path_EGREP"
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4324 $as_echo_n "checking for fgrep... " >&6; }
4325 if ${ac_cv_path_FGREP+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4329    then ac_cv_path_FGREP="$GREP -F"
4330    else
4331      if test -z "$FGREP"; then
4332   ac_path_FGREP_found=false
4333   # Loop through the user's path and test for each of PROGNAME-LIST
4334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339     for ac_prog in fgrep; do
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4342       as_fn_executable_p "$ac_path_FGREP" || continue
4343 # Check for GNU ac_path_FGREP and select it if it is found.
4344   # Check for GNU $ac_path_FGREP
4345 case `"$ac_path_FGREP" --version 2>&1` in
4346 *GNU*)
4347   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4348 *)
4349   ac_count=0
4350   $as_echo_n 0123456789 >"conftest.in"
4351   while :
4352   do
4353     cat "conftest.in" "conftest.in" >"conftest.tmp"
4354     mv "conftest.tmp" "conftest.in"
4355     cp "conftest.in" "conftest.nl"
4356     $as_echo 'FGREP' >> "conftest.nl"
4357     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359     as_fn_arith $ac_count + 1 && ac_count=$as_val
4360     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4361       # Best one so far, save it but keep looking for a better one
4362       ac_cv_path_FGREP="$ac_path_FGREP"
4363       ac_path_FGREP_max=$ac_count
4364     fi
4365     # 10*(2^10) chars as input seems more than enough
4366     test $ac_count -gt 10 && break
4367   done
4368   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4370
4371       $ac_path_FGREP_found && break 3
4372     done
4373   done
4374   done
4375 IFS=$as_save_IFS
4376   if test -z "$ac_cv_path_FGREP"; then
4377     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378   fi
4379 else
4380   ac_cv_path_FGREP=$FGREP
4381 fi
4382
4383    fi
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4386 $as_echo "$ac_cv_path_FGREP" >&6; }
4387  FGREP="$ac_cv_path_FGREP"
4388
4389
4390 test -z "$GREP" && GREP=grep
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4409 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4413 $as_echo_n "checking how to print strings... " >&6; }
4414 # Test print first, because it will be a builtin if present.
4415 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4416    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4417   ECHO='print -r --'
4418 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4419   ECHO='printf %s\n'
4420 else
4421   # Use this function as a fallback that always works.
4422   func_fallback_echo ()
4423   {
4424     eval 'cat <<_LTECHO_EOF
4425 $1
4426 _LTECHO_EOF'
4427   }
4428   ECHO='func_fallback_echo'
4429 fi
4430
4431 # func_echo_all arg...
4432 # Invoke $ECHO with all args, space-separated.
4433 func_echo_all ()
4434 {
4435     $ECHO ""
4436 }
4437
4438 case "$ECHO" in
4439   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4440 $as_echo "printf" >&6; } ;;
4441   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4442 $as_echo "print -r" >&6; } ;;
4443   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4444 $as_echo "cat" >&6; } ;;
4445 esac
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 # Check whether --with-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then :
4464   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4465 else
4466   with_gnu_ld=no
4467 fi
4468
4469 ac_prog=ld
4470 if test "$GCC" = yes; then
4471   # Check if gcc -print-prog-name=ld gives a path.
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4473 $as_echo_n "checking for ld used by $CC... " >&6; }
4474   case $host in
4475   *-*-mingw*)
4476     # gcc leaves a trailing carriage return which upsets mingw
4477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4478   *)
4479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4480   esac
4481   case $ac_prog in
4482     # Accept absolute paths.
4483     [\\/]* | ?:[\\/]*)
4484       re_direlt='/[^/][^/]*/\.\./'
4485       # Canonicalize the pathname of ld
4486       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4487       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4488         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4489       done
4490       test -z "$LD" && LD="$ac_prog"
4491       ;;
4492   "")
4493     # If it fails, then pretend we aren't using GCC.
4494     ac_prog=ld
4495     ;;
4496   *)
4497     # If it is relative, then search for the first ld in PATH.
4498     with_gnu_ld=unknown
4499     ;;
4500   esac
4501 elif test "$with_gnu_ld" = yes; then
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4503 $as_echo_n "checking for GNU ld... " >&6; }
4504 else
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4506 $as_echo_n "checking for non-GNU ld... " >&6; }
4507 fi
4508 if ${lt_cv_path_LD+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if test -z "$LD"; then
4512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4513   for ac_dir in $PATH; do
4514     IFS="$lt_save_ifs"
4515     test -z "$ac_dir" && ac_dir=.
4516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517       lt_cv_path_LD="$ac_dir/$ac_prog"
4518       # Check to see if the program is GNU ld.  I'd rather use --version,
4519       # but apparently some variants of GNU ld only accept -v.
4520       # Break only if it was the GNU/non-GNU ld that we prefer.
4521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4522       *GNU* | *'with BFD'*)
4523         test "$with_gnu_ld" != no && break
4524         ;;
4525       *)
4526         test "$with_gnu_ld" != yes && break
4527         ;;
4528       esac
4529     fi
4530   done
4531   IFS="$lt_save_ifs"
4532 else
4533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4534 fi
4535 fi
4536
4537 LD="$lt_cv_path_LD"
4538 if test -n "$LD"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4540 $as_echo "$LD" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4548 if ${lt_cv_prog_gnu_ld+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4552 case `$LD -v 2>&1 </dev/null` in
4553 *GNU* | *'with BFD'*)
4554   lt_cv_prog_gnu_ld=yes
4555   ;;
4556 *)
4557   lt_cv_prog_gnu_ld=no
4558   ;;
4559 esac
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4563 with_gnu_ld=$lt_cv_prog_gnu_ld
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4579 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4580 # On Suns, sometimes $CPP names a directory.
4581 if test -n "$CPP" && test -d "$CPP"; then
4582   CPP=
4583 fi
4584 if test -z "$CPP"; then
4585   if ${ac_cv_prog_CPP+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588       # Double quotes because CPP needs to be expanded
4589     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4590     do
4591       ac_preproc_ok=false
4592 for ac_c_preproc_warn_flag in '' yes
4593 do
4594   # Use a header file that comes with gcc, so configuring glibc
4595   # with a fresh cross-compiler works.
4596   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597   # <limits.h> exists even on freestanding compilers.
4598   # On the NeXT, cc -E runs the code through the compiler's parser,
4599   # not just through cpp. "Syntax error" is here to catch this case.
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607                      Syntax error
4608 _ACEOF
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4610
4611 else
4612   # Broken: fails on valid input.
4613 continue
4614 fi
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4616
4617   # OK, works on sane cases.  Now check whether nonexistent headers
4618   # can be detected and how.
4619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h.  */
4621 #include <ac_nonexistent.h>
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624   # Broken: success on invalid input.
4625 continue
4626 else
4627   # Passes both tests.
4628 ac_preproc_ok=:
4629 break
4630 fi
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4632
4633 done
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then :
4637   break
4638 fi
4639
4640     done
4641     ac_cv_prog_CPP=$CPP
4642
4643 fi
4644   CPP=$ac_cv_prog_CPP
4645 else
4646   ac_cv_prog_CPP=$CPP
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4649 $as_echo "$CPP" >&6; }
4650 ac_preproc_ok=false
4651 for ac_c_preproc_warn_flag in '' yes
4652 do
4653   # Use a header file that comes with gcc, so configuring glibc
4654   # with a fresh cross-compiler works.
4655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4656   # <limits.h> exists even on freestanding compilers.
4657   # On the NeXT, cc -E runs the code through the compiler's parser,
4658   # not just through cpp. "Syntax error" is here to catch this case.
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #ifdef __STDC__
4662 # include <limits.h>
4663 #else
4664 # include <assert.h>
4665 #endif
4666                      Syntax error
4667 _ACEOF
4668 if ac_fn_c_try_cpp "$LINENO"; then :
4669
4670 else
4671   # Broken: fails on valid input.
4672 continue
4673 fi
4674 rm -f conftest.err conftest.i conftest.$ac_ext
4675
4676   # OK, works on sane cases.  Now check whether nonexistent headers
4677   # can be detected and how.
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680 #include <ac_nonexistent.h>
4681 _ACEOF
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683   # Broken: success on invalid input.
4684 continue
4685 else
4686   # Passes both tests.
4687 ac_preproc_ok=:
4688 break
4689 fi
4690 rm -f conftest.err conftest.i conftest.$ac_ext
4691
4692 done
4693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4694 rm -f conftest.i conftest.err conftest.$ac_ext
4695 if $ac_preproc_ok; then :
4696
4697 else
4698   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4701 See \`config.log' for more details" "$LINENO" 5; }
4702 fi
4703
4704 ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710 if test -n "$ac_tool_prefix"; then
4711   # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}sed; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_SED+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   if test -n "$SED"; then
4719   ac_cv_prog_SED="$SED" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726     for ac_exec_ext in '' $ac_executable_extensions; do
4727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728     ac_cv_prog_SED="${ac_tool_prefix}sed"
4729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733   done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 SED=$ac_cv_prog_SED
4739 if test -n "$SED"; then
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4741 $as_echo "$SED" >&6; }
4742 else
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 if test -z "$ac_cv_prog_SED"; then
4750   ac_ct_SED=$SED
4751   # Extract the first word of "sed", so it can be a program name with args.
4752 set dummy sed; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   if test -n "$ac_ct_SED"; then
4759   ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768     ac_cv_prog_ac_ct_SED="sed"
4769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773   done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4779 if test -n "$ac_ct_SED"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4781 $as_echo "$ac_ct_SED" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787   if test "x$ac_ct_SED" = x; then
4788     SED=":"
4789   else
4790     case $cross_compiling:$ac_tool_warned in
4791 yes:)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796     SED=$ac_ct_SED
4797   fi
4798 else
4799   SED="$ac_cv_prog_SED"
4800 fi
4801
4802 if test -n "$ac_tool_prefix"; then
4803   # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}awk; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_AWK+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   if test -n "$AWK"; then
4811   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818     for ac_exec_ext in '' $ac_executable_extensions; do
4819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820     ac_cv_prog_AWK="${ac_tool_prefix}awk"
4821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825   done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 AWK=$ac_cv_prog_AWK
4831 if test -n "$AWK"; then
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4833 $as_echo "$AWK" >&6; }
4834 else
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 fi
4841 if test -z "$ac_cv_prog_AWK"; then
4842   ac_ct_AWK=$AWK
4843   # Extract the first word of "awk", so it can be a program name with args.
4844 set dummy awk; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   if test -n "$ac_ct_AWK"; then
4851   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_prog_ac_ct_AWK="awk"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4871 if test -n "$ac_ct_AWK"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4873 $as_echo "$ac_ct_AWK" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879   if test "x$ac_ct_AWK" = x; then
4880     AWK=":"
4881   else
4882     case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888     AWK=$ac_ct_AWK
4889   fi
4890 else
4891   AWK="$ac_cv_prog_AWK"
4892 fi
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4896 $as_echo_n "checking whether ln -s works... " >&6; }
4897 LN_S=$as_ln_s
4898 if test "$LN_S" = "ln -s"; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4903 $as_echo "no, using $LN_S" >&6; }
4904 fi
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4908 set x ${MAKE-make}
4909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4910 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   cat >conftest.make <<\_ACEOF
4914 SHELL = /bin/sh
4915 all:
4916         @echo '@@@%%%=$(MAKE)=@@@%%%'
4917 _ACEOF
4918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4920   *@@@%%%=?*=@@@%%%*)
4921     eval ac_cv_prog_make_${ac_make}_set=yes;;
4922   *)
4923     eval ac_cv_prog_make_${ac_make}_set=no;;
4924 esac
4925 rm -f conftest.make
4926 fi
4927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929 $as_echo "yes" >&6; }
4930   SET_MAKE=
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934   SET_MAKE="MAKE=${MAKE-make}"
4935 fi
4936
4937
4938 case `pwd` in
4939   *\ * | *\     *)
4940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4942 esac
4943
4944
4945
4946 macro_version='2.4.2'
4947 macro_revision='1.3337'
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 ltmain="$ac_aux_dir/ltmain.sh"
4962
4963 # Backslashify metacharacters that are still active within
4964 # double-quoted strings.
4965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4966
4967 # Same as above, but do not quote variable references.
4968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4969
4970 # Sed substitution to delay expansion of an escaped shell variable in a
4971 # double_quote_subst'ed string.
4972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4973
4974 # Sed substitution to delay expansion of an escaped single quote.
4975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4976
4977 # Sed substitution to avoid accidental globbing in evaled expressions
4978 no_glob_subst='s/\*/\\\*/g'
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4981 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4982 if ${lt_cv_path_NM+:} false; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   if test -n "$NM"; then
4986   # Let the user override the test.
4987   lt_cv_path_NM="$NM"
4988 else
4989   lt_nm_to_check="${ac_tool_prefix}nm"
4990   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4991     lt_nm_to_check="$lt_nm_to_check nm"
4992   fi
4993   for lt_tmp_nm in $lt_nm_to_check; do
4994     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4995     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4996       IFS="$lt_save_ifs"
4997       test -z "$ac_dir" && ac_dir=.
4998       tmp_nm="$ac_dir/$lt_tmp_nm"
4999       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5000         # Check to see if the nm accepts a BSD-compat flag.
5001         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002         #   nm: unknown option "B" ignored
5003         # Tru64's nm complains that /dev/null is an invalid object file
5004         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5005         */dev/null* | *'Invalid file or object type'*)
5006           lt_cv_path_NM="$tmp_nm -B"
5007           break
5008           ;;
5009         *)
5010           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5011           */dev/null*)
5012             lt_cv_path_NM="$tmp_nm -p"
5013             break
5014             ;;
5015           *)
5016             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5017             continue # so that we can try to find one that supports BSD flags
5018             ;;
5019           esac
5020           ;;
5021         esac
5022       fi
5023     done
5024     IFS="$lt_save_ifs"
5025   done
5026   : ${lt_cv_path_NM=no}
5027 fi
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5030 $as_echo "$lt_cv_path_NM" >&6; }
5031 if test "$lt_cv_path_NM" != "no"; then
5032   NM="$lt_cv_path_NM"
5033 else
5034   # Didn't find any BSD compatible name lister, look for dumpbin.
5035   if test -n "$DUMPBIN"; then :
5036     # Let the user override the test.
5037   else
5038     if test -n "$ac_tool_prefix"; then
5039   for ac_prog in dumpbin "link -dump"
5040   do
5041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_DUMPBIN+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   if test -n "$DUMPBIN"; then
5049   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063   done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 DUMPBIN=$ac_cv_prog_DUMPBIN
5069 if test -n "$DUMPBIN"; then
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5071 $as_echo "$DUMPBIN" >&6; }
5072 else
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078     test -n "$DUMPBIN" && break
5079   done
5080 fi
5081 if test -z "$DUMPBIN"; then
5082   ac_ct_DUMPBIN=$DUMPBIN
5083   for ac_prog in dumpbin "link -dump"
5084 do
5085   # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if test -n "$ac_ct_DUMPBIN"; then
5093   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107   done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5113 if test -n "$ac_ct_DUMPBIN"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5115 $as_echo "$ac_ct_DUMPBIN" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122   test -n "$ac_ct_DUMPBIN" && break
5123 done
5124
5125   if test "x$ac_ct_DUMPBIN" = x; then
5126     DUMPBIN=":"
5127   else
5128     case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134     DUMPBIN=$ac_ct_DUMPBIN
5135   fi
5136 fi
5137
5138     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5139     *COFF*)
5140       DUMPBIN="$DUMPBIN -symbols"
5141       ;;
5142     *)
5143       DUMPBIN=:
5144       ;;
5145     esac
5146   fi
5147
5148   if test "$DUMPBIN" != ":"; then
5149     NM="$DUMPBIN"
5150   fi
5151 fi
5152 test -z "$NM" && NM=nm
5153
5154
5155
5156
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5160 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5161 if ${lt_cv_nm_interface+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   lt_cv_nm_interface="BSD nm"
5165   echo "int some_variable = 0;" > conftest.$ac_ext
5166   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5167   (eval "$ac_compile" 2>conftest.err)
5168   cat conftest.err >&5
5169   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5170   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5171   cat conftest.err >&5
5172   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5173   cat conftest.out >&5
5174   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5175     lt_cv_nm_interface="MS dumpbin"
5176   fi
5177   rm -f conftest*
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5180 $as_echo "$lt_cv_nm_interface" >&6; }
5181
5182 # find the maximum length of command line arguments
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5184 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5185 if ${lt_cv_sys_max_cmd_len+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188     i=0
5189   teststring="ABCD"
5190
5191   case $build_os in
5192   msdosdjgpp*)
5193     # On DJGPP, this test can blow up pretty badly due to problems in libc
5194     # (any single argument exceeding 2000 bytes causes a buffer overrun
5195     # during glob expansion).  Even if it were fixed, the result of this
5196     # check would be larger than it should be.
5197     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5198     ;;
5199
5200   gnu*)
5201     # Under GNU Hurd, this test is not required because there is
5202     # no limit to the length of command line arguments.
5203     # Libtool will interpret -1 as no limit whatsoever
5204     lt_cv_sys_max_cmd_len=-1;
5205     ;;
5206
5207   cygwin* | mingw* | cegcc*)
5208     # On Win9x/ME, this test blows up -- it succeeds, but takes
5209     # about 5 minutes as the teststring grows exponentially.
5210     # Worse, since 9x/ME are not pre-emptively multitasking,
5211     # you end up with a "frozen" computer, even though with patience
5212     # the test eventually succeeds (with a max line length of 256k).
5213     # Instead, let's just punt: use the minimum linelength reported by
5214     # all of the supported platforms: 8192 (on NT/2K/XP).
5215     lt_cv_sys_max_cmd_len=8192;
5216     ;;
5217
5218   mint*)
5219     # On MiNT this can take a long time and run out of memory.
5220     lt_cv_sys_max_cmd_len=8192;
5221     ;;
5222
5223   amigaos*)
5224     # On AmigaOS with pdksh, this test takes hours, literally.
5225     # So we just punt and use a minimum line length of 8192.
5226     lt_cv_sys_max_cmd_len=8192;
5227     ;;
5228
5229   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5230     # This has been around since 386BSD, at least.  Likely further.
5231     if test -x /sbin/sysctl; then
5232       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5233     elif test -x /usr/sbin/sysctl; then
5234       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5235     else
5236       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5237     fi
5238     # And add a safety zone
5239     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5240     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5241     ;;
5242
5243   interix*)
5244     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5245     lt_cv_sys_max_cmd_len=196608
5246     ;;
5247
5248   os2*)
5249     # The test takes a long time on OS/2.
5250     lt_cv_sys_max_cmd_len=8192
5251     ;;
5252
5253   osf*)
5254     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5255     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5256     # nice to cause kernel panics so lets avoid the loop below.
5257     # First set a reasonable default.
5258     lt_cv_sys_max_cmd_len=16384
5259     #
5260     if test -x /sbin/sysconfig; then
5261       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5262         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5263       esac
5264     fi
5265     ;;
5266   sco3.2v5*)
5267     lt_cv_sys_max_cmd_len=102400
5268     ;;
5269   sysv5* | sco5v6* | sysv4.2uw2*)
5270     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5271     if test -n "$kargmax"; then
5272       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5273     else
5274       lt_cv_sys_max_cmd_len=32768
5275     fi
5276     ;;
5277   *)
5278     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5279     if test -n "$lt_cv_sys_max_cmd_len"; then
5280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282     else
5283       # Make teststring a little bigger before we do anything with it.
5284       # a 1K string should be a reasonable start.
5285       for i in 1 2 3 4 5 6 7 8 ; do
5286         teststring=$teststring$teststring
5287       done
5288       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5289       # If test is not a shell built-in, we'll probably end up computing a
5290       # maximum length that is only half of the actual maximum length, but
5291       # we can't tell.
5292       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5293                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5294               test $i != 17 # 1/2 MB should be enough
5295       do
5296         i=`expr $i + 1`
5297         teststring=$teststring$teststring
5298       done
5299       # Only check the string length outside the loop.
5300       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5301       teststring=
5302       # Add a significant safety factor because C++ compilers can tack on
5303       # massive amounts of additional arguments before passing them to the
5304       # linker.  It appears as though 1/2 is a usable value.
5305       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5306     fi
5307     ;;
5308   esac
5309
5310 fi
5311
5312 if test -n $lt_cv_sys_max_cmd_len ; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5317 $as_echo "none" >&6; }
5318 fi
5319 max_cmd_len=$lt_cv_sys_max_cmd_len
5320
5321
5322
5323
5324
5325
5326 : ${CP="cp -f"}
5327 : ${MV="mv -f"}
5328 : ${RM="rm -f"}
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5332 # Try some XSI features
5333 xsi_shell=no
5334 ( _lt_dummy="a/b/c"
5335   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5336       = c,a/b,b/c, \
5337     && eval 'test $(( 1 + 1 )) -eq 2 \
5338     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5339   && xsi_shell=yes
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5341 $as_echo "$xsi_shell" >&6; }
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5345 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5346 lt_shell_append=no
5347 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5348     >/dev/null 2>&1 \
5349   && lt_shell_append=yes
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5351 $as_echo "$lt_shell_append" >&6; }
5352
5353
5354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5355   lt_unset=unset
5356 else
5357   lt_unset=false
5358 fi
5359
5360
5361
5362
5363
5364 # test EBCDIC or ASCII
5365 case `echo X|tr X '\101'` in
5366  A) # ASCII based system
5367     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5368   lt_SP2NL='tr \040 \012'
5369   lt_NL2SP='tr \015\012 \040\040'
5370   ;;
5371  *) # EBCDIC based system
5372   lt_SP2NL='tr \100 \n'
5373   lt_NL2SP='tr \r\n \100\100'
5374   ;;
5375 esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5386 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5387 if ${lt_cv_to_host_file_cmd+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $host in
5391   *-*-mingw* )
5392     case $build in
5393       *-*-mingw* ) # actually msys
5394         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5395         ;;
5396       *-*-cygwin* )
5397         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5398         ;;
5399       * ) # otherwise, assume *nix
5400         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5401         ;;
5402     esac
5403     ;;
5404   *-*-cygwin* )
5405     case $build in
5406       *-*-mingw* ) # actually msys
5407         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5408         ;;
5409       *-*-cygwin* )
5410         lt_cv_to_host_file_cmd=func_convert_file_noop
5411         ;;
5412       * ) # otherwise, assume *nix
5413         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5414         ;;
5415     esac
5416     ;;
5417   * ) # unhandled hosts (and "normal" native builds)
5418     lt_cv_to_host_file_cmd=func_convert_file_noop
5419     ;;
5420 esac
5421
5422 fi
5423
5424 to_host_file_cmd=$lt_cv_to_host_file_cmd
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5426 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5427
5428
5429
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5433 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5434 if ${lt_cv_to_tool_file_cmd+:} false; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   #assume ordinary cross tools, or native build.
5438 lt_cv_to_tool_file_cmd=func_convert_file_noop
5439 case $host in
5440   *-*-mingw* )
5441     case $build in
5442       *-*-mingw* ) # actually msys
5443         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5444         ;;
5445     esac
5446     ;;
5447 esac
5448
5449 fi
5450
5451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5453 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5460 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5461 if ${lt_cv_ld_reload_flag+:} false; then :
5462   $as_echo_n "(cached) " >&6
5463 else
5464   lt_cv_ld_reload_flag='-r'
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5468 reload_flag=$lt_cv_ld_reload_flag
5469 case $reload_flag in
5470 "" | " "*) ;;
5471 *) reload_flag=" $reload_flag" ;;
5472 esac
5473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5474 case $host_os in
5475   cygwin* | mingw* | pw32* | cegcc*)
5476     if test "$GCC" != yes; then
5477       reload_cmds=false
5478     fi
5479     ;;
5480   darwin*)
5481     if test "$GCC" = yes; then
5482       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5483     else
5484       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5485     fi
5486     ;;
5487 esac
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 if test -n "$ac_tool_prefix"; then
5498   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$OBJDUMP"; then
5506   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520   done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 fi
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537   ac_ct_OBJDUMP=$OBJDUMP
5538   # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$ac_ct_OBJDUMP"; then
5546   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574   if test "x$ac_ct_OBJDUMP" = x; then
5575     OBJDUMP="false"
5576   else
5577     case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583     OBJDUMP=$ac_ct_OBJDUMP
5584   fi
5585 else
5586   OBJDUMP="$ac_cv_prog_OBJDUMP"
5587 fi
5588
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5590
5591
5592
5593
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5597 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5598 if ${lt_cv_deplibs_check_method+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   lt_cv_file_magic_cmd='$MAGIC_CMD'
5602 lt_cv_file_magic_test_file=
5603 lt_cv_deplibs_check_method='unknown'
5604 # Need to set the preceding variable on all platforms that support
5605 # interlibrary dependencies.
5606 # 'none' -- dependencies not supported.
5607 # `unknown' -- same as none, but documents that we really don't know.
5608 # 'pass_all' -- all dependencies passed with no checks.
5609 # 'test_compile' -- check by making test program.
5610 # 'file_magic [[regex]]' -- check by looking for files in library path
5611 # which responds to the $file_magic_cmd with a given extended regex.
5612 # If you have `file' or equivalent on your system and you're not sure
5613 # whether `pass_all' will *always* work, you probably want this one.
5614
5615 case $host_os in
5616 aix[4-9]*)
5617   lt_cv_deplibs_check_method=pass_all
5618   ;;
5619
5620 beos*)
5621   lt_cv_deplibs_check_method=pass_all
5622   ;;
5623
5624 bsdi[45]*)
5625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5626   lt_cv_file_magic_cmd='/usr/bin/file -L'
5627   lt_cv_file_magic_test_file=/shlib/libc.so
5628   ;;
5629
5630 cygwin*)
5631   # func_win32_libid is a shell function defined in ltmain.sh
5632   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5633   lt_cv_file_magic_cmd='func_win32_libid'
5634   ;;
5635
5636 mingw* | pw32*)
5637   # Base MSYS/MinGW do not provide the 'file' command needed by
5638   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5639   # unless we find 'file', for example because we are cross-compiling.
5640   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5641   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5642     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5643     lt_cv_file_magic_cmd='func_win32_libid'
5644   else
5645     # Keep this pattern in sync with the one in func_win32_libid.
5646     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5647     lt_cv_file_magic_cmd='$OBJDUMP -f'
5648   fi
5649   ;;
5650
5651 cegcc*)
5652   # use the weaker test based on 'objdump'. See mingw*.
5653   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5654   lt_cv_file_magic_cmd='$OBJDUMP -f'
5655   ;;
5656
5657 darwin* | rhapsody*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660
5661 freebsd* | dragonfly*)
5662   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5663     case $host_cpu in
5664     i*86 )
5665       # Not sure whether the presence of OpenBSD here was a mistake.
5666       # Let's accept both of them until this is cleared up.
5667       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5668       lt_cv_file_magic_cmd=/usr/bin/file
5669       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5670       ;;
5671     esac
5672   else
5673     lt_cv_deplibs_check_method=pass_all
5674   fi
5675   ;;
5676
5677 gnu*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 haiku*)
5682   lt_cv_deplibs_check_method=pass_all
5683   ;;
5684
5685 hpux10.20* | hpux11*)
5686   lt_cv_file_magic_cmd=/usr/bin/file
5687   case $host_cpu in
5688   ia64*)
5689     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5690     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5691     ;;
5692   hppa*64*)
5693     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]'
5694     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5695     ;;
5696   *)
5697     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5698     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5699     ;;
5700   esac
5701   ;;
5702
5703 interix[3-9]*)
5704   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5705   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5706   ;;
5707
5708 irix5* | irix6* | nonstopux*)
5709   case $LD in
5710   *-32|*"-32 ") libmagic=32-bit;;
5711   *-n32|*"-n32 ") libmagic=N32;;
5712   *-64|*"-64 ") libmagic=64-bit;;
5713   *) libmagic=never-match;;
5714   esac
5715   lt_cv_deplibs_check_method=pass_all
5716   ;;
5717
5718 # This must be glibc/ELF.
5719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722
5723 netbsd*)
5724   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5725     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5726   else
5727     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5728   fi
5729   ;;
5730
5731 newos6*)
5732   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5733   lt_cv_file_magic_cmd=/usr/bin/file
5734   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5735   ;;
5736
5737 *nto* | *qnx*)
5738   lt_cv_deplibs_check_method=pass_all
5739   ;;
5740
5741 openbsd*)
5742   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5743     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5744   else
5745     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5746   fi
5747   ;;
5748
5749 osf3* | osf4* | osf5*)
5750   lt_cv_deplibs_check_method=pass_all
5751   ;;
5752
5753 rdos*)
5754   lt_cv_deplibs_check_method=pass_all
5755   ;;
5756
5757 solaris*)
5758   lt_cv_deplibs_check_method=pass_all
5759   ;;
5760
5761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5762   lt_cv_deplibs_check_method=pass_all
5763   ;;
5764
5765 sysv4 | sysv4.3*)
5766   case $host_vendor in
5767   motorola)
5768     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]'
5769     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5770     ;;
5771   ncr)
5772     lt_cv_deplibs_check_method=pass_all
5773     ;;
5774   sequent)
5775     lt_cv_file_magic_cmd='/bin/file'
5776     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5777     ;;
5778   sni)
5779     lt_cv_file_magic_cmd='/bin/file'
5780     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5781     lt_cv_file_magic_test_file=/lib/libc.so
5782     ;;
5783   siemens)
5784     lt_cv_deplibs_check_method=pass_all
5785     ;;
5786   pc)
5787     lt_cv_deplibs_check_method=pass_all
5788     ;;
5789   esac
5790   ;;
5791
5792 tpf*)
5793   lt_cv_deplibs_check_method=pass_all
5794   ;;
5795 esac
5796
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5799 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5800
5801 file_magic_glob=
5802 want_nocaseglob=no
5803 if test "$build" = "$host"; then
5804   case $host_os in
5805   mingw* | pw32*)
5806     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5807       want_nocaseglob=yes
5808     else
5809       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5810     fi
5811     ;;
5812   esac
5813 fi
5814
5815 file_magic_cmd=$lt_cv_file_magic_cmd
5816 deplibs_check_method=$lt_cv_deplibs_check_method
5817 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 if test -n "$ac_tool_prefix"; then
5841   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_DLLTOOL+:} false; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   if test -n "$DLLTOOL"; then
5849   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 DLLTOOL=$ac_cv_prog_DLLTOOL
5869 if test -n "$DLLTOOL"; then
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5871 $as_echo "$DLLTOOL" >&6; }
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_DLLTOOL"; then
5880   ac_ct_DLLTOOL=$DLLTOOL
5881   # Extract the first word of "dlltool", so it can be a program name with args.
5882 set dummy dlltool; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test -n "$ac_ct_DLLTOOL"; then
5889   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5909 if test -n "$ac_ct_DLLTOOL"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5911 $as_echo "$ac_ct_DLLTOOL" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917   if test "x$ac_ct_DLLTOOL" = x; then
5918     DLLTOOL="false"
5919   else
5920     case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926     DLLTOOL=$ac_ct_DLLTOOL
5927   fi
5928 else
5929   DLLTOOL="$ac_cv_prog_DLLTOOL"
5930 fi
5931
5932 test -z "$DLLTOOL" && DLLTOOL=dlltool
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5941 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5942 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   lt_cv_sharedlib_from_linklib_cmd='unknown'
5946
5947 case $host_os in
5948 cygwin* | mingw* | pw32* | cegcc*)
5949   # two different shell functions defined in ltmain.sh
5950   # decide which to use based on capabilities of $DLLTOOL
5951   case `$DLLTOOL --help 2>&1` in
5952   *--identify-strict*)
5953     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5954     ;;
5955   *)
5956     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5957     ;;
5958   esac
5959   ;;
5960 *)
5961   # fallback: assume linklib IS sharedlib
5962   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5963   ;;
5964 esac
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5968 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5969 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5970 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5971
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980   for ac_prog in ar
5981   do
5982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_AR+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   if test -n "$AR"; then
5990   ac_cv_prog_AR="$AR" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 AR=$ac_cv_prog_AR
6010 if test -n "$AR"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012 $as_echo "$AR" >&6; }
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019     test -n "$AR" && break
6020   done
6021 fi
6022 if test -z "$AR"; then
6023   ac_ct_AR=$AR
6024   for ac_prog in ar
6025 do
6026   # Extract the first word of "$ac_prog", so it can be a program name with args.
6027 set dummy $ac_prog; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033   if test -n "$ac_ct_AR"; then
6034   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041     for ac_exec_ext in '' $ac_executable_extensions; do
6042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043     ac_cv_prog_ac_ct_AR="$ac_prog"
6044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048   done
6049 IFS=$as_save_IFS
6050
6051 fi
6052 fi
6053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6054 if test -n "$ac_ct_AR"; then
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6056 $as_echo "$ac_ct_AR" >&6; }
6057 else
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061
6062
6063   test -n "$ac_ct_AR" && break
6064 done
6065
6066   if test "x$ac_ct_AR" = x; then
6067     AR="false"
6068   else
6069     case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075     AR=$ac_ct_AR
6076   fi
6077 fi
6078
6079 : ${AR=ar}
6080 : ${AR_FLAGS=cru}
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6093 $as_echo_n "checking for archiver @FILE support... " >&6; }
6094 if ${lt_cv_ar_at_file+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   lt_cv_ar_at_file=no
6098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h.  */
6100
6101 int
6102 main ()
6103 {
6104
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110   echo conftest.$ac_objext > conftest.lst
6111       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6112       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6113   (eval $lt_ar_try) 2>&5
6114   ac_status=$?
6115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116   test $ac_status = 0; }
6117       if test "$ac_status" -eq 0; then
6118         # Ensure the archiver fails upon bogus file names.
6119         rm -f conftest.$ac_objext libconftest.a
6120         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6121   (eval $lt_ar_try) 2>&5
6122   ac_status=$?
6123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124   test $ac_status = 0; }
6125         if test "$ac_status" -ne 0; then
6126           lt_cv_ar_at_file=@
6127         fi
6128       fi
6129       rm -f conftest.* libconftest.a
6130
6131 fi
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6136 $as_echo "$lt_cv_ar_at_file" >&6; }
6137
6138 if test "x$lt_cv_ar_at_file" = xno; then
6139   archiver_list_spec=
6140 else
6141   archiver_list_spec=$lt_cv_ar_at_file
6142 fi
6143
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_STRIP+:} false; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   if test -n "$STRIP"; then
6159   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_STRIP"; then
6190   ac_ct_STRIP=$STRIP
6191   # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$ac_ct_STRIP"; then
6199   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208     ac_cv_prog_ac_ct_STRIP="strip"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227   if test "x$ac_ct_STRIP" = x; then
6228     STRIP=":"
6229   else
6230     case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     STRIP=$ac_ct_STRIP
6237   fi
6238 else
6239   STRIP="$ac_cv_prog_STRIP"
6240 fi
6241
6242 test -z "$STRIP" && STRIP=:
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_RANLIB+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$RANLIB"; then
6258   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289   ac_ct_RANLIB=$RANLIB
6290   # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$ac_ct_RANLIB"; then
6298   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307     ac_cv_prog_ac_ct_RANLIB="ranlib"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326   if test "x$ac_ct_RANLIB" = x; then
6327     RANLIB=":"
6328   else
6329     case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     RANLIB=$ac_ct_RANLIB
6336   fi
6337 else
6338   RANLIB="$ac_cv_prog_RANLIB"
6339 fi
6340
6341 test -z "$RANLIB" && RANLIB=:
6342
6343
6344
6345
6346
6347
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6352
6353 if test -n "$RANLIB"; then
6354   case $host_os in
6355   openbsd*)
6356     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6357     ;;
6358   *)
6359     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6360     ;;
6361   esac
6362   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6363 fi
6364
6365 case $host_os in
6366   darwin*)
6367     lock_old_archive_extraction=yes ;;
6368   *)
6369     lock_old_archive_extraction=no ;;
6370 esac
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # If no C compiler was specified, use CC.
6411 LTCC=${LTCC-"$CC"}
6412
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6415
6416 # Allow CC to be a program name with arguments.
6417 compiler=$CC
6418
6419
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6429
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6432
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6435
6436 # Define system-specific variables.
6437 case $host_os in
6438 aix*)
6439   symcode='[BCDT]'
6440   ;;
6441 cygwin* | mingw* | pw32* | cegcc*)
6442   symcode='[ABCDGISTW]'
6443   ;;
6444 hpux*)
6445   if test "$host_cpu" = ia64; then
6446     symcode='[ABCDEGRST]'
6447   fi
6448   ;;
6449 irix* | nonstopux*)
6450   symcode='[BCDEGRST]'
6451   ;;
6452 osf*)
6453   symcode='[BCDEGQRST]'
6454   ;;
6455 solaris*)
6456   symcode='[BDRT]'
6457   ;;
6458 sco3.2v5*)
6459   symcode='[DT]'
6460   ;;
6461 sysv4.2uw2*)
6462   symcode='[DT]'
6463   ;;
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465   symcode='[ABDT]'
6466   ;;
6467 sysv4)
6468   symcode='[DFNSTU]'
6469   ;;
6470 esac
6471
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475   symcode='[ABCDGIRSTW]' ;;
6476 esac
6477
6478 # Transform an extracted symbol line into a proper C declaration.
6479 # Some systems (esp. on ia64) link data and code symbols differently,
6480 # so use this general approach.
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6485 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'"
6486
6487 # Handle CRLF in mingw tool chain
6488 opt_cr=
6489 case $build_os in
6490 mingw*)
6491   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492   ;;
6493 esac
6494
6495 # Try without a prefix underscore, then with it.
6496 for ac_symprfx in "" "_"; do
6497
6498   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499   symxfrm="\\1 $ac_symprfx\\2 \\2"
6500
6501   # Write the raw and C identifiers.
6502   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503     # Fake it for dumpbin and say T for any non-static function
6504     # and D for any global variable.
6505     # Also find C++ and __fastcall symbols from MSVC++,
6506     # which start with @ or ?.
6507     lt_cv_sys_global_symbol_pipe="$AWK '"\
6508 "     {last_section=section; section=\$ 3};"\
6509 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6510 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6511 "     \$ 0!~/External *\|/{next};"\
6512 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6513 "     {if(hide[section]) next};"\
6514 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6515 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6516 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6517 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6518 "     ' prfx=^$ac_symprfx"
6519   else
6520     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6521   fi
6522   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6523
6524   # Check to see that the pipe works correctly.
6525   pipe_works=no
6526
6527   rm -f conftest*
6528   cat > conftest.$ac_ext <<_LT_EOF
6529 #ifdef __cplusplus
6530 extern "C" {
6531 #endif
6532 char nm_test_var;
6533 void nm_test_func(void);
6534 void nm_test_func(void){}
6535 #ifdef __cplusplus
6536 }
6537 #endif
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6539 _LT_EOF
6540
6541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542   (eval $ac_compile) 2>&5
6543   ac_status=$?
6544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545   test $ac_status = 0; }; then
6546     # Now try to grab the symbols.
6547     nlist=conftest.nm
6548     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6549   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6550   ac_status=$?
6551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552   test $ac_status = 0; } && test -s "$nlist"; then
6553       # Try sorting and uniquifying the output.
6554       if sort "$nlist" | uniq > "$nlist"T; then
6555         mv -f "$nlist"T "$nlist"
6556       else
6557         rm -f "$nlist"T
6558       fi
6559
6560       # Make sure that we snagged all the symbols we need.
6561       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6562         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6563           cat <<_LT_EOF > conftest.$ac_ext
6564 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6565 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6566 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6567    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6568 # define LT_DLSYM_CONST
6569 #elif defined(__osf__)
6570 /* This system does not cope well with relocations in const data.  */
6571 # define LT_DLSYM_CONST
6572 #else
6573 # define LT_DLSYM_CONST const
6574 #endif
6575
6576 #ifdef __cplusplus
6577 extern "C" {
6578 #endif
6579
6580 _LT_EOF
6581           # Now generate the symbol file.
6582           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6583
6584           cat <<_LT_EOF >> conftest.$ac_ext
6585
6586 /* The mapping between symbol names and symbols.  */
6587 LT_DLSYM_CONST struct {
6588   const char *name;
6589   void       *address;
6590 }
6591 lt__PROGRAM__LTX_preloaded_symbols[] =
6592 {
6593   { "@PROGRAM@", (void *) 0 },
6594 _LT_EOF
6595           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6596           cat <<\_LT_EOF >> conftest.$ac_ext
6597   {0, (void *) 0}
6598 };
6599
6600 /* This works around a problem in FreeBSD linker */
6601 #ifdef FREEBSD_WORKAROUND
6602 static const void *lt_preloaded_setup() {
6603   return lt__PROGRAM__LTX_preloaded_symbols;
6604 }
6605 #endif
6606
6607 #ifdef __cplusplus
6608 }
6609 #endif
6610 _LT_EOF
6611           # Now try linking the two files.
6612           mv conftest.$ac_objext conftstm.$ac_objext
6613           lt_globsym_save_LIBS=$LIBS
6614           lt_globsym_save_CFLAGS=$CFLAGS
6615           LIBS="conftstm.$ac_objext"
6616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6617           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6622             pipe_works=yes
6623           fi
6624           LIBS=$lt_globsym_save_LIBS
6625           CFLAGS=$lt_globsym_save_CFLAGS
6626         else
6627           echo "cannot find nm_test_func in $nlist" >&5
6628         fi
6629       else
6630         echo "cannot find nm_test_var in $nlist" >&5
6631       fi
6632     else
6633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6634     fi
6635   else
6636     echo "$progname: failed program was:" >&5
6637     cat conftest.$ac_ext >&5
6638   fi
6639   rm -rf conftest* conftst*
6640
6641   # Do not use the global_symbol_pipe unless it works.
6642   if test "$pipe_works" = yes; then
6643     break
6644   else
6645     lt_cv_sys_global_symbol_pipe=
6646   fi
6647 done
6648
6649 fi
6650
6651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6652   lt_cv_sys_global_symbol_to_cdecl=
6653 fi
6654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6656 $as_echo "failed" >&6; }
6657 else
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6659 $as_echo "ok" >&6; }
6660 fi
6661
6662 # Response file support.
6663 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6664   nm_file_list_spec='@'
6665 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6666   nm_file_list_spec='@'
6667 fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6696 $as_echo_n "checking for sysroot... " >&6; }
6697
6698 # Check whether --with-sysroot was given.
6699 if test "${with_sysroot+set}" = set; then :
6700   withval=$with_sysroot;
6701 else
6702   with_sysroot=no
6703 fi
6704
6705
6706 lt_sysroot=
6707 case ${with_sysroot} in #(
6708  yes)
6709    if test "$GCC" = yes; then
6710      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6711    fi
6712    ;; #(
6713  /*)
6714    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6715    ;; #(
6716  no|'')
6717    ;; #(
6718  *)
6719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6720 $as_echo "${with_sysroot}" >&6; }
6721    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6722    ;;
6723 esac
6724
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6726 $as_echo "${lt_sysroot:-no}" >&6; }
6727
6728
6729
6730
6731
6732 # Check whether --enable-libtool-lock was given.
6733 if test "${enable_libtool_lock+set}" = set; then :
6734   enableval=$enable_libtool_lock;
6735 fi
6736
6737 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6738
6739 # Some flags need to be propagated to the compiler or linker for good
6740 # libtool support.
6741 case $host in
6742 ia64-*-hpux*)
6743   # Find out which ABI we are using.
6744   echo 'int i;' > conftest.$ac_ext
6745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746   (eval $ac_compile) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }; then
6750     case `/usr/bin/file conftest.$ac_objext` in
6751       *ELF-32*)
6752         HPUX_IA64_MODE="32"
6753         ;;
6754       *ELF-64*)
6755         HPUX_IA64_MODE="64"
6756         ;;
6757     esac
6758   fi
6759   rm -rf conftest*
6760   ;;
6761 *-*-irix6*)
6762   # Find out which ABI we are using.
6763   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6765   (eval $ac_compile) 2>&5
6766   ac_status=$?
6767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768   test $ac_status = 0; }; then
6769     if test "$lt_cv_prog_gnu_ld" = yes; then
6770       case `/usr/bin/file conftest.$ac_objext` in
6771         *32-bit*)
6772           LD="${LD-ld} -melf32bsmip"
6773           ;;
6774         *N32*)
6775           LD="${LD-ld} -melf32bmipn32"
6776           ;;
6777         *64-bit*)
6778           LD="${LD-ld} -melf64bmip"
6779         ;;
6780       esac
6781     else
6782       case `/usr/bin/file conftest.$ac_objext` in
6783         *32-bit*)
6784           LD="${LD-ld} -32"
6785           ;;
6786         *N32*)
6787           LD="${LD-ld} -n32"
6788           ;;
6789         *64-bit*)
6790           LD="${LD-ld} -64"
6791           ;;
6792       esac
6793     fi
6794   fi
6795   rm -rf conftest*
6796   ;;
6797
6798 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6799 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6800   # Find out which ABI we are using.
6801   echo 'int i;' > conftest.$ac_ext
6802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803   (eval $ac_compile) 2>&5
6804   ac_status=$?
6805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806   test $ac_status = 0; }; then
6807     case `/usr/bin/file conftest.o` in
6808       *32-bit*)
6809         case $host in
6810           x86_64-*kfreebsd*-gnu)
6811             LD="${LD-ld} -m elf_i386_fbsd"
6812             ;;
6813           x86_64-*linux*)
6814             LD="${LD-ld} -m elf_i386"
6815             ;;
6816           ppc64-*linux*|powerpc64-*linux*)
6817             LD="${LD-ld} -m elf32ppclinux"
6818             ;;
6819           s390x-*linux*)
6820             LD="${LD-ld} -m elf_s390"
6821             ;;
6822           sparc64-*linux*)
6823             LD="${LD-ld} -m elf32_sparc"
6824             ;;
6825         esac
6826         ;;
6827       *64-bit*)
6828         case $host in
6829           x86_64-*kfreebsd*-gnu)
6830             LD="${LD-ld} -m elf_x86_64_fbsd"
6831             ;;
6832           x86_64-*linux*)
6833             LD="${LD-ld} -m elf_x86_64"
6834             ;;
6835           ppc*-*linux*|powerpc*-*linux*)
6836             LD="${LD-ld} -m elf64ppc"
6837             ;;
6838           s390*-*linux*|s390*-*tpf*)
6839             LD="${LD-ld} -m elf64_s390"
6840             ;;
6841           sparc*-*linux*)
6842             LD="${LD-ld} -m elf64_sparc"
6843             ;;
6844         esac
6845         ;;
6846     esac
6847   fi
6848   rm -rf conftest*
6849   ;;
6850
6851 *-*-sco3.2v5*)
6852   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6853   SAVE_CFLAGS="$CFLAGS"
6854   CFLAGS="$CFLAGS -belf"
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6856 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6857 if ${lt_cv_cc_needs_belf+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h.  */
6868
6869 int
6870 main ()
6871 {
6872
6873   ;
6874   return 0;
6875 }
6876 _ACEOF
6877 if ac_fn_c_try_link "$LINENO"; then :
6878   lt_cv_cc_needs_belf=yes
6879 else
6880   lt_cv_cc_needs_belf=no
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext \
6883     conftest$ac_exeext conftest.$ac_ext
6884      ac_ext=c
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6892 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6893   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6894     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6895     CFLAGS="$SAVE_CFLAGS"
6896   fi
6897   ;;
6898 *-*solaris*)
6899   # Find out which ABI we are using.
6900   echo 'int i;' > conftest.$ac_ext
6901   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905   test $ac_status = 0; }; then
6906     case `/usr/bin/file conftest.o` in
6907     *64-bit*)
6908       case $lt_cv_prog_gnu_ld in
6909       yes*)
6910         case $host in
6911         i?86-*-solaris*)
6912           LD="${LD-ld} -m elf_x86_64"
6913           ;;
6914         sparc*-*-solaris*)
6915           LD="${LD-ld} -m elf64_sparc"
6916           ;;
6917         esac
6918         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6919         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6920           LD="${LD-ld}_sol2"
6921         fi
6922         ;;
6923       *)
6924         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6925           LD="${LD-ld} -64"
6926         fi
6927         ;;
6928       esac
6929       ;;
6930     esac
6931   fi
6932   rm -rf conftest*
6933   ;;
6934 esac
6935
6936 need_locks="$enable_libtool_lock"
6937
6938 if test -n "$ac_tool_prefix"; then
6939   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}mt; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   if test -n "$MANIFEST_TOOL"; then
6947   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6967 if test -n "$MANIFEST_TOOL"; then
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6969 $as_echo "$MANIFEST_TOOL" >&6; }
6970 else
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6978   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6979   # Extract the first word of "mt", so it can be a program name with args.
6980 set dummy mt; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   if test -n "$ac_ct_MANIFEST_TOOL"; then
6987   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994     for ac_exec_ext in '' $ac_executable_extensions; do
6995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001   done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7007 if test -n "$ac_ct_MANIFEST_TOOL"; then
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7009 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7010 else
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7016     MANIFEST_TOOL=":"
7017   else
7018     case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7025   fi
7026 else
7027   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7028 fi
7029
7030 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7032 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7033 if ${lt_cv_path_mainfest_tool+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   lt_cv_path_mainfest_tool=no
7037   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7038   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7039   cat conftest.err >&5
7040   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7041     lt_cv_path_mainfest_tool=yes
7042   fi
7043   rm -f conftest*
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7046 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7047 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7048   MANIFEST_TOOL=:
7049 fi
7050
7051
7052
7053
7054
7055
7056   case $host_os in
7057     rhapsody* | darwin*)
7058     if test -n "$ac_tool_prefix"; then
7059   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$DSYMUTIL"; then
7067   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7087 if test -n "$DSYMUTIL"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7089 $as_echo "$DSYMUTIL" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095
7096 fi
7097 if test -z "$ac_cv_prog_DSYMUTIL"; then
7098   ac_ct_DSYMUTIL=$DSYMUTIL
7099   # Extract the first word of "dsymutil", so it can be a program name with args.
7100 set dummy dsymutil; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$ac_ct_DSYMUTIL"; then
7107   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7127 if test -n "$ac_ct_DSYMUTIL"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7129 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135   if test "x$ac_ct_DSYMUTIL" = x; then
7136     DSYMUTIL=":"
7137   else
7138     case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144     DSYMUTIL=$ac_ct_DSYMUTIL
7145   fi
7146 else
7147   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7148 fi
7149
7150     if test -n "$ac_tool_prefix"; then
7151   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_NMEDIT+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$NMEDIT"; then
7159   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 NMEDIT=$ac_cv_prog_NMEDIT
7179 if test -n "$NMEDIT"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7181 $as_echo "$NMEDIT" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_NMEDIT"; then
7190   ac_ct_NMEDIT=$NMEDIT
7191   # Extract the first word of "nmedit", so it can be a program name with args.
7192 set dummy nmedit; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$ac_ct_NMEDIT"; then
7199   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7219 if test -n "$ac_ct_NMEDIT"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7221 $as_echo "$ac_ct_NMEDIT" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227   if test "x$ac_ct_NMEDIT" = x; then
7228     NMEDIT=":"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     NMEDIT=$ac_ct_NMEDIT
7237   fi
7238 else
7239   NMEDIT="$ac_cv_prog_NMEDIT"
7240 fi
7241
7242     if test -n "$ac_tool_prefix"; then
7243   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_LIPO+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$LIPO"; then
7251   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 LIPO=$ac_cv_prog_LIPO
7271 if test -n "$LIPO"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7273 $as_echo "$LIPO" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_LIPO"; then
7282   ac_ct_LIPO=$LIPO
7283   # Extract the first word of "lipo", so it can be a program name with args.
7284 set dummy lipo; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   if test -n "$ac_ct_LIPO"; then
7291   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298     for ac_exec_ext in '' $ac_executable_extensions; do
7299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300     ac_cv_prog_ac_ct_LIPO="lipo"
7301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305   done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7311 if test -n "$ac_ct_LIPO"; then
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7313 $as_echo "$ac_ct_LIPO" >&6; }
7314 else
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319   if test "x$ac_ct_LIPO" = x; then
7320     LIPO=":"
7321   else
7322     case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328     LIPO=$ac_ct_LIPO
7329   fi
7330 else
7331   LIPO="$ac_cv_prog_LIPO"
7332 fi
7333
7334     if test -n "$ac_tool_prefix"; then
7335   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}otool; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_OTOOL+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   if test -n "$OTOOL"; then
7343   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357   done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 OTOOL=$ac_cv_prog_OTOOL
7363 if test -n "$OTOOL"; then
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7365 $as_echo "$OTOOL" >&6; }
7366 else
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_OTOOL"; then
7374   ac_ct_OTOOL=$OTOOL
7375   # Extract the first word of "otool", so it can be a program name with args.
7376 set dummy otool; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -n "$ac_ct_OTOOL"; then
7383   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392     ac_cv_prog_ac_ct_OTOOL="otool"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7403 if test -n "$ac_ct_OTOOL"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7405 $as_echo "$ac_ct_OTOOL" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411   if test "x$ac_ct_OTOOL" = x; then
7412     OTOOL=":"
7413   else
7414     case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420     OTOOL=$ac_ct_OTOOL
7421   fi
7422 else
7423   OTOOL="$ac_cv_prog_OTOOL"
7424 fi
7425
7426     if test -n "$ac_tool_prefix"; then
7427   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_OTOOL64+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   if test -n "$OTOOL64"; then
7435   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 OTOOL64=$ac_cv_prog_OTOOL64
7455 if test -n "$OTOOL64"; then
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7457 $as_echo "$OTOOL64" >&6; }
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463
7464 fi
7465 if test -z "$ac_cv_prog_OTOOL64"; then
7466   ac_ct_OTOOL64=$OTOOL64
7467   # Extract the first word of "otool64", so it can be a program name with args.
7468 set dummy otool64; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   if test -n "$ac_ct_OTOOL64"; then
7475   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482     for ac_exec_ext in '' $ac_executable_extensions; do
7483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484     ac_cv_prog_ac_ct_OTOOL64="otool64"
7485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489   done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7495 if test -n "$ac_ct_OTOOL64"; then
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7497 $as_echo "$ac_ct_OTOOL64" >&6; }
7498 else
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503   if test "x$ac_ct_OTOOL64" = x; then
7504     OTOOL64=":"
7505   else
7506     case $cross_compiling:$ac_tool_warned in
7507 yes:)
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7511 esac
7512     OTOOL64=$ac_ct_OTOOL64
7513   fi
7514 else
7515   OTOOL64="$ac_cv_prog_OTOOL64"
7516 fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7545 $as_echo_n "checking for -single_module linker flag... " >&6; }
7546 if ${lt_cv_apple_cc_single_mod+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   lt_cv_apple_cc_single_mod=no
7550       if test -z "${LT_MULTI_MODULE}"; then
7551         # By default we will add the -single_module flag. You can override
7552         # by either setting the environment variable LT_MULTI_MODULE
7553         # non-empty at configure time, or by adding -multi_module to the
7554         # link flags.
7555         rm -rf libconftest.dylib*
7556         echo "int foo(void){return 1;}" > conftest.c
7557         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7558 -dynamiclib -Wl,-single_module conftest.c" >&5
7559         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7561         _lt_result=$?
7562         # If there is a non-empty error log, and "single_module"
7563         # appears in it, assume the flag caused a linker warning
7564         if test -s conftest.err && $GREP single_module conftest.err; then
7565           cat conftest.err >&5
7566         # Otherwise, if the output was created with a 0 exit code from
7567         # the compiler, it worked.
7568         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7569           lt_cv_apple_cc_single_mod=yes
7570         else
7571           cat conftest.err >&5
7572         fi
7573         rm -rf libconftest.dylib*
7574         rm -f conftest.*
7575       fi
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7579
7580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7581 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7582 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   lt_cv_ld_exported_symbols_list=no
7586       save_LDFLAGS=$LDFLAGS
7587       echo "_main" > conftest.sym
7588       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h.  */
7591
7592 int
7593 main ()
7594 {
7595
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"; then :
7601   lt_cv_ld_exported_symbols_list=yes
7602 else
7603   lt_cv_ld_exported_symbols_list=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext \
7606     conftest$ac_exeext conftest.$ac_ext
7607         LDFLAGS="$save_LDFLAGS"
7608
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7611 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7612
7613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7614 $as_echo_n "checking for -force_load linker flag... " >&6; }
7615 if ${lt_cv_ld_force_load+:} false; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   lt_cv_ld_force_load=no
7619       cat > conftest.c << _LT_EOF
7620 int forced_loaded() { return 2;}
7621 _LT_EOF
7622       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7623       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7624       echo "$AR cru libconftest.a conftest.o" >&5
7625       $AR cru libconftest.a conftest.o 2>&5
7626       echo "$RANLIB libconftest.a" >&5
7627       $RANLIB libconftest.a 2>&5
7628       cat > conftest.c << _LT_EOF
7629 int main() { return 0;}
7630 _LT_EOF
7631       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7632       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7633       _lt_result=$?
7634       if test -s conftest.err && $GREP force_load conftest.err; then
7635         cat conftest.err >&5
7636       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7637         lt_cv_ld_force_load=yes
7638       else
7639         cat conftest.err >&5
7640       fi
7641         rm -f conftest.err libconftest.a conftest conftest.c
7642         rm -rf conftest.dSYM
7643
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7646 $as_echo "$lt_cv_ld_force_load" >&6; }
7647     case $host_os in
7648     rhapsody* | darwin1.[012])
7649       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7650     darwin1.*)
7651       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652     darwin*) # darwin 5.x on
7653       # if running on 10.5 or later, the deployment target defaults
7654       # to the OS version, if on x86, and 10.4, the deployment
7655       # target defaults to 10.4. Don't you love it?
7656       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7657         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7658           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7659         10.[012]*)
7660           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7661         10.*)
7662           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7663       esac
7664     ;;
7665   esac
7666     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667       _lt_dar_single_mod='$single_module'
7668     fi
7669     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7671     else
7672       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673     fi
7674     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7675       _lt_dsymutil='~$DSYMUTIL $lib || :'
7676     else
7677       _lt_dsymutil=
7678     fi
7679     ;;
7680   esac
7681
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7684 $as_echo_n "checking for ANSI C header files... " >&6; }
7685 if ${ac_cv_header_stdc+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 #include <stdlib.h>
7691 #include <stdarg.h>
7692 #include <string.h>
7693 #include <float.h>
7694
7695 int
7696 main ()
7697 {
7698
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704   ac_cv_header_stdc=yes
7705 else
7706   ac_cv_header_stdc=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709
7710 if test $ac_cv_header_stdc = yes; then
7711   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714 #include <string.h>
7715
7716 _ACEOF
7717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718   $EGREP "memchr" >/dev/null 2>&1; then :
7719
7720 else
7721   ac_cv_header_stdc=no
7722 fi
7723 rm -f conftest*
7724
7725 fi
7726
7727 if test $ac_cv_header_stdc = yes; then
7728   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h.  */
7731 #include <stdlib.h>
7732
7733 _ACEOF
7734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7735   $EGREP "free" >/dev/null 2>&1; then :
7736
7737 else
7738   ac_cv_header_stdc=no
7739 fi
7740 rm -f conftest*
7741
7742 fi
7743
7744 if test $ac_cv_header_stdc = yes; then
7745   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7746   if test "$cross_compiling" = yes; then :
7747   :
7748 else
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #include <ctype.h>
7752 #include <stdlib.h>
7753 #if ((' ' & 0x0FF) == 0x020)
7754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7756 #else
7757 # define ISLOWER(c) \
7758                    (('a' <= (c) && (c) <= 'i') \
7759                      || ('j' <= (c) && (c) <= 'r') \
7760                      || ('s' <= (c) && (c) <= 'z'))
7761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7762 #endif
7763
7764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7765 int
7766 main ()
7767 {
7768   int i;
7769   for (i = 0; i < 256; i++)
7770     if (XOR (islower (i), ISLOWER (i))
7771         || toupper (i) != TOUPPER (i))
7772       return 2;
7773   return 0;
7774 }
7775 _ACEOF
7776 if ac_fn_c_try_run "$LINENO"; then :
7777
7778 else
7779   ac_cv_header_stdc=no
7780 fi
7781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7782   conftest.$ac_objext conftest.beam conftest.$ac_ext
7783 fi
7784
7785 fi
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7788 $as_echo "$ac_cv_header_stdc" >&6; }
7789 if test $ac_cv_header_stdc = yes; then
7790
7791 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7792
7793 fi
7794
7795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7797                   inttypes.h stdint.h unistd.h
7798 do :
7799   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7801 "
7802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7803   cat >>confdefs.h <<_ACEOF
7804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 _ACEOF
7806
7807 fi
7808
7809 done
7810
7811
7812 for ac_header in dlfcn.h
7813 do :
7814   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7815 "
7816 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7817   cat >>confdefs.h <<_ACEOF
7818 #define HAVE_DLFCN_H 1
7819 _ACEOF
7820
7821 fi
7822
7823 done
7824
7825
7826
7827
7828
7829 # Set options
7830 enable_win32_dll=yes
7831
7832 case $host in
7833 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7834   if test -n "$ac_tool_prefix"; then
7835   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}as; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_AS+:} false; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842   if test -n "$AS"; then
7843   ac_cv_prog_AS="$AS" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_prog_AS="${ac_tool_prefix}as"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859
7860 fi
7861 fi
7862 AS=$ac_cv_prog_AS
7863 if test -n "$AS"; then
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7865 $as_echo "$AS" >&6; }
7866 else
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871
7872 fi
7873 if test -z "$ac_cv_prog_AS"; then
7874   ac_ct_AS=$AS
7875   # Extract the first word of "as", so it can be a program name with args.
7876 set dummy as; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   if test -n "$ac_ct_AS"; then
7883   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890     for ac_exec_ext in '' $ac_executable_extensions; do
7891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892     ac_cv_prog_ac_ct_AS="as"
7893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897   done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7903 if test -n "$ac_ct_AS"; then
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7905 $as_echo "$ac_ct_AS" >&6; }
7906 else
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911   if test "x$ac_ct_AS" = x; then
7912     AS="false"
7913   else
7914     case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920     AS=$ac_ct_AS
7921   fi
7922 else
7923   AS="$ac_cv_prog_AS"
7924 fi
7925
7926   if test -n "$ac_tool_prefix"; then
7927   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_DLLTOOL+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   if test -n "$DLLTOOL"; then
7935   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942     for ac_exec_ext in '' $ac_executable_extensions; do
7943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949   done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 DLLTOOL=$ac_cv_prog_DLLTOOL
7955 if test -n "$DLLTOOL"; then
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7957 $as_echo "$DLLTOOL" >&6; }
7958 else
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964 fi
7965 if test -z "$ac_cv_prog_DLLTOOL"; then
7966   ac_ct_DLLTOOL=$DLLTOOL
7967   # Extract the first word of "dlltool", so it can be a program name with args.
7968 set dummy dlltool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   if test -n "$ac_ct_DLLTOOL"; then
7975   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7995 if test -n "$ac_ct_DLLTOOL"; then
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7997 $as_echo "$ac_ct_DLLTOOL" >&6; }
7998 else
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003   if test "x$ac_ct_DLLTOOL" = x; then
8004     DLLTOOL="false"
8005   else
8006     case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012     DLLTOOL=$ac_ct_DLLTOOL
8013   fi
8014 else
8015   DLLTOOL="$ac_cv_prog_DLLTOOL"
8016 fi
8017
8018   if test -n "$ac_tool_prefix"; then
8019   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_OBJDUMP+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$OBJDUMP"; then
8027   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 OBJDUMP=$ac_cv_prog_OBJDUMP
8047 if test -n "$OBJDUMP"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8049 $as_echo "$OBJDUMP" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055
8056 fi
8057 if test -z "$ac_cv_prog_OBJDUMP"; then
8058   ac_ct_OBJDUMP=$OBJDUMP
8059   # Extract the first word of "objdump", so it can be a program name with args.
8060 set dummy objdump; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   if test -n "$ac_ct_OBJDUMP"; then
8067   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074     for ac_exec_ext in '' $ac_executable_extensions; do
8075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081   done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8087 if test -n "$ac_ct_OBJDUMP"; then
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8089 $as_echo "$ac_ct_OBJDUMP" >&6; }
8090 else
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095   if test "x$ac_ct_OBJDUMP" = x; then
8096     OBJDUMP="false"
8097   else
8098     case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104     OBJDUMP=$ac_ct_OBJDUMP
8105   fi
8106 else
8107   OBJDUMP="$ac_cv_prog_OBJDUMP"
8108 fi
8109
8110   ;;
8111 esac
8112
8113 test -z "$AS" && AS=as
8114
8115
8116
8117
8118
8119 test -z "$DLLTOOL" && DLLTOOL=dlltool
8120
8121
8122
8123
8124
8125 test -z "$OBJDUMP" && OBJDUMP=objdump
8126
8127
8128
8129
8130
8131
8132
8133         enable_dlopen=no
8134
8135
8136
8137             # Check whether --enable-shared was given.
8138 if test "${enable_shared+set}" = set; then :
8139   enableval=$enable_shared; p=${PACKAGE-default}
8140     case $enableval in
8141     yes) enable_shared=yes ;;
8142     no) enable_shared=no ;;
8143     *)
8144       enable_shared=no
8145       # Look at the argument we got.  We use all the common list separators.
8146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147       for pkg in $enableval; do
8148         IFS="$lt_save_ifs"
8149         if test "X$pkg" = "X$p"; then
8150           enable_shared=yes
8151         fi
8152       done
8153       IFS="$lt_save_ifs"
8154       ;;
8155     esac
8156 else
8157   enable_shared=yes
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168   # Check whether --enable-static was given.
8169 if test "${enable_static+set}" = set; then :
8170   enableval=$enable_static; p=${PACKAGE-default}
8171     case $enableval in
8172     yes) enable_static=yes ;;
8173     no) enable_static=no ;;
8174     *)
8175      enable_static=no
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178       for pkg in $enableval; do
8179         IFS="$lt_save_ifs"
8180         if test "X$pkg" = "X$p"; then
8181           enable_static=yes
8182         fi
8183       done
8184       IFS="$lt_save_ifs"
8185       ;;
8186     esac
8187 else
8188   enable_static=yes
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 # Check whether --with-pic was given.
8201 if test "${with_pic+set}" = set; then :
8202   withval=$with_pic; lt_p=${PACKAGE-default}
8203     case $withval in
8204     yes|no) pic_mode=$withval ;;
8205     *)
8206       pic_mode=default
8207       # Look at the argument we got.  We use all the common list separators.
8208       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8209       for lt_pkg in $withval; do
8210         IFS="$lt_save_ifs"
8211         if test "X$lt_pkg" = "X$lt_p"; then
8212           pic_mode=yes
8213         fi
8214       done
8215       IFS="$lt_save_ifs"
8216       ;;
8217     esac
8218 else
8219   pic_mode=default
8220 fi
8221
8222
8223 test -z "$pic_mode" && pic_mode=default
8224
8225
8226
8227
8228
8229
8230
8231   # Check whether --enable-fast-install was given.
8232 if test "${enable_fast_install+set}" = set; then :
8233   enableval=$enable_fast_install; p=${PACKAGE-default}
8234     case $enableval in
8235     yes) enable_fast_install=yes ;;
8236     no) enable_fast_install=no ;;
8237     *)
8238       enable_fast_install=no
8239       # Look at the argument we got.  We use all the common list separators.
8240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8241       for pkg in $enableval; do
8242         IFS="$lt_save_ifs"
8243         if test "X$pkg" = "X$p"; then
8244           enable_fast_install=yes
8245         fi
8246       done
8247       IFS="$lt_save_ifs"
8248       ;;
8249     esac
8250 else
8251   enable_fast_install=yes
8252 fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 # This can be used to rebuild libtool when needed
8265 LIBTOOL_DEPS="$ltmain"
8266
8267 # Always use our own libtool.
8268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 test -z "$LN_S" && LN_S="ln -s"
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314 if test -n "${ZSH_VERSION+set}" ; then
8315    setopt NO_GLOB_SUBST
8316 fi
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8319 $as_echo_n "checking for objdir... " >&6; }
8320 if ${lt_cv_objdir+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   rm -f .libs 2>/dev/null
8324 mkdir .libs 2>/dev/null
8325 if test -d .libs; then
8326   lt_cv_objdir=.libs
8327 else
8328   # MS-DOS does not allow filenames that begin with a dot.
8329   lt_cv_objdir=_libs
8330 fi
8331 rmdir .libs 2>/dev/null
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8334 $as_echo "$lt_cv_objdir" >&6; }
8335 objdir=$lt_cv_objdir
8336
8337
8338
8339
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define LT_OBJDIR "$lt_cv_objdir/"
8343 _ACEOF
8344
8345
8346
8347
8348 case $host_os in
8349 aix3*)
8350   # AIX sometimes has problems with the GCC collect2 program.  For some
8351   # reason, if we set the COLLECT_NAMES environment variable, the problems
8352   # vanish in a puff of smoke.
8353   if test "X${COLLECT_NAMES+set}" != Xset; then
8354     COLLECT_NAMES=
8355     export COLLECT_NAMES
8356   fi
8357   ;;
8358 esac
8359
8360 # Global variables:
8361 ofile=libtool
8362 can_build_shared=yes
8363
8364 # All known linkers require a `.a' archive for static linking (except MSVC,
8365 # which needs '.lib').
8366 libext=a
8367
8368 with_gnu_ld="$lt_cv_prog_gnu_ld"
8369
8370 old_CC="$CC"
8371 old_CFLAGS="$CFLAGS"
8372
8373 # Set sane defaults for various variables
8374 test -z "$CC" && CC=cc
8375 test -z "$LTCC" && LTCC=$CC
8376 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8377 test -z "$LD" && LD=ld
8378 test -z "$ac_objext" && ac_objext=o
8379
8380 for cc_temp in $compiler""; do
8381   case $cc_temp in
8382     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8383     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8384     \-*) ;;
8385     *) break;;
8386   esac
8387 done
8388 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8389
8390
8391 # Only perform the check for file, if the check method requires it
8392 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8393 case $deplibs_check_method in
8394 file_magic*)
8395   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   case $MAGIC_CMD in
8402 [\\/*] |  ?:[\\/]*)
8403   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8404   ;;
8405 *)
8406   lt_save_MAGIC_CMD="$MAGIC_CMD"
8407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8408   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8409   for ac_dir in $ac_dummy; do
8410     IFS="$lt_save_ifs"
8411     test -z "$ac_dir" && ac_dir=.
8412     if test -f $ac_dir/${ac_tool_prefix}file; then
8413       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8414       if test -n "$file_magic_test_file"; then
8415         case $deplibs_check_method in
8416         "file_magic "*)
8417           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8419           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8420             $EGREP "$file_magic_regex" > /dev/null; then
8421             :
8422           else
8423             cat <<_LT_EOF 1>&2
8424
8425 *** Warning: the command libtool uses to detect shared libraries,
8426 *** $file_magic_cmd, produces output that libtool cannot recognize.
8427 *** The result is that libtool may fail to recognize shared libraries
8428 *** as such.  This will affect the creation of libtool libraries that
8429 *** depend on shared libraries, but programs linked with such libtool
8430 *** libraries will work regardless of this problem.  Nevertheless, you
8431 *** may want to report the problem to your system manager and/or to
8432 *** bug-libtool@gnu.org
8433
8434 _LT_EOF
8435           fi ;;
8436         esac
8437       fi
8438       break
8439     fi
8440   done
8441   IFS="$lt_save_ifs"
8442   MAGIC_CMD="$lt_save_MAGIC_CMD"
8443   ;;
8444 esac
8445 fi
8446
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if test -n "$MAGIC_CMD"; then
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450 $as_echo "$MAGIC_CMD" >&6; }
8451 else
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456
8457
8458
8459
8460 if test -z "$lt_cv_path_MAGIC_CMD"; then
8461   if test -n "$ac_tool_prefix"; then
8462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8463 $as_echo_n "checking for file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   case $MAGIC_CMD in
8468 [\\/*] |  ?:[\\/]*)
8469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470   ;;
8471 *)
8472   lt_save_MAGIC_CMD="$MAGIC_CMD"
8473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475   for ac_dir in $ac_dummy; do
8476     IFS="$lt_save_ifs"
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f $ac_dir/file; then
8479       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8480       if test -n "$file_magic_test_file"; then
8481         case $deplibs_check_method in
8482         "file_magic "*)
8483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486             $EGREP "$file_magic_regex" > /dev/null; then
8487             :
8488           else
8489             cat <<_LT_EOF 1>&2
8490
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such.  This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem.  Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8499
8500 _LT_EOF
8501           fi ;;
8502         esac
8503       fi
8504       break
8505     fi
8506   done
8507   IFS="$lt_save_ifs"
8508   MAGIC_CMD="$lt_save_MAGIC_CMD"
8509   ;;
8510 esac
8511 fi
8512
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523   else
8524     MAGIC_CMD=:
8525   fi
8526 fi
8527
8528   fi
8529   ;;
8530 esac
8531
8532 # Use C for the default configuration in the libtool script
8533
8534 lt_save_CC="$CC"
8535 ac_ext=c
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8540
8541
8542 # Source file extension for C test sources.
8543 ac_ext=c
8544
8545 # Object file extension for compiled C test sources.
8546 objext=o
8547 objext=$objext
8548
8549 # Code to be used in simple compile tests
8550 lt_simple_compile_test_code="int some_variable = 0;"
8551
8552 # Code to be used in simple link tests
8553 lt_simple_link_test_code='int main(){return(0);}'
8554
8555
8556
8557
8558
8559
8560
8561 # If no C compiler was specified, use CC.
8562 LTCC=${LTCC-"$CC"}
8563
8564 # If no C compiler flags were specified, use CFLAGS.
8565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8566
8567 # Allow CC to be a program name with arguments.
8568 compiler=$CC
8569
8570 # Save the default compiler, since it gets overwritten when the other
8571 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8572 compiler_DEFAULT=$CC
8573
8574 # save warnings/boilerplate of simple test code
8575 ac_outfile=conftest.$ac_objext
8576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8578 _lt_compiler_boilerplate=`cat conftest.err`
8579 $RM conftest*
8580
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_linker_boilerplate=`cat conftest.err`
8585 $RM -r conftest*
8586
8587
8588 ## CAVEAT EMPTOR:
8589 ## There is no encapsulation within the following macros, do not change
8590 ## the running order or otherwise move them around unless you know exactly
8591 ## what you are doing...
8592 if test -n "$compiler"; then
8593
8594 lt_prog_compiler_no_builtin_flag=
8595
8596 if test "$GCC" = yes; then
8597   case $cc_basename in
8598   nvcc*)
8599     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8600   *)
8601     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8602   esac
8603
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8605 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8606 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   lt_cv_prog_compiler_rtti_exceptions=no
8610    ac_outfile=conftest.$ac_objext
8611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612    lt_compiler_flag="-fno-rtti -fno-exceptions"
8613    # Insert the option either (1) after the last *FLAGS variable, or
8614    # (2) before a word containing "conftest.", or (3) at the end.
8615    # Note that $ac_compile itself does not contain backslashes and begins
8616    # with a dollar sign (not a hyphen), so the echo should work correctly.
8617    # The option is referenced via a variable to avoid confusing sed.
8618    lt_compile=`echo "$ac_compile" | $SED \
8619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621    -e 's:$: $lt_compiler_flag:'`
8622    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623    (eval "$lt_compile" 2>conftest.err)
8624    ac_status=$?
8625    cat conftest.err >&5
8626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627    if (exit $ac_status) && test -s "$ac_outfile"; then
8628      # The compiler can only warn and ignore the option if not recognized
8629      # So say no if there are warnings other than the usual output.
8630      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8631      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633        lt_cv_prog_compiler_rtti_exceptions=yes
8634      fi
8635    fi
8636    $RM conftest*
8637
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8640 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8641
8642 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8643     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8644 else
8645     :
8646 fi
8647
8648 fi
8649
8650
8651
8652
8653
8654
8655   lt_prog_compiler_wl=
8656 lt_prog_compiler_pic=
8657 lt_prog_compiler_static=
8658
8659
8660   if test "$GCC" = yes; then
8661     lt_prog_compiler_wl='-Wl,'
8662     lt_prog_compiler_static='-static'
8663
8664     case $host_os in
8665       aix*)
8666       # All AIX code is PIC.
8667       if test "$host_cpu" = ia64; then
8668         # AIX 5 now supports IA64 processor
8669         lt_prog_compiler_static='-Bstatic'
8670       fi
8671       ;;
8672
8673     amigaos*)
8674       case $host_cpu in
8675       powerpc)
8676             # see comment about AmigaOS4 .so support
8677             lt_prog_compiler_pic='-fPIC'
8678         ;;
8679       m68k)
8680             # FIXME: we need at least 68020 code to build shared libraries, but
8681             # adding the `-m68020' flag to GCC prevents building anything better,
8682             # like `-m68040'.
8683             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8684         ;;
8685       esac
8686       ;;
8687
8688     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8689       # PIC is the default for these OSes.
8690       ;;
8691
8692     mingw* | cygwin* | pw32* | os2* | cegcc*)
8693       # This hack is so that the source file can tell whether it is being
8694       # built for inclusion in a dll (and should export symbols for example).
8695       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8696       # (--disable-auto-import) libraries
8697       lt_prog_compiler_pic='-DDLL_EXPORT'
8698       ;;
8699
8700     darwin* | rhapsody*)
8701       # PIC is the default on this platform
8702       # Common symbols not allowed in MH_DYLIB files
8703       lt_prog_compiler_pic='-fno-common'
8704       ;;
8705
8706     haiku*)
8707       # PIC is the default for Haiku.
8708       # The "-static" flag exists, but is broken.
8709       lt_prog_compiler_static=
8710       ;;
8711
8712     hpux*)
8713       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8714       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8715       # sets the default TLS model and affects inlining.
8716       case $host_cpu in
8717       hppa*64*)
8718         # +Z the default
8719         ;;
8720       *)
8721         lt_prog_compiler_pic='-fPIC'
8722         ;;
8723       esac
8724       ;;
8725
8726     interix[3-9]*)
8727       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8728       # Instead, we relocate shared libraries at runtime.
8729       ;;
8730
8731     msdosdjgpp*)
8732       # Just because we use GCC doesn't mean we suddenly get shared libraries
8733       # on systems that don't support them.
8734       lt_prog_compiler_can_build_shared=no
8735       enable_shared=no
8736       ;;
8737
8738     *nto* | *qnx*)
8739       # QNX uses GNU C++, but need to define -shared option too, otherwise
8740       # it will coredump.
8741       lt_prog_compiler_pic='-fPIC -shared'
8742       ;;
8743
8744     sysv4*MP*)
8745       if test -d /usr/nec; then
8746         lt_prog_compiler_pic=-Kconform_pic
8747       fi
8748       ;;
8749
8750     *)
8751       lt_prog_compiler_pic='-fPIC'
8752       ;;
8753     esac
8754
8755     case $cc_basename in
8756     nvcc*) # Cuda Compiler Driver 2.2
8757       lt_prog_compiler_wl='-Xlinker '
8758       if test -n "$lt_prog_compiler_pic"; then
8759         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8760       fi
8761       ;;
8762     esac
8763   else
8764     # PORTME Check for flag to pass linker flags through the system compiler.
8765     case $host_os in
8766     aix*)
8767       lt_prog_compiler_wl='-Wl,'
8768       if test "$host_cpu" = ia64; then
8769         # AIX 5 now supports IA64 processor
8770         lt_prog_compiler_static='-Bstatic'
8771       else
8772         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8773       fi
8774       ;;
8775
8776     mingw* | cygwin* | pw32* | os2* | cegcc*)
8777       # This hack is so that the source file can tell whether it is being
8778       # built for inclusion in a dll (and should export symbols for example).
8779       lt_prog_compiler_pic='-DDLL_EXPORT'
8780       ;;
8781
8782     hpux9* | hpux10* | hpux11*)
8783       lt_prog_compiler_wl='-Wl,'
8784       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8785       # not for PA HP-UX.
8786       case $host_cpu in
8787       hppa*64*|ia64*)
8788         # +Z the default
8789         ;;
8790       *)
8791         lt_prog_compiler_pic='+Z'
8792         ;;
8793       esac
8794       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8795       lt_prog_compiler_static='${wl}-a ${wl}archive'
8796       ;;
8797
8798     irix5* | irix6* | nonstopux*)
8799       lt_prog_compiler_wl='-Wl,'
8800       # PIC (with -KPIC) is the default.
8801       lt_prog_compiler_static='-non_shared'
8802       ;;
8803
8804     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8805       case $cc_basename in
8806       # old Intel for x86_64 which still supported -KPIC.
8807       ecc*)
8808         lt_prog_compiler_wl='-Wl,'
8809         lt_prog_compiler_pic='-KPIC'
8810         lt_prog_compiler_static='-static'
8811         ;;
8812       # icc used to be incompatible with GCC.
8813       # ICC 10 doesn't accept -KPIC any more.
8814       icc* | ifort*)
8815         lt_prog_compiler_wl='-Wl,'
8816         lt_prog_compiler_pic='-fPIC'
8817         lt_prog_compiler_static='-static'
8818         ;;
8819       # Lahey Fortran 8.1.
8820       lf95*)
8821         lt_prog_compiler_wl='-Wl,'
8822         lt_prog_compiler_pic='--shared'
8823         lt_prog_compiler_static='--static'
8824         ;;
8825       nagfor*)
8826         # NAG Fortran compiler
8827         lt_prog_compiler_wl='-Wl,-Wl,,'
8828         lt_prog_compiler_pic='-PIC'
8829         lt_prog_compiler_static='-Bstatic'
8830         ;;
8831       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8832         # Portland Group compilers (*not* the Pentium gcc compiler,
8833         # which looks to be a dead project)
8834         lt_prog_compiler_wl='-Wl,'
8835         lt_prog_compiler_pic='-fpic'
8836         lt_prog_compiler_static='-Bstatic'
8837         ;;
8838       ccc*)
8839         lt_prog_compiler_wl='-Wl,'
8840         # All Alpha code is PIC.
8841         lt_prog_compiler_static='-non_shared'
8842         ;;
8843       xl* | bgxl* | bgf* | mpixl*)
8844         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8845         lt_prog_compiler_wl='-Wl,'
8846         lt_prog_compiler_pic='-qpic'
8847         lt_prog_compiler_static='-qstaticlink'
8848         ;;
8849       *)
8850         case `$CC -V 2>&1 | sed 5q` in
8851         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8852           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8853           lt_prog_compiler_pic='-KPIC'
8854           lt_prog_compiler_static='-Bstatic'
8855           lt_prog_compiler_wl=''
8856           ;;
8857         *Sun\ F* | *Sun*Fortran*)
8858           lt_prog_compiler_pic='-KPIC'
8859           lt_prog_compiler_static='-Bstatic'
8860           lt_prog_compiler_wl='-Qoption ld '
8861           ;;
8862         *Sun\ C*)
8863           # Sun C 5.9
8864           lt_prog_compiler_pic='-KPIC'
8865           lt_prog_compiler_static='-Bstatic'
8866           lt_prog_compiler_wl='-Wl,'
8867           ;;
8868         *Intel*\ [CF]*Compiler*)
8869           lt_prog_compiler_wl='-Wl,'
8870           lt_prog_compiler_pic='-fPIC'
8871           lt_prog_compiler_static='-static'
8872           ;;
8873         *Portland\ Group*)
8874           lt_prog_compiler_wl='-Wl,'
8875           lt_prog_compiler_pic='-fpic'
8876           lt_prog_compiler_static='-Bstatic'
8877           ;;
8878         esac
8879         ;;
8880       esac
8881       ;;
8882
8883     newsos6)
8884       lt_prog_compiler_pic='-KPIC'
8885       lt_prog_compiler_static='-Bstatic'
8886       ;;
8887
8888     *nto* | *qnx*)
8889       # QNX uses GNU C++, but need to define -shared option too, otherwise
8890       # it will coredump.
8891       lt_prog_compiler_pic='-fPIC -shared'
8892       ;;
8893
8894     osf3* | osf4* | osf5*)
8895       lt_prog_compiler_wl='-Wl,'
8896       # All OSF/1 code is PIC.
8897       lt_prog_compiler_static='-non_shared'
8898       ;;
8899
8900     rdos*)
8901       lt_prog_compiler_static='-non_shared'
8902       ;;
8903
8904     solaris*)
8905       lt_prog_compiler_pic='-KPIC'
8906       lt_prog_compiler_static='-Bstatic'
8907       case $cc_basename in
8908       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8909         lt_prog_compiler_wl='-Qoption ld ';;
8910       *)
8911         lt_prog_compiler_wl='-Wl,';;
8912       esac
8913       ;;
8914
8915     sunos4*)
8916       lt_prog_compiler_wl='-Qoption ld '
8917       lt_prog_compiler_pic='-PIC'
8918       lt_prog_compiler_static='-Bstatic'
8919       ;;
8920
8921     sysv4 | sysv4.2uw2* | sysv4.3*)
8922       lt_prog_compiler_wl='-Wl,'
8923       lt_prog_compiler_pic='-KPIC'
8924       lt_prog_compiler_static='-Bstatic'
8925       ;;
8926
8927     sysv4*MP*)
8928       if test -d /usr/nec ;then
8929         lt_prog_compiler_pic='-Kconform_pic'
8930         lt_prog_compiler_static='-Bstatic'
8931       fi
8932       ;;
8933
8934     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8935       lt_prog_compiler_wl='-Wl,'
8936       lt_prog_compiler_pic='-KPIC'
8937       lt_prog_compiler_static='-Bstatic'
8938       ;;
8939
8940     unicos*)
8941       lt_prog_compiler_wl='-Wl,'
8942       lt_prog_compiler_can_build_shared=no
8943       ;;
8944
8945     uts4*)
8946       lt_prog_compiler_pic='-pic'
8947       lt_prog_compiler_static='-Bstatic'
8948       ;;
8949
8950     *)
8951       lt_prog_compiler_can_build_shared=no
8952       ;;
8953     esac
8954   fi
8955
8956 case $host_os in
8957   # For platforms which do not support PIC, -DPIC is meaningless:
8958   *djgpp*)
8959     lt_prog_compiler_pic=
8960     ;;
8961   *)
8962     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8963     ;;
8964 esac
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8967 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8968 if ${lt_cv_prog_compiler_pic+:} false; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8974 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8975 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8976
8977 #
8978 # Check to make sure the PIC flag actually works.
8979 #
8980 if test -n "$lt_prog_compiler_pic"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8982 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8983 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8984   $as_echo_n "(cached) " >&6
8985 else
8986   lt_cv_prog_compiler_pic_works=no
8987    ac_outfile=conftest.$ac_objext
8988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8990    # Insert the option either (1) after the last *FLAGS variable, or
8991    # (2) before a word containing "conftest.", or (3) at the end.
8992    # Note that $ac_compile itself does not contain backslashes and begins
8993    # with a dollar sign (not a hyphen), so the echo should work correctly.
8994    # The option is referenced via a variable to avoid confusing sed.
8995    lt_compile=`echo "$ac_compile" | $SED \
8996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998    -e 's:$: $lt_compiler_flag:'`
8999    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9000    (eval "$lt_compile" 2>conftest.err)
9001    ac_status=$?
9002    cat conftest.err >&5
9003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004    if (exit $ac_status) && test -s "$ac_outfile"; then
9005      # The compiler can only warn and ignore the option if not recognized
9006      # So say no if there are warnings other than the usual output.
9007      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9010        lt_cv_prog_compiler_pic_works=yes
9011      fi
9012    fi
9013    $RM conftest*
9014
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9017 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9018
9019 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9020     case $lt_prog_compiler_pic in
9021      "" | " "*) ;;
9022      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9023      esac
9024 else
9025     lt_prog_compiler_pic=
9026      lt_prog_compiler_can_build_shared=no
9027 fi
9028
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 #
9042 # Check to make sure the static flag actually works.
9043 #
9044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9047 if ${lt_cv_prog_compiler_static_works+:} false; then :
9048   $as_echo_n "(cached) " >&6
9049 else
9050   lt_cv_prog_compiler_static_works=no
9051    save_LDFLAGS="$LDFLAGS"
9052    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9053    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9054    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9055      # The linker can only warn and ignore the option if not recognized
9056      # So say no if there are warnings
9057      if test -s conftest.err; then
9058        # Append any errors to the config.log.
9059        cat conftest.err 1>&5
9060        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9061        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062        if diff conftest.exp conftest.er2 >/dev/null; then
9063          lt_cv_prog_compiler_static_works=yes
9064        fi
9065      else
9066        lt_cv_prog_compiler_static_works=yes
9067      fi
9068    fi
9069    $RM -r conftest*
9070    LDFLAGS="$save_LDFLAGS"
9071
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9075
9076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9077     :
9078 else
9079     lt_prog_compiler_static=
9080 fi
9081
9082
9083
9084
9085
9086
9087
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090 if ${lt_cv_prog_compiler_c_o+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   lt_cv_prog_compiler_c_o=no
9094    $RM -r conftest 2>/dev/null
9095    mkdir conftest
9096    cd conftest
9097    mkdir out
9098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099
9100    lt_compiler_flag="-o out/conftest2.$ac_objext"
9101    # Insert the option either (1) after the last *FLAGS variable, or
9102    # (2) before a word containing "conftest.", or (3) at the end.
9103    # Note that $ac_compile itself does not contain backslashes and begins
9104    # with a dollar sign (not a hyphen), so the echo should work correctly.
9105    lt_compile=`echo "$ac_compile" | $SED \
9106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108    -e 's:$: $lt_compiler_flag:'`
9109    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9110    (eval "$lt_compile" 2>out/conftest.err)
9111    ac_status=$?
9112    cat out/conftest.err >&5
9113    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9115    then
9116      # The compiler can only warn and ignore the option if not recognized
9117      # So say no if there are warnings
9118      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121        lt_cv_prog_compiler_c_o=yes
9122      fi
9123    fi
9124    chmod u+w . 2>&5
9125    $RM conftest*
9126    # SGI C++ compiler will create directory out/ii_files/ for
9127    # template instantiation
9128    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129    $RM out/* && rmdir out
9130    cd ..
9131    $RM -r conftest
9132    $RM conftest*
9133
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9137
9138
9139
9140
9141
9142
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145 if ${lt_cv_prog_compiler_c_o+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   lt_cv_prog_compiler_c_o=no
9149    $RM -r conftest 2>/dev/null
9150    mkdir conftest
9151    cd conftest
9152    mkdir out
9153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154
9155    lt_compiler_flag="-o out/conftest2.$ac_objext"
9156    # Insert the option either (1) after the last *FLAGS variable, or
9157    # (2) before a word containing "conftest.", or (3) at the end.
9158    # Note that $ac_compile itself does not contain backslashes and begins
9159    # with a dollar sign (not a hyphen), so the echo should work correctly.
9160    lt_compile=`echo "$ac_compile" | $SED \
9161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163    -e 's:$: $lt_compiler_flag:'`
9164    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165    (eval "$lt_compile" 2>out/conftest.err)
9166    ac_status=$?
9167    cat out/conftest.err >&5
9168    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9170    then
9171      # The compiler can only warn and ignore the option if not recognized
9172      # So say no if there are warnings
9173      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176        lt_cv_prog_compiler_c_o=yes
9177      fi
9178    fi
9179    chmod u+w . 2>&5
9180    $RM conftest*
9181    # SGI C++ compiler will create directory out/ii_files/ for
9182    # template instantiation
9183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184    $RM out/* && rmdir out
9185    cd ..
9186    $RM -r conftest
9187    $RM conftest*
9188
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192
9193
9194
9195
9196 hard_links="nottested"
9197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9198   # do not overwrite the value of need_locks provided by the user
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9200 $as_echo_n "checking if we can lock with hard links... " >&6; }
9201   hard_links=yes
9202   $RM conftest*
9203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204   touch conftest.a
9205   ln conftest.a conftest.b 2>&5 || hard_links=no
9206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9208 $as_echo "$hard_links" >&6; }
9209   if test "$hard_links" = no; then
9210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9212     need_locks=warn
9213   fi
9214 else
9215   need_locks=no
9216 fi
9217
9218
9219
9220
9221
9222
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9225
9226   runpath_var=
9227   allow_undefined_flag=
9228   always_export_symbols=no
9229   archive_cmds=
9230   archive_expsym_cmds=
9231   compiler_needs_object=no
9232   enable_shared_with_static_runtimes=no
9233   export_dynamic_flag_spec=
9234   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9235   hardcode_automatic=no
9236   hardcode_direct=no
9237   hardcode_direct_absolute=no
9238   hardcode_libdir_flag_spec=
9239   hardcode_libdir_separator=
9240   hardcode_minus_L=no
9241   hardcode_shlibpath_var=unsupported
9242   inherit_rpath=no
9243   link_all_deplibs=unknown
9244   module_cmds=
9245   module_expsym_cmds=
9246   old_archive_from_new_cmds=
9247   old_archive_from_expsyms_cmds=
9248   thread_safe_flag_spec=
9249   whole_archive_flag_spec=
9250   # include_expsyms should be a list of space-separated symbols to be *always*
9251   # included in the symbol list
9252   include_expsyms=
9253   # exclude_expsyms can be an extended regexp of symbols to exclude
9254   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256   # as well as any symbol that contains `d'.
9257   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259   # platforms (ab)use it in PIC code, but their linkers get confused if
9260   # the symbol is explicitly referenced.  Since portable code cannot
9261   # rely on this symbol name, it's probably fine to never include it in
9262   # preloaded symbol tables.
9263   # Exclude shared library initialization/finalization symbols.
9264   extract_expsyms_cmds=
9265
9266   case $host_os in
9267   cygwin* | mingw* | pw32* | cegcc*)
9268     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269     # When not using gcc, we currently assume that we are using
9270     # Microsoft Visual C++.
9271     if test "$GCC" != yes; then
9272       with_gnu_ld=no
9273     fi
9274     ;;
9275   interix*)
9276     # we just hope/assume this is gcc and not c89 (= MSVC++)
9277     with_gnu_ld=yes
9278     ;;
9279   openbsd*)
9280     with_gnu_ld=no
9281     ;;
9282   esac
9283
9284   ld_shlibs=yes
9285
9286   # On some targets, GNU ld is compatible enough with the native linker
9287   # that we're better off using the native interface for both.
9288   lt_use_gnu_ld_interface=no
9289   if test "$with_gnu_ld" = yes; then
9290     case $host_os in
9291       aix*)
9292         # The AIX port of GNU ld has always aspired to compatibility
9293         # with the native linker.  However, as the warning in the GNU ld
9294         # block says, versions before 2.19.5* couldn't really create working
9295         # shared libraries, regardless of the interface used.
9296         case `$LD -v 2>&1` in
9297           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9298           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9299           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9300           *)
9301             lt_use_gnu_ld_interface=yes
9302             ;;
9303         esac
9304         ;;
9305       *)
9306         lt_use_gnu_ld_interface=yes
9307         ;;
9308     esac
9309   fi
9310
9311   if test "$lt_use_gnu_ld_interface" = yes; then
9312     # If archive_cmds runs LD, not CC, wlarc should be empty
9313     wlarc='${wl}'
9314
9315     # Set some defaults for GNU ld with shared library support. These
9316     # are reset later if shared libraries are not supported. Putting them
9317     # here allows them to be overridden if necessary.
9318     runpath_var=LD_RUN_PATH
9319     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320     export_dynamic_flag_spec='${wl}--export-dynamic'
9321     # ancient GNU ld didn't support --whole-archive et. al.
9322     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9323       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9324     else
9325       whole_archive_flag_spec=
9326     fi
9327     supports_anon_versioning=no
9328     case `$LD -v 2>&1` in
9329       *GNU\ gold*) supports_anon_versioning=yes ;;
9330       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9331       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9332       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9333       *\ 2.11.*) ;; # other 2.11 versions
9334       *) supports_anon_versioning=yes ;;
9335     esac
9336
9337     # See if GNU ld supports shared libraries.
9338     case $host_os in
9339     aix[3-9]*)
9340       # On AIX/PPC, the GNU linker is very broken
9341       if test "$host_cpu" != ia64; then
9342         ld_shlibs=no
9343         cat <<_LT_EOF 1>&2
9344
9345 *** Warning: the GNU linker, at least up to release 2.19, is reported
9346 *** to be unable to reliably create shared libraries on AIX.
9347 *** Therefore, libtool is disabling shared libraries support.  If you
9348 *** really care for shared libraries, you may want to install binutils
9349 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9350 *** You will then need to restart the configuration process.
9351
9352 _LT_EOF
9353       fi
9354       ;;
9355
9356     amigaos*)
9357       case $host_cpu in
9358       powerpc)
9359             # see comment about AmigaOS4 .so support
9360             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361             archive_expsym_cmds=''
9362         ;;
9363       m68k)
9364             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)'
9365             hardcode_libdir_flag_spec='-L$libdir'
9366             hardcode_minus_L=yes
9367         ;;
9368       esac
9369       ;;
9370
9371     beos*)
9372       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373         allow_undefined_flag=unsupported
9374         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9375         # support --undefined.  This deserves some investigation.  FIXME
9376         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377       else
9378         ld_shlibs=no
9379       fi
9380       ;;
9381
9382     cygwin* | mingw* | pw32* | cegcc*)
9383       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9384       # as there is no search path for DLLs.
9385       hardcode_libdir_flag_spec='-L$libdir'
9386       export_dynamic_flag_spec='${wl}--export-all-symbols'
9387       allow_undefined_flag=unsupported
9388       always_export_symbols=no
9389       enable_shared_with_static_runtimes=yes
9390       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'
9391       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9392
9393       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9395         # If the export-symbols file already is a .def file (1st line
9396         # is EXPORTS), use it as is; otherwise, prepend...
9397         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9398           cp $export_symbols $output_objdir/$soname.def;
9399         else
9400           echo EXPORTS > $output_objdir/$soname.def;
9401           cat $export_symbols >> $output_objdir/$soname.def;
9402         fi~
9403         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404       else
9405         ld_shlibs=no
9406       fi
9407       ;;
9408
9409     haiku*)
9410       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411       link_all_deplibs=yes
9412       ;;
9413
9414     interix[3-9]*)
9415       hardcode_direct=no
9416       hardcode_shlibpath_var=no
9417       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9418       export_dynamic_flag_spec='${wl}-E'
9419       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9420       # Instead, shared libraries are loaded at an image base (0x10000000 by
9421       # default) and relocated if they conflict, which is a slow very memory
9422       # consuming and fragmenting process.  To avoid this, we pick a random,
9423       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9424       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9425       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9426       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'
9427       ;;
9428
9429     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9430       tmp_diet=no
9431       if test "$host_os" = linux-dietlibc; then
9432         case $cc_basename in
9433           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9434         esac
9435       fi
9436       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9437          && test "$tmp_diet" = no
9438       then
9439         tmp_addflag=' $pic_flag'
9440         tmp_sharedflag='-shared'
9441         case $cc_basename,$host_cpu in
9442         pgcc*)                          # Portland Group C compiler
9443           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'
9444           tmp_addflag=' $pic_flag'
9445           ;;
9446         pgf77* | pgf90* | pgf95* | pgfortran*)
9447                                         # Portland Group f77 and f90 compilers
9448           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'
9449           tmp_addflag=' $pic_flag -Mnomain' ;;
9450         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9451           tmp_addflag=' -i_dynamic' ;;
9452         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9453           tmp_addflag=' -i_dynamic -nofor_main' ;;
9454         ifc* | ifort*)                  # Intel Fortran compiler
9455           tmp_addflag=' -nofor_main' ;;
9456         lf95*)                          # Lahey Fortran 8.1
9457           whole_archive_flag_spec=
9458           tmp_sharedflag='--shared' ;;
9459         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9460           tmp_sharedflag='-qmkshrobj'
9461           tmp_addflag= ;;
9462         nvcc*)  # Cuda Compiler Driver 2.2
9463           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'
9464           compiler_needs_object=yes
9465           ;;
9466         esac
9467         case `$CC -V 2>&1 | sed 5q` in
9468         *Sun\ C*)                       # Sun C 5.9
9469           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'
9470           compiler_needs_object=yes
9471           tmp_sharedflag='-G' ;;
9472         *Sun\ F*)                       # Sun Fortran 8.3
9473           tmp_sharedflag='-G' ;;
9474         esac
9475         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476
9477         if test "x$supports_anon_versioning" = xyes; then
9478           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9479             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9480             echo "local: *; };" >> $output_objdir/$libname.ver~
9481             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9482         fi
9483
9484         case $cc_basename in
9485         xlf* | bgf* | bgxlf* | mpixlf*)
9486           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9487           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9488           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9490           if test "x$supports_anon_versioning" = xyes; then
9491             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493               echo "local: *; };" >> $output_objdir/$libname.ver~
9494               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9495           fi
9496           ;;
9497         esac
9498       else
9499         ld_shlibs=no
9500       fi
9501       ;;
9502
9503     netbsd*)
9504       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9505         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9506         wlarc=
9507       else
9508         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510       fi
9511       ;;
9512
9513     solaris*)
9514       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9515         ld_shlibs=no
9516         cat <<_LT_EOF 1>&2
9517
9518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9519 *** create shared libraries on Solaris systems.  Therefore, libtool
9520 *** is disabling shared libraries support.  We urge you to upgrade GNU
9521 *** binutils to release 2.9.1 or newer.  Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9524
9525 _LT_EOF
9526       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529       else
9530         ld_shlibs=no
9531       fi
9532       ;;
9533
9534     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9535       case `$LD -v 2>&1` in
9536         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9537         ld_shlibs=no
9538         cat <<_LT_EOF 1>&2
9539
9540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9541 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9542 *** is disabling shared libraries support.  We urge you to upgrade GNU
9543 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9546
9547 _LT_EOF
9548         ;;
9549         *)
9550           # For security reasons, it is highly recommended that you always
9551           # use absolute paths for naming shared libraries, and exclude the
9552           # DT_RUNPATH tag from executables and libraries.  But doing so
9553           # requires that you compile everything twice, which is a pain.
9554           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558           else
9559             ld_shlibs=no
9560           fi
9561         ;;
9562       esac
9563       ;;
9564
9565     sunos4*)
9566       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567       wlarc=
9568       hardcode_direct=yes
9569       hardcode_shlibpath_var=no
9570       ;;
9571
9572     *)
9573       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576       else
9577         ld_shlibs=no
9578       fi
9579       ;;
9580     esac
9581
9582     if test "$ld_shlibs" = no; then
9583       runpath_var=
9584       hardcode_libdir_flag_spec=
9585       export_dynamic_flag_spec=
9586       whole_archive_flag_spec=
9587     fi
9588   else
9589     # PORTME fill in a description of your system's linker (not GNU ld)
9590     case $host_os in
9591     aix3*)
9592       allow_undefined_flag=unsupported
9593       always_export_symbols=yes
9594       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'
9595       # Note: this linker hardcodes the directories in LIBPATH if there
9596       # are no directories specified by -L.
9597       hardcode_minus_L=yes
9598       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9599         # Neither direct hardcoding nor static linking is supported with a
9600         # broken collect2.
9601         hardcode_direct=unsupported
9602       fi
9603       ;;
9604
9605     aix[4-9]*)
9606       if test "$host_cpu" = ia64; then
9607         # On IA64, the linker does run time linking by default, so we don't
9608         # have to do anything special.
9609         aix_use_runtimelinking=no
9610         exp_sym_flag='-Bexport'
9611         no_entry_flag=""
9612       else
9613         # If we're using GNU nm, then we don't want the "-C" option.
9614         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9615         # Also, AIX nm treats weak defined symbols like other global
9616         # defined symbols, whereas GNU nm marks them as "W".
9617         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9618           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'
9619         else
9620           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'
9621         fi
9622         aix_use_runtimelinking=no
9623
9624         # Test if we are trying to use run time linking or normal
9625         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626         # need to do runtime linking.
9627         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9628           for ld_flag in $LDFLAGS; do
9629           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9630             aix_use_runtimelinking=yes
9631             break
9632           fi
9633           done
9634           ;;
9635         esac
9636
9637         exp_sym_flag='-bexport'
9638         no_entry_flag='-bnoentry'
9639       fi
9640
9641       # When large executables or shared objects are built, AIX ld can
9642       # have problems creating the table of contents.  If linking a library
9643       # or program results in "error TOC overflow" add -mminimal-toc to
9644       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9645       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9646
9647       archive_cmds=''
9648       hardcode_direct=yes
9649       hardcode_direct_absolute=yes
9650       hardcode_libdir_separator=':'
9651       link_all_deplibs=yes
9652       file_list_spec='${wl}-f,'
9653
9654       if test "$GCC" = yes; then
9655         case $host_os in aix4.[012]|aix4.[012].*)
9656         # We only want to do this on AIX 4.2 and lower, the check
9657         # below for broken collect2 doesn't work under 4.3+
9658           collect2name=`${CC} -print-prog-name=collect2`
9659           if test -f "$collect2name" &&
9660            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9661           then
9662           # We have reworked collect2
9663           :
9664           else
9665           # We have old collect2
9666           hardcode_direct=unsupported
9667           # It fails to find uninstalled libraries when the uninstalled
9668           # path is not listed in the libpath.  Setting hardcode_minus_L
9669           # to unsupported forces relinking
9670           hardcode_minus_L=yes
9671           hardcode_libdir_flag_spec='-L$libdir'
9672           hardcode_libdir_separator=
9673           fi
9674           ;;
9675         esac
9676         shared_flag='-shared'
9677         if test "$aix_use_runtimelinking" = yes; then
9678           shared_flag="$shared_flag "'${wl}-G'
9679         fi
9680       else
9681         # not using gcc
9682         if test "$host_cpu" = ia64; then
9683         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9684         # chokes on -Wl,-G. The following line is correct:
9685           shared_flag='-G'
9686         else
9687           if test "$aix_use_runtimelinking" = yes; then
9688             shared_flag='${wl}-G'
9689           else
9690             shared_flag='${wl}-bM:SRE'
9691           fi
9692         fi
9693       fi
9694
9695       export_dynamic_flag_spec='${wl}-bexpall'
9696       # It seems that -bexpall does not export symbols beginning with
9697       # underscore (_), so it is better to generate a list of symbols to export.
9698       always_export_symbols=yes
9699       if test "$aix_use_runtimelinking" = yes; then
9700         # Warning - without using the other runtime loading flags (-brtl),
9701         # -berok will link without error, but may produce a broken library.
9702         allow_undefined_flag='-berok'
9703         # Determine the default libpath from the value encoded in an
9704         # empty executable.
9705         if test "${lt_cv_aix_libpath+set}" = set; then
9706   aix_libpath=$lt_cv_aix_libpath
9707 else
9708   if ${lt_cv_aix_libpath_+:} false; then :
9709   $as_echo_n "(cached) " >&6
9710 else
9711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h.  */
9713
9714 int
9715 main ()
9716 {
9717
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723
9724   lt_aix_libpath_sed='
9725       /Import File Strings/,/^$/ {
9726           /^0/ {
9727               s/^0  *\([^ ]*\) *$/\1/
9728               p
9729           }
9730       }'
9731   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732   # Check for a 64-bit object if we didn't find anything.
9733   if test -z "$lt_cv_aix_libpath_"; then
9734     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9735   fi
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738     conftest$ac_exeext conftest.$ac_ext
9739   if test -z "$lt_cv_aix_libpath_"; then
9740     lt_cv_aix_libpath_="/usr/lib:/lib"
9741   fi
9742
9743 fi
9744
9745   aix_libpath=$lt_cv_aix_libpath_
9746 fi
9747
9748         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9749         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"
9750       else
9751         if test "$host_cpu" = ia64; then
9752           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9753           allow_undefined_flag="-z nodefs"
9754           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"
9755         else
9756          # Determine the default libpath from the value encoded in an
9757          # empty executable.
9758          if test "${lt_cv_aix_libpath+set}" = set; then
9759   aix_libpath=$lt_cv_aix_libpath
9760 else
9761   if ${lt_cv_aix_libpath_+:} false; then :
9762   $as_echo_n "(cached) " >&6
9763 else
9764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h.  */
9766
9767 int
9768 main ()
9769 {
9770
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9776
9777   lt_aix_libpath_sed='
9778       /Import File Strings/,/^$/ {
9779           /^0/ {
9780               s/^0  *\([^ ]*\) *$/\1/
9781               p
9782           }
9783       }'
9784   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785   # Check for a 64-bit object if we didn't find anything.
9786   if test -z "$lt_cv_aix_libpath_"; then
9787     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788   fi
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791     conftest$ac_exeext conftest.$ac_ext
9792   if test -z "$lt_cv_aix_libpath_"; then
9793     lt_cv_aix_libpath_="/usr/lib:/lib"
9794   fi
9795
9796 fi
9797
9798   aix_libpath=$lt_cv_aix_libpath_
9799 fi
9800
9801          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802           # Warning - without using the other run time loading flags,
9803           # -berok will link without error, but may produce a broken library.
9804           no_undefined_flag=' ${wl}-bernotok'
9805           allow_undefined_flag=' ${wl}-berok'
9806           if test "$with_gnu_ld" = yes; then
9807             # We only use this code for GNU lds that support --whole-archive.
9808             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9809           else
9810             # Exported symbols can be pulled into shared objects from archives
9811             whole_archive_flag_spec='$convenience'
9812           fi
9813           archive_cmds_need_lc=yes
9814           # This is similar to how AIX traditionally builds its shared libraries.
9815           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'
9816         fi
9817       fi
9818       ;;
9819
9820     amigaos*)
9821       case $host_cpu in
9822       powerpc)
9823             # see comment about AmigaOS4 .so support
9824             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9825             archive_expsym_cmds=''
9826         ;;
9827       m68k)
9828             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)'
9829             hardcode_libdir_flag_spec='-L$libdir'
9830             hardcode_minus_L=yes
9831         ;;
9832       esac
9833       ;;
9834
9835     bsdi[45]*)
9836       export_dynamic_flag_spec=-rdynamic
9837       ;;
9838
9839     cygwin* | mingw* | pw32* | cegcc*)
9840       # When not using gcc, we currently assume that we are using
9841       # Microsoft Visual C++.
9842       # hardcode_libdir_flag_spec is actually meaningless, as there is
9843       # no search path for DLLs.
9844       case $cc_basename in
9845       cl*)
9846         # Native MSVC
9847         hardcode_libdir_flag_spec=' '
9848         allow_undefined_flag=unsupported
9849         always_export_symbols=yes
9850         file_list_spec='@'
9851         # Tell ltmain to make .lib files, not .a files.
9852         libext=lib
9853         # Tell ltmain to make .dll files, not .so files.
9854         shrext_cmds=".dll"
9855         # FIXME: Setting linknames here is a bad hack.
9856         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9857         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9858             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9859           else
9860             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9861           fi~
9862           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9863           linknames='
9864         # The linker will not automatically build a static lib if we build a DLL.
9865         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9866         enable_shared_with_static_runtimes=yes
9867         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9868         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9869         # Don't use ranlib
9870         old_postinstall_cmds='chmod 644 $oldlib'
9871         postlink_cmds='lt_outputfile="@OUTPUT@"~
9872           lt_tool_outputfile="@TOOL_OUTPUT@"~
9873           case $lt_outputfile in
9874             *.exe|*.EXE) ;;
9875             *)
9876               lt_outputfile="$lt_outputfile.exe"
9877               lt_tool_outputfile="$lt_tool_outputfile.exe"
9878               ;;
9879           esac~
9880           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9881             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9882             $RM "$lt_outputfile.manifest";
9883           fi'
9884         ;;
9885       *)
9886         # Assume MSVC wrapper
9887         hardcode_libdir_flag_spec=' '
9888         allow_undefined_flag=unsupported
9889         # Tell ltmain to make .lib files, not .a files.
9890         libext=lib
9891         # Tell ltmain to make .dll files, not .so files.
9892         shrext_cmds=".dll"
9893         # FIXME: Setting linknames here is a bad hack.
9894         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9895         # The linker will automatically build a .lib file if we build a DLL.
9896         old_archive_from_new_cmds='true'
9897         # FIXME: Should let the user specify the lib program.
9898         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9899         enable_shared_with_static_runtimes=yes
9900         ;;
9901       esac
9902       ;;
9903
9904     darwin* | rhapsody*)
9905
9906
9907   archive_cmds_need_lc=no
9908   hardcode_direct=no
9909   hardcode_automatic=yes
9910   hardcode_shlibpath_var=unsupported
9911   if test "$lt_cv_ld_force_load" = "yes"; then
9912     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\"`'
9913
9914   else
9915     whole_archive_flag_spec=''
9916   fi
9917   link_all_deplibs=yes
9918   allow_undefined_flag="$_lt_dar_allow_undefined"
9919   case $cc_basename in
9920      ifort*) _lt_dar_can_shared=yes ;;
9921      *) _lt_dar_can_shared=$GCC ;;
9922   esac
9923   if test "$_lt_dar_can_shared" = "yes"; then
9924     output_verbose_link_cmd=func_echo_all
9925     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927     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}"
9928     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}"
9929
9930   else
9931   ld_shlibs=no
9932   fi
9933
9934       ;;
9935
9936     dgux*)
9937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938       hardcode_libdir_flag_spec='-L$libdir'
9939       hardcode_shlibpath_var=no
9940       ;;
9941
9942     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943     # support.  Future versions do this automatically, but an explicit c++rt0.o
9944     # does not break anything, and helps significantly (at the cost of a little
9945     # extra space).
9946     freebsd2.2*)
9947       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948       hardcode_libdir_flag_spec='-R$libdir'
9949       hardcode_direct=yes
9950       hardcode_shlibpath_var=no
9951       ;;
9952
9953     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9954     freebsd2.*)
9955       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9956       hardcode_direct=yes
9957       hardcode_minus_L=yes
9958       hardcode_shlibpath_var=no
9959       ;;
9960
9961     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962     freebsd* | dragonfly*)
9963       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964       hardcode_libdir_flag_spec='-R$libdir'
9965       hardcode_direct=yes
9966       hardcode_shlibpath_var=no
9967       ;;
9968
9969     hpux9*)
9970       if test "$GCC" = yes; then
9971         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'
9972       else
9973         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'
9974       fi
9975       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976       hardcode_libdir_separator=:
9977       hardcode_direct=yes
9978
9979       # hardcode_minus_L: Not really in the search PATH,
9980       # but as the default location of the library.
9981       hardcode_minus_L=yes
9982       export_dynamic_flag_spec='${wl}-E'
9983       ;;
9984
9985     hpux10*)
9986       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9987         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988       else
9989         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990       fi
9991       if test "$with_gnu_ld" = no; then
9992         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993         hardcode_libdir_separator=:
9994         hardcode_direct=yes
9995         hardcode_direct_absolute=yes
9996         export_dynamic_flag_spec='${wl}-E'
9997         # hardcode_minus_L: Not really in the search PATH,
9998         # but as the default location of the library.
9999         hardcode_minus_L=yes
10000       fi
10001       ;;
10002
10003     hpux11*)
10004       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10005         case $host_cpu in
10006         hppa*64*)
10007           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10008           ;;
10009         ia64*)
10010           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10011           ;;
10012         *)
10013           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014           ;;
10015         esac
10016       else
10017         case $host_cpu in
10018         hppa*64*)
10019           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         ia64*)
10022           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023           ;;
10024         *)
10025
10026           # Older versions of the 11.00 compiler do not understand -b yet
10027           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10028           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10029 $as_echo_n "checking if $CC understands -b... " >&6; }
10030 if ${lt_cv_prog_compiler__b+:} false; then :
10031   $as_echo_n "(cached) " >&6
10032 else
10033   lt_cv_prog_compiler__b=no
10034    save_LDFLAGS="$LDFLAGS"
10035    LDFLAGS="$LDFLAGS -b"
10036    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10037    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10038      # The linker can only warn and ignore the option if not recognized
10039      # So say no if there are warnings
10040      if test -s conftest.err; then
10041        # Append any errors to the config.log.
10042        cat conftest.err 1>&5
10043        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10044        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10045        if diff conftest.exp conftest.er2 >/dev/null; then
10046          lt_cv_prog_compiler__b=yes
10047        fi
10048      else
10049        lt_cv_prog_compiler__b=yes
10050      fi
10051    fi
10052    $RM -r conftest*
10053    LDFLAGS="$save_LDFLAGS"
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10057 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10058
10059 if test x"$lt_cv_prog_compiler__b" = xyes; then
10060     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061 else
10062     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10063 fi
10064
10065           ;;
10066         esac
10067       fi
10068       if test "$with_gnu_ld" = no; then
10069         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070         hardcode_libdir_separator=:
10071
10072         case $host_cpu in
10073         hppa*64*|ia64*)
10074           hardcode_direct=no
10075           hardcode_shlibpath_var=no
10076           ;;
10077         *)
10078           hardcode_direct=yes
10079           hardcode_direct_absolute=yes
10080           export_dynamic_flag_spec='${wl}-E'
10081
10082           # hardcode_minus_L: Not really in the search PATH,
10083           # but as the default location of the library.
10084           hardcode_minus_L=yes
10085           ;;
10086         esac
10087       fi
10088       ;;
10089
10090     irix5* | irix6* | nonstopux*)
10091       if test "$GCC" = yes; then
10092         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'
10093         # Try to use the -exported_symbol ld option, if it does not
10094         # work, assume that -exports_file does not work either and
10095         # implicitly export all symbols.
10096         # This should be the same for all languages, so no per-tag cache variable.
10097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10098 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10099 if ${lt_cv_irix_exported_symbol+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   save_LDFLAGS="$LDFLAGS"
10103            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10104            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h.  */
10106 int foo (void) { return 0; }
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"; then :
10109   lt_cv_irix_exported_symbol=yes
10110 else
10111   lt_cv_irix_exported_symbol=no
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext \
10114     conftest$ac_exeext conftest.$ac_ext
10115            LDFLAGS="$save_LDFLAGS"
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10118 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10119         if test "$lt_cv_irix_exported_symbol" = yes; then
10120           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'
10121         fi
10122       else
10123         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'
10124         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'
10125       fi
10126       archive_cmds_need_lc='no'
10127       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128       hardcode_libdir_separator=:
10129       inherit_rpath=yes
10130       link_all_deplibs=yes
10131       ;;
10132
10133     netbsd*)
10134       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10135         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10136       else
10137         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10138       fi
10139       hardcode_libdir_flag_spec='-R$libdir'
10140       hardcode_direct=yes
10141       hardcode_shlibpath_var=no
10142       ;;
10143
10144     newsos6)
10145       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146       hardcode_direct=yes
10147       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148       hardcode_libdir_separator=:
10149       hardcode_shlibpath_var=no
10150       ;;
10151
10152     *nto* | *qnx*)
10153       ;;
10154
10155     openbsd*)
10156       if test -f /usr/libexec/ld.so; then
10157         hardcode_direct=yes
10158         hardcode_shlibpath_var=no
10159         hardcode_direct_absolute=yes
10160         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10161           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10163           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10164           export_dynamic_flag_spec='${wl}-E'
10165         else
10166           case $host_os in
10167            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10168              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10169              hardcode_libdir_flag_spec='-R$libdir'
10170              ;;
10171            *)
10172              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10174              ;;
10175           esac
10176         fi
10177       else
10178         ld_shlibs=no
10179       fi
10180       ;;
10181
10182     os2*)
10183       hardcode_libdir_flag_spec='-L$libdir'
10184       hardcode_minus_L=yes
10185       allow_undefined_flag=unsupported
10186       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'
10187       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10188       ;;
10189
10190     osf3*)
10191       if test "$GCC" = yes; then
10192         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10193         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'
10194       else
10195         allow_undefined_flag=' -expect_unresolved \*'
10196         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'
10197       fi
10198       archive_cmds_need_lc='no'
10199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200       hardcode_libdir_separator=:
10201       ;;
10202
10203     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10204       if test "$GCC" = yes; then
10205         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10206         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'
10207         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208       else
10209         allow_undefined_flag=' -expect_unresolved \*'
10210         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'
10211         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~
10212         $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'
10213
10214         # Both c and cxx compiler support -rpath directly
10215         hardcode_libdir_flag_spec='-rpath $libdir'
10216       fi
10217       archive_cmds_need_lc='no'
10218       hardcode_libdir_separator=:
10219       ;;
10220
10221     solaris*)
10222       no_undefined_flag=' -z defs'
10223       if test "$GCC" = yes; then
10224         wlarc='${wl}'
10225         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10226         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10227           $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'
10228       else
10229         case `$CC -V 2>&1` in
10230         *"Compilers 5.0"*)
10231           wlarc=''
10232           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10234           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10235           ;;
10236         *)
10237           wlarc='${wl}'
10238           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10239           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10240           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10241           ;;
10242         esac
10243       fi
10244       hardcode_libdir_flag_spec='-R$libdir'
10245       hardcode_shlibpath_var=no
10246       case $host_os in
10247       solaris2.[0-5] | solaris2.[0-5].*) ;;
10248       *)
10249         # The compiler driver will combine and reorder linker options,
10250         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10251         # but is careful enough not to reorder.
10252         # Supported since Solaris 2.6 (maybe 2.5.1?)
10253         if test "$GCC" = yes; then
10254           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10255         else
10256           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10257         fi
10258         ;;
10259       esac
10260       link_all_deplibs=yes
10261       ;;
10262
10263     sunos4*)
10264       if test "x$host_vendor" = xsequent; then
10265         # Use $CC to link under sequent, because it throws in some extra .o
10266         # files that make .init and .fini sections work.
10267         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10268       else
10269         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10270       fi
10271       hardcode_libdir_flag_spec='-L$libdir'
10272       hardcode_direct=yes
10273       hardcode_minus_L=yes
10274       hardcode_shlibpath_var=no
10275       ;;
10276
10277     sysv4)
10278       case $host_vendor in
10279         sni)
10280           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281           hardcode_direct=yes # is this really true???
10282         ;;
10283         siemens)
10284           ## LD is ld it makes a PLAMLIB
10285           ## CC just makes a GrossModule.
10286           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10287           reload_cmds='$CC -r -o $output$reload_objs'
10288           hardcode_direct=no
10289         ;;
10290         motorola)
10291           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10293         ;;
10294       esac
10295       runpath_var='LD_RUN_PATH'
10296       hardcode_shlibpath_var=no
10297       ;;
10298
10299     sysv4.3*)
10300       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301       hardcode_shlibpath_var=no
10302       export_dynamic_flag_spec='-Bexport'
10303       ;;
10304
10305     sysv4*MP*)
10306       if test -d /usr/nec; then
10307         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308         hardcode_shlibpath_var=no
10309         runpath_var=LD_RUN_PATH
10310         hardcode_runpath_var=yes
10311         ld_shlibs=yes
10312       fi
10313       ;;
10314
10315     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10316       no_undefined_flag='${wl}-z,text'
10317       archive_cmds_need_lc=no
10318       hardcode_shlibpath_var=no
10319       runpath_var='LD_RUN_PATH'
10320
10321       if test "$GCC" = yes; then
10322         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324       else
10325         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327       fi
10328       ;;
10329
10330     sysv5* | sco3.2v5* | sco5v6*)
10331       # Note: We can NOT use -z defs as we might desire, because we do not
10332       # link with -lc, and that would cause any symbols used from libc to
10333       # always be unresolved, which means just about no library would
10334       # ever link correctly.  If we're not using GNU ld we use -z text
10335       # though, which does catch some bad symbols but isn't as heavy-handed
10336       # as -z defs.
10337       no_undefined_flag='${wl}-z,text'
10338       allow_undefined_flag='${wl}-z,nodefs'
10339       archive_cmds_need_lc=no
10340       hardcode_shlibpath_var=no
10341       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10342       hardcode_libdir_separator=':'
10343       link_all_deplibs=yes
10344       export_dynamic_flag_spec='${wl}-Bexport'
10345       runpath_var='LD_RUN_PATH'
10346
10347       if test "$GCC" = yes; then
10348         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350       else
10351         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353       fi
10354       ;;
10355
10356     uts4*)
10357       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358       hardcode_libdir_flag_spec='-L$libdir'
10359       hardcode_shlibpath_var=no
10360       ;;
10361
10362     *)
10363       ld_shlibs=no
10364       ;;
10365     esac
10366
10367     if test x$host_vendor = xsni; then
10368       case $host in
10369       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10370         export_dynamic_flag_spec='${wl}-Blargedynsym'
10371         ;;
10372       esac
10373     fi
10374   fi
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10377 $as_echo "$ld_shlibs" >&6; }
10378 test "$ld_shlibs" = no && can_build_shared=no
10379
10380 with_gnu_ld=$with_gnu_ld
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396 #
10397 # Do we need to explicitly link libc?
10398 #
10399 case "x$archive_cmds_need_lc" in
10400 x|xyes)
10401   # Assume -lc should be added
10402   archive_cmds_need_lc=yes
10403
10404   if test "$enable_shared" = yes && test "$GCC" = yes; then
10405     case $archive_cmds in
10406     *'~'*)
10407       # FIXME: we may have to deal with multi-command sequences.
10408       ;;
10409     '$CC '*)
10410       # Test whether the compiler implicitly links with -lc since on some
10411       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10412       # to ld, don't add -lc before -lgcc.
10413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10414 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10415 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   $RM conftest*
10419         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10420
10421         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10422   (eval $ac_compile) 2>&5
10423   ac_status=$?
10424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10425   test $ac_status = 0; } 2>conftest.err; then
10426           soname=conftest
10427           lib=conftest
10428           libobjs=conftest.$ac_objext
10429           deplibs=
10430           wl=$lt_prog_compiler_wl
10431           pic_flag=$lt_prog_compiler_pic
10432           compiler_flags=-v
10433           linker_flags=-v
10434           verstring=
10435           output_objdir=.
10436           libname=conftest
10437           lt_save_allow_undefined_flag=$allow_undefined_flag
10438           allow_undefined_flag=
10439           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10440   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10441   ac_status=$?
10442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10443   test $ac_status = 0; }
10444           then
10445             lt_cv_archive_cmds_need_lc=no
10446           else
10447             lt_cv_archive_cmds_need_lc=yes
10448           fi
10449           allow_undefined_flag=$lt_save_allow_undefined_flag
10450         else
10451           cat conftest.err 1>&5
10452         fi
10453         $RM conftest*
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10457 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10458       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10459       ;;
10460     esac
10461   fi
10462   ;;
10463 esac
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10618
10619 if test "$GCC" = yes; then
10620   case $host_os in
10621     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622     *) lt_awk_arg="/^libraries:/" ;;
10623   esac
10624   case $host_os in
10625     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626     *) lt_sed_strip_eq="s,=/,/,g" ;;
10627   esac
10628   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629   case $lt_search_path_spec in
10630   *\;*)
10631     # if the path contains ";" then we assume it to be the separator
10632     # otherwise default to the standard path separator (i.e. ":") - it is
10633     # assumed that no part of a normal pathname contains ";" but that should
10634     # okay in the real world where ";" in dirpaths is itself problematic.
10635     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10636     ;;
10637   *)
10638     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10639     ;;
10640   esac
10641   # Ok, now we have the path, separated by spaces, we can step through it
10642   # and add multilib dir if necessary.
10643   lt_tmp_lt_search_path_spec=
10644   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645   for lt_sys_path in $lt_search_path_spec; do
10646     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10648     else
10649       test -d "$lt_sys_path" && \
10650         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10651     fi
10652   done
10653   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10654 BEGIN {RS=" "; FS="/|\n";} {
10655   lt_foo="";
10656   lt_count=0;
10657   for (lt_i = NF; lt_i > 0; lt_i--) {
10658     if ($lt_i != "" && $lt_i != ".") {
10659       if ($lt_i == "..") {
10660         lt_count++;
10661       } else {
10662         if (lt_count == 0) {
10663           lt_foo="/" $lt_i lt_foo;
10664         } else {
10665           lt_count--;
10666         }
10667       }
10668     }
10669   }
10670   if (lt_foo != "") { lt_freq[lt_foo]++; }
10671   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10672 }'`
10673   # AWK program above erroneously prepends '/' to C:/dos/paths
10674   # for these hosts.
10675   case $host_os in
10676     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10678   esac
10679   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10680 else
10681   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10682 fi
10683 library_names_spec=
10684 libname_spec='lib$name'
10685 soname_spec=
10686 shrext_cmds=".so"
10687 postinstall_cmds=
10688 postuninstall_cmds=
10689 finish_cmds=
10690 finish_eval=
10691 shlibpath_var=
10692 shlibpath_overrides_runpath=unknown
10693 version_type=none
10694 dynamic_linker="$host_os ld.so"
10695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696 need_lib_prefix=unknown
10697 hardcode_into_libs=no
10698
10699 # when you set need_version to no, make sure it does not cause -set_version
10700 # flags to be left without arguments
10701 need_version=unknown
10702
10703 case $host_os in
10704 aix3*)
10705   version_type=linux # correct to gnu/linux during the next big refactor
10706   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707   shlibpath_var=LIBPATH
10708
10709   # AIX 3 has no versioning support, so we append a major version to the name.
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   ;;
10712
10713 aix[4-9]*)
10714   version_type=linux # correct to gnu/linux during the next big refactor
10715   need_lib_prefix=no
10716   need_version=no
10717   hardcode_into_libs=yes
10718   if test "$host_cpu" = ia64; then
10719     # AIX 5 supports IA64
10720     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721     shlibpath_var=LD_LIBRARY_PATH
10722   else
10723     # With GCC up to 2.95.x, collect2 would create an import file
10724     # for dependence libraries.  The import file would start with
10725     # the line `#! .'.  This would cause the generated library to
10726     # depend on `.', always an invalid library.  This was fixed in
10727     # development snapshots of GCC prior to 3.0.
10728     case $host_os in
10729       aix4 | aix4.[01] | aix4.[01].*)
10730       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731            echo ' yes '
10732            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10733         :
10734       else
10735         can_build_shared=no
10736       fi
10737       ;;
10738     esac
10739     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740     # soname into executable. Probably we can add versioning support to
10741     # collect2, so additional links can be useful in future.
10742     if test "$aix_use_runtimelinking" = yes; then
10743       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744       # instead of lib<name>.a to let people know that these are not
10745       # typical AIX shared libraries.
10746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747     else
10748       # We preserve .a as extension for shared libraries through AIX4.2
10749       # and later when we are not doing run time linking.
10750       library_names_spec='${libname}${release}.a $libname.a'
10751       soname_spec='${libname}${release}${shared_ext}$major'
10752     fi
10753     shlibpath_var=LIBPATH
10754   fi
10755   ;;
10756
10757 amigaos*)
10758   case $host_cpu in
10759   powerpc)
10760     # Since July 2007 AmigaOS4 officially supports .so libraries.
10761     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763     ;;
10764   m68k)
10765     library_names_spec='$libname.ixlibrary $libname.a'
10766     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10767     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'
10768     ;;
10769   esac
10770   ;;
10771
10772 beos*)
10773   library_names_spec='${libname}${shared_ext}'
10774   dynamic_linker="$host_os ld.so"
10775   shlibpath_var=LIBRARY_PATH
10776   ;;
10777
10778 bsdi[45]*)
10779   version_type=linux # correct to gnu/linux during the next big refactor
10780   need_version=no
10781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782   soname_spec='${libname}${release}${shared_ext}$major'
10783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784   shlibpath_var=LD_LIBRARY_PATH
10785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787   # the default ld.so.conf also contains /usr/contrib/lib and
10788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789   # libtool to hard-code these into programs
10790   ;;
10791
10792 cygwin* | mingw* | pw32* | cegcc*)
10793   version_type=windows
10794   shrext_cmds=".dll"
10795   need_version=no
10796   need_lib_prefix=no
10797
10798   case $GCC,$cc_basename in
10799   yes,*)
10800     # gcc
10801     library_names_spec='$libname.dll.a'
10802     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10803     postinstall_cmds='base_file=`basename \${file}`~
10804       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10805       dldir=$destdir/`dirname \$dlpath`~
10806       test -d \$dldir || mkdir -p \$dldir~
10807       $install_prog $dir/$dlname \$dldir/$dlname~
10808       chmod a+x \$dldir/$dlname~
10809       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10810         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10811       fi'
10812     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10813       dlpath=$dir/\$dldll~
10814        $RM \$dlpath'
10815     shlibpath_overrides_runpath=yes
10816
10817     case $host_os in
10818     cygwin*)
10819       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10820       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821
10822       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10823       ;;
10824     mingw* | cegcc*)
10825       # MinGW DLLs use traditional 'lib' prefix
10826       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827       ;;
10828     pw32*)
10829       # pw32 DLLs use 'pw' prefix rather than 'lib'
10830       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10831       ;;
10832     esac
10833     dynamic_linker='Win32 ld.exe'
10834     ;;
10835
10836   *,cl*)
10837     # Native MSVC
10838     libname_spec='$name'
10839     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10840     library_names_spec='${libname}.dll.lib'
10841
10842     case $build_os in
10843     mingw*)
10844       sys_lib_search_path_spec=
10845       lt_save_ifs=$IFS
10846       IFS=';'
10847       for lt_path in $LIB
10848       do
10849         IFS=$lt_save_ifs
10850         # Let DOS variable expansion print the short 8.3 style file name.
10851         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10852         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10853       done
10854       IFS=$lt_save_ifs
10855       # Convert to MSYS style.
10856       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10857       ;;
10858     cygwin*)
10859       # Convert to unix form, then to dos form, then back to unix form
10860       # but this time dos style (no spaces!) so that the unix form looks
10861       # like /cygdrive/c/PROGRA~1:/cygdr...
10862       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10863       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10864       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10865       ;;
10866     *)
10867       sys_lib_search_path_spec="$LIB"
10868       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10869         # It is most probably a Windows format PATH.
10870         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10871       else
10872         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10873       fi
10874       # FIXME: find the short name or the path components, as spaces are
10875       # common. (e.g. "Program Files" -> "PROGRA~1")
10876       ;;
10877     esac
10878
10879     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10880     postinstall_cmds='base_file=`basename \${file}`~
10881       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10882       dldir=$destdir/`dirname \$dlpath`~
10883       test -d \$dldir || mkdir -p \$dldir~
10884       $install_prog $dir/$dlname \$dldir/$dlname'
10885     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10886       dlpath=$dir/\$dldll~
10887        $RM \$dlpath'
10888     shlibpath_overrides_runpath=yes
10889     dynamic_linker='Win32 link.exe'
10890     ;;
10891
10892   *)
10893     # Assume MSVC wrapper
10894     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10895     dynamic_linker='Win32 ld.exe'
10896     ;;
10897   esac
10898   # FIXME: first we should search . and the directory the executable is in
10899   shlibpath_var=PATH
10900   ;;
10901
10902 darwin* | rhapsody*)
10903   dynamic_linker="$host_os dyld"
10904   version_type=darwin
10905   need_lib_prefix=no
10906   need_version=no
10907   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10908   soname_spec='${libname}${release}${major}$shared_ext'
10909   shlibpath_overrides_runpath=yes
10910   shlibpath_var=DYLD_LIBRARY_PATH
10911   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10912
10913   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10914   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10915   ;;
10916
10917 dgux*)
10918   version_type=linux # correct to gnu/linux during the next big refactor
10919   need_lib_prefix=no
10920   need_version=no
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   ;;
10925
10926 freebsd* | dragonfly*)
10927   # DragonFly does not have aout.  When/if they implement a new
10928   # versioning mechanism, adjust this.
10929   if test -x /usr/bin/objformat; then
10930     objformat=`/usr/bin/objformat`
10931   else
10932     case $host_os in
10933     freebsd[23].*) objformat=aout ;;
10934     *) objformat=elf ;;
10935     esac
10936   fi
10937   version_type=freebsd-$objformat
10938   case $version_type in
10939     freebsd-elf*)
10940       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10941       need_version=no
10942       need_lib_prefix=no
10943       ;;
10944     freebsd-*)
10945       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10946       need_version=yes
10947       ;;
10948   esac
10949   shlibpath_var=LD_LIBRARY_PATH
10950   case $host_os in
10951   freebsd2.*)
10952     shlibpath_overrides_runpath=yes
10953     ;;
10954   freebsd3.[01]* | freebsdelf3.[01]*)
10955     shlibpath_overrides_runpath=yes
10956     hardcode_into_libs=yes
10957     ;;
10958   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10959   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10960     shlibpath_overrides_runpath=no
10961     hardcode_into_libs=yes
10962     ;;
10963   *) # from 4.6 on, and DragonFly
10964     shlibpath_overrides_runpath=yes
10965     hardcode_into_libs=yes
10966     ;;
10967   esac
10968   ;;
10969
10970 gnu*)
10971   version_type=linux # correct to gnu/linux during the next big refactor
10972   need_lib_prefix=no
10973   need_version=no
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=no
10978   hardcode_into_libs=yes
10979   ;;
10980
10981 haiku*)
10982   version_type=linux # correct to gnu/linux during the next big refactor
10983   need_lib_prefix=no
10984   need_version=no
10985   dynamic_linker="$host_os runtime_loader"
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   shlibpath_var=LIBRARY_PATH
10989   shlibpath_overrides_runpath=yes
10990   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10991   hardcode_into_libs=yes
10992   ;;
10993
10994 hpux9* | hpux10* | hpux11*)
10995   # Give a soname corresponding to the major version so that dld.sl refuses to
10996   # link against other versions.
10997   version_type=sunos
10998   need_lib_prefix=no
10999   need_version=no
11000   case $host_cpu in
11001   ia64*)
11002     shrext_cmds='.so'
11003     hardcode_into_libs=yes
11004     dynamic_linker="$host_os dld.so"
11005     shlibpath_var=LD_LIBRARY_PATH
11006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008     soname_spec='${libname}${release}${shared_ext}$major'
11009     if test "X$HPUX_IA64_MODE" = X32; then
11010       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11011     else
11012       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11013     fi
11014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11015     ;;
11016   hppa*64*)
11017     shrext_cmds='.sl'
11018     hardcode_into_libs=yes
11019     dynamic_linker="$host_os dld.sl"
11020     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11021     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023     soname_spec='${libname}${release}${shared_ext}$major'
11024     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11025     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11026     ;;
11027   *)
11028     shrext_cmds='.sl'
11029     dynamic_linker="$host_os dld.sl"
11030     shlibpath_var=SHLIB_PATH
11031     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033     soname_spec='${libname}${release}${shared_ext}$major'
11034     ;;
11035   esac
11036   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11037   postinstall_cmds='chmod 555 $lib'
11038   # or fails outright, so override atomically:
11039   install_override_mode=555
11040   ;;
11041
11042 interix[3-9]*)
11043   version_type=linux # correct to gnu/linux during the next big refactor
11044   need_lib_prefix=no
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   shlibpath_overrides_runpath=no
11051   hardcode_into_libs=yes
11052   ;;
11053
11054 irix5* | irix6* | nonstopux*)
11055   case $host_os in
11056     nonstopux*) version_type=nonstopux ;;
11057     *)
11058         if test "$lt_cv_prog_gnu_ld" = yes; then
11059                 version_type=linux # correct to gnu/linux during the next big refactor
11060         else
11061                 version_type=irix
11062         fi ;;
11063   esac
11064   need_lib_prefix=no
11065   need_version=no
11066   soname_spec='${libname}${release}${shared_ext}$major'
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11068   case $host_os in
11069   irix5* | nonstopux*)
11070     libsuff= shlibsuff=
11071     ;;
11072   *)
11073     case $LD in # libtool.m4 will add one of these switches to LD
11074     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11075       libsuff= shlibsuff= libmagic=32-bit;;
11076     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11077       libsuff=32 shlibsuff=N32 libmagic=N32;;
11078     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11079       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11080     *) libsuff= shlibsuff= libmagic=never-match;;
11081     esac
11082     ;;
11083   esac
11084   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11085   shlibpath_overrides_runpath=no
11086   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11087   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11088   hardcode_into_libs=yes
11089   ;;
11090
11091 # No shared lib support for Linux oldld, aout, or coff.
11092 linux*oldld* | linux*aout* | linux*coff*)
11093   dynamic_linker=no
11094   ;;
11095
11096 # This must be glibc/ELF.
11097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11098   version_type=linux # correct to gnu/linux during the next big refactor
11099   need_lib_prefix=no
11100   need_version=no
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102   soname_spec='${libname}${release}${shared_ext}$major'
11103   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=no
11106
11107   # Some binutils ld are patched to set DT_RUNPATH
11108   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   lt_cv_shlibpath_overrides_runpath=no
11112     save_LDFLAGS=$LDFLAGS
11113     save_libdir=$libdir
11114     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11115          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h.  */
11118
11119 int
11120 main ()
11121 {
11122
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11129   lt_cv_shlibpath_overrides_runpath=yes
11130 fi
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133     conftest$ac_exeext conftest.$ac_ext
11134     LDFLAGS=$save_LDFLAGS
11135     libdir=$save_libdir
11136
11137 fi
11138
11139   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11140
11141   # This implies no fast_install, which is unacceptable.
11142   # Some rework will be needed to allow for fast_install
11143   # before this can be enabled.
11144   hardcode_into_libs=yes
11145
11146   # Append ld.so.conf contents to the search path
11147   if test -f /etc/ld.so.conf; then
11148     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' ' '`
11149     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11150   fi
11151
11152   # We used to test for /lib/ld.so.1 and disable shared libraries on
11153   # powerpc, because MkLinux only supported shared libraries with the
11154   # GNU dynamic linker.  Since this was broken with cross compilers,
11155   # most powerpc-linux boxes support dynamic linking these days and
11156   # people can always --disable-shared, the test was removed, and we
11157   # assume the GNU/Linux dynamic linker is in use.
11158   dynamic_linker='GNU/Linux ld.so'
11159   ;;
11160
11161 netbsd*)
11162   version_type=sunos
11163   need_lib_prefix=no
11164   need_version=no
11165   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11167     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11168     dynamic_linker='NetBSD (a.out) ld.so'
11169   else
11170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11171     soname_spec='${libname}${release}${shared_ext}$major'
11172     dynamic_linker='NetBSD ld.elf_so'
11173   fi
11174   shlibpath_var=LD_LIBRARY_PATH
11175   shlibpath_overrides_runpath=yes
11176   hardcode_into_libs=yes
11177   ;;
11178
11179 newsos6)
11180   version_type=linux # correct to gnu/linux during the next big refactor
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   shlibpath_overrides_runpath=yes
11184   ;;
11185
11186 *nto* | *qnx*)
11187   version_type=qnx
11188   need_lib_prefix=no
11189   need_version=no
11190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191   soname_spec='${libname}${release}${shared_ext}$major'
11192   shlibpath_var=LD_LIBRARY_PATH
11193   shlibpath_overrides_runpath=no
11194   hardcode_into_libs=yes
11195   dynamic_linker='ldqnx.so'
11196   ;;
11197
11198 openbsd*)
11199   version_type=sunos
11200   sys_lib_dlsearch_path_spec="/usr/lib"
11201   need_lib_prefix=no
11202   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11203   case $host_os in
11204     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11205     *)                          need_version=no  ;;
11206   esac
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209   shlibpath_var=LD_LIBRARY_PATH
11210   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11211     case $host_os in
11212       openbsd2.[89] | openbsd2.[89].*)
11213         shlibpath_overrides_runpath=no
11214         ;;
11215       *)
11216         shlibpath_overrides_runpath=yes
11217         ;;
11218       esac
11219   else
11220     shlibpath_overrides_runpath=yes
11221   fi
11222   ;;
11223
11224 os2*)
11225   libname_spec='$name'
11226   shrext_cmds=".dll"
11227   need_lib_prefix=no
11228   library_names_spec='$libname${shared_ext} $libname.a'
11229   dynamic_linker='OS/2 ld.exe'
11230   shlibpath_var=LIBPATH
11231   ;;
11232
11233 osf3* | osf4* | osf5*)
11234   version_type=osf
11235   need_lib_prefix=no
11236   need_version=no
11237   soname_spec='${libname}${release}${shared_ext}$major'
11238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11242   ;;
11243
11244 rdos*)
11245   dynamic_linker=no
11246   ;;
11247
11248 solaris*)
11249   version_type=linux # correct to gnu/linux during the next big refactor
11250   need_lib_prefix=no
11251   need_version=no
11252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253   soname_spec='${libname}${release}${shared_ext}$major'
11254   shlibpath_var=LD_LIBRARY_PATH
11255   shlibpath_overrides_runpath=yes
11256   hardcode_into_libs=yes
11257   # ldd complains unless libraries are executable
11258   postinstall_cmds='chmod +x $lib'
11259   ;;
11260
11261 sunos4*)
11262   version_type=sunos
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11264   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11265   shlibpath_var=LD_LIBRARY_PATH
11266   shlibpath_overrides_runpath=yes
11267   if test "$with_gnu_ld" = yes; then
11268     need_lib_prefix=no
11269   fi
11270   need_version=yes
11271   ;;
11272
11273 sysv4 | sysv4.3*)
11274   version_type=linux # correct to gnu/linux during the next big refactor
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   case $host_vendor in
11279     sni)
11280       shlibpath_overrides_runpath=no
11281       need_lib_prefix=no
11282       runpath_var=LD_RUN_PATH
11283       ;;
11284     siemens)
11285       need_lib_prefix=no
11286       ;;
11287     motorola)
11288       need_lib_prefix=no
11289       need_version=no
11290       shlibpath_overrides_runpath=no
11291       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11292       ;;
11293   esac
11294   ;;
11295
11296 sysv4*MP*)
11297   if test -d /usr/nec ;then
11298     version_type=linux # correct to gnu/linux during the next big refactor
11299     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11300     soname_spec='$libname${shared_ext}.$major'
11301     shlibpath_var=LD_LIBRARY_PATH
11302   fi
11303   ;;
11304
11305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11306   version_type=freebsd-elf
11307   need_lib_prefix=no
11308   need_version=no
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310   soname_spec='${libname}${release}${shared_ext}$major'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   shlibpath_overrides_runpath=yes
11313   hardcode_into_libs=yes
11314   if test "$with_gnu_ld" = yes; then
11315     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11316   else
11317     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11318     case $host_os in
11319       sco3.2v5*)
11320         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11321         ;;
11322     esac
11323   fi
11324   sys_lib_dlsearch_path_spec='/usr/lib'
11325   ;;
11326
11327 tpf*)
11328   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11329   version_type=linux # correct to gnu/linux during the next big refactor
11330   need_lib_prefix=no
11331   need_version=no
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333   shlibpath_var=LD_LIBRARY_PATH
11334   shlibpath_overrides_runpath=no
11335   hardcode_into_libs=yes
11336   ;;
11337
11338 uts4*)
11339   version_type=linux # correct to gnu/linux during the next big refactor
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   soname_spec='${libname}${release}${shared_ext}$major'
11342   shlibpath_var=LD_LIBRARY_PATH
11343   ;;
11344
11345 *)
11346   dynamic_linker=no
11347   ;;
11348 esac
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11350 $as_echo "$dynamic_linker" >&6; }
11351 test "$dynamic_linker" = no && can_build_shared=no
11352
11353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11354 if test "$GCC" = yes; then
11355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11356 fi
11357
11358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11359   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11360 fi
11361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11362   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11363 fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11457 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11458 hardcode_action=
11459 if test -n "$hardcode_libdir_flag_spec" ||
11460    test -n "$runpath_var" ||
11461    test "X$hardcode_automatic" = "Xyes" ; then
11462
11463   # We can hardcode non-existent directories.
11464   if test "$hardcode_direct" != no &&
11465      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11466      # have to relink, otherwise we might link with an installed library
11467      # when we should be linking with a yet-to-be-installed one
11468      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11469      test "$hardcode_minus_L" != no; then
11470     # Linking always hardcodes the temporary library directory.
11471     hardcode_action=relink
11472   else
11473     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11474     hardcode_action=immediate
11475   fi
11476 else
11477   # We cannot hardcode anything, or else we can only hardcode existing
11478   # directories.
11479   hardcode_action=unsupported
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11482 $as_echo "$hardcode_action" >&6; }
11483
11484 if test "$hardcode_action" = relink ||
11485    test "$inherit_rpath" = yes; then
11486   # Fast installation is not supported
11487   enable_fast_install=no
11488 elif test "$shlibpath_overrides_runpath" = yes ||
11489      test "$enable_shared" = no; then
11490   # Fast installation is not necessary
11491   enable_fast_install=needless
11492 fi
11493
11494
11495
11496
11497
11498
11499   if test "x$enable_dlopen" != xyes; then
11500   enable_dlopen=unknown
11501   enable_dlopen_self=unknown
11502   enable_dlopen_self_static=unknown
11503 else
11504   lt_cv_dlopen=no
11505   lt_cv_dlopen_libs=
11506
11507   case $host_os in
11508   beos*)
11509     lt_cv_dlopen="load_add_on"
11510     lt_cv_dlopen_libs=
11511     lt_cv_dlopen_self=yes
11512     ;;
11513
11514   mingw* | pw32* | cegcc*)
11515     lt_cv_dlopen="LoadLibrary"
11516     lt_cv_dlopen_libs=
11517     ;;
11518
11519   cygwin*)
11520     lt_cv_dlopen="dlopen"
11521     lt_cv_dlopen_libs=
11522     ;;
11523
11524   darwin*)
11525   # if libdl is installed we need to link against it
11526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11528 if ${ac_cv_lib_dl_dlopen+:} false; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531   ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-ldl  $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h.  */
11535
11536 /* Override any GCC internal prototype to avoid an error.
11537    Use char because int might match the return type of a GCC
11538    builtin and then its argument prototype would still apply.  */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char dlopen ();
11543 int
11544 main ()
11545 {
11546 return dlopen ();
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552   ac_cv_lib_dl_dlopen=yes
11553 else
11554   ac_cv_lib_dl_dlopen=no
11555 fi
11556 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11564 else
11565
11566     lt_cv_dlopen="dyld"
11567     lt_cv_dlopen_libs=
11568     lt_cv_dlopen_self=yes
11569
11570 fi
11571
11572     ;;
11573
11574   *)
11575     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11576 if test "x$ac_cv_func_shl_load" = xyes; then :
11577   lt_cv_dlopen="shl_load"
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_shl_load+:} false; then :
11582   $as_echo_n "(cached) " >&6
11583 else
11584   ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-ldld  $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h.  */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590    Use char because int might match the return type of a GCC
11591    builtin and then its argument prototype would still apply.  */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char shl_load ();
11596 int
11597 main ()
11598 {
11599 return shl_load ();
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605   ac_cv_lib_dld_shl_load=yes
11606 else
11607   ac_cv_lib_dld_shl_load=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610     conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11616   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11617 else
11618   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11619 if test "x$ac_cv_func_dlopen" = xyes; then :
11620   lt_cv_dlopen="dlopen"
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11624 if ${ac_cv_lib_dl_dlopen+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-ldl  $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h.  */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633    Use char because int might match the return type of a GCC
11634    builtin and then its argument prototype would still apply.  */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char dlopen ();
11639 int
11640 main ()
11641 {
11642 return dlopen ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648   ac_cv_lib_dl_dlopen=yes
11649 else
11650   ac_cv_lib_dl_dlopen=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653     conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11659   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11660 else
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11663 if ${ac_cv_lib_svld_dlopen+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lsvld  $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h.  */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char dlopen ();
11678 int
11679 main ()
11680 {
11681 return dlopen ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687   ac_cv_lib_svld_dlopen=yes
11688 else
11689   ac_cv_lib_svld_dlopen=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11698   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11699 else
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_dld_link+:} false; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-ldld  $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char dld_link ();
11717 int
11718 main ()
11719 {
11720 return dld_link ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726   ac_cv_lib_dld_dld_link=yes
11727 else
11728   ac_cv_lib_dld_dld_link=no
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731     conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11737   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11738 fi
11739
11740
11741 fi
11742
11743
11744 fi
11745
11746
11747 fi
11748
11749
11750 fi
11751
11752
11753 fi
11754
11755     ;;
11756   esac
11757
11758   if test "x$lt_cv_dlopen" != xno; then
11759     enable_dlopen=yes
11760   else
11761     enable_dlopen=no
11762   fi
11763
11764   case $lt_cv_dlopen in
11765   dlopen)
11766     save_CPPFLAGS="$CPPFLAGS"
11767     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11768
11769     save_LDFLAGS="$LDFLAGS"
11770     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11771
11772     save_LIBS="$LIBS"
11773     LIBS="$lt_cv_dlopen_libs $LIBS"
11774
11775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11777 if ${lt_cv_dlopen_self+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780           if test "$cross_compiling" = yes; then :
11781   lt_cv_dlopen_self=cross
11782 else
11783   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784   lt_status=$lt_dlunknown
11785   cat > conftest.$ac_ext <<_LT_EOF
11786 #line $LINENO "configure"
11787 #include "confdefs.h"
11788
11789 #if HAVE_DLFCN_H
11790 #include <dlfcn.h>
11791 #endif
11792
11793 #include <stdio.h>
11794
11795 #ifdef RTLD_GLOBAL
11796 #  define LT_DLGLOBAL           RTLD_GLOBAL
11797 #else
11798 #  ifdef DL_GLOBAL
11799 #    define LT_DLGLOBAL         DL_GLOBAL
11800 #  else
11801 #    define LT_DLGLOBAL         0
11802 #  endif
11803 #endif
11804
11805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806    find out it does not work in some platform. */
11807 #ifndef LT_DLLAZY_OR_NOW
11808 #  ifdef RTLD_LAZY
11809 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11810 #  else
11811 #    ifdef DL_LAZY
11812 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11813 #    else
11814 #      ifdef RTLD_NOW
11815 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11816 #      else
11817 #        ifdef DL_NOW
11818 #          define LT_DLLAZY_OR_NOW      DL_NOW
11819 #        else
11820 #          define LT_DLLAZY_OR_NOW      0
11821 #        endif
11822 #      endif
11823 #    endif
11824 #  endif
11825 #endif
11826
11827 /* When -fvisbility=hidden is used, assume the code has been annotated
11828    correspondingly for the symbols needed.  */
11829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11830 int fnord () __attribute__((visibility("default")));
11831 #endif
11832
11833 int fnord () { return 42; }
11834 int main ()
11835 {
11836   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11837   int status = $lt_dlunknown;
11838
11839   if (self)
11840     {
11841       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11842       else
11843         {
11844           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11845           else puts (dlerror ());
11846         }
11847       /* dlclose (self); */
11848     }
11849   else
11850     puts (dlerror ());
11851
11852   return status;
11853 }
11854 _LT_EOF
11855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11856   (eval $ac_link) 2>&5
11857   ac_status=$?
11858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11860     (./conftest; exit; ) >&5 2>/dev/null
11861     lt_status=$?
11862     case x$lt_status in
11863       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11864       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11865       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11866     esac
11867   else :
11868     # compilation failed
11869     lt_cv_dlopen_self=no
11870   fi
11871 fi
11872 rm -fr conftest*
11873
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11877 $as_echo "$lt_cv_dlopen_self" >&6; }
11878
11879     if test "x$lt_cv_dlopen_self" = xyes; then
11880       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11881       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11882 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11883 if ${lt_cv_dlopen_self_static+:} false; then :
11884   $as_echo_n "(cached) " >&6
11885 else
11886           if test "$cross_compiling" = yes; then :
11887   lt_cv_dlopen_self_static=cross
11888 else
11889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11890   lt_status=$lt_dlunknown
11891   cat > conftest.$ac_ext <<_LT_EOF
11892 #line $LINENO "configure"
11893 #include "confdefs.h"
11894
11895 #if HAVE_DLFCN_H
11896 #include <dlfcn.h>
11897 #endif
11898
11899 #include <stdio.h>
11900
11901 #ifdef RTLD_GLOBAL
11902 #  define LT_DLGLOBAL           RTLD_GLOBAL
11903 #else
11904 #  ifdef DL_GLOBAL
11905 #    define LT_DLGLOBAL         DL_GLOBAL
11906 #  else
11907 #    define LT_DLGLOBAL         0
11908 #  endif
11909 #endif
11910
11911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11912    find out it does not work in some platform. */
11913 #ifndef LT_DLLAZY_OR_NOW
11914 #  ifdef RTLD_LAZY
11915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11916 #  else
11917 #    ifdef DL_LAZY
11918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11919 #    else
11920 #      ifdef RTLD_NOW
11921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11922 #      else
11923 #        ifdef DL_NOW
11924 #          define LT_DLLAZY_OR_NOW      DL_NOW
11925 #        else
11926 #          define LT_DLLAZY_OR_NOW      0
11927 #        endif
11928 #      endif
11929 #    endif
11930 #  endif
11931 #endif
11932
11933 /* When -fvisbility=hidden is used, assume the code has been annotated
11934    correspondingly for the symbols needed.  */
11935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11936 int fnord () __attribute__((visibility("default")));
11937 #endif
11938
11939 int fnord () { return 42; }
11940 int main ()
11941 {
11942   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11943   int status = $lt_dlunknown;
11944
11945   if (self)
11946     {
11947       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11948       else
11949         {
11950           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11951           else puts (dlerror ());
11952         }
11953       /* dlclose (self); */
11954     }
11955   else
11956     puts (dlerror ());
11957
11958   return status;
11959 }
11960 _LT_EOF
11961   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11962   (eval $ac_link) 2>&5
11963   ac_status=$?
11964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11965   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11966     (./conftest; exit; ) >&5 2>/dev/null
11967     lt_status=$?
11968     case x$lt_status in
11969       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11970       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11971       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11972     esac
11973   else :
11974     # compilation failed
11975     lt_cv_dlopen_self_static=no
11976   fi
11977 fi
11978 rm -fr conftest*
11979
11980
11981 fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11984     fi
11985
11986     CPPFLAGS="$save_CPPFLAGS"
11987     LDFLAGS="$save_LDFLAGS"
11988     LIBS="$save_LIBS"
11989     ;;
11990   esac
11991
11992   case $lt_cv_dlopen_self in
11993   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11994   *) enable_dlopen_self=unknown ;;
11995   esac
11996
11997   case $lt_cv_dlopen_self_static in
11998   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11999   *) enable_dlopen_self_static=unknown ;;
12000   esac
12001 fi
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 striplib=
12020 old_striplib=
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12022 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12023 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12024   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12025   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12028 else
12029 # FIXME - insert some real tests, host_os isn't really good enough
12030   case $host_os in
12031   darwin*)
12032     if test -n "$STRIP" ; then
12033       striplib="$STRIP -x"
12034       old_striplib="$STRIP -S"
12035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037     else
12038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040     fi
12041     ;;
12042   *)
12043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045     ;;
12046   esac
12047 fi
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060   # Report which library types will actually be built
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12062 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12064 $as_echo "$can_build_shared" >&6; }
12065
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12067 $as_echo_n "checking whether to build shared libraries... " >&6; }
12068   test "$can_build_shared" = "no" && enable_shared=no
12069
12070   # On AIX, shared libraries and static libraries use the same namespace, and
12071   # are all built from PIC.
12072   case $host_os in
12073   aix3*)
12074     test "$enable_shared" = yes && enable_static=no
12075     if test -n "$RANLIB"; then
12076       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12077       postinstall_cmds='$RANLIB $lib'
12078     fi
12079     ;;
12080
12081   aix[4-9]*)
12082     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12083       test "$enable_shared" = yes && enable_static=no
12084     fi
12085     ;;
12086   esac
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12088 $as_echo "$enable_shared" >&6; }
12089
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12091 $as_echo_n "checking whether to build static libraries... " >&6; }
12092   # Make sure either enable_shared or enable_static is yes.
12093   test "$enable_shared" = yes || enable_static=yes
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12095 $as_echo "$enable_static" >&6; }
12096
12097
12098
12099
12100 fi
12101 ac_ext=c
12102 ac_cpp='$CPP $CPPFLAGS'
12103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106
12107 CC="$lt_save_CC"
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123         ac_config_commands="$ac_config_commands libtool"
12124
12125
12126
12127
12128 # Only expand once:
12129
12130
12131
12132
12133 # On Solaris 10 and 12 CPP gets set to cc -E, however this still
12134 # does some input parsing.  We need strict ANSI-C style tokenization,
12135 # check this:
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
12138 $as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141 1.1.1 16BIT
12142 _ACEOF
12143 if ac_fn_c_try_cpp "$LINENO"; then :
12144   DFNCPP="$CPP"
12145 else
12146     DFNCPP=""
12147       sav_CPP="$CPP"
12148       for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"
12149       do
12150          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h.  */
12152 1.1.1 16BIT
12153 _ACEOF
12154 if ac_fn_c_try_cpp "$LINENO"; then :
12155   DFNCPP="$CPP"
12156             break
12157 fi
12158 rm -f conftest.err conftest.i conftest.$ac_ext
12159       done
12160       CPP="$sav_CPP"
12161
12162 fi
12163 rm -f conftest.err conftest.i conftest.$ac_ext
12164 if test -n "$DFNCPP"; then
12165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
12166 $as_echo "$DFNCPP" >&6; }
12167
12168 else
12169    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12171 as_fn_error 1 "not found
12172 See \`config.log' for more details" "$LINENO" 5; }
12173 fi
12174
12175 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12176 # checks the compiler with a program that generates a warning), add the
12177 # following option to deal with this
12178
12179 # Check whether --enable-werror was given.
12180 if test "${enable_werror+set}" = set; then :
12181   enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12182     if test "$enable_werror" != "no"; then
12183       sav_CFLAGS="$CFLAGS"
12184       CFLAGS="$enable_werror $CFLAGS"
12185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12186 $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12187       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h.  */
12189
12190             int main(int argc, char **argv){
12191             return argv[argc-1][0];
12192             }
12193 _ACEOF
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12196 $as_echo "yes" >&6; }
12197          PNG_COPTS="$PNG_COPTS $enable_werror"
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203       CFLAGS="$sav_CFLAGS"
12204     fi
12205 fi
12206
12207
12208 # Checks for header files.
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12210 $as_echo_n "checking for ANSI C header files... " >&6; }
12211 if ${ac_cv_header_stdc+:} false; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216 #include <stdlib.h>
12217 #include <stdarg.h>
12218 #include <string.h>
12219 #include <float.h>
12220
12221 int
12222 main ()
12223 {
12224
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_compile "$LINENO"; then :
12230   ac_cv_header_stdc=yes
12231 else
12232   ac_cv_header_stdc=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235
12236 if test $ac_cv_header_stdc = yes; then
12237   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h.  */
12240 #include <string.h>
12241
12242 _ACEOF
12243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12244   $EGREP "memchr" >/dev/null 2>&1; then :
12245
12246 else
12247   ac_cv_header_stdc=no
12248 fi
12249 rm -f conftest*
12250
12251 fi
12252
12253 if test $ac_cv_header_stdc = yes; then
12254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h.  */
12257 #include <stdlib.h>
12258
12259 _ACEOF
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261   $EGREP "free" >/dev/null 2>&1; then :
12262
12263 else
12264   ac_cv_header_stdc=no
12265 fi
12266 rm -f conftest*
12267
12268 fi
12269
12270 if test $ac_cv_header_stdc = yes; then
12271   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12272   if test "$cross_compiling" = yes; then :
12273   :
12274 else
12275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12277 #include <ctype.h>
12278 #include <stdlib.h>
12279 #if ((' ' & 0x0FF) == 0x020)
12280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12282 #else
12283 # define ISLOWER(c) \
12284                    (('a' <= (c) && (c) <= 'i') \
12285                      || ('j' <= (c) && (c) <= 'r') \
12286                      || ('s' <= (c) && (c) <= 'z'))
12287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12288 #endif
12289
12290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12291 int
12292 main ()
12293 {
12294   int i;
12295   for (i = 0; i < 256; i++)
12296     if (XOR (islower (i), ISLOWER (i))
12297         || toupper (i) != TOUPPER (i))
12298       return 2;
12299   return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_run "$LINENO"; then :
12303
12304 else
12305   ac_cv_header_stdc=no
12306 fi
12307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12308   conftest.$ac_objext conftest.beam conftest.$ac_ext
12309 fi
12310
12311 fi
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12314 $as_echo "$ac_cv_header_stdc" >&6; }
12315 if test $ac_cv_header_stdc = yes; then
12316
12317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12318
12319 fi
12320
12321 for ac_header in malloc.h stdlib.h string.h strings.h
12322 do :
12323   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12326   cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 _ACEOF
12329
12330 fi
12331
12332 done
12333
12334
12335 # Checks for typedefs, structures, and compiler characteristics.
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12337 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12338 if ${ac_cv_c_const+:} false; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343
12344 int
12345 main ()
12346 {
12347
12348 #ifndef __cplusplus
12349   /* Ultrix mips cc rejects this sort of thing.  */
12350   typedef int charset[2];
12351   const charset cs = { 0, 0 };
12352   /* SunOS 4.1.1 cc rejects this.  */
12353   char const *const *pcpcc;
12354   char **ppc;
12355   /* NEC SVR4.0.2 mips cc rejects this.  */
12356   struct point {int x, y;};
12357   static struct point const zero = {0,0};
12358   /* AIX XL C 1.02.0.0 rejects this.
12359      It does not let you subtract one const X* pointer from another in
12360      an arm of an if-expression whose if-part is not a constant
12361      expression */
12362   const char *g = "string";
12363   pcpcc = &g + (g ? g-g : 0);
12364   /* HPUX 7.0 cc rejects these. */
12365   ++pcpcc;
12366   ppc = (char**) pcpcc;
12367   pcpcc = (char const *const *) ppc;
12368   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12369     char tx;
12370     char *t = &tx;
12371     char const *s = 0 ? (char *) 0 : (char const *) 0;
12372
12373     *t++ = 0;
12374     if (s) return 0;
12375   }
12376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12377     int x[] = {25, 17};
12378     const int *foo = &x[0];
12379     ++foo;
12380   }
12381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12382     typedef const int *iptr;
12383     iptr p = 0;
12384     ++p;
12385   }
12386   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12388     struct s { int j; const int *ap[3]; } bx;
12389     struct s *b = &bx; b->j = 5;
12390   }
12391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12392     const int foo = 10;
12393     if (!foo) return 0;
12394   }
12395   return !cs[0] && !zero.x;
12396 #endif
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403   ac_cv_c_const=yes
12404 else
12405   ac_cv_c_const=no
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12410 $as_echo "$ac_cv_c_const" >&6; }
12411 if test $ac_cv_c_const = no; then
12412
12413 $as_echo "#define const /**/" >>confdefs.h
12414
12415 fi
12416
12417 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12418 if test "x$ac_cv_type_size_t" = xyes; then :
12419
12420 else
12421
12422 cat >>confdefs.h <<_ACEOF
12423 #define size_t unsigned int
12424 _ACEOF
12425
12426 fi
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12429 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12430 if ${ac_cv_struct_tm+:} false; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435 #include <sys/types.h>
12436 #include <time.h>
12437
12438 int
12439 main ()
12440 {
12441 struct tm tm;
12442                                      int *p = &tm.tm_sec;
12443                                      return !p;
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_compile "$LINENO"; then :
12449   ac_cv_struct_tm=time.h
12450 else
12451   ac_cv_struct_tm=sys/time.h
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12456 $as_echo "$ac_cv_struct_tm" >&6; }
12457 if test $ac_cv_struct_tm = sys/time.h; then
12458
12459 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12460
12461 fi
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12464 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12465 if ${ac_cv_c_restrict+:} false; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468   ac_cv_c_restrict=no
12469    # The order here caters to the fact that C++ does not require restrict.
12470    for ac_kw in __restrict __restrict__ _Restrict restrict; do
12471      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473 typedef int * int_ptr;
12474         int foo (int_ptr $ac_kw ip) {
12475         return ip[0];
12476        }
12477 int
12478 main ()
12479 {
12480 int s[1];
12481         int * $ac_kw t = s;
12482         t[0] = 0;
12483         return foo(t)
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 if ac_fn_c_try_compile "$LINENO"; then :
12489   ac_cv_c_restrict=$ac_kw
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492      test "$ac_cv_c_restrict" != no && break
12493    done
12494
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12497 $as_echo "$ac_cv_c_restrict" >&6; }
12498
12499  case $ac_cv_c_restrict in
12500    restrict) ;;
12501    no) $as_echo "#define restrict /**/" >>confdefs.h
12502  ;;
12503    *)  cat >>confdefs.h <<_ACEOF
12504 #define restrict $ac_cv_c_restrict
12505 _ACEOF
12506  ;;
12507  esac
12508
12509
12510 # Checks for library functions.
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12512 $as_echo_n "checking for working strtod... " >&6; }
12513 if ${ac_cv_func_strtod+:} false; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   if test "$cross_compiling" = yes; then :
12517   ac_cv_func_strtod=no
12518 else
12519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h.  */
12521
12522 $ac_includes_default
12523 #ifndef strtod
12524 double strtod ();
12525 #endif
12526 int
12527 main()
12528 {
12529   {
12530     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12531     char *string = " +69";
12532     char *term;
12533     double value;
12534     value = strtod (string, &term);
12535     if (value != 69 || term != (string + 4))
12536       return 1;
12537   }
12538
12539   {
12540     /* Under Solaris 2.4, strtod returns the wrong value for the
12541        terminating character under some conditions.  */
12542     char *string = "NaN";
12543     char *term;
12544     strtod (string, &term);
12545     if (term != string && *(term - 1) == 0)
12546       return 1;
12547   }
12548   return 0;
12549 }
12550
12551 _ACEOF
12552 if ac_fn_c_try_run "$LINENO"; then :
12553   ac_cv_func_strtod=yes
12554 else
12555   ac_cv_func_strtod=no
12556 fi
12557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12558   conftest.$ac_objext conftest.beam conftest.$ac_ext
12559 fi
12560
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12563 $as_echo "$ac_cv_func_strtod" >&6; }
12564 if test $ac_cv_func_strtod = no; then
12565   case " $LIBOBJS " in
12566   *" strtod.$ac_objext "* ) ;;
12567   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12568  ;;
12569 esac
12570
12571 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12572 if test "x$ac_cv_func_pow" = xyes; then :
12573
12574 fi
12575
12576 if test $ac_cv_func_pow = no; then
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12578 $as_echo_n "checking for pow in -lm... " >&6; }
12579 if ${ac_cv_lib_m_pow+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lm  $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588    Use char because int might match the return type of a GCC
12589    builtin and then its argument prototype would still apply.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char pow ();
12594 int
12595 main ()
12596 {
12597 return pow ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603   ac_cv_lib_m_pow=yes
12604 else
12605   ac_cv_lib_m_pow=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608     conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12612 $as_echo "$ac_cv_lib_m_pow" >&6; }
12613 if test "x$ac_cv_lib_m_pow" = xyes; then :
12614   POW_LIB=-lm
12615 else
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12617 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12618 fi
12619
12620 fi
12621
12622 fi
12623
12624 for ac_func in memset
12625 do :
12626   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12627 if test "x$ac_cv_func_memset" = xyes; then :
12628   cat >>confdefs.h <<_ACEOF
12629 #define HAVE_MEMSET 1
12630 _ACEOF
12631
12632 else
12633   as_fn_error $? "memset not found in libc" "$LINENO" 5
12634 fi
12635 done
12636
12637 for ac_func in pow
12638 do :
12639   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12640 if test "x$ac_cv_func_pow" = xyes; then :
12641   cat >>confdefs.h <<_ACEOF
12642 #define HAVE_POW 1
12643 _ACEOF
12644
12645 else
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12647 $as_echo_n "checking for pow in -lm... " >&6; }
12648 if ${ac_cv_lib_m_pow+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   ac_check_lib_save_LIBS=$LIBS
12652 LIBS="-lm  $LIBS"
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h.  */
12655
12656 /* Override any GCC internal prototype to avoid an error.
12657    Use char because int might match the return type of a GCC
12658    builtin and then its argument prototype would still apply.  */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char pow ();
12663 int
12664 main ()
12665 {
12666 return pow ();
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672   ac_cv_lib_m_pow=yes
12673 else
12674   ac_cv_lib_m_pow=no
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext \
12677     conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12679 fi
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12681 $as_echo "$ac_cv_lib_m_pow" >&6; }
12682 if test "x$ac_cv_lib_m_pow" = xyes; then :
12683   cat >>confdefs.h <<_ACEOF
12684 #define HAVE_LIBM 1
12685 _ACEOF
12686
12687   LIBS="-lm $LIBS"
12688
12689 else
12690   as_fn_error $? "cannot find pow" "$LINENO" 5
12691 fi
12692
12693 fi
12694 done
12695
12696
12697 # Check whether --with-zlib-prefix was given.
12698 if test "${with_zlib_prefix+set}" = set; then :
12699   withval=$with_zlib_prefix; ZPREFIX=${withval}
12700 else
12701   ZPREFIX='z_'
12702 fi
12703
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12705 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12706 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-lz  $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h.  */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715    Use char because int might match the return type of a GCC
12716    builtin and then its argument prototype would still apply.  */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char zlibVersion ();
12721 int
12722 main ()
12723 {
12724 return zlibVersion ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_link "$LINENO"; then :
12730   ac_cv_lib_z_zlibVersion=yes
12731 else
12732   ac_cv_lib_z_zlibVersion=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735     conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12739 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12740 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12741   cat >>confdefs.h <<_ACEOF
12742 #define HAVE_LIBZ 1
12743 _ACEOF
12744
12745   LIBS="-lz $LIBS"
12746
12747 else
12748   as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12750 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12751 if eval \${$as_ac_Lib+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lz  $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char ${ZPREFIX}zlibVersion ();
12766 int
12767 main ()
12768 {
12769 return ${ZPREFIX}zlibVersion ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775   eval "$as_ac_Lib=yes"
12776 else
12777   eval "$as_ac_Lib=no"
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780     conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 eval ac_res=\$$as_ac_Lib
12784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12785 $as_echo "$ac_res" >&6; }
12786 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12787   cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBZ 1
12789 _ACEOF
12790
12791   LIBS="-lz $LIBS"
12792
12793 else
12794   as_fn_error $? "zlib not installed" "$LINENO" 5
12795 fi
12796
12797 fi
12798
12799
12800 # The following is for pngvalid, to ensure it catches FP errors even on
12801 # platforms that don't enable FP exceptions, the function appears in the math
12802 # library (typically), it's not an error if it is not found.
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12804 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12805 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12806   $as_echo_n "(cached) " >&6
12807 else
12808   ac_check_lib_save_LIBS=$LIBS
12809 LIBS="-lm  $LIBS"
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h.  */
12812
12813 /* Override any GCC internal prototype to avoid an error.
12814    Use char because int might match the return type of a GCC
12815    builtin and then its argument prototype would still apply.  */
12816 #ifdef __cplusplus
12817 extern "C"
12818 #endif
12819 char feenableexcept ();
12820 int
12821 main ()
12822 {
12823 return feenableexcept ();
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   ac_cv_lib_m_feenableexcept=yes
12830 else
12831   ac_cv_lib_m_feenableexcept=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12838 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12839 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12840   cat >>confdefs.h <<_ACEOF
12841 #define HAVE_LIBM 1
12842 _ACEOF
12843
12844   LIBS="-lm $LIBS"
12845
12846 fi
12847
12848 for ac_func in feenableexcept
12849 do :
12850   ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12851 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12852   cat >>confdefs.h <<_ACEOF
12853 #define HAVE_FEENABLEEXCEPT 1
12854 _ACEOF
12855
12856 fi
12857 done
12858
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12861 $as_echo_n "checking if using Solaris linker... " >&6; }
12862 SLD=`$LD --version 2>&1 | grep Solaris`
12863 if test "$SLD"; then
12864     have_solaris_ld=yes
12865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12866 $as_echo "yes" >&6; }
12867 else
12868     have_solaris_ld=no
12869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12871 fi
12872  if test "$have_solaris_ld" = "yes"; then
12873   HAVE_SOLARIS_LD_TRUE=
12874   HAVE_SOLARIS_LD_FALSE='#'
12875 else
12876   HAVE_SOLARIS_LD_TRUE='#'
12877   HAVE_SOLARIS_LD_FALSE=
12878 fi
12879
12880
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12882 $as_echo_n "checking if libraries can be versioned... " >&6; }
12883 # Special case for PE/COFF platforms: ld reports
12884 # support for version-script, but doesn't actually
12885 # DO anything with it.
12886 case $host in
12887 *cygwin* | *mingw32* | *interix* )
12888     have_ld_version_script=no
12889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 ;;
12892 * )
12893
12894 if test "$have_solaris_ld" = "yes"; then
12895     GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12896 else
12897     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12898 fi
12899
12900 if test "$GLD"; then
12901     have_ld_version_script=yes
12902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; }
12904 else
12905     have_ld_version_script=no
12906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12909 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12910 fi
12911 ;;
12912 esac
12913
12914  if test "$have_ld_version_script" = "yes"; then
12915   HAVE_LD_VERSION_SCRIPT_TRUE=
12916   HAVE_LD_VERSION_SCRIPT_FALSE='#'
12917 else
12918   HAVE_LD_VERSION_SCRIPT_TRUE='#'
12919   HAVE_LD_VERSION_SCRIPT_FALSE=
12920 fi
12921
12922
12923 if test "$have_ld_version_script" = "yes"; then
12924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12925 $as_echo_n "checking for symbol prefix... " >&6; }
12926     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12927                   | ${CPP-${CC-gcc} -E} - 2>&1 \
12928                   | ${EGREP-grep} "^PREFIX=" \
12929                   | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
12930
12931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12932 $as_echo "$SYMBOL_PREFIX" >&6; }
12933 fi
12934
12935 # Substitutions for .in files
12936
12937
12938
12939
12940
12941 # Additional arguments (and substitutions)
12942 # Allow the pkg-config directory to be set
12943
12944 # Check whether --with-pkgconfigdir was given.
12945 if test "${with_pkgconfigdir+set}" = set; then :
12946   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12947 else
12948   pkgconfigdir='${libdir}/pkgconfig'
12949 fi
12950
12951
12952
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12954 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12955
12956 # Make the *-config binary config scripts optional
12957
12958 # Check whether --with-binconfigs was given.
12959 if test "${with_binconfigs+set}" = set; then :
12960   withval=$with_binconfigs; if test "${withval}" = no; then
12961       binconfigs=
12962       { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12963 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12964     else
12965       binconfigs='${binconfigs}'
12966     fi
12967 else
12968   binconfigs='${binconfigs}'
12969 fi
12970
12971
12972
12973 # Support for prefixes to the API function names; this will generate defines
12974 # at the start of the build to rename exported library functions
12975
12976 # Check whether --with-libpng-prefix was given.
12977 if test "${with_libpng_prefix+set}" = set; then :
12978   withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
12979       PNG_PREFIX=${withval}
12980
12981     fi
12982 fi
12983
12984  if test "${with_libpng_prefix:-no}" != "no"; then
12985   DO_PNG_PREFIX_TRUE=
12986   DO_PNG_PREFIX_FALSE='#'
12987 else
12988   DO_PNG_PREFIX_TRUE='#'
12989   DO_PNG_PREFIX_FALSE=
12990 fi
12991
12992
12993 # Because GCC by default assembles code with an executable stack, even though it
12994 # compiles C code with a non-executable stack, it is necessary to do a fixup
12995 # here (this may by GCC specific)
12996 AM_CCASFLAGS=-Wa,--noexecstack
12997
12998
12999 # Check whether --enable-arm-neon was given.
13000 if test "${enable_arm_neon+set}" = set; then :
13001   enableval=$enable_arm_neon; if test "${enableval}" = "yes"; then
13002
13003 $as_echo "#define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_neon" >>confdefs.h
13004
13005
13006 $as_echo "#define PNG_ALIGNED_MEMORY_SUPPORTED 1" >>confdefs.h
13007
13008     fi
13009 fi
13010
13011  if test "${enable_arm_neon:-no}" = yes; then
13012   PNG_ARM_NEON_TRUE=
13013   PNG_ARM_NEON_FALSE='#'
13014 else
13015   PNG_ARM_NEON_TRUE='#'
13016   PNG_ARM_NEON_FALSE=
13017 fi
13018
13019
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
13021 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
13022
13023 # Config files, substituting as above
13024 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
13025
13026 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
13027
13028
13029 cat >confcache <<\_ACEOF
13030 # This file is a shell script that caches the results of configure
13031 # tests run on this system so they can be shared between configure
13032 # scripts and configure runs, see configure's option --config-cache.
13033 # It is not useful on other systems.  If it contains results you don't
13034 # want to keep, you may remove or edit it.
13035 #
13036 # config.status only pays attention to the cache file if you give it
13037 # the --recheck option to rerun configure.
13038 #
13039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13041 # following values.
13042
13043 _ACEOF
13044
13045 # The following way of writing the cache mishandles newlines in values,
13046 # but we know of no workaround that is simple, portable, and efficient.
13047 # So, we kill variables containing newlines.
13048 # Ultrix sh set writes to stderr and can't be redirected directly,
13049 # and sets the high bit in the cache file unless we assign to the vars.
13050 (
13051   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13052     eval ac_val=\$$ac_var
13053     case $ac_val in #(
13054     *${as_nl}*)
13055       case $ac_var in #(
13056       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13058       esac
13059       case $ac_var in #(
13060       _ | IFS | as_nl) ;; #(
13061       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13062       *) { eval $ac_var=; unset $ac_var;} ;;
13063       esac ;;
13064     esac
13065   done
13066
13067   (set) 2>&1 |
13068     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13069     *${as_nl}ac_space=\ *)
13070       # `set' does not quote correctly, so add quotes: double-quote
13071       # substitution turns \\\\ into \\, and sed turns \\ into \.
13072       sed -n \
13073         "s/'/'\\\\''/g;
13074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13075       ;; #(
13076     *)
13077       # `set' quotes correctly as required by POSIX, so do not add quotes.
13078       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13079       ;;
13080     esac |
13081     sort
13082 ) |
13083   sed '
13084      /^ac_cv_env_/b end
13085      t clear
13086      :clear
13087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13088      t end
13089      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13090      :end' >>confcache
13091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13092   if test -w "$cache_file"; then
13093     if test "x$cache_file" != "x/dev/null"; then
13094       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13095 $as_echo "$as_me: updating cache $cache_file" >&6;}
13096       if test ! -f "$cache_file" || test -h "$cache_file"; then
13097         cat confcache >"$cache_file"
13098       else
13099         case $cache_file in #(
13100         */* | ?:*)
13101           mv -f confcache "$cache_file"$$ &&
13102           mv -f "$cache_file"$$ "$cache_file" ;; #(
13103         *)
13104           mv -f confcache "$cache_file" ;;
13105         esac
13106       fi
13107     fi
13108   else
13109     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13111   fi
13112 fi
13113 rm -f confcache
13114
13115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13116 # Let make expand exec_prefix.
13117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13118
13119 DEFS=-DHAVE_CONFIG_H
13120
13121 ac_libobjs=
13122 ac_ltlibobjs=
13123 U=
13124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13125   # 1. Remove the extension, and $U if already installed.
13126   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13127   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13128   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13129   #    will be set to the directory where LIBOBJS objects are built.
13130   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13131   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13132 done
13133 LIBOBJS=$ac_libobjs
13134
13135 LTLIBOBJS=$ac_ltlibobjs
13136
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13139 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13140    if test -n "$am_sleep_pid"; then
13141      # Hide warnings about reused PIDs.
13142      wait $am_sleep_pid 2>/dev/null
13143    fi
13144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13145 $as_echo "done" >&6; }
13146  if test -n "$EXEEXT"; then
13147   am__EXEEXT_TRUE=
13148   am__EXEEXT_FALSE='#'
13149 else
13150   am__EXEEXT_TRUE='#'
13151   am__EXEEXT_FALSE=
13152 fi
13153
13154 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13155   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13157 fi
13158 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13159   as_fn_error $? "conditional \"AMDEP\" was never defined.
13160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13161 fi
13162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13163   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13165 fi
13166 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13167   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13169 fi
13170 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13171   as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13173 fi
13174 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13175   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13177 fi
13178 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13179   as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13181 fi
13182 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13183   as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13185 fi
13186
13187 : "${CONFIG_STATUS=./config.status}"
13188 ac_write_fail=0
13189 ac_clean_files_save=$ac_clean_files
13190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13192 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13193 as_write_fail=0
13194 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13195 #! $SHELL
13196 # Generated by $as_me.
13197 # Run this file to recreate the current configuration.
13198 # Compiler output produced by configure, useful for debugging
13199 # configure, is in config.log if it exists.
13200
13201 debug=false
13202 ac_cs_recheck=false
13203 ac_cs_silent=false
13204
13205 SHELL=\${CONFIG_SHELL-$SHELL}
13206 export SHELL
13207 _ASEOF
13208 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13209 ## -------------------- ##
13210 ## M4sh Initialization. ##
13211 ## -------------------- ##
13212
13213 # Be more Bourne compatible
13214 DUALCASE=1; export DUALCASE # for MKS sh
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13216   emulate sh
13217   NULLCMD=:
13218   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13219   # is contrary to our usage.  Disable this feature.
13220   alias -g '${1+"$@"}'='"$@"'
13221   setopt NO_GLOB_SUBST
13222 else
13223   case `(set -o) 2>/dev/null` in #(
13224   *posix*) :
13225     set -o posix ;; #(
13226   *) :
13227      ;;
13228 esac
13229 fi
13230
13231
13232 as_nl='
13233 '
13234 export as_nl
13235 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13236 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13239 # Prefer a ksh shell builtin over an external printf program on Solaris,
13240 # but without wasting forks for bash or zsh.
13241 if test -z "$BASH_VERSION$ZSH_VERSION" \
13242     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13243   as_echo='print -r --'
13244   as_echo_n='print -rn --'
13245 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13246   as_echo='printf %s\n'
13247   as_echo_n='printf %s'
13248 else
13249   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13250     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13251     as_echo_n='/usr/ucb/echo -n'
13252   else
13253     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13254     as_echo_n_body='eval
13255       arg=$1;
13256       case $arg in #(
13257       *"$as_nl"*)
13258         expr "X$arg" : "X\\(.*\\)$as_nl";
13259         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13260       esac;
13261       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13262     '
13263     export as_echo_n_body
13264     as_echo_n='sh -c $as_echo_n_body as_echo'
13265   fi
13266   export as_echo_body
13267   as_echo='sh -c $as_echo_body as_echo'
13268 fi
13269
13270 # The user is always right.
13271 if test "${PATH_SEPARATOR+set}" != set; then
13272   PATH_SEPARATOR=:
13273   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13274     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13275       PATH_SEPARATOR=';'
13276   }
13277 fi
13278
13279
13280 # IFS
13281 # We need space, tab and new line, in precisely that order.  Quoting is
13282 # there to prevent editors from complaining about space-tab.
13283 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13284 # splitting by setting IFS to empty value.)
13285 IFS=" ""        $as_nl"
13286
13287 # Find who we are.  Look in the path if we contain no directory separator.
13288 as_myself=
13289 case $0 in #((
13290   *[\\/]* ) as_myself=$0 ;;
13291   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294   IFS=$as_save_IFS
13295   test -z "$as_dir" && as_dir=.
13296     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13297   done
13298 IFS=$as_save_IFS
13299
13300      ;;
13301 esac
13302 # We did not find ourselves, most probably we were run as `sh COMMAND'
13303 # in which case we are not to be found in the path.
13304 if test "x$as_myself" = x; then
13305   as_myself=$0
13306 fi
13307 if test ! -f "$as_myself"; then
13308   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13309   exit 1
13310 fi
13311
13312 # Unset variables that we do not need and which cause bugs (e.g. in
13313 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13314 # suppresses any "Segmentation fault" message there.  '((' could
13315 # trigger a bug in pdksh 5.2.14.
13316 for as_var in BASH_ENV ENV MAIL MAILPATH
13317 do eval test x\${$as_var+set} = xset \
13318   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13319 done
13320 PS1='$ '
13321 PS2='> '
13322 PS4='+ '
13323
13324 # NLS nuisances.
13325 LC_ALL=C
13326 export LC_ALL
13327 LANGUAGE=C
13328 export LANGUAGE
13329
13330 # CDPATH.
13331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13332
13333
13334 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13335 # ----------------------------------------
13336 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13337 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13338 # script with STATUS, using 1 if that was 0.
13339 as_fn_error ()
13340 {
13341   as_status=$1; test $as_status -eq 0 && as_status=1
13342   if test "$4"; then
13343     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13344     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13345   fi
13346   $as_echo "$as_me: error: $2" >&2
13347   as_fn_exit $as_status
13348 } # as_fn_error
13349
13350
13351 # as_fn_set_status STATUS
13352 # -----------------------
13353 # Set $? to STATUS, without forking.
13354 as_fn_set_status ()
13355 {
13356   return $1
13357 } # as_fn_set_status
13358
13359 # as_fn_exit STATUS
13360 # -----------------
13361 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13362 as_fn_exit ()
13363 {
13364   set +e
13365   as_fn_set_status $1
13366   exit $1
13367 } # as_fn_exit
13368
13369 # as_fn_unset VAR
13370 # ---------------
13371 # Portably unset VAR.
13372 as_fn_unset ()
13373 {
13374   { eval $1=; unset $1;}
13375 }
13376 as_unset=as_fn_unset
13377 # as_fn_append VAR VALUE
13378 # ----------------------
13379 # Append the text in VALUE to the end of the definition contained in VAR. Take
13380 # advantage of any shell optimizations that allow amortized linear growth over
13381 # repeated appends, instead of the typical quadratic growth present in naive
13382 # implementations.
13383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13384   eval 'as_fn_append ()
13385   {
13386     eval $1+=\$2
13387   }'
13388 else
13389   as_fn_append ()
13390   {
13391     eval $1=\$$1\$2
13392   }
13393 fi # as_fn_append
13394
13395 # as_fn_arith ARG...
13396 # ------------------
13397 # Perform arithmetic evaluation on the ARGs, and store the result in the
13398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13399 # must be portable across $(()) and expr.
13400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13401   eval 'as_fn_arith ()
13402   {
13403     as_val=$(( $* ))
13404   }'
13405 else
13406   as_fn_arith ()
13407   {
13408     as_val=`expr "$@" || test $? -eq 1`
13409   }
13410 fi # as_fn_arith
13411
13412
13413 if expr a : '\(a\)' >/dev/null 2>&1 &&
13414    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13415   as_expr=expr
13416 else
13417   as_expr=false
13418 fi
13419
13420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13421   as_basename=basename
13422 else
13423   as_basename=false
13424 fi
13425
13426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13427   as_dirname=dirname
13428 else
13429   as_dirname=false
13430 fi
13431
13432 as_me=`$as_basename -- "$0" ||
13433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13434          X"$0" : 'X\(//\)$' \| \
13435          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13436 $as_echo X/"$0" |
13437     sed '/^.*\/\([^/][^/]*\)\/*$/{
13438             s//\1/
13439             q
13440           }
13441           /^X\/\(\/\/\)$/{
13442             s//\1/
13443             q
13444           }
13445           /^X\/\(\/\).*/{
13446             s//\1/
13447             q
13448           }
13449           s/.*/./; q'`
13450
13451 # Avoid depending upon Character Ranges.
13452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13455 as_cr_digits='0123456789'
13456 as_cr_alnum=$as_cr_Letters$as_cr_digits
13457
13458 ECHO_C= ECHO_N= ECHO_T=
13459 case `echo -n x` in #(((((
13460 -n*)
13461   case `echo 'xy\c'` in
13462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13463   xy)  ECHO_C='\c';;
13464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13465        ECHO_T=' ';;
13466   esac;;
13467 *)
13468   ECHO_N='-n';;
13469 esac
13470
13471 rm -f conf$$ conf$$.exe conf$$.file
13472 if test -d conf$$.dir; then
13473   rm -f conf$$.dir/conf$$.file
13474 else
13475   rm -f conf$$.dir
13476   mkdir conf$$.dir 2>/dev/null
13477 fi
13478 if (echo >conf$$.file) 2>/dev/null; then
13479   if ln -s conf$$.file conf$$ 2>/dev/null; then
13480     as_ln_s='ln -s'
13481     # ... but there are two gotchas:
13482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13484     # In both cases, we have to default to `cp -pR'.
13485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13486       as_ln_s='cp -pR'
13487   elif ln conf$$.file conf$$ 2>/dev/null; then
13488     as_ln_s=ln
13489   else
13490     as_ln_s='cp -pR'
13491   fi
13492 else
13493   as_ln_s='cp -pR'
13494 fi
13495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13496 rmdir conf$$.dir 2>/dev/null
13497
13498
13499 # as_fn_mkdir_p
13500 # -------------
13501 # Create "$as_dir" as a directory, including parents if necessary.
13502 as_fn_mkdir_p ()
13503 {
13504
13505   case $as_dir in #(
13506   -*) as_dir=./$as_dir;;
13507   esac
13508   test -d "$as_dir" || eval $as_mkdir_p || {
13509     as_dirs=
13510     while :; do
13511       case $as_dir in #(
13512       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13513       *) as_qdir=$as_dir;;
13514       esac
13515       as_dirs="'$as_qdir' $as_dirs"
13516       as_dir=`$as_dirname -- "$as_dir" ||
13517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13518          X"$as_dir" : 'X\(//\)[^/]' \| \
13519          X"$as_dir" : 'X\(//\)$' \| \
13520          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13521 $as_echo X"$as_dir" |
13522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13523             s//\1/
13524             q
13525           }
13526           /^X\(\/\/\)[^/].*/{
13527             s//\1/
13528             q
13529           }
13530           /^X\(\/\/\)$/{
13531             s//\1/
13532             q
13533           }
13534           /^X\(\/\).*/{
13535             s//\1/
13536             q
13537           }
13538           s/.*/./; q'`
13539       test -d "$as_dir" && break
13540     done
13541     test -z "$as_dirs" || eval "mkdir $as_dirs"
13542   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13543
13544
13545 } # as_fn_mkdir_p
13546 if mkdir -p . 2>/dev/null; then
13547   as_mkdir_p='mkdir -p "$as_dir"'
13548 else
13549   test -d ./-p && rmdir ./-p
13550   as_mkdir_p=false
13551 fi
13552
13553
13554 # as_fn_executable_p FILE
13555 # -----------------------
13556 # Test if FILE is an executable regular file.
13557 as_fn_executable_p ()
13558 {
13559   test -f "$1" && test -x "$1"
13560 } # as_fn_executable_p
13561 as_test_x='test -x'
13562 as_executable_p=as_fn_executable_p
13563
13564 # Sed expression to map a string onto a valid CPP name.
13565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13566
13567 # Sed expression to map a string onto a valid variable name.
13568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13569
13570
13571 exec 6>&1
13572 ## ----------------------------------- ##
13573 ## Main body of $CONFIG_STATUS script. ##
13574 ## ----------------------------------- ##
13575 _ASEOF
13576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13577
13578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13579 # Save the log message, to keep $0 and so on meaningful, and to
13580 # report actual input values of CONFIG_FILES etc. instead of their
13581 # values after options handling.
13582 ac_log="
13583 This file was extended by libpng $as_me 1.6.0, which was
13584 generated by GNU Autoconf 2.69.  Invocation command line was
13585
13586   CONFIG_FILES    = $CONFIG_FILES
13587   CONFIG_HEADERS  = $CONFIG_HEADERS
13588   CONFIG_LINKS    = $CONFIG_LINKS
13589   CONFIG_COMMANDS = $CONFIG_COMMANDS
13590   $ $0 $@
13591
13592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13593 "
13594
13595 _ACEOF
13596
13597 case $ac_config_files in *"
13598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13599 esac
13600
13601 case $ac_config_headers in *"
13602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13603 esac
13604
13605
13606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13607 # Files that config.status was made for.
13608 config_files="$ac_config_files"
13609 config_headers="$ac_config_headers"
13610 config_commands="$ac_config_commands"
13611
13612 _ACEOF
13613
13614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13615 ac_cs_usage="\
13616 \`$as_me' instantiates files and other configuration actions
13617 from templates according to the current configuration.  Unless the files
13618 and actions are specified as TAGs, all are instantiated by default.
13619
13620 Usage: $0 [OPTION]... [TAG]...
13621
13622   -h, --help       print this help, then exit
13623   -V, --version    print version number and configuration settings, then exit
13624       --config     print configuration, then exit
13625   -q, --quiet, --silent
13626                    do not print progress messages
13627   -d, --debug      don't remove temporary files
13628       --recheck    update $as_me by reconfiguring in the same conditions
13629       --file=FILE[:TEMPLATE]
13630                    instantiate the configuration file FILE
13631       --header=FILE[:TEMPLATE]
13632                    instantiate the configuration header FILE
13633
13634 Configuration files:
13635 $config_files
13636
13637 Configuration headers:
13638 $config_headers
13639
13640 Configuration commands:
13641 $config_commands
13642
13643 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13644
13645 _ACEOF
13646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13648 ac_cs_version="\\
13649 libpng config.status 1.6.0
13650 configured by $0, generated by GNU Autoconf 2.69,
13651   with options \\"\$ac_cs_config\\"
13652
13653 Copyright (C) 2012 Free Software Foundation, Inc.
13654 This config.status script is free software; the Free Software Foundation
13655 gives unlimited permission to copy, distribute and modify it."
13656
13657 ac_pwd='$ac_pwd'
13658 srcdir='$srcdir'
13659 INSTALL='$INSTALL'
13660 MKDIR_P='$MKDIR_P'
13661 AWK='$AWK'
13662 test -n "\$AWK" || AWK=awk
13663 _ACEOF
13664
13665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13666 # The default lists apply if the user does not specify any file.
13667 ac_need_defaults=:
13668 while test $# != 0
13669 do
13670   case $1 in
13671   --*=?*)
13672     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13673     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13674     ac_shift=:
13675     ;;
13676   --*=)
13677     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13678     ac_optarg=
13679     ac_shift=:
13680     ;;
13681   *)
13682     ac_option=$1
13683     ac_optarg=$2
13684     ac_shift=shift
13685     ;;
13686   esac
13687
13688   case $ac_option in
13689   # Handling of the options.
13690   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13691     ac_cs_recheck=: ;;
13692   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13693     $as_echo "$ac_cs_version"; exit ;;
13694   --config | --confi | --conf | --con | --co | --c )
13695     $as_echo "$ac_cs_config"; exit ;;
13696   --debug | --debu | --deb | --de | --d | -d )
13697     debug=: ;;
13698   --file | --fil | --fi | --f )
13699     $ac_shift
13700     case $ac_optarg in
13701     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13702     '') as_fn_error $? "missing file argument" ;;
13703     esac
13704     as_fn_append CONFIG_FILES " '$ac_optarg'"
13705     ac_need_defaults=false;;
13706   --header | --heade | --head | --hea )
13707     $ac_shift
13708     case $ac_optarg in
13709     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13710     esac
13711     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13712     ac_need_defaults=false;;
13713   --he | --h)
13714     # Conflict between --help and --header
13715     as_fn_error $? "ambiguous option: \`$1'
13716 Try \`$0 --help' for more information.";;
13717   --help | --hel | -h )
13718     $as_echo "$ac_cs_usage"; exit ;;
13719   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13720   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13721     ac_cs_silent=: ;;
13722
13723   # This is an error.
13724   -*) as_fn_error $? "unrecognized option: \`$1'
13725 Try \`$0 --help' for more information." ;;
13726
13727   *) as_fn_append ac_config_targets " $1"
13728      ac_need_defaults=false ;;
13729
13730   esac
13731   shift
13732 done
13733
13734 ac_configure_extra_args=
13735
13736 if $ac_cs_silent; then
13737   exec 6>/dev/null
13738   ac_configure_extra_args="$ac_configure_extra_args --silent"
13739 fi
13740
13741 _ACEOF
13742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 if \$ac_cs_recheck; then
13744   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13745   shift
13746   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13747   CONFIG_SHELL='$SHELL'
13748   export CONFIG_SHELL
13749   exec "\$@"
13750 fi
13751
13752 _ACEOF
13753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13754 exec 5>>config.log
13755 {
13756   echo
13757   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13758 ## Running $as_me. ##
13759 _ASBOX
13760   $as_echo "$ac_log"
13761 } >&5
13762
13763 _ACEOF
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 #
13766 # INIT-COMMANDS
13767 #
13768 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13769
13770
13771 # The HP-UX ksh and POSIX shell print the target directory to stdout
13772 # if CDPATH is set.
13773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13774
13775 sed_quote_subst='$sed_quote_subst'
13776 double_quote_subst='$double_quote_subst'
13777 delay_variable_subst='$delay_variable_subst'
13778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13783 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13784 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13785 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13786 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13787 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13788 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13789 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13790 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13791 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13792 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13793 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13794 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13795 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13796 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13797 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13798 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13799 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13800 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13801 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13802 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13803 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13804 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13805 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13806 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13807 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13808 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13809 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13810 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13811 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13812 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13813 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13814 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13815 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13816 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13817 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13818 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13819 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13820 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13821 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13822 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13823 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13824 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13825 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13826 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13827 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13828 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13829 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13830 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13831 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13832 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13833 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13834 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13835 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"`'
13836 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13837 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13841 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13842 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13846 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13847 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13848 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13849 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13850 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13851 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13852 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13853 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13854 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13855 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13856 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13857 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13858 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13859 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13860 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13861 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13862 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13863 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13864 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13865 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13866 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13867 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13868 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13869 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13878 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13879 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13880 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13881 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13882 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13883 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13902 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13903 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13904 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13905 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13906 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13907 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13908 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13909
13910 LTCC='$LTCC'
13911 LTCFLAGS='$LTCFLAGS'
13912 compiler='$compiler_DEFAULT'
13913
13914 # A function that is used when there is no print builtin or printf.
13915 func_fallback_echo ()
13916 {
13917   eval 'cat <<_LTECHO_EOF
13918 \$1
13919 _LTECHO_EOF'
13920 }
13921
13922 # Quote evaled strings.
13923 for var in SED \
13924 GREP \
13925 EGREP \
13926 FGREP \
13927 SHELL \
13928 ECHO \
13929 LD \
13930 AS \
13931 DLLTOOL \
13932 OBJDUMP \
13933 PATH_SEPARATOR \
13934 NM \
13935 LN_S \
13936 lt_SP2NL \
13937 lt_NL2SP \
13938 reload_flag \
13939 deplibs_check_method \
13940 file_magic_cmd \
13941 file_magic_glob \
13942 want_nocaseglob \
13943 sharedlib_from_linklib_cmd \
13944 AR \
13945 AR_FLAGS \
13946 archiver_list_spec \
13947 STRIP \
13948 RANLIB \
13949 CC \
13950 CFLAGS \
13951 compiler \
13952 lt_cv_sys_global_symbol_pipe \
13953 lt_cv_sys_global_symbol_to_cdecl \
13954 lt_cv_sys_global_symbol_to_c_name_address \
13955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13956 nm_file_list_spec \
13957 lt_prog_compiler_no_builtin_flag \
13958 lt_prog_compiler_pic \
13959 lt_prog_compiler_wl \
13960 lt_prog_compiler_static \
13961 lt_cv_prog_compiler_c_o \
13962 need_locks \
13963 MANIFEST_TOOL \
13964 DSYMUTIL \
13965 NMEDIT \
13966 LIPO \
13967 OTOOL \
13968 OTOOL64 \
13969 shrext_cmds \
13970 export_dynamic_flag_spec \
13971 whole_archive_flag_spec \
13972 compiler_needs_object \
13973 with_gnu_ld \
13974 allow_undefined_flag \
13975 no_undefined_flag \
13976 hardcode_libdir_flag_spec \
13977 hardcode_libdir_separator \
13978 exclude_expsyms \
13979 include_expsyms \
13980 file_list_spec \
13981 variables_saved_for_relink \
13982 libname_spec \
13983 library_names_spec \
13984 soname_spec \
13985 install_override_mode \
13986 finish_eval \
13987 old_striplib \
13988 striplib; do
13989     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13990     *[\\\\\\\`\\"\\\$]*)
13991       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13992       ;;
13993     *)
13994       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13995       ;;
13996     esac
13997 done
13998
13999 # Double-quote double-evaled strings.
14000 for var in reload_cmds \
14001 old_postinstall_cmds \
14002 old_postuninstall_cmds \
14003 old_archive_cmds \
14004 extract_expsyms_cmds \
14005 old_archive_from_new_cmds \
14006 old_archive_from_expsyms_cmds \
14007 archive_cmds \
14008 archive_expsym_cmds \
14009 module_cmds \
14010 module_expsym_cmds \
14011 export_symbols_cmds \
14012 prelink_cmds \
14013 postlink_cmds \
14014 postinstall_cmds \
14015 postuninstall_cmds \
14016 finish_cmds \
14017 sys_lib_search_path_spec \
14018 sys_lib_dlsearch_path_spec; do
14019     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14020     *[\\\\\\\`\\"\\\$]*)
14021       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14022       ;;
14023     *)
14024       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14025       ;;
14026     esac
14027 done
14028
14029 ac_aux_dir='$ac_aux_dir'
14030 xsi_shell='$xsi_shell'
14031 lt_shell_append='$lt_shell_append'
14032
14033 # See if we are running on zsh, and set the options which allow our
14034 # commands through without removal of \ escapes INIT.
14035 if test -n "\${ZSH_VERSION+set}" ; then
14036    setopt NO_GLOB_SUBST
14037 fi
14038
14039
14040     PACKAGE='$PACKAGE'
14041     VERSION='$VERSION'
14042     TIMESTAMP='$TIMESTAMP'
14043     RM='$RM'
14044     ofile='$ofile'
14045
14046
14047
14048
14049 _ACEOF
14050
14051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14052
14053 # Handling of arguments.
14054 for ac_config_target in $ac_config_targets
14055 do
14056   case $ac_config_target in
14057     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14058     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14059     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14060     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14061     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14062     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
14063
14064   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14065   esac
14066 done
14067
14068
14069 # If the user did not use the arguments to specify the items to instantiate,
14070 # then the envvar interface is used.  Set only those that are not.
14071 # We use the long form for the default assignment because of an extremely
14072 # bizarre bug on SunOS 4.1.3.
14073 if $ac_need_defaults; then
14074   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14075   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14076   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14077 fi
14078
14079 # Have a temporary directory for convenience.  Make it in the build tree
14080 # simply because there is no reason against having it here, and in addition,
14081 # creating and moving files from /tmp can sometimes cause problems.
14082 # Hook for its removal unless debugging.
14083 # Note that there is a small window in which the directory will not be cleaned:
14084 # after its creation but before its name has been assigned to `$tmp'.
14085 $debug ||
14086 {
14087   tmp= ac_tmp=
14088   trap 'exit_status=$?
14089   : "${ac_tmp:=$tmp}"
14090   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14091 ' 0
14092   trap 'as_fn_exit 1' 1 2 13 15
14093 }
14094 # Create a (secure) tmp directory for tmp files.
14095
14096 {
14097   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14098   test -d "$tmp"
14099 }  ||
14100 {
14101   tmp=./conf$$-$RANDOM
14102   (umask 077 && mkdir "$tmp")
14103 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14104 ac_tmp=$tmp
14105
14106 # Set up the scripts for CONFIG_FILES section.
14107 # No need to generate them if there are no CONFIG_FILES.
14108 # This happens for instance with `./config.status config.h'.
14109 if test -n "$CONFIG_FILES"; then
14110
14111
14112 ac_cr=`echo X | tr X '\015'`
14113 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14114 # But we know of no other shell where ac_cr would be empty at this
14115 # point, so we can use a bashism as a fallback.
14116 if test "x$ac_cr" = x; then
14117   eval ac_cr=\$\'\\r\'
14118 fi
14119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14121   ac_cs_awk_cr='\\r'
14122 else
14123   ac_cs_awk_cr=$ac_cr
14124 fi
14125
14126 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14127 _ACEOF
14128
14129
14130 {
14131   echo "cat >conf$$subs.awk <<_ACEOF" &&
14132   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14133   echo "_ACEOF"
14134 } >conf$$subs.sh ||
14135   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14136 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14137 ac_delim='%!_!# '
14138 for ac_last_try in false false false false false :; do
14139   . ./conf$$subs.sh ||
14140     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14141
14142   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14143   if test $ac_delim_n = $ac_delim_num; then
14144     break
14145   elif $ac_last_try; then
14146     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14147   else
14148     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14149   fi
14150 done
14151 rm -f conf$$subs.sh
14152
14153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14155 _ACEOF
14156 sed -n '
14157 h
14158 s/^/S["/; s/!.*/"]=/
14159 p
14160 g
14161 s/^[^!]*!//
14162 :repl
14163 t repl
14164 s/'"$ac_delim"'$//
14165 t delim
14166 :nl
14167 h
14168 s/\(.\{148\}\)..*/\1/
14169 t more1
14170 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14171 p
14172 n
14173 b repl
14174 :more1
14175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14176 p
14177 g
14178 s/.\{148\}//
14179 t nl
14180 :delim
14181 h
14182 s/\(.\{148\}\)..*/\1/
14183 t more2
14184 s/["\\]/\\&/g; s/^/"/; s/$/"/
14185 p
14186 b
14187 :more2
14188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14189 p
14190 g
14191 s/.\{148\}//
14192 t delim
14193 ' <conf$$subs.awk | sed '
14194 /^[^""]/{
14195   N
14196   s/\n//
14197 }
14198 ' >>$CONFIG_STATUS || ac_write_fail=1
14199 rm -f conf$$subs.awk
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201 _ACAWK
14202 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14203   for (key in S) S_is_set[key] = 1
14204   FS = "\a"
14205
14206 }
14207 {
14208   line = $ 0
14209   nfields = split(line, field, "@")
14210   substed = 0
14211   len = length(field[1])
14212   for (i = 2; i < nfields; i++) {
14213     key = field[i]
14214     keylen = length(key)
14215     if (S_is_set[key]) {
14216       value = S[key]
14217       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14218       len += length(value) + length(field[++i])
14219       substed = 1
14220     } else
14221       len += 1 + keylen
14222   }
14223
14224   print line
14225 }
14226
14227 _ACAWK
14228 _ACEOF
14229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14231   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14232 else
14233   cat
14234 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14235   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14236 _ACEOF
14237
14238 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14239 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14240 # trailing colons and then remove the whole line if VPATH becomes empty
14241 # (actually we leave an empty line to preserve line numbers).
14242 if test "x$srcdir" = x.; then
14243   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14244 h
14245 s///
14246 s/^/:/
14247 s/[      ]*$/:/
14248 s/:\$(srcdir):/:/g
14249 s/:\${srcdir}:/:/g
14250 s/:@srcdir@:/:/g
14251 s/^:*//
14252 s/:*$//
14253 x
14254 s/\(=[   ]*\).*/\1/
14255 G
14256 s/\n//
14257 s/^[^=]*=[       ]*$//
14258 }'
14259 fi
14260
14261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14262 fi # test -n "$CONFIG_FILES"
14263
14264 # Set up the scripts for CONFIG_HEADERS section.
14265 # No need to generate them if there are no CONFIG_HEADERS.
14266 # This happens for instance with `./config.status Makefile'.
14267 if test -n "$CONFIG_HEADERS"; then
14268 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14269 BEGIN {
14270 _ACEOF
14271
14272 # Transform confdefs.h into an awk script `defines.awk', embedded as
14273 # here-document in config.status, that substitutes the proper values into
14274 # config.h.in to produce config.h.
14275
14276 # Create a delimiter string that does not exist in confdefs.h, to ease
14277 # handling of long lines.
14278 ac_delim='%!_!# '
14279 for ac_last_try in false false :; do
14280   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14281   if test -z "$ac_tt"; then
14282     break
14283   elif $ac_last_try; then
14284     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14285   else
14286     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14287   fi
14288 done
14289
14290 # For the awk script, D is an array of macro values keyed by name,
14291 # likewise P contains macro parameters if any.  Preserve backslash
14292 # newline sequences.
14293
14294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14295 sed -n '
14296 s/.\{148\}/&'"$ac_delim"'/g
14297 t rset
14298 :rset
14299 s/^[     ]*#[    ]*define[       ][      ]*/ /
14300 t def
14301 d
14302 :def
14303 s/\\$//
14304 t bsnl
14305 s/["\\]/\\&/g
14306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14307 D["\1"]=" \3"/p
14308 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14309 d
14310 :bsnl
14311 s/["\\]/\\&/g
14312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14313 D["\1"]=" \3\\\\\\n"\\/p
14314 t cont
14315 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14316 t cont
14317 d
14318 :cont
14319 n
14320 s/.\{148\}/&'"$ac_delim"'/g
14321 t clear
14322 :clear
14323 s/\\$//
14324 t bsnlc
14325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14326 d
14327 :bsnlc
14328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14329 b cont
14330 ' <confdefs.h | sed '
14331 s/'"$ac_delim"'/"\\\
14332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14333
14334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14335   for (key in D) D_is_set[key] = 1
14336   FS = "\a"
14337 }
14338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14339   line = \$ 0
14340   split(line, arg, " ")
14341   if (arg[1] == "#") {
14342     defundef = arg[2]
14343     mac1 = arg[3]
14344   } else {
14345     defundef = substr(arg[1], 2)
14346     mac1 = arg[2]
14347   }
14348   split(mac1, mac2, "(") #)
14349   macro = mac2[1]
14350   prefix = substr(line, 1, index(line, defundef) - 1)
14351   if (D_is_set[macro]) {
14352     # Preserve the white space surrounding the "#".
14353     print prefix "define", macro P[macro] D[macro]
14354     next
14355   } else {
14356     # Replace #undef with comments.  This is necessary, for example,
14357     # in the case of _POSIX_SOURCE, which is predefined and required
14358     # on some systems where configure will not decide to define it.
14359     if (defundef == "undef") {
14360       print "/*", prefix defundef, macro, "*/"
14361       next
14362     }
14363   }
14364 }
14365 { print }
14366 _ACAWK
14367 _ACEOF
14368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14370 fi # test -n "$CONFIG_HEADERS"
14371
14372
14373 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14374 shift
14375 for ac_tag
14376 do
14377   case $ac_tag in
14378   :[FHLC]) ac_mode=$ac_tag; continue;;
14379   esac
14380   case $ac_mode$ac_tag in
14381   :[FHL]*:*);;
14382   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14383   :[FH]-) ac_tag=-:-;;
14384   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14385   esac
14386   ac_save_IFS=$IFS
14387   IFS=:
14388   set x $ac_tag
14389   IFS=$ac_save_IFS
14390   shift
14391   ac_file=$1
14392   shift
14393
14394   case $ac_mode in
14395   :L) ac_source=$1;;
14396   :[FH])
14397     ac_file_inputs=
14398     for ac_f
14399     do
14400       case $ac_f in
14401       -) ac_f="$ac_tmp/stdin";;
14402       *) # Look for the file first in the build tree, then in the source tree
14403          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14404          # because $ac_f cannot contain `:'.
14405          test -f "$ac_f" ||
14406            case $ac_f in
14407            [\\/$]*) false;;
14408            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14409            esac ||
14410            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14411       esac
14412       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14413       as_fn_append ac_file_inputs " '$ac_f'"
14414     done
14415
14416     # Let's still pretend it is `configure' which instantiates (i.e., don't
14417     # use $as_me), people would be surprised to read:
14418     #    /* config.h.  Generated by config.status.  */
14419     configure_input='Generated from '`
14420           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14421         `' by configure.'
14422     if test x"$ac_file" != x-; then
14423       configure_input="$ac_file.  $configure_input"
14424       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14425 $as_echo "$as_me: creating $ac_file" >&6;}
14426     fi
14427     # Neutralize special characters interpreted by sed in replacement strings.
14428     case $configure_input in #(
14429     *\&* | *\|* | *\\* )
14430        ac_sed_conf_input=`$as_echo "$configure_input" |
14431        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14432     *) ac_sed_conf_input=$configure_input;;
14433     esac
14434
14435     case $ac_tag in
14436     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14437       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14438     esac
14439     ;;
14440   esac
14441
14442   ac_dir=`$as_dirname -- "$ac_file" ||
14443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14444          X"$ac_file" : 'X\(//\)[^/]' \| \
14445          X"$ac_file" : 'X\(//\)$' \| \
14446          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14447 $as_echo X"$ac_file" |
14448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14449             s//\1/
14450             q
14451           }
14452           /^X\(\/\/\)[^/].*/{
14453             s//\1/
14454             q
14455           }
14456           /^X\(\/\/\)$/{
14457             s//\1/
14458             q
14459           }
14460           /^X\(\/\).*/{
14461             s//\1/
14462             q
14463           }
14464           s/.*/./; q'`
14465   as_dir="$ac_dir"; as_fn_mkdir_p
14466   ac_builddir=.
14467
14468 case "$ac_dir" in
14469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14470 *)
14471   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14472   # A ".." for each directory in $ac_dir_suffix.
14473   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14474   case $ac_top_builddir_sub in
14475   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14476   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14477   esac ;;
14478 esac
14479 ac_abs_top_builddir=$ac_pwd
14480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14481 # for backward compatibility:
14482 ac_top_builddir=$ac_top_build_prefix
14483
14484 case $srcdir in
14485   .)  # We are building in place.
14486     ac_srcdir=.
14487     ac_top_srcdir=$ac_top_builddir_sub
14488     ac_abs_top_srcdir=$ac_pwd ;;
14489   [\\/]* | ?:[\\/]* )  # Absolute name.
14490     ac_srcdir=$srcdir$ac_dir_suffix;
14491     ac_top_srcdir=$srcdir
14492     ac_abs_top_srcdir=$srcdir ;;
14493   *) # Relative name.
14494     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14495     ac_top_srcdir=$ac_top_build_prefix$srcdir
14496     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14497 esac
14498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14499
14500
14501   case $ac_mode in
14502   :F)
14503   #
14504   # CONFIG_FILE
14505   #
14506
14507   case $INSTALL in
14508   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14509   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14510   esac
14511   ac_MKDIR_P=$MKDIR_P
14512   case $MKDIR_P in
14513   [\\/$]* | ?:[\\/]* ) ;;
14514   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14515   esac
14516 _ACEOF
14517
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 # If the template does not know about datarootdir, expand it.
14520 # FIXME: This hack should be removed a few years after 2.60.
14521 ac_datarootdir_hack=; ac_datarootdir_seen=
14522 ac_sed_dataroot='
14523 /datarootdir/ {
14524   p
14525   q
14526 }
14527 /@datadir@/p
14528 /@docdir@/p
14529 /@infodir@/p
14530 /@localedir@/p
14531 /@mandir@/p'
14532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14533 *datarootdir*) ac_datarootdir_seen=yes;;
14534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14535   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14537 _ACEOF
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539   ac_datarootdir_hack='
14540   s&@datadir@&$datadir&g
14541   s&@docdir@&$docdir&g
14542   s&@infodir@&$infodir&g
14543   s&@localedir@&$localedir&g
14544   s&@mandir@&$mandir&g
14545   s&\\\${datarootdir}&$datarootdir&g' ;;
14546 esac
14547 _ACEOF
14548
14549 # Neutralize VPATH when `$srcdir' = `.'.
14550 # Shell code in configure.ac might set extrasub.
14551 # FIXME: do we really want to maintain this feature?
14552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14553 ac_sed_extra="$ac_vpsub
14554 $extrasub
14555 _ACEOF
14556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14557 :t
14558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14559 s|@configure_input@|$ac_sed_conf_input|;t t
14560 s&@top_builddir@&$ac_top_builddir_sub&;t t
14561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14562 s&@srcdir@&$ac_srcdir&;t t
14563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14564 s&@top_srcdir@&$ac_top_srcdir&;t t
14565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14566 s&@builddir@&$ac_builddir&;t t
14567 s&@abs_builddir@&$ac_abs_builddir&;t t
14568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14569 s&@INSTALL@&$ac_INSTALL&;t t
14570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14571 $ac_datarootdir_hack
14572 "
14573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14574   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14575
14576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14577   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14578   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14579       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14580   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14581 which seems to be undefined.  Please make sure it is defined" >&5
14582 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14583 which seems to be undefined.  Please make sure it is defined" >&2;}
14584
14585   rm -f "$ac_tmp/stdin"
14586   case $ac_file in
14587   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14588   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14589   esac \
14590   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14591  ;;
14592   :H)
14593   #
14594   # CONFIG_HEADER
14595   #
14596   if test x"$ac_file" != x-; then
14597     {
14598       $as_echo "/* $configure_input  */" \
14599       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14600     } >"$ac_tmp/config.h" \
14601       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14602     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14603       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14605     else
14606       rm -f "$ac_file"
14607       mv "$ac_tmp/config.h" "$ac_file" \
14608         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14609     fi
14610   else
14611     $as_echo "/* $configure_input  */" \
14612       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14613       || as_fn_error $? "could not create -" "$LINENO" 5
14614   fi
14615 # Compute "$ac_file"'s index in $config_headers.
14616 _am_arg="$ac_file"
14617 _am_stamp_count=1
14618 for _am_header in $config_headers :; do
14619   case $_am_header in
14620     $_am_arg | $_am_arg:* )
14621       break ;;
14622     * )
14623       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14624   esac
14625 done
14626 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14627 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14628          X"$_am_arg" : 'X\(//\)[^/]' \| \
14629          X"$_am_arg" : 'X\(//\)$' \| \
14630          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14631 $as_echo X"$_am_arg" |
14632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14633             s//\1/
14634             q
14635           }
14636           /^X\(\/\/\)[^/].*/{
14637             s//\1/
14638             q
14639           }
14640           /^X\(\/\/\)$/{
14641             s//\1/
14642             q
14643           }
14644           /^X\(\/\).*/{
14645             s//\1/
14646             q
14647           }
14648           s/.*/./; q'`/stamp-h$_am_stamp_count
14649  ;;
14650
14651   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14652 $as_echo "$as_me: executing $ac_file commands" >&6;}
14653  ;;
14654   esac
14655
14656
14657   case $ac_file$ac_mode in
14658     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14659   # Older Autoconf quotes --file arguments for eval, but not when files
14660   # are listed without --file.  Let's play safe and only enable the eval
14661   # if we detect the quoting.
14662   case $CONFIG_FILES in
14663   *\'*) eval set x "$CONFIG_FILES" ;;
14664   *)   set x $CONFIG_FILES ;;
14665   esac
14666   shift
14667   for mf
14668   do
14669     # Strip MF so we end up with the name of the file.
14670     mf=`echo "$mf" | sed -e 's/:.*$//'`
14671     # Check whether this is an Automake generated Makefile or not.
14672     # We used to match only the files named 'Makefile.in', but
14673     # some people rename them; so instead we look at the file content.
14674     # Grep'ing the first line is not enough: some people post-process
14675     # each Makefile.in and add a new line on top of each file to say so.
14676     # Grep'ing the whole file is not good either: AIX grep has a line
14677     # limit of 2048, but all sed's we know have understand at least 4000.
14678     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14679       dirpart=`$as_dirname -- "$mf" ||
14680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681          X"$mf" : 'X\(//\)[^/]' \| \
14682          X"$mf" : 'X\(//\)$' \| \
14683          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14684 $as_echo X"$mf" |
14685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14686             s//\1/
14687             q
14688           }
14689           /^X\(\/\/\)[^/].*/{
14690             s//\1/
14691             q
14692           }
14693           /^X\(\/\/\)$/{
14694             s//\1/
14695             q
14696           }
14697           /^X\(\/\).*/{
14698             s//\1/
14699             q
14700           }
14701           s/.*/./; q'`
14702     else
14703       continue
14704     fi
14705     # Extract the definition of DEPDIR, am__include, and am__quote
14706     # from the Makefile without running 'make'.
14707     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14708     test -z "$DEPDIR" && continue
14709     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14710     test -z "am__include" && continue
14711     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14712     # Find all dependency output files, they are included files with
14713     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14714     # simplest approach to changing $(DEPDIR) to its actual value in the
14715     # expansion.
14716     for file in `sed -n "
14717       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14718          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14719       # Make sure the directory exists.
14720       test -f "$dirpart/$file" && continue
14721       fdir=`$as_dirname -- "$file" ||
14722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14723          X"$file" : 'X\(//\)[^/]' \| \
14724          X"$file" : 'X\(//\)$' \| \
14725          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X"$file" |
14727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14728             s//\1/
14729             q
14730           }
14731           /^X\(\/\/\)[^/].*/{
14732             s//\1/
14733             q
14734           }
14735           /^X\(\/\/\)$/{
14736             s//\1/
14737             q
14738           }
14739           /^X\(\/\).*/{
14740             s//\1/
14741             q
14742           }
14743           s/.*/./; q'`
14744       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14745       # echo "creating $dirpart/$file"
14746       echo '# dummy' > "$dirpart/$file"
14747     done
14748   done
14749 }
14750  ;;
14751     "libtool":C)
14752
14753     # See if we are running on zsh, and set the options which allow our
14754     # commands through without removal of \ escapes.
14755     if test -n "${ZSH_VERSION+set}" ; then
14756       setopt NO_GLOB_SUBST
14757     fi
14758
14759     cfgfile="${ofile}T"
14760     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14761     $RM "$cfgfile"
14762
14763     cat <<_LT_EOF >> "$cfgfile"
14764 #! $SHELL
14765
14766 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14767 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14770 #
14771 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14772 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14773 #                 Foundation, Inc.
14774 #   Written by Gordon Matzigkeit, 1996
14775 #
14776 #   This file is part of GNU Libtool.
14777 #
14778 # GNU Libtool is free software; you can redistribute it and/or
14779 # modify it under the terms of the GNU General Public License as
14780 # published by the Free Software Foundation; either version 2 of
14781 # the License, or (at your option) any later version.
14782 #
14783 # As a special exception to the GNU General Public License,
14784 # if you distribute this file as part of a program or library that
14785 # is built using GNU Libtool, you may include this file under the
14786 # same distribution terms that you use for the rest of that program.
14787 #
14788 # GNU Libtool is distributed in the hope that it will be useful,
14789 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14791 # GNU General Public License for more details.
14792 #
14793 # You should have received a copy of the GNU General Public License
14794 # along with GNU Libtool; see the file COPYING.  If not, a copy
14795 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14796 # obtained by writing to the Free Software Foundation, Inc.,
14797 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14798
14799
14800 # The names of the tagged configurations supported by this script.
14801 available_tags=""
14802
14803 # ### BEGIN LIBTOOL CONFIG
14804
14805 # A sed program that does not truncate output.
14806 SED=$lt_SED
14807
14808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14809 Xsed="\$SED -e 1s/^X//"
14810
14811 # A grep program that handles long lines.
14812 GREP=$lt_GREP
14813
14814 # An ERE matcher.
14815 EGREP=$lt_EGREP
14816
14817 # A literal string matcher.
14818 FGREP=$lt_FGREP
14819
14820 # Shell to use when invoking shell scripts.
14821 SHELL=$lt_SHELL
14822
14823 # An echo program that protects backslashes.
14824 ECHO=$lt_ECHO
14825
14826 # Which release of libtool.m4 was used?
14827 macro_version=$macro_version
14828 macro_revision=$macro_revision
14829
14830 # Assembler program.
14831 AS=$lt_AS
14832
14833 # DLL creation program.
14834 DLLTOOL=$lt_DLLTOOL
14835
14836 # Object dumper program.
14837 OBJDUMP=$lt_OBJDUMP
14838
14839 # Whether or not to build shared libraries.
14840 build_libtool_libs=$enable_shared
14841
14842 # Whether or not to build static libraries.
14843 build_old_libs=$enable_static
14844
14845 # What type of objects to build.
14846 pic_mode=$pic_mode
14847
14848 # Whether or not to optimize for fast installation.
14849 fast_install=$enable_fast_install
14850
14851 # The PATH separator for the build system.
14852 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14853
14854 # The host system.
14855 host_alias=$host_alias
14856 host=$host
14857 host_os=$host_os
14858
14859 # The build system.
14860 build_alias=$build_alias
14861 build=$build
14862 build_os=$build_os
14863
14864 # A BSD- or MS-compatible name lister.
14865 NM=$lt_NM
14866
14867 # Whether we need soft or hard links.
14868 LN_S=$lt_LN_S
14869
14870 # What is the maximum length of a command?
14871 max_cmd_len=$max_cmd_len
14872
14873 # Object file suffix (normally "o").
14874 objext=$ac_objext
14875
14876 # Executable file suffix (normally "").
14877 exeext=$exeext
14878
14879 # whether the shell understands "unset".
14880 lt_unset=$lt_unset
14881
14882 # turn spaces into newlines.
14883 SP2NL=$lt_lt_SP2NL
14884
14885 # turn newlines into spaces.
14886 NL2SP=$lt_lt_NL2SP
14887
14888 # convert \$build file names to \$host format.
14889 to_host_file_cmd=$lt_cv_to_host_file_cmd
14890
14891 # convert \$build files to toolchain format.
14892 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14893
14894 # Method to check whether dependent libraries are shared objects.
14895 deplibs_check_method=$lt_deplibs_check_method
14896
14897 # Command to use when deplibs_check_method = "file_magic".
14898 file_magic_cmd=$lt_file_magic_cmd
14899
14900 # How to find potential files when deplibs_check_method = "file_magic".
14901 file_magic_glob=$lt_file_magic_glob
14902
14903 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14904 want_nocaseglob=$lt_want_nocaseglob
14905
14906 # Command to associate shared and link libraries.
14907 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14908
14909 # The archiver.
14910 AR=$lt_AR
14911
14912 # Flags to create an archive.
14913 AR_FLAGS=$lt_AR_FLAGS
14914
14915 # How to feed a file listing to the archiver.
14916 archiver_list_spec=$lt_archiver_list_spec
14917
14918 # A symbol stripping program.
14919 STRIP=$lt_STRIP
14920
14921 # Commands used to install an old-style archive.
14922 RANLIB=$lt_RANLIB
14923 old_postinstall_cmds=$lt_old_postinstall_cmds
14924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14925
14926 # Whether to use a lock for old archive extraction.
14927 lock_old_archive_extraction=$lock_old_archive_extraction
14928
14929 # A C compiler.
14930 LTCC=$lt_CC
14931
14932 # LTCC compiler flags.
14933 LTCFLAGS=$lt_CFLAGS
14934
14935 # Take the output of nm and produce a listing of raw symbols and C names.
14936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14937
14938 # Transform the output of nm in a proper C declaration.
14939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14940
14941 # Transform the output of nm in a C name address pair.
14942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14943
14944 # Transform the output of nm in a C name address pair when lib prefix is needed.
14945 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14946
14947 # Specify filename containing input files for \$NM.
14948 nm_file_list_spec=$lt_nm_file_list_spec
14949
14950 # The root where to search for dependent libraries,and in which our libraries should be installed.
14951 lt_sysroot=$lt_sysroot
14952
14953 # The name of the directory that contains temporary libtool files.
14954 objdir=$objdir
14955
14956 # Used to examine libraries when file_magic_cmd begins with "file".
14957 MAGIC_CMD=$MAGIC_CMD
14958
14959 # Must we lock files when doing compilation?
14960 need_locks=$lt_need_locks
14961
14962 # Manifest tool.
14963 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14964
14965 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14966 DSYMUTIL=$lt_DSYMUTIL
14967
14968 # Tool to change global to local symbols on Mac OS X.
14969 NMEDIT=$lt_NMEDIT
14970
14971 # Tool to manipulate fat objects and archives on Mac OS X.
14972 LIPO=$lt_LIPO
14973
14974 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14975 OTOOL=$lt_OTOOL
14976
14977 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14978 OTOOL64=$lt_OTOOL64
14979
14980 # Old archive suffix (normally "a").
14981 libext=$libext
14982
14983 # Shared library suffix (normally ".so").
14984 shrext_cmds=$lt_shrext_cmds
14985
14986 # The commands to extract the exported symbol list from a shared archive.
14987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14988
14989 # Variables whose values should be saved in libtool wrapper scripts and
14990 # restored at link time.
14991 variables_saved_for_relink=$lt_variables_saved_for_relink
14992
14993 # Do we need the "lib" prefix for modules?
14994 need_lib_prefix=$need_lib_prefix
14995
14996 # Do we need a version for libraries?
14997 need_version=$need_version
14998
14999 # Library versioning type.
15000 version_type=$version_type
15001
15002 # Shared library runtime path variable.
15003 runpath_var=$runpath_var
15004
15005 # Shared library path variable.
15006 shlibpath_var=$shlibpath_var
15007
15008 # Is shlibpath searched before the hard-coded library search path?
15009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15010
15011 # Format of library name prefix.
15012 libname_spec=$lt_libname_spec
15013
15014 # List of archive names.  First name is the real one, the rest are links.
15015 # The last name is the one that the linker finds with -lNAME
15016 library_names_spec=$lt_library_names_spec
15017
15018 # The coded name of the library, if different from the real name.
15019 soname_spec=$lt_soname_spec
15020
15021 # Permission mode override for installation of shared libraries.
15022 install_override_mode=$lt_install_override_mode
15023
15024 # Command to use after installation of a shared archive.
15025 postinstall_cmds=$lt_postinstall_cmds
15026
15027 # Command to use after uninstallation of a shared archive.
15028 postuninstall_cmds=$lt_postuninstall_cmds
15029
15030 # Commands used to finish a libtool library installation in a directory.
15031 finish_cmds=$lt_finish_cmds
15032
15033 # As "finish_cmds", except a single script fragment to be evaled but
15034 # not shown.
15035 finish_eval=$lt_finish_eval
15036
15037 # Whether we should hardcode library paths into libraries.
15038 hardcode_into_libs=$hardcode_into_libs
15039
15040 # Compile-time system search path for libraries.
15041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15042
15043 # Run-time system search path for libraries.
15044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15045
15046 # Whether dlopen is supported.
15047 dlopen_support=$enable_dlopen
15048
15049 # Whether dlopen of programs is supported.
15050 dlopen_self=$enable_dlopen_self
15051
15052 # Whether dlopen of statically linked programs is supported.
15053 dlopen_self_static=$enable_dlopen_self_static
15054
15055 # Commands to strip libraries.
15056 old_striplib=$lt_old_striplib
15057 striplib=$lt_striplib
15058
15059
15060 # The linker used to build libraries.
15061 LD=$lt_LD
15062
15063 # How to create reloadable object files.
15064 reload_flag=$lt_reload_flag
15065 reload_cmds=$lt_reload_cmds
15066
15067 # Commands used to build an old-style archive.
15068 old_archive_cmds=$lt_old_archive_cmds
15069
15070 # A language specific compiler.
15071 CC=$lt_compiler
15072
15073 # Is the compiler the GNU compiler?
15074 with_gcc=$GCC
15075
15076 # Compiler flag to turn off builtin functions.
15077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15078
15079 # Additional compiler flags for building library objects.
15080 pic_flag=$lt_lt_prog_compiler_pic
15081
15082 # How to pass a linker flag through the compiler.
15083 wl=$lt_lt_prog_compiler_wl
15084
15085 # Compiler flag to prevent dynamic linking.
15086 link_static_flag=$lt_lt_prog_compiler_static
15087
15088 # Does compiler simultaneously support -c and -o options?
15089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15090
15091 # Whether or not to add -lc for building shared libraries.
15092 build_libtool_need_lc=$archive_cmds_need_lc
15093
15094 # Whether or not to disallow shared libs when runtime libs are static.
15095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15096
15097 # Compiler flag to allow reflexive dlopens.
15098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15099
15100 # Compiler flag to generate shared objects directly from archives.
15101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15102
15103 # Whether the compiler copes with passing no objects directly.
15104 compiler_needs_object=$lt_compiler_needs_object
15105
15106 # Create an old-style archive from a shared archive.
15107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15108
15109 # Create a temporary old-style archive to link instead of a shared archive.
15110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15111
15112 # Commands used to build a shared archive.
15113 archive_cmds=$lt_archive_cmds
15114 archive_expsym_cmds=$lt_archive_expsym_cmds
15115
15116 # Commands used to build a loadable module if different from building
15117 # a shared archive.
15118 module_cmds=$lt_module_cmds
15119 module_expsym_cmds=$lt_module_expsym_cmds
15120
15121 # Whether we are building with GNU ld or not.
15122 with_gnu_ld=$lt_with_gnu_ld
15123
15124 # Flag that allows shared libraries with undefined symbols to be built.
15125 allow_undefined_flag=$lt_allow_undefined_flag
15126
15127 # Flag that enforces no undefined symbols.
15128 no_undefined_flag=$lt_no_undefined_flag
15129
15130 # Flag to hardcode \$libdir into a binary during linking.
15131 # This must work even if \$libdir does not exist
15132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15133
15134 # Whether we need a single "-rpath" flag with a separated argument.
15135 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15136
15137 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15138 # DIR into the resulting binary.
15139 hardcode_direct=$hardcode_direct
15140
15141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15142 # DIR into the resulting binary and the resulting library dependency is
15143 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15144 # library is relocated.
15145 hardcode_direct_absolute=$hardcode_direct_absolute
15146
15147 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15148 # into the resulting binary.
15149 hardcode_minus_L=$hardcode_minus_L
15150
15151 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15152 # into the resulting binary.
15153 hardcode_shlibpath_var=$hardcode_shlibpath_var
15154
15155 # Set to "yes" if building a shared library automatically hardcodes DIR
15156 # into the library and all subsequent libraries and executables linked
15157 # against it.
15158 hardcode_automatic=$hardcode_automatic
15159
15160 # Set to yes if linker adds runtime paths of dependent libraries
15161 # to runtime path list.
15162 inherit_rpath=$inherit_rpath
15163
15164 # Whether libtool must link a program against all its dependency libraries.
15165 link_all_deplibs=$link_all_deplibs
15166
15167 # Set to "yes" if exported symbols are required.
15168 always_export_symbols=$always_export_symbols
15169
15170 # The commands to list exported symbols.
15171 export_symbols_cmds=$lt_export_symbols_cmds
15172
15173 # Symbols that should not be listed in the preloaded symbols.
15174 exclude_expsyms=$lt_exclude_expsyms
15175
15176 # Symbols that must always be exported.
15177 include_expsyms=$lt_include_expsyms
15178
15179 # Commands necessary for linking programs (against libraries) with templates.
15180 prelink_cmds=$lt_prelink_cmds
15181
15182 # Commands necessary for finishing linking programs.
15183 postlink_cmds=$lt_postlink_cmds
15184
15185 # Specify filename containing input files.
15186 file_list_spec=$lt_file_list_spec
15187
15188 # How to hardcode a shared library path into an executable.
15189 hardcode_action=$hardcode_action
15190
15191 # ### END LIBTOOL CONFIG
15192
15193 _LT_EOF
15194
15195   case $host_os in
15196   aix3*)
15197     cat <<\_LT_EOF >> "$cfgfile"
15198 # AIX sometimes has problems with the GCC collect2 program.  For some
15199 # reason, if we set the COLLECT_NAMES environment variable, the problems
15200 # vanish in a puff of smoke.
15201 if test "X${COLLECT_NAMES+set}" != Xset; then
15202   COLLECT_NAMES=
15203   export COLLECT_NAMES
15204 fi
15205 _LT_EOF
15206     ;;
15207   esac
15208
15209
15210 ltmain="$ac_aux_dir/ltmain.sh"
15211
15212
15213   # We use sed instead of cat because bash on DJGPP gets confused if
15214   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15215   # text mode, it properly converts lines to CR/LF.  This bash problem
15216   # is reportedly fixed, but why not run on old versions too?
15217   sed '$q' "$ltmain" >> "$cfgfile" \
15218      || (rm -f "$cfgfile"; exit 1)
15219
15220   if test x"$xsi_shell" = xyes; then
15221   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15222 func_dirname ()\
15223 {\
15224 \    case ${1} in\
15225 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15226 \      *  ) func_dirname_result="${3}" ;;\
15227 \    esac\
15228 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15229   && mv -f "$cfgfile.tmp" "$cfgfile" \
15230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15231 test 0 -eq $? || _lt_function_replace_fail=:
15232
15233
15234   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15235 func_basename ()\
15236 {\
15237 \    func_basename_result="${1##*/}"\
15238 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15239   && mv -f "$cfgfile.tmp" "$cfgfile" \
15240     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15241 test 0 -eq $? || _lt_function_replace_fail=:
15242
15243
15244   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15245 func_dirname_and_basename ()\
15246 {\
15247 \    case ${1} in\
15248 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15249 \      *  ) func_dirname_result="${3}" ;;\
15250 \    esac\
15251 \    func_basename_result="${1##*/}"\
15252 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15253   && mv -f "$cfgfile.tmp" "$cfgfile" \
15254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15255 test 0 -eq $? || _lt_function_replace_fail=:
15256
15257
15258   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15259 func_stripname ()\
15260 {\
15261 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15262 \    # positional parameters, so assign one to ordinary parameter first.\
15263 \    func_stripname_result=${3}\
15264 \    func_stripname_result=${func_stripname_result#"${1}"}\
15265 \    func_stripname_result=${func_stripname_result%"${2}"}\
15266 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15267   && mv -f "$cfgfile.tmp" "$cfgfile" \
15268     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15269 test 0 -eq $? || _lt_function_replace_fail=:
15270
15271
15272   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15273 func_split_long_opt ()\
15274 {\
15275 \    func_split_long_opt_name=${1%%=*}\
15276 \    func_split_long_opt_arg=${1#*=}\
15277 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15278   && mv -f "$cfgfile.tmp" "$cfgfile" \
15279     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15280 test 0 -eq $? || _lt_function_replace_fail=:
15281
15282
15283   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15284 func_split_short_opt ()\
15285 {\
15286 \    func_split_short_opt_arg=${1#??}\
15287 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15288 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15289   && mv -f "$cfgfile.tmp" "$cfgfile" \
15290     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15291 test 0 -eq $? || _lt_function_replace_fail=:
15292
15293
15294   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15295 func_lo2o ()\
15296 {\
15297 \    case ${1} in\
15298 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15299 \      *)    func_lo2o_result=${1} ;;\
15300 \    esac\
15301 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15302   && mv -f "$cfgfile.tmp" "$cfgfile" \
15303     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15304 test 0 -eq $? || _lt_function_replace_fail=:
15305
15306
15307   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15308 func_xform ()\
15309 {\
15310     func_xform_result=${1%.*}.lo\
15311 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15312   && mv -f "$cfgfile.tmp" "$cfgfile" \
15313     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15314 test 0 -eq $? || _lt_function_replace_fail=:
15315
15316
15317   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15318 func_arith ()\
15319 {\
15320     func_arith_result=$(( $* ))\
15321 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15322   && mv -f "$cfgfile.tmp" "$cfgfile" \
15323     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15324 test 0 -eq $? || _lt_function_replace_fail=:
15325
15326
15327   sed -e '/^func_len ()$/,/^} # func_len /c\
15328 func_len ()\
15329 {\
15330     func_len_result=${#1}\
15331 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15332   && mv -f "$cfgfile.tmp" "$cfgfile" \
15333     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15334 test 0 -eq $? || _lt_function_replace_fail=:
15335
15336 fi
15337
15338 if test x"$lt_shell_append" = xyes; then
15339   sed -e '/^func_append ()$/,/^} # func_append /c\
15340 func_append ()\
15341 {\
15342     eval "${1}+=\\${2}"\
15343 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15344   && mv -f "$cfgfile.tmp" "$cfgfile" \
15345     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15346 test 0 -eq $? || _lt_function_replace_fail=:
15347
15348
15349   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15350 func_append_quoted ()\
15351 {\
15352 \    func_quote_for_eval "${2}"\
15353 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15354 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15355   && mv -f "$cfgfile.tmp" "$cfgfile" \
15356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15357 test 0 -eq $? || _lt_function_replace_fail=:
15358
15359
15360   # Save a `func_append' function call where possible by direct use of '+='
15361   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15362     && mv -f "$cfgfile.tmp" "$cfgfile" \
15363       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15364   test 0 -eq $? || _lt_function_replace_fail=:
15365 else
15366   # Save a `func_append' function call even when '+=' is not available
15367   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15368     && mv -f "$cfgfile.tmp" "$cfgfile" \
15369       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15370   test 0 -eq $? || _lt_function_replace_fail=:
15371 fi
15372
15373 if test x"$_lt_function_replace_fail" = x":"; then
15374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15375 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15376 fi
15377
15378
15379    mv -f "$cfgfile" "$ofile" ||
15380     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15381   chmod +x "$ofile"
15382
15383  ;;
15384     "libpng-config":F) chmod +x libpng-config ;;
15385
15386   esac
15387 done # for ac_tag
15388
15389
15390 as_fn_exit 0
15391 _ACEOF
15392 ac_clean_files=$ac_clean_files_save
15393
15394 test $ac_write_fail = 0 ||
15395   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15396
15397
15398 # configure is writing to config.log, and then calls config.status.
15399 # config.status does its own redirection, appending to config.log.
15400 # Unfortunately, on DOS this fails, as config.log is still kept open
15401 # by configure, so config.status won't be able to write to it; its
15402 # output is simply discarded.  So we exec the FD to /dev/null,
15403 # effectively closing config.log, so it can be properly (re)opened and
15404 # appended to by config.status.  When coming back to configure, we
15405 # need to make the FD available again.
15406 if test "$no_create" != yes; then
15407   ac_cs_success=:
15408   ac_config_status_args=
15409   test "$silent" = yes &&
15410     ac_config_status_args="$ac_config_status_args --quiet"
15411   exec 5>/dev/null
15412   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15413   exec 5>>config.log
15414   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15415   # would make configure fail if this is the last instruction.
15416   $ac_cs_success || as_fn_exit 1
15417 fi
15418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15419   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15421 fi
15422