]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libpng/lib/dist/configure
1537865c461faac9a3285e84fb5e5df036da9607
[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.5.14.
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.5.14'
594 PACKAGE_STRING='libpng 1.5.14'
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 binconfigs
642 pkgconfigdir
643 PNGLIB_RELEASE
644 PNGLIB_MINOR
645 PNGLIB_MAJOR
646 PNGLIB_VERSION
647 SYMBOL_PREFIX
648 HAVE_LD_VERSION_SCRIPT_FALSE
649 HAVE_LD_VERSION_SCRIPT_TRUE
650 HAVE_SOLARIS_LD_FALSE
651 HAVE_SOLARIS_LD_TRUE
652 LIBPNG_DEFINES
653 LIBOBJS
654 POW_LIB
655 DFNCPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LIBTOOL
669 OBJDUMP
670 DLLTOOL
671 AS
672 LN_S
673 CPP
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__quote
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_maintainer_mode
777 enable_dependency_tracking
778 with_gnu_ld
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_sysroot
784 enable_libtool_lock
785 with_zlib_prefix
786 with_pkgconfigdir
787 with_binconfigs
788 enable_arm_neon
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CCAS
799 CCASFLAGS
800 CPP'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *=)   ac_optarg= ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error $? "invalid package name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval with_$ac_useropt=\$ac_optarg ;;
1151
1152   -without-* | --without-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       as_fn_error $? "invalid package name: $ac_useropt"
1157     ac_useropt_orig=$ac_useropt
1158     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159     case $ac_user_opts in
1160       *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164          ac_unrecognized_sep=', ';;
1165     esac
1166     eval with_$ac_useropt=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     case $ac_envvar in #(
1194       '' | [0-9]* | *[!_$as_cr_alnum]* )
1195       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196     esac
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217   case $enable_option_checking in
1218     no) ;;
1219     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221   esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226                 datadir sysconfdir sharedstatedir localstatedir includedir \
1227                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228                 libdir localedir mandir
1229 do
1230   eval ac_val=\$$ac_var
1231   # Remove trailing slashes.
1232   case $ac_val in
1233     */ )
1234       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235       eval $ac_var=\$ac_val;;
1236   esac
1237   # Be sure to have absolute directory names.
1238   case $ac_val in
1239     [\\/$]* | ?:[\\/]* )  continue;;
1240     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241   esac
1242   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254   if test "x$build_alias" = x; then
1255     cross_compiling=maybe
1256   elif test "x$build_alias" != "x$host_alias"; then
1257     cross_compiling=yes
1258   fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270   as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272   as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277   ac_srcdir_defaulted=yes
1278   # Try the directory containing this script, then the parent directory.
1279   ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281          X"$as_myself" : 'X\(//\)[^/]' \| \
1282          X"$as_myself" : 'X\(//\)$' \| \
1283          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\/\)[^/].*/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)$/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\).*/{
1298             s//\1/
1299             q
1300           }
1301           s/.*/./; q'`
1302   srcdir=$ac_confdir
1303   if test ! -r "$srcdir/$ac_unique_file"; then
1304     srcdir=..
1305   fi
1306 else
1307   ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316         pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319   srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_env_${ac_var}_value=\$${ac_var}
1330   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338   # Omit some internal or obsolete options to make the list less imposing.
1339   # This message is too long to be a string in the A/UX 3.1 sh.
1340   cat <<_ACEOF
1341 \`configure' configures libpng 1.5.14 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE.  See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351   -h, --help              display this help and exit
1352       --help=short        display options specific to this package
1353       --help=recursive    display the short help of all the included packages
1354   -V, --version           display version information and exit
1355   -q, --quiet, --silent   do not print \`checking ...' messages
1356       --cache-file=FILE   cache test results in FILE [disabled]
1357   -C, --config-cache      alias for \`--cache-file=config.cache'
1358   -n, --no-create         do not create output files
1359       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362   --prefix=PREFIX         install architecture-independent files in PREFIX
1363                           [$ac_default_prefix]
1364   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1365                           [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375   --bindir=DIR            user executables [EPREFIX/bin]
1376   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1377   --libexecdir=DIR        program executables [EPREFIX/libexec]
1378   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1379   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1380   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1381   --libdir=DIR            object code libraries [EPREFIX/lib]
1382   --includedir=DIR        C header files [PREFIX/include]
1383   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386   --infodir=DIR           info documentation [DATAROOTDIR/info]
1387   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388   --mandir=DIR            man documentation [DATAROOTDIR/man]
1389   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1390   --htmldir=DIR           html documentation [DOCDIR]
1391   --dvidir=DIR            dvi documentation [DOCDIR]
1392   --pdfdir=DIR            pdf documentation [DOCDIR]
1393   --psdir=DIR             ps documentation [DOCDIR]
1394 _ACEOF
1395
1396   cat <<\_ACEOF
1397
1398 Program names:
1399   --program-prefix=PREFIX            prepend PREFIX to installed program names
1400   --program-suffix=SUFFIX            append SUFFIX to installed program names
1401   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403 System types:
1404   --build=BUILD     configure for building on BUILD [guessed]
1405   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410   case $ac_init_help in
1411      short | recursive ) echo "Configuration of libpng 1.5.14:";;
1412    esac
1413   cat <<\_ACEOF
1414
1415 Optional Features:
1416   --disable-option-checking  ignore unrecognized --enable/--with options
1417   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419   --enable-maintainer-mode  enable make rules and dependencies not useful
1420                           (and sometimes confusing) to the casual installer
1421   --disable-dependency-tracking  speeds up one-time build
1422   --enable-dependency-tracking   do not reject slow dependency extractors
1423   --enable-shared[=PKGS]  build shared libraries [default=yes]
1424   --enable-static[=PKGS]  build static libraries [default=yes]
1425   --enable-fast-install[=PKGS]
1426                           optimize for fast installation [default=yes]
1427   --disable-libtool-lock  avoid locking (might break parallel builds)
1428   --enable-arm-neon       Enable ARM NEON optimizations
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1435                           both]
1436   --with-sysroot=DIR Search for dependent libraries within DIR
1437                         (or the compiler's sysroot if not specified).
1438   --with-zlib-prefix      prefix that may have been used in installed zlib
1439   --with-pkgconfigdir     Use the specified pkgconfig dir (default is
1440                           libdir/pkgconfig)
1441   --with-binconfigs       Generate shell libpng-config scripts as well as
1442                           pkg-config data [default=yes]
1443
1444 Some influential environment variables:
1445   CC          C compiler command
1446   CFLAGS      C compiler flags
1447   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448               nonstandard directory <lib dir>
1449   LIBS        libraries to pass to the linker, e.g. -l<library>
1450   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451               you have headers in a nonstandard directory <include dir>
1452   CCAS        assembler compiler command (defaults to CC)
1453   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1454   CPP         C preprocessor
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465   # If there are subdirs, report their specific --help.
1466   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467     test -d "$ac_dir" ||
1468       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469       continue
1470     ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476   # A ".." for each directory in $ac_dir_suffix.
1477   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478   case $ac_top_builddir_sub in
1479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481   esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489   .)  # We are building in place.
1490     ac_srcdir=.
1491     ac_top_srcdir=$ac_top_builddir_sub
1492     ac_abs_top_srcdir=$ac_pwd ;;
1493   [\\/]* | ?:[\\/]* )  # Absolute name.
1494     ac_srcdir=$srcdir$ac_dir_suffix;
1495     ac_top_srcdir=$srcdir
1496     ac_abs_top_srcdir=$srcdir ;;
1497   *) # Relative name.
1498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499     ac_top_srcdir=$ac_top_build_prefix$srcdir
1500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504     cd "$ac_dir" || { ac_status=$?; continue; }
1505     # Check for guested configure.
1506     if test -f "$ac_srcdir/configure.gnu"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509     elif test -f "$ac_srcdir/configure"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure" --help=recursive
1512     else
1513       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514     fi || ac_status=$?
1515     cd "$ac_pwd" || { ac_status=$?; break; }
1516   done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521   cat <<\_ACEOF
1522 libpng configure 1.5.14
1523 generated by GNU Autoconf 2.69
1524
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529   exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542   rm -f conftest.$ac_objext
1543   if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546   *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550   (eval "$ac_compile") 2>conftest.err
1551   ac_status=$?
1552   if test -s conftest.err; then
1553     grep -v '^ *+' conftest.err >conftest.er1
1554     cat conftest.er1 >&5
1555     mv -f conftest.er1 conftest.err
1556   fi
1557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558   test $ac_status = 0; } && {
1559          test -z "$ac_c_werror_flag" ||
1560          test ! -s conftest.err
1561        } && test -s conftest.$ac_objext; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570   as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_cpp ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588   ac_status=$?
1589   if test -s conftest.err; then
1590     grep -v '^ *+' conftest.err >conftest.er1
1591     cat conftest.er1 >&5
1592     mv -f conftest.er1 conftest.err
1593   fi
1594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595   test $ac_status = 0; } > conftest.i && {
1596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597          test ! -s conftest.err
1598        }; then :
1599   ac_retval=0
1600 else
1601   $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604     ac_retval=1
1605 fi
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607   as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_cpp
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   rm -f conftest.$ac_objext conftest$ac_exeext
1618   if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_link") 2>conftest.err
1626   ac_status=$?
1627   if test -s conftest.err; then
1628     grep -v '^ *+' conftest.err >conftest.er1
1629     cat conftest.er1 >&5
1630     mv -f conftest.er1 conftest.err
1631   fi
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && {
1634          test -z "$ac_c_werror_flag" ||
1635          test ! -s conftest.err
1636        } && test -s conftest$ac_exeext && {
1637          test "$cross_compiling" = yes ||
1638          test -x conftest$ac_exeext
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649   # interfere with the next link command; also delete a directory that is
1650   # left behind by Apple's compiler.  We do this before executing the actions.
1651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667   $as_echo_n "(cached) " >&6
1668 else
1669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h.  */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675   eval "$3=yes"
1676 else
1677   eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706   { { case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_try") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; }; }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: program exited with status $ac_status" >&5
1719        $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722        ac_retval=$ac_status
1723 fi
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739   $as_echo_n "(cached) " >&6
1740 else
1741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748     which can conflict with char $2 (); below.
1749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750     <limits.h> exists even on freestanding compilers.  */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761    Use char because int might match the return type of a GCC
1762    builtin and then its argument prototype would still apply.  */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768     to always fail with ENOSYS.  Some functions are actually named
1769     something starting with __ and the normal name is an alias.  */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778   ;
1779   return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783   eval "$3=yes"
1784 else
1785   eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788     conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1800 # the include files in INCLUDES and setting the cache variable VAR
1801 # accordingly.
1802 ac_fn_c_check_header_mongrel ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if eval \${$3+:} false; then :
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 fi
1811 eval ac_res=\$$3
1812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 else
1815   # Is the header compilable?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1817 $as_echo_n "checking $2 usability... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 $4
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824   ac_header_compiler=yes
1825 else
1826   ac_header_compiler=no
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1830 $as_echo "$ac_header_compiler" >&6; }
1831
1832 # Is the header present?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1834 $as_echo_n "checking $2 presence... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_cpp "$LINENO"; then :
1840   ac_header_preproc=yes
1841 else
1842   ac_header_preproc=no
1843 fi
1844 rm -f conftest.err conftest.i conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1846 $as_echo "$ac_header_preproc" >&6; }
1847
1848 # So?  What about this header?
1849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1850   yes:no: )
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1852 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855     ;;
1856   no:yes:* )
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1858 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1860 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1862 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1864 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ( $as_echo "## ------------------------------------------------------ ##
1868 ## Report this to png-mng-implement@lists.sourceforge.net ##
1869 ## ------------------------------------------------------ ##"
1870      ) | sed "s/^/$as_me: WARNING:     /" >&2
1871     ;;
1872 esac
1873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876   $as_echo_n "(cached) " >&6
1877 else
1878   eval "$3=\$ac_header_compiler"
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 fi
1884   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_header_mongrel
1887
1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889 # -------------------------------------------
1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
1891 # variable VAR accordingly.
1892 ac_fn_c_check_type ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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=no"
1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 if (sizeof ($2))
1908          return 0;
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 int
1918 main ()
1919 {
1920 if (sizeof (($2)))
1921             return 0;
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927
1928 else
1929   eval "$3=yes"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_type
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1944
1945 It was created by libpng $as_me 1.5.14, which was
1946 generated by GNU Autoconf 2.69.  Invocation command line was
1947
1948   $ $0 $@
1949
1950 _ACEOF
1951 exec 5>>config.log
1952 {
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1957
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1966
1967 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1968 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1971 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1972 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1973 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1974
1975 _ASUNAME
1976
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982     $as_echo "PATH: $as_dir"
1983   done
1984 IFS=$as_save_IFS
1985
1986 } >&5
1987
1988 cat >&5 <<_ACEOF
1989
1990
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1994
1995 _ACEOF
1996
1997
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2008 do
2009   for ac_arg
2010   do
2011     case $ac_arg in
2012     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014     | -silent | --silent | --silen | --sile | --sil)
2015       continue ;;
2016     *\'*)
2017       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     esac
2019     case $ac_pass in
2020     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021     2)
2022       as_fn_append ac_configure_args1 " '$ac_arg'"
2023       if test $ac_must_keep_next = true; then
2024         ac_must_keep_next=false # Got value, back to normal.
2025       else
2026         case $ac_arg in
2027           *=* | --config-cache | -C | -disable-* | --disable-* \
2028           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030           | -with-* | --with-* | -without-* | --without-* | --x)
2031             case "$ac_configure_args0 " in
2032               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033             esac
2034             ;;
2035           -* ) ac_must_keep_next=true ;;
2036         esac
2037       fi
2038       as_fn_append ac_configure_args " '$ac_arg'"
2039       ;;
2040     esac
2041   done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2045
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log.  We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052   # Save into config.log some information that might help in debugging.
2053   {
2054     echo
2055
2056     $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059     echo
2060     # The following way of writing the cache mishandles newlines in values,
2061 (
2062   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063     eval ac_val=\$$ac_var
2064     case $ac_val in #(
2065     *${as_nl}*)
2066       case $ac_var in #(
2067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069       esac
2070       case $ac_var in #(
2071       _ | IFS | as_nl) ;; #(
2072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073       *) { eval $ac_var=; unset $ac_var;} ;;
2074       esac ;;
2075     esac
2076   done
2077   (set) 2>&1 |
2078     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079     *${as_nl}ac_space=\ *)
2080       sed -n \
2081         "s/'\''/'\''\\\\'\'''\''/g;
2082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083       ;; #(
2084     *)
2085       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086       ;;
2087     esac |
2088     sort
2089 )
2090     echo
2091
2092     $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095     echo
2096     for ac_var in $ac_subst_vars
2097     do
2098       eval ac_val=\$$ac_var
2099       case $ac_val in
2100       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101       esac
2102       $as_echo "$ac_var='\''$ac_val'\''"
2103     done | sort
2104     echo
2105
2106     if test -n "$ac_subst_files"; then
2107       $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110       echo
2111       for ac_var in $ac_subst_files
2112       do
2113         eval ac_val=\$$ac_var
2114         case $ac_val in
2115         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116         esac
2117         $as_echo "$ac_var='\''$ac_val'\''"
2118       done | sort
2119       echo
2120     fi
2121
2122     if test -s confdefs.h; then
2123       $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126       echo
2127       cat confdefs.h
2128       echo
2129     fi
2130     test "$ac_signal" != 0 &&
2131       $as_echo "$as_me: caught signal $ac_signal"
2132     $as_echo "$as_me: exit $exit_status"
2133   } >&5
2134   rm -f core *.core core.conftest.* &&
2135     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136     exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 $as_echo "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2173
2174
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180   # We do not want a PATH search for config.site.
2181   case $CONFIG_SITE in #((
2182     -*)  ac_site_file1=./$CONFIG_SITE;;
2183     */*) ac_site_file1=$CONFIG_SITE;;
2184     *)   ac_site_file1=./$CONFIG_SITE;;
2185   esac
2186 elif test "x$prefix" != xNONE; then
2187   ac_site_file1=$prefix/share/config.site
2188   ac_site_file2=$prefix/etc/config.site
2189 else
2190   ac_site_file1=$ac_default_prefix/share/config.site
2191   ac_site_file2=$ac_default_prefix/etc/config.site
2192 fi
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194 do
2195   test "x$ac_site_file" = xNONE && continue
2196   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199     sed 's/^/| /' "$ac_site_file" >&5
2200     . "$ac_site_file" \
2201       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2205   fi
2206 done
2207
2208 if test -r "$cache_file"; then
2209   # Some versions of bash will fail to source /dev/null (special files
2210   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214     case $cache_file in
2215       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216       *)                      . "./$cache_file";;
2217     esac
2218   fi
2219 else
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222   >$cache_file
2223 fi
2224
2225 # Check that the precious variables saved in the cache have kept the same
2226 # value.
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230   eval ac_new_set=\$ac_env_${ac_var}_set
2231   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232   eval ac_new_val=\$ac_env_${ac_var}_value
2233   case $ac_old_set,$ac_new_set in
2234     set,)
2235       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237       ac_cache_corrupted=: ;;
2238     ,set)
2239       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241       ac_cache_corrupted=: ;;
2242     ,);;
2243     *)
2244       if test "x$ac_old_val" != "x$ac_new_val"; then
2245         # differences in whitespace do not lead to failure.
2246         ac_old_val_w=`echo x $ac_old_val`
2247         ac_new_val_w=`echo x $ac_new_val`
2248         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251           ac_cache_corrupted=:
2252         else
2253           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255           eval $ac_var=\$ac_old_val
2256         fi
2257         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2258 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2259         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2261       fi;;
2262   esac
2263   # Pass precious variables to config.status.
2264   if test "$ac_new_set" = set; then
2265     case $ac_new_val in
2266     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267     *) ac_arg=$ac_var=$ac_new_val ;;
2268     esac
2269     case " $ac_configure_args " in
2270       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2271       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272     esac
2273   fi
2274 done
2275 if $ac_cache_corrupted; then
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281 fi
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2285
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293 am__api_version='1.11'
2294
2295 ac_aux_dir=
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297   if test -f "$ac_dir/install-sh"; then
2298     ac_aux_dir=$ac_dir
2299     ac_install_sh="$ac_aux_dir/install-sh -c"
2300     break
2301   elif test -f "$ac_dir/install.sh"; then
2302     ac_aux_dir=$ac_dir
2303     ac_install_sh="$ac_aux_dir/install.sh -c"
2304     break
2305   elif test -f "$ac_dir/shtool"; then
2306     ac_aux_dir=$ac_dir
2307     ac_install_sh="$ac_aux_dir/shtool install -c"
2308     break
2309   fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2322
2323
2324 # Find a good install program.  We prefer a C program (faster),
2325 # so one script is as good as another.  But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2330 # AIX /bin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if ${ac_cv_path_install+:} false; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349     # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in #((
2351   ./ | .// | /[cC]/* | \
2352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2354   /usr/ucb/* ) ;;
2355   *)
2356     # OSF1 and SCO ODT 3.0 have their own names for install.
2357     # Don't use installbsd from OSF since it installs stuff as root
2358     # by default.
2359     for ac_prog in ginstall scoinst install; do
2360       for ac_exec_ext in '' $ac_executable_extensions; do
2361         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362           if test $ac_prog = install &&
2363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364             # AIX install.  It has an incompatible calling convention.
2365             :
2366           elif test $ac_prog = install &&
2367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # program-specific install script used by HP pwplus--don't use.
2369             :
2370           else
2371             rm -rf conftest.one conftest.two conftest.dir
2372             echo one > conftest.one
2373             echo two > conftest.two
2374             mkdir conftest.dir
2375             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376               test -s conftest.one && test -s conftest.two &&
2377               test -s conftest.dir/conftest.one &&
2378               test -s conftest.dir/conftest.two
2379             then
2380               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381               break 3
2382             fi
2383           fi
2384         fi
2385       done
2386     done
2387     ;;
2388 esac
2389
2390   done
2391 IFS=$as_save_IFS
2392
2393 rm -rf conftest.one conftest.two conftest.dir
2394
2395 fi
2396   if test "${ac_cv_path_install+set}" = set; then
2397     INSTALL=$ac_cv_path_install
2398   else
2399     # As a last resort, use the slow shell script.  Don't cache a
2400     # value for INSTALL within a source directory, because that will
2401     # break other packages using the cache if that directory is
2402     # removed, or if the value is a relative name.
2403     INSTALL=$ac_install_sh
2404   fi
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2408
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Just in case
2420 sleep 1
2421 echo timestamp > conftest.file
2422 # Reject unsafe characters in $srcdir or the absolute working directory
2423 # name.  Accept space and tab only in the latter.
2424 am_lf='
2425 '
2426 case `pwd` in
2427   *[\\\"\#\$\&\'\`$am_lf]*)
2428     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2429 esac
2430 case $srcdir in
2431   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2432     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2433 esac
2434
2435 # Do `set' in a subshell so we don't clobber the current shell's
2436 # arguments.  Must try -L first in case configure is actually a
2437 # symlink; some systems play weird games with the mod time of symlinks
2438 # (eg FreeBSD returns the mod time of the symlink's containing
2439 # directory).
2440 if (
2441    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442    if test "$*" = "X"; then
2443       # -L didn't work.
2444       set X `ls -t "$srcdir/configure" conftest.file`
2445    fi
2446    rm -f conftest.file
2447    if test "$*" != "X $srcdir/configure conftest.file" \
2448       && test "$*" != "X conftest.file $srcdir/configure"; then
2449
2450       # If neither matched, then we have a broken ls.  This can happen
2451       # if, for instance, CONFIG_SHELL is bash and it inherits a
2452       # broken ls alias from the environment.  This has actually
2453       # happened.  Such a system could not be considered "sane".
2454       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2455 alias in your environment" "$LINENO" 5
2456    fi
2457
2458    test "$2" = conftest.file
2459    )
2460 then
2461    # Ok.
2462    :
2463 else
2464    as_fn_error $? "newly created file is older than distributed files!
2465 Check your system clock" "$LINENO" 5
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2468 $as_echo "yes" >&6; }
2469 test "$program_prefix" != NONE &&
2470   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2471 # Use a double $ so make ignores it.
2472 test "$program_suffix" != NONE &&
2473   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2474 # Double any \ or $.
2475 # By default was `s,x,x', remove it if useless.
2476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2478
2479 # expand $ac_aux_dir to an absolute path
2480 am_aux_dir=`cd $ac_aux_dir && pwd`
2481
2482 if test x"${MISSING+set}" != xset; then
2483   case $am_aux_dir in
2484   *\ * | *\     *)
2485     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2486   *)
2487     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2488   esac
2489 fi
2490 # Use eval to expand $SHELL
2491 if eval "$MISSING --run true"; then
2492   am_missing_run="$MISSING --run "
2493 else
2494   am_missing_run=
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2496 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2497 fi
2498
2499 if test x"${install_sh}" != xset; then
2500   case $am_aux_dir in
2501   *\ * | *\     *)
2502     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2503   *)
2504     install_sh="\${SHELL} $am_aux_dir/install-sh"
2505   esac
2506 fi
2507
2508 # Installed binaries are usually stripped using `strip' when the user
2509 # run `make install-strip'.  However `strip' might not be the right
2510 # tool to use in cross-compilation environments, therefore Automake
2511 # will honor the `STRIP' environment variable to overrule this program.
2512 if test "$cross_compiling" != no; then
2513   if test -n "$ac_tool_prefix"; then
2514   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_STRIP+:} false; then :
2519   $as_echo_n "(cached) " >&6
2520 else
2521   if test -n "$STRIP"; then
2522   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529     for ac_exec_ext in '' $ac_executable_extensions; do
2530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536   done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 STRIP=$ac_cv_prog_STRIP
2542 if test -n "$STRIP"; then
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2544 $as_echo "$STRIP" >&6; }
2545 else
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$ac_cv_prog_STRIP"; then
2553   ac_ct_STRIP=$STRIP
2554   # Extract the first word of "strip", so it can be a program name with args.
2555 set dummy strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2559   $as_echo_n "(cached) " >&6
2560 else
2561   if test -n "$ac_ct_STRIP"; then
2562   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569     for ac_exec_ext in '' $ac_executable_extensions; do
2570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571     ac_cv_prog_ac_ct_STRIP="strip"
2572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576   done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2582 if test -n "$ac_ct_STRIP"; then
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2584 $as_echo "$ac_ct_STRIP" >&6; }
2585 else
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590   if test "x$ac_ct_STRIP" = x; then
2591     STRIP=":"
2592   else
2593     case $cross_compiling:$ac_tool_warned in
2594 yes:)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597 ac_tool_warned=yes ;;
2598 esac
2599     STRIP=$ac_ct_STRIP
2600   fi
2601 else
2602   STRIP="$ac_cv_prog_STRIP"
2603 fi
2604
2605 fi
2606 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2610 if test -z "$MKDIR_P"; then
2611   if ${ac_cv_path_mkdir+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619     for ac_prog in mkdir gmkdir; do
2620          for ac_exec_ext in '' $ac_executable_extensions; do
2621            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2622            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2623              'mkdir (GNU coreutils) '* | \
2624              'mkdir (coreutils) '* | \
2625              'mkdir (fileutils) '4.1*)
2626                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2627                break 3;;
2628            esac
2629          done
2630        done
2631   done
2632 IFS=$as_save_IFS
2633
2634 fi
2635
2636   test -d ./--version && rmdir ./--version
2637   if test "${ac_cv_path_mkdir+set}" = set; then
2638     MKDIR_P="$ac_cv_path_mkdir -p"
2639   else
2640     # As a last resort, use the slow shell script.  Don't cache a
2641     # value for MKDIR_P within a source directory, because that will
2642     # break other packages using the cache if that directory is
2643     # removed, or if the value is a relative name.
2644     MKDIR_P="$ac_install_sh -d"
2645   fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2648 $as_echo "$MKDIR_P" >&6; }
2649
2650 mkdir_p="$MKDIR_P"
2651 case $mkdir_p in
2652   [\\/$]* | ?:[\\/]*) ;;
2653   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2654 esac
2655
2656 for ac_prog in gawk mawk nawk awk
2657 do
2658   # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_AWK+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$AWK"; then
2666   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
2672   test -z "$as_dir" && as_dir=.
2673     for ac_exec_ext in '' $ac_executable_extensions; do
2674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675     ac_cv_prog_AWK="$ac_prog"
2676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677     break 2
2678   fi
2679 done
2680   done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 AWK=$ac_cv_prog_AWK
2686 if test -n "$AWK"; then
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2688 $as_echo "$AWK" >&6; }
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694
2695   test -n "$AWK" && break
2696 done
2697
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2699 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2700 set x ${MAKE-make}
2701 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2702 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   cat >conftest.make <<\_ACEOF
2706 SHELL = /bin/sh
2707 all:
2708         @echo '@@@%%%=$(MAKE)=@@@%%%'
2709 _ACEOF
2710 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2711 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2712   *@@@%%%=?*=@@@%%%*)
2713     eval ac_cv_prog_make_${ac_make}_set=yes;;
2714   *)
2715     eval ac_cv_prog_make_${ac_make}_set=no;;
2716 esac
2717 rm -f conftest.make
2718 fi
2719 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722   SET_MAKE=
2723 else
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726   SET_MAKE="MAKE=${MAKE-make}"
2727 fi
2728
2729 rm -rf .tst 2>/dev/null
2730 mkdir .tst 2>/dev/null
2731 if test -d .tst; then
2732   am__leading_dot=.
2733 else
2734   am__leading_dot=_
2735 fi
2736 rmdir .tst 2>/dev/null
2737
2738 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2739   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2740   # is not polluted with repeated "-I."
2741   am__isrc=' -I$(srcdir)'
2742   # test to see if srcdir already configured
2743   if test -f $srcdir/config.status; then
2744     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2745   fi
2746 fi
2747
2748 # test whether we have cygpath
2749 if test -z "$CYGPATH_W"; then
2750   if (cygpath --version) >/dev/null 2>/dev/null; then
2751     CYGPATH_W='cygpath -w'
2752   else
2753     CYGPATH_W=echo
2754   fi
2755 fi
2756
2757
2758 # Define the identity of the package.
2759  PACKAGE='libpng'
2760  VERSION='1.5.14'
2761
2762
2763 cat >>confdefs.h <<_ACEOF
2764 #define PACKAGE "$PACKAGE"
2765 _ACEOF
2766
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define VERSION "$VERSION"
2770 _ACEOF
2771
2772 # Some tools Automake needs.
2773
2774 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2775
2776
2777 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2778
2779
2780 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2781
2782
2783 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2784
2785
2786 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2787
2788 # We need awk for the "check" target.  The system "awk" is bad on
2789 # some platforms.
2790 # Always define AMTAR for backward compatibility.  Yes, it's still used
2791 # in the wild :-(  We should find a proper way to deprecate it ...
2792 AMTAR='$${TAR-tar}'
2793
2794 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2795
2796
2797
2798
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2802 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2803     # Check whether --enable-maintainer-mode was given.
2804 if test "${enable_maintainer_mode+set}" = set; then :
2805   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2806 else
2807   USE_MAINTAINER_MODE=no
2808 fi
2809
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2811 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2812    if test $USE_MAINTAINER_MODE = yes; then
2813   MAINTAINER_MODE_TRUE=
2814   MAINTAINER_MODE_FALSE='#'
2815 else
2816   MAINTAINER_MODE_TRUE='#'
2817   MAINTAINER_MODE_FALSE=
2818 fi
2819
2820   MAINT=$MAINTAINER_MODE_TRUE
2821
2822
2823
2824 PNGLIB_VERSION=1.5.14
2825 PNGLIB_MAJOR=1
2826 PNGLIB_MINOR=5
2827 PNGLIB_RELEASE=14
2828
2829
2830
2831 ac_config_headers="$ac_config_headers config.h"
2832
2833
2834 # Checks for programs.
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840
2841 ac_ext=c
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_CC+:} false; then :
2852   $as_echo_n "(cached) " >&6
2853 else
2854   if test -n "$CC"; then
2855   ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     for ac_exec_ext in '' $ac_executable_extensions; do
2863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869   done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_CC"; then
2886   ac_ct_CC=$CC
2887   # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2892   $as_echo_n "(cached) " >&6
2893 else
2894   if test -n "$ac_ct_CC"; then
2895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900   IFS=$as_save_IFS
2901   test -z "$as_dir" && as_dir=.
2902     for ac_exec_ext in '' $ac_executable_extensions; do
2903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904     ac_cv_prog_ac_ct_CC="gcc"
2905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906     break 2
2907   fi
2908 done
2909   done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917 $as_echo "$ac_ct_CC" >&6; }
2918 else
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923   if test "x$ac_ct_CC" = x; then
2924     CC=""
2925   else
2926     case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned=yes ;;
2931 esac
2932     CC=$ac_ct_CC
2933   fi
2934 else
2935   CC="$ac_cv_prog_CC"
2936 fi
2937
2938 if test -z "$CC"; then
2939           if test -n "$ac_tool_prefix"; then
2940     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}cc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_CC="${ac_tool_prefix}cc"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977   fi
2978 fi
2979 if test -z "$CC"; then
2980   # Extract the first word of "cc", so it can be a program name with args.
2981 set dummy cc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$CC"; then
2988   ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990   ac_prog_rejected=no
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996     for ac_exec_ext in '' $ac_executable_extensions; do
2997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999        ac_prog_rejected=yes
3000        continue
3001      fi
3002     ac_cv_prog_CC="cc"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 if test $ac_prog_rejected = yes; then
3011   # We found a bogon in the path, so make sure we never use it.
3012   set dummy $ac_cv_prog_CC
3013   shift
3014   if test $# != 0; then
3015     # We chose a different compiler from the bogus one.
3016     # However, it has the same basename, so the bogon will be chosen
3017     # first if we set CC to just the basename; use the full file name.
3018     shift
3019     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3020   fi
3021 fi
3022 fi
3023 fi
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027 $as_echo "$CC" >&6; }
3028 else
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033
3034 fi
3035 if test -z "$CC"; then
3036   if test -n "$ac_tool_prefix"; then
3037   for ac_prog in cl.exe
3038   do
3039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CC+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$CC"; then
3047   ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076     test -n "$CC" && break
3077   done
3078 fi
3079 if test -z "$CC"; then
3080   ac_ct_CC=$CC
3081   for ac_prog in cl.exe
3082 do
3083   # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3088   $as_echo_n "(cached) " >&6
3089 else
3090   if test -n "$ac_ct_CC"; then
3091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_exec_ext in '' $ac_executable_extensions; do
3099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100     ac_cv_prog_ac_ct_CC="$ac_prog"
3101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105   done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111 if test -n "$ac_ct_CC"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3113 $as_echo "$ac_ct_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   test -n "$ac_ct_CC" && break
3121 done
3122
3123   if test "x$ac_ct_CC" = x; then
3124     CC=""
3125   else
3126     case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132     CC=$ac_ct_CC
3133   fi
3134 fi
3135
3136 fi
3137
3138
3139 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $? "no acceptable C compiler found in \$PATH
3142 See \`config.log' for more details" "$LINENO" 5; }
3143
3144 # Provide some information about the compiler.
3145 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3146 set X $ac_compile
3147 ac_compiler=$2
3148 for ac_option in --version -v -V -qversion; do
3149   { { ac_try="$ac_compiler $ac_option >&5"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3157   ac_status=$?
3158   if test -s conftest.err; then
3159     sed '10a\
3160 ... rest of stderr output deleted ...
3161          10q' conftest.err >conftest.er1
3162     cat conftest.er1 >&5
3163   fi
3164   rm -f conftest.er1 conftest.err
3165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166   test $ac_status = 0; }
3167 done
3168
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 ac_clean_files_save=$ac_clean_files
3181 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3182 # Try to create an executable without -o first, disregard a.out.
3183 # It will help us diagnose broken compilers, and finding out an intuition
3184 # of exeext.
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3186 $as_echo_n "checking whether the C compiler works... " >&6; }
3187 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3188
3189 # The possible output files:
3190 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3191
3192 ac_rmfiles=
3193 for ac_file in $ac_files
3194 do
3195   case $ac_file in
3196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3198   esac
3199 done
3200 rm -f $ac_rmfiles
3201
3202 if { { ac_try="$ac_link_default"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209   (eval "$ac_link_default") 2>&5
3210   ac_status=$?
3211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212   test $ac_status = 0; }; then :
3213   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3214 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3215 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3216 # so that the user can short-circuit this test for compilers unknown to
3217 # Autoconf.
3218 for ac_file in $ac_files ''
3219 do
3220   test -f "$ac_file" || continue
3221   case $ac_file in
3222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3223         ;;
3224     [ab].out )
3225         # We found the default executable, but exeext='' is most
3226         # certainly right.
3227         break;;
3228     *.* )
3229         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3230         then :; else
3231            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232         fi
3233         # We set ac_cv_exeext here because the later test for it is not
3234         # safe: cross compilers may not add the suffix if given an `-o'
3235         # argument, so we may need to know it at that point already.
3236         # Even if this section looks crufty: it has the advantage of
3237         # actually working.
3238         break;;
3239     * )
3240         break;;
3241   esac
3242 done
3243 test "$ac_cv_exeext" = no && ac_cv_exeext=
3244
3245 else
3246   ac_file=''
3247 fi
3248 if test -z "$ac_file"; then :
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error 77 "C compiler cannot create executables
3257 See \`config.log' for more details" "$LINENO" 5; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3263 $as_echo_n "checking for C compiler default output file name... " >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3265 $as_echo "$ac_file" >&6; }
3266 ac_exeext=$ac_cv_exeext
3267
3268 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3269 ac_clean_files=$ac_clean_files_save
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { { ac_try="$ac_link"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279   (eval "$ac_link") 2>&5
3280   ac_status=$?
3281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282   test $ac_status = 0; }; then :
3283   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3284 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3286 # `rm'.
3287 for ac_file in conftest.exe conftest conftest.*; do
3288   test -f "$ac_file" || continue
3289   case $ac_file in
3290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292           break;;
3293     * ) break;;
3294   esac
3295 done
3296 else
3297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 fi
3302 rm -f conftest conftest$ac_cv_exeext
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3304 $as_echo "$ac_cv_exeext" >&6; }
3305
3306 rm -f conftest.$ac_ext
3307 EXEEXT=$ac_cv_exeext
3308 ac_exeext=$EXEEXT
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h.  */
3311 #include <stdio.h>
3312 int
3313 main ()
3314 {
3315 FILE *f = fopen ("conftest.out", "w");
3316  return ferror (f) || fclose (f) != 0;
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 ac_clean_files="$ac_clean_files conftest.out"
3323 # Check that the compiler produces executables we can run.  If not, either
3324 # the compiler is broken, or we cross compile.
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3326 $as_echo_n "checking whether we are cross compiling... " >&6; }
3327 if test "$cross_compiling" != yes; then
3328   { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_link") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }
3339   if { ac_try='./conftest$ac_cv_exeext'
3340   { { case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349   test $ac_status = 0; }; }; then
3350     cross_compiling=no
3351   else
3352     if test "$cross_compiling" = maybe; then
3353         cross_compiling=yes
3354     else
3355         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details" "$LINENO" 5; }
3360     fi
3361   fi
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3364 $as_echo "$cross_compiling" >&6; }
3365
3366 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3369 $as_echo_n "checking for suffix of object files... " >&6; }
3370 if ${ac_cv_objext+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.o conftest.obj
3385 if { { ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_compile") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; then :
3396   for ac_file in conftest.o conftest.obj conftest.*; do
3397   test -f "$ac_file" || continue;
3398   case $ac_file in
3399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3401        break;;
3402   esac
3403 done
3404 else
3405   $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "cannot compute suffix of object files: cannot compile
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 fi
3413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3416 $as_echo "$ac_cv_objext" >&6; }
3417 OBJEXT=$ac_cv_objext
3418 ac_objext=$OBJEXT
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3420 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3421 if ${ac_cv_c_compiler_gnu+:} false; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h.  */
3426
3427 int
3428 main ()
3429 {
3430 #ifndef __GNUC__
3431        choke me
3432 #endif
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439   ac_compiler_gnu=yes
3440 else
3441   ac_compiler_gnu=no
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3448 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3449 if test $ac_compiler_gnu = yes; then
3450   GCC=yes
3451 else
3452   GCC=
3453 fi
3454 ac_test_CFLAGS=${CFLAGS+set}
3455 ac_save_CFLAGS=$CFLAGS
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3457 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3458 if ${ac_cv_prog_cc_g+:} false; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   ac_save_c_werror_flag=$ac_c_werror_flag
3462    ac_c_werror_flag=yes
3463    ac_cv_prog_cc_g=no
3464    CFLAGS="-g"
3465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477   ac_cv_prog_cc_g=yes
3478 else
3479   CFLAGS=""
3480       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492
3493 else
3494   ac_c_werror_flag=$ac_save_c_werror_flag
3495          CFLAGS="-g"
3496          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498
3499 int
3500 main ()
3501 {
3502
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508   ac_cv_prog_cc_g=yes
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515    ac_c_werror_flag=$ac_save_c_werror_flag
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3518 $as_echo "$ac_cv_prog_cc_g" >&6; }
3519 if test "$ac_test_CFLAGS" = set; then
3520   CFLAGS=$ac_save_CFLAGS
3521 elif test $ac_cv_prog_cc_g = yes; then
3522   if test "$GCC" = yes; then
3523     CFLAGS="-g -O2"
3524   else
3525     CFLAGS="-g"
3526   fi
3527 else
3528   if test "$GCC" = yes; then
3529     CFLAGS="-O2"
3530   else
3531     CFLAGS=
3532   fi
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3535 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3536 if ${ac_cv_prog_cc_c89+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   ac_cv_prog_cc_c89=no
3540 ac_save_CC=$CC
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543 #include <stdarg.h>
3544 #include <stdio.h>
3545 struct stat;
3546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3547 struct buf { int x; };
3548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549 static char *e (p, i)
3550      char **p;
3551      int i;
3552 {
3553   return p[i];
3554 }
3555 static char *f (char * (*g) (char **, int), char **p, ...)
3556 {
3557   char *s;
3558   va_list v;
3559   va_start (v,p);
3560   s = g (p, va_arg (v,int));
3561   va_end (v);
3562   return s;
3563 }
3564
3565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3566    function prototypes and stuff, but not '\xHH' hex character constants.
3567    These don't provoke an error unfortunately, instead are silently treated
3568    as 'x'.  The following induces an error, until -std is added to get
3569    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3570    array size at least.  It's necessary to write '\x00'==0 to get something
3571    that's true only with -std.  */
3572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573
3574 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3575    inside strings and character constants.  */
3576 #define FOO(x) 'x'
3577 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578
3579 int test (int i, double x);
3580 struct s1 {int (*f) (int a);};
3581 struct s2 {int (*f) (double a);};
3582 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583 int argc;
3584 char **argv;
3585 int
3586 main ()
3587 {
3588 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3594         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596   CC="$ac_save_CC $ac_arg"
3597   if ac_fn_c_try_compile "$LINENO"; then :
3598   ac_cv_prog_cc_c89=$ac_arg
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext
3601   test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 done
3603 rm -f conftest.$ac_ext
3604 CC=$ac_save_CC
3605
3606 fi
3607 # AC_CACHE_VAL
3608 case "x$ac_cv_prog_cc_c89" in
3609   x)
3610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3611 $as_echo "none needed" >&6; } ;;
3612   xno)
3613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3614 $as_echo "unsupported" >&6; } ;;
3615   *)
3616     CC="$CC $ac_cv_prog_cc_c89"
3617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3618 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3619 esac
3620 if test "x$ac_cv_prog_cc_c89" != xno; then :
3621
3622 fi
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 DEPDIR="${am__leading_dot}deps"
3630
3631 ac_config_commands="$ac_config_commands depfiles"
3632
3633
3634 am_make=${MAKE-make}
3635 cat > confinc << 'END'
3636 am__doit:
3637         @echo this is the am__doit target
3638 .PHONY: am__doit
3639 END
3640 # If we don't find an include directive, just comment out the code.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3643 am__include="#"
3644 am__quote=
3645 _am_result=none
3646 # First try GNU make style include.
3647 echo "include confinc" > confmf
3648 # Ignore all kinds of additional output from `make'.
3649 case `$am_make -s -f confmf 2> /dev/null` in #(
3650 *the\ am__doit\ target*)
3651   am__include=include
3652   am__quote=
3653   _am_result=GNU
3654   ;;
3655 esac
3656 # Now try BSD make style include.
3657 if test "$am__include" = "#"; then
3658    echo '.include "confinc"' > confmf
3659    case `$am_make -s -f confmf 2> /dev/null` in #(
3660    *the\ am__doit\ target*)
3661      am__include=.include
3662      am__quote="\""
3663      _am_result=BSD
3664      ;;
3665    esac
3666 fi
3667
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670 $as_echo "$_am_result" >&6; }
3671 rm -f confinc confmf
3672
3673 # Check whether --enable-dependency-tracking was given.
3674 if test "${enable_dependency_tracking+set}" = set; then :
3675   enableval=$enable_dependency_tracking;
3676 fi
3677
3678 if test "x$enable_dependency_tracking" != xno; then
3679   am_depcomp="$ac_aux_dir/depcomp"
3680   AMDEPBACKSLASH='\'
3681   am__nodep='_no'
3682 fi
3683  if test "x$enable_dependency_tracking" != xno; then
3684   AMDEP_TRUE=
3685   AMDEP_FALSE='#'
3686 else
3687   AMDEP_TRUE='#'
3688   AMDEP_FALSE=
3689 fi
3690
3691
3692
3693 depcc="$CC"   am_compiler_list=
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3696 $as_echo_n "checking dependency style of $depcc... " >&6; }
3697 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3701   # We make a subdir and do the tests there.  Otherwise we can end up
3702   # making bogus files that we don't know about and never remove.  For
3703   # instance it was reported that on HP-UX the gcc test will end up
3704   # making a dummy file named `D' -- because `-MD' means `put the output
3705   # in D'.
3706   rm -rf conftest.dir
3707   mkdir conftest.dir
3708   # Copy depcomp to subdir because otherwise we won't find it if we're
3709   # using a relative directory.
3710   cp "$am_depcomp" conftest.dir
3711   cd conftest.dir
3712   # We will build objects and dependencies in a subdirectory because
3713   # it helps to detect inapplicable dependency modes.  For instance
3714   # both Tru64's cc and ICC support -MD to output dependencies as a
3715   # side effect of compilation, but ICC will put the dependencies in
3716   # the current directory while Tru64 will put them in the object
3717   # directory.
3718   mkdir sub
3719
3720   am_cv_CC_dependencies_compiler_type=none
3721   if test "$am_compiler_list" = ""; then
3722      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3723   fi
3724   am__universal=false
3725   case " $depcc " in #(
3726      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3727      esac
3728
3729   for depmode in $am_compiler_list; do
3730     # Setup a source with many dependencies, because some compilers
3731     # like to wrap large dependency lists on column 80 (with \), and
3732     # we should not choose a depcomp mode which is confused by this.
3733     #
3734     # We need to recreate these files for each test, as the compiler may
3735     # overwrite some of them when testing with obscure command lines.
3736     # This happens at least with the AIX C compiler.
3737     : > sub/conftest.c
3738     for i in 1 2 3 4 5 6; do
3739       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3740       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3741       # Solaris 8's {/usr,}/bin/sh.
3742       touch sub/conftst$i.h
3743     done
3744     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3745
3746     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3747     # mode.  It turns out that the SunPro C++ compiler does not properly
3748     # handle `-M -o', and we need to detect this.  Also, some Intel
3749     # versions had trouble with output in subdirs
3750     am__obj=sub/conftest.${OBJEXT-o}
3751     am__minus_obj="-o $am__obj"
3752     case $depmode in
3753     gcc)
3754       # This depmode causes a compiler race in universal mode.
3755       test "$am__universal" = false || continue
3756       ;;
3757     nosideeffect)
3758       # after this tag, mechanisms are not by side-effect, so they'll
3759       # only be used when explicitly requested
3760       if test "x$enable_dependency_tracking" = xyes; then
3761         continue
3762       else
3763         break
3764       fi
3765       ;;
3766     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3767       # This compiler won't grok `-c -o', but also, the minuso test has
3768       # not run yet.  These depmodes are late enough in the game, and
3769       # so weak that their functioning should not be impacted.
3770       am__obj=conftest.${OBJEXT-o}
3771       am__minus_obj=
3772       ;;
3773     none) break ;;
3774     esac
3775     if depmode=$depmode \
3776        source=sub/conftest.c object=$am__obj \
3777        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3778        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3779          >/dev/null 2>conftest.err &&
3780        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3781        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3782        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3783        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3784       # icc doesn't choke on unknown options, it will just issue warnings
3785       # or remarks (even with -Werror).  So we grep stderr for any message
3786       # that says an option was ignored or not supported.
3787       # When given -MP, icc 7.0 and 7.1 complain thusly:
3788       #   icc: Command line warning: ignoring option '-M'; no argument required
3789       # The diagnosis changed in icc 8.0:
3790       #   icc: Command line remark: option '-MP' not supported
3791       if (grep 'ignoring option' conftest.err ||
3792           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3793         am_cv_CC_dependencies_compiler_type=$depmode
3794         break
3795       fi
3796     fi
3797   done
3798
3799   cd ..
3800   rm -rf conftest.dir
3801 else
3802   am_cv_CC_dependencies_compiler_type=none
3803 fi
3804
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3807 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3809
3810  if
3811   test "x$enable_dependency_tracking" != xno \
3812   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3813   am__fastdepCC_TRUE=
3814   am__fastdepCC_FALSE='#'
3815 else
3816   am__fastdepCC_TRUE='#'
3817   am__fastdepCC_FALSE=
3818 fi
3819
3820
3821 # By default we simply use the C compiler to build assembly code.
3822
3823 test "${CCAS+set}" = set || CCAS=$CC
3824 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3825
3826
3827
3828 depcc="$CCAS"   am_compiler_list=
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836   # We make a subdir and do the tests there.  Otherwise we can end up
3837   # making bogus files that we don't know about and never remove.  For
3838   # instance it was reported that on HP-UX the gcc test will end up
3839   # making a dummy file named `D' -- because `-MD' means `put the output
3840   # in D'.
3841   rm -rf conftest.dir
3842   mkdir conftest.dir
3843   # Copy depcomp to subdir because otherwise we won't find it if we're
3844   # using a relative directory.
3845   cp "$am_depcomp" conftest.dir
3846   cd conftest.dir
3847   # We will build objects and dependencies in a subdirectory because
3848   # it helps to detect inapplicable dependency modes.  For instance
3849   # both Tru64's cc and ICC support -MD to output dependencies as a
3850   # side effect of compilation, but ICC will put the dependencies in
3851   # the current directory while Tru64 will put them in the object
3852   # directory.
3853   mkdir sub
3854
3855   am_cv_CCAS_dependencies_compiler_type=none
3856   if test "$am_compiler_list" = ""; then
3857      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858   fi
3859   am__universal=false
3860
3861
3862   for depmode in $am_compiler_list; do
3863     # Setup a source with many dependencies, because some compilers
3864     # like to wrap large dependency lists on column 80 (with \), and
3865     # we should not choose a depcomp mode which is confused by this.
3866     #
3867     # We need to recreate these files for each test, as the compiler may
3868     # overwrite some of them when testing with obscure command lines.
3869     # This happens at least with the AIX C compiler.
3870     : > sub/conftest.c
3871     for i in 1 2 3 4 5 6; do
3872       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3873       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3874       # Solaris 8's {/usr,}/bin/sh.
3875       touch sub/conftst$i.h
3876     done
3877     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3878
3879     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3880     # mode.  It turns out that the SunPro C++ compiler does not properly
3881     # handle `-M -o', and we need to detect this.  Also, some Intel
3882     # versions had trouble with output in subdirs
3883     am__obj=sub/conftest.${OBJEXT-o}
3884     am__minus_obj="-o $am__obj"
3885     case $depmode in
3886     gcc)
3887       # This depmode causes a compiler race in universal mode.
3888       test "$am__universal" = false || continue
3889       ;;
3890     nosideeffect)
3891       # after this tag, mechanisms are not by side-effect, so they'll
3892       # only be used when explicitly requested
3893       if test "x$enable_dependency_tracking" = xyes; then
3894         continue
3895       else
3896         break
3897       fi
3898       ;;
3899     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3900       # This compiler won't grok `-c -o', but also, the minuso test has
3901       # not run yet.  These depmodes are late enough in the game, and
3902       # so weak that their functioning should not be impacted.
3903       am__obj=conftest.${OBJEXT-o}
3904       am__minus_obj=
3905       ;;
3906     none) break ;;
3907     esac
3908     if depmode=$depmode \
3909        source=sub/conftest.c object=$am__obj \
3910        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3912          >/dev/null 2>conftest.err &&
3913        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3916        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917       # icc doesn't choke on unknown options, it will just issue warnings
3918       # or remarks (even with -Werror).  So we grep stderr for any message
3919       # that says an option was ignored or not supported.
3920       # When given -MP, icc 7.0 and 7.1 complain thusly:
3921       #   icc: Command line warning: ignoring option '-M'; no argument required
3922       # The diagnosis changed in icc 8.0:
3923       #   icc: Command line remark: option '-MP' not supported
3924       if (grep 'ignoring option' conftest.err ||
3925           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926         am_cv_CCAS_dependencies_compiler_type=$depmode
3927         break
3928       fi
3929     fi
3930   done
3931
3932   cd ..
3933   rm -rf conftest.dir
3934 else
3935   am_cv_CCAS_dependencies_compiler_type=none
3936 fi
3937
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3940 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3941 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3942
3943  if
3944   test "x$enable_dependency_tracking" != xno \
3945   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3946   am__fastdepCCAS_TRUE=
3947   am__fastdepCCAS_FALSE='#'
3948 else
3949   am__fastdepCCAS_TRUE='#'
3950   am__fastdepCCAS_FALSE=
3951 fi
3952
3953
3954 # Make sure we can run config.sub.
3955 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3956   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3959 $as_echo_n "checking build system type... " >&6; }
3960 if ${ac_cv_build+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   ac_build_alias=$build_alias
3964 test "x$ac_build_alias" = x &&
3965   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3966 test "x$ac_build_alias" = x &&
3967   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3969   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3970
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3973 $as_echo "$ac_cv_build" >&6; }
3974 case $ac_cv_build in
3975 *-*-*) ;;
3976 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3977 esac
3978 build=$ac_cv_build
3979 ac_save_IFS=$IFS; IFS='-'
3980 set x $ac_cv_build
3981 shift
3982 build_cpu=$1
3983 build_vendor=$2
3984 shift; shift
3985 # Remember, the first character of IFS is used to create $*,
3986 # except with old shells:
3987 build_os=$*
3988 IFS=$ac_save_IFS
3989 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3990
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3993 $as_echo_n "checking host system type... " >&6; }
3994 if ${ac_cv_host+:} false; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test "x$host_alias" = x; then
3998   ac_cv_host=$ac_cv_build
3999 else
4000   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4001     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4002 fi
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4006 $as_echo "$ac_cv_host" >&6; }
4007 case $ac_cv_host in
4008 *-*-*) ;;
4009 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4010 esac
4011 host=$ac_cv_host
4012 ac_save_IFS=$IFS; IFS='-'
4013 set x $ac_cv_host
4014 shift
4015 host_cpu=$1
4016 host_vendor=$2
4017 shift; shift
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4020 host_os=$*
4021 IFS=$ac_save_IFS
4022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4026 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4027 if ${ac_cv_path_SED+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4031      for ac_i in 1 2 3 4 5 6 7; do
4032        ac_script="$ac_script$as_nl$ac_script"
4033      done
4034      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4035      { ac_script=; unset ac_script;}
4036      if test -z "$SED"; then
4037   ac_path_SED_found=false
4038   # Loop through the user's path and test for each of PROGNAME-LIST
4039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044     for ac_prog in sed gsed; do
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4047       as_fn_executable_p "$ac_path_SED" || continue
4048 # Check for GNU ac_path_SED and select it if it is found.
4049   # Check for GNU $ac_path_SED
4050 case `"$ac_path_SED" --version 2>&1` in
4051 *GNU*)
4052   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4053 *)
4054   ac_count=0
4055   $as_echo_n 0123456789 >"conftest.in"
4056   while :
4057   do
4058     cat "conftest.in" "conftest.in" >"conftest.tmp"
4059     mv "conftest.tmp" "conftest.in"
4060     cp "conftest.in" "conftest.nl"
4061     $as_echo '' >> "conftest.nl"
4062     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064     as_fn_arith $ac_count + 1 && ac_count=$as_val
4065     if test $ac_count -gt ${ac_path_SED_max-0}; then
4066       # Best one so far, save it but keep looking for a better one
4067       ac_cv_path_SED="$ac_path_SED"
4068       ac_path_SED_max=$ac_count
4069     fi
4070     # 10*(2^10) chars as input seems more than enough
4071     test $ac_count -gt 10 && break
4072   done
4073   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 esac
4075
4076       $ac_path_SED_found && break 3
4077     done
4078   done
4079   done
4080 IFS=$as_save_IFS
4081   if test -z "$ac_cv_path_SED"; then
4082     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4083   fi
4084 else
4085   ac_cv_path_SED=$SED
4086 fi
4087
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4090 $as_echo "$ac_cv_path_SED" >&6; }
4091  SED="$ac_cv_path_SED"
4092   rm -f conftest.sed
4093
4094 test -z "$SED" && SED=sed
4095 Xsed="$SED -e 1s/^X//"
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4109 if ${ac_cv_path_GREP+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   if test -z "$GREP"; then
4113   ac_path_GREP_found=false
4114   # Loop through the user's path and test for each of PROGNAME-LIST
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120     for ac_prog in grep ggrep; do
4121     for ac_exec_ext in '' $ac_executable_extensions; do
4122       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4123       as_fn_executable_p "$ac_path_GREP" || continue
4124 # Check for GNU ac_path_GREP and select it if it is found.
4125   # Check for GNU $ac_path_GREP
4126 case `"$ac_path_GREP" --version 2>&1` in
4127 *GNU*)
4128   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4129 *)
4130   ac_count=0
4131   $as_echo_n 0123456789 >"conftest.in"
4132   while :
4133   do
4134     cat "conftest.in" "conftest.in" >"conftest.tmp"
4135     mv "conftest.tmp" "conftest.in"
4136     cp "conftest.in" "conftest.nl"
4137     $as_echo 'GREP' >> "conftest.nl"
4138     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140     as_fn_arith $ac_count + 1 && ac_count=$as_val
4141     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4142       # Best one so far, save it but keep looking for a better one
4143       ac_cv_path_GREP="$ac_path_GREP"
4144       ac_path_GREP_max=$ac_count
4145     fi
4146     # 10*(2^10) chars as input seems more than enough
4147     test $ac_count -gt 10 && break
4148   done
4149   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 esac
4151
4152       $ac_path_GREP_found && break 3
4153     done
4154   done
4155   done
4156 IFS=$as_save_IFS
4157   if test -z "$ac_cv_path_GREP"; then
4158     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159   fi
4160 else
4161   ac_cv_path_GREP=$GREP
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4166 $as_echo "$ac_cv_path_GREP" >&6; }
4167  GREP="$ac_cv_path_GREP"
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4171 $as_echo_n "checking for egrep... " >&6; }
4172 if ${ac_cv_path_EGREP+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176    then ac_cv_path_EGREP="$GREP -E"
4177    else
4178      if test -z "$EGREP"; then
4179   ac_path_EGREP_found=false
4180   # Loop through the user's path and test for each of PROGNAME-LIST
4181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_prog in egrep; do
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189       as_fn_executable_p "$ac_path_EGREP" || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191   # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196   ac_count=0
4197   $as_echo_n 0123456789 >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     $as_echo 'EGREP' >> "conftest.nl"
4204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     as_fn_arith $ac_count + 1 && ac_count=$as_val
4207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_EGREP="$ac_path_EGREP"
4210       ac_path_EGREP_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218       $ac_path_EGREP_found && break 3
4219     done
4220   done
4221   done
4222 IFS=$as_save_IFS
4223   if test -z "$ac_cv_path_EGREP"; then
4224     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4225   fi
4226 else
4227   ac_cv_path_EGREP=$EGREP
4228 fi
4229
4230    fi
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4233 $as_echo "$ac_cv_path_EGREP" >&6; }
4234  EGREP="$ac_cv_path_EGREP"
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4238 $as_echo_n "checking for fgrep... " >&6; }
4239 if ${ac_cv_path_FGREP+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4243    then ac_cv_path_FGREP="$GREP -F"
4244    else
4245      if test -z "$FGREP"; then
4246   ac_path_FGREP_found=false
4247   # Loop through the user's path and test for each of PROGNAME-LIST
4248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253     for ac_prog in fgrep; do
4254     for ac_exec_ext in '' $ac_executable_extensions; do
4255       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4256       as_fn_executable_p "$ac_path_FGREP" || continue
4257 # Check for GNU ac_path_FGREP and select it if it is found.
4258   # Check for GNU $ac_path_FGREP
4259 case `"$ac_path_FGREP" --version 2>&1` in
4260 *GNU*)
4261   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4262 *)
4263   ac_count=0
4264   $as_echo_n 0123456789 >"conftest.in"
4265   while :
4266   do
4267     cat "conftest.in" "conftest.in" >"conftest.tmp"
4268     mv "conftest.tmp" "conftest.in"
4269     cp "conftest.in" "conftest.nl"
4270     $as_echo 'FGREP' >> "conftest.nl"
4271     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273     as_fn_arith $ac_count + 1 && ac_count=$as_val
4274     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4275       # Best one so far, save it but keep looking for a better one
4276       ac_cv_path_FGREP="$ac_path_FGREP"
4277       ac_path_FGREP_max=$ac_count
4278     fi
4279     # 10*(2^10) chars as input seems more than enough
4280     test $ac_count -gt 10 && break
4281   done
4282   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283 esac
4284
4285       $ac_path_FGREP_found && break 3
4286     done
4287   done
4288   done
4289 IFS=$as_save_IFS
4290   if test -z "$ac_cv_path_FGREP"; then
4291     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292   fi
4293 else
4294   ac_cv_path_FGREP=$FGREP
4295 fi
4296
4297    fi
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4300 $as_echo "$ac_cv_path_FGREP" >&6; }
4301  FGREP="$ac_cv_path_FGREP"
4302
4303
4304 test -z "$GREP" && GREP=grep
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4323 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4327 $as_echo_n "checking how to print strings... " >&6; }
4328 # Test print first, because it will be a builtin if present.
4329 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4330    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4331   ECHO='print -r --'
4332 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4333   ECHO='printf %s\n'
4334 else
4335   # Use this function as a fallback that always works.
4336   func_fallback_echo ()
4337   {
4338     eval 'cat <<_LTECHO_EOF
4339 $1
4340 _LTECHO_EOF'
4341   }
4342   ECHO='func_fallback_echo'
4343 fi
4344
4345 # func_echo_all arg...
4346 # Invoke $ECHO with all args, space-separated.
4347 func_echo_all ()
4348 {
4349     $ECHO ""
4350 }
4351
4352 case "$ECHO" in
4353   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4354 $as_echo "printf" >&6; } ;;
4355   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4356 $as_echo "print -r" >&6; } ;;
4357   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4358 $as_echo "cat" >&6; } ;;
4359 esac
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 # Check whether --with-gnu-ld was given.
4377 if test "${with_gnu_ld+set}" = set; then :
4378   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4379 else
4380   with_gnu_ld=no
4381 fi
4382
4383 ac_prog=ld
4384 if test "$GCC" = yes; then
4385   # Check if gcc -print-prog-name=ld gives a path.
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4387 $as_echo_n "checking for ld used by $CC... " >&6; }
4388   case $host in
4389   *-*-mingw*)
4390     # gcc leaves a trailing carriage return which upsets mingw
4391     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4392   *)
4393     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4394   esac
4395   case $ac_prog in
4396     # Accept absolute paths.
4397     [\\/]* | ?:[\\/]*)
4398       re_direlt='/[^/][^/]*/\.\./'
4399       # Canonicalize the pathname of ld
4400       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4401       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4402         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4403       done
4404       test -z "$LD" && LD="$ac_prog"
4405       ;;
4406   "")
4407     # If it fails, then pretend we aren't using GCC.
4408     ac_prog=ld
4409     ;;
4410   *)
4411     # If it is relative, then search for the first ld in PATH.
4412     with_gnu_ld=unknown
4413     ;;
4414   esac
4415 elif test "$with_gnu_ld" = yes; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4417 $as_echo_n "checking for GNU ld... " >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4420 $as_echo_n "checking for non-GNU ld... " >&6; }
4421 fi
4422 if ${lt_cv_path_LD+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   if test -z "$LD"; then
4426   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4427   for ac_dir in $PATH; do
4428     IFS="$lt_save_ifs"
4429     test -z "$ac_dir" && ac_dir=.
4430     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4431       lt_cv_path_LD="$ac_dir/$ac_prog"
4432       # Check to see if the program is GNU ld.  I'd rather use --version,
4433       # but apparently some variants of GNU ld only accept -v.
4434       # Break only if it was the GNU/non-GNU ld that we prefer.
4435       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4436       *GNU* | *'with BFD'*)
4437         test "$with_gnu_ld" != no && break
4438         ;;
4439       *)
4440         test "$with_gnu_ld" != yes && break
4441         ;;
4442       esac
4443     fi
4444   done
4445   IFS="$lt_save_ifs"
4446 else
4447   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4448 fi
4449 fi
4450
4451 LD="$lt_cv_path_LD"
4452 if test -n "$LD"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4454 $as_echo "$LD" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4461 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4462 if ${lt_cv_prog_gnu_ld+:} false; then :
4463   $as_echo_n "(cached) " >&6
4464 else
4465   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4466 case `$LD -v 2>&1 </dev/null` in
4467 *GNU* | *'with BFD'*)
4468   lt_cv_prog_gnu_ld=yes
4469   ;;
4470 *)
4471   lt_cv_prog_gnu_ld=no
4472   ;;
4473 esac
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4476 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4477 with_gnu_ld=$lt_cv_prog_gnu_ld
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 ac_ext=c
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4493 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4494 # On Suns, sometimes $CPP names a directory.
4495 if test -n "$CPP" && test -d "$CPP"; then
4496   CPP=
4497 fi
4498 if test -z "$CPP"; then
4499   if ${ac_cv_prog_CPP+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502       # Double quotes because CPP needs to be expanded
4503     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4504     do
4505       ac_preproc_ok=false
4506 for ac_c_preproc_warn_flag in '' yes
4507 do
4508   # Use a header file that comes with gcc, so configuring glibc
4509   # with a fresh cross-compiler works.
4510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511   # <limits.h> exists even on freestanding compilers.
4512   # On the NeXT, cc -E runs the code through the compiler's parser,
4513   # not just through cpp. "Syntax error" is here to catch this case.
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #ifdef __STDC__
4517 # include <limits.h>
4518 #else
4519 # include <assert.h>
4520 #endif
4521                      Syntax error
4522 _ACEOF
4523 if ac_fn_c_try_cpp "$LINENO"; then :
4524
4525 else
4526   # Broken: fails on valid input.
4527 continue
4528 fi
4529 rm -f conftest.err conftest.i conftest.$ac_ext
4530
4531   # OK, works on sane cases.  Now check whether nonexistent headers
4532   # can be detected and how.
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535 #include <ac_nonexistent.h>
4536 _ACEOF
4537 if ac_fn_c_try_cpp "$LINENO"; then :
4538   # Broken: success on invalid input.
4539 continue
4540 else
4541   # Passes both tests.
4542 ac_preproc_ok=:
4543 break
4544 fi
4545 rm -f conftest.err conftest.i conftest.$ac_ext
4546
4547 done
4548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549 rm -f conftest.i conftest.err conftest.$ac_ext
4550 if $ac_preproc_ok; then :
4551   break
4552 fi
4553
4554     done
4555     ac_cv_prog_CPP=$CPP
4556
4557 fi
4558   CPP=$ac_cv_prog_CPP
4559 else
4560   ac_cv_prog_CPP=$CPP
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4563 $as_echo "$CPP" >&6; }
4564 ac_preproc_ok=false
4565 for ac_c_preproc_warn_flag in '' yes
4566 do
4567   # Use a header file that comes with gcc, so configuring glibc
4568   # with a fresh cross-compiler works.
4569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570   # <limits.h> exists even on freestanding compilers.
4571   # On the NeXT, cc -E runs the code through the compiler's parser,
4572   # not just through cpp. "Syntax error" is here to catch this case.
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575 #ifdef __STDC__
4576 # include <limits.h>
4577 #else
4578 # include <assert.h>
4579 #endif
4580                      Syntax error
4581 _ACEOF
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584 else
4585   # Broken: fails on valid input.
4586 continue
4587 fi
4588 rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590   # OK, works on sane cases.  Now check whether nonexistent headers
4591   # can be detected and how.
4592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #include <ac_nonexistent.h>
4595 _ACEOF
4596 if ac_fn_c_try_cpp "$LINENO"; then :
4597   # Broken: success on invalid input.
4598 continue
4599 else
4600   # Passes both tests.
4601 ac_preproc_ok=:
4602 break
4603 fi
4604 rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606 done
4607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608 rm -f conftest.i conftest.err conftest.$ac_ext
4609 if $ac_preproc_ok; then :
4610
4611 else
4612   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4615 See \`config.log' for more details" "$LINENO" 5; }
4616 fi
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624 if test -n "$ac_tool_prefix"; then
4625   # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}sed; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_SED+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$SED"; then
4633   ac_cv_prog_SED="$SED" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_prog_SED="${ac_tool_prefix}sed"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 SED=$ac_cv_prog_SED
4653 if test -n "$SED"; then
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4655 $as_echo "$SED" >&6; }
4656 else
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_prog_SED"; then
4664   ac_ct_SED=$SED
4665   # Extract the first word of "sed", so it can be a program name with args.
4666 set dummy sed; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672   if test -n "$ac_ct_SED"; then
4673   ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680     for ac_exec_ext in '' $ac_executable_extensions; do
4681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682     ac_cv_prog_ac_ct_SED="sed"
4683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687   done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4693 if test -n "$ac_ct_SED"; then
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4695 $as_echo "$ac_ct_SED" >&6; }
4696 else
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701   if test "x$ac_ct_SED" = x; then
4702     SED=":"
4703   else
4704     case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710     SED=$ac_ct_SED
4711   fi
4712 else
4713   SED="$ac_cv_prog_SED"
4714 fi
4715
4716 if test -n "$ac_tool_prefix"; then
4717   # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}awk; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if ${ac_cv_prog_AWK+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if test -n "$AWK"; then
4725   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732     for ac_exec_ext in '' $ac_executable_extensions; do
4733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734     ac_cv_prog_AWK="${ac_tool_prefix}awk"
4735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739   done
4740 IFS=$as_save_IFS
4741
4742 fi
4743 fi
4744 AWK=$ac_cv_prog_AWK
4745 if test -n "$AWK"; then
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4747 $as_echo "$AWK" >&6; }
4748 else
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4751 fi
4752
4753
4754 fi
4755 if test -z "$ac_cv_prog_AWK"; then
4756   ac_ct_AWK=$AWK
4757   # Extract the first word of "awk", so it can be a program name with args.
4758 set dummy awk; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -n "$ac_ct_AWK"; then
4765   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772     for ac_exec_ext in '' $ac_executable_extensions; do
4773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774     ac_cv_prog_ac_ct_AWK="awk"
4775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779   done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4785 if test -n "$ac_ct_AWK"; then
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4787 $as_echo "$ac_ct_AWK" >&6; }
4788 else
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793   if test "x$ac_ct_AWK" = x; then
4794     AWK=":"
4795   else
4796     case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802     AWK=$ac_ct_AWK
4803   fi
4804 else
4805   AWK="$ac_cv_prog_AWK"
4806 fi
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4810 $as_echo_n "checking whether ln -s works... " >&6; }
4811 LN_S=$as_ln_s
4812 if test "$LN_S" = "ln -s"; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4814 $as_echo "yes" >&6; }
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4817 $as_echo "no, using $LN_S" >&6; }
4818 fi
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4822 set x ${MAKE-make}
4823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4824 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   cat >conftest.make <<\_ACEOF
4828 SHELL = /bin/sh
4829 all:
4830         @echo '@@@%%%=$(MAKE)=@@@%%%'
4831 _ACEOF
4832 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4834   *@@@%%%=?*=@@@%%%*)
4835     eval ac_cv_prog_make_${ac_make}_set=yes;;
4836   *)
4837     eval ac_cv_prog_make_${ac_make}_set=no;;
4838 esac
4839 rm -f conftest.make
4840 fi
4841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4843 $as_echo "yes" >&6; }
4844   SET_MAKE=
4845 else
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848   SET_MAKE="MAKE=${MAKE-make}"
4849 fi
4850
4851 case `pwd` in
4852   *\ * | *\     *)
4853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4854 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4855 esac
4856
4857
4858
4859 macro_version='2.4.2'
4860 macro_revision='1.3337'
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 ltmain="$ac_aux_dir/ltmain.sh"
4875
4876 # Backslashify metacharacters that are still active within
4877 # double-quoted strings.
4878 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4879
4880 # Same as above, but do not quote variable references.
4881 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4882
4883 # Sed substitution to delay expansion of an escaped shell variable in a
4884 # double_quote_subst'ed string.
4885 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4886
4887 # Sed substitution to delay expansion of an escaped single quote.
4888 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4889
4890 # Sed substitution to avoid accidental globbing in evaled expressions
4891 no_glob_subst='s/\*/\\\*/g'
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4894 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4895 if ${lt_cv_path_NM+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$NM"; then
4899   # Let the user override the test.
4900   lt_cv_path_NM="$NM"
4901 else
4902   lt_nm_to_check="${ac_tool_prefix}nm"
4903   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4904     lt_nm_to_check="$lt_nm_to_check nm"
4905   fi
4906   for lt_tmp_nm in $lt_nm_to_check; do
4907     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4908     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4909       IFS="$lt_save_ifs"
4910       test -z "$ac_dir" && ac_dir=.
4911       tmp_nm="$ac_dir/$lt_tmp_nm"
4912       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4913         # Check to see if the nm accepts a BSD-compat flag.
4914         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4915         #   nm: unknown option "B" ignored
4916         # Tru64's nm complains that /dev/null is an invalid object file
4917         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4918         */dev/null* | *'Invalid file or object type'*)
4919           lt_cv_path_NM="$tmp_nm -B"
4920           break
4921           ;;
4922         *)
4923           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4924           */dev/null*)
4925             lt_cv_path_NM="$tmp_nm -p"
4926             break
4927             ;;
4928           *)
4929             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4930             continue # so that we can try to find one that supports BSD flags
4931             ;;
4932           esac
4933           ;;
4934         esac
4935       fi
4936     done
4937     IFS="$lt_save_ifs"
4938   done
4939   : ${lt_cv_path_NM=no}
4940 fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4943 $as_echo "$lt_cv_path_NM" >&6; }
4944 if test "$lt_cv_path_NM" != "no"; then
4945   NM="$lt_cv_path_NM"
4946 else
4947   # Didn't find any BSD compatible name lister, look for dumpbin.
4948   if test -n "$DUMPBIN"; then :
4949     # Let the user override the test.
4950   else
4951     if test -n "$ac_tool_prefix"; then
4952   for ac_prog in dumpbin "link -dump"
4953   do
4954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_DUMPBIN+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   if test -n "$DUMPBIN"; then
4962   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976   done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 DUMPBIN=$ac_cv_prog_DUMPBIN
4982 if test -n "$DUMPBIN"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4984 $as_echo "$DUMPBIN" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991     test -n "$DUMPBIN" && break
4992   done
4993 fi
4994 if test -z "$DUMPBIN"; then
4995   ac_ct_DUMPBIN=$DUMPBIN
4996   for ac_prog in dumpbin "link -dump"
4997 do
4998   # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   if test -n "$ac_ct_DUMPBIN"; then
5006   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013     for ac_exec_ext in '' $ac_executable_extensions; do
5014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020   done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5026 if test -n "$ac_ct_DUMPBIN"; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5028 $as_echo "$ac_ct_DUMPBIN" >&6; }
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035   test -n "$ac_ct_DUMPBIN" && break
5036 done
5037
5038   if test "x$ac_ct_DUMPBIN" = x; then
5039     DUMPBIN=":"
5040   else
5041     case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047     DUMPBIN=$ac_ct_DUMPBIN
5048   fi
5049 fi
5050
5051     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5052     *COFF*)
5053       DUMPBIN="$DUMPBIN -symbols"
5054       ;;
5055     *)
5056       DUMPBIN=:
5057       ;;
5058     esac
5059   fi
5060
5061   if test "$DUMPBIN" != ":"; then
5062     NM="$DUMPBIN"
5063   fi
5064 fi
5065 test -z "$NM" && NM=nm
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5073 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5074 if ${lt_cv_nm_interface+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   lt_cv_nm_interface="BSD nm"
5078   echo "int some_variable = 0;" > conftest.$ac_ext
5079   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5080   (eval "$ac_compile" 2>conftest.err)
5081   cat conftest.err >&5
5082   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5083   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5084   cat conftest.err >&5
5085   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5086   cat conftest.out >&5
5087   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5088     lt_cv_nm_interface="MS dumpbin"
5089   fi
5090   rm -f conftest*
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5093 $as_echo "$lt_cv_nm_interface" >&6; }
5094
5095 # find the maximum length of command line arguments
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5097 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5098 if ${lt_cv_sys_max_cmd_len+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101     i=0
5102   teststring="ABCD"
5103
5104   case $build_os in
5105   msdosdjgpp*)
5106     # On DJGPP, this test can blow up pretty badly due to problems in libc
5107     # (any single argument exceeding 2000 bytes causes a buffer overrun
5108     # during glob expansion).  Even if it were fixed, the result of this
5109     # check would be larger than it should be.
5110     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5111     ;;
5112
5113   gnu*)
5114     # Under GNU Hurd, this test is not required because there is
5115     # no limit to the length of command line arguments.
5116     # Libtool will interpret -1 as no limit whatsoever
5117     lt_cv_sys_max_cmd_len=-1;
5118     ;;
5119
5120   cygwin* | mingw* | cegcc*)
5121     # On Win9x/ME, this test blows up -- it succeeds, but takes
5122     # about 5 minutes as the teststring grows exponentially.
5123     # Worse, since 9x/ME are not pre-emptively multitasking,
5124     # you end up with a "frozen" computer, even though with patience
5125     # the test eventually succeeds (with a max line length of 256k).
5126     # Instead, let's just punt: use the minimum linelength reported by
5127     # all of the supported platforms: 8192 (on NT/2K/XP).
5128     lt_cv_sys_max_cmd_len=8192;
5129     ;;
5130
5131   mint*)
5132     # On MiNT this can take a long time and run out of memory.
5133     lt_cv_sys_max_cmd_len=8192;
5134     ;;
5135
5136   amigaos*)
5137     # On AmigaOS with pdksh, this test takes hours, literally.
5138     # So we just punt and use a minimum line length of 8192.
5139     lt_cv_sys_max_cmd_len=8192;
5140     ;;
5141
5142   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5143     # This has been around since 386BSD, at least.  Likely further.
5144     if test -x /sbin/sysctl; then
5145       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5146     elif test -x /usr/sbin/sysctl; then
5147       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5148     else
5149       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5150     fi
5151     # And add a safety zone
5152     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154     ;;
5155
5156   interix*)
5157     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5158     lt_cv_sys_max_cmd_len=196608
5159     ;;
5160
5161   os2*)
5162     # The test takes a long time on OS/2.
5163     lt_cv_sys_max_cmd_len=8192
5164     ;;
5165
5166   osf*)
5167     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5168     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5169     # nice to cause kernel panics so lets avoid the loop below.
5170     # First set a reasonable default.
5171     lt_cv_sys_max_cmd_len=16384
5172     #
5173     if test -x /sbin/sysconfig; then
5174       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5175         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5176       esac
5177     fi
5178     ;;
5179   sco3.2v5*)
5180     lt_cv_sys_max_cmd_len=102400
5181     ;;
5182   sysv5* | sco5v6* | sysv4.2uw2*)
5183     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5184     if test -n "$kargmax"; then
5185       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5186     else
5187       lt_cv_sys_max_cmd_len=32768
5188     fi
5189     ;;
5190   *)
5191     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5192     if test -n "$lt_cv_sys_max_cmd_len"; then
5193       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5194       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195     else
5196       # Make teststring a little bigger before we do anything with it.
5197       # a 1K string should be a reasonable start.
5198       for i in 1 2 3 4 5 6 7 8 ; do
5199         teststring=$teststring$teststring
5200       done
5201       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5202       # If test is not a shell built-in, we'll probably end up computing a
5203       # maximum length that is only half of the actual maximum length, but
5204       # we can't tell.
5205       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5206                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5207               test $i != 17 # 1/2 MB should be enough
5208       do
5209         i=`expr $i + 1`
5210         teststring=$teststring$teststring
5211       done
5212       # Only check the string length outside the loop.
5213       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5214       teststring=
5215       # Add a significant safety factor because C++ compilers can tack on
5216       # massive amounts of additional arguments before passing them to the
5217       # linker.  It appears as though 1/2 is a usable value.
5218       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5219     fi
5220     ;;
5221   esac
5222
5223 fi
5224
5225 if test -n $lt_cv_sys_max_cmd_len ; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5227 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5230 $as_echo "none" >&6; }
5231 fi
5232 max_cmd_len=$lt_cv_sys_max_cmd_len
5233
5234
5235
5236
5237
5238
5239 : ${CP="cp -f"}
5240 : ${MV="mv -f"}
5241 : ${RM="rm -f"}
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5244 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5245 # Try some XSI features
5246 xsi_shell=no
5247 ( _lt_dummy="a/b/c"
5248   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5249       = c,a/b,b/c, \
5250     && eval 'test $(( 1 + 1 )) -eq 2 \
5251     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5252   && xsi_shell=yes
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5254 $as_echo "$xsi_shell" >&6; }
5255
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5258 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5259 lt_shell_append=no
5260 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5261     >/dev/null 2>&1 \
5262   && lt_shell_append=yes
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5264 $as_echo "$lt_shell_append" >&6; }
5265
5266
5267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5268   lt_unset=unset
5269 else
5270   lt_unset=false
5271 fi
5272
5273
5274
5275
5276
5277 # test EBCDIC or ASCII
5278 case `echo X|tr X '\101'` in
5279  A) # ASCII based system
5280     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5281   lt_SP2NL='tr \040 \012'
5282   lt_NL2SP='tr \015\012 \040\040'
5283   ;;
5284  *) # EBCDIC based system
5285   lt_SP2NL='tr \100 \n'
5286   lt_NL2SP='tr \r\n \100\100'
5287   ;;
5288 esac
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5300 if ${lt_cv_to_host_file_cmd+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   case $host in
5304   *-*-mingw* )
5305     case $build in
5306       *-*-mingw* ) # actually msys
5307         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5308         ;;
5309       *-*-cygwin* )
5310         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5311         ;;
5312       * ) # otherwise, assume *nix
5313         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5314         ;;
5315     esac
5316     ;;
5317   *-*-cygwin* )
5318     case $build in
5319       *-*-mingw* ) # actually msys
5320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5321         ;;
5322       *-*-cygwin* )
5323         lt_cv_to_host_file_cmd=func_convert_file_noop
5324         ;;
5325       * ) # otherwise, assume *nix
5326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5327         ;;
5328     esac
5329     ;;
5330   * ) # unhandled hosts (and "normal" native builds)
5331     lt_cv_to_host_file_cmd=func_convert_file_noop
5332     ;;
5333 esac
5334
5335 fi
5336
5337 to_host_file_cmd=$lt_cv_to_host_file_cmd
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5340
5341
5342
5343
5344
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5347 if ${lt_cv_to_tool_file_cmd+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   #assume ordinary cross tools, or native build.
5351 lt_cv_to_tool_file_cmd=func_convert_file_noop
5352 case $host in
5353   *-*-mingw* )
5354     case $build in
5355       *-*-mingw* ) # actually msys
5356         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5357         ;;
5358     esac
5359     ;;
5360 esac
5361
5362 fi
5363
5364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5374 if ${lt_cv_ld_reload_flag+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   lt_cv_ld_reload_flag='-r'
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5381 reload_flag=$lt_cv_ld_reload_flag
5382 case $reload_flag in
5383 "" | " "*) ;;
5384 *) reload_flag=" $reload_flag" ;;
5385 esac
5386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5387 case $host_os in
5388   cygwin* | mingw* | pw32* | cegcc*)
5389     if test "$GCC" != yes; then
5390       reload_cmds=false
5391     fi
5392     ;;
5393   darwin*)
5394     if test "$GCC" = yes; then
5395       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5396     else
5397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398     fi
5399     ;;
5400 esac
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 if test -n "$ac_tool_prefix"; then
5411   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_OBJDUMP+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   if test -n "$OBJDUMP"; then
5419   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435
5436 fi
5437 fi
5438 OBJDUMP=$ac_cv_prog_OBJDUMP
5439 if test -n "$OBJDUMP"; then
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5441 $as_echo "$OBJDUMP" >&6; }
5442 else
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 fi
5449 if test -z "$ac_cv_prog_OBJDUMP"; then
5450   ac_ct_OBJDUMP=$OBJDUMP
5451   # Extract the first word of "objdump", so it can be a program name with args.
5452 set dummy objdump; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   if test -n "$ac_ct_OBJDUMP"; then
5459   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466     for ac_exec_ext in '' $ac_executable_extensions; do
5467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473   done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5479 if test -n "$ac_ct_OBJDUMP"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5481 $as_echo "$ac_ct_OBJDUMP" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487   if test "x$ac_ct_OBJDUMP" = x; then
5488     OBJDUMP="false"
5489   else
5490     case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496     OBJDUMP=$ac_ct_OBJDUMP
5497   fi
5498 else
5499   OBJDUMP="$ac_cv_prog_OBJDUMP"
5500 fi
5501
5502 test -z "$OBJDUMP" && OBJDUMP=objdump
5503
5504
5505
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5510 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5511 if ${lt_cv_deplibs_check_method+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   lt_cv_file_magic_cmd='$MAGIC_CMD'
5515 lt_cv_file_magic_test_file=
5516 lt_cv_deplibs_check_method='unknown'
5517 # Need to set the preceding variable on all platforms that support
5518 # interlibrary dependencies.
5519 # 'none' -- dependencies not supported.
5520 # `unknown' -- same as none, but documents that we really don't know.
5521 # 'pass_all' -- all dependencies passed with no checks.
5522 # 'test_compile' -- check by making test program.
5523 # 'file_magic [[regex]]' -- check by looking for files in library path
5524 # which responds to the $file_magic_cmd with a given extended regex.
5525 # If you have `file' or equivalent on your system and you're not sure
5526 # whether `pass_all' will *always* work, you probably want this one.
5527
5528 case $host_os in
5529 aix[4-9]*)
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 beos*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 bsdi[45]*)
5538   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5539   lt_cv_file_magic_cmd='/usr/bin/file -L'
5540   lt_cv_file_magic_test_file=/shlib/libc.so
5541   ;;
5542
5543 cygwin*)
5544   # func_win32_libid is a shell function defined in ltmain.sh
5545   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5546   lt_cv_file_magic_cmd='func_win32_libid'
5547   ;;
5548
5549 mingw* | pw32*)
5550   # Base MSYS/MinGW do not provide the 'file' command needed by
5551   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5552   # unless we find 'file', for example because we are cross-compiling.
5553   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5554   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5555     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5556     lt_cv_file_magic_cmd='func_win32_libid'
5557   else
5558     # Keep this pattern in sync with the one in func_win32_libid.
5559     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5560     lt_cv_file_magic_cmd='$OBJDUMP -f'
5561   fi
5562   ;;
5563
5564 cegcc*)
5565   # use the weaker test based on 'objdump'. See mingw*.
5566   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5567   lt_cv_file_magic_cmd='$OBJDUMP -f'
5568   ;;
5569
5570 darwin* | rhapsody*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 freebsd* | dragonfly*)
5575   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5576     case $host_cpu in
5577     i*86 )
5578       # Not sure whether the presence of OpenBSD here was a mistake.
5579       # Let's accept both of them until this is cleared up.
5580       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5581       lt_cv_file_magic_cmd=/usr/bin/file
5582       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5583       ;;
5584     esac
5585   else
5586     lt_cv_deplibs_check_method=pass_all
5587   fi
5588   ;;
5589
5590 gnu*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 haiku*)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 hpux10.20* | hpux11*)
5599   lt_cv_file_magic_cmd=/usr/bin/file
5600   case $host_cpu in
5601   ia64*)
5602     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5603     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5604     ;;
5605   hppa*64*)
5606     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]'
5607     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5608     ;;
5609   *)
5610     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5611     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5612     ;;
5613   esac
5614   ;;
5615
5616 interix[3-9]*)
5617   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5618   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5619   ;;
5620
5621 irix5* | irix6* | nonstopux*)
5622   case $LD in
5623   *-32|*"-32 ") libmagic=32-bit;;
5624   *-n32|*"-n32 ") libmagic=N32;;
5625   *-64|*"-64 ") libmagic=64-bit;;
5626   *) libmagic=never-match;;
5627   esac
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 # This must be glibc/ELF.
5632 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 netbsd*)
5637   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639   else
5640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5641   fi
5642   ;;
5643
5644 newos6*)
5645   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5646   lt_cv_file_magic_cmd=/usr/bin/file
5647   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5648   ;;
5649
5650 *nto* | *qnx*)
5651   lt_cv_deplibs_check_method=pass_all
5652   ;;
5653
5654 openbsd*)
5655   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5656     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5657   else
5658     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659   fi
5660   ;;
5661
5662 osf3* | osf4* | osf5*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 rdos*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 solaris*)
5671   lt_cv_deplibs_check_method=pass_all
5672   ;;
5673
5674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 sysv4 | sysv4.3*)
5679   case $host_vendor in
5680   motorola)
5681     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]'
5682     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5683     ;;
5684   ncr)
5685     lt_cv_deplibs_check_method=pass_all
5686     ;;
5687   sequent)
5688     lt_cv_file_magic_cmd='/bin/file'
5689     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5690     ;;
5691   sni)
5692     lt_cv_file_magic_cmd='/bin/file'
5693     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5694     lt_cv_file_magic_test_file=/lib/libc.so
5695     ;;
5696   siemens)
5697     lt_cv_deplibs_check_method=pass_all
5698     ;;
5699   pc)
5700     lt_cv_deplibs_check_method=pass_all
5701     ;;
5702   esac
5703   ;;
5704
5705 tpf*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708 esac
5709
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5712 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5713
5714 file_magic_glob=
5715 want_nocaseglob=no
5716 if test "$build" = "$host"; then
5717   case $host_os in
5718   mingw* | pw32*)
5719     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5720       want_nocaseglob=yes
5721     else
5722       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5723     fi
5724     ;;
5725   esac
5726 fi
5727
5728 file_magic_cmd=$lt_cv_file_magic_cmd
5729 deplibs_check_method=$lt_cv_deplibs_check_method
5730 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_DLLTOOL+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$DLLTOOL"; then
5762   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 DLLTOOL=$ac_cv_prog_DLLTOOL
5782 if test -n "$DLLTOOL"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5784 $as_echo "$DLLTOOL" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$ac_cv_prog_DLLTOOL"; then
5793   ac_ct_DLLTOOL=$DLLTOOL
5794   # Extract the first word of "dlltool", so it can be a program name with args.
5795 set dummy dlltool; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if test -n "$ac_ct_DLLTOOL"; then
5802   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5822 if test -n "$ac_ct_DLLTOOL"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5824 $as_echo "$ac_ct_DLLTOOL" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830   if test "x$ac_ct_DLLTOOL" = x; then
5831     DLLTOOL="false"
5832   else
5833     case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839     DLLTOOL=$ac_ct_DLLTOOL
5840   fi
5841 else
5842   DLLTOOL="$ac_cv_prog_DLLTOOL"
5843 fi
5844
5845 test -z "$DLLTOOL" && DLLTOOL=dlltool
5846
5847
5848
5849
5850
5851
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5854 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5855 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   lt_cv_sharedlib_from_linklib_cmd='unknown'
5859
5860 case $host_os in
5861 cygwin* | mingw* | pw32* | cegcc*)
5862   # two different shell functions defined in ltmain.sh
5863   # decide which to use based on capabilities of $DLLTOOL
5864   case `$DLLTOOL --help 2>&1` in
5865   *--identify-strict*)
5866     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5867     ;;
5868   *)
5869     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5870     ;;
5871   esac
5872   ;;
5873 *)
5874   # fallback: assume linklib IS sharedlib
5875   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5876   ;;
5877 esac
5878
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5881 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5882 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5883 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5884
5885
5886
5887
5888
5889
5890
5891
5892 if test -n "$ac_tool_prefix"; then
5893   for ac_prog in ar
5894   do
5895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_prog_AR+:} false; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   if test -n "$AR"; then
5903   ac_cv_prog_AR="$AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910     for ac_exec_ext in '' $ac_executable_extensions; do
5911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917   done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 AR=$ac_cv_prog_AR
5923 if test -n "$AR"; then
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5925 $as_echo "$AR" >&6; }
5926 else
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932     test -n "$AR" && break
5933   done
5934 fi
5935 if test -z "$AR"; then
5936   ac_ct_AR=$AR
5937   for ac_prog in ar
5938 do
5939   # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   if test -n "$ac_ct_AR"; then
5947   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954     for ac_exec_ext in '' $ac_executable_extensions; do
5955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956     ac_cv_prog_ac_ct_AR="$ac_prog"
5957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961   done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5967 if test -n "$ac_ct_AR"; then
5968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5969 $as_echo "$ac_ct_AR" >&6; }
5970 else
5971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 fi
5974
5975
5976   test -n "$ac_ct_AR" && break
5977 done
5978
5979   if test "x$ac_ct_AR" = x; then
5980     AR="false"
5981   else
5982     case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986 ac_tool_warned=yes ;;
5987 esac
5988     AR=$ac_ct_AR
5989   fi
5990 fi
5991
5992 : ${AR=ar}
5993 : ${AR_FLAGS=cru}
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6006 $as_echo_n "checking for archiver @FILE support... " >&6; }
6007 if ${lt_cv_ar_at_file+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   lt_cv_ar_at_file=no
6011    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h.  */
6013
6014 int
6015 main ()
6016 {
6017
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023   echo conftest.$ac_objext > conftest.lst
6024       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6025       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6026   (eval $lt_ar_try) 2>&5
6027   ac_status=$?
6028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029   test $ac_status = 0; }
6030       if test "$ac_status" -eq 0; then
6031         # Ensure the archiver fails upon bogus file names.
6032         rm -f conftest.$ac_objext libconftest.a
6033         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6034   (eval $lt_ar_try) 2>&5
6035   ac_status=$?
6036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6037   test $ac_status = 0; }
6038         if test "$ac_status" -ne 0; then
6039           lt_cv_ar_at_file=@
6040         fi
6041       fi
6042       rm -f conftest.* libconftest.a
6043
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6049 $as_echo "$lt_cv_ar_at_file" >&6; }
6050
6051 if test "x$lt_cv_ar_at_file" = xno; then
6052   archiver_list_spec=
6053 else
6054   archiver_list_spec=$lt_cv_ar_at_file
6055 fi
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}strip; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_STRIP+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$STRIP"; then
6072   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 STRIP=$ac_cv_prog_STRIP
6092 if test -n "$STRIP"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6094 $as_echo "$STRIP" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101 fi
6102 if test -z "$ac_cv_prog_STRIP"; then
6103   ac_ct_STRIP=$STRIP
6104   # Extract the first word of "strip", so it can be a program name with args.
6105 set dummy strip; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$ac_ct_STRIP"; then
6112   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_ac_ct_STRIP="strip"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6132 if test -n "$ac_ct_STRIP"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6134 $as_echo "$ac_ct_STRIP" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140   if test "x$ac_ct_STRIP" = x; then
6141     STRIP=":"
6142   else
6143     case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149     STRIP=$ac_ct_STRIP
6150   fi
6151 else
6152   STRIP="$ac_cv_prog_STRIP"
6153 fi
6154
6155 test -z "$STRIP" && STRIP=:
6156
6157
6158
6159
6160
6161
6162 if test -n "$ac_tool_prefix"; then
6163   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_RANLIB+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   if test -n "$RANLIB"; then
6171   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_exec_ext in '' $ac_executable_extensions; do
6179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182     break 2
6183   fi
6184 done
6185   done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 RANLIB=$ac_cv_prog_RANLIB
6191 if test -n "$RANLIB"; then
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6193 $as_echo "$RANLIB" >&6; }
6194 else
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 fi
6201 if test -z "$ac_cv_prog_RANLIB"; then
6202   ac_ct_RANLIB=$RANLIB
6203   # Extract the first word of "ranlib", so it can be a program name with args.
6204 set dummy ranlib; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   if test -n "$ac_ct_RANLIB"; then
6211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_prog_ac_ct_RANLIB="ranlib"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6231 if test -n "$ac_ct_RANLIB"; then
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6233 $as_echo "$ac_ct_RANLIB" >&6; }
6234 else
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239   if test "x$ac_ct_RANLIB" = x; then
6240     RANLIB=":"
6241   else
6242     case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248     RANLIB=$ac_ct_RANLIB
6249   fi
6250 else
6251   RANLIB="$ac_cv_prog_RANLIB"
6252 fi
6253
6254 test -z "$RANLIB" && RANLIB=:
6255
6256
6257
6258
6259
6260
6261 # Determine commands to create old-style static archives.
6262 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6263 old_postinstall_cmds='chmod 644 $oldlib'
6264 old_postuninstall_cmds=
6265
6266 if test -n "$RANLIB"; then
6267   case $host_os in
6268   openbsd*)
6269     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6270     ;;
6271   *)
6272     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6273     ;;
6274   esac
6275   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6276 fi
6277
6278 case $host_os in
6279   darwin*)
6280     lock_old_archive_extraction=yes ;;
6281   *)
6282     lock_old_archive_extraction=no ;;
6283 esac
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323 # If no C compiler was specified, use CC.
6324 LTCC=${LTCC-"$CC"}
6325
6326 # If no C compiler flags were specified, use CFLAGS.
6327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6328
6329 # Allow CC to be a program name with arguments.
6330 compiler=$CC
6331
6332
6333 # Check for command to grab the raw symbol name followed by C symbol from nm.
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6335 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6336 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339
6340 # These are sane defaults that work on at least a few old systems.
6341 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6342
6343 # Character class describing NM global symbol codes.
6344 symcode='[BCDEGRST]'
6345
6346 # Regexp to match symbols that can be accessed directly from C.
6347 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6348
6349 # Define system-specific variables.
6350 case $host_os in
6351 aix*)
6352   symcode='[BCDT]'
6353   ;;
6354 cygwin* | mingw* | pw32* | cegcc*)
6355   symcode='[ABCDGISTW]'
6356   ;;
6357 hpux*)
6358   if test "$host_cpu" = ia64; then
6359     symcode='[ABCDEGRST]'
6360   fi
6361   ;;
6362 irix* | nonstopux*)
6363   symcode='[BCDEGRST]'
6364   ;;
6365 osf*)
6366   symcode='[BCDEGQRST]'
6367   ;;
6368 solaris*)
6369   symcode='[BDRT]'
6370   ;;
6371 sco3.2v5*)
6372   symcode='[DT]'
6373   ;;
6374 sysv4.2uw2*)
6375   symcode='[DT]'
6376   ;;
6377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6378   symcode='[ABDT]'
6379   ;;
6380 sysv4)
6381   symcode='[DFNSTU]'
6382   ;;
6383 esac
6384
6385 # If we're using GNU nm, then use its standard symbol codes.
6386 case `$NM -V 2>&1` in
6387 *GNU* | *'with BFD'*)
6388   symcode='[ABCDGIRSTW]' ;;
6389 esac
6390
6391 # Transform an extracted symbol line into a proper C declaration.
6392 # Some systems (esp. on ia64) link data and code symbols differently,
6393 # so use this general approach.
6394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6395
6396 # Transform an extracted symbol line into symbol name and symbol address
6397 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6398 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'"
6399
6400 # Handle CRLF in mingw tool chain
6401 opt_cr=
6402 case $build_os in
6403 mingw*)
6404   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6405   ;;
6406 esac
6407
6408 # Try without a prefix underscore, then with it.
6409 for ac_symprfx in "" "_"; do
6410
6411   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6412   symxfrm="\\1 $ac_symprfx\\2 \\2"
6413
6414   # Write the raw and C identifiers.
6415   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6416     # Fake it for dumpbin and say T for any non-static function
6417     # and D for any global variable.
6418     # Also find C++ and __fastcall symbols from MSVC++,
6419     # which start with @ or ?.
6420     lt_cv_sys_global_symbol_pipe="$AWK '"\
6421 "     {last_section=section; section=\$ 3};"\
6422 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6423 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6424 "     \$ 0!~/External *\|/{next};"\
6425 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6426 "     {if(hide[section]) next};"\
6427 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6428 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6429 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6430 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6431 "     ' prfx=^$ac_symprfx"
6432   else
6433     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6434   fi
6435   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6436
6437   # Check to see that the pipe works correctly.
6438   pipe_works=no
6439
6440   rm -f conftest*
6441   cat > conftest.$ac_ext <<_LT_EOF
6442 #ifdef __cplusplus
6443 extern "C" {
6444 #endif
6445 char nm_test_var;
6446 void nm_test_func(void);
6447 void nm_test_func(void){}
6448 #ifdef __cplusplus
6449 }
6450 #endif
6451 int main(){nm_test_var='a';nm_test_func();return(0);}
6452 _LT_EOF
6453
6454   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6455   (eval $ac_compile) 2>&5
6456   ac_status=$?
6457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458   test $ac_status = 0; }; then
6459     # Now try to grab the symbols.
6460     nlist=conftest.nm
6461     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6462   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; } && test -s "$nlist"; then
6466       # Try sorting and uniquifying the output.
6467       if sort "$nlist" | uniq > "$nlist"T; then
6468         mv -f "$nlist"T "$nlist"
6469       else
6470         rm -f "$nlist"T
6471       fi
6472
6473       # Make sure that we snagged all the symbols we need.
6474       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6475         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6476           cat <<_LT_EOF > conftest.$ac_ext
6477 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6478 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6479 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6480    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6481 # define LT_DLSYM_CONST
6482 #elif defined(__osf__)
6483 /* This system does not cope well with relocations in const data.  */
6484 # define LT_DLSYM_CONST
6485 #else
6486 # define LT_DLSYM_CONST const
6487 #endif
6488
6489 #ifdef __cplusplus
6490 extern "C" {
6491 #endif
6492
6493 _LT_EOF
6494           # Now generate the symbol file.
6495           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6496
6497           cat <<_LT_EOF >> conftest.$ac_ext
6498
6499 /* The mapping between symbol names and symbols.  */
6500 LT_DLSYM_CONST struct {
6501   const char *name;
6502   void       *address;
6503 }
6504 lt__PROGRAM__LTX_preloaded_symbols[] =
6505 {
6506   { "@PROGRAM@", (void *) 0 },
6507 _LT_EOF
6508           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6509           cat <<\_LT_EOF >> conftest.$ac_ext
6510   {0, (void *) 0}
6511 };
6512
6513 /* This works around a problem in FreeBSD linker */
6514 #ifdef FREEBSD_WORKAROUND
6515 static const void *lt_preloaded_setup() {
6516   return lt__PROGRAM__LTX_preloaded_symbols;
6517 }
6518 #endif
6519
6520 #ifdef __cplusplus
6521 }
6522 #endif
6523 _LT_EOF
6524           # Now try linking the two files.
6525           mv conftest.$ac_objext conftstm.$ac_objext
6526           lt_globsym_save_LIBS=$LIBS
6527           lt_globsym_save_CFLAGS=$CFLAGS
6528           LIBS="conftstm.$ac_objext"
6529           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6530           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6531   (eval $ac_link) 2>&5
6532   ac_status=$?
6533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6535             pipe_works=yes
6536           fi
6537           LIBS=$lt_globsym_save_LIBS
6538           CFLAGS=$lt_globsym_save_CFLAGS
6539         else
6540           echo "cannot find nm_test_func in $nlist" >&5
6541         fi
6542       else
6543         echo "cannot find nm_test_var in $nlist" >&5
6544       fi
6545     else
6546       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6547     fi
6548   else
6549     echo "$progname: failed program was:" >&5
6550     cat conftest.$ac_ext >&5
6551   fi
6552   rm -rf conftest* conftst*
6553
6554   # Do not use the global_symbol_pipe unless it works.
6555   if test "$pipe_works" = yes; then
6556     break
6557   else
6558     lt_cv_sys_global_symbol_pipe=
6559   fi
6560 done
6561
6562 fi
6563
6564 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6565   lt_cv_sys_global_symbol_to_cdecl=
6566 fi
6567 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6569 $as_echo "failed" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6572 $as_echo "ok" >&6; }
6573 fi
6574
6575 # Response file support.
6576 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6577   nm_file_list_spec='@'
6578 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6579   nm_file_list_spec='@'
6580 fi
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6609 $as_echo_n "checking for sysroot... " >&6; }
6610
6611 # Check whether --with-sysroot was given.
6612 if test "${with_sysroot+set}" = set; then :
6613   withval=$with_sysroot;
6614 else
6615   with_sysroot=no
6616 fi
6617
6618
6619 lt_sysroot=
6620 case ${with_sysroot} in #(
6621  yes)
6622    if test "$GCC" = yes; then
6623      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6624    fi
6625    ;; #(
6626  /*)
6627    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6628    ;; #(
6629  no|'')
6630    ;; #(
6631  *)
6632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6633 $as_echo "${with_sysroot}" >&6; }
6634    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6635    ;;
6636 esac
6637
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6639 $as_echo "${lt_sysroot:-no}" >&6; }
6640
6641
6642
6643
6644
6645 # Check whether --enable-libtool-lock was given.
6646 if test "${enable_libtool_lock+set}" = set; then :
6647   enableval=$enable_libtool_lock;
6648 fi
6649
6650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6651
6652 # Some flags need to be propagated to the compiler or linker for good
6653 # libtool support.
6654 case $host in
6655 ia64-*-hpux*)
6656   # Find out which ABI we are using.
6657   echo 'int i;' > conftest.$ac_ext
6658   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659   (eval $ac_compile) 2>&5
6660   ac_status=$?
6661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662   test $ac_status = 0; }; then
6663     case `/usr/bin/file conftest.$ac_objext` in
6664       *ELF-32*)
6665         HPUX_IA64_MODE="32"
6666         ;;
6667       *ELF-64*)
6668         HPUX_IA64_MODE="64"
6669         ;;
6670     esac
6671   fi
6672   rm -rf conftest*
6673   ;;
6674 *-*-irix6*)
6675   # Find out which ABI we are using.
6676   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681   test $ac_status = 0; }; then
6682     if test "$lt_cv_prog_gnu_ld" = yes; then
6683       case `/usr/bin/file conftest.$ac_objext` in
6684         *32-bit*)
6685           LD="${LD-ld} -melf32bsmip"
6686           ;;
6687         *N32*)
6688           LD="${LD-ld} -melf32bmipn32"
6689           ;;
6690         *64-bit*)
6691           LD="${LD-ld} -melf64bmip"
6692         ;;
6693       esac
6694     else
6695       case `/usr/bin/file conftest.$ac_objext` in
6696         *32-bit*)
6697           LD="${LD-ld} -32"
6698           ;;
6699         *N32*)
6700           LD="${LD-ld} -n32"
6701           ;;
6702         *64-bit*)
6703           LD="${LD-ld} -64"
6704           ;;
6705       esac
6706     fi
6707   fi
6708   rm -rf conftest*
6709   ;;
6710
6711 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6712 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6713   # Find out which ABI we are using.
6714   echo 'int i;' > conftest.$ac_ext
6715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716   (eval $ac_compile) 2>&5
6717   ac_status=$?
6718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719   test $ac_status = 0; }; then
6720     case `/usr/bin/file conftest.o` in
6721       *32-bit*)
6722         case $host in
6723           x86_64-*kfreebsd*-gnu)
6724             LD="${LD-ld} -m elf_i386_fbsd"
6725             ;;
6726           x86_64-*linux*)
6727             LD="${LD-ld} -m elf_i386"
6728             ;;
6729           ppc64-*linux*|powerpc64-*linux*)
6730             LD="${LD-ld} -m elf32ppclinux"
6731             ;;
6732           s390x-*linux*)
6733             LD="${LD-ld} -m elf_s390"
6734             ;;
6735           sparc64-*linux*)
6736             LD="${LD-ld} -m elf32_sparc"
6737             ;;
6738         esac
6739         ;;
6740       *64-bit*)
6741         case $host in
6742           x86_64-*kfreebsd*-gnu)
6743             LD="${LD-ld} -m elf_x86_64_fbsd"
6744             ;;
6745           x86_64-*linux*)
6746             LD="${LD-ld} -m elf_x86_64"
6747             ;;
6748           ppc*-*linux*|powerpc*-*linux*)
6749             LD="${LD-ld} -m elf64ppc"
6750             ;;
6751           s390*-*linux*|s390*-*tpf*)
6752             LD="${LD-ld} -m elf64_s390"
6753             ;;
6754           sparc*-*linux*)
6755             LD="${LD-ld} -m elf64_sparc"
6756             ;;
6757         esac
6758         ;;
6759     esac
6760   fi
6761   rm -rf conftest*
6762   ;;
6763
6764 *-*-sco3.2v5*)
6765   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6766   SAVE_CFLAGS="$CFLAGS"
6767   CFLAGS="$CFLAGS -belf"
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6769 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6770 if ${lt_cv_cc_needs_belf+:} false; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773   ac_ext=c
6774 ac_cpp='$CPP $CPPFLAGS'
6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
6779      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h.  */
6781
6782 int
6783 main ()
6784 {
6785
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791   lt_cv_cc_needs_belf=yes
6792 else
6793   lt_cv_cc_needs_belf=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext \
6796     conftest$ac_exeext conftest.$ac_ext
6797      ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6805 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6806   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6807     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6808     CFLAGS="$SAVE_CFLAGS"
6809   fi
6810   ;;
6811 *-*solaris*)
6812   # Find out which ABI we are using.
6813   echo 'int i;' > conftest.$ac_ext
6814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815   (eval $ac_compile) 2>&5
6816   ac_status=$?
6817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818   test $ac_status = 0; }; then
6819     case `/usr/bin/file conftest.o` in
6820     *64-bit*)
6821       case $lt_cv_prog_gnu_ld in
6822       yes*)
6823         case $host in
6824         i?86-*-solaris*)
6825           LD="${LD-ld} -m elf_x86_64"
6826           ;;
6827         sparc*-*-solaris*)
6828           LD="${LD-ld} -m elf64_sparc"
6829           ;;
6830         esac
6831         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6832         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6833           LD="${LD-ld}_sol2"
6834         fi
6835         ;;
6836       *)
6837         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6838           LD="${LD-ld} -64"
6839         fi
6840         ;;
6841       esac
6842       ;;
6843     esac
6844   fi
6845   rm -rf conftest*
6846   ;;
6847 esac
6848
6849 need_locks="$enable_libtool_lock"
6850
6851 if test -n "$ac_tool_prefix"; then
6852   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}mt; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   if test -n "$MANIFEST_TOOL"; then
6860   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6880 if test -n "$MANIFEST_TOOL"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6882 $as_echo "$MANIFEST_TOOL" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6891   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6892   # Extract the first word of "mt", so it can be a program name with args.
6893 set dummy mt; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   if test -n "$ac_ct_MANIFEST_TOOL"; then
6900   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6920 if test -n "$ac_ct_MANIFEST_TOOL"; then
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6922 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6923 else
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6929     MANIFEST_TOOL=":"
6930   else
6931     case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6938   fi
6939 else
6940   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6941 fi
6942
6943 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6945 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6946 if ${lt_cv_path_mainfest_tool+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   lt_cv_path_mainfest_tool=no
6950   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6951   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6952   cat conftest.err >&5
6953   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6954     lt_cv_path_mainfest_tool=yes
6955   fi
6956   rm -f conftest*
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6959 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6960 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6961   MANIFEST_TOOL=:
6962 fi
6963
6964
6965
6966
6967
6968
6969   case $host_os in
6970     rhapsody* | darwin*)
6971     if test -n "$ac_tool_prefix"; then
6972   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   if test -n "$DSYMUTIL"; then
6980   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987     for ac_exec_ext in '' $ac_executable_extensions; do
6988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994   done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7000 if test -n "$DSYMUTIL"; then
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7002 $as_echo "$DSYMUTIL" >&6; }
7003 else
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_DSYMUTIL"; then
7011   ac_ct_DSYMUTIL=$DSYMUTIL
7012   # Extract the first word of "dsymutil", so it can be a program name with args.
7013 set dummy dsymutil; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$ac_ct_DSYMUTIL"; then
7020   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7040 if test -n "$ac_ct_DSYMUTIL"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7042 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048   if test "x$ac_ct_DSYMUTIL" = x; then
7049     DSYMUTIL=":"
7050   else
7051     case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057     DSYMUTIL=$ac_ct_DSYMUTIL
7058   fi
7059 else
7060   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7061 fi
7062
7063     if test -n "$ac_tool_prefix"; then
7064   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_NMEDIT+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if test -n "$NMEDIT"; then
7072   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086   done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 NMEDIT=$ac_cv_prog_NMEDIT
7092 if test -n "$NMEDIT"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7094 $as_echo "$NMEDIT" >&6; }
7095 else
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101 fi
7102 if test -z "$ac_cv_prog_NMEDIT"; then
7103   ac_ct_NMEDIT=$NMEDIT
7104   # Extract the first word of "nmedit", so it can be a program name with args.
7105 set dummy nmedit; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   if test -n "$ac_ct_NMEDIT"; then
7112   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119     for ac_exec_ext in '' $ac_executable_extensions; do
7120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126   done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7132 if test -n "$ac_ct_NMEDIT"; then
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7134 $as_echo "$ac_ct_NMEDIT" >&6; }
7135 else
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140   if test "x$ac_ct_NMEDIT" = x; then
7141     NMEDIT=":"
7142   else
7143     case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149     NMEDIT=$ac_ct_NMEDIT
7150   fi
7151 else
7152   NMEDIT="$ac_cv_prog_NMEDIT"
7153 fi
7154
7155     if test -n "$ac_tool_prefix"; then
7156   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_LIPO+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test -n "$LIPO"; then
7164   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 LIPO=$ac_cv_prog_LIPO
7184 if test -n "$LIPO"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7186 $as_echo "$LIPO" >&6; }
7187 else
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192
7193 fi
7194 if test -z "$ac_cv_prog_LIPO"; then
7195   ac_ct_LIPO=$LIPO
7196   # Extract the first word of "lipo", so it can be a program name with args.
7197 set dummy lipo; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   if test -n "$ac_ct_LIPO"; then
7204   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211     for ac_exec_ext in '' $ac_executable_extensions; do
7212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213     ac_cv_prog_ac_ct_LIPO="lipo"
7214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218   done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7224 if test -n "$ac_ct_LIPO"; then
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7226 $as_echo "$ac_ct_LIPO" >&6; }
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231
7232   if test "x$ac_ct_LIPO" = x; then
7233     LIPO=":"
7234   else
7235     case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241     LIPO=$ac_ct_LIPO
7242   fi
7243 else
7244   LIPO="$ac_cv_prog_LIPO"
7245 fi
7246
7247     if test -n "$ac_tool_prefix"; then
7248   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}otool; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_OTOOL+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$OTOOL"; then
7256   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 OTOOL=$ac_cv_prog_OTOOL
7276 if test -n "$OTOOL"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7278 $as_echo "$OTOOL" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285 fi
7286 if test -z "$ac_cv_prog_OTOOL"; then
7287   ac_ct_OTOOL=$OTOOL
7288   # Extract the first word of "otool", so it can be a program name with args.
7289 set dummy otool; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$ac_ct_OTOOL"; then
7296   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_ac_ct_OTOOL="otool"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7316 if test -n "$ac_ct_OTOOL"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7318 $as_echo "$ac_ct_OTOOL" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324   if test "x$ac_ct_OTOOL" = x; then
7325     OTOOL=":"
7326   else
7327     case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333     OTOOL=$ac_ct_OTOOL
7334   fi
7335 else
7336   OTOOL="$ac_cv_prog_OTOOL"
7337 fi
7338
7339     if test -n "$ac_tool_prefix"; then
7340   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_OTOOL64+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$OTOOL64"; then
7348   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 OTOOL64=$ac_cv_prog_OTOOL64
7368 if test -n "$OTOOL64"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7370 $as_echo "$OTOOL64" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377 fi
7378 if test -z "$ac_cv_prog_OTOOL64"; then
7379   ac_ct_OTOOL64=$OTOOL64
7380   # Extract the first word of "otool64", so it can be a program name with args.
7381 set dummy otool64; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test -n "$ac_ct_OTOOL64"; then
7388   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395     for ac_exec_ext in '' $ac_executable_extensions; do
7396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397     ac_cv_prog_ac_ct_OTOOL64="otool64"
7398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402   done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7408 if test -n "$ac_ct_OTOOL64"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7410 $as_echo "$ac_ct_OTOOL64" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416   if test "x$ac_ct_OTOOL64" = x; then
7417     OTOOL64=":"
7418   else
7419     case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7424 esac
7425     OTOOL64=$ac_ct_OTOOL64
7426   fi
7427 else
7428   OTOOL64="$ac_cv_prog_OTOOL64"
7429 fi
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7458 $as_echo_n "checking for -single_module linker flag... " >&6; }
7459 if ${lt_cv_apple_cc_single_mod+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   lt_cv_apple_cc_single_mod=no
7463       if test -z "${LT_MULTI_MODULE}"; then
7464         # By default we will add the -single_module flag. You can override
7465         # by either setting the environment variable LT_MULTI_MODULE
7466         # non-empty at configure time, or by adding -multi_module to the
7467         # link flags.
7468         rm -rf libconftest.dylib*
7469         echo "int foo(void){return 1;}" > conftest.c
7470         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7471 -dynamiclib -Wl,-single_module conftest.c" >&5
7472         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7473           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7474         _lt_result=$?
7475         # If there is a non-empty error log, and "single_module"
7476         # appears in it, assume the flag caused a linker warning
7477         if test -s conftest.err && $GREP single_module conftest.err; then
7478           cat conftest.err >&5
7479         # Otherwise, if the output was created with a 0 exit code from
7480         # the compiler, it worked.
7481         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7482           lt_cv_apple_cc_single_mod=yes
7483         else
7484           cat conftest.err >&5
7485         fi
7486         rm -rf libconftest.dylib*
7487         rm -f conftest.*
7488       fi
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7491 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7492
7493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7494 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7495 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   lt_cv_ld_exported_symbols_list=no
7499       save_LDFLAGS=$LDFLAGS
7500       echo "_main" > conftest.sym
7501       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h.  */
7504
7505 int
7506 main ()
7507 {
7508
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"; then :
7514   lt_cv_ld_exported_symbols_list=yes
7515 else
7516   lt_cv_ld_exported_symbols_list=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext \
7519     conftest$ac_exeext conftest.$ac_ext
7520         LDFLAGS="$save_LDFLAGS"
7521
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7524 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7525
7526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7527 $as_echo_n "checking for -force_load linker flag... " >&6; }
7528 if ${lt_cv_ld_force_load+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   lt_cv_ld_force_load=no
7532       cat > conftest.c << _LT_EOF
7533 int forced_loaded() { return 2;}
7534 _LT_EOF
7535       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7536       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7537       echo "$AR cru libconftest.a conftest.o" >&5
7538       $AR cru libconftest.a conftest.o 2>&5
7539       echo "$RANLIB libconftest.a" >&5
7540       $RANLIB libconftest.a 2>&5
7541       cat > conftest.c << _LT_EOF
7542 int main() { return 0;}
7543 _LT_EOF
7544       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7545       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7546       _lt_result=$?
7547       if test -s conftest.err && $GREP force_load conftest.err; then
7548         cat conftest.err >&5
7549       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7550         lt_cv_ld_force_load=yes
7551       else
7552         cat conftest.err >&5
7553       fi
7554         rm -f conftest.err libconftest.a conftest conftest.c
7555         rm -rf conftest.dSYM
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7559 $as_echo "$lt_cv_ld_force_load" >&6; }
7560     case $host_os in
7561     rhapsody* | darwin1.[012])
7562       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7563     darwin1.*)
7564       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7565     darwin*) # darwin 5.x on
7566       # if running on 10.5 or later, the deployment target defaults
7567       # to the OS version, if on x86, and 10.4, the deployment
7568       # target defaults to 10.4. Don't you love it?
7569       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7570         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7571           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7572         10.[012]*)
7573           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7574         10.*)
7575           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576       esac
7577     ;;
7578   esac
7579     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7580       _lt_dar_single_mod='$single_module'
7581     fi
7582     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7583       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7584     else
7585       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7586     fi
7587     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7588       _lt_dsymutil='~$DSYMUTIL $lib || :'
7589     else
7590       _lt_dsymutil=
7591     fi
7592     ;;
7593   esac
7594
7595
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7597 $as_echo_n "checking for ANSI C header files... " >&6; }
7598 if ${ac_cv_header_stdc+:} false; then :
7599   $as_echo_n "(cached) " >&6
7600 else
7601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h.  */
7603 #include <stdlib.h>
7604 #include <stdarg.h>
7605 #include <string.h>
7606 #include <float.h>
7607
7608 int
7609 main ()
7610 {
7611
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617   ac_cv_header_stdc=yes
7618 else
7619   ac_cv_header_stdc=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622
7623 if test $ac_cv_header_stdc = yes; then
7624   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h.  */
7627 #include <string.h>
7628
7629 _ACEOF
7630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7631   $EGREP "memchr" >/dev/null 2>&1; then :
7632
7633 else
7634   ac_cv_header_stdc=no
7635 fi
7636 rm -f conftest*
7637
7638 fi
7639
7640 if test $ac_cv_header_stdc = yes; then
7641   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h.  */
7644 #include <stdlib.h>
7645
7646 _ACEOF
7647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7648   $EGREP "free" >/dev/null 2>&1; then :
7649
7650 else
7651   ac_cv_header_stdc=no
7652 fi
7653 rm -f conftest*
7654
7655 fi
7656
7657 if test $ac_cv_header_stdc = yes; then
7658   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7659   if test "$cross_compiling" = yes; then :
7660   :
7661 else
7662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664 #include <ctype.h>
7665 #include <stdlib.h>
7666 #if ((' ' & 0x0FF) == 0x020)
7667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7669 #else
7670 # define ISLOWER(c) \
7671                    (('a' <= (c) && (c) <= 'i') \
7672                      || ('j' <= (c) && (c) <= 'r') \
7673                      || ('s' <= (c) && (c) <= 'z'))
7674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7675 #endif
7676
7677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7678 int
7679 main ()
7680 {
7681   int i;
7682   for (i = 0; i < 256; i++)
7683     if (XOR (islower (i), ISLOWER (i))
7684         || toupper (i) != TOUPPER (i))
7685       return 2;
7686   return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_run "$LINENO"; then :
7690
7691 else
7692   ac_cv_header_stdc=no
7693 fi
7694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7695   conftest.$ac_objext conftest.beam conftest.$ac_ext
7696 fi
7697
7698 fi
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7701 $as_echo "$ac_cv_header_stdc" >&6; }
7702 if test $ac_cv_header_stdc = yes; then
7703
7704 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7705
7706 fi
7707
7708 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7710                   inttypes.h stdint.h unistd.h
7711 do :
7712   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7713 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7714 "
7715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7716   cat >>confdefs.h <<_ACEOF
7717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7718 _ACEOF
7719
7720 fi
7721
7722 done
7723
7724
7725 for ac_header in dlfcn.h
7726 do :
7727   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7728 "
7729 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7730   cat >>confdefs.h <<_ACEOF
7731 #define HAVE_DLFCN_H 1
7732 _ACEOF
7733
7734 fi
7735
7736 done
7737
7738
7739
7740
7741
7742 # Set options
7743 enable_win32_dll=yes
7744
7745 case $host in
7746 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7747   if test -n "$ac_tool_prefix"; then
7748   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7749 set dummy ${ac_tool_prefix}as; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_AS+:} false; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   if test -n "$AS"; then
7756   ac_cv_prog_AS="$AS" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763     for ac_exec_ext in '' $ac_executable_extensions; do
7764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765     ac_cv_prog_AS="${ac_tool_prefix}as"
7766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770   done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 AS=$ac_cv_prog_AS
7776 if test -n "$AS"; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7778 $as_echo "$AS" >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784
7785 fi
7786 if test -z "$ac_cv_prog_AS"; then
7787   ac_ct_AS=$AS
7788   # Extract the first word of "as", so it can be a program name with args.
7789 set dummy as; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   if test -n "$ac_ct_AS"; then
7796   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803     for ac_exec_ext in '' $ac_executable_extensions; do
7804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805     ac_cv_prog_ac_ct_AS="as"
7806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810   done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7816 if test -n "$ac_ct_AS"; then
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7818 $as_echo "$ac_ct_AS" >&6; }
7819 else
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824   if test "x$ac_ct_AS" = x; then
7825     AS="false"
7826   else
7827     case $cross_compiling:$ac_tool_warned in
7828 yes:)
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833     AS=$ac_ct_AS
7834   fi
7835 else
7836   AS="$ac_cv_prog_AS"
7837 fi
7838
7839   if test -n "$ac_tool_prefix"; then
7840   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_prog_DLLTOOL+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   if test -n "$DLLTOOL"; then
7848   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855     for ac_exec_ext in '' $ac_executable_extensions; do
7856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862   done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 DLLTOOL=$ac_cv_prog_DLLTOOL
7868 if test -n "$DLLTOOL"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7870 $as_echo "$DLLTOOL" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878 if test -z "$ac_cv_prog_DLLTOOL"; then
7879   ac_ct_DLLTOOL=$DLLTOOL
7880   # Extract the first word of "dlltool", so it can be a program name with args.
7881 set dummy dlltool; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   if test -n "$ac_ct_DLLTOOL"; then
7888   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7908 if test -n "$ac_ct_DLLTOOL"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7910 $as_echo "$ac_ct_DLLTOOL" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916   if test "x$ac_ct_DLLTOOL" = x; then
7917     DLLTOOL="false"
7918   else
7919     case $cross_compiling:$ac_tool_warned in
7920 yes:)
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923 ac_tool_warned=yes ;;
7924 esac
7925     DLLTOOL=$ac_ct_DLLTOOL
7926   fi
7927 else
7928   DLLTOOL="$ac_cv_prog_DLLTOOL"
7929 fi
7930
7931   if test -n "$ac_tool_prefix"; then
7932   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7933 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_OBJDUMP+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   if test -n "$OBJDUMP"; then
7940   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 OBJDUMP=$ac_cv_prog_OBJDUMP
7960 if test -n "$OBJDUMP"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7962 $as_echo "$OBJDUMP" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969 fi
7970 if test -z "$ac_cv_prog_OBJDUMP"; then
7971   ac_ct_OBJDUMP=$OBJDUMP
7972   # Extract the first word of "objdump", so it can be a program name with args.
7973 set dummy objdump; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   if test -n "$ac_ct_OBJDUMP"; then
7980   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987     for ac_exec_ext in '' $ac_executable_extensions; do
7988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994   done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8000 if test -n "$ac_ct_OBJDUMP"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8002 $as_echo "$ac_ct_OBJDUMP" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008   if test "x$ac_ct_OBJDUMP" = x; then
8009     OBJDUMP="false"
8010   else
8011     case $cross_compiling:$ac_tool_warned in
8012 yes:)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8016 esac
8017     OBJDUMP=$ac_ct_OBJDUMP
8018   fi
8019 else
8020   OBJDUMP="$ac_cv_prog_OBJDUMP"
8021 fi
8022
8023   ;;
8024 esac
8025
8026 test -z "$AS" && AS=as
8027
8028
8029
8030
8031
8032 test -z "$DLLTOOL" && DLLTOOL=dlltool
8033
8034
8035
8036
8037
8038 test -z "$OBJDUMP" && OBJDUMP=objdump
8039
8040
8041
8042
8043
8044
8045
8046         enable_dlopen=no
8047
8048
8049
8050             # Check whether --enable-shared was given.
8051 if test "${enable_shared+set}" = set; then :
8052   enableval=$enable_shared; p=${PACKAGE-default}
8053     case $enableval in
8054     yes) enable_shared=yes ;;
8055     no) enable_shared=no ;;
8056     *)
8057       enable_shared=no
8058       # Look at the argument we got.  We use all the common list separators.
8059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060       for pkg in $enableval; do
8061         IFS="$lt_save_ifs"
8062         if test "X$pkg" = "X$p"; then
8063           enable_shared=yes
8064         fi
8065       done
8066       IFS="$lt_save_ifs"
8067       ;;
8068     esac
8069 else
8070   enable_shared=yes
8071 fi
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081   # Check whether --enable-static was given.
8082 if test "${enable_static+set}" = set; then :
8083   enableval=$enable_static; p=${PACKAGE-default}
8084     case $enableval in
8085     yes) enable_static=yes ;;
8086     no) enable_static=no ;;
8087     *)
8088      enable_static=no
8089       # Look at the argument we got.  We use all the common list separators.
8090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8091       for pkg in $enableval; do
8092         IFS="$lt_save_ifs"
8093         if test "X$pkg" = "X$p"; then
8094           enable_static=yes
8095         fi
8096       done
8097       IFS="$lt_save_ifs"
8098       ;;
8099     esac
8100 else
8101   enable_static=yes
8102 fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113 # Check whether --with-pic was given.
8114 if test "${with_pic+set}" = set; then :
8115   withval=$with_pic; lt_p=${PACKAGE-default}
8116     case $withval in
8117     yes|no) pic_mode=$withval ;;
8118     *)
8119       pic_mode=default
8120       # Look at the argument we got.  We use all the common list separators.
8121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122       for lt_pkg in $withval; do
8123         IFS="$lt_save_ifs"
8124         if test "X$lt_pkg" = "X$lt_p"; then
8125           pic_mode=yes
8126         fi
8127       done
8128       IFS="$lt_save_ifs"
8129       ;;
8130     esac
8131 else
8132   pic_mode=default
8133 fi
8134
8135
8136 test -z "$pic_mode" && pic_mode=default
8137
8138
8139
8140
8141
8142
8143
8144   # Check whether --enable-fast-install was given.
8145 if test "${enable_fast_install+set}" = set; then :
8146   enableval=$enable_fast_install; p=${PACKAGE-default}
8147     case $enableval in
8148     yes) enable_fast_install=yes ;;
8149     no) enable_fast_install=no ;;
8150     *)
8151       enable_fast_install=no
8152       # Look at the argument we got.  We use all the common list separators.
8153       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8154       for pkg in $enableval; do
8155         IFS="$lt_save_ifs"
8156         if test "X$pkg" = "X$p"; then
8157           enable_fast_install=yes
8158         fi
8159       done
8160       IFS="$lt_save_ifs"
8161       ;;
8162     esac
8163 else
8164   enable_fast_install=yes
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 # This can be used to rebuild libtool when needed
8178 LIBTOOL_DEPS="$ltmain"
8179
8180 # Always use our own libtool.
8181 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 test -z "$LN_S" && LN_S="ln -s"
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 if test -n "${ZSH_VERSION+set}" ; then
8228    setopt NO_GLOB_SUBST
8229 fi
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8232 $as_echo_n "checking for objdir... " >&6; }
8233 if ${lt_cv_objdir+:} false; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   rm -f .libs 2>/dev/null
8237 mkdir .libs 2>/dev/null
8238 if test -d .libs; then
8239   lt_cv_objdir=.libs
8240 else
8241   # MS-DOS does not allow filenames that begin with a dot.
8242   lt_cv_objdir=_libs
8243 fi
8244 rmdir .libs 2>/dev/null
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8247 $as_echo "$lt_cv_objdir" >&6; }
8248 objdir=$lt_cv_objdir
8249
8250
8251
8252
8253
8254 cat >>confdefs.h <<_ACEOF
8255 #define LT_OBJDIR "$lt_cv_objdir/"
8256 _ACEOF
8257
8258
8259
8260
8261 case $host_os in
8262 aix3*)
8263   # AIX sometimes has problems with the GCC collect2 program.  For some
8264   # reason, if we set the COLLECT_NAMES environment variable, the problems
8265   # vanish in a puff of smoke.
8266   if test "X${COLLECT_NAMES+set}" != Xset; then
8267     COLLECT_NAMES=
8268     export COLLECT_NAMES
8269   fi
8270   ;;
8271 esac
8272
8273 # Global variables:
8274 ofile=libtool
8275 can_build_shared=yes
8276
8277 # All known linkers require a `.a' archive for static linking (except MSVC,
8278 # which needs '.lib').
8279 libext=a
8280
8281 with_gnu_ld="$lt_cv_prog_gnu_ld"
8282
8283 old_CC="$CC"
8284 old_CFLAGS="$CFLAGS"
8285
8286 # Set sane defaults for various variables
8287 test -z "$CC" && CC=cc
8288 test -z "$LTCC" && LTCC=$CC
8289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8290 test -z "$LD" && LD=ld
8291 test -z "$ac_objext" && ac_objext=o
8292
8293 for cc_temp in $compiler""; do
8294   case $cc_temp in
8295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8297     \-*) ;;
8298     *) break;;
8299   esac
8300 done
8301 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8302
8303
8304 # Only perform the check for file, if the check method requires it
8305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8306 case $deplibs_check_method in
8307 file_magic*)
8308   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   case $MAGIC_CMD in
8315 [\\/*] |  ?:[\\/]*)
8316   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8317   ;;
8318 *)
8319   lt_save_MAGIC_CMD="$MAGIC_CMD"
8320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8321   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8322   for ac_dir in $ac_dummy; do
8323     IFS="$lt_save_ifs"
8324     test -z "$ac_dir" && ac_dir=.
8325     if test -f $ac_dir/${ac_tool_prefix}file; then
8326       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8327       if test -n "$file_magic_test_file"; then
8328         case $deplibs_check_method in
8329         "file_magic "*)
8330           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8331           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8333             $EGREP "$file_magic_regex" > /dev/null; then
8334             :
8335           else
8336             cat <<_LT_EOF 1>&2
8337
8338 *** Warning: the command libtool uses to detect shared libraries,
8339 *** $file_magic_cmd, produces output that libtool cannot recognize.
8340 *** The result is that libtool may fail to recognize shared libraries
8341 *** as such.  This will affect the creation of libtool libraries that
8342 *** depend on shared libraries, but programs linked with such libtool
8343 *** libraries will work regardless of this problem.  Nevertheless, you
8344 *** may want to report the problem to your system manager and/or to
8345 *** bug-libtool@gnu.org
8346
8347 _LT_EOF
8348           fi ;;
8349         esac
8350       fi
8351       break
8352     fi
8353   done
8354   IFS="$lt_save_ifs"
8355   MAGIC_CMD="$lt_save_MAGIC_CMD"
8356   ;;
8357 esac
8358 fi
8359
8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 if test -n "$MAGIC_CMD"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8363 $as_echo "$MAGIC_CMD" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370
8371
8372
8373 if test -z "$lt_cv_path_MAGIC_CMD"; then
8374   if test -n "$ac_tool_prefix"; then
8375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8376 $as_echo_n "checking for file... " >&6; }
8377 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   case $MAGIC_CMD in
8381 [\\/*] |  ?:[\\/]*)
8382   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8383   ;;
8384 *)
8385   lt_save_MAGIC_CMD="$MAGIC_CMD"
8386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8387   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8388   for ac_dir in $ac_dummy; do
8389     IFS="$lt_save_ifs"
8390     test -z "$ac_dir" && ac_dir=.
8391     if test -f $ac_dir/file; then
8392       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8393       if test -n "$file_magic_test_file"; then
8394         case $deplibs_check_method in
8395         "file_magic "*)
8396           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8397           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8399             $EGREP "$file_magic_regex" > /dev/null; then
8400             :
8401           else
8402             cat <<_LT_EOF 1>&2
8403
8404 *** Warning: the command libtool uses to detect shared libraries,
8405 *** $file_magic_cmd, produces output that libtool cannot recognize.
8406 *** The result is that libtool may fail to recognize shared libraries
8407 *** as such.  This will affect the creation of libtool libraries that
8408 *** depend on shared libraries, but programs linked with such libtool
8409 *** libraries will work regardless of this problem.  Nevertheless, you
8410 *** may want to report the problem to your system manager and/or to
8411 *** bug-libtool@gnu.org
8412
8413 _LT_EOF
8414           fi ;;
8415         esac
8416       fi
8417       break
8418     fi
8419   done
8420   IFS="$lt_save_ifs"
8421   MAGIC_CMD="$lt_save_MAGIC_CMD"
8422   ;;
8423 esac
8424 fi
8425
8426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 if test -n "$MAGIC_CMD"; then
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8429 $as_echo "$MAGIC_CMD" >&6; }
8430 else
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435
8436   else
8437     MAGIC_CMD=:
8438   fi
8439 fi
8440
8441   fi
8442   ;;
8443 esac
8444
8445 # Use C for the default configuration in the libtool script
8446
8447 lt_save_CC="$CC"
8448 ac_ext=c
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453
8454
8455 # Source file extension for C test sources.
8456 ac_ext=c
8457
8458 # Object file extension for compiled C test sources.
8459 objext=o
8460 objext=$objext
8461
8462 # Code to be used in simple compile tests
8463 lt_simple_compile_test_code="int some_variable = 0;"
8464
8465 # Code to be used in simple link tests
8466 lt_simple_link_test_code='int main(){return(0);}'
8467
8468
8469
8470
8471
8472
8473
8474 # If no C compiler was specified, use CC.
8475 LTCC=${LTCC-"$CC"}
8476
8477 # If no C compiler flags were specified, use CFLAGS.
8478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8479
8480 # Allow CC to be a program name with arguments.
8481 compiler=$CC
8482
8483 # Save the default compiler, since it gets overwritten when the other
8484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8485 compiler_DEFAULT=$CC
8486
8487 # save warnings/boilerplate of simple test code
8488 ac_outfile=conftest.$ac_objext
8489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8491 _lt_compiler_boilerplate=`cat conftest.err`
8492 $RM conftest*
8493
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8497 _lt_linker_boilerplate=`cat conftest.err`
8498 $RM -r conftest*
8499
8500
8501 if test -n "$compiler"; then
8502
8503 lt_prog_compiler_no_builtin_flag=
8504
8505 if test "$GCC" = yes; then
8506   case $cc_basename in
8507   nvcc*)
8508     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8509   *)
8510     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8511   esac
8512
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8514 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8515 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   lt_cv_prog_compiler_rtti_exceptions=no
8519    ac_outfile=conftest.$ac_objext
8520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8521    lt_compiler_flag="-fno-rtti -fno-exceptions"
8522    # Insert the option either (1) after the last *FLAGS variable, or
8523    # (2) before a word containing "conftest.", or (3) at the end.
8524    # Note that $ac_compile itself does not contain backslashes and begins
8525    # with a dollar sign (not a hyphen), so the echo should work correctly.
8526    # The option is referenced via a variable to avoid confusing sed.
8527    lt_compile=`echo "$ac_compile" | $SED \
8528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530    -e 's:$: $lt_compiler_flag:'`
8531    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8532    (eval "$lt_compile" 2>conftest.err)
8533    ac_status=$?
8534    cat conftest.err >&5
8535    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536    if (exit $ac_status) && test -s "$ac_outfile"; then
8537      # The compiler can only warn and ignore the option if not recognized
8538      # So say no if there are warnings other than the usual output.
8539      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8540      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8541      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8542        lt_cv_prog_compiler_rtti_exceptions=yes
8543      fi
8544    fi
8545    $RM conftest*
8546
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8549 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8550
8551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8552     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8553 else
8554     :
8555 fi
8556
8557 fi
8558
8559
8560
8561
8562
8563
8564   lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8567
8568
8569   if test "$GCC" = yes; then
8570     lt_prog_compiler_wl='-Wl,'
8571     lt_prog_compiler_static='-static'
8572
8573     case $host_os in
8574       aix*)
8575       # All AIX code is PIC.
8576       if test "$host_cpu" = ia64; then
8577         # AIX 5 now supports IA64 processor
8578         lt_prog_compiler_static='-Bstatic'
8579       fi
8580       ;;
8581
8582     amigaos*)
8583       case $host_cpu in
8584       powerpc)
8585             # see comment about AmigaOS4 .so support
8586             lt_prog_compiler_pic='-fPIC'
8587         ;;
8588       m68k)
8589             # FIXME: we need at least 68020 code to build shared libraries, but
8590             # adding the `-m68020' flag to GCC prevents building anything better,
8591             # like `-m68040'.
8592             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593         ;;
8594       esac
8595       ;;
8596
8597     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8598       # PIC is the default for these OSes.
8599       ;;
8600
8601     mingw* | cygwin* | pw32* | os2* | cegcc*)
8602       # This hack is so that the source file can tell whether it is being
8603       # built for inclusion in a dll (and should export symbols for example).
8604       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8605       # (--disable-auto-import) libraries
8606       lt_prog_compiler_pic='-DDLL_EXPORT'
8607       ;;
8608
8609     darwin* | rhapsody*)
8610       # PIC is the default on this platform
8611       # Common symbols not allowed in MH_DYLIB files
8612       lt_prog_compiler_pic='-fno-common'
8613       ;;
8614
8615     haiku*)
8616       # PIC is the default for Haiku.
8617       # The "-static" flag exists, but is broken.
8618       lt_prog_compiler_static=
8619       ;;
8620
8621     hpux*)
8622       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8623       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8624       # sets the default TLS model and affects inlining.
8625       case $host_cpu in
8626       hppa*64*)
8627         # +Z the default
8628         ;;
8629       *)
8630         lt_prog_compiler_pic='-fPIC'
8631         ;;
8632       esac
8633       ;;
8634
8635     interix[3-9]*)
8636       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8637       # Instead, we relocate shared libraries at runtime.
8638       ;;
8639
8640     msdosdjgpp*)
8641       # Just because we use GCC doesn't mean we suddenly get shared libraries
8642       # on systems that don't support them.
8643       lt_prog_compiler_can_build_shared=no
8644       enable_shared=no
8645       ;;
8646
8647     *nto* | *qnx*)
8648       # QNX uses GNU C++, but need to define -shared option too, otherwise
8649       # it will coredump.
8650       lt_prog_compiler_pic='-fPIC -shared'
8651       ;;
8652
8653     sysv4*MP*)
8654       if test -d /usr/nec; then
8655         lt_prog_compiler_pic=-Kconform_pic
8656       fi
8657       ;;
8658
8659     *)
8660       lt_prog_compiler_pic='-fPIC'
8661       ;;
8662     esac
8663
8664     case $cc_basename in
8665     nvcc*) # Cuda Compiler Driver 2.2
8666       lt_prog_compiler_wl='-Xlinker '
8667       if test -n "$lt_prog_compiler_pic"; then
8668         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8669       fi
8670       ;;
8671     esac
8672   else
8673     # PORTME Check for flag to pass linker flags through the system compiler.
8674     case $host_os in
8675     aix*)
8676       lt_prog_compiler_wl='-Wl,'
8677       if test "$host_cpu" = ia64; then
8678         # AIX 5 now supports IA64 processor
8679         lt_prog_compiler_static='-Bstatic'
8680       else
8681         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8682       fi
8683       ;;
8684
8685     mingw* | cygwin* | pw32* | os2* | cegcc*)
8686       # This hack is so that the source file can tell whether it is being
8687       # built for inclusion in a dll (and should export symbols for example).
8688       lt_prog_compiler_pic='-DDLL_EXPORT'
8689       ;;
8690
8691     hpux9* | hpux10* | hpux11*)
8692       lt_prog_compiler_wl='-Wl,'
8693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8694       # not for PA HP-UX.
8695       case $host_cpu in
8696       hppa*64*|ia64*)
8697         # +Z the default
8698         ;;
8699       *)
8700         lt_prog_compiler_pic='+Z'
8701         ;;
8702       esac
8703       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8704       lt_prog_compiler_static='${wl}-a ${wl}archive'
8705       ;;
8706
8707     irix5* | irix6* | nonstopux*)
8708       lt_prog_compiler_wl='-Wl,'
8709       # PIC (with -KPIC) is the default.
8710       lt_prog_compiler_static='-non_shared'
8711       ;;
8712
8713     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8714       case $cc_basename in
8715       # old Intel for x86_64 which still supported -KPIC.
8716       ecc*)
8717         lt_prog_compiler_wl='-Wl,'
8718         lt_prog_compiler_pic='-KPIC'
8719         lt_prog_compiler_static='-static'
8720         ;;
8721       # icc used to be incompatible with GCC.
8722       # ICC 10 doesn't accept -KPIC any more.
8723       icc* | ifort*)
8724         lt_prog_compiler_wl='-Wl,'
8725         lt_prog_compiler_pic='-fPIC'
8726         lt_prog_compiler_static='-static'
8727         ;;
8728       # Lahey Fortran 8.1.
8729       lf95*)
8730         lt_prog_compiler_wl='-Wl,'
8731         lt_prog_compiler_pic='--shared'
8732         lt_prog_compiler_static='--static'
8733         ;;
8734       nagfor*)
8735         # NAG Fortran compiler
8736         lt_prog_compiler_wl='-Wl,-Wl,,'
8737         lt_prog_compiler_pic='-PIC'
8738         lt_prog_compiler_static='-Bstatic'
8739         ;;
8740       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8741         # Portland Group compilers (*not* the Pentium gcc compiler,
8742         # which looks to be a dead project)
8743         lt_prog_compiler_wl='-Wl,'
8744         lt_prog_compiler_pic='-fpic'
8745         lt_prog_compiler_static='-Bstatic'
8746         ;;
8747       ccc*)
8748         lt_prog_compiler_wl='-Wl,'
8749         # All Alpha code is PIC.
8750         lt_prog_compiler_static='-non_shared'
8751         ;;
8752       xl* | bgxl* | bgf* | mpixl*)
8753         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8754         lt_prog_compiler_wl='-Wl,'
8755         lt_prog_compiler_pic='-qpic'
8756         lt_prog_compiler_static='-qstaticlink'
8757         ;;
8758       *)
8759         case `$CC -V 2>&1 | sed 5q` in
8760         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8761           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8762           lt_prog_compiler_pic='-KPIC'
8763           lt_prog_compiler_static='-Bstatic'
8764           lt_prog_compiler_wl=''
8765           ;;
8766         *Sun\ F* | *Sun*Fortran*)
8767           lt_prog_compiler_pic='-KPIC'
8768           lt_prog_compiler_static='-Bstatic'
8769           lt_prog_compiler_wl='-Qoption ld '
8770           ;;
8771         *Sun\ C*)
8772           # Sun C 5.9
8773           lt_prog_compiler_pic='-KPIC'
8774           lt_prog_compiler_static='-Bstatic'
8775           lt_prog_compiler_wl='-Wl,'
8776           ;;
8777         *Intel*\ [CF]*Compiler*)
8778           lt_prog_compiler_wl='-Wl,'
8779           lt_prog_compiler_pic='-fPIC'
8780           lt_prog_compiler_static='-static'
8781           ;;
8782         *Portland\ Group*)
8783           lt_prog_compiler_wl='-Wl,'
8784           lt_prog_compiler_pic='-fpic'
8785           lt_prog_compiler_static='-Bstatic'
8786           ;;
8787         esac
8788         ;;
8789       esac
8790       ;;
8791
8792     newsos6)
8793       lt_prog_compiler_pic='-KPIC'
8794       lt_prog_compiler_static='-Bstatic'
8795       ;;
8796
8797     *nto* | *qnx*)
8798       # QNX uses GNU C++, but need to define -shared option too, otherwise
8799       # it will coredump.
8800       lt_prog_compiler_pic='-fPIC -shared'
8801       ;;
8802
8803     osf3* | osf4* | osf5*)
8804       lt_prog_compiler_wl='-Wl,'
8805       # All OSF/1 code is PIC.
8806       lt_prog_compiler_static='-non_shared'
8807       ;;
8808
8809     rdos*)
8810       lt_prog_compiler_static='-non_shared'
8811       ;;
8812
8813     solaris*)
8814       lt_prog_compiler_pic='-KPIC'
8815       lt_prog_compiler_static='-Bstatic'
8816       case $cc_basename in
8817       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8818         lt_prog_compiler_wl='-Qoption ld ';;
8819       *)
8820         lt_prog_compiler_wl='-Wl,';;
8821       esac
8822       ;;
8823
8824     sunos4*)
8825       lt_prog_compiler_wl='-Qoption ld '
8826       lt_prog_compiler_pic='-PIC'
8827       lt_prog_compiler_static='-Bstatic'
8828       ;;
8829
8830     sysv4 | sysv4.2uw2* | sysv4.3*)
8831       lt_prog_compiler_wl='-Wl,'
8832       lt_prog_compiler_pic='-KPIC'
8833       lt_prog_compiler_static='-Bstatic'
8834       ;;
8835
8836     sysv4*MP*)
8837       if test -d /usr/nec ;then
8838         lt_prog_compiler_pic='-Kconform_pic'
8839         lt_prog_compiler_static='-Bstatic'
8840       fi
8841       ;;
8842
8843     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8844       lt_prog_compiler_wl='-Wl,'
8845       lt_prog_compiler_pic='-KPIC'
8846       lt_prog_compiler_static='-Bstatic'
8847       ;;
8848
8849     unicos*)
8850       lt_prog_compiler_wl='-Wl,'
8851       lt_prog_compiler_can_build_shared=no
8852       ;;
8853
8854     uts4*)
8855       lt_prog_compiler_pic='-pic'
8856       lt_prog_compiler_static='-Bstatic'
8857       ;;
8858
8859     *)
8860       lt_prog_compiler_can_build_shared=no
8861       ;;
8862     esac
8863   fi
8864
8865 case $host_os in
8866   # For platforms which do not support PIC, -DPIC is meaningless:
8867   *djgpp*)
8868     lt_prog_compiler_pic=
8869     ;;
8870   *)
8871     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8872     ;;
8873 esac
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8877 if ${lt_cv_prog_compiler_pic+:} false; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8883 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8884 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8885
8886 #
8887 # Check to make sure the PIC flag actually works.
8888 #
8889 if test -n "$lt_prog_compiler_pic"; then
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8892 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   lt_cv_prog_compiler_pic_works=no
8896    ac_outfile=conftest.$ac_objext
8897    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8898    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8899    # Insert the option either (1) after the last *FLAGS variable, or
8900    # (2) before a word containing "conftest.", or (3) at the end.
8901    # Note that $ac_compile itself does not contain backslashes and begins
8902    # with a dollar sign (not a hyphen), so the echo should work correctly.
8903    # The option is referenced via a variable to avoid confusing sed.
8904    lt_compile=`echo "$ac_compile" | $SED \
8905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8907    -e 's:$: $lt_compiler_flag:'`
8908    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8909    (eval "$lt_compile" 2>conftest.err)
8910    ac_status=$?
8911    cat conftest.err >&5
8912    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913    if (exit $ac_status) && test -s "$ac_outfile"; then
8914      # The compiler can only warn and ignore the option if not recognized
8915      # So say no if there are warnings other than the usual output.
8916      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8917      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8918      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8919        lt_cv_prog_compiler_pic_works=yes
8920      fi
8921    fi
8922    $RM conftest*
8923
8924 fi
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8926 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8927
8928 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8929     case $lt_prog_compiler_pic in
8930      "" | " "*) ;;
8931      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8932      esac
8933 else
8934     lt_prog_compiler_pic=
8935      lt_prog_compiler_can_build_shared=no
8936 fi
8937
8938 fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950 #
8951 # Check to make sure the static flag actually works.
8952 #
8953 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8955 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8956 if ${lt_cv_prog_compiler_static_works+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   lt_cv_prog_compiler_static_works=no
8960    save_LDFLAGS="$LDFLAGS"
8961    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8962    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8963    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8964      # The linker can only warn and ignore the option if not recognized
8965      # So say no if there are warnings
8966      if test -s conftest.err; then
8967        # Append any errors to the config.log.
8968        cat conftest.err 1>&5
8969        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8970        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971        if diff conftest.exp conftest.er2 >/dev/null; then
8972          lt_cv_prog_compiler_static_works=yes
8973        fi
8974      else
8975        lt_cv_prog_compiler_static_works=yes
8976      fi
8977    fi
8978    $RM -r conftest*
8979    LDFLAGS="$save_LDFLAGS"
8980
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8983 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8984
8985 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8986     :
8987 else
8988     lt_prog_compiler_static=
8989 fi
8990
8991
8992
8993
8994
8995
8996
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999 if ${lt_cv_prog_compiler_c_o+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   lt_cv_prog_compiler_c_o=no
9003    $RM -r conftest 2>/dev/null
9004    mkdir conftest
9005    cd conftest
9006    mkdir out
9007    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009    lt_compiler_flag="-o out/conftest2.$ac_objext"
9010    # Insert the option either (1) after the last *FLAGS variable, or
9011    # (2) before a word containing "conftest.", or (3) at the end.
9012    # Note that $ac_compile itself does not contain backslashes and begins
9013    # with a dollar sign (not a hyphen), so the echo should work correctly.
9014    lt_compile=`echo "$ac_compile" | $SED \
9015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017    -e 's:$: $lt_compiler_flag:'`
9018    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019    (eval "$lt_compile" 2>out/conftest.err)
9020    ac_status=$?
9021    cat out/conftest.err >&5
9022    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024    then
9025      # The compiler can only warn and ignore the option if not recognized
9026      # So say no if there are warnings
9027      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030        lt_cv_prog_compiler_c_o=yes
9031      fi
9032    fi
9033    chmod u+w . 2>&5
9034    $RM conftest*
9035    # SGI C++ compiler will create directory out/ii_files/ for
9036    # template instantiation
9037    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038    $RM out/* && rmdir out
9039    cd ..
9040    $RM -r conftest
9041    $RM conftest*
9042
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046
9047
9048
9049
9050
9051
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054 if ${lt_cv_prog_compiler_c_o+:} false; then :
9055   $as_echo_n "(cached) " >&6
9056 else
9057   lt_cv_prog_compiler_c_o=no
9058    $RM -r conftest 2>/dev/null
9059    mkdir conftest
9060    cd conftest
9061    mkdir out
9062    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063
9064    lt_compiler_flag="-o out/conftest2.$ac_objext"
9065    # Insert the option either (1) after the last *FLAGS variable, or
9066    # (2) before a word containing "conftest.", or (3) at the end.
9067    # Note that $ac_compile itself does not contain backslashes and begins
9068    # with a dollar sign (not a hyphen), so the echo should work correctly.
9069    lt_compile=`echo "$ac_compile" | $SED \
9070    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072    -e 's:$: $lt_compiler_flag:'`
9073    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074    (eval "$lt_compile" 2>out/conftest.err)
9075    ac_status=$?
9076    cat out/conftest.err >&5
9077    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9079    then
9080      # The compiler can only warn and ignore the option if not recognized
9081      # So say no if there are warnings
9082      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9083      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9084      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9085        lt_cv_prog_compiler_c_o=yes
9086      fi
9087    fi
9088    chmod u+w . 2>&5
9089    $RM conftest*
9090    # SGI C++ compiler will create directory out/ii_files/ for
9091    # template instantiation
9092    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9093    $RM out/* && rmdir out
9094    cd ..
9095    $RM -r conftest
9096    $RM conftest*
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9101
9102
9103
9104
9105 hard_links="nottested"
9106 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9107   # do not overwrite the value of need_locks provided by the user
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9109 $as_echo_n "checking if we can lock with hard links... " >&6; }
9110   hard_links=yes
9111   $RM conftest*
9112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113   touch conftest.a
9114   ln conftest.a conftest.b 2>&5 || hard_links=no
9115   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9117 $as_echo "$hard_links" >&6; }
9118   if test "$hard_links" = no; then
9119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9121     need_locks=warn
9122   fi
9123 else
9124   need_locks=no
9125 fi
9126
9127
9128
9129
9130
9131
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9134
9135   runpath_var=
9136   allow_undefined_flag=
9137   always_export_symbols=no
9138   archive_cmds=
9139   archive_expsym_cmds=
9140   compiler_needs_object=no
9141   enable_shared_with_static_runtimes=no
9142   export_dynamic_flag_spec=
9143   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9144   hardcode_automatic=no
9145   hardcode_direct=no
9146   hardcode_direct_absolute=no
9147   hardcode_libdir_flag_spec=
9148   hardcode_libdir_separator=
9149   hardcode_minus_L=no
9150   hardcode_shlibpath_var=unsupported
9151   inherit_rpath=no
9152   link_all_deplibs=unknown
9153   module_cmds=
9154   module_expsym_cmds=
9155   old_archive_from_new_cmds=
9156   old_archive_from_expsyms_cmds=
9157   thread_safe_flag_spec=
9158   whole_archive_flag_spec=
9159   # include_expsyms should be a list of space-separated symbols to be *always*
9160   # included in the symbol list
9161   include_expsyms=
9162   # exclude_expsyms can be an extended regexp of symbols to exclude
9163   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165   # as well as any symbol that contains `d'.
9166   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168   # platforms (ab)use it in PIC code, but their linkers get confused if
9169   # the symbol is explicitly referenced.  Since portable code cannot
9170   # rely on this symbol name, it's probably fine to never include it in
9171   # preloaded symbol tables.
9172   # Exclude shared library initialization/finalization symbols.
9173   extract_expsyms_cmds=
9174
9175   case $host_os in
9176   cygwin* | mingw* | pw32* | cegcc*)
9177     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178     # When not using gcc, we currently assume that we are using
9179     # Microsoft Visual C++.
9180     if test "$GCC" != yes; then
9181       with_gnu_ld=no
9182     fi
9183     ;;
9184   interix*)
9185     # we just hope/assume this is gcc and not c89 (= MSVC++)
9186     with_gnu_ld=yes
9187     ;;
9188   openbsd*)
9189     with_gnu_ld=no
9190     ;;
9191   esac
9192
9193   ld_shlibs=yes
9194
9195   # On some targets, GNU ld is compatible enough with the native linker
9196   # that we're better off using the native interface for both.
9197   lt_use_gnu_ld_interface=no
9198   if test "$with_gnu_ld" = yes; then
9199     case $host_os in
9200       aix*)
9201         # The AIX port of GNU ld has always aspired to compatibility
9202         # with the native linker.  However, as the warning in the GNU ld
9203         # block says, versions before 2.19.5* couldn't really create working
9204         # shared libraries, regardless of the interface used.
9205         case `$LD -v 2>&1` in
9206           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9209           *)
9210             lt_use_gnu_ld_interface=yes
9211             ;;
9212         esac
9213         ;;
9214       *)
9215         lt_use_gnu_ld_interface=yes
9216         ;;
9217     esac
9218   fi
9219
9220   if test "$lt_use_gnu_ld_interface" = yes; then
9221     # If archive_cmds runs LD, not CC, wlarc should be empty
9222     wlarc='${wl}'
9223
9224     # Set some defaults for GNU ld with shared library support. These
9225     # are reset later if shared libraries are not supported. Putting them
9226     # here allows them to be overridden if necessary.
9227     runpath_var=LD_RUN_PATH
9228     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229     export_dynamic_flag_spec='${wl}--export-dynamic'
9230     # ancient GNU ld didn't support --whole-archive et. al.
9231     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9233     else
9234       whole_archive_flag_spec=
9235     fi
9236     supports_anon_versioning=no
9237     case `$LD -v 2>&1` in
9238       *GNU\ gold*) supports_anon_versioning=yes ;;
9239       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242       *\ 2.11.*) ;; # other 2.11 versions
9243       *) supports_anon_versioning=yes ;;
9244     esac
9245
9246     # See if GNU ld supports shared libraries.
9247     case $host_os in
9248     aix[3-9]*)
9249       # On AIX/PPC, the GNU linker is very broken
9250       if test "$host_cpu" != ia64; then
9251         ld_shlibs=no
9252         cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support.  If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9260
9261 _LT_EOF
9262       fi
9263       ;;
9264
9265     amigaos*)
9266       case $host_cpu in
9267       powerpc)
9268             # see comment about AmigaOS4 .so support
9269             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270             archive_expsym_cmds=''
9271         ;;
9272       m68k)
9273             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)'
9274             hardcode_libdir_flag_spec='-L$libdir'
9275             hardcode_minus_L=yes
9276         ;;
9277       esac
9278       ;;
9279
9280     beos*)
9281       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282         allow_undefined_flag=unsupported
9283         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284         # support --undefined.  This deserves some investigation.  FIXME
9285         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286       else
9287         ld_shlibs=no
9288       fi
9289       ;;
9290
9291     cygwin* | mingw* | pw32* | cegcc*)
9292       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293       # as there is no search path for DLLs.
9294       hardcode_libdir_flag_spec='-L$libdir'
9295       export_dynamic_flag_spec='${wl}--export-all-symbols'
9296       allow_undefined_flag=unsupported
9297       always_export_symbols=no
9298       enable_shared_with_static_runtimes=yes
9299       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'
9300       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9301
9302       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9303         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304         # If the export-symbols file already is a .def file (1st line
9305         # is EXPORTS), use it as is; otherwise, prepend...
9306         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307           cp $export_symbols $output_objdir/$soname.def;
9308         else
9309           echo EXPORTS > $output_objdir/$soname.def;
9310           cat $export_symbols >> $output_objdir/$soname.def;
9311         fi~
9312         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317
9318     haiku*)
9319       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320       link_all_deplibs=yes
9321       ;;
9322
9323     interix[3-9]*)
9324       hardcode_direct=no
9325       hardcode_shlibpath_var=no
9326       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327       export_dynamic_flag_spec='${wl}-E'
9328       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9329       # Instead, shared libraries are loaded at an image base (0x10000000 by
9330       # default) and relocated if they conflict, which is a slow very memory
9331       # consuming and fragmenting process.  To avoid this, we pick a random,
9332       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9333       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9334       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9335       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'
9336       ;;
9337
9338     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9339       tmp_diet=no
9340       if test "$host_os" = linux-dietlibc; then
9341         case $cc_basename in
9342           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9343         esac
9344       fi
9345       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9346          && test "$tmp_diet" = no
9347       then
9348         tmp_addflag=' $pic_flag'
9349         tmp_sharedflag='-shared'
9350         case $cc_basename,$host_cpu in
9351         pgcc*)                          # Portland Group C compiler
9352           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'
9353           tmp_addflag=' $pic_flag'
9354           ;;
9355         pgf77* | pgf90* | pgf95* | pgfortran*)
9356                                         # Portland Group f77 and f90 compilers
9357           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'
9358           tmp_addflag=' $pic_flag -Mnomain' ;;
9359         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9360           tmp_addflag=' -i_dynamic' ;;
9361         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9362           tmp_addflag=' -i_dynamic -nofor_main' ;;
9363         ifc* | ifort*)                  # Intel Fortran compiler
9364           tmp_addflag=' -nofor_main' ;;
9365         lf95*)                          # Lahey Fortran 8.1
9366           whole_archive_flag_spec=
9367           tmp_sharedflag='--shared' ;;
9368         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9369           tmp_sharedflag='-qmkshrobj'
9370           tmp_addflag= ;;
9371         nvcc*)  # Cuda Compiler Driver 2.2
9372           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'
9373           compiler_needs_object=yes
9374           ;;
9375         esac
9376         case `$CC -V 2>&1 | sed 5q` in
9377         *Sun\ C*)                       # Sun C 5.9
9378           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'
9379           compiler_needs_object=yes
9380           tmp_sharedflag='-G' ;;
9381         *Sun\ F*)                       # Sun Fortran 8.3
9382           tmp_sharedflag='-G' ;;
9383         esac
9384         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385
9386         if test "x$supports_anon_versioning" = xyes; then
9387           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9388             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389             echo "local: *; };" >> $output_objdir/$libname.ver~
9390             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9391         fi
9392
9393         case $cc_basename in
9394         xlf* | bgf* | bgxlf* | mpixlf*)
9395           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9396           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9397           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9399           if test "x$supports_anon_versioning" = xyes; then
9400             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402               echo "local: *; };" >> $output_objdir/$libname.ver~
9403               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9404           fi
9405           ;;
9406         esac
9407       else
9408         ld_shlibs=no
9409       fi
9410       ;;
9411
9412     netbsd*)
9413       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415         wlarc=
9416       else
9417         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419       fi
9420       ;;
9421
9422     solaris*)
9423       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9424         ld_shlibs=no
9425         cat <<_LT_EOF 1>&2
9426
9427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428 *** create shared libraries on Solaris systems.  Therefore, libtool
9429 *** is disabling shared libraries support.  We urge you to upgrade GNU
9430 *** binutils to release 2.9.1 or newer.  Another option is to modify
9431 *** your PATH or compiler configuration so that the native linker is
9432 *** used, and then restart.
9433
9434 _LT_EOF
9435       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438       else
9439         ld_shlibs=no
9440       fi
9441       ;;
9442
9443     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9444       case `$LD -v 2>&1` in
9445         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9446         ld_shlibs=no
9447         cat <<_LT_EOF 1>&2
9448
9449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9451 *** is disabling shared libraries support.  We urge you to upgrade GNU
9452 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9453 *** your PATH or compiler configuration so that the native linker is
9454 *** used, and then restart.
9455
9456 _LT_EOF
9457         ;;
9458         *)
9459           # For security reasons, it is highly recommended that you always
9460           # use absolute paths for naming shared libraries, and exclude the
9461           # DT_RUNPATH tag from executables and libraries.  But doing so
9462           # requires that you compile everything twice, which is a pain.
9463           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467           else
9468             ld_shlibs=no
9469           fi
9470         ;;
9471       esac
9472       ;;
9473
9474     sunos4*)
9475       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476       wlarc=
9477       hardcode_direct=yes
9478       hardcode_shlibpath_var=no
9479       ;;
9480
9481     *)
9482       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485       else
9486         ld_shlibs=no
9487       fi
9488       ;;
9489     esac
9490
9491     if test "$ld_shlibs" = no; then
9492       runpath_var=
9493       hardcode_libdir_flag_spec=
9494       export_dynamic_flag_spec=
9495       whole_archive_flag_spec=
9496     fi
9497   else
9498     # PORTME fill in a description of your system's linker (not GNU ld)
9499     case $host_os in
9500     aix3*)
9501       allow_undefined_flag=unsupported
9502       always_export_symbols=yes
9503       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'
9504       # Note: this linker hardcodes the directories in LIBPATH if there
9505       # are no directories specified by -L.
9506       hardcode_minus_L=yes
9507       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508         # Neither direct hardcoding nor static linking is supported with a
9509         # broken collect2.
9510         hardcode_direct=unsupported
9511       fi
9512       ;;
9513
9514     aix[4-9]*)
9515       if test "$host_cpu" = ia64; then
9516         # On IA64, the linker does run time linking by default, so we don't
9517         # have to do anything special.
9518         aix_use_runtimelinking=no
9519         exp_sym_flag='-Bexport'
9520         no_entry_flag=""
9521       else
9522         # If we're using GNU nm, then we don't want the "-C" option.
9523         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9524         # Also, AIX nm treats weak defined symbols like other global
9525         # defined symbols, whereas GNU nm marks them as "W".
9526         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527           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'
9528         else
9529           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'
9530         fi
9531         aix_use_runtimelinking=no
9532
9533         # Test if we are trying to use run time linking or normal
9534         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535         # need to do runtime linking.
9536         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537           for ld_flag in $LDFLAGS; do
9538           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539             aix_use_runtimelinking=yes
9540             break
9541           fi
9542           done
9543           ;;
9544         esac
9545
9546         exp_sym_flag='-bexport'
9547         no_entry_flag='-bnoentry'
9548       fi
9549
9550       # When large executables or shared objects are built, AIX ld can
9551       # have problems creating the table of contents.  If linking a library
9552       # or program results in "error TOC overflow" add -mminimal-toc to
9553       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9554       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555
9556       archive_cmds=''
9557       hardcode_direct=yes
9558       hardcode_direct_absolute=yes
9559       hardcode_libdir_separator=':'
9560       link_all_deplibs=yes
9561       file_list_spec='${wl}-f,'
9562
9563       if test "$GCC" = yes; then
9564         case $host_os in aix4.[012]|aix4.[012].*)
9565         # We only want to do this on AIX 4.2 and lower, the check
9566         # below for broken collect2 doesn't work under 4.3+
9567           collect2name=`${CC} -print-prog-name=collect2`
9568           if test -f "$collect2name" &&
9569            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570           then
9571           # We have reworked collect2
9572           :
9573           else
9574           # We have old collect2
9575           hardcode_direct=unsupported
9576           # It fails to find uninstalled libraries when the uninstalled
9577           # path is not listed in the libpath.  Setting hardcode_minus_L
9578           # to unsupported forces relinking
9579           hardcode_minus_L=yes
9580           hardcode_libdir_flag_spec='-L$libdir'
9581           hardcode_libdir_separator=
9582           fi
9583           ;;
9584         esac
9585         shared_flag='-shared'
9586         if test "$aix_use_runtimelinking" = yes; then
9587           shared_flag="$shared_flag "'${wl}-G'
9588         fi
9589       else
9590         # not using gcc
9591         if test "$host_cpu" = ia64; then
9592         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593         # chokes on -Wl,-G. The following line is correct:
9594           shared_flag='-G'
9595         else
9596           if test "$aix_use_runtimelinking" = yes; then
9597             shared_flag='${wl}-G'
9598           else
9599             shared_flag='${wl}-bM:SRE'
9600           fi
9601         fi
9602       fi
9603
9604       export_dynamic_flag_spec='${wl}-bexpall'
9605       # It seems that -bexpall does not export symbols beginning with
9606       # underscore (_), so it is better to generate a list of symbols to export.
9607       always_export_symbols=yes
9608       if test "$aix_use_runtimelinking" = yes; then
9609         # Warning - without using the other runtime loading flags (-brtl),
9610         # -berok will link without error, but may produce a broken library.
9611         allow_undefined_flag='-berok'
9612         # Determine the default libpath from the value encoded in an
9613         # empty executable.
9614         if test "${lt_cv_aix_libpath+set}" = set; then
9615   aix_libpath=$lt_cv_aix_libpath
9616 else
9617   if ${lt_cv_aix_libpath_+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h.  */
9622
9623 int
9624 main ()
9625 {
9626
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632
9633   lt_aix_libpath_sed='
9634       /Import File Strings/,/^$/ {
9635           /^0/ {
9636               s/^0  *\([^ ]*\) *$/\1/
9637               p
9638           }
9639       }'
9640   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641   # Check for a 64-bit object if we didn't find anything.
9642   if test -z "$lt_cv_aix_libpath_"; then
9643     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644   fi
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext \
9647     conftest$ac_exeext conftest.$ac_ext
9648   if test -z "$lt_cv_aix_libpath_"; then
9649     lt_cv_aix_libpath_="/usr/lib:/lib"
9650   fi
9651
9652 fi
9653
9654   aix_libpath=$lt_cv_aix_libpath_
9655 fi
9656
9657         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9658         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"
9659       else
9660         if test "$host_cpu" = ia64; then
9661           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9662           allow_undefined_flag="-z nodefs"
9663           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"
9664         else
9665          # Determine the default libpath from the value encoded in an
9666          # empty executable.
9667          if test "${lt_cv_aix_libpath+set}" = set; then
9668   aix_libpath=$lt_cv_aix_libpath
9669 else
9670   if ${lt_cv_aix_libpath_+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675
9676 int
9677 main ()
9678 {
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685
9686   lt_aix_libpath_sed='
9687       /Import File Strings/,/^$/ {
9688           /^0/ {
9689               s/^0  *\([^ ]*\) *$/\1/
9690               p
9691           }
9692       }'
9693   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694   # Check for a 64-bit object if we didn't find anything.
9695   if test -z "$lt_cv_aix_libpath_"; then
9696     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697   fi
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701   if test -z "$lt_cv_aix_libpath_"; then
9702     lt_cv_aix_libpath_="/usr/lib:/lib"
9703   fi
9704
9705 fi
9706
9707   aix_libpath=$lt_cv_aix_libpath_
9708 fi
9709
9710          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9711           # Warning - without using the other run time loading flags,
9712           # -berok will link without error, but may produce a broken library.
9713           no_undefined_flag=' ${wl}-bernotok'
9714           allow_undefined_flag=' ${wl}-berok'
9715           if test "$with_gnu_ld" = yes; then
9716             # We only use this code for GNU lds that support --whole-archive.
9717             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9718           else
9719             # Exported symbols can be pulled into shared objects from archives
9720             whole_archive_flag_spec='$convenience'
9721           fi
9722           archive_cmds_need_lc=yes
9723           # This is similar to how AIX traditionally builds its shared libraries.
9724           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'
9725         fi
9726       fi
9727       ;;
9728
9729     amigaos*)
9730       case $host_cpu in
9731       powerpc)
9732             # see comment about AmigaOS4 .so support
9733             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734             archive_expsym_cmds=''
9735         ;;
9736       m68k)
9737             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)'
9738             hardcode_libdir_flag_spec='-L$libdir'
9739             hardcode_minus_L=yes
9740         ;;
9741       esac
9742       ;;
9743
9744     bsdi[45]*)
9745       export_dynamic_flag_spec=-rdynamic
9746       ;;
9747
9748     cygwin* | mingw* | pw32* | cegcc*)
9749       # When not using gcc, we currently assume that we are using
9750       # Microsoft Visual C++.
9751       # hardcode_libdir_flag_spec is actually meaningless, as there is
9752       # no search path for DLLs.
9753       case $cc_basename in
9754       cl*)
9755         # Native MSVC
9756         hardcode_libdir_flag_spec=' '
9757         allow_undefined_flag=unsupported
9758         always_export_symbols=yes
9759         file_list_spec='@'
9760         # Tell ltmain to make .lib files, not .a files.
9761         libext=lib
9762         # Tell ltmain to make .dll files, not .so files.
9763         shrext_cmds=".dll"
9764         # FIXME: Setting linknames here is a bad hack.
9765         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9766         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9768           else
9769             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9770           fi~
9771           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9772           linknames='
9773         # The linker will not automatically build a static lib if we build a DLL.
9774         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9775         enable_shared_with_static_runtimes=yes
9776         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9777         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9778         # Don't use ranlib
9779         old_postinstall_cmds='chmod 644 $oldlib'
9780         postlink_cmds='lt_outputfile="@OUTPUT@"~
9781           lt_tool_outputfile="@TOOL_OUTPUT@"~
9782           case $lt_outputfile in
9783             *.exe|*.EXE) ;;
9784             *)
9785               lt_outputfile="$lt_outputfile.exe"
9786               lt_tool_outputfile="$lt_tool_outputfile.exe"
9787               ;;
9788           esac~
9789           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9790             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9791             $RM "$lt_outputfile.manifest";
9792           fi'
9793         ;;
9794       *)
9795         # Assume MSVC wrapper
9796         hardcode_libdir_flag_spec=' '
9797         allow_undefined_flag=unsupported
9798         # Tell ltmain to make .lib files, not .a files.
9799         libext=lib
9800         # Tell ltmain to make .dll files, not .so files.
9801         shrext_cmds=".dll"
9802         # FIXME: Setting linknames here is a bad hack.
9803         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804         # The linker will automatically build a .lib file if we build a DLL.
9805         old_archive_from_new_cmds='true'
9806         # FIXME: Should let the user specify the lib program.
9807         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808         enable_shared_with_static_runtimes=yes
9809         ;;
9810       esac
9811       ;;
9812
9813     darwin* | rhapsody*)
9814
9815
9816   archive_cmds_need_lc=no
9817   hardcode_direct=no
9818   hardcode_automatic=yes
9819   hardcode_shlibpath_var=unsupported
9820   if test "$lt_cv_ld_force_load" = "yes"; then
9821     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\"`'
9822
9823   else
9824     whole_archive_flag_spec=''
9825   fi
9826   link_all_deplibs=yes
9827   allow_undefined_flag="$_lt_dar_allow_undefined"
9828   case $cc_basename in
9829      ifort*) _lt_dar_can_shared=yes ;;
9830      *) _lt_dar_can_shared=$GCC ;;
9831   esac
9832   if test "$_lt_dar_can_shared" = "yes"; then
9833     output_verbose_link_cmd=func_echo_all
9834     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9835     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9836     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}"
9837     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}"
9838
9839   else
9840   ld_shlibs=no
9841   fi
9842
9843       ;;
9844
9845     dgux*)
9846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847       hardcode_libdir_flag_spec='-L$libdir'
9848       hardcode_shlibpath_var=no
9849       ;;
9850
9851     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9852     # support.  Future versions do this automatically, but an explicit c++rt0.o
9853     # does not break anything, and helps significantly (at the cost of a little
9854     # extra space).
9855     freebsd2.2*)
9856       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9857       hardcode_libdir_flag_spec='-R$libdir'
9858       hardcode_direct=yes
9859       hardcode_shlibpath_var=no
9860       ;;
9861
9862     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9863     freebsd2.*)
9864       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865       hardcode_direct=yes
9866       hardcode_minus_L=yes
9867       hardcode_shlibpath_var=no
9868       ;;
9869
9870     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9871     freebsd* | dragonfly*)
9872       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873       hardcode_libdir_flag_spec='-R$libdir'
9874       hardcode_direct=yes
9875       hardcode_shlibpath_var=no
9876       ;;
9877
9878     hpux9*)
9879       if test "$GCC" = yes; then
9880         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'
9881       else
9882         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'
9883       fi
9884       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9885       hardcode_libdir_separator=:
9886       hardcode_direct=yes
9887
9888       # hardcode_minus_L: Not really in the search PATH,
9889       # but as the default location of the library.
9890       hardcode_minus_L=yes
9891       export_dynamic_flag_spec='${wl}-E'
9892       ;;
9893
9894     hpux10*)
9895       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9896         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897       else
9898         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9899       fi
9900       if test "$with_gnu_ld" = no; then
9901         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902         hardcode_libdir_separator=:
9903         hardcode_direct=yes
9904         hardcode_direct_absolute=yes
9905         export_dynamic_flag_spec='${wl}-E'
9906         # hardcode_minus_L: Not really in the search PATH,
9907         # but as the default location of the library.
9908         hardcode_minus_L=yes
9909       fi
9910       ;;
9911
9912     hpux11*)
9913       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9914         case $host_cpu in
9915         hppa*64*)
9916           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917           ;;
9918         ia64*)
9919           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9920           ;;
9921         *)
9922           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923           ;;
9924         esac
9925       else
9926         case $host_cpu in
9927         hppa*64*)
9928           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929           ;;
9930         ia64*)
9931           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9932           ;;
9933         *)
9934
9935           # Older versions of the 11.00 compiler do not understand -b yet
9936           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9937           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9938 $as_echo_n "checking if $CC understands -b... " >&6; }
9939 if ${lt_cv_prog_compiler__b+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   lt_cv_prog_compiler__b=no
9943    save_LDFLAGS="$LDFLAGS"
9944    LDFLAGS="$LDFLAGS -b"
9945    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9946    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9947      # The linker can only warn and ignore the option if not recognized
9948      # So say no if there are warnings
9949      if test -s conftest.err; then
9950        # Append any errors to the config.log.
9951        cat conftest.err 1>&5
9952        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9953        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9954        if diff conftest.exp conftest.er2 >/dev/null; then
9955          lt_cv_prog_compiler__b=yes
9956        fi
9957      else
9958        lt_cv_prog_compiler__b=yes
9959      fi
9960    fi
9961    $RM -r conftest*
9962    LDFLAGS="$save_LDFLAGS"
9963
9964 fi
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9966 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9967
9968 if test x"$lt_cv_prog_compiler__b" = xyes; then
9969     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9970 else
9971     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9972 fi
9973
9974           ;;
9975         esac
9976       fi
9977       if test "$with_gnu_ld" = no; then
9978         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979         hardcode_libdir_separator=:
9980
9981         case $host_cpu in
9982         hppa*64*|ia64*)
9983           hardcode_direct=no
9984           hardcode_shlibpath_var=no
9985           ;;
9986         *)
9987           hardcode_direct=yes
9988           hardcode_direct_absolute=yes
9989           export_dynamic_flag_spec='${wl}-E'
9990
9991           # hardcode_minus_L: Not really in the search PATH,
9992           # but as the default location of the library.
9993           hardcode_minus_L=yes
9994           ;;
9995         esac
9996       fi
9997       ;;
9998
9999     irix5* | irix6* | nonstopux*)
10000       if test "$GCC" = yes; then
10001         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'
10002         # Try to use the -exported_symbol ld option, if it does not
10003         # work, assume that -exports_file does not work either and
10004         # implicitly export all symbols.
10005         # This should be the same for all languages, so no per-tag cache variable.
10006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10007 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10008 if ${lt_cv_irix_exported_symbol+:} false; then :
10009   $as_echo_n "(cached) " >&6
10010 else
10011   save_LDFLAGS="$LDFLAGS"
10012            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10013            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h.  */
10015 int foo (void) { return 0; }
10016 _ACEOF
10017 if ac_fn_c_try_link "$LINENO"; then :
10018   lt_cv_irix_exported_symbol=yes
10019 else
10020   lt_cv_irix_exported_symbol=no
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext \
10023     conftest$ac_exeext conftest.$ac_ext
10024            LDFLAGS="$save_LDFLAGS"
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10027 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10028         if test "$lt_cv_irix_exported_symbol" = yes; then
10029           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'
10030         fi
10031       else
10032         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'
10033         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'
10034       fi
10035       archive_cmds_need_lc='no'
10036       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037       hardcode_libdir_separator=:
10038       inherit_rpath=yes
10039       link_all_deplibs=yes
10040       ;;
10041
10042     netbsd*)
10043       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10045       else
10046         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10047       fi
10048       hardcode_libdir_flag_spec='-R$libdir'
10049       hardcode_direct=yes
10050       hardcode_shlibpath_var=no
10051       ;;
10052
10053     newsos6)
10054       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055       hardcode_direct=yes
10056       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057       hardcode_libdir_separator=:
10058       hardcode_shlibpath_var=no
10059       ;;
10060
10061     *nto* | *qnx*)
10062       ;;
10063
10064     openbsd*)
10065       if test -f /usr/libexec/ld.so; then
10066         hardcode_direct=yes
10067         hardcode_shlibpath_var=no
10068         hardcode_direct_absolute=yes
10069         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10070           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10072           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10073           export_dynamic_flag_spec='${wl}-E'
10074         else
10075           case $host_os in
10076            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10077              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10078              hardcode_libdir_flag_spec='-R$libdir'
10079              ;;
10080            *)
10081              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10083              ;;
10084           esac
10085         fi
10086       else
10087         ld_shlibs=no
10088       fi
10089       ;;
10090
10091     os2*)
10092       hardcode_libdir_flag_spec='-L$libdir'
10093       hardcode_minus_L=yes
10094       allow_undefined_flag=unsupported
10095       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'
10096       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10097       ;;
10098
10099     osf3*)
10100       if test "$GCC" = yes; then
10101         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10102         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'
10103       else
10104         allow_undefined_flag=' -expect_unresolved \*'
10105         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'
10106       fi
10107       archive_cmds_need_lc='no'
10108       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10109       hardcode_libdir_separator=:
10110       ;;
10111
10112     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10113       if test "$GCC" = yes; then
10114         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115         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'
10116         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117       else
10118         allow_undefined_flag=' -expect_unresolved \*'
10119         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'
10120         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~
10121         $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'
10122
10123         # Both c and cxx compiler support -rpath directly
10124         hardcode_libdir_flag_spec='-rpath $libdir'
10125       fi
10126       archive_cmds_need_lc='no'
10127       hardcode_libdir_separator=:
10128       ;;
10129
10130     solaris*)
10131       no_undefined_flag=' -z defs'
10132       if test "$GCC" = yes; then
10133         wlarc='${wl}'
10134         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10135         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10136           $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'
10137       else
10138         case `$CC -V 2>&1` in
10139         *"Compilers 5.0"*)
10140           wlarc=''
10141           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10144           ;;
10145         *)
10146           wlarc='${wl}'
10147           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10148           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10150           ;;
10151         esac
10152       fi
10153       hardcode_libdir_flag_spec='-R$libdir'
10154       hardcode_shlibpath_var=no
10155       case $host_os in
10156       solaris2.[0-5] | solaris2.[0-5].*) ;;
10157       *)
10158         # The compiler driver will combine and reorder linker options,
10159         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10160         # but is careful enough not to reorder.
10161         # Supported since Solaris 2.6 (maybe 2.5.1?)
10162         if test "$GCC" = yes; then
10163           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10164         else
10165           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10166         fi
10167         ;;
10168       esac
10169       link_all_deplibs=yes
10170       ;;
10171
10172     sunos4*)
10173       if test "x$host_vendor" = xsequent; then
10174         # Use $CC to link under sequent, because it throws in some extra .o
10175         # files that make .init and .fini sections work.
10176         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177       else
10178         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10179       fi
10180       hardcode_libdir_flag_spec='-L$libdir'
10181       hardcode_direct=yes
10182       hardcode_minus_L=yes
10183       hardcode_shlibpath_var=no
10184       ;;
10185
10186     sysv4)
10187       case $host_vendor in
10188         sni)
10189           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190           hardcode_direct=yes # is this really true???
10191         ;;
10192         siemens)
10193           ## LD is ld it makes a PLAMLIB
10194           ## CC just makes a GrossModule.
10195           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10196           reload_cmds='$CC -r -o $output$reload_objs'
10197           hardcode_direct=no
10198         ;;
10199         motorola)
10200           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10202         ;;
10203       esac
10204       runpath_var='LD_RUN_PATH'
10205       hardcode_shlibpath_var=no
10206       ;;
10207
10208     sysv4.3*)
10209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210       hardcode_shlibpath_var=no
10211       export_dynamic_flag_spec='-Bexport'
10212       ;;
10213
10214     sysv4*MP*)
10215       if test -d /usr/nec; then
10216         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217         hardcode_shlibpath_var=no
10218         runpath_var=LD_RUN_PATH
10219         hardcode_runpath_var=yes
10220         ld_shlibs=yes
10221       fi
10222       ;;
10223
10224     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10225       no_undefined_flag='${wl}-z,text'
10226       archive_cmds_need_lc=no
10227       hardcode_shlibpath_var=no
10228       runpath_var='LD_RUN_PATH'
10229
10230       if test "$GCC" = yes; then
10231         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233       else
10234         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236       fi
10237       ;;
10238
10239     sysv5* | sco3.2v5* | sco5v6*)
10240       # Note: We can NOT use -z defs as we might desire, because we do not
10241       # link with -lc, and that would cause any symbols used from libc to
10242       # always be unresolved, which means just about no library would
10243       # ever link correctly.  If we're not using GNU ld we use -z text
10244       # though, which does catch some bad symbols but isn't as heavy-handed
10245       # as -z defs.
10246       no_undefined_flag='${wl}-z,text'
10247       allow_undefined_flag='${wl}-z,nodefs'
10248       archive_cmds_need_lc=no
10249       hardcode_shlibpath_var=no
10250       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10251       hardcode_libdir_separator=':'
10252       link_all_deplibs=yes
10253       export_dynamic_flag_spec='${wl}-Bexport'
10254       runpath_var='LD_RUN_PATH'
10255
10256       if test "$GCC" = yes; then
10257         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259       else
10260         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262       fi
10263       ;;
10264
10265     uts4*)
10266       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267       hardcode_libdir_flag_spec='-L$libdir'
10268       hardcode_shlibpath_var=no
10269       ;;
10270
10271     *)
10272       ld_shlibs=no
10273       ;;
10274     esac
10275
10276     if test x$host_vendor = xsni; then
10277       case $host in
10278       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10279         export_dynamic_flag_spec='${wl}-Blargedynsym'
10280         ;;
10281       esac
10282     fi
10283   fi
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10286 $as_echo "$ld_shlibs" >&6; }
10287 test "$ld_shlibs" = no && can_build_shared=no
10288
10289 with_gnu_ld=$with_gnu_ld
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 #
10306 # Do we need to explicitly link libc?
10307 #
10308 case "x$archive_cmds_need_lc" in
10309 x|xyes)
10310   # Assume -lc should be added
10311   archive_cmds_need_lc=yes
10312
10313   if test "$enable_shared" = yes && test "$GCC" = yes; then
10314     case $archive_cmds in
10315     *'~'*)
10316       # FIXME: we may have to deal with multi-command sequences.
10317       ;;
10318     '$CC '*)
10319       # Test whether the compiler implicitly links with -lc since on some
10320       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10321       # to ld, don't add -lc before -lgcc.
10322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10323 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10324 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327   $RM conftest*
10328         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10329
10330         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10331   (eval $ac_compile) 2>&5
10332   ac_status=$?
10333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334   test $ac_status = 0; } 2>conftest.err; then
10335           soname=conftest
10336           lib=conftest
10337           libobjs=conftest.$ac_objext
10338           deplibs=
10339           wl=$lt_prog_compiler_wl
10340           pic_flag=$lt_prog_compiler_pic
10341           compiler_flags=-v
10342           linker_flags=-v
10343           verstring=
10344           output_objdir=.
10345           libname=conftest
10346           lt_save_allow_undefined_flag=$allow_undefined_flag
10347           allow_undefined_flag=
10348           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10349   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10350   ac_status=$?
10351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352   test $ac_status = 0; }
10353           then
10354             lt_cv_archive_cmds_need_lc=no
10355           else
10356             lt_cv_archive_cmds_need_lc=yes
10357           fi
10358           allow_undefined_flag=$lt_save_allow_undefined_flag
10359         else
10360           cat conftest.err 1>&5
10361         fi
10362         $RM conftest*
10363
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10366 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10367       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10368       ;;
10369     esac
10370   fi
10371   ;;
10372 esac
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10526 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10527
10528 if test "$GCC" = yes; then
10529   case $host_os in
10530     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10531     *) lt_awk_arg="/^libraries:/" ;;
10532   esac
10533   case $host_os in
10534     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10535     *) lt_sed_strip_eq="s,=/,/,g" ;;
10536   esac
10537   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10538   case $lt_search_path_spec in
10539   *\;*)
10540     # if the path contains ";" then we assume it to be the separator
10541     # otherwise default to the standard path separator (i.e. ":") - it is
10542     # assumed that no part of a normal pathname contains ";" but that should
10543     # okay in the real world where ";" in dirpaths is itself problematic.
10544     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10545     ;;
10546   *)
10547     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10548     ;;
10549   esac
10550   # Ok, now we have the path, separated by spaces, we can step through it
10551   # and add multilib dir if necessary.
10552   lt_tmp_lt_search_path_spec=
10553   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10554   for lt_sys_path in $lt_search_path_spec; do
10555     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10556       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10557     else
10558       test -d "$lt_sys_path" && \
10559         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10560     fi
10561   done
10562   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10563 BEGIN {RS=" "; FS="/|\n";} {
10564   lt_foo="";
10565   lt_count=0;
10566   for (lt_i = NF; lt_i > 0; lt_i--) {
10567     if ($lt_i != "" && $lt_i != ".") {
10568       if ($lt_i == "..") {
10569         lt_count++;
10570       } else {
10571         if (lt_count == 0) {
10572           lt_foo="/" $lt_i lt_foo;
10573         } else {
10574           lt_count--;
10575         }
10576       }
10577     }
10578   }
10579   if (lt_foo != "") { lt_freq[lt_foo]++; }
10580   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10581 }'`
10582   # AWK program above erroneously prepends '/' to C:/dos/paths
10583   # for these hosts.
10584   case $host_os in
10585     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10586       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10587   esac
10588   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10589 else
10590   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10591 fi
10592 library_names_spec=
10593 libname_spec='lib$name'
10594 soname_spec=
10595 shrext_cmds=".so"
10596 postinstall_cmds=
10597 postuninstall_cmds=
10598 finish_cmds=
10599 finish_eval=
10600 shlibpath_var=
10601 shlibpath_overrides_runpath=unknown
10602 version_type=none
10603 dynamic_linker="$host_os ld.so"
10604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10605 need_lib_prefix=unknown
10606 hardcode_into_libs=no
10607
10608 # when you set need_version to no, make sure it does not cause -set_version
10609 # flags to be left without arguments
10610 need_version=unknown
10611
10612 case $host_os in
10613 aix3*)
10614   version_type=linux # correct to gnu/linux during the next big refactor
10615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10616   shlibpath_var=LIBPATH
10617
10618   # AIX 3 has no versioning support, so we append a major version to the name.
10619   soname_spec='${libname}${release}${shared_ext}$major'
10620   ;;
10621
10622 aix[4-9]*)
10623   version_type=linux # correct to gnu/linux during the next big refactor
10624   need_lib_prefix=no
10625   need_version=no
10626   hardcode_into_libs=yes
10627   if test "$host_cpu" = ia64; then
10628     # AIX 5 supports IA64
10629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10630     shlibpath_var=LD_LIBRARY_PATH
10631   else
10632     # With GCC up to 2.95.x, collect2 would create an import file
10633     # for dependence libraries.  The import file would start with
10634     # the line `#! .'.  This would cause the generated library to
10635     # depend on `.', always an invalid library.  This was fixed in
10636     # development snapshots of GCC prior to 3.0.
10637     case $host_os in
10638       aix4 | aix4.[01] | aix4.[01].*)
10639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10640            echo ' yes '
10641            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10642         :
10643       else
10644         can_build_shared=no
10645       fi
10646       ;;
10647     esac
10648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10649     # soname into executable. Probably we can add versioning support to
10650     # collect2, so additional links can be useful in future.
10651     if test "$aix_use_runtimelinking" = yes; then
10652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10653       # instead of lib<name>.a to let people know that these are not
10654       # typical AIX shared libraries.
10655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656     else
10657       # We preserve .a as extension for shared libraries through AIX4.2
10658       # and later when we are not doing run time linking.
10659       library_names_spec='${libname}${release}.a $libname.a'
10660       soname_spec='${libname}${release}${shared_ext}$major'
10661     fi
10662     shlibpath_var=LIBPATH
10663   fi
10664   ;;
10665
10666 amigaos*)
10667   case $host_cpu in
10668   powerpc)
10669     # Since July 2007 AmigaOS4 officially supports .so libraries.
10670     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672     ;;
10673   m68k)
10674     library_names_spec='$libname.ixlibrary $libname.a'
10675     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676     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'
10677     ;;
10678   esac
10679   ;;
10680
10681 beos*)
10682   library_names_spec='${libname}${shared_ext}'
10683   dynamic_linker="$host_os ld.so"
10684   shlibpath_var=LIBRARY_PATH
10685   ;;
10686
10687 bsdi[45]*)
10688   version_type=linux # correct to gnu/linux during the next big refactor
10689   need_version=no
10690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691   soname_spec='${libname}${release}${shared_ext}$major'
10692   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10693   shlibpath_var=LD_LIBRARY_PATH
10694   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10695   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10696   # the default ld.so.conf also contains /usr/contrib/lib and
10697   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10698   # libtool to hard-code these into programs
10699   ;;
10700
10701 cygwin* | mingw* | pw32* | cegcc*)
10702   version_type=windows
10703   shrext_cmds=".dll"
10704   need_version=no
10705   need_lib_prefix=no
10706
10707   case $GCC,$cc_basename in
10708   yes,*)
10709     # gcc
10710     library_names_spec='$libname.dll.a'
10711     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10712     postinstall_cmds='base_file=`basename \${file}`~
10713       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10714       dldir=$destdir/`dirname \$dlpath`~
10715       test -d \$dldir || mkdir -p \$dldir~
10716       $install_prog $dir/$dlname \$dldir/$dlname~
10717       chmod a+x \$dldir/$dlname~
10718       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10719         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10720       fi'
10721     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722       dlpath=$dir/\$dldll~
10723        $RM \$dlpath'
10724     shlibpath_overrides_runpath=yes
10725
10726     case $host_os in
10727     cygwin*)
10728       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10729       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730
10731       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10732       ;;
10733     mingw* | cegcc*)
10734       # MinGW DLLs use traditional 'lib' prefix
10735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736       ;;
10737     pw32*)
10738       # pw32 DLLs use 'pw' prefix rather than 'lib'
10739       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740       ;;
10741     esac
10742     dynamic_linker='Win32 ld.exe'
10743     ;;
10744
10745   *,cl*)
10746     # Native MSVC
10747     libname_spec='$name'
10748     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749     library_names_spec='${libname}.dll.lib'
10750
10751     case $build_os in
10752     mingw*)
10753       sys_lib_search_path_spec=
10754       lt_save_ifs=$IFS
10755       IFS=';'
10756       for lt_path in $LIB
10757       do
10758         IFS=$lt_save_ifs
10759         # Let DOS variable expansion print the short 8.3 style file name.
10760         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10761         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10762       done
10763       IFS=$lt_save_ifs
10764       # Convert to MSYS style.
10765       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10766       ;;
10767     cygwin*)
10768       # Convert to unix form, then to dos form, then back to unix form
10769       # but this time dos style (no spaces!) so that the unix form looks
10770       # like /cygdrive/c/PROGRA~1:/cygdr...
10771       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10772       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10773       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10774       ;;
10775     *)
10776       sys_lib_search_path_spec="$LIB"
10777       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10778         # It is most probably a Windows format PATH.
10779         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10780       else
10781         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10782       fi
10783       # FIXME: find the short name or the path components, as spaces are
10784       # common. (e.g. "Program Files" -> "PROGRA~1")
10785       ;;
10786     esac
10787
10788     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10789     postinstall_cmds='base_file=`basename \${file}`~
10790       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10791       dldir=$destdir/`dirname \$dlpath`~
10792       test -d \$dldir || mkdir -p \$dldir~
10793       $install_prog $dir/$dlname \$dldir/$dlname'
10794     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10795       dlpath=$dir/\$dldll~
10796        $RM \$dlpath'
10797     shlibpath_overrides_runpath=yes
10798     dynamic_linker='Win32 link.exe'
10799     ;;
10800
10801   *)
10802     # Assume MSVC wrapper
10803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10804     dynamic_linker='Win32 ld.exe'
10805     ;;
10806   esac
10807   # FIXME: first we should search . and the directory the executable is in
10808   shlibpath_var=PATH
10809   ;;
10810
10811 darwin* | rhapsody*)
10812   dynamic_linker="$host_os dyld"
10813   version_type=darwin
10814   need_lib_prefix=no
10815   need_version=no
10816   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10817   soname_spec='${libname}${release}${major}$shared_ext'
10818   shlibpath_overrides_runpath=yes
10819   shlibpath_var=DYLD_LIBRARY_PATH
10820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10821
10822   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10823   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10824   ;;
10825
10826 dgux*)
10827   version_type=linux # correct to gnu/linux during the next big refactor
10828   need_lib_prefix=no
10829   need_version=no
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   ;;
10834
10835 freebsd* | dragonfly*)
10836   # DragonFly does not have aout.  When/if they implement a new
10837   # versioning mechanism, adjust this.
10838   if test -x /usr/bin/objformat; then
10839     objformat=`/usr/bin/objformat`
10840   else
10841     case $host_os in
10842     freebsd[23].*) objformat=aout ;;
10843     *) objformat=elf ;;
10844     esac
10845   fi
10846   # Handle Gentoo/FreeBSD as it was Linux
10847   case $host_vendor in
10848     gentoo)
10849       version_type=linux ;;
10850     *)
10851       version_type=freebsd-$objformat ;;
10852   esac
10853
10854   case $version_type in
10855     freebsd-elf*)
10856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10857       need_version=no
10858       need_lib_prefix=no
10859       ;;
10860     freebsd-*)
10861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10862       need_version=yes
10863       ;;
10864     linux)
10865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10866       soname_spec='${libname}${release}${shared_ext}$major'
10867       need_lib_prefix=no
10868       need_version=no
10869       ;;
10870   esac
10871   shlibpath_var=LD_LIBRARY_PATH
10872   case $host_os in
10873   freebsd2.*)
10874     shlibpath_overrides_runpath=yes
10875     ;;
10876   freebsd3.[01]* | freebsdelf3.[01]*)
10877     shlibpath_overrides_runpath=yes
10878     hardcode_into_libs=yes
10879     ;;
10880   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10881   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10882     shlibpath_overrides_runpath=no
10883     hardcode_into_libs=yes
10884     ;;
10885   *) # from 4.6 on, and DragonFly
10886     shlibpath_overrides_runpath=yes
10887     hardcode_into_libs=yes
10888     ;;
10889   esac
10890   ;;
10891
10892 gnu*)
10893   version_type=linux # correct to gnu/linux during the next big refactor
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   shlibpath_overrides_runpath=no
10900   hardcode_into_libs=yes
10901   ;;
10902
10903 haiku*)
10904   version_type=linux # correct to gnu/linux during the next big refactor
10905   need_lib_prefix=no
10906   need_version=no
10907   dynamic_linker="$host_os runtime_loader"
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   shlibpath_var=LIBRARY_PATH
10911   shlibpath_overrides_runpath=yes
10912   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10913   hardcode_into_libs=yes
10914   ;;
10915
10916 hpux9* | hpux10* | hpux11*)
10917   # Give a soname corresponding to the major version so that dld.sl refuses to
10918   # link against other versions.
10919   version_type=sunos
10920   need_lib_prefix=no
10921   need_version=no
10922   case $host_cpu in
10923   ia64*)
10924     shrext_cmds='.so'
10925     hardcode_into_libs=yes
10926     dynamic_linker="$host_os dld.so"
10927     shlibpath_var=LD_LIBRARY_PATH
10928     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930     soname_spec='${libname}${release}${shared_ext}$major'
10931     if test "X$HPUX_IA64_MODE" = X32; then
10932       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10933     else
10934       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10935     fi
10936     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10937     ;;
10938   hppa*64*)
10939     shrext_cmds='.sl'
10940     hardcode_into_libs=yes
10941     dynamic_linker="$host_os dld.sl"
10942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945     soname_spec='${libname}${release}${shared_ext}$major'
10946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948     ;;
10949   *)
10950     shrext_cmds='.sl'
10951     dynamic_linker="$host_os dld.sl"
10952     shlibpath_var=SHLIB_PATH
10953     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955     soname_spec='${libname}${release}${shared_ext}$major'
10956     ;;
10957   esac
10958   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10959   postinstall_cmds='chmod 555 $lib'
10960   # or fails outright, so override atomically:
10961   install_override_mode=555
10962   ;;
10963
10964 interix[3-9]*)
10965   version_type=linux # correct to gnu/linux during the next big refactor
10966   need_lib_prefix=no
10967   need_version=no
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10971   shlibpath_var=LD_LIBRARY_PATH
10972   shlibpath_overrides_runpath=no
10973   hardcode_into_libs=yes
10974   ;;
10975
10976 irix5* | irix6* | nonstopux*)
10977   case $host_os in
10978     nonstopux*) version_type=nonstopux ;;
10979     *)
10980         if test "$lt_cv_prog_gnu_ld" = yes; then
10981                 version_type=linux # correct to gnu/linux during the next big refactor
10982         else
10983                 version_type=irix
10984         fi ;;
10985   esac
10986   need_lib_prefix=no
10987   need_version=no
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10990   case $host_os in
10991   irix5* | nonstopux*)
10992     libsuff= shlibsuff=
10993     ;;
10994   *)
10995     case $LD in # libtool.m4 will add one of these switches to LD
10996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10997       libsuff= shlibsuff= libmagic=32-bit;;
10998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10999       libsuff=32 shlibsuff=N32 libmagic=N32;;
11000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11002     *) libsuff= shlibsuff= libmagic=never-match;;
11003     esac
11004     ;;
11005   esac
11006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11007   shlibpath_overrides_runpath=no
11008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 # No shared lib support for Linux oldld, aout, or coff.
11014 linux*oldld* | linux*aout* | linux*coff*)
11015   dynamic_linker=no
11016   ;;
11017
11018 # This must be glibc/ELF.
11019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11020   version_type=linux # correct to gnu/linux during the next big refactor
11021   need_lib_prefix=no
11022   need_version=no
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024   soname_spec='${libname}${release}${shared_ext}$major'
11025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=no
11028
11029   # Some binutils ld are patched to set DT_RUNPATH
11030   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   lt_cv_shlibpath_overrides_runpath=no
11034     save_LDFLAGS=$LDFLAGS
11035     save_libdir=$libdir
11036     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11037          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h.  */
11040
11041 int
11042 main ()
11043 {
11044
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11051   lt_cv_shlibpath_overrides_runpath=yes
11052 fi
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056     LDFLAGS=$save_LDFLAGS
11057     libdir=$save_libdir
11058
11059 fi
11060
11061   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11062
11063   # This implies no fast_install, which is unacceptable.
11064   # Some rework will be needed to allow for fast_install
11065   # before this can be enabled.
11066   hardcode_into_libs=yes
11067
11068   # Append ld.so.conf contents to the search path
11069   if test -f /etc/ld.so.conf; then
11070     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' ' '`
11071     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11072   fi
11073
11074   # We used to test for /lib/ld.so.1 and disable shared libraries on
11075   # powerpc, because MkLinux only supported shared libraries with the
11076   # GNU dynamic linker.  Since this was broken with cross compilers,
11077   # most powerpc-linux boxes support dynamic linking these days and
11078   # people can always --disable-shared, the test was removed, and we
11079   # assume the GNU/Linux dynamic linker is in use.
11080   dynamic_linker='GNU/Linux ld.so'
11081   ;;
11082
11083 netbsd*)
11084   version_type=sunos
11085   need_lib_prefix=no
11086   need_version=no
11087   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090     dynamic_linker='NetBSD (a.out) ld.so'
11091   else
11092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11093     soname_spec='${libname}${release}${shared_ext}$major'
11094     dynamic_linker='NetBSD ld.elf_so'
11095   fi
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   hardcode_into_libs=yes
11099   ;;
11100
11101 newsos6)
11102   version_type=linux # correct to gnu/linux during the next big refactor
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=yes
11106   ;;
11107
11108 *nto* | *qnx*)
11109   version_type=qnx
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113   soname_spec='${libname}${release}${shared_ext}$major'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   shlibpath_overrides_runpath=no
11116   hardcode_into_libs=yes
11117   dynamic_linker='ldqnx.so'
11118   ;;
11119
11120 openbsd*)
11121   version_type=sunos
11122   sys_lib_dlsearch_path_spec="/usr/lib"
11123   need_lib_prefix=no
11124   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11125   case $host_os in
11126     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11127     *)                          need_version=no  ;;
11128   esac
11129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131   shlibpath_var=LD_LIBRARY_PATH
11132   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11133     case $host_os in
11134       openbsd2.[89] | openbsd2.[89].*)
11135         shlibpath_overrides_runpath=no
11136         ;;
11137       *)
11138         shlibpath_overrides_runpath=yes
11139         ;;
11140       esac
11141   else
11142     shlibpath_overrides_runpath=yes
11143   fi
11144   ;;
11145
11146 os2*)
11147   libname_spec='$name'
11148   shrext_cmds=".dll"
11149   need_lib_prefix=no
11150   library_names_spec='$libname${shared_ext} $libname.a'
11151   dynamic_linker='OS/2 ld.exe'
11152   shlibpath_var=LIBPATH
11153   ;;
11154
11155 osf3* | osf4* | osf5*)
11156   version_type=osf
11157   need_lib_prefix=no
11158   need_version=no
11159   soname_spec='${libname}${release}${shared_ext}$major'
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11163   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11164   ;;
11165
11166 rdos*)
11167   dynamic_linker=no
11168   ;;
11169
11170 solaris*)
11171   version_type=linux # correct to gnu/linux during the next big refactor
11172   need_lib_prefix=no
11173   need_version=no
11174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175   soname_spec='${libname}${release}${shared_ext}$major'
11176   shlibpath_var=LD_LIBRARY_PATH
11177   shlibpath_overrides_runpath=yes
11178   hardcode_into_libs=yes
11179   # ldd complains unless libraries are executable
11180   postinstall_cmds='chmod +x $lib'
11181   ;;
11182
11183 sunos4*)
11184   version_type=sunos
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11186   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11187   shlibpath_var=LD_LIBRARY_PATH
11188   shlibpath_overrides_runpath=yes
11189   if test "$with_gnu_ld" = yes; then
11190     need_lib_prefix=no
11191   fi
11192   need_version=yes
11193   ;;
11194
11195 sysv4 | sysv4.3*)
11196   version_type=linux # correct to gnu/linux during the next big refactor
11197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198   soname_spec='${libname}${release}${shared_ext}$major'
11199   shlibpath_var=LD_LIBRARY_PATH
11200   case $host_vendor in
11201     sni)
11202       shlibpath_overrides_runpath=no
11203       need_lib_prefix=no
11204       runpath_var=LD_RUN_PATH
11205       ;;
11206     siemens)
11207       need_lib_prefix=no
11208       ;;
11209     motorola)
11210       need_lib_prefix=no
11211       need_version=no
11212       shlibpath_overrides_runpath=no
11213       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11214       ;;
11215   esac
11216   ;;
11217
11218 sysv4*MP*)
11219   if test -d /usr/nec ;then
11220     version_type=linux # correct to gnu/linux during the next big refactor
11221     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11222     soname_spec='$libname${shared_ext}.$major'
11223     shlibpath_var=LD_LIBRARY_PATH
11224   fi
11225   ;;
11226
11227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11228   version_type=freebsd-elf
11229   need_lib_prefix=no
11230   need_version=no
11231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11232   soname_spec='${libname}${release}${shared_ext}$major'
11233   shlibpath_var=LD_LIBRARY_PATH
11234   shlibpath_overrides_runpath=yes
11235   hardcode_into_libs=yes
11236   if test "$with_gnu_ld" = yes; then
11237     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11238   else
11239     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11240     case $host_os in
11241       sco3.2v5*)
11242         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11243         ;;
11244     esac
11245   fi
11246   sys_lib_dlsearch_path_spec='/usr/lib'
11247   ;;
11248
11249 tpf*)
11250   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11251   version_type=linux # correct to gnu/linux during the next big refactor
11252   need_lib_prefix=no
11253   need_version=no
11254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255   shlibpath_var=LD_LIBRARY_PATH
11256   shlibpath_overrides_runpath=no
11257   hardcode_into_libs=yes
11258   ;;
11259
11260 uts4*)
11261   version_type=linux # correct to gnu/linux during the next big refactor
11262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263   soname_spec='${libname}${release}${shared_ext}$major'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   ;;
11266
11267 *)
11268   dynamic_linker=no
11269   ;;
11270 esac
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11272 $as_echo "$dynamic_linker" >&6; }
11273 test "$dynamic_linker" = no && can_build_shared=no
11274
11275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11276 if test "$GCC" = yes; then
11277   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11278 fi
11279
11280 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11281   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11282 fi
11283 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11284   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11285 fi
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11379 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11380 hardcode_action=
11381 if test -n "$hardcode_libdir_flag_spec" ||
11382    test -n "$runpath_var" ||
11383    test "X$hardcode_automatic" = "Xyes" ; then
11384
11385   # We can hardcode non-existent directories.
11386   if test "$hardcode_direct" != no &&
11387      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11388      # have to relink, otherwise we might link with an installed library
11389      # when we should be linking with a yet-to-be-installed one
11390      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11391      test "$hardcode_minus_L" != no; then
11392     # Linking always hardcodes the temporary library directory.
11393     hardcode_action=relink
11394   else
11395     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11396     hardcode_action=immediate
11397   fi
11398 else
11399   # We cannot hardcode anything, or else we can only hardcode existing
11400   # directories.
11401   hardcode_action=unsupported
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11404 $as_echo "$hardcode_action" >&6; }
11405
11406 if test "$hardcode_action" = relink ||
11407    test "$inherit_rpath" = yes; then
11408   # Fast installation is not supported
11409   enable_fast_install=no
11410 elif test "$shlibpath_overrides_runpath" = yes ||
11411      test "$enable_shared" = no; then
11412   # Fast installation is not necessary
11413   enable_fast_install=needless
11414 fi
11415
11416
11417
11418
11419
11420
11421   if test "x$enable_dlopen" != xyes; then
11422   enable_dlopen=unknown
11423   enable_dlopen_self=unknown
11424   enable_dlopen_self_static=unknown
11425 else
11426   lt_cv_dlopen=no
11427   lt_cv_dlopen_libs=
11428
11429   case $host_os in
11430   beos*)
11431     lt_cv_dlopen="load_add_on"
11432     lt_cv_dlopen_libs=
11433     lt_cv_dlopen_self=yes
11434     ;;
11435
11436   mingw* | pw32* | cegcc*)
11437     lt_cv_dlopen="LoadLibrary"
11438     lt_cv_dlopen_libs=
11439     ;;
11440
11441   cygwin*)
11442     lt_cv_dlopen="dlopen"
11443     lt_cv_dlopen_libs=
11444     ;;
11445
11446   darwin*)
11447   # if libdl is installed we need to link against it
11448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11449 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11450 if ${ac_cv_lib_dl_dlopen+:} false; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453   ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-ldl  $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h.  */
11457
11458 /* Override any GCC internal prototype to avoid an error.
11459    Use char because int might match the return type of a GCC
11460    builtin and then its argument prototype would still apply.  */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char dlopen ();
11465 int
11466 main ()
11467 {
11468 return dlopen ();
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474   ac_cv_lib_dl_dlopen=yes
11475 else
11476   ac_cv_lib_dl_dlopen=no
11477 fi
11478 rm -f core conftest.err conftest.$ac_objext \
11479     conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11483 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11484 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11485   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11486 else
11487
11488     lt_cv_dlopen="dyld"
11489     lt_cv_dlopen_libs=
11490     lt_cv_dlopen_self=yes
11491
11492 fi
11493
11494     ;;
11495
11496   *)
11497     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11498 if test "x$ac_cv_func_shl_load" = xyes; then :
11499   lt_cv_dlopen="shl_load"
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11502 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11503 if ${ac_cv_lib_dld_shl_load+:} false; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldld  $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h.  */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512    Use char because int might match the return type of a GCC
11513    builtin and then its argument prototype would still apply.  */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char shl_load ();
11518 int
11519 main ()
11520 {
11521 return shl_load ();
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527   ac_cv_lib_dld_shl_load=yes
11528 else
11529   ac_cv_lib_dld_shl_load=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532     conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11536 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11537 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11538   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11539 else
11540   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11541 if test "x$ac_cv_func_dlopen" = xyes; then :
11542   lt_cv_dlopen="dlopen"
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11545 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11546 if ${ac_cv_lib_dl_dlopen+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldl  $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h.  */
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555    Use char because int might match the return type of a GCC
11556    builtin and then its argument prototype would still apply.  */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char dlopen ();
11561 int
11562 main ()
11563 {
11564 return dlopen ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570   ac_cv_lib_dl_dlopen=yes
11571 else
11572   ac_cv_lib_dl_dlopen=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575     conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11579 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11580 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11584 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11585 if ${ac_cv_lib_svld_dlopen+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lsvld  $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h.  */
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594    Use char because int might match the return type of a GCC
11595    builtin and then its argument prototype would still apply.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char dlopen ();
11600 int
11601 main ()
11602 {
11603 return dlopen ();
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609   ac_cv_lib_svld_dlopen=yes
11610 else
11611   ac_cv_lib_svld_dlopen=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614     conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11618 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11619 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11623 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11624 if ${ac_cv_lib_dld_dld_link+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-ldld  $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 dld_link ();
11639 int
11640 main ()
11641 {
11642 return dld_link ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648   ac_cv_lib_dld_dld_link=yes
11649 else
11650   ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
11657 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11658 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11659   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11660 fi
11661
11662
11663 fi
11664
11665
11666 fi
11667
11668
11669 fi
11670
11671
11672 fi
11673
11674
11675 fi
11676
11677     ;;
11678   esac
11679
11680   if test "x$lt_cv_dlopen" != xno; then
11681     enable_dlopen=yes
11682   else
11683     enable_dlopen=no
11684   fi
11685
11686   case $lt_cv_dlopen in
11687   dlopen)
11688     save_CPPFLAGS="$CPPFLAGS"
11689     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11690
11691     save_LDFLAGS="$LDFLAGS"
11692     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11693
11694     save_LIBS="$LIBS"
11695     LIBS="$lt_cv_dlopen_libs $LIBS"
11696
11697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11698 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11699 if ${lt_cv_dlopen_self+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702           if test "$cross_compiling" = yes; then :
11703   lt_cv_dlopen_self=cross
11704 else
11705   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11706   lt_status=$lt_dlunknown
11707   cat > conftest.$ac_ext <<_LT_EOF
11708 #line $LINENO "configure"
11709 #include "confdefs.h"
11710
11711 #if HAVE_DLFCN_H
11712 #include <dlfcn.h>
11713 #endif
11714
11715 #include <stdio.h>
11716
11717 #ifdef RTLD_GLOBAL
11718 #  define LT_DLGLOBAL           RTLD_GLOBAL
11719 #else
11720 #  ifdef DL_GLOBAL
11721 #    define LT_DLGLOBAL         DL_GLOBAL
11722 #  else
11723 #    define LT_DLGLOBAL         0
11724 #  endif
11725 #endif
11726
11727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11728    find out it does not work in some platform. */
11729 #ifndef LT_DLLAZY_OR_NOW
11730 #  ifdef RTLD_LAZY
11731 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11732 #  else
11733 #    ifdef DL_LAZY
11734 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11735 #    else
11736 #      ifdef RTLD_NOW
11737 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11738 #      else
11739 #        ifdef DL_NOW
11740 #          define LT_DLLAZY_OR_NOW      DL_NOW
11741 #        else
11742 #          define LT_DLLAZY_OR_NOW      0
11743 #        endif
11744 #      endif
11745 #    endif
11746 #  endif
11747 #endif
11748
11749 /* When -fvisbility=hidden is used, assume the code has been annotated
11750    correspondingly for the symbols needed.  */
11751 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11752 int fnord () __attribute__((visibility("default")));
11753 #endif
11754
11755 int fnord () { return 42; }
11756 int main ()
11757 {
11758   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11759   int status = $lt_dlunknown;
11760
11761   if (self)
11762     {
11763       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11764       else
11765         {
11766           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11767           else puts (dlerror ());
11768         }
11769       /* dlclose (self); */
11770     }
11771   else
11772     puts (dlerror ());
11773
11774   return status;
11775 }
11776 _LT_EOF
11777   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11778   (eval $ac_link) 2>&5
11779   ac_status=$?
11780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11782     (./conftest; exit; ) >&5 2>/dev/null
11783     lt_status=$?
11784     case x$lt_status in
11785       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11786       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11787       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11788     esac
11789   else :
11790     # compilation failed
11791     lt_cv_dlopen_self=no
11792   fi
11793 fi
11794 rm -fr conftest*
11795
11796
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11799 $as_echo "$lt_cv_dlopen_self" >&6; }
11800
11801     if test "x$lt_cv_dlopen_self" = xyes; then
11802       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11804 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11805 if ${lt_cv_dlopen_self_static+:} false; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808           if test "$cross_compiling" = yes; then :
11809   lt_cv_dlopen_self_static=cross
11810 else
11811   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11812   lt_status=$lt_dlunknown
11813   cat > conftest.$ac_ext <<_LT_EOF
11814 #line $LINENO "configure"
11815 #include "confdefs.h"
11816
11817 #if HAVE_DLFCN_H
11818 #include <dlfcn.h>
11819 #endif
11820
11821 #include <stdio.h>
11822
11823 #ifdef RTLD_GLOBAL
11824 #  define LT_DLGLOBAL           RTLD_GLOBAL
11825 #else
11826 #  ifdef DL_GLOBAL
11827 #    define LT_DLGLOBAL         DL_GLOBAL
11828 #  else
11829 #    define LT_DLGLOBAL         0
11830 #  endif
11831 #endif
11832
11833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11834    find out it does not work in some platform. */
11835 #ifndef LT_DLLAZY_OR_NOW
11836 #  ifdef RTLD_LAZY
11837 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11838 #  else
11839 #    ifdef DL_LAZY
11840 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11841 #    else
11842 #      ifdef RTLD_NOW
11843 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11844 #      else
11845 #        ifdef DL_NOW
11846 #          define LT_DLLAZY_OR_NOW      DL_NOW
11847 #        else
11848 #          define LT_DLLAZY_OR_NOW      0
11849 #        endif
11850 #      endif
11851 #    endif
11852 #  endif
11853 #endif
11854
11855 /* When -fvisbility=hidden is used, assume the code has been annotated
11856    correspondingly for the symbols needed.  */
11857 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11858 int fnord () __attribute__((visibility("default")));
11859 #endif
11860
11861 int fnord () { return 42; }
11862 int main ()
11863 {
11864   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11865   int status = $lt_dlunknown;
11866
11867   if (self)
11868     {
11869       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11870       else
11871         {
11872           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11873           else puts (dlerror ());
11874         }
11875       /* dlclose (self); */
11876     }
11877   else
11878     puts (dlerror ());
11879
11880   return status;
11881 }
11882 _LT_EOF
11883   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11884   (eval $ac_link) 2>&5
11885   ac_status=$?
11886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11888     (./conftest; exit; ) >&5 2>/dev/null
11889     lt_status=$?
11890     case x$lt_status in
11891       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11892       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11893       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11894     esac
11895   else :
11896     # compilation failed
11897     lt_cv_dlopen_self_static=no
11898   fi
11899 fi
11900 rm -fr conftest*
11901
11902
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11905 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11906     fi
11907
11908     CPPFLAGS="$save_CPPFLAGS"
11909     LDFLAGS="$save_LDFLAGS"
11910     LIBS="$save_LIBS"
11911     ;;
11912   esac
11913
11914   case $lt_cv_dlopen_self in
11915   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11916   *) enable_dlopen_self=unknown ;;
11917   esac
11918
11919   case $lt_cv_dlopen_self_static in
11920   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11921   *) enable_dlopen_self_static=unknown ;;
11922   esac
11923 fi
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 striplib=
11942 old_striplib=
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11944 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11945 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11946   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11947   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11949 $as_echo "yes" >&6; }
11950 else
11951 # FIXME - insert some real tests, host_os isn't really good enough
11952   case $host_os in
11953   darwin*)
11954     if test -n "$STRIP" ; then
11955       striplib="$STRIP -x"
11956       old_striplib="$STRIP -S"
11957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11959     else
11960       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11962     fi
11963     ;;
11964   *)
11965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11967     ;;
11968   esac
11969 fi
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982   # Report which library types will actually be built
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11984 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11986 $as_echo "$can_build_shared" >&6; }
11987
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11989 $as_echo_n "checking whether to build shared libraries... " >&6; }
11990   test "$can_build_shared" = "no" && enable_shared=no
11991
11992   # On AIX, shared libraries and static libraries use the same namespace, and
11993   # are all built from PIC.
11994   case $host_os in
11995   aix3*)
11996     test "$enable_shared" = yes && enable_static=no
11997     if test -n "$RANLIB"; then
11998       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11999       postinstall_cmds='$RANLIB $lib'
12000     fi
12001     ;;
12002
12003   aix[4-9]*)
12004     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12005       test "$enable_shared" = yes && enable_static=no
12006     fi
12007     ;;
12008   esac
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12010 $as_echo "$enable_shared" >&6; }
12011
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12013 $as_echo_n "checking whether to build static libraries... " >&6; }
12014   # Make sure either enable_shared or enable_static is yes.
12015   test "$enable_shared" = yes || enable_static=yes
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12017 $as_echo "$enable_static" >&6; }
12018
12019
12020
12021
12022 fi
12023 ac_ext=c
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12028
12029 CC="$lt_save_CC"
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045         ac_config_commands="$ac_config_commands libtool"
12046
12047
12048
12049
12050 # Only expand once:
12051
12052
12053
12054 # On Solaris 10 and 12 CPP gets set to cc -E, however this still
12055 # does some input parsing.  We need strict ANSI-C style tokenization,
12056 # check this:
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
12059 $as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h.  */
12062 1.5.0 16BIT
12063 _ACEOF
12064 if ac_fn_c_try_cpp "$LINENO"; then :
12065   DFNCPP="$CPP"
12066 else
12067   DFNCPP=""
12068    sav_CPP="$CPP"
12069    for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"; do
12070       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072 1.5.0 16BIT
12073 _ACEOF
12074 if ac_fn_c_try_cpp "$LINENO"; then :
12075   DFNCPP="$CPP"
12076          break
12077 fi
12078 rm -f conftest.err conftest.i conftest.$ac_ext
12079    done
12080    CPP="$sav_CPP"
12081 fi
12082 rm -f conftest.err conftest.i conftest.$ac_ext
12083 if test -n "$DFNCPP"; then
12084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
12085 $as_echo "$DFNCPP" >&6; }
12086
12087 else
12088    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12090 as_fn_error 1 "not found
12091 See \`config.log' for more details" "$LINENO" 5; }
12092 fi
12093
12094 # Checks for header files.
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12096 $as_echo_n "checking for ANSI C header files... " >&6; }
12097 if ${ac_cv_header_stdc+:} false; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h.  */
12102 #include <stdlib.h>
12103 #include <stdarg.h>
12104 #include <string.h>
12105 #include <float.h>
12106
12107 int
12108 main ()
12109 {
12110
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_compile "$LINENO"; then :
12116   ac_cv_header_stdc=yes
12117 else
12118   ac_cv_header_stdc=no
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121
12122 if test $ac_cv_header_stdc = yes; then
12123   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h.  */
12126 #include <string.h>
12127
12128 _ACEOF
12129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12130   $EGREP "memchr" >/dev/null 2>&1; then :
12131
12132 else
12133   ac_cv_header_stdc=no
12134 fi
12135 rm -f conftest*
12136
12137 fi
12138
12139 if test $ac_cv_header_stdc = yes; then
12140   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h.  */
12143 #include <stdlib.h>
12144
12145 _ACEOF
12146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12147   $EGREP "free" >/dev/null 2>&1; then :
12148
12149 else
12150   ac_cv_header_stdc=no
12151 fi
12152 rm -f conftest*
12153
12154 fi
12155
12156 if test $ac_cv_header_stdc = yes; then
12157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12158   if test "$cross_compiling" = yes; then :
12159   :
12160 else
12161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163 #include <ctype.h>
12164 #include <stdlib.h>
12165 #if ((' ' & 0x0FF) == 0x020)
12166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12168 #else
12169 # define ISLOWER(c) \
12170                    (('a' <= (c) && (c) <= 'i') \
12171                      || ('j' <= (c) && (c) <= 'r') \
12172                      || ('s' <= (c) && (c) <= 'z'))
12173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12174 #endif
12175
12176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12177 int
12178 main ()
12179 {
12180   int i;
12181   for (i = 0; i < 256; i++)
12182     if (XOR (islower (i), ISLOWER (i))
12183         || toupper (i) != TOUPPER (i))
12184       return 2;
12185   return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_run "$LINENO"; then :
12189
12190 else
12191   ac_cv_header_stdc=no
12192 fi
12193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12194   conftest.$ac_objext conftest.beam conftest.$ac_ext
12195 fi
12196
12197 fi
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12200 $as_echo "$ac_cv_header_stdc" >&6; }
12201 if test $ac_cv_header_stdc = yes; then
12202
12203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12204
12205 fi
12206
12207 for ac_header in malloc.h stdlib.h string.h strings.h
12208 do :
12209   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12210 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12212   cat >>confdefs.h <<_ACEOF
12213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12214 _ACEOF
12215
12216 fi
12217
12218 done
12219
12220
12221 # Checks for typedefs, structures, and compiler characteristics.
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12223 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12224 if ${ac_cv_c_const+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h.  */
12229
12230 int
12231 main ()
12232 {
12233
12234 #ifndef __cplusplus
12235   /* Ultrix mips cc rejects this sort of thing.  */
12236   typedef int charset[2];
12237   const charset cs = { 0, 0 };
12238   /* SunOS 4.1.1 cc rejects this.  */
12239   char const *const *pcpcc;
12240   char **ppc;
12241   /* NEC SVR4.0.2 mips cc rejects this.  */
12242   struct point {int x, y;};
12243   static struct point const zero = {0,0};
12244   /* AIX XL C 1.02.0.0 rejects this.
12245      It does not let you subtract one const X* pointer from another in
12246      an arm of an if-expression whose if-part is not a constant
12247      expression */
12248   const char *g = "string";
12249   pcpcc = &g + (g ? g-g : 0);
12250   /* HPUX 7.0 cc rejects these. */
12251   ++pcpcc;
12252   ppc = (char**) pcpcc;
12253   pcpcc = (char const *const *) ppc;
12254   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12255     char tx;
12256     char *t = &tx;
12257     char const *s = 0 ? (char *) 0 : (char const *) 0;
12258
12259     *t++ = 0;
12260     if (s) return 0;
12261   }
12262   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12263     int x[] = {25, 17};
12264     const int *foo = &x[0];
12265     ++foo;
12266   }
12267   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12268     typedef const int *iptr;
12269     iptr p = 0;
12270     ++p;
12271   }
12272   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12273        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12274     struct s { int j; const int *ap[3]; } bx;
12275     struct s *b = &bx; b->j = 5;
12276   }
12277   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12278     const int foo = 10;
12279     if (!foo) return 0;
12280   }
12281   return !cs[0] && !zero.x;
12282 #endif
12283
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_c_try_compile "$LINENO"; then :
12289   ac_cv_c_const=yes
12290 else
12291   ac_cv_c_const=no
12292 fi
12293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12296 $as_echo "$ac_cv_c_const" >&6; }
12297 if test $ac_cv_c_const = no; then
12298
12299 $as_echo "#define const /**/" >>confdefs.h
12300
12301 fi
12302
12303 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12304 if test "x$ac_cv_type_size_t" = xyes; then :
12305
12306 else
12307
12308 cat >>confdefs.h <<_ACEOF
12309 #define size_t unsigned int
12310 _ACEOF
12311
12312 fi
12313
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12315 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12316 if ${ac_cv_struct_tm+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h.  */
12321 #include <sys/types.h>
12322 #include <time.h>
12323
12324 int
12325 main ()
12326 {
12327 struct tm tm;
12328                                      int *p = &tm.tm_sec;
12329                                      return !p;
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_compile "$LINENO"; then :
12335   ac_cv_struct_tm=time.h
12336 else
12337   ac_cv_struct_tm=sys/time.h
12338 fi
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12342 $as_echo "$ac_cv_struct_tm" >&6; }
12343 if test $ac_cv_struct_tm = sys/time.h; then
12344
12345 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12346
12347 fi
12348
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12350 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12351 if ${ac_cv_c_restrict+:} false; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   ac_cv_c_restrict=no
12355    # The order here caters to the fact that C++ does not require restrict.
12356    for ac_kw in __restrict __restrict__ _Restrict restrict; do
12357      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359 typedef int * int_ptr;
12360         int foo (int_ptr $ac_kw ip) {
12361         return ip[0];
12362        }
12363 int
12364 main ()
12365 {
12366 int s[1];
12367         int * $ac_kw t = s;
12368         t[0] = 0;
12369         return foo(t)
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 if ac_fn_c_try_compile "$LINENO"; then :
12375   ac_cv_c_restrict=$ac_kw
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378      test "$ac_cv_c_restrict" != no && break
12379    done
12380
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12383 $as_echo "$ac_cv_c_restrict" >&6; }
12384
12385  case $ac_cv_c_restrict in
12386    restrict) ;;
12387    no) $as_echo "#define restrict /**/" >>confdefs.h
12388  ;;
12389    *)  cat >>confdefs.h <<_ACEOF
12390 #define restrict $ac_cv_c_restrict
12391 _ACEOF
12392  ;;
12393  esac
12394
12395
12396 # Checks for library functions.
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12398 $as_echo_n "checking for working strtod... " >&6; }
12399 if ${ac_cv_func_strtod+:} false; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402   if test "$cross_compiling" = yes; then :
12403   ac_cv_func_strtod=no
12404 else
12405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h.  */
12407
12408 $ac_includes_default
12409 #ifndef strtod
12410 double strtod ();
12411 #endif
12412 int
12413 main()
12414 {
12415   {
12416     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12417     char *string = " +69";
12418     char *term;
12419     double value;
12420     value = strtod (string, &term);
12421     if (value != 69 || term != (string + 4))
12422       return 1;
12423   }
12424
12425   {
12426     /* Under Solaris 2.4, strtod returns the wrong value for the
12427        terminating character under some conditions.  */
12428     char *string = "NaN";
12429     char *term;
12430     strtod (string, &term);
12431     if (term != string && *(term - 1) == 0)
12432       return 1;
12433   }
12434   return 0;
12435 }
12436
12437 _ACEOF
12438 if ac_fn_c_try_run "$LINENO"; then :
12439   ac_cv_func_strtod=yes
12440 else
12441   ac_cv_func_strtod=no
12442 fi
12443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12444   conftest.$ac_objext conftest.beam conftest.$ac_ext
12445 fi
12446
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12449 $as_echo "$ac_cv_func_strtod" >&6; }
12450 if test $ac_cv_func_strtod = no; then
12451   case " $LIBOBJS " in
12452   *" strtod.$ac_objext "* ) ;;
12453   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12454  ;;
12455 esac
12456
12457 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12458 if test "x$ac_cv_func_pow" = xyes; then :
12459
12460 fi
12461
12462 if test $ac_cv_func_pow = no; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12464 $as_echo_n "checking for pow in -lm... " >&6; }
12465 if ${ac_cv_lib_m_pow+:} false; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468   ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lm  $LIBS"
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h.  */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474    Use char because int might match the return type of a GCC
12475    builtin and then its argument prototype would still apply.  */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char pow ();
12480 int
12481 main ()
12482 {
12483 return pow ();
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 if ac_fn_c_try_link "$LINENO"; then :
12489   ac_cv_lib_m_pow=yes
12490 else
12491   ac_cv_lib_m_pow=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494     conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12498 $as_echo "$ac_cv_lib_m_pow" >&6; }
12499 if test "x$ac_cv_lib_m_pow" = xyes; then :
12500   POW_LIB=-lm
12501 else
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12503 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12504 fi
12505
12506 fi
12507
12508 fi
12509
12510 for ac_func in memset
12511 do :
12512   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12513 if test "x$ac_cv_func_memset" = xyes; then :
12514   cat >>confdefs.h <<_ACEOF
12515 #define HAVE_MEMSET 1
12516 _ACEOF
12517
12518 else
12519   as_fn_error $? "memset not found in libc" "$LINENO" 5
12520 fi
12521 done
12522
12523 for ac_func in pow
12524 do :
12525   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12526 if test "x$ac_cv_func_pow" = xyes; then :
12527   cat >>confdefs.h <<_ACEOF
12528 #define HAVE_POW 1
12529 _ACEOF
12530
12531 else
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12533 $as_echo_n "checking for pow in -lm... " >&6; }
12534 if ${ac_cv_lib_m_pow+:} false; then :
12535   $as_echo_n "(cached) " >&6
12536 else
12537   ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-lm  $LIBS"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543    Use char because int might match the return type of a GCC
12544    builtin and then its argument prototype would still apply.  */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char pow ();
12549 int
12550 main ()
12551 {
12552 return pow ();
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558   ac_cv_lib_m_pow=yes
12559 else
12560   ac_cv_lib_m_pow=no
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext \
12563     conftest$ac_exeext conftest.$ac_ext
12564 LIBS=$ac_check_lib_save_LIBS
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12567 $as_echo "$ac_cv_lib_m_pow" >&6; }
12568 if test "x$ac_cv_lib_m_pow" = xyes; then :
12569   cat >>confdefs.h <<_ACEOF
12570 #define HAVE_LIBM 1
12571 _ACEOF
12572
12573   LIBS="-lm $LIBS"
12574
12575 else
12576   as_fn_error $? "cannot find pow" "$LINENO" 5
12577 fi
12578
12579 fi
12580 done
12581
12582
12583 # Check whether --with-zlib-prefix was given.
12584 if test "${with_zlib_prefix+set}" = set; then :
12585   withval=$with_zlib_prefix; ZPREFIX=${withval}
12586 else
12587   ZPREFIX='z_'
12588 fi
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12591 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12592 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-lz  $LIBS"
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h.  */
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601    Use char because int might match the return type of a GCC
12602    builtin and then its argument prototype would still apply.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char zlibVersion ();
12607 int
12608 main ()
12609 {
12610 return zlibVersion ();
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 if ac_fn_c_try_link "$LINENO"; then :
12616   ac_cv_lib_z_zlibVersion=yes
12617 else
12618   ac_cv_lib_z_zlibVersion=no
12619 fi
12620 rm -f core conftest.err conftest.$ac_objext \
12621     conftest$ac_exeext conftest.$ac_ext
12622 LIBS=$ac_check_lib_save_LIBS
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12625 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12626 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12627   cat >>confdefs.h <<_ACEOF
12628 #define HAVE_LIBZ 1
12629 _ACEOF
12630
12631   LIBS="-lz $LIBS"
12632
12633 else
12634   as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12636 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12637 if eval \${$as_ac_Lib+:} false; then :
12638   $as_echo_n "(cached) " >&6
12639 else
12640   ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-lz  $LIBS"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h.  */
12644
12645 /* Override any GCC internal prototype to avoid an error.
12646    Use char because int might match the return type of a GCC
12647    builtin and then its argument prototype would still apply.  */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char ${ZPREFIX}zlibVersion ();
12652 int
12653 main ()
12654 {
12655 return ${ZPREFIX}zlibVersion ();
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661   eval "$as_ac_Lib=yes"
12662 else
12663   eval "$as_ac_Lib=no"
12664 fi
12665 rm -f core conftest.err conftest.$ac_objext \
12666     conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12668 fi
12669 eval ac_res=\$$as_ac_Lib
12670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12671 $as_echo "$ac_res" >&6; }
12672 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12673   cat >>confdefs.h <<_ACEOF
12674 #define HAVE_LIBZ 1
12675 _ACEOF
12676
12677   LIBS="-lz $LIBS"
12678
12679 else
12680   as_fn_error $? "zlib not installed" "$LINENO" 5
12681 fi
12682
12683 fi
12684
12685
12686 # The following is for pngvalid, to ensure it catches FP errors even on
12687 # platforms that don't enable FP exceptions, the function appears in the math
12688 # library (typically), it's not an error if it is not found.
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12690 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12691 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12692   $as_echo_n "(cached) " >&6
12693 else
12694   ac_check_lib_save_LIBS=$LIBS
12695 LIBS="-lm  $LIBS"
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h.  */
12698
12699 /* Override any GCC internal prototype to avoid an error.
12700    Use char because int might match the return type of a GCC
12701    builtin and then its argument prototype would still apply.  */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char feenableexcept ();
12706 int
12707 main ()
12708 {
12709 return feenableexcept ();
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715   ac_cv_lib_m_feenableexcept=yes
12716 else
12717   ac_cv_lib_m_feenableexcept=no
12718 fi
12719 rm -f core conftest.err conftest.$ac_objext \
12720     conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12722 fi
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12724 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12725 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12726   cat >>confdefs.h <<_ACEOF
12727 #define HAVE_LIBM 1
12728 _ACEOF
12729
12730   LIBS="-lm $LIBS"
12731
12732 fi
12733
12734 for ac_func in feenableexcept
12735 do :
12736   ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12737 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12738   cat >>confdefs.h <<_ACEOF
12739 #define HAVE_FEENABLEEXCEPT 1
12740 _ACEOF
12741
12742 fi
12743 done
12744
12745
12746 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12747 LIBPNG_DEFINES=$LIBPNG_DEFINES
12748
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12751 $as_echo_n "checking if using Solaris linker... " >&6; }
12752 SLD=`$LD --version 2>&1 | grep Solaris`
12753 if test "$SLD"; then
12754     have_solaris_ld=yes
12755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756 $as_echo "yes" >&6; }
12757 else
12758     have_solaris_ld=no
12759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 fi
12762  if test "$have_solaris_ld" = "yes"; then
12763   HAVE_SOLARIS_LD_TRUE=
12764   HAVE_SOLARIS_LD_FALSE='#'
12765 else
12766   HAVE_SOLARIS_LD_TRUE='#'
12767   HAVE_SOLARIS_LD_FALSE=
12768 fi
12769
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12772 $as_echo_n "checking if libraries can be versioned... " >&6; }
12773 # Special case for PE/COFF platforms: ld reports
12774 # support for version-script, but doesn't actually
12775 # DO anything with it.
12776 case $host in
12777 *cygwin* | *mingw32* | *interix* )
12778     have_ld_version_script=no
12779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12781 ;;
12782 * )
12783
12784 if test "$have_solaris_ld" = "yes"; then
12785     GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12786 else
12787     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12788 fi
12789
12790 if test "$GLD"; then
12791     have_ld_version_script=yes
12792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794 else
12795     have_ld_version_script=no
12796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12799 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12800 fi
12801 ;;
12802 esac
12803
12804  if test "$have_ld_version_script" = "yes"; then
12805   HAVE_LD_VERSION_SCRIPT_TRUE=
12806   HAVE_LD_VERSION_SCRIPT_FALSE='#'
12807 else
12808   HAVE_LD_VERSION_SCRIPT_TRUE='#'
12809   HAVE_LD_VERSION_SCRIPT_FALSE=
12810 fi
12811
12812
12813 if test "$have_ld_version_script" = "yes"; then
12814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12815 $as_echo_n "checking for symbol prefix... " >&6; }
12816     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12817                   | ${CPP-${CC-gcc} -E} - 2>&1 \
12818                   | ${EGREP-grep} "^PREFIX=" \
12819                   | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
12820
12821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12822 $as_echo "$SYMBOL_PREFIX" >&6; }
12823 fi
12824
12825 # Substitutions for .in files
12826
12827
12828
12829
12830
12831 # Additional arguments (and substitutions)
12832 # Allow the pkg-config directory to be set
12833
12834 # Check whether --with-pkgconfigdir was given.
12835 if test "${with_pkgconfigdir+set}" = set; then :
12836   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12837 else
12838   pkgconfigdir='${libdir}/pkgconfig'
12839 fi
12840
12841
12842
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12844 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12845
12846 # Make the *-config binary config scripts optional
12847
12848 # Check whether --with-binconfigs was given.
12849 if test "${with_binconfigs+set}" = set; then :
12850   withval=$with_binconfigs; if test "${withval}" = no; then
12851                 binconfigs=
12852                 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12853 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12854         else
12855                 binconfigs='${binconfigs}'
12856         fi
12857 else
12858   binconfigs='${binconfigs}'
12859 fi
12860
12861
12862
12863 # Because GCC by default assembles code with an executable stack, even though it
12864 # compiles C code with a non-executable stack, it is necessary to do a fixup
12865 # here (this may by GCC specific)
12866 AM_CCASFLAGS=-Wa,--noexecstack
12867
12868
12869 # Check whether --enable-arm-neon was given.
12870 if test "${enable_arm_neon+set}" = set; then :
12871   enableval=$enable_arm_neon; if test "${enableval}" = yes; then
12872
12873 $as_echo "#define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_neon" >>confdefs.h
12874
12875
12876 $as_echo "#define PNG_ALIGNED_MEMORY_SUPPORTED 1" >>confdefs.h
12877
12878         fi
12879 fi
12880
12881  if test "${enable_arm_neon:-no}" = yes; then
12882   PNG_ARM_NEON_TRUE=
12883   PNG_ARM_NEON_FALSE='#'
12884 else
12885   PNG_ARM_NEON_TRUE='#'
12886   PNG_ARM_NEON_FALSE=
12887 fi
12888
12889
12890 # Config files, substituting as above
12891 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12892
12893 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12894
12895
12896 cat >confcache <<\_ACEOF
12897 # This file is a shell script that caches the results of configure
12898 # tests run on this system so they can be shared between configure
12899 # scripts and configure runs, see configure's option --config-cache.
12900 # It is not useful on other systems.  If it contains results you don't
12901 # want to keep, you may remove or edit it.
12902 #
12903 # config.status only pays attention to the cache file if you give it
12904 # the --recheck option to rerun configure.
12905 #
12906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12908 # following values.
12909
12910 _ACEOF
12911
12912 # The following way of writing the cache mishandles newlines in values,
12913 # but we know of no workaround that is simple, portable, and efficient.
12914 # So, we kill variables containing newlines.
12915 # Ultrix sh set writes to stderr and can't be redirected directly,
12916 # and sets the high bit in the cache file unless we assign to the vars.
12917 (
12918   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12919     eval ac_val=\$$ac_var
12920     case $ac_val in #(
12921     *${as_nl}*)
12922       case $ac_var in #(
12923       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12925       esac
12926       case $ac_var in #(
12927       _ | IFS | as_nl) ;; #(
12928       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12929       *) { eval $ac_var=; unset $ac_var;} ;;
12930       esac ;;
12931     esac
12932   done
12933
12934   (set) 2>&1 |
12935     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12936     *${as_nl}ac_space=\ *)
12937       # `set' does not quote correctly, so add quotes: double-quote
12938       # substitution turns \\\\ into \\, and sed turns \\ into \.
12939       sed -n \
12940         "s/'/'\\\\''/g;
12941           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12942       ;; #(
12943     *)
12944       # `set' quotes correctly as required by POSIX, so do not add quotes.
12945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12946       ;;
12947     esac |
12948     sort
12949 ) |
12950   sed '
12951      /^ac_cv_env_/b end
12952      t clear
12953      :clear
12954      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12955      t end
12956      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12957      :end' >>confcache
12958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12959   if test -w "$cache_file"; then
12960     if test "x$cache_file" != "x/dev/null"; then
12961       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12962 $as_echo "$as_me: updating cache $cache_file" >&6;}
12963       if test ! -f "$cache_file" || test -h "$cache_file"; then
12964         cat confcache >"$cache_file"
12965       else
12966         case $cache_file in #(
12967         */* | ?:*)
12968           mv -f confcache "$cache_file"$$ &&
12969           mv -f "$cache_file"$$ "$cache_file" ;; #(
12970         *)
12971           mv -f confcache "$cache_file" ;;
12972         esac
12973       fi
12974     fi
12975   else
12976     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12978   fi
12979 fi
12980 rm -f confcache
12981
12982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12983 # Let make expand exec_prefix.
12984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12985
12986 DEFS=-DHAVE_CONFIG_H
12987
12988 ac_libobjs=
12989 ac_ltlibobjs=
12990 U=
12991 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12992   # 1. Remove the extension, and $U if already installed.
12993   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12994   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12995   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12996   #    will be set to the directory where LIBOBJS objects are built.
12997   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12998   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12999 done
13000 LIBOBJS=$ac_libobjs
13001
13002 LTLIBOBJS=$ac_ltlibobjs
13003
13004
13005  if test -n "$EXEEXT"; then
13006   am__EXEEXT_TRUE=
13007   am__EXEEXT_FALSE='#'
13008 else
13009   am__EXEEXT_TRUE='#'
13010   am__EXEEXT_FALSE=
13011 fi
13012
13013 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13014   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13016 fi
13017 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13018   as_fn_error $? "conditional \"AMDEP\" was never defined.
13019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13020 fi
13021 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13022   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13024 fi
13025 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13026   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13028 fi
13029 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13030   as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13032 fi
13033 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13034   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13036 fi
13037 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13038   as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13040 fi
13041
13042 : "${CONFIG_STATUS=./config.status}"
13043 ac_write_fail=0
13044 ac_clean_files_save=$ac_clean_files
13045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13047 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13048 as_write_fail=0
13049 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13050 #! $SHELL
13051 # Generated by $as_me.
13052 # Run this file to recreate the current configuration.
13053 # Compiler output produced by configure, useful for debugging
13054 # configure, is in config.log if it exists.
13055
13056 debug=false
13057 ac_cs_recheck=false
13058 ac_cs_silent=false
13059
13060 SHELL=\${CONFIG_SHELL-$SHELL}
13061 export SHELL
13062 _ASEOF
13063 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13064 ## -------------------- ##
13065 ## M4sh Initialization. ##
13066 ## -------------------- ##
13067
13068 # Be more Bourne compatible
13069 DUALCASE=1; export DUALCASE # for MKS sh
13070 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13071   emulate sh
13072   NULLCMD=:
13073   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13074   # is contrary to our usage.  Disable this feature.
13075   alias -g '${1+"$@"}'='"$@"'
13076   setopt NO_GLOB_SUBST
13077 else
13078   case `(set -o) 2>/dev/null` in #(
13079   *posix*) :
13080     set -o posix ;; #(
13081   *) :
13082      ;;
13083 esac
13084 fi
13085
13086
13087 as_nl='
13088 '
13089 export as_nl
13090 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13091 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13094 # Prefer a ksh shell builtin over an external printf program on Solaris,
13095 # but without wasting forks for bash or zsh.
13096 if test -z "$BASH_VERSION$ZSH_VERSION" \
13097     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13098   as_echo='print -r --'
13099   as_echo_n='print -rn --'
13100 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13101   as_echo='printf %s\n'
13102   as_echo_n='printf %s'
13103 else
13104   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13105     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13106     as_echo_n='/usr/ucb/echo -n'
13107   else
13108     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13109     as_echo_n_body='eval
13110       arg=$1;
13111       case $arg in #(
13112       *"$as_nl"*)
13113         expr "X$arg" : "X\\(.*\\)$as_nl";
13114         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13115       esac;
13116       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13117     '
13118     export as_echo_n_body
13119     as_echo_n='sh -c $as_echo_n_body as_echo'
13120   fi
13121   export as_echo_body
13122   as_echo='sh -c $as_echo_body as_echo'
13123 fi
13124
13125 # The user is always right.
13126 if test "${PATH_SEPARATOR+set}" != set; then
13127   PATH_SEPARATOR=:
13128   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13129     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13130       PATH_SEPARATOR=';'
13131   }
13132 fi
13133
13134
13135 # IFS
13136 # We need space, tab and new line, in precisely that order.  Quoting is
13137 # there to prevent editors from complaining about space-tab.
13138 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13139 # splitting by setting IFS to empty value.)
13140 IFS=" ""        $as_nl"
13141
13142 # Find who we are.  Look in the path if we contain no directory separator.
13143 as_myself=
13144 case $0 in #((
13145   *[\\/]* ) as_myself=$0 ;;
13146   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149   IFS=$as_save_IFS
13150   test -z "$as_dir" && as_dir=.
13151     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13152   done
13153 IFS=$as_save_IFS
13154
13155      ;;
13156 esac
13157 # We did not find ourselves, most probably we were run as `sh COMMAND'
13158 # in which case we are not to be found in the path.
13159 if test "x$as_myself" = x; then
13160   as_myself=$0
13161 fi
13162 if test ! -f "$as_myself"; then
13163   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13164   exit 1
13165 fi
13166
13167 # Unset variables that we do not need and which cause bugs (e.g. in
13168 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13169 # suppresses any "Segmentation fault" message there.  '((' could
13170 # trigger a bug in pdksh 5.2.14.
13171 for as_var in BASH_ENV ENV MAIL MAILPATH
13172 do eval test x\${$as_var+set} = xset \
13173   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13174 done
13175 PS1='$ '
13176 PS2='> '
13177 PS4='+ '
13178
13179 # NLS nuisances.
13180 LC_ALL=C
13181 export LC_ALL
13182 LANGUAGE=C
13183 export LANGUAGE
13184
13185 # CDPATH.
13186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13187
13188
13189 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13190 # ----------------------------------------
13191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13193 # script with STATUS, using 1 if that was 0.
13194 as_fn_error ()
13195 {
13196   as_status=$1; test $as_status -eq 0 && as_status=1
13197   if test "$4"; then
13198     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13199     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13200   fi
13201   $as_echo "$as_me: error: $2" >&2
13202   as_fn_exit $as_status
13203 } # as_fn_error
13204
13205
13206 # as_fn_set_status STATUS
13207 # -----------------------
13208 # Set $? to STATUS, without forking.
13209 as_fn_set_status ()
13210 {
13211   return $1
13212 } # as_fn_set_status
13213
13214 # as_fn_exit STATUS
13215 # -----------------
13216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13217 as_fn_exit ()
13218 {
13219   set +e
13220   as_fn_set_status $1
13221   exit $1
13222 } # as_fn_exit
13223
13224 # as_fn_unset VAR
13225 # ---------------
13226 # Portably unset VAR.
13227 as_fn_unset ()
13228 {
13229   { eval $1=; unset $1;}
13230 }
13231 as_unset=as_fn_unset
13232 # as_fn_append VAR VALUE
13233 # ----------------------
13234 # Append the text in VALUE to the end of the definition contained in VAR. Take
13235 # advantage of any shell optimizations that allow amortized linear growth over
13236 # repeated appends, instead of the typical quadratic growth present in naive
13237 # implementations.
13238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13239   eval 'as_fn_append ()
13240   {
13241     eval $1+=\$2
13242   }'
13243 else
13244   as_fn_append ()
13245   {
13246     eval $1=\$$1\$2
13247   }
13248 fi # as_fn_append
13249
13250 # as_fn_arith ARG...
13251 # ------------------
13252 # Perform arithmetic evaluation on the ARGs, and store the result in the
13253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13254 # must be portable across $(()) and expr.
13255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13256   eval 'as_fn_arith ()
13257   {
13258     as_val=$(( $* ))
13259   }'
13260 else
13261   as_fn_arith ()
13262   {
13263     as_val=`expr "$@" || test $? -eq 1`
13264   }
13265 fi # as_fn_arith
13266
13267
13268 if expr a : '\(a\)' >/dev/null 2>&1 &&
13269    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13270   as_expr=expr
13271 else
13272   as_expr=false
13273 fi
13274
13275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13276   as_basename=basename
13277 else
13278   as_basename=false
13279 fi
13280
13281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13282   as_dirname=dirname
13283 else
13284   as_dirname=false
13285 fi
13286
13287 as_me=`$as_basename -- "$0" ||
13288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13289          X"$0" : 'X\(//\)$' \| \
13290          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13291 $as_echo X/"$0" |
13292     sed '/^.*\/\([^/][^/]*\)\/*$/{
13293             s//\1/
13294             q
13295           }
13296           /^X\/\(\/\/\)$/{
13297             s//\1/
13298             q
13299           }
13300           /^X\/\(\/\).*/{
13301             s//\1/
13302             q
13303           }
13304           s/.*/./; q'`
13305
13306 # Avoid depending upon Character Ranges.
13307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13310 as_cr_digits='0123456789'
13311 as_cr_alnum=$as_cr_Letters$as_cr_digits
13312
13313 ECHO_C= ECHO_N= ECHO_T=
13314 case `echo -n x` in #(((((
13315 -n*)
13316   case `echo 'xy\c'` in
13317   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13318   xy)  ECHO_C='\c';;
13319   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13320        ECHO_T=' ';;
13321   esac;;
13322 *)
13323   ECHO_N='-n';;
13324 esac
13325
13326 rm -f conf$$ conf$$.exe conf$$.file
13327 if test -d conf$$.dir; then
13328   rm -f conf$$.dir/conf$$.file
13329 else
13330   rm -f conf$$.dir
13331   mkdir conf$$.dir 2>/dev/null
13332 fi
13333 if (echo >conf$$.file) 2>/dev/null; then
13334   if ln -s conf$$.file conf$$ 2>/dev/null; then
13335     as_ln_s='ln -s'
13336     # ... but there are two gotchas:
13337     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13338     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13339     # In both cases, we have to default to `cp -pR'.
13340     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13341       as_ln_s='cp -pR'
13342   elif ln conf$$.file conf$$ 2>/dev/null; then
13343     as_ln_s=ln
13344   else
13345     as_ln_s='cp -pR'
13346   fi
13347 else
13348   as_ln_s='cp -pR'
13349 fi
13350 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13351 rmdir conf$$.dir 2>/dev/null
13352
13353
13354 # as_fn_mkdir_p
13355 # -------------
13356 # Create "$as_dir" as a directory, including parents if necessary.
13357 as_fn_mkdir_p ()
13358 {
13359
13360   case $as_dir in #(
13361   -*) as_dir=./$as_dir;;
13362   esac
13363   test -d "$as_dir" || eval $as_mkdir_p || {
13364     as_dirs=
13365     while :; do
13366       case $as_dir in #(
13367       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13368       *) as_qdir=$as_dir;;
13369       esac
13370       as_dirs="'$as_qdir' $as_dirs"
13371       as_dir=`$as_dirname -- "$as_dir" ||
13372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13373          X"$as_dir" : 'X\(//\)[^/]' \| \
13374          X"$as_dir" : 'X\(//\)$' \| \
13375          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13376 $as_echo X"$as_dir" |
13377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13378             s//\1/
13379             q
13380           }
13381           /^X\(\/\/\)[^/].*/{
13382             s//\1/
13383             q
13384           }
13385           /^X\(\/\/\)$/{
13386             s//\1/
13387             q
13388           }
13389           /^X\(\/\).*/{
13390             s//\1/
13391             q
13392           }
13393           s/.*/./; q'`
13394       test -d "$as_dir" && break
13395     done
13396     test -z "$as_dirs" || eval "mkdir $as_dirs"
13397   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13398
13399
13400 } # as_fn_mkdir_p
13401 if mkdir -p . 2>/dev/null; then
13402   as_mkdir_p='mkdir -p "$as_dir"'
13403 else
13404   test -d ./-p && rmdir ./-p
13405   as_mkdir_p=false
13406 fi
13407
13408
13409 # as_fn_executable_p FILE
13410 # -----------------------
13411 # Test if FILE is an executable regular file.
13412 as_fn_executable_p ()
13413 {
13414   test -f "$1" && test -x "$1"
13415 } # as_fn_executable_p
13416 as_test_x='test -x'
13417 as_executable_p=as_fn_executable_p
13418
13419 # Sed expression to map a string onto a valid CPP name.
13420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13421
13422 # Sed expression to map a string onto a valid variable name.
13423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13424
13425
13426 exec 6>&1
13427 ## ----------------------------------- ##
13428 ## Main body of $CONFIG_STATUS script. ##
13429 ## ----------------------------------- ##
13430 _ASEOF
13431 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13432
13433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434 # Save the log message, to keep $0 and so on meaningful, and to
13435 # report actual input values of CONFIG_FILES etc. instead of their
13436 # values after options handling.
13437 ac_log="
13438 This file was extended by libpng $as_me 1.5.14, which was
13439 generated by GNU Autoconf 2.69.  Invocation command line was
13440
13441   CONFIG_FILES    = $CONFIG_FILES
13442   CONFIG_HEADERS  = $CONFIG_HEADERS
13443   CONFIG_LINKS    = $CONFIG_LINKS
13444   CONFIG_COMMANDS = $CONFIG_COMMANDS
13445   $ $0 $@
13446
13447 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13448 "
13449
13450 _ACEOF
13451
13452 case $ac_config_files in *"
13453 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13454 esac
13455
13456 case $ac_config_headers in *"
13457 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13458 esac
13459
13460
13461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13462 # Files that config.status was made for.
13463 config_files="$ac_config_files"
13464 config_headers="$ac_config_headers"
13465 config_commands="$ac_config_commands"
13466
13467 _ACEOF
13468
13469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13470 ac_cs_usage="\
13471 \`$as_me' instantiates files and other configuration actions
13472 from templates according to the current configuration.  Unless the files
13473 and actions are specified as TAGs, all are instantiated by default.
13474
13475 Usage: $0 [OPTION]... [TAG]...
13476
13477   -h, --help       print this help, then exit
13478   -V, --version    print version number and configuration settings, then exit
13479       --config     print configuration, then exit
13480   -q, --quiet, --silent
13481                    do not print progress messages
13482   -d, --debug      don't remove temporary files
13483       --recheck    update $as_me by reconfiguring in the same conditions
13484       --file=FILE[:TEMPLATE]
13485                    instantiate the configuration file FILE
13486       --header=FILE[:TEMPLATE]
13487                    instantiate the configuration header FILE
13488
13489 Configuration files:
13490 $config_files
13491
13492 Configuration headers:
13493 $config_headers
13494
13495 Configuration commands:
13496 $config_commands
13497
13498 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13499
13500 _ACEOF
13501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13502 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13503 ac_cs_version="\\
13504 libpng config.status 1.5.14
13505 configured by $0, generated by GNU Autoconf 2.69,
13506   with options \\"\$ac_cs_config\\"
13507
13508 Copyright (C) 2012 Free Software Foundation, Inc.
13509 This config.status script is free software; the Free Software Foundation
13510 gives unlimited permission to copy, distribute and modify it."
13511
13512 ac_pwd='$ac_pwd'
13513 srcdir='$srcdir'
13514 INSTALL='$INSTALL'
13515 MKDIR_P='$MKDIR_P'
13516 AWK='$AWK'
13517 test -n "\$AWK" || AWK=awk
13518 _ACEOF
13519
13520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13521 # The default lists apply if the user does not specify any file.
13522 ac_need_defaults=:
13523 while test $# != 0
13524 do
13525   case $1 in
13526   --*=?*)
13527     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13528     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13529     ac_shift=:
13530     ;;
13531   --*=)
13532     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13533     ac_optarg=
13534     ac_shift=:
13535     ;;
13536   *)
13537     ac_option=$1
13538     ac_optarg=$2
13539     ac_shift=shift
13540     ;;
13541   esac
13542
13543   case $ac_option in
13544   # Handling of the options.
13545   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13546     ac_cs_recheck=: ;;
13547   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13548     $as_echo "$ac_cs_version"; exit ;;
13549   --config | --confi | --conf | --con | --co | --c )
13550     $as_echo "$ac_cs_config"; exit ;;
13551   --debug | --debu | --deb | --de | --d | -d )
13552     debug=: ;;
13553   --file | --fil | --fi | --f )
13554     $ac_shift
13555     case $ac_optarg in
13556     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13557     '') as_fn_error $? "missing file argument" ;;
13558     esac
13559     as_fn_append CONFIG_FILES " '$ac_optarg'"
13560     ac_need_defaults=false;;
13561   --header | --heade | --head | --hea )
13562     $ac_shift
13563     case $ac_optarg in
13564     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13565     esac
13566     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13567     ac_need_defaults=false;;
13568   --he | --h)
13569     # Conflict between --help and --header
13570     as_fn_error $? "ambiguous option: \`$1'
13571 Try \`$0 --help' for more information.";;
13572   --help | --hel | -h )
13573     $as_echo "$ac_cs_usage"; exit ;;
13574   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13575   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13576     ac_cs_silent=: ;;
13577
13578   # This is an error.
13579   -*) as_fn_error $? "unrecognized option: \`$1'
13580 Try \`$0 --help' for more information." ;;
13581
13582   *) as_fn_append ac_config_targets " $1"
13583      ac_need_defaults=false ;;
13584
13585   esac
13586   shift
13587 done
13588
13589 ac_configure_extra_args=
13590
13591 if $ac_cs_silent; then
13592   exec 6>/dev/null
13593   ac_configure_extra_args="$ac_configure_extra_args --silent"
13594 fi
13595
13596 _ACEOF
13597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13598 if \$ac_cs_recheck; then
13599   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13600   shift
13601   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13602   CONFIG_SHELL='$SHELL'
13603   export CONFIG_SHELL
13604   exec "\$@"
13605 fi
13606
13607 _ACEOF
13608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13609 exec 5>>config.log
13610 {
13611   echo
13612   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13613 ## Running $as_me. ##
13614 _ASBOX
13615   $as_echo "$ac_log"
13616 } >&5
13617
13618 _ACEOF
13619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13620 #
13621 # INIT-COMMANDS
13622 #
13623 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13624
13625
13626 # The HP-UX ksh and POSIX shell print the target directory to stdout
13627 # if CDPATH is set.
13628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13629
13630 sed_quote_subst='$sed_quote_subst'
13631 double_quote_subst='$double_quote_subst'
13632 delay_variable_subst='$delay_variable_subst'
13633 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13634 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13635 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13636 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13637 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13638 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13639 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13643 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13645 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13646 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13647 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13648 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13649 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13650 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13651 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13652 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13653 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13654 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13655 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13656 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13657 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13658 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13659 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13660 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13661 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13662 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13663 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13664 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13665 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13666 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13667 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13668 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13669 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13670 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13671 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13672 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13673 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13674 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13675 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13676 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13677 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13678 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13679 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13680 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13681 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13682 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13683 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13684 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13685 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13686 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13687 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13688 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13689 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13690 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"`'
13691 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13692 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13693 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13694 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13695 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13696 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13697 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13698 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13699 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13700 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13701 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13702 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13703 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13704 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13705 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13706 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13707 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13708 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13709 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13710 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13711 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13712 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13713 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13714 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13715 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13716 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13717 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13718 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13719 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13720 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13721 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13722 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13723 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13724 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13725 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13726 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13727 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13728 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13729 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13730 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13731 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13732 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13733 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13734 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13735 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13736 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13737 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13738 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13739 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13740 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13741 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13742 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13743 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13744 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13745 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13746 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13747 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13748 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13749 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13750 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13751 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13752 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13753 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13754 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13755 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13756 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13757 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13758 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13759 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13760 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13761 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13762 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13763 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13764
13765 LTCC='$LTCC'
13766 LTCFLAGS='$LTCFLAGS'
13767 compiler='$compiler_DEFAULT'
13768
13769 # A function that is used when there is no print builtin or printf.
13770 func_fallback_echo ()
13771 {
13772   eval 'cat <<_LTECHO_EOF
13773 \$1
13774 _LTECHO_EOF'
13775 }
13776
13777 # Quote evaled strings.
13778 for var in SED \
13779 GREP \
13780 EGREP \
13781 FGREP \
13782 SHELL \
13783 ECHO \
13784 LD \
13785 AS \
13786 DLLTOOL \
13787 OBJDUMP \
13788 PATH_SEPARATOR \
13789 NM \
13790 LN_S \
13791 lt_SP2NL \
13792 lt_NL2SP \
13793 reload_flag \
13794 deplibs_check_method \
13795 file_magic_cmd \
13796 file_magic_glob \
13797 want_nocaseglob \
13798 sharedlib_from_linklib_cmd \
13799 AR \
13800 AR_FLAGS \
13801 archiver_list_spec \
13802 STRIP \
13803 RANLIB \
13804 CC \
13805 CFLAGS \
13806 compiler \
13807 lt_cv_sys_global_symbol_pipe \
13808 lt_cv_sys_global_symbol_to_cdecl \
13809 lt_cv_sys_global_symbol_to_c_name_address \
13810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13811 nm_file_list_spec \
13812 lt_prog_compiler_no_builtin_flag \
13813 lt_prog_compiler_pic \
13814 lt_prog_compiler_wl \
13815 lt_prog_compiler_static \
13816 lt_cv_prog_compiler_c_o \
13817 need_locks \
13818 MANIFEST_TOOL \
13819 DSYMUTIL \
13820 NMEDIT \
13821 LIPO \
13822 OTOOL \
13823 OTOOL64 \
13824 shrext_cmds \
13825 export_dynamic_flag_spec \
13826 whole_archive_flag_spec \
13827 compiler_needs_object \
13828 with_gnu_ld \
13829 allow_undefined_flag \
13830 no_undefined_flag \
13831 hardcode_libdir_flag_spec \
13832 hardcode_libdir_separator \
13833 exclude_expsyms \
13834 include_expsyms \
13835 file_list_spec \
13836 variables_saved_for_relink \
13837 libname_spec \
13838 library_names_spec \
13839 soname_spec \
13840 install_override_mode \
13841 finish_eval \
13842 old_striplib \
13843 striplib; do
13844     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13845     *[\\\\\\\`\\"\\\$]*)
13846       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13847       ;;
13848     *)
13849       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13850       ;;
13851     esac
13852 done
13853
13854 # Double-quote double-evaled strings.
13855 for var in reload_cmds \
13856 old_postinstall_cmds \
13857 old_postuninstall_cmds \
13858 old_archive_cmds \
13859 extract_expsyms_cmds \
13860 old_archive_from_new_cmds \
13861 old_archive_from_expsyms_cmds \
13862 archive_cmds \
13863 archive_expsym_cmds \
13864 module_cmds \
13865 module_expsym_cmds \
13866 export_symbols_cmds \
13867 prelink_cmds \
13868 postlink_cmds \
13869 postinstall_cmds \
13870 postuninstall_cmds \
13871 finish_cmds \
13872 sys_lib_search_path_spec \
13873 sys_lib_dlsearch_path_spec; do
13874     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13875     *[\\\\\\\`\\"\\\$]*)
13876       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13877       ;;
13878     *)
13879       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13880       ;;
13881     esac
13882 done
13883
13884 ac_aux_dir='$ac_aux_dir'
13885 xsi_shell='$xsi_shell'
13886 lt_shell_append='$lt_shell_append'
13887
13888 # See if we are running on zsh, and set the options which allow our
13889 # commands through without removal of \ escapes INIT.
13890 if test -n "\${ZSH_VERSION+set}" ; then
13891    setopt NO_GLOB_SUBST
13892 fi
13893
13894
13895     PACKAGE='$PACKAGE'
13896     VERSION='$VERSION'
13897     TIMESTAMP='$TIMESTAMP'
13898     RM='$RM'
13899     ofile='$ofile'
13900
13901
13902
13903
13904 _ACEOF
13905
13906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907
13908 # Handling of arguments.
13909 for ac_config_target in $ac_config_targets
13910 do
13911   case $ac_config_target in
13912     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13913     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13914     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13915     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13916     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
13917     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
13918
13919   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13920   esac
13921 done
13922
13923
13924 # If the user did not use the arguments to specify the items to instantiate,
13925 # then the envvar interface is used.  Set only those that are not.
13926 # We use the long form for the default assignment because of an extremely
13927 # bizarre bug on SunOS 4.1.3.
13928 if $ac_need_defaults; then
13929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13932 fi
13933
13934 # Have a temporary directory for convenience.  Make it in the build tree
13935 # simply because there is no reason against having it here, and in addition,
13936 # creating and moving files from /tmp can sometimes cause problems.
13937 # Hook for its removal unless debugging.
13938 # Note that there is a small window in which the directory will not be cleaned:
13939 # after its creation but before its name has been assigned to `$tmp'.
13940 $debug ||
13941 {
13942   tmp= ac_tmp=
13943   trap 'exit_status=$?
13944   : "${ac_tmp:=$tmp}"
13945   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13946 ' 0
13947   trap 'as_fn_exit 1' 1 2 13 15
13948 }
13949 # Create a (secure) tmp directory for tmp files.
13950
13951 {
13952   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13953   test -d "$tmp"
13954 }  ||
13955 {
13956   tmp=./conf$$-$RANDOM
13957   (umask 077 && mkdir "$tmp")
13958 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13959 ac_tmp=$tmp
13960
13961 # Set up the scripts for CONFIG_FILES section.
13962 # No need to generate them if there are no CONFIG_FILES.
13963 # This happens for instance with `./config.status config.h'.
13964 if test -n "$CONFIG_FILES"; then
13965
13966
13967 ac_cr=`echo X | tr X '\015'`
13968 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13969 # But we know of no other shell where ac_cr would be empty at this
13970 # point, so we can use a bashism as a fallback.
13971 if test "x$ac_cr" = x; then
13972   eval ac_cr=\$\'\\r\'
13973 fi
13974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13976   ac_cs_awk_cr='\\r'
13977 else
13978   ac_cs_awk_cr=$ac_cr
13979 fi
13980
13981 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13982 _ACEOF
13983
13984
13985 {
13986   echo "cat >conf$$subs.awk <<_ACEOF" &&
13987   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13988   echo "_ACEOF"
13989 } >conf$$subs.sh ||
13990   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13992 ac_delim='%!_!# '
13993 for ac_last_try in false false false false false :; do
13994   . ./conf$$subs.sh ||
13995     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13996
13997   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13998   if test $ac_delim_n = $ac_delim_num; then
13999     break
14000   elif $ac_last_try; then
14001     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14002   else
14003     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14004   fi
14005 done
14006 rm -f conf$$subs.sh
14007
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14010 _ACEOF
14011 sed -n '
14012 h
14013 s/^/S["/; s/!.*/"]=/
14014 p
14015 g
14016 s/^[^!]*!//
14017 :repl
14018 t repl
14019 s/'"$ac_delim"'$//
14020 t delim
14021 :nl
14022 h
14023 s/\(.\{148\}\)..*/\1/
14024 t more1
14025 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14026 p
14027 n
14028 b repl
14029 :more1
14030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14031 p
14032 g
14033 s/.\{148\}//
14034 t nl
14035 :delim
14036 h
14037 s/\(.\{148\}\)..*/\1/
14038 t more2
14039 s/["\\]/\\&/g; s/^/"/; s/$/"/
14040 p
14041 b
14042 :more2
14043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14044 p
14045 g
14046 s/.\{148\}//
14047 t delim
14048 ' <conf$$subs.awk | sed '
14049 /^[^""]/{
14050   N
14051   s/\n//
14052 }
14053 ' >>$CONFIG_STATUS || ac_write_fail=1
14054 rm -f conf$$subs.awk
14055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14056 _ACAWK
14057 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14058   for (key in S) S_is_set[key] = 1
14059   FS = "\a"
14060
14061 }
14062 {
14063   line = $ 0
14064   nfields = split(line, field, "@")
14065   substed = 0
14066   len = length(field[1])
14067   for (i = 2; i < nfields; i++) {
14068     key = field[i]
14069     keylen = length(key)
14070     if (S_is_set[key]) {
14071       value = S[key]
14072       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14073       len += length(value) + length(field[++i])
14074       substed = 1
14075     } else
14076       len += 1 + keylen
14077   }
14078
14079   print line
14080 }
14081
14082 _ACAWK
14083 _ACEOF
14084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14085 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14086   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14087 else
14088   cat
14089 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14090   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14091 _ACEOF
14092
14093 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14094 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14095 # trailing colons and then remove the whole line if VPATH becomes empty
14096 # (actually we leave an empty line to preserve line numbers).
14097 if test "x$srcdir" = x.; then
14098   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14099 h
14100 s///
14101 s/^/:/
14102 s/[      ]*$/:/
14103 s/:\$(srcdir):/:/g
14104 s/:\${srcdir}:/:/g
14105 s/:@srcdir@:/:/g
14106 s/^:*//
14107 s/:*$//
14108 x
14109 s/\(=[   ]*\).*/\1/
14110 G
14111 s/\n//
14112 s/^[^=]*=[       ]*$//
14113 }'
14114 fi
14115
14116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14117 fi # test -n "$CONFIG_FILES"
14118
14119 # Set up the scripts for CONFIG_HEADERS section.
14120 # No need to generate them if there are no CONFIG_HEADERS.
14121 # This happens for instance with `./config.status Makefile'.
14122 if test -n "$CONFIG_HEADERS"; then
14123 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14124 BEGIN {
14125 _ACEOF
14126
14127 # Transform confdefs.h into an awk script `defines.awk', embedded as
14128 # here-document in config.status, that substitutes the proper values into
14129 # config.h.in to produce config.h.
14130
14131 # Create a delimiter string that does not exist in confdefs.h, to ease
14132 # handling of long lines.
14133 ac_delim='%!_!# '
14134 for ac_last_try in false false :; do
14135   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14136   if test -z "$ac_tt"; then
14137     break
14138   elif $ac_last_try; then
14139     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14140   else
14141     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14142   fi
14143 done
14144
14145 # For the awk script, D is an array of macro values keyed by name,
14146 # likewise P contains macro parameters if any.  Preserve backslash
14147 # newline sequences.
14148
14149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14150 sed -n '
14151 s/.\{148\}/&'"$ac_delim"'/g
14152 t rset
14153 :rset
14154 s/^[     ]*#[    ]*define[       ][      ]*/ /
14155 t def
14156 d
14157 :def
14158 s/\\$//
14159 t bsnl
14160 s/["\\]/\\&/g
14161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14162 D["\1"]=" \3"/p
14163 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14164 d
14165 :bsnl
14166 s/["\\]/\\&/g
14167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14168 D["\1"]=" \3\\\\\\n"\\/p
14169 t cont
14170 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14171 t cont
14172 d
14173 :cont
14174 n
14175 s/.\{148\}/&'"$ac_delim"'/g
14176 t clear
14177 :clear
14178 s/\\$//
14179 t bsnlc
14180 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14181 d
14182 :bsnlc
14183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14184 b cont
14185 ' <confdefs.h | sed '
14186 s/'"$ac_delim"'/"\\\
14187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14188
14189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14190   for (key in D) D_is_set[key] = 1
14191   FS = "\a"
14192 }
14193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14194   line = \$ 0
14195   split(line, arg, " ")
14196   if (arg[1] == "#") {
14197     defundef = arg[2]
14198     mac1 = arg[3]
14199   } else {
14200     defundef = substr(arg[1], 2)
14201     mac1 = arg[2]
14202   }
14203   split(mac1, mac2, "(") #)
14204   macro = mac2[1]
14205   prefix = substr(line, 1, index(line, defundef) - 1)
14206   if (D_is_set[macro]) {
14207     # Preserve the white space surrounding the "#".
14208     print prefix "define", macro P[macro] D[macro]
14209     next
14210   } else {
14211     # Replace #undef with comments.  This is necessary, for example,
14212     # in the case of _POSIX_SOURCE, which is predefined and required
14213     # on some systems where configure will not decide to define it.
14214     if (defundef == "undef") {
14215       print "/*", prefix defundef, macro, "*/"
14216       next
14217     }
14218   }
14219 }
14220 { print }
14221 _ACAWK
14222 _ACEOF
14223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14225 fi # test -n "$CONFIG_HEADERS"
14226
14227
14228 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14229 shift
14230 for ac_tag
14231 do
14232   case $ac_tag in
14233   :[FHLC]) ac_mode=$ac_tag; continue;;
14234   esac
14235   case $ac_mode$ac_tag in
14236   :[FHL]*:*);;
14237   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14238   :[FH]-) ac_tag=-:-;;
14239   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14240   esac
14241   ac_save_IFS=$IFS
14242   IFS=:
14243   set x $ac_tag
14244   IFS=$ac_save_IFS
14245   shift
14246   ac_file=$1
14247   shift
14248
14249   case $ac_mode in
14250   :L) ac_source=$1;;
14251   :[FH])
14252     ac_file_inputs=
14253     for ac_f
14254     do
14255       case $ac_f in
14256       -) ac_f="$ac_tmp/stdin";;
14257       *) # Look for the file first in the build tree, then in the source tree
14258          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14259          # because $ac_f cannot contain `:'.
14260          test -f "$ac_f" ||
14261            case $ac_f in
14262            [\\/$]*) false;;
14263            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14264            esac ||
14265            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14266       esac
14267       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14268       as_fn_append ac_file_inputs " '$ac_f'"
14269     done
14270
14271     # Let's still pretend it is `configure' which instantiates (i.e., don't
14272     # use $as_me), people would be surprised to read:
14273     #    /* config.h.  Generated by config.status.  */
14274     configure_input='Generated from '`
14275           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14276         `' by configure.'
14277     if test x"$ac_file" != x-; then
14278       configure_input="$ac_file.  $configure_input"
14279       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14280 $as_echo "$as_me: creating $ac_file" >&6;}
14281     fi
14282     # Neutralize special characters interpreted by sed in replacement strings.
14283     case $configure_input in #(
14284     *\&* | *\|* | *\\* )
14285        ac_sed_conf_input=`$as_echo "$configure_input" |
14286        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14287     *) ac_sed_conf_input=$configure_input;;
14288     esac
14289
14290     case $ac_tag in
14291     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14292       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14293     esac
14294     ;;
14295   esac
14296
14297   ac_dir=`$as_dirname -- "$ac_file" ||
14298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299          X"$ac_file" : 'X\(//\)[^/]' \| \
14300          X"$ac_file" : 'X\(//\)$' \| \
14301          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302 $as_echo X"$ac_file" |
14303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304             s//\1/
14305             q
14306           }
14307           /^X\(\/\/\)[^/].*/{
14308             s//\1/
14309             q
14310           }
14311           /^X\(\/\/\)$/{
14312             s//\1/
14313             q
14314           }
14315           /^X\(\/\).*/{
14316             s//\1/
14317             q
14318           }
14319           s/.*/./; q'`
14320   as_dir="$ac_dir"; as_fn_mkdir_p
14321   ac_builddir=.
14322
14323 case "$ac_dir" in
14324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14325 *)
14326   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14327   # A ".." for each directory in $ac_dir_suffix.
14328   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14329   case $ac_top_builddir_sub in
14330   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14331   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14332   esac ;;
14333 esac
14334 ac_abs_top_builddir=$ac_pwd
14335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14336 # for backward compatibility:
14337 ac_top_builddir=$ac_top_build_prefix
14338
14339 case $srcdir in
14340   .)  # We are building in place.
14341     ac_srcdir=.
14342     ac_top_srcdir=$ac_top_builddir_sub
14343     ac_abs_top_srcdir=$ac_pwd ;;
14344   [\\/]* | ?:[\\/]* )  # Absolute name.
14345     ac_srcdir=$srcdir$ac_dir_suffix;
14346     ac_top_srcdir=$srcdir
14347     ac_abs_top_srcdir=$srcdir ;;
14348   *) # Relative name.
14349     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14350     ac_top_srcdir=$ac_top_build_prefix$srcdir
14351     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14352 esac
14353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14354
14355
14356   case $ac_mode in
14357   :F)
14358   #
14359   # CONFIG_FILE
14360   #
14361
14362   case $INSTALL in
14363   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14364   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14365   esac
14366   ac_MKDIR_P=$MKDIR_P
14367   case $MKDIR_P in
14368   [\\/$]* | ?:[\\/]* ) ;;
14369   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14370   esac
14371 _ACEOF
14372
14373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14374 # If the template does not know about datarootdir, expand it.
14375 # FIXME: This hack should be removed a few years after 2.60.
14376 ac_datarootdir_hack=; ac_datarootdir_seen=
14377 ac_sed_dataroot='
14378 /datarootdir/ {
14379   p
14380   q
14381 }
14382 /@datadir@/p
14383 /@docdir@/p
14384 /@infodir@/p
14385 /@localedir@/p
14386 /@mandir@/p'
14387 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14388 *datarootdir*) ac_datarootdir_seen=yes;;
14389 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14390   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14391 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14392 _ACEOF
14393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394   ac_datarootdir_hack='
14395   s&@datadir@&$datadir&g
14396   s&@docdir@&$docdir&g
14397   s&@infodir@&$infodir&g
14398   s&@localedir@&$localedir&g
14399   s&@mandir@&$mandir&g
14400   s&\\\${datarootdir}&$datarootdir&g' ;;
14401 esac
14402 _ACEOF
14403
14404 # Neutralize VPATH when `$srcdir' = `.'.
14405 # Shell code in configure.ac might set extrasub.
14406 # FIXME: do we really want to maintain this feature?
14407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14408 ac_sed_extra="$ac_vpsub
14409 $extrasub
14410 _ACEOF
14411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14412 :t
14413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14414 s|@configure_input@|$ac_sed_conf_input|;t t
14415 s&@top_builddir@&$ac_top_builddir_sub&;t t
14416 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14417 s&@srcdir@&$ac_srcdir&;t t
14418 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14419 s&@top_srcdir@&$ac_top_srcdir&;t t
14420 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14421 s&@builddir@&$ac_builddir&;t t
14422 s&@abs_builddir@&$ac_abs_builddir&;t t
14423 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14424 s&@INSTALL@&$ac_INSTALL&;t t
14425 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14426 $ac_datarootdir_hack
14427 "
14428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14429   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14430
14431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14432   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14433   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14434       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14436 which seems to be undefined.  Please make sure it is defined" >&5
14437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14438 which seems to be undefined.  Please make sure it is defined" >&2;}
14439
14440   rm -f "$ac_tmp/stdin"
14441   case $ac_file in
14442   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14443   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14444   esac \
14445   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14446  ;;
14447   :H)
14448   #
14449   # CONFIG_HEADER
14450   #
14451   if test x"$ac_file" != x-; then
14452     {
14453       $as_echo "/* $configure_input  */" \
14454       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14455     } >"$ac_tmp/config.h" \
14456       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14457     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14458       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14460     else
14461       rm -f "$ac_file"
14462       mv "$ac_tmp/config.h" "$ac_file" \
14463         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14464     fi
14465   else
14466     $as_echo "/* $configure_input  */" \
14467       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14468       || as_fn_error $? "could not create -" "$LINENO" 5
14469   fi
14470 # Compute "$ac_file"'s index in $config_headers.
14471 _am_arg="$ac_file"
14472 _am_stamp_count=1
14473 for _am_header in $config_headers :; do
14474   case $_am_header in
14475     $_am_arg | $_am_arg:* )
14476       break ;;
14477     * )
14478       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14479   esac
14480 done
14481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483          X"$_am_arg" : 'X\(//\)[^/]' \| \
14484          X"$_am_arg" : 'X\(//\)$' \| \
14485          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14486 $as_echo X"$_am_arg" |
14487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14488             s//\1/
14489             q
14490           }
14491           /^X\(\/\/\)[^/].*/{
14492             s//\1/
14493             q
14494           }
14495           /^X\(\/\/\)$/{
14496             s//\1/
14497             q
14498           }
14499           /^X\(\/\).*/{
14500             s//\1/
14501             q
14502           }
14503           s/.*/./; q'`/stamp-h$_am_stamp_count
14504  ;;
14505
14506   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14507 $as_echo "$as_me: executing $ac_file commands" >&6;}
14508  ;;
14509   esac
14510
14511
14512   case $ac_file$ac_mode in
14513     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14514   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14515   # are listed without --file.  Let's play safe and only enable the eval
14516   # if we detect the quoting.
14517   case $CONFIG_FILES in
14518   *\'*) eval set x "$CONFIG_FILES" ;;
14519   *)   set x $CONFIG_FILES ;;
14520   esac
14521   shift
14522   for mf
14523   do
14524     # Strip MF so we end up with the name of the file.
14525     mf=`echo "$mf" | sed -e 's/:.*$//'`
14526     # Check whether this is an Automake generated Makefile or not.
14527     # We used to match only the files named `Makefile.in', but
14528     # some people rename them; so instead we look at the file content.
14529     # Grep'ing the first line is not enough: some people post-process
14530     # each Makefile.in and add a new line on top of each file to say so.
14531     # Grep'ing the whole file is not good either: AIX grep has a line
14532     # limit of 2048, but all sed's we know have understand at least 4000.
14533     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14534       dirpart=`$as_dirname -- "$mf" ||
14535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14536          X"$mf" : 'X\(//\)[^/]' \| \
14537          X"$mf" : 'X\(//\)$' \| \
14538          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14539 $as_echo X"$mf" |
14540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14541             s//\1/
14542             q
14543           }
14544           /^X\(\/\/\)[^/].*/{
14545             s//\1/
14546             q
14547           }
14548           /^X\(\/\/\)$/{
14549             s//\1/
14550             q
14551           }
14552           /^X\(\/\).*/{
14553             s//\1/
14554             q
14555           }
14556           s/.*/./; q'`
14557     else
14558       continue
14559     fi
14560     # Extract the definition of DEPDIR, am__include, and am__quote
14561     # from the Makefile without running `make'.
14562     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14563     test -z "$DEPDIR" && continue
14564     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14565     test -z "am__include" && continue
14566     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14567     # When using ansi2knr, U may be empty or an underscore; expand it
14568     U=`sed -n 's/^U = //p' < "$mf"`
14569     # Find all dependency output files, they are included files with
14570     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14571     # simplest approach to changing $(DEPDIR) to its actual value in the
14572     # expansion.
14573     for file in `sed -n "
14574       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14575          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14576       # Make sure the directory exists.
14577       test -f "$dirpart/$file" && continue
14578       fdir=`$as_dirname -- "$file" ||
14579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14580          X"$file" : 'X\(//\)[^/]' \| \
14581          X"$file" : 'X\(//\)$' \| \
14582          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14583 $as_echo X"$file" |
14584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14585             s//\1/
14586             q
14587           }
14588           /^X\(\/\/\)[^/].*/{
14589             s//\1/
14590             q
14591           }
14592           /^X\(\/\/\)$/{
14593             s//\1/
14594             q
14595           }
14596           /^X\(\/\).*/{
14597             s//\1/
14598             q
14599           }
14600           s/.*/./; q'`
14601       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14602       # echo "creating $dirpart/$file"
14603       echo '# dummy' > "$dirpart/$file"
14604     done
14605   done
14606 }
14607  ;;
14608     "libtool":C)
14609
14610     # See if we are running on zsh, and set the options which allow our
14611     # commands through without removal of \ escapes.
14612     if test -n "${ZSH_VERSION+set}" ; then
14613       setopt NO_GLOB_SUBST
14614     fi
14615
14616     cfgfile="${ofile}T"
14617     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14618     $RM "$cfgfile"
14619
14620     cat <<_LT_EOF >> "$cfgfile"
14621 #! $SHELL
14622
14623 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14624 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14625 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14626 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14627 #
14628 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14629 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14630 #                 Foundation, Inc.
14631 #   Written by Gordon Matzigkeit, 1996
14632 #
14633 #   This file is part of GNU Libtool.
14634 #
14635 # GNU Libtool is free software; you can redistribute it and/or
14636 # modify it under the terms of the GNU General Public License as
14637 # published by the Free Software Foundation; either version 2 of
14638 # the License, or (at your option) any later version.
14639 #
14640 # As a special exception to the GNU General Public License,
14641 # if you distribute this file as part of a program or library that
14642 # is built using GNU Libtool, you may include this file under the
14643 # same distribution terms that you use for the rest of that program.
14644 #
14645 # GNU Libtool is distributed in the hope that it will be useful,
14646 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14648 # GNU General Public License for more details.
14649 #
14650 # You should have received a copy of the GNU General Public License
14651 # along with GNU Libtool; see the file COPYING.  If not, a copy
14652 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14653 # obtained by writing to the Free Software Foundation, Inc.,
14654 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14655
14656
14657 # The names of the tagged configurations supported by this script.
14658 available_tags=""
14659
14660 # ### BEGIN LIBTOOL CONFIG
14661
14662 # A sed program that does not truncate output.
14663 SED=$lt_SED
14664
14665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14666 Xsed="\$SED -e 1s/^X//"
14667
14668 # A grep program that handles long lines.
14669 GREP=$lt_GREP
14670
14671 # An ERE matcher.
14672 EGREP=$lt_EGREP
14673
14674 # A literal string matcher.
14675 FGREP=$lt_FGREP
14676
14677 # Shell to use when invoking shell scripts.
14678 SHELL=$lt_SHELL
14679
14680 # An echo program that protects backslashes.
14681 ECHO=$lt_ECHO
14682
14683 # Which release of libtool.m4 was used?
14684 macro_version=$macro_version
14685 macro_revision=$macro_revision
14686
14687 # Assembler program.
14688 AS=$lt_AS
14689
14690 # DLL creation program.
14691 DLLTOOL=$lt_DLLTOOL
14692
14693 # Object dumper program.
14694 OBJDUMP=$lt_OBJDUMP
14695
14696 # Whether or not to build shared libraries.
14697 build_libtool_libs=$enable_shared
14698
14699 # Whether or not to build static libraries.
14700 build_old_libs=$enable_static
14701
14702 # What type of objects to build.
14703 pic_mode=$pic_mode
14704
14705 # Whether or not to optimize for fast installation.
14706 fast_install=$enable_fast_install
14707
14708 # The PATH separator for the build system.
14709 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14710
14711 # The host system.
14712 host_alias=$host_alias
14713 host=$host
14714 host_os=$host_os
14715
14716 # The build system.
14717 build_alias=$build_alias
14718 build=$build
14719 build_os=$build_os
14720
14721 # A BSD- or MS-compatible name lister.
14722 NM=$lt_NM
14723
14724 # Whether we need soft or hard links.
14725 LN_S=$lt_LN_S
14726
14727 # What is the maximum length of a command?
14728 max_cmd_len=$max_cmd_len
14729
14730 # Object file suffix (normally "o").
14731 objext=$ac_objext
14732
14733 # Executable file suffix (normally "").
14734 exeext=$exeext
14735
14736 # whether the shell understands "unset".
14737 lt_unset=$lt_unset
14738
14739 # turn spaces into newlines.
14740 SP2NL=$lt_lt_SP2NL
14741
14742 # turn newlines into spaces.
14743 NL2SP=$lt_lt_NL2SP
14744
14745 # convert \$build file names to \$host format.
14746 to_host_file_cmd=$lt_cv_to_host_file_cmd
14747
14748 # convert \$build files to toolchain format.
14749 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14750
14751 # Method to check whether dependent libraries are shared objects.
14752 deplibs_check_method=$lt_deplibs_check_method
14753
14754 # Command to use when deplibs_check_method = "file_magic".
14755 file_magic_cmd=$lt_file_magic_cmd
14756
14757 # How to find potential files when deplibs_check_method = "file_magic".
14758 file_magic_glob=$lt_file_magic_glob
14759
14760 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14761 want_nocaseglob=$lt_want_nocaseglob
14762
14763 # Command to associate shared and link libraries.
14764 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14765
14766 # The archiver.
14767 AR=$lt_AR
14768
14769 # Flags to create an archive.
14770 AR_FLAGS=$lt_AR_FLAGS
14771
14772 # How to feed a file listing to the archiver.
14773 archiver_list_spec=$lt_archiver_list_spec
14774
14775 # A symbol stripping program.
14776 STRIP=$lt_STRIP
14777
14778 # Commands used to install an old-style archive.
14779 RANLIB=$lt_RANLIB
14780 old_postinstall_cmds=$lt_old_postinstall_cmds
14781 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14782
14783 # Whether to use a lock for old archive extraction.
14784 lock_old_archive_extraction=$lock_old_archive_extraction
14785
14786 # A C compiler.
14787 LTCC=$lt_CC
14788
14789 # LTCC compiler flags.
14790 LTCFLAGS=$lt_CFLAGS
14791
14792 # Take the output of nm and produce a listing of raw symbols and C names.
14793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14794
14795 # Transform the output of nm in a proper C declaration.
14796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14797
14798 # Transform the output of nm in a C name address pair.
14799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14800
14801 # Transform the output of nm in a C name address pair when lib prefix is needed.
14802 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14803
14804 # Specify filename containing input files for \$NM.
14805 nm_file_list_spec=$lt_nm_file_list_spec
14806
14807 # The root where to search for dependent libraries,and in which our libraries should be installed.
14808 lt_sysroot=$lt_sysroot
14809
14810 # The name of the directory that contains temporary libtool files.
14811 objdir=$objdir
14812
14813 # Used to examine libraries when file_magic_cmd begins with "file".
14814 MAGIC_CMD=$MAGIC_CMD
14815
14816 # Must we lock files when doing compilation?
14817 need_locks=$lt_need_locks
14818
14819 # Manifest tool.
14820 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14821
14822 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14823 DSYMUTIL=$lt_DSYMUTIL
14824
14825 # Tool to change global to local symbols on Mac OS X.
14826 NMEDIT=$lt_NMEDIT
14827
14828 # Tool to manipulate fat objects and archives on Mac OS X.
14829 LIPO=$lt_LIPO
14830
14831 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14832 OTOOL=$lt_OTOOL
14833
14834 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14835 OTOOL64=$lt_OTOOL64
14836
14837 # Old archive suffix (normally "a").
14838 libext=$libext
14839
14840 # Shared library suffix (normally ".so").
14841 shrext_cmds=$lt_shrext_cmds
14842
14843 # The commands to extract the exported symbol list from a shared archive.
14844 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14845
14846 # Variables whose values should be saved in libtool wrapper scripts and
14847 # restored at link time.
14848 variables_saved_for_relink=$lt_variables_saved_for_relink
14849
14850 # Do we need the "lib" prefix for modules?
14851 need_lib_prefix=$need_lib_prefix
14852
14853 # Do we need a version for libraries?
14854 need_version=$need_version
14855
14856 # Library versioning type.
14857 version_type=$version_type
14858
14859 # Shared library runtime path variable.
14860 runpath_var=$runpath_var
14861
14862 # Shared library path variable.
14863 shlibpath_var=$shlibpath_var
14864
14865 # Is shlibpath searched before the hard-coded library search path?
14866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14867
14868 # Format of library name prefix.
14869 libname_spec=$lt_libname_spec
14870
14871 # List of archive names.  First name is the real one, the rest are links.
14872 # The last name is the one that the linker finds with -lNAME
14873 library_names_spec=$lt_library_names_spec
14874
14875 # The coded name of the library, if different from the real name.
14876 soname_spec=$lt_soname_spec
14877
14878 # Permission mode override for installation of shared libraries.
14879 install_override_mode=$lt_install_override_mode
14880
14881 # Command to use after installation of a shared archive.
14882 postinstall_cmds=$lt_postinstall_cmds
14883
14884 # Command to use after uninstallation of a shared archive.
14885 postuninstall_cmds=$lt_postuninstall_cmds
14886
14887 # Commands used to finish a libtool library installation in a directory.
14888 finish_cmds=$lt_finish_cmds
14889
14890 # As "finish_cmds", except a single script fragment to be evaled but
14891 # not shown.
14892 finish_eval=$lt_finish_eval
14893
14894 # Whether we should hardcode library paths into libraries.
14895 hardcode_into_libs=$hardcode_into_libs
14896
14897 # Compile-time system search path for libraries.
14898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14899
14900 # Run-time system search path for libraries.
14901 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14902
14903 # Whether dlopen is supported.
14904 dlopen_support=$enable_dlopen
14905
14906 # Whether dlopen of programs is supported.
14907 dlopen_self=$enable_dlopen_self
14908
14909 # Whether dlopen of statically linked programs is supported.
14910 dlopen_self_static=$enable_dlopen_self_static
14911
14912 # Commands to strip libraries.
14913 old_striplib=$lt_old_striplib
14914 striplib=$lt_striplib
14915
14916
14917 # The linker used to build libraries.
14918 LD=$lt_LD
14919
14920 # How to create reloadable object files.
14921 reload_flag=$lt_reload_flag
14922 reload_cmds=$lt_reload_cmds
14923
14924 # Commands used to build an old-style archive.
14925 old_archive_cmds=$lt_old_archive_cmds
14926
14927 # A language specific compiler.
14928 CC=$lt_compiler
14929
14930 # Is the compiler the GNU compiler?
14931 with_gcc=$GCC
14932
14933 # Compiler flag to turn off builtin functions.
14934 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14935
14936 # Additional compiler flags for building library objects.
14937 pic_flag=$lt_lt_prog_compiler_pic
14938
14939 # How to pass a linker flag through the compiler.
14940 wl=$lt_lt_prog_compiler_wl
14941
14942 # Compiler flag to prevent dynamic linking.
14943 link_static_flag=$lt_lt_prog_compiler_static
14944
14945 # Does compiler simultaneously support -c and -o options?
14946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14947
14948 # Whether or not to add -lc for building shared libraries.
14949 build_libtool_need_lc=$archive_cmds_need_lc
14950
14951 # Whether or not to disallow shared libs when runtime libs are static.
14952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14953
14954 # Compiler flag to allow reflexive dlopens.
14955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14956
14957 # Compiler flag to generate shared objects directly from archives.
14958 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14959
14960 # Whether the compiler copes with passing no objects directly.
14961 compiler_needs_object=$lt_compiler_needs_object
14962
14963 # Create an old-style archive from a shared archive.
14964 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14965
14966 # Create a temporary old-style archive to link instead of a shared archive.
14967 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14968
14969 # Commands used to build a shared archive.
14970 archive_cmds=$lt_archive_cmds
14971 archive_expsym_cmds=$lt_archive_expsym_cmds
14972
14973 # Commands used to build a loadable module if different from building
14974 # a shared archive.
14975 module_cmds=$lt_module_cmds
14976 module_expsym_cmds=$lt_module_expsym_cmds
14977
14978 # Whether we are building with GNU ld or not.
14979 with_gnu_ld=$lt_with_gnu_ld
14980
14981 # Flag that allows shared libraries with undefined symbols to be built.
14982 allow_undefined_flag=$lt_allow_undefined_flag
14983
14984 # Flag that enforces no undefined symbols.
14985 no_undefined_flag=$lt_no_undefined_flag
14986
14987 # Flag to hardcode \$libdir into a binary during linking.
14988 # This must work even if \$libdir does not exist
14989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14990
14991 # Whether we need a single "-rpath" flag with a separated argument.
14992 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14993
14994 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14995 # DIR into the resulting binary.
14996 hardcode_direct=$hardcode_direct
14997
14998 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14999 # DIR into the resulting binary and the resulting library dependency is
15000 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15001 # library is relocated.
15002 hardcode_direct_absolute=$hardcode_direct_absolute
15003
15004 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15005 # into the resulting binary.
15006 hardcode_minus_L=$hardcode_minus_L
15007
15008 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15009 # into the resulting binary.
15010 hardcode_shlibpath_var=$hardcode_shlibpath_var
15011
15012 # Set to "yes" if building a shared library automatically hardcodes DIR
15013 # into the library and all subsequent libraries and executables linked
15014 # against it.
15015 hardcode_automatic=$hardcode_automatic
15016
15017 # Set to yes if linker adds runtime paths of dependent libraries
15018 # to runtime path list.
15019 inherit_rpath=$inherit_rpath
15020
15021 # Whether libtool must link a program against all its dependency libraries.
15022 link_all_deplibs=$link_all_deplibs
15023
15024 # Set to "yes" if exported symbols are required.
15025 always_export_symbols=$always_export_symbols
15026
15027 # The commands to list exported symbols.
15028 export_symbols_cmds=$lt_export_symbols_cmds
15029
15030 # Symbols that should not be listed in the preloaded symbols.
15031 exclude_expsyms=$lt_exclude_expsyms
15032
15033 # Symbols that must always be exported.
15034 include_expsyms=$lt_include_expsyms
15035
15036 # Commands necessary for linking programs (against libraries) with templates.
15037 prelink_cmds=$lt_prelink_cmds
15038
15039 # Commands necessary for finishing linking programs.
15040 postlink_cmds=$lt_postlink_cmds
15041
15042 # Specify filename containing input files.
15043 file_list_spec=$lt_file_list_spec
15044
15045 # How to hardcode a shared library path into an executable.
15046 hardcode_action=$hardcode_action
15047
15048 # ### END LIBTOOL CONFIG
15049
15050 _LT_EOF
15051
15052   case $host_os in
15053   aix3*)
15054     cat <<\_LT_EOF >> "$cfgfile"
15055 # AIX sometimes has problems with the GCC collect2 program.  For some
15056 # reason, if we set the COLLECT_NAMES environment variable, the problems
15057 # vanish in a puff of smoke.
15058 if test "X${COLLECT_NAMES+set}" != Xset; then
15059   COLLECT_NAMES=
15060   export COLLECT_NAMES
15061 fi
15062 _LT_EOF
15063     ;;
15064   esac
15065
15066
15067 ltmain="$ac_aux_dir/ltmain.sh"
15068
15069
15070   # We use sed instead of cat because bash on DJGPP gets confused if
15071   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15072   # text mode, it properly converts lines to CR/LF.  This bash problem
15073   # is reportedly fixed, but why not run on old versions too?
15074   sed '$q' "$ltmain" >> "$cfgfile" \
15075      || (rm -f "$cfgfile"; exit 1)
15076
15077   if test x"$xsi_shell" = xyes; then
15078   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15079 func_dirname ()\
15080 {\
15081 \    case ${1} in\
15082 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15083 \      *  ) func_dirname_result="${3}" ;;\
15084 \    esac\
15085 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15086   && mv -f "$cfgfile.tmp" "$cfgfile" \
15087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15088 test 0 -eq $? || _lt_function_replace_fail=:
15089
15090
15091   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15092 func_basename ()\
15093 {\
15094 \    func_basename_result="${1##*/}"\
15095 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15096   && mv -f "$cfgfile.tmp" "$cfgfile" \
15097     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15098 test 0 -eq $? || _lt_function_replace_fail=:
15099
15100
15101   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15102 func_dirname_and_basename ()\
15103 {\
15104 \    case ${1} in\
15105 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15106 \      *  ) func_dirname_result="${3}" ;;\
15107 \    esac\
15108 \    func_basename_result="${1##*/}"\
15109 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15110   && mv -f "$cfgfile.tmp" "$cfgfile" \
15111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15112 test 0 -eq $? || _lt_function_replace_fail=:
15113
15114
15115   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15116 func_stripname ()\
15117 {\
15118 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15119 \    # positional parameters, so assign one to ordinary parameter first.\
15120 \    func_stripname_result=${3}\
15121 \    func_stripname_result=${func_stripname_result#"${1}"}\
15122 \    func_stripname_result=${func_stripname_result%"${2}"}\
15123 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15124   && mv -f "$cfgfile.tmp" "$cfgfile" \
15125     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15126 test 0 -eq $? || _lt_function_replace_fail=:
15127
15128
15129   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15130 func_split_long_opt ()\
15131 {\
15132 \    func_split_long_opt_name=${1%%=*}\
15133 \    func_split_long_opt_arg=${1#*=}\
15134 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15135   && mv -f "$cfgfile.tmp" "$cfgfile" \
15136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15137 test 0 -eq $? || _lt_function_replace_fail=:
15138
15139
15140   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15141 func_split_short_opt ()\
15142 {\
15143 \    func_split_short_opt_arg=${1#??}\
15144 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15145 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15146   && mv -f "$cfgfile.tmp" "$cfgfile" \
15147     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15148 test 0 -eq $? || _lt_function_replace_fail=:
15149
15150
15151   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15152 func_lo2o ()\
15153 {\
15154 \    case ${1} in\
15155 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15156 \      *)    func_lo2o_result=${1} ;;\
15157 \    esac\
15158 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15159   && mv -f "$cfgfile.tmp" "$cfgfile" \
15160     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15161 test 0 -eq $? || _lt_function_replace_fail=:
15162
15163
15164   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15165 func_xform ()\
15166 {\
15167     func_xform_result=${1%.*}.lo\
15168 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15169   && mv -f "$cfgfile.tmp" "$cfgfile" \
15170     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15171 test 0 -eq $? || _lt_function_replace_fail=:
15172
15173
15174   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15175 func_arith ()\
15176 {\
15177     func_arith_result=$(( $* ))\
15178 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15179   && mv -f "$cfgfile.tmp" "$cfgfile" \
15180     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15181 test 0 -eq $? || _lt_function_replace_fail=:
15182
15183
15184   sed -e '/^func_len ()$/,/^} # func_len /c\
15185 func_len ()\
15186 {\
15187     func_len_result=${#1}\
15188 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15189   && mv -f "$cfgfile.tmp" "$cfgfile" \
15190     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15191 test 0 -eq $? || _lt_function_replace_fail=:
15192
15193 fi
15194
15195 if test x"$lt_shell_append" = xyes; then
15196   sed -e '/^func_append ()$/,/^} # func_append /c\
15197 func_append ()\
15198 {\
15199     eval "${1}+=\\${2}"\
15200 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15201   && mv -f "$cfgfile.tmp" "$cfgfile" \
15202     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15203 test 0 -eq $? || _lt_function_replace_fail=:
15204
15205
15206   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15207 func_append_quoted ()\
15208 {\
15209 \    func_quote_for_eval "${2}"\
15210 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15211 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15212   && mv -f "$cfgfile.tmp" "$cfgfile" \
15213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15214 test 0 -eq $? || _lt_function_replace_fail=:
15215
15216
15217   # Save a `func_append' function call where possible by direct use of '+='
15218   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15219     && mv -f "$cfgfile.tmp" "$cfgfile" \
15220       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15221   test 0 -eq $? || _lt_function_replace_fail=:
15222 else
15223   # Save a `func_append' function call even when '+=' is not available
15224   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15225     && mv -f "$cfgfile.tmp" "$cfgfile" \
15226       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15227   test 0 -eq $? || _lt_function_replace_fail=:
15228 fi
15229
15230 if test x"$_lt_function_replace_fail" = x":"; then
15231   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15232 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15233 fi
15234
15235
15236    mv -f "$cfgfile" "$ofile" ||
15237     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15238   chmod +x "$ofile"
15239
15240  ;;
15241     "libpng-config":F) chmod +x libpng-config ;;
15242
15243   esac
15244 done # for ac_tag
15245
15246
15247 as_fn_exit 0
15248 _ACEOF
15249 ac_clean_files=$ac_clean_files_save
15250
15251 test $ac_write_fail = 0 ||
15252   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15253
15254
15255 # configure is writing to config.log, and then calls config.status.
15256 # config.status does its own redirection, appending to config.log.
15257 # Unfortunately, on DOS this fails, as config.log is still kept open
15258 # by configure, so config.status won't be able to write to it; its
15259 # output is simply discarded.  So we exec the FD to /dev/null,
15260 # effectively closing config.log, so it can be properly (re)opened and
15261 # appended to by config.status.  When coming back to configure, we
15262 # need to make the FD available again.
15263 if test "$no_create" != yes; then
15264   ac_cs_success=:
15265   ac_config_status_args=
15266   test "$silent" = yes &&
15267     ac_config_status_args="$ac_config_status_args --quiet"
15268   exec 5>/dev/null
15269   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15270   exec 5>>config.log
15271   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15272   # would make configure fail if this is the last instruction.
15273   $ac_cs_success || as_fn_exit 1
15274 fi
15275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15276   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15278 fi
15279