Imported Upstream version 1.6.39
[platform/upstream/libpng.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpng 1.6.39.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192     PATH=/empty FPATH=/empty; export PATH FPATH
193     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: png-mng-implement@lists.sourceforge.net about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libpng'
623 PACKAGE_TARNAME='libpng'
624 PACKAGE_VERSION='1.6.39'
625 PACKAGE_STRING='libpng 1.6.39'
626 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
627 PACKAGE_URL=''
628
629 ac_unique_file="pngget.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 PNG_POWERPC_VSX_FALSE
667 PNG_POWERPC_VSX_TRUE
668 PNG_INTEL_SSE_FALSE
669 PNG_INTEL_SSE_TRUE
670 PNG_MIPS_MSA_FALSE
671 PNG_MIPS_MSA_TRUE
672 PNG_ARM_NEON_FALSE
673 PNG_ARM_NEON_TRUE
674 DO_INSTALL_LIBPNG_CONFIG_FALSE
675 DO_INSTALL_LIBPNG_CONFIG_TRUE
676 DO_INSTALL_LIBPNG_PC_FALSE
677 DO_INSTALL_LIBPNG_PC_TRUE
678 DO_INSTALL_LINKS_FALSE
679 DO_INSTALL_LINKS_TRUE
680 DO_PNG_PREFIX_FALSE
681 DO_PNG_PREFIX_TRUE
682 PNG_PREFIX
683 binconfigs
684 pkgconfigdir
685 PNGLIB_RELEASE
686 PNGLIB_MINOR
687 PNGLIB_MAJOR
688 PNGLIB_VERSION
689 SYMBOL_PREFIX
690 HAVE_LD_VERSION_SCRIPT_FALSE
691 HAVE_LD_VERSION_SCRIPT_TRUE
692 HAVE_SOLARIS_LD_FALSE
693 HAVE_SOLARIS_LD_TRUE
694 HAVE_CLOCK_GETTIME_FALSE
695 HAVE_CLOCK_GETTIME_TRUE
696 PNG_COPTS
697 DFNCPP
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 FILECMD
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LIBTOOL
713 OBJDUMP
714 DLLTOOL
715 AS
716 LN_S
717 CPP
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 am__fastdepCCAS_FALSE
732 am__fastdepCCAS_TRUE
733 CCASDEPMODE
734 CCASFLAGS
735 CCAS
736 am__fastdepCC_FALSE
737 am__fastdepCC_TRUE
738 CCDEPMODE
739 am__nodep
740 AMDEPBACKSLASH
741 AMDEP_FALSE
742 AMDEP_TRUE
743 am__include
744 DEPDIR
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 MAINT
753 MAINTAINER_MODE_FALSE
754 MAINTAINER_MODE_TRUE
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 AM_DEFAULT_V
758 AM_V
759 CSCOPE
760 ETAGS
761 CTAGS
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 runstatedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL
824 am__quote'
825 ac_subst_files=''
826 ac_user_opts='
827 enable_option_checking
828 enable_silent_rules
829 enable_maintainer_mode
830 enable_dependency_tracking
831 with_gnu_ld
832 enable_shared
833 enable_static
834 with_pic
835 enable_fast_install
836 with_aix_soname
837 with_sysroot
838 enable_libtool_lock
839 enable_werror
840 with_zlib_prefix
841 with_pkgconfigdir
842 with_binconfigs
843 with_libpng_prefix
844 enable_unversioned_links
845 enable_unversioned_libpng_pc
846 enable_unversioned_libpng_config
847 enable_hardware_optimizations
848 enable_arm_neon
849 enable_mips_msa
850 enable_intel_sse
851 enable_powerpc_vsx
852 '
853       ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CCAS
862 CCASFLAGS
863 CPP
864 LT_SYS_LIBRARY_PATH
865 PNG_COPTS'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921   # If the previous option needs an argument, assign it.
922   if test -n "$ac_prev"; then
923     eval $ac_prev=\$ac_option
924     ac_prev=
925     continue
926   fi
927
928   case $ac_option in
929   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930   *=)   ac_optarg= ;;
931   *)    ac_optarg=yes ;;
932   esac
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: \`$ac_useropt'"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -runstatedir | --runstatedir | --runstatedi | --runstated \
1156   | --runstate | --runstat | --runsta | --runst | --runs \
1157   | --run | --ru | --r)
1158     ac_prev=runstatedir ;;
1159   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161   | --run=* | --ru=* | --r=*)
1162     runstatedir=$ac_optarg ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: \`$ac_useropt'"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: \`$ac_useropt'"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261     ;;
1262
1263   *=*)
1264     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265     # Reject names that are not valid shell variable names.
1266     case $ac_envvar in #(
1267       '' | [0-9]* | *[!_$as_cr_alnum]* )
1268       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269     esac
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290   case $enable_option_checking in
1291     no) ;;
1292     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294   esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir runstatedir
1302 do
1303   eval ac_val=\$$ac_var
1304   # Remove trailing slashes.
1305   case $ac_val in
1306     */ )
1307       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308       eval $ac_var=\$ac_val;;
1309   esac
1310   # Be sure to have absolute directory names.
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures libpng 1.6.39 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking ...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 Program names:
1473   --program-prefix=PREFIX            prepend PREFIX to installed program names
1474   --program-suffix=SUFFIX            append SUFFIX to installed program names
1475   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of libpng 1.6.39:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-option-checking  ignore unrecognized --enable/--with options
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-silent-rules   less verbose build output (undo: "make V=1")
1494   --disable-silent-rules  verbose build output (undo: "make V=0")
1495   --enable-maintainer-mode
1496                           enable make rules and dependencies not useful (and
1497                           sometimes confusing) to the casual installer
1498   --enable-dependency-tracking
1499                           do not reject slow dependency extractors
1500   --disable-dependency-tracking
1501                           speeds up one-time build
1502   --enable-shared[=PKGS]  build shared libraries [default=yes]
1503   --enable-static[=PKGS]  build static libraries [default=yes]
1504   --enable-fast-install[=PKGS]
1505                           optimize for fast installation [default=yes]
1506   --disable-libtool-lock  avoid locking (might break parallel builds)
1507   --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1508                           if it is supported
1509   --enable-unversioned-links
1510                           Installed libpng header files are placed in a
1511                           versioned subdirectory and installed libpng library
1512                           (including DLL) files are versioned. If this option
1513                           is enabled unversioned links will be created
1514                           pointing to the corresponding installed files. If
1515                           you use libpng.pc or libpng-config for all builds
1516                           you do not need these links, but if you compile
1517                           programs directly they will typically #include
1518                           <png.h> and link with -lpng; in that case you need
1519                           the links. The links can be installed manually using
1520                           'make install-header-links' and 'make
1521                           install-library-links' and can be removed using the
1522                           corresponding uninstall- targets. If you do enable
1523                           this option every libpng 'make install' will
1524                           recreate the links to point to the just installed
1525                           version of libpng. The default is to create the
1526                           links; use --disable-unversioned-links to change
1527                           this
1528   --enable-unversioned-libpng-pc
1529                           Install the configuration file 'libpng.pc' as a link
1530                           to the versioned version. This is done by default -
1531                           use --disable-unversioned-libpng-pc to change this.
1532   --enable-unversioned-libpng-config
1533                           Install the configuration file 'libpng-config' as a
1534                           link to the versioned version. This is done by
1535                           default - use --disable-unversioned-libpng-config to
1536                           change this.
1537   --enable-hardware-optimizations
1538                           Enable hardware optimizations: =no/off, yes/on:
1539   --enable-arm-neon     Enable ARM NEON optimizations: =no/off, check, api,
1540                           yes/on: no/off: disable the optimizations; check:
1541                           use internal checking code (deprecated and poorly
1542                           supported); api: disable by default, enable by a
1543                           call to png_set_option; yes/on: turn on
1544                           unconditionally. If not specified: determined by the
1545                           compiler.
1546   --enable-mips-msa     Enable MIPS MSA optimizations: =no/off, check, api,
1547                           yes/on: no/off: disable the optimizations; check:
1548                           use internal checking code (deprecated and poorly
1549                           supported); api: disable by default, enable by a
1550                           call to png_set_option; yes/on: turn on
1551                           unconditionally. If not specified: determined by the
1552                           compiler.
1553   --enable-intel-sse    Enable Intel SSE optimizations: =no/off, yes/on:
1554                           no/off: disable the optimizations; yes/on: enable
1555                           the optimizations. If not specified: determined by
1556                           the compiler.
1557   --enable-powerpc-vsx  Enable POWERPC VSX optimizations: =no/off, check,
1558                           api, yes/on: no/off: disable the optimizations;
1559                           check: use internal checking code api: disable by
1560                           default, enable by a call to png_set_option yes/on:
1561                           turn on unconditionally. If not specified:
1562                           determined by the compiler.
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1568   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1569                           both]
1570   --with-aix-soname=aix|svr4|both
1571                           shared library versioning (aka "SONAME") variant to
1572                           provide on AIX, [default=aix].
1573   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1574                           compiler's sysroot if not specified).
1575   --with-zlib-prefix    prefix that may have been used in installed zlib
1576   --with-pkgconfigdir   Use the specified pkgconfig dir (default is
1577                           libdir/pkgconfig)
1578   --with-binconfigs     Generate shell libpng-config scripts as well as
1579                           pkg-config data [default=yes]
1580   --with-libpng-prefix  prefix libpng exported function (API) names with the
1581                           given value
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CCAS        assembler compiler command (defaults to CC)
1592   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1593   CPP         C preprocessor
1594   LT_SYS_LIBRARY_PATH
1595               User-defined run-time library search path.
1596   PNG_COPTS   additional flags for the C compiler, use this for options that
1597               would cause configure itself to fail
1598
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1601
1602 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608   # If there are subdirs, report their specific --help.
1609   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610     test -d "$ac_dir" ||
1611       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612       continue
1613     ac_builddir=.
1614
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *)
1618   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1619   # A ".." for each directory in $ac_dir_suffix.
1620   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621   case $ac_top_builddir_sub in
1622   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624   esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1630
1631 case $srcdir in
1632   .)  # We are building in place.
1633     ac_srcdir=.
1634     ac_top_srcdir=$ac_top_builddir_sub
1635     ac_abs_top_srcdir=$ac_pwd ;;
1636   [\\/]* | ?:[\\/]* )  # Absolute name.
1637     ac_srcdir=$srcdir$ac_dir_suffix;
1638     ac_top_srcdir=$srcdir
1639     ac_abs_top_srcdir=$srcdir ;;
1640   *) # Relative name.
1641     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642     ac_top_srcdir=$ac_top_build_prefix$srcdir
1643     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647     cd "$ac_dir" || { ac_status=$?; continue; }
1648     # Check for configure.gnu first; this name is used for a wrapper for
1649     # Metaconfig's "Configure" on case-insensitive file systems.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1662
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 libpng configure 1.6.39
1667 generated by GNU Autoconf 2.71
1668
1669 Copyright (C) 2021 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673   exit
1674 fi
1675
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1679
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest.beam
1687   if { { ac_try="$ac_compile"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694   (eval "$ac_compile") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest.$ac_objext
1706 then :
1707   ac_retval=0
1708 else $as_nop
1709   printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712         ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 printf "%s\n" "$ac_try_echo"; } >&5
1732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733   ac_status=$?
1734   if test -s conftest.err; then
1735     grep -v '^ *+' conftest.err >conftest.er1
1736     cat conftest.er1 >&5
1737     mv -f conftest.er1 conftest.err
1738   fi
1739   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } > conftest.i && {
1741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742          test ! -s conftest.err
1743        }
1744 then :
1745   ac_retval=0
1746 else $as_nop
1747   printf "%s\n" "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750     ac_retval=1
1751 fi
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_cpp
1756
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1764   if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771   (eval "$ac_link") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && {
1780          test -z "$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        } && test -s conftest$ac_exeext && {
1783          test "$cross_compiling" = yes ||
1784          test -x conftest$ac_exeext
1785        }
1786 then :
1787   ac_retval=0
1788 else $as_nop
1789   printf "%s\n" "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792         ac_retval=1
1793 fi
1794   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796   # interfere with the next link command; also delete a directory that is
1797   # left behind by Apple's compiler.  We do this before executing the actions.
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_link
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 printf %s "checking for $2... " >&6; }
1813 if eval test \${$3+y}
1814 then :
1815   printf %s "(cached) " >&6
1816 else $as_nop
1817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 $4
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"
1823 then :
1824   eval "$3=yes"
1825 else $as_nop
1826   eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 printf "%s\n" "$ac_res" >&6; }
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_header_compile
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printf %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847   printf %s "(cached) " >&6
1848 else $as_nop
1849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856    which can conflict with char $2 (); below.  */
1857
1858 #include <limits.h>
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862    Use char because int might match the return type of a GCC
1863    builtin and then its argument prototype would still apply.  */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869     to always fail with ENOSYS.  Some functions are actually named
1870     something starting with __ and the normal name is an alias.  */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main (void)
1877 {
1878 return $2 ();
1879   ;
1880   return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"
1884 then :
1885   eval "$3=yes"
1886 else $as_nop
1887   eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890     conftest$ac_exeext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 printf "%s\n" "$ac_res" >&6; }
1895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_func
1898 ac_configure_args_raw=
1899 for ac_arg
1900 do
1901   case $ac_arg in
1902   *\'*)
1903     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904   esac
1905   as_fn_append ac_configure_args_raw " '$ac_arg'"
1906 done
1907
1908 case $ac_configure_args_raw in
1909   *$as_nl*)
1910     ac_safe_unquote= ;;
1911   *)
1912     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1913     ac_unsafe_a="$ac_unsafe_z#~"
1914     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1915     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1916 esac
1917
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1921
1922 It was created by libpng $as_me 1.6.39, which was
1923 generated by GNU Autoconf 2.71.  Invocation command line was
1924
1925   $ $0$ac_configure_args_raw
1926
1927 _ACEOF
1928 exec 5>>config.log
1929 {
1930 cat <<_ASUNAME
1931 ## --------- ##
1932 ## Platform. ##
1933 ## --------- ##
1934
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1943
1944 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1945 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1948 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1949 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1950 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1951
1952 _ASUNAME
1953
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   case $as_dir in #(((
1959     '') as_dir=./ ;;
1960     */) ;;
1961     *) as_dir=$as_dir/ ;;
1962   esac
1963     printf "%s\n" "PATH: $as_dir"
1964   done
1965 IFS=$as_save_IFS
1966
1967 } >&5
1968
1969 cat >&5 <<_ACEOF
1970
1971
1972 ## ----------- ##
1973 ## Core tests. ##
1974 ## ----------- ##
1975
1976 _ACEOF
1977
1978
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1984 ac_configure_args=
1985 ac_configure_args0=
1986 ac_configure_args1=
1987 ac_must_keep_next=false
1988 for ac_pass in 1 2
1989 do
1990   for ac_arg
1991   do
1992     case $ac_arg in
1993     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995     | -silent | --silent | --silen | --sile | --sil)
1996       continue ;;
1997     *\'*)
1998       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999     esac
2000     case $ac_pass in
2001     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002     2)
2003       as_fn_append ac_configure_args1 " '$ac_arg'"
2004       if test $ac_must_keep_next = true; then
2005         ac_must_keep_next=false # Got value, back to normal.
2006       else
2007         case $ac_arg in
2008           *=* | --config-cache | -C | -disable-* | --disable-* \
2009           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011           | -with-* | --with-* | -without-* | --without-* | --x)
2012             case "$ac_configure_args0 " in
2013               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014             esac
2015             ;;
2016           -* ) ac_must_keep_next=true ;;
2017         esac
2018       fi
2019       as_fn_append ac_configure_args " '$ac_arg'"
2020       ;;
2021     esac
2022   done
2023 done
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2026
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log.  We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2033   # Sanitize IFS.
2034   IFS=" ""      $as_nl"
2035   # Save into config.log some information that might help in debugging.
2036   {
2037     echo
2038
2039     printf "%s\n" "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2042     echo
2043     # The following way of writing the cache mishandles newlines in values,
2044 (
2045   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046     eval ac_val=\$$ac_var
2047     case $ac_val in #(
2048     *${as_nl}*)
2049       case $ac_var in #(
2050       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052       esac
2053       case $ac_var in #(
2054       _ | IFS | as_nl) ;; #(
2055       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056       *) { eval $ac_var=; unset $ac_var;} ;;
2057       esac ;;
2058     esac
2059   done
2060   (set) 2>&1 |
2061     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062     *${as_nl}ac_space=\ *)
2063       sed -n \
2064         "s/'\''/'\''\\\\'\'''\''/g;
2065           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066       ;; #(
2067     *)
2068       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069       ;;
2070     esac |
2071     sort
2072 )
2073     echo
2074
2075     printf "%s\n" "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2078     echo
2079     for ac_var in $ac_subst_vars
2080     do
2081       eval ac_val=\$$ac_var
2082       case $ac_val in
2083       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084       esac
2085       printf "%s\n" "$ac_var='\''$ac_val'\''"
2086     done | sort
2087     echo
2088
2089     if test -n "$ac_subst_files"; then
2090       printf "%s\n" "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2093       echo
2094       for ac_var in $ac_subst_files
2095       do
2096         eval ac_val=\$$ac_var
2097         case $ac_val in
2098         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099         esac
2100         printf "%s\n" "$ac_var='\''$ac_val'\''"
2101       done | sort
2102       echo
2103     fi
2104
2105     if test -s confdefs.h; then
2106       printf "%s\n" "## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##"
2109       echo
2110       cat confdefs.h
2111       echo
2112     fi
2113     test "$ac_signal" != 0 &&
2114       printf "%s\n" "$as_me: caught signal $ac_signal"
2115     printf "%s\n" "$as_me: exit $exit_status"
2116   } >&5
2117   rm -f core *.core core.conftest.* &&
2118     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119     exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2125
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2128
2129 printf "%s\n" "/* confdefs.h */" > confdefs.h
2130
2131 # Predefined preprocessor variables.
2132
2133 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2134
2135 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2136
2137 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2138
2139 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2140
2141 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2142
2143 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2144
2145
2146 # Let the site file select an alternate cache file if it wants to.
2147 # Prefer an explicitly selected file to automatically selected ones.
2148 if test -n "$CONFIG_SITE"; then
2149   ac_site_files="$CONFIG_SITE"
2150 elif test "x$prefix" != xNONE; then
2151   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2152 else
2153   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2154 fi
2155
2156 for ac_site_file in $ac_site_files
2157 do
2158   case $ac_site_file in #(
2159   */*) :
2160      ;; #(
2161   *) :
2162     ac_site_file=./$ac_site_file ;;
2163 esac
2164   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2165     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2167     sed 's/^/| /' "$ac_site_file" >&5
2168     . "$ac_site_file" \
2169       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173   fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177   # Some versions of bash will fail to source /dev/null (special files
2178   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2179   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2182     case $cache_file in
2183       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184       *)                      . "./$cache_file";;
2185     esac
2186   fi
2187 else
2188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2190   >$cache_file
2191 fi
2192
2193 # Test code for whether the C compiler supports C89 (global declarations)
2194 ac_c_conftest_c89_globals='
2195 /* Does the compiler advertise C89 conformance?
2196    Do not test the value of __STDC__, because some compilers set it to 0
2197    while being otherwise adequately conformant. */
2198 #if !defined __STDC__
2199 # error "Compiler does not advertise C89 conformance"
2200 #endif
2201
2202 #include <stddef.h>
2203 #include <stdarg.h>
2204 struct stat;
2205 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2206 struct buf { int x; };
2207 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2208 static char *e (p, i)
2209      char **p;
2210      int i;
2211 {
2212   return p[i];
2213 }
2214 static char *f (char * (*g) (char **, int), char **p, ...)
2215 {
2216   char *s;
2217   va_list v;
2218   va_start (v,p);
2219   s = g (p, va_arg (v,int));
2220   va_end (v);
2221   return s;
2222 }
2223
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2225    function prototypes and stuff, but not \xHH hex character constants.
2226    These do not provoke an error unfortunately, instead are silently treated
2227    as an "x".  The following induces an error, until -std is added to get
2228    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2229    array size at least.  It is necessary to write \x00 == 0 to get something
2230    that is true only with -std.  */
2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2232
2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2234    inside strings and character constants.  */
2235 #define FOO(x) '\''x'\''
2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2237
2238 int test (int i, double x);
2239 struct s1 {int (*f) (int a);};
2240 struct s2 {int (*f) (double a);};
2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2242                int, int);'
2243
2244 # Test code for whether the C compiler supports C89 (body of main).
2245 ac_c_conftest_c89_main='
2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2247 '
2248
2249 # Test code for whether the C compiler supports C99 (global declarations)
2250 ac_c_conftest_c99_globals='
2251 // Does the compiler advertise C99 conformance?
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2253 # error "Compiler does not advertise C99 conformance"
2254 #endif
2255
2256 #include <stdbool.h>
2257 extern int puts (const char *);
2258 extern int printf (const char *, ...);
2259 extern int dprintf (int, const char *, ...);
2260 extern void *malloc (size_t);
2261
2262 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2263 // dprintf is used instead of fprintf to avoid needing to declare
2264 // FILE and stderr.
2265 #define debug(...) dprintf (2, __VA_ARGS__)
2266 #define showlist(...) puts (#__VA_ARGS__)
2267 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2268 static void
2269 test_varargs_macros (void)
2270 {
2271   int x = 1234;
2272   int y = 5678;
2273   debug ("Flag");
2274   debug ("X = %d\n", x);
2275   showlist (The first, second, and third items.);
2276   report (x>y, "x is %d but y is %d", x, y);
2277 }
2278
2279 // Check long long types.
2280 #define BIG64 18446744073709551615ull
2281 #define BIG32 4294967295ul
2282 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2283 #if !BIG_OK
2284   #error "your preprocessor is broken"
2285 #endif
2286 #if BIG_OK
2287 #else
2288   #error "your preprocessor is broken"
2289 #endif
2290 static long long int bignum = -9223372036854775807LL;
2291 static unsigned long long int ubignum = BIG64;
2292
2293 struct incomplete_array
2294 {
2295   int datasize;
2296   double data[];
2297 };
2298
2299 struct named_init {
2300   int number;
2301   const wchar_t *name;
2302   double average;
2303 };
2304
2305 typedef const char *ccp;
2306
2307 static inline int
2308 test_restrict (ccp restrict text)
2309 {
2310   // See if C++-style comments work.
2311   // Iterate through items via the restricted pointer.
2312   // Also check for declarations in for loops.
2313   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2314     continue;
2315   return 0;
2316 }
2317
2318 // Check varargs and va_copy.
2319 static bool
2320 test_varargs (const char *format, ...)
2321 {
2322   va_list args;
2323   va_start (args, format);
2324   va_list args_copy;
2325   va_copy (args_copy, args);
2326
2327   const char *str = "";
2328   int number = 0;
2329   float fnumber = 0;
2330
2331   while (*format)
2332     {
2333       switch (*format++)
2334         {
2335         case '\''s'\'': // string
2336           str = va_arg (args_copy, const char *);
2337           break;
2338         case '\''d'\'': // int
2339           number = va_arg (args_copy, int);
2340           break;
2341         case '\''f'\'': // float
2342           fnumber = va_arg (args_copy, double);
2343           break;
2344         default:
2345           break;
2346         }
2347     }
2348   va_end (args_copy);
2349   va_end (args);
2350
2351   return *str && number && fnumber;
2352 }
2353 '
2354
2355 # Test code for whether the C compiler supports C99 (body of main).
2356 ac_c_conftest_c99_main='
2357   // Check bool.
2358   _Bool success = false;
2359   success |= (argc != 0);
2360
2361   // Check restrict.
2362   if (test_restrict ("String literal") == 0)
2363     success = true;
2364   char *restrict newvar = "Another string";
2365
2366   // Check varargs.
2367   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2368   test_varargs_macros ();
2369
2370   // Check flexible array members.
2371   struct incomplete_array *ia =
2372     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2373   ia->datasize = 10;
2374   for (int i = 0; i < ia->datasize; ++i)
2375     ia->data[i] = i * 1.234;
2376
2377   // Check named initializers.
2378   struct named_init ni = {
2379     .number = 34,
2380     .name = L"Test wide string",
2381     .average = 543.34343,
2382   };
2383
2384   ni.number = 58;
2385
2386   int dynamic_array[ni.number];
2387   dynamic_array[0] = argv[0][0];
2388   dynamic_array[ni.number - 1] = 543;
2389
2390   // work around unused variable warnings
2391   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2392          || dynamic_array[ni.number - 1] != 543);
2393 '
2394
2395 # Test code for whether the C compiler supports C11 (global declarations)
2396 ac_c_conftest_c11_globals='
2397 // Does the compiler advertise C11 conformance?
2398 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2399 # error "Compiler does not advertise C11 conformance"
2400 #endif
2401
2402 // Check _Alignas.
2403 char _Alignas (double) aligned_as_double;
2404 char _Alignas (0) no_special_alignment;
2405 extern char aligned_as_int;
2406 char _Alignas (0) _Alignas (int) aligned_as_int;
2407
2408 // Check _Alignof.
2409 enum
2410 {
2411   int_alignment = _Alignof (int),
2412   int_array_alignment = _Alignof (int[100]),
2413   char_alignment = _Alignof (char)
2414 };
2415 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2416
2417 // Check _Noreturn.
2418 int _Noreturn does_not_return (void) { for (;;) continue; }
2419
2420 // Check _Static_assert.
2421 struct test_static_assert
2422 {
2423   int x;
2424   _Static_assert (sizeof (int) <= sizeof (long int),
2425                   "_Static_assert does not work in struct");
2426   long int y;
2427 };
2428
2429 // Check UTF-8 literals.
2430 #define u8 syntax error!
2431 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2432
2433 // Check duplicate typedefs.
2434 typedef long *long_ptr;
2435 typedef long int *long_ptr;
2436 typedef long_ptr long_ptr;
2437
2438 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2439 struct anonymous
2440 {
2441   union {
2442     struct { int i; int j; };
2443     struct { int k; long int l; } w;
2444   };
2445   int m;
2446 } v1;
2447 '
2448
2449 # Test code for whether the C compiler supports C11 (body of main).
2450 ac_c_conftest_c11_main='
2451   _Static_assert ((offsetof (struct anonymous, i)
2452                    == offsetof (struct anonymous, w.k)),
2453                   "Anonymous union alignment botch");
2454   v1.i = 2;
2455   v1.w.k = 5;
2456   ok |= v1.i != 5;
2457 '
2458
2459 # Test code for whether the C compiler supports C11 (complete).
2460 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2461 ${ac_c_conftest_c99_globals}
2462 ${ac_c_conftest_c11_globals}
2463
2464 int
2465 main (int argc, char **argv)
2466 {
2467   int ok = 0;
2468   ${ac_c_conftest_c89_main}
2469   ${ac_c_conftest_c99_main}
2470   ${ac_c_conftest_c11_main}
2471   return ok;
2472 }
2473 "
2474
2475 # Test code for whether the C compiler supports C99 (complete).
2476 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2477 ${ac_c_conftest_c99_globals}
2478
2479 int
2480 main (int argc, char **argv)
2481 {
2482   int ok = 0;
2483   ${ac_c_conftest_c89_main}
2484   ${ac_c_conftest_c99_main}
2485   return ok;
2486 }
2487 "
2488
2489 # Test code for whether the C compiler supports C89 (complete).
2490 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2491
2492 int
2493 main (int argc, char **argv)
2494 {
2495   int ok = 0;
2496   ${ac_c_conftest_c89_main}
2497   return ok;
2498 }
2499 "
2500
2501 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2502 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2503 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2504 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2505 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2506 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2507 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2508 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2509 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2510
2511 # Auxiliary files required by this configure script.
2512 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2513
2514 # Locations in which to look for auxiliary files.
2515 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2516
2517 # Search for a directory containing all of the required auxiliary files,
2518 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2519 # If we don't find one directory that contains all the files we need,
2520 # we report the set of missing files from the *first* directory in
2521 # $ac_aux_dir_candidates and give up.
2522 ac_missing_aux_files=""
2523 ac_first_candidate=:
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 as_found=false
2527 for as_dir in $ac_aux_dir_candidates
2528 do
2529   IFS=$as_save_IFS
2530   case $as_dir in #(((
2531     '') as_dir=./ ;;
2532     */) ;;
2533     *) as_dir=$as_dir/ ;;
2534   esac
2535   as_found=:
2536
2537   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2538   ac_aux_dir_found=yes
2539   ac_install_sh=
2540   for ac_aux in $ac_aux_files
2541   do
2542     # As a special case, if "install-sh" is required, that requirement
2543     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2544     # and $ac_install_sh is set appropriately for whichever one is found.
2545     if test x"$ac_aux" = x"install-sh"
2546     then
2547       if test -f "${as_dir}install-sh"; then
2548         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2549         ac_install_sh="${as_dir}install-sh -c"
2550       elif test -f "${as_dir}install.sh"; then
2551         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2552         ac_install_sh="${as_dir}install.sh -c"
2553       elif test -f "${as_dir}shtool"; then
2554         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2555         ac_install_sh="${as_dir}shtool install -c"
2556       else
2557         ac_aux_dir_found=no
2558         if $ac_first_candidate; then
2559           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2560         else
2561           break
2562         fi
2563       fi
2564     else
2565       if test -f "${as_dir}${ac_aux}"; then
2566         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2567       else
2568         ac_aux_dir_found=no
2569         if $ac_first_candidate; then
2570           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2571         else
2572           break
2573         fi
2574       fi
2575     fi
2576   done
2577   if test "$ac_aux_dir_found" = yes; then
2578     ac_aux_dir="$as_dir"
2579     break
2580   fi
2581   ac_first_candidate=false
2582
2583   as_found=false
2584 done
2585 IFS=$as_save_IFS
2586 if $as_found
2587 then :
2588
2589 else $as_nop
2590   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2591 fi
2592
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 if test -f "${ac_aux_dir}config.guess"; then
2599   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2600 fi
2601 if test -f "${ac_aux_dir}config.sub"; then
2602   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2603 fi
2604 if test -f "$ac_aux_dir/configure"; then
2605   ac_configure="$SHELL ${ac_aux_dir}configure"
2606 fi
2607
2608 # Check that the precious variables saved in the cache have kept the same
2609 # value.
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613   eval ac_new_set=\$ac_env_${ac_var}_set
2614   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615   eval ac_new_val=\$ac_env_${ac_var}_value
2616   case $ac_old_set,$ac_new_set in
2617     set,)
2618       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620       ac_cache_corrupted=: ;;
2621     ,set)
2622       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624       ac_cache_corrupted=: ;;
2625     ,);;
2626     *)
2627       if test "x$ac_old_val" != "x$ac_new_val"; then
2628         # differences in whitespace do not lead to failure.
2629         ac_old_val_w=`echo x $ac_old_val`
2630         ac_new_val_w=`echo x $ac_new_val`
2631         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634           ac_cache_corrupted=:
2635         else
2636           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638           eval $ac_var=\$ac_old_val
2639         fi
2640         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2641 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2642         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2643 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2644       fi;;
2645   esac
2646   # Pass precious variables to config.status.
2647   if test "$ac_new_set" = set; then
2648     case $ac_new_val in
2649     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650     *) ac_arg=$ac_var=$ac_new_val ;;
2651     esac
2652     case " $ac_configure_args " in
2653       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2654       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655     esac
2656   fi
2657 done
2658 if $ac_cache_corrupted; then
2659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2663   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2664             and start over" "$LINENO" 5
2665 fi
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2669
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676
2677
2678
2679 # libpng does not follow GNU file name conventions (hence 'foreign')
2680 # color-tests requires automake 1.11 or later
2681 # silent-rules requires automake 1.11 or later
2682 # dist-xz requires automake 1.11 or later
2683 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2684 # 1.13 is required for parallel tests
2685 am__api_version='1.16'
2686
2687
2688
2689   # Find a good install program.  We prefer a C program (faster),
2690 # so one script is as good as another.  But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2695 # AIX /bin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 # Reject install programs that cannot install multiple files.
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704 printf %s "checking for a BSD-compatible install... " >&6; }
2705 if test -z "$INSTALL"; then
2706 if test ${ac_cv_path_install+y}
2707 then :
2708   printf %s "(cached) " >&6
2709 else $as_nop
2710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   case $as_dir in #(((
2715     '') as_dir=./ ;;
2716     */) ;;
2717     *) as_dir=$as_dir/ ;;
2718   esac
2719     # Account for fact that we put trailing slashes in our PATH walk.
2720 case $as_dir in #((
2721   ./ | /[cC]/* | \
2722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724   /usr/ucb/* ) ;;
2725   *)
2726     # OSF1 and SCO ODT 3.0 have their own names for install.
2727     # Don't use installbsd from OSF since it installs stuff as root
2728     # by default.
2729     for ac_prog in ginstall scoinst install; do
2730       for ac_exec_ext in '' $ac_executable_extensions; do
2731         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2732           if test $ac_prog = install &&
2733             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734             # AIX install.  It has an incompatible calling convention.
2735             :
2736           elif test $ac_prog = install &&
2737             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738             # program-specific install script used by HP pwplus--don't use.
2739             :
2740           else
2741             rm -rf conftest.one conftest.two conftest.dir
2742             echo one > conftest.one
2743             echo two > conftest.two
2744             mkdir conftest.dir
2745             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2746               test -s conftest.one && test -s conftest.two &&
2747               test -s conftest.dir/conftest.one &&
2748               test -s conftest.dir/conftest.two
2749             then
2750               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2751               break 3
2752             fi
2753           fi
2754         fi
2755       done
2756     done
2757     ;;
2758 esac
2759
2760   done
2761 IFS=$as_save_IFS
2762
2763 rm -rf conftest.one conftest.two conftest.dir
2764
2765 fi
2766   if test ${ac_cv_path_install+y}; then
2767     INSTALL=$ac_cv_path_install
2768   else
2769     # As a last resort, use the slow shell script.  Don't cache a
2770     # value for INSTALL within a source directory, because that will
2771     # break other packages using the cache if that directory is
2772     # removed, or if the value is a relative name.
2773     INSTALL=$ac_install_sh
2774   fi
2775 fi
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 printf "%s\n" "$INSTALL" >&6; }
2778
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 printf %s "checking whether build environment is sane... " >&6; }
2789 # Reject unsafe characters in $srcdir or the absolute working directory
2790 # name.  Accept space and tab only in the latter.
2791 am_lf='
2792 '
2793 case `pwd` in
2794   *[\\\"\#\$\&\'\`$am_lf]*)
2795     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2796 esac
2797 case $srcdir in
2798   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2799     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2800 esac
2801
2802 # Do 'set' in a subshell so we don't clobber the current shell's
2803 # arguments.  Must try -L first in case configure is actually a
2804 # symlink; some systems play weird games with the mod time of symlinks
2805 # (eg FreeBSD returns the mod time of the symlink's containing
2806 # directory).
2807 if (
2808    am_has_slept=no
2809    for am_try in 1 2; do
2810      echo "timestamp, slept: $am_has_slept" > conftest.file
2811      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812      if test "$*" = "X"; then
2813         # -L didn't work.
2814         set X `ls -t "$srcdir/configure" conftest.file`
2815      fi
2816      if test "$*" != "X $srcdir/configure conftest.file" \
2817         && test "$*" != "X conftest.file $srcdir/configure"; then
2818
2819         # If neither matched, then we have a broken ls.  This can happen
2820         # if, for instance, CONFIG_SHELL is bash and it inherits a
2821         # broken ls alias from the environment.  This has actually
2822         # happened.  Such a system could not be considered "sane".
2823         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2824   alias in your environment" "$LINENO" 5
2825      fi
2826      if test "$2" = conftest.file || test $am_try -eq 2; then
2827        break
2828      fi
2829      # Just in case.
2830      sleep 1
2831      am_has_slept=yes
2832    done
2833    test "$2" = conftest.file
2834    )
2835 then
2836    # Ok.
2837    :
2838 else
2839    as_fn_error $? "newly created file is older than distributed files!
2840 Check your system clock" "$LINENO" 5
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843 printf "%s\n" "yes" >&6; }
2844 # If we didn't sleep, we still need to ensure time stamps of config.status and
2845 # generated files are strictly newer.
2846 am_sleep_pid=
2847 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2848   ( sleep 1 ) &
2849   am_sleep_pid=$!
2850 fi
2851
2852 rm -f conftest.file
2853
2854 test "$program_prefix" != NONE &&
2855   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2856 # Use a double $ so make ignores it.
2857 test "$program_suffix" != NONE &&
2858   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2859 # Double any \ or $.
2860 # By default was `s,x,x', remove it if useless.
2861 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2862 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2863
2864
2865 # Expand $ac_aux_dir to an absolute path.
2866 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2867
2868
2869   if test x"${MISSING+set}" != xset; then
2870   MISSING="\${SHELL} '$am_aux_dir/missing'"
2871 fi
2872 # Use eval to expand $SHELL
2873 if eval "$MISSING --is-lightweight"; then
2874   am_missing_run="$MISSING "
2875 else
2876   am_missing_run=
2877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2878 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2879 fi
2880
2881 if test x"${install_sh+set}" != xset; then
2882   case $am_aux_dir in
2883   *\ * | *\     *)
2884     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2885   *)
2886     install_sh="\${SHELL} $am_aux_dir/install-sh"
2887   esac
2888 fi
2889
2890 # Installed binaries are usually stripped using 'strip' when the user
2891 # run "make install-strip".  However 'strip' might not be the right
2892 # tool to use in cross-compilation environments, therefore Automake
2893 # will honor the 'STRIP' environment variable to overrule this program.
2894 if test "$cross_compiling" != no; then
2895   if test -n "$ac_tool_prefix"; then
2896   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}strip; ac_word=$2
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 printf %s "checking for $ac_word... " >&6; }
2900 if test ${ac_cv_prog_STRIP+y}
2901 then :
2902   printf %s "(cached) " >&6
2903 else $as_nop
2904   if test -n "$STRIP"; then
2905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   case $as_dir in #(((
2912     '') as_dir=./ ;;
2913     */) ;;
2914     *) as_dir=$as_dir/ ;;
2915   esac
2916     for ac_exec_ext in '' $ac_executable_extensions; do
2917   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2919     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923   done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 STRIP=$ac_cv_prog_STRIP
2929 if test -n "$STRIP"; then
2930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2931 printf "%s\n" "$STRIP" >&6; }
2932 else
2933   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 printf "%s\n" "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_STRIP"; then
2940   ac_ct_STRIP=$STRIP
2941   # Extract the first word of "strip", so it can be a program name with args.
2942 set dummy strip; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_ac_ct_STRIP+y}
2946 then :
2947   printf %s "(cached) " >&6
2948 else $as_nop
2949   if test -n "$ac_ct_STRIP"; then
2950   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   case $as_dir in #(((
2957     '') as_dir=./ ;;
2958     */) ;;
2959     *) as_dir=$as_dir/ ;;
2960   esac
2961     for ac_exec_ext in '' $ac_executable_extensions; do
2962   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963     ac_cv_prog_ac_ct_STRIP="strip"
2964     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968   done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974 if test -n "$ac_ct_STRIP"; then
2975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976 printf "%s\n" "$ac_ct_STRIP" >&6; }
2977 else
2978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 printf "%s\n" "no" >&6; }
2980 fi
2981
2982   if test "x$ac_ct_STRIP" = x; then
2983     STRIP=":"
2984   else
2985     case $cross_compiling:$ac_tool_warned in
2986 yes:)
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991     STRIP=$ac_ct_STRIP
2992   fi
2993 else
2994   STRIP="$ac_cv_prog_STRIP"
2995 fi
2996
2997 fi
2998 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999
3000
3001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3002 printf %s "checking for a race-free mkdir -p... " >&6; }
3003 if test -z "$MKDIR_P"; then
3004   if test ${ac_cv_path_mkdir+y}
3005 then :
3006   printf %s "(cached) " >&6
3007 else $as_nop
3008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3010 do
3011   IFS=$as_save_IFS
3012   case $as_dir in #(((
3013     '') as_dir=./ ;;
3014     */) ;;
3015     *) as_dir=$as_dir/ ;;
3016   esac
3017     for ac_prog in mkdir gmkdir; do
3018          for ac_exec_ext in '' $ac_executable_extensions; do
3019            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3020            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021              'mkdir ('*'coreutils) '* | \
3022              'BusyBox '* | \
3023              'mkdir (fileutils) '4.1*)
3024                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3025                break 3;;
3026            esac
3027          done
3028        done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033
3034   test -d ./--version && rmdir ./--version
3035   if test ${ac_cv_path_mkdir+y}; then
3036     MKDIR_P="$ac_cv_path_mkdir -p"
3037   else
3038     # As a last resort, use the slow shell script.  Don't cache a
3039     # value for MKDIR_P within a source directory, because that will
3040     # break other packages using the cache if that directory is
3041     # removed, or if the value is a relative name.
3042     MKDIR_P="$ac_install_sh -d"
3043   fi
3044 fi
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046 printf "%s\n" "$MKDIR_P" >&6; }
3047
3048 for ac_prog in gawk mawk nawk awk
3049 do
3050   # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 printf %s "checking for $ac_word... " >&6; }
3054 if test ${ac_cv_prog_AWK+y}
3055 then :
3056   printf %s "(cached) " >&6
3057 else $as_nop
3058   if test -n "$AWK"; then
3059   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064   IFS=$as_save_IFS
3065   case $as_dir in #(((
3066     '') as_dir=./ ;;
3067     */) ;;
3068     *) as_dir=$as_dir/ ;;
3069   esac
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3072     ac_cv_prog_AWK="$ac_prog"
3073     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 AWK=$ac_cv_prog_AWK
3083 if test -n "$AWK"; then
3084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3085 printf "%s\n" "$AWK" >&6; }
3086 else
3087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf "%s\n" "no" >&6; }
3089 fi
3090
3091
3092   test -n "$AWK" && break
3093 done
3094
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3097 set x ${MAKE-make}
3098 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3100 then :
3101   printf %s "(cached) " >&6
3102 else $as_nop
3103   cat >conftest.make <<\_ACEOF
3104 SHELL = /bin/sh
3105 all:
3106         @echo '@@@%%%=$(MAKE)=@@@%%%'
3107 _ACEOF
3108 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3109 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3110   *@@@%%%=?*=@@@%%%*)
3111     eval ac_cv_prog_make_${ac_make}_set=yes;;
3112   *)
3113     eval ac_cv_prog_make_${ac_make}_set=no;;
3114 esac
3115 rm -f conftest.make
3116 fi
3117 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3119 printf "%s\n" "yes" >&6; }
3120   SET_MAKE=
3121 else
3122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 printf "%s\n" "no" >&6; }
3124   SET_MAKE="MAKE=${MAKE-make}"
3125 fi
3126
3127 rm -rf .tst 2>/dev/null
3128 mkdir .tst 2>/dev/null
3129 if test -d .tst; then
3130   am__leading_dot=.
3131 else
3132   am__leading_dot=_
3133 fi
3134 rmdir .tst 2>/dev/null
3135
3136 # Check whether --enable-silent-rules was given.
3137 if test ${enable_silent_rules+y}
3138 then :
3139   enableval=$enable_silent_rules;
3140 fi
3141
3142 case $enable_silent_rules in # (((
3143   yes) AM_DEFAULT_VERBOSITY=0;;
3144    no) AM_DEFAULT_VERBOSITY=1;;
3145     *) AM_DEFAULT_VERBOSITY=1;;
3146 esac
3147 am_make=${MAKE-make}
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3149 printf %s "checking whether $am_make supports nested variables... " >&6; }
3150 if test ${am_cv_make_support_nested_variables+y}
3151 then :
3152   printf %s "(cached) " >&6
3153 else $as_nop
3154   if printf "%s\n" 'TRUE=$(BAR$(V))
3155 BAR0=false
3156 BAR1=true
3157 V=1
3158 am__doit:
3159         @$(TRUE)
3160 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3161   am_cv_make_support_nested_variables=yes
3162 else
3163   am_cv_make_support_nested_variables=no
3164 fi
3165 fi
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3167 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3168 if test $am_cv_make_support_nested_variables = yes; then
3169     AM_V='$(V)'
3170   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3171 else
3172   AM_V=$AM_DEFAULT_VERBOSITY
3173   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3174 fi
3175 AM_BACKSLASH='\'
3176
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179   # is not polluted with repeated "-I."
3180   am__isrc=' -I$(srcdir)'
3181   # test to see if srcdir already configured
3182   if test -f $srcdir/config.status; then
3183     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3184   fi
3185 fi
3186
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189   if (cygpath --version) >/dev/null 2>/dev/null; then
3190     CYGPATH_W='cygpath -w'
3191   else
3192     CYGPATH_W=echo
3193   fi
3194 fi
3195
3196
3197 # Define the identity of the package.
3198  PACKAGE='libpng'
3199  VERSION='1.6.39'
3200
3201
3202 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3203
3204
3205 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3206
3207 # Some tools Automake needs.
3208
3209 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3210
3211
3212 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3213
3214
3215 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3216
3217
3218 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3219
3220
3221 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3222
3223 # For better backward compatibility.  To be removed once Automake 1.9.x
3224 # dies out for good.  For more background, see:
3225 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3226 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3227 mkdir_p='$(MKDIR_P)'
3228
3229 # We need awk for the "check" target (and possibly the TAP driver).  The
3230 # system "awk" is bad on some platforms.
3231 # Always define AMTAR for backward compatibility.  Yes, it's still used
3232 # in the wild :-(  We should find a proper way to deprecate it ...
3233 AMTAR='$${TAR-tar}'
3234
3235
3236 # We'll loop over all known methods to create a tar archive until one works.
3237 _am_tools='gnutar  pax cpio none'
3238
3239 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3240
3241
3242
3243
3244
3245 # Variables for tags utilities; see am/tags.am
3246 if test -z "$CTAGS"; then
3247   CTAGS=ctags
3248 fi
3249
3250 if test -z "$ETAGS"; then
3251   ETAGS=etags
3252 fi
3253
3254 if test -z "$CSCOPE"; then
3255   CSCOPE=cscope
3256 fi
3257
3258
3259
3260 # POSIX will say in a future version that running "rm -f" with no argument
3261 # is OK; and we want to be able to make that assumption in our Makefile
3262 # recipes.  So use an aggressive probe to check that the usage we want is
3263 # actually supported "in the wild" to an acceptable degree.
3264 # See automake bug#10828.
3265 # To make any issue more visible, cause the running configure to be aborted
3266 # by default if the 'rm' program in use doesn't match our expectations; the
3267 # user can still override this though.
3268 if rm -f && rm -fr && rm -rf; then : OK; else
3269   cat >&2 <<'END'
3270 Oops!
3271
3272 Your 'rm' program seems unable to run without file operands specified
3273 on the command line, even when the '-f' option is present.  This is contrary
3274 to the behaviour of most rm programs out there, and not conforming with
3275 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3276
3277 Please tell bug-automake@gnu.org about your system, including the value
3278 of your $PATH and any error possibly output before this message.  This
3279 can help us improve future automake versions.
3280
3281 END
3282   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3283     echo 'Configuration will proceed anyway, since you have set the' >&2
3284     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3285     echo >&2
3286   else
3287     cat >&2 <<'END'
3288 Aborting the configuration process, to ensure you take notice of the issue.
3289
3290 You can download and install GNU coreutils to get an 'rm' implementation
3291 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3292
3293 If you want to complete the configuration process using your problematic
3294 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3295 to "yes", and re-run configure.
3296
3297 END
3298     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3299   fi
3300 fi
3301
3302 # The following line causes --disable-maintainer-mode to be the default to
3303 # configure. This is necessary because libpng distributions cannot rely on the
3304 # time stamps of the autotools generated files being correct
3305
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3307 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3308     # Check whether --enable-maintainer-mode was given.
3309 if test ${enable_maintainer_mode+y}
3310 then :
3311   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3312 else $as_nop
3313   USE_MAINTAINER_MODE=no
3314 fi
3315
3316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3318    if test $USE_MAINTAINER_MODE = yes; then
3319   MAINTAINER_MODE_TRUE=
3320   MAINTAINER_MODE_FALSE='#'
3321 else
3322   MAINTAINER_MODE_TRUE='#'
3323   MAINTAINER_MODE_FALSE=
3324 fi
3325
3326   MAINT=$MAINTAINER_MODE_TRUE
3327
3328
3329
3330
3331 PNGLIB_VERSION=1.6.39
3332 PNGLIB_MAJOR=1
3333 PNGLIB_MINOR=6
3334 PNGLIB_RELEASE=39
3335
3336
3337
3338 ac_config_headers="$ac_config_headers config.h"
3339
3340
3341 # Checks for programs.
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 printf %s "checking for $ac_word... " >&6; }
3367 if test ${ac_cv_prog_CC+y}
3368 then :
3369   printf %s "(cached) " >&6
3370 else $as_nop
3371   if test -n "$CC"; then
3372   ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   case $as_dir in #(((
3379     '') as_dir=./ ;;
3380     */) ;;
3381     *) as_dir=$as_dir/ ;;
3382   esac
3383     for ac_exec_ext in '' $ac_executable_extensions; do
3384   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390   done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 printf "%s\n" "$CC" >&6; }
3399 else
3400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 printf "%s\n" "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$ac_cv_prog_CC"; then
3407   ac_ct_CC=$CC
3408   # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 printf %s "checking for $ac_word... " >&6; }
3412 if test ${ac_cv_prog_ac_ct_CC+y}
3413 then :
3414   printf %s "(cached) " >&6
3415 else $as_nop
3416   if test -n "$ac_ct_CC"; then
3417   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   case $as_dir in #(((
3424     '') as_dir=./ ;;
3425     */) ;;
3426     *) as_dir=$as_dir/ ;;
3427   esac
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_ac_ct_CC="gcc"
3431     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3441 if test -n "$ac_ct_CC"; then
3442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3443 printf "%s\n" "$ac_ct_CC" >&6; }
3444 else
3445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 printf "%s\n" "no" >&6; }
3447 fi
3448
3449   if test "x$ac_ct_CC" = x; then
3450     CC=""
3451   else
3452     case $cross_compiling:$ac_tool_warned in
3453 yes:)
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3456 ac_tool_warned=yes ;;
3457 esac
3458     CC=$ac_ct_CC
3459   fi
3460 else
3461   CC="$ac_cv_prog_CC"
3462 fi
3463
3464 if test -z "$CC"; then
3465           if test -n "$ac_tool_prefix"; then
3466     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}cc; ac_word=$2
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 printf %s "checking for $ac_word... " >&6; }
3470 if test ${ac_cv_prog_CC+y}
3471 then :
3472   printf %s "(cached) " >&6
3473 else $as_nop
3474   if test -n "$CC"; then
3475   ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   case $as_dir in #(((
3482     '') as_dir=./ ;;
3483     */) ;;
3484     *) as_dir=$as_dir/ ;;
3485   esac
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3488     ac_cv_prog_CC="${ac_tool_prefix}cc"
3489     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493   done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 CC=$ac_cv_prog_CC
3499 if test -n "$CC"; then
3500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 printf "%s\n" "$CC" >&6; }
3502 else
3503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 printf "%s\n" "no" >&6; }
3505 fi
3506
3507
3508   fi
3509 fi
3510 if test -z "$CC"; then
3511   # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 printf %s "checking for $ac_word... " >&6; }
3515 if test ${ac_cv_prog_CC+y}
3516 then :
3517   printf %s "(cached) " >&6
3518 else $as_nop
3519   if test -n "$CC"; then
3520   ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522   ac_prog_rejected=no
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   case $as_dir in #(((
3528     '') as_dir=./ ;;
3529     */) ;;
3530     *) as_dir=$as_dir/ ;;
3531   esac
3532     for ac_exec_ext in '' $ac_executable_extensions; do
3533   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3534     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3535        ac_prog_rejected=yes
3536        continue
3537      fi
3538     ac_cv_prog_CC="cc"
3539     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 if test $ac_prog_rejected = yes; then
3547   # We found a bogon in the path, so make sure we never use it.
3548   set dummy $ac_cv_prog_CC
3549   shift
3550   if test $# != 0; then
3551     # We chose a different compiler from the bogus one.
3552     # However, it has the same basename, so the bogon will be chosen
3553     # first if we set CC to just the basename; use the full file name.
3554     shift
3555     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3556   fi
3557 fi
3558 fi
3559 fi
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 printf "%s\n" "$CC" >&6; }
3564 else
3565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 printf "%s\n" "no" >&6; }
3567 fi
3568
3569
3570 fi
3571 if test -z "$CC"; then
3572   if test -n "$ac_tool_prefix"; then
3573   for ac_prog in cl.exe
3574   do
3575     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 printf %s "checking for $ac_word... " >&6; }
3579 if test ${ac_cv_prog_CC+y}
3580 then :
3581   printf %s "(cached) " >&6
3582 else $as_nop
3583   if test -n "$CC"; then
3584   ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   case $as_dir in #(((
3591     '') as_dir=./ ;;
3592     */) ;;
3593     *) as_dir=$as_dir/ ;;
3594   esac
3595     for ac_exec_ext in '' $ac_executable_extensions; do
3596   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3598     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602   done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 printf "%s\n" "$CC" >&6; }
3611 else
3612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 printf "%s\n" "no" >&6; }
3614 fi
3615
3616
3617     test -n "$CC" && break
3618   done
3619 fi
3620 if test -z "$CC"; then
3621   ac_ct_CC=$CC
3622   for ac_prog in cl.exe
3623 do
3624   # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy $ac_prog; ac_word=$2
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 printf %s "checking for $ac_word... " >&6; }
3628 if test ${ac_cv_prog_ac_ct_CC+y}
3629 then :
3630   printf %s "(cached) " >&6
3631 else $as_nop
3632   if test -n "$ac_ct_CC"; then
3633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   case $as_dir in #(((
3640     '') as_dir=./ ;;
3641     */) ;;
3642     *) as_dir=$as_dir/ ;;
3643   esac
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646     ac_cv_prog_ac_ct_CC="$ac_prog"
3647     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651   done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657 if test -n "$ac_ct_CC"; then
3658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659 printf "%s\n" "$ac_ct_CC" >&6; }
3660 else
3661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 printf "%s\n" "no" >&6; }
3663 fi
3664
3665
3666   test -n "$ac_ct_CC" && break
3667 done
3668
3669   if test "x$ac_ct_CC" = x; then
3670     CC=""
3671   else
3672     case $cross_compiling:$ac_tool_warned in
3673 yes:)
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676 ac_tool_warned=yes ;;
3677 esac
3678     CC=$ac_ct_CC
3679   fi
3680 fi
3681
3682 fi
3683 if test -z "$CC"; then
3684   if test -n "$ac_tool_prefix"; then
3685   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}clang; ac_word=$2
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 printf %s "checking for $ac_word... " >&6; }
3689 if test ${ac_cv_prog_CC+y}
3690 then :
3691   printf %s "(cached) " >&6
3692 else $as_nop
3693   if test -n "$CC"; then
3694   ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   case $as_dir in #(((
3701     '') as_dir=./ ;;
3702     */) ;;
3703     *) as_dir=$as_dir/ ;;
3704   esac
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3707     ac_cv_prog_CC="${ac_tool_prefix}clang"
3708     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 printf "%s\n" "$CC" >&6; }
3721 else
3722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 printf "%s\n" "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$ac_cv_prog_CC"; then
3729   ac_ct_CC=$CC
3730   # Extract the first word of "clang", so it can be a program name with args.
3731 set dummy clang; ac_word=$2
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 printf %s "checking for $ac_word... " >&6; }
3734 if test ${ac_cv_prog_ac_ct_CC+y}
3735 then :
3736   printf %s "(cached) " >&6
3737 else $as_nop
3738   if test -n "$ac_ct_CC"; then
3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   case $as_dir in #(((
3746     '') as_dir=./ ;;
3747     */) ;;
3748     *) as_dir=$as_dir/ ;;
3749   esac
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3752     ac_cv_prog_ac_ct_CC="clang"
3753     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757   done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 printf "%s\n" "$ac_ct_CC" >&6; }
3766 else
3767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 printf "%s\n" "no" >&6; }
3769 fi
3770
3771   if test "x$ac_ct_CC" = x; then
3772     CC=""
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     CC=$ac_ct_CC
3781   fi
3782 else
3783   CC="$ac_cv_prog_CC"
3784 fi
3785
3786 fi
3787
3788
3789 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details" "$LINENO" 5; }
3793
3794 # Provide some information about the compiler.
3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 set X $ac_compile
3797 ac_compiler=$2
3798 for ac_option in --version -v -V -qversion -version; do
3799   { { ac_try="$ac_compiler $ac_option >&5"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 printf "%s\n" "$ac_try_echo"; } >&5
3806   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807   ac_status=$?
3808   if test -s conftest.err; then
3809     sed '10a\
3810 ... rest of stderr output deleted ...
3811          10q' conftest.err >conftest.er1
3812     cat conftest.er1 >&5
3813   fi
3814   rm -f conftest.er1 conftest.err
3815   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816   test $ac_status = 0; }
3817 done
3818
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821
3822 int
3823 main (void)
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3834 # of exeext.
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3836 printf %s "checking whether the C compiler works... " >&6; }
3837 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3838
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841
3842 ac_rmfiles=
3843 for ac_file in $ac_files
3844 do
3845   case $ac_file in
3846     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848   esac
3849 done
3850 rm -f $ac_rmfiles
3851
3852 if { { ac_try="$ac_link_default"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 printf "%s\n" "$ac_try_echo"; } >&5
3859   (eval "$ac_link_default") 2>&5
3860   ac_status=$?
3861   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862   test $ac_status = 0; }
3863 then :
3864   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3868 # Autoconf.
3869 for ac_file in $ac_files ''
3870 do
3871   test -f "$ac_file" || continue
3872   case $ac_file in
3873     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3874         ;;
3875     [ab].out )
3876         # We found the default executable, but exeext='' is most
3877         # certainly right.
3878         break;;
3879     *.* )
3880         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3881         then :; else
3882            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883         fi
3884         # We set ac_cv_exeext here because the later test for it is not
3885         # safe: cross compilers may not add the suffix if given an `-o'
3886         # argument, so we may need to know it at that point already.
3887         # Even if this section looks crufty: it has the advantage of
3888         # actually working.
3889         break;;
3890     * )
3891         break;;
3892   esac
3893 done
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3895
3896 else $as_nop
3897   ac_file=''
3898 fi
3899 if test -z "$ac_file"
3900 then :
3901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 printf "%s\n" "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error 77 "C compiler cannot create executables
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 else $as_nop
3911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 printf "%s\n" "yes" >&6; }
3913 fi
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3915 printf %s "checking for C compiler default output file name... " >&6; }
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 printf "%s\n" "$ac_file" >&6; }
3918 ac_exeext=$ac_cv_exeext
3919
3920 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3921 ac_clean_files=$ac_clean_files_save
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3923 printf %s "checking for suffix of executables... " >&6; }
3924 if { { ac_try="$ac_link"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 printf "%s\n" "$ac_try_echo"; } >&5
3931   (eval "$ac_link") 2>&5
3932   ac_status=$?
3933   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934   test $ac_status = 0; }
3935 then :
3936   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3937 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3938 # work properly (i.e., refer to `conftest.exe'), while it won't with
3939 # `rm'.
3940 for ac_file in conftest.exe conftest conftest.*; do
3941   test -f "$ac_file" || continue
3942   case $ac_file in
3943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3945           break;;
3946     * ) break;;
3947   esac
3948 done
3949 else $as_nop
3950   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3953 See \`config.log' for more details" "$LINENO" 5; }
3954 fi
3955 rm -f conftest conftest$ac_cv_exeext
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3957 printf "%s\n" "$ac_cv_exeext" >&6; }
3958
3959 rm -f conftest.$ac_ext
3960 EXEEXT=$ac_cv_exeext
3961 ac_exeext=$EXEEXT
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h.  */
3964 #include <stdio.h>
3965 int
3966 main (void)
3967 {
3968 FILE *f = fopen ("conftest.out", "w");
3969  return ferror (f) || fclose (f) != 0;
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 ac_clean_files="$ac_clean_files conftest.out"
3976 # Check that the compiler produces executables we can run.  If not, either
3977 # the compiler is broken, or we cross compile.
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3979 printf %s "checking whether we are cross compiling... " >&6; }
3980 if test "$cross_compiling" != yes; then
3981   { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 printf "%s\n" "$ac_try_echo"; } >&5
3988   (eval "$ac_link") 2>&5
3989   ac_status=$?
3990   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991   test $ac_status = 0; }
3992   if { ac_try='./conftest$ac_cv_exeext'
3993   { { case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 printf "%s\n" "$ac_try_echo"; } >&5
3999   (eval "$ac_try") 2>&5
4000   ac_status=$?
4001   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002   test $ac_status = 0; }; }; then
4003     cross_compiling=no
4004   else
4005     if test "$cross_compiling" = maybe; then
4006         cross_compiling=yes
4007     else
4008         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "cannot run C compiled programs.
4011 If you meant to cross compile, use \`--host'.
4012 See \`config.log' for more details" "$LINENO" 5; }
4013     fi
4014   fi
4015 fi
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4017 printf "%s\n" "$cross_compiling" >&6; }
4018
4019 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4020 ac_clean_files=$ac_clean_files_save
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4022 printf %s "checking for suffix of object files... " >&6; }
4023 if test ${ac_cv_objext+y}
4024 then :
4025   printf %s "(cached) " >&6
4026 else $as_nop
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main (void)
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.o conftest.obj
4039 if { { ac_try="$ac_compile"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 printf "%s\n" "$ac_try_echo"; } >&5
4046   (eval "$ac_compile") 2>&5
4047   ac_status=$?
4048   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049   test $ac_status = 0; }
4050 then :
4051   for ac_file in conftest.o conftest.obj conftest.*; do
4052   test -f "$ac_file" || continue;
4053   case $ac_file in
4054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4056        break;;
4057   esac
4058 done
4059 else $as_nop
4060   printf "%s\n" "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error $? "cannot compute suffix of object files: cannot compile
4066 See \`config.log' for more details" "$LINENO" 5; }
4067 fi
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4069 fi
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 printf "%s\n" "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4073 ac_objext=$OBJEXT
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4075 printf %s "checking whether the compiler supports GNU C... " >&6; }
4076 if test ${ac_cv_c_compiler_gnu+y}
4077 then :
4078   printf %s "(cached) " >&6
4079 else $as_nop
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main (void)
4085 {
4086 #ifndef __GNUC__
4087        choke me
4088 #endif
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"
4095 then :
4096   ac_compiler_gnu=yes
4097 else $as_nop
4098   ac_compiler_gnu=no
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4102
4103 fi
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4105 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108 if test $ac_compiler_gnu = yes; then
4109   GCC=yes
4110 else
4111   GCC=
4112 fi
4113 ac_test_CFLAGS=${CFLAGS+y}
4114 ac_save_CFLAGS=$CFLAGS
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4116 printf %s "checking whether $CC accepts -g... " >&6; }
4117 if test ${ac_cv_prog_cc_g+y}
4118 then :
4119   printf %s "(cached) " >&6
4120 else $as_nop
4121   ac_save_c_werror_flag=$ac_c_werror_flag
4122    ac_c_werror_flag=yes
4123    ac_cv_prog_cc_g=no
4124    CFLAGS="-g"
4125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 int
4129 main (void)
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"
4137 then :
4138   ac_cv_prog_cc_g=yes
4139 else $as_nop
4140   CFLAGS=""
4141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143
4144 int
4145 main (void)
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"
4153 then :
4154
4155 else $as_nop
4156   ac_c_werror_flag=$ac_save_c_werror_flag
4157          CFLAGS="-g"
4158          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160
4161 int
4162 main (void)
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"
4170 then :
4171   ac_cv_prog_cc_g=yes
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178    ac_c_werror_flag=$ac_save_c_werror_flag
4179 fi
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4182 if test $ac_test_CFLAGS; then
4183   CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185   if test "$GCC" = yes; then
4186     CFLAGS="-g -O2"
4187   else
4188     CFLAGS="-g"
4189   fi
4190 else
4191   if test "$GCC" = yes; then
4192     CFLAGS="-O2"
4193   else
4194     CFLAGS=
4195   fi
4196 fi
4197 ac_prog_cc_stdc=no
4198 if test x$ac_prog_cc_stdc = xno
4199 then :
4200   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4201 printf %s "checking for $CC option to enable C11 features... " >&6; }
4202 if test ${ac_cv_prog_cc_c11+y}
4203 then :
4204   printf %s "(cached) " >&6
4205 else $as_nop
4206   ac_cv_prog_cc_c11=no
4207 ac_save_CC=$CC
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210 $ac_c_conftest_c11_program
4211 _ACEOF
4212 for ac_arg in '' -std=gnu11
4213 do
4214   CC="$ac_save_CC $ac_arg"
4215   if ac_fn_c_try_compile "$LINENO"
4216 then :
4217   ac_cv_prog_cc_c11=$ac_arg
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam
4220   test "x$ac_cv_prog_cc_c11" != "xno" && break
4221 done
4222 rm -f conftest.$ac_ext
4223 CC=$ac_save_CC
4224 fi
4225
4226 if test "x$ac_cv_prog_cc_c11" = xno
4227 then :
4228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4229 printf "%s\n" "unsupported" >&6; }
4230 else $as_nop
4231   if test "x$ac_cv_prog_cc_c11" = x
4232 then :
4233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 printf "%s\n" "none needed" >&6; }
4235 else $as_nop
4236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4237 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4238      CC="$CC $ac_cv_prog_cc_c11"
4239 fi
4240   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4241   ac_prog_cc_stdc=c11
4242 fi
4243 fi
4244 if test x$ac_prog_cc_stdc = xno
4245 then :
4246   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4247 printf %s "checking for $CC option to enable C99 features... " >&6; }
4248 if test ${ac_cv_prog_cc_c99+y}
4249 then :
4250   printf %s "(cached) " >&6
4251 else $as_nop
4252   ac_cv_prog_cc_c99=no
4253 ac_save_CC=$CC
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 $ac_c_conftest_c99_program
4257 _ACEOF
4258 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4259 do
4260   CC="$ac_save_CC $ac_arg"
4261   if ac_fn_c_try_compile "$LINENO"
4262 then :
4263   ac_cv_prog_cc_c99=$ac_arg
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.beam
4266   test "x$ac_cv_prog_cc_c99" != "xno" && break
4267 done
4268 rm -f conftest.$ac_ext
4269 CC=$ac_save_CC
4270 fi
4271
4272 if test "x$ac_cv_prog_cc_c99" = xno
4273 then :
4274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 printf "%s\n" "unsupported" >&6; }
4276 else $as_nop
4277   if test "x$ac_cv_prog_cc_c99" = x
4278 then :
4279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 printf "%s\n" "none needed" >&6; }
4281 else $as_nop
4282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4283 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4284      CC="$CC $ac_cv_prog_cc_c99"
4285 fi
4286   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4287   ac_prog_cc_stdc=c99
4288 fi
4289 fi
4290 if test x$ac_prog_cc_stdc = xno
4291 then :
4292   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4293 printf %s "checking for $CC option to enable C89 features... " >&6; }
4294 if test ${ac_cv_prog_cc_c89+y}
4295 then :
4296   printf %s "(cached) " >&6
4297 else $as_nop
4298   ac_cv_prog_cc_c89=no
4299 ac_save_CC=$CC
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h.  */
4302 $ac_c_conftest_c89_program
4303 _ACEOF
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 do
4306   CC="$ac_save_CC $ac_arg"
4307   if ac_fn_c_try_compile "$LINENO"
4308 then :
4309   ac_cv_prog_cc_c89=$ac_arg
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.beam
4312   test "x$ac_cv_prog_cc_c89" != "xno" && break
4313 done
4314 rm -f conftest.$ac_ext
4315 CC=$ac_save_CC
4316 fi
4317
4318 if test "x$ac_cv_prog_cc_c89" = xno
4319 then :
4320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321 printf "%s\n" "unsupported" >&6; }
4322 else $as_nop
4323   if test "x$ac_cv_prog_cc_c89" = x
4324 then :
4325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326 printf "%s\n" "none needed" >&6; }
4327 else $as_nop
4328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4330      CC="$CC $ac_cv_prog_cc_c89"
4331 fi
4332   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4333   ac_prog_cc_stdc=c89
4334 fi
4335 fi
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343
4344   ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4350 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4351 if test ${am_cv_prog_cc_c_o+y}
4352 then :
4353   printf %s "(cached) " >&6
4354 else $as_nop
4355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main (void)
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366   # Make sure it works both with $CC and with simple cc.
4367   # Following AC_PROG_CC_C_O, we do the test twice because some
4368   # compilers refuse to overwrite an existing .o file with -o,
4369   # though they will create one.
4370   am_cv_prog_cc_c_o=yes
4371   for am_i in 1 2; do
4372     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4373    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4374    ac_status=$?
4375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376    (exit $ac_status); } \
4377          && test -f conftest2.$ac_objext; then
4378       : OK
4379     else
4380       am_cv_prog_cc_c_o=no
4381       break
4382     fi
4383   done
4384   rm -f core conftest*
4385   unset am_i
4386 fi
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4388 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4389 if test "$am_cv_prog_cc_c_o" != yes; then
4390    # Losing compiler, so override with the script.
4391    # FIXME: It is wrong to rewrite CC.
4392    # But if we don't then we get into trouble of one sort or another.
4393    # A longer-term fix would be to have automake use am__CC in this case,
4394    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395    CC="$am_aux_dir/compile $CC"
4396 fi
4397 ac_ext=c
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403 DEPDIR="${am__leading_dot}deps"
4404
4405 ac_config_commands="$ac_config_commands depfiles"
4406
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4408 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4409 cat > confinc.mk << 'END'
4410 am__doit:
4411         @echo this is the am__doit target >confinc.out
4412 .PHONY: am__doit
4413 END
4414 am__include="#"
4415 am__quote=
4416 # BSD make does it like this.
4417 echo '.include "confinc.mk" # ignored' > confmf.BSD
4418 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4419 echo 'include confinc.mk # ignored' > confmf.GNU
4420 _am_result=no
4421 for s in GNU BSD; do
4422   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4423    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4424    ac_status=$?
4425    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426    (exit $ac_status); }
4427   case $?:`cat confinc.out 2>/dev/null` in #(
4428   '0:this is the am__doit target') :
4429     case $s in #(
4430   BSD) :
4431     am__include='.include' am__quote='"' ;; #(
4432   *) :
4433     am__include='include' am__quote='' ;;
4434 esac ;; #(
4435   *) :
4436      ;;
4437 esac
4438   if test "$am__include" != "#"; then
4439     _am_result="yes ($s style)"
4440     break
4441   fi
4442 done
4443 rm -f confinc.* confmf.*
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4445 printf "%s\n" "${_am_result}" >&6; }
4446
4447 # Check whether --enable-dependency-tracking was given.
4448 if test ${enable_dependency_tracking+y}
4449 then :
4450   enableval=$enable_dependency_tracking;
4451 fi
4452
4453 if test "x$enable_dependency_tracking" != xno; then
4454   am_depcomp="$ac_aux_dir/depcomp"
4455   AMDEPBACKSLASH='\'
4456   am__nodep='_no'
4457 fi
4458  if test "x$enable_dependency_tracking" != xno; then
4459   AMDEP_TRUE=
4460   AMDEP_FALSE='#'
4461 else
4462   AMDEP_TRUE='#'
4463   AMDEP_FALSE=
4464 fi
4465
4466
4467
4468 depcc="$CC"   am_compiler_list=
4469
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4471 printf %s "checking dependency style of $depcc... " >&6; }
4472 if test ${am_cv_CC_dependencies_compiler_type+y}
4473 then :
4474   printf %s "(cached) " >&6
4475 else $as_nop
4476   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477   # We make a subdir and do the tests there.  Otherwise we can end up
4478   # making bogus files that we don't know about and never remove.  For
4479   # instance it was reported that on HP-UX the gcc test will end up
4480   # making a dummy file named 'D' -- because '-MD' means "put the output
4481   # in D".
4482   rm -rf conftest.dir
4483   mkdir conftest.dir
4484   # Copy depcomp to subdir because otherwise we won't find it if we're
4485   # using a relative directory.
4486   cp "$am_depcomp" conftest.dir
4487   cd conftest.dir
4488   # We will build objects and dependencies in a subdirectory because
4489   # it helps to detect inapplicable dependency modes.  For instance
4490   # both Tru64's cc and ICC support -MD to output dependencies as a
4491   # side effect of compilation, but ICC will put the dependencies in
4492   # the current directory while Tru64 will put them in the object
4493   # directory.
4494   mkdir sub
4495
4496   am_cv_CC_dependencies_compiler_type=none
4497   if test "$am_compiler_list" = ""; then
4498      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499   fi
4500   am__universal=false
4501   case " $depcc " in #(
4502      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503      esac
4504
4505   for depmode in $am_compiler_list; do
4506     # Setup a source with many dependencies, because some compilers
4507     # like to wrap large dependency lists on column 80 (with \), and
4508     # we should not choose a depcomp mode which is confused by this.
4509     #
4510     # We need to recreate these files for each test, as the compiler may
4511     # overwrite some of them when testing with obscure command lines.
4512     # This happens at least with the AIX C compiler.
4513     : > sub/conftest.c
4514     for i in 1 2 3 4 5 6; do
4515       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517       # Solaris 10 /bin/sh.
4518       echo '/* dummy */' > sub/conftst$i.h
4519     done
4520     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4521
4522     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523     # mode.  It turns out that the SunPro C++ compiler does not properly
4524     # handle '-M -o', and we need to detect this.  Also, some Intel
4525     # versions had trouble with output in subdirs.
4526     am__obj=sub/conftest.${OBJEXT-o}
4527     am__minus_obj="-o $am__obj"
4528     case $depmode in
4529     gcc)
4530       # This depmode causes a compiler race in universal mode.
4531       test "$am__universal" = false || continue
4532       ;;
4533     nosideeffect)
4534       # After this tag, mechanisms are not by side-effect, so they'll
4535       # only be used when explicitly requested.
4536       if test "x$enable_dependency_tracking" = xyes; then
4537         continue
4538       else
4539         break
4540       fi
4541       ;;
4542     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543       # This compiler won't grok '-c -o', but also, the minuso test has
4544       # not run yet.  These depmodes are late enough in the game, and
4545       # so weak that their functioning should not be impacted.
4546       am__obj=conftest.${OBJEXT-o}
4547       am__minus_obj=
4548       ;;
4549     none) break ;;
4550     esac
4551     if depmode=$depmode \
4552        source=sub/conftest.c object=$am__obj \
4553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555          >/dev/null 2>conftest.err &&
4556        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560       # icc doesn't choke on unknown options, it will just issue warnings
4561       # or remarks (even with -Werror).  So we grep stderr for any message
4562       # that says an option was ignored or not supported.
4563       # When given -MP, icc 7.0 and 7.1 complain thusly:
4564       #   icc: Command line warning: ignoring option '-M'; no argument required
4565       # The diagnosis changed in icc 8.0:
4566       #   icc: Command line remark: option '-MP' not supported
4567       if (grep 'ignoring option' conftest.err ||
4568           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569         am_cv_CC_dependencies_compiler_type=$depmode
4570         break
4571       fi
4572     fi
4573   done
4574
4575   cd ..
4576   rm -rf conftest.dir
4577 else
4578   am_cv_CC_dependencies_compiler_type=none
4579 fi
4580
4581 fi
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4585
4586  if
4587   test "x$enable_dependency_tracking" != xno \
4588   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4589   am__fastdepCC_TRUE=
4590   am__fastdepCC_FALSE='#'
4591 else
4592   am__fastdepCC_TRUE='#'
4593   am__fastdepCC_FALSE=
4594 fi
4595
4596
4597 # By default we simply use the C compiler to build assembly code.
4598
4599 test "${CCAS+set}" = set || CCAS=$CC
4600 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4601
4602
4603
4604 depcc="$CCAS"   am_compiler_list=
4605
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4607 printf %s "checking dependency style of $depcc... " >&6; }
4608 if test ${am_cv_CCAS_dependencies_compiler_type+y}
4609 then :
4610   printf %s "(cached) " >&6
4611 else $as_nop
4612   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4613   # We make a subdir and do the tests there.  Otherwise we can end up
4614   # making bogus files that we don't know about and never remove.  For
4615   # instance it was reported that on HP-UX the gcc test will end up
4616   # making a dummy file named 'D' -- because '-MD' means "put the output
4617   # in D".
4618   rm -rf conftest.dir
4619   mkdir conftest.dir
4620   # Copy depcomp to subdir because otherwise we won't find it if we're
4621   # using a relative directory.
4622   cp "$am_depcomp" conftest.dir
4623   cd conftest.dir
4624   # We will build objects and dependencies in a subdirectory because
4625   # it helps to detect inapplicable dependency modes.  For instance
4626   # both Tru64's cc and ICC support -MD to output dependencies as a
4627   # side effect of compilation, but ICC will put the dependencies in
4628   # the current directory while Tru64 will put them in the object
4629   # directory.
4630   mkdir sub
4631
4632   am_cv_CCAS_dependencies_compiler_type=none
4633   if test "$am_compiler_list" = ""; then
4634      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4635   fi
4636   am__universal=false
4637
4638
4639   for depmode in $am_compiler_list; do
4640     # Setup a source with many dependencies, because some compilers
4641     # like to wrap large dependency lists on column 80 (with \), and
4642     # we should not choose a depcomp mode which is confused by this.
4643     #
4644     # We need to recreate these files for each test, as the compiler may
4645     # overwrite some of them when testing with obscure command lines.
4646     # This happens at least with the AIX C compiler.
4647     : > sub/conftest.c
4648     for i in 1 2 3 4 5 6; do
4649       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4650       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4651       # Solaris 10 /bin/sh.
4652       echo '/* dummy */' > sub/conftst$i.h
4653     done
4654     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4655
4656     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4657     # mode.  It turns out that the SunPro C++ compiler does not properly
4658     # handle '-M -o', and we need to detect this.  Also, some Intel
4659     # versions had trouble with output in subdirs.
4660     am__obj=sub/conftest.${OBJEXT-o}
4661     am__minus_obj="-o $am__obj"
4662     case $depmode in
4663     gcc)
4664       # This depmode causes a compiler race in universal mode.
4665       test "$am__universal" = false || continue
4666       ;;
4667     nosideeffect)
4668       # After this tag, mechanisms are not by side-effect, so they'll
4669       # only be used when explicitly requested.
4670       if test "x$enable_dependency_tracking" = xyes; then
4671         continue
4672       else
4673         break
4674       fi
4675       ;;
4676     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4677       # This compiler won't grok '-c -o', but also, the minuso test has
4678       # not run yet.  These depmodes are late enough in the game, and
4679       # so weak that their functioning should not be impacted.
4680       am__obj=conftest.${OBJEXT-o}
4681       am__minus_obj=
4682       ;;
4683     none) break ;;
4684     esac
4685     if depmode=$depmode \
4686        source=sub/conftest.c object=$am__obj \
4687        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4689          >/dev/null 2>conftest.err &&
4690        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4691        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4692        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4693        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4694       # icc doesn't choke on unknown options, it will just issue warnings
4695       # or remarks (even with -Werror).  So we grep stderr for any message
4696       # that says an option was ignored or not supported.
4697       # When given -MP, icc 7.0 and 7.1 complain thusly:
4698       #   icc: Command line warning: ignoring option '-M'; no argument required
4699       # The diagnosis changed in icc 8.0:
4700       #   icc: Command line remark: option '-MP' not supported
4701       if (grep 'ignoring option' conftest.err ||
4702           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4703         am_cv_CCAS_dependencies_compiler_type=$depmode
4704         break
4705       fi
4706     fi
4707   done
4708
4709   cd ..
4710   rm -rf conftest.dir
4711 else
4712   am_cv_CCAS_dependencies_compiler_type=none
4713 fi
4714
4715 fi
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4717 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4718 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4719
4720  if
4721   test "x$enable_dependency_tracking" != xno \
4722   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4723   am__fastdepCCAS_TRUE=
4724   am__fastdepCCAS_FALSE='#'
4725 else
4726   am__fastdepCCAS_TRUE='#'
4727   am__fastdepCCAS_FALSE=
4728 fi
4729
4730
4731
4732
4733   # Make sure we can run config.sub.
4734 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4735   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4736
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4738 printf %s "checking build system type... " >&6; }
4739 if test ${ac_cv_build+y}
4740 then :
4741   printf %s "(cached) " >&6
4742 else $as_nop
4743   ac_build_alias=$build_alias
4744 test "x$ac_build_alias" = x &&
4745   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4746 test "x$ac_build_alias" = x &&
4747   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4748 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4749   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4750
4751 fi
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4753 printf "%s\n" "$ac_cv_build" >&6; }
4754 case $ac_cv_build in
4755 *-*-*) ;;
4756 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4757 esac
4758 build=$ac_cv_build
4759 ac_save_IFS=$IFS; IFS='-'
4760 set x $ac_cv_build
4761 shift
4762 build_cpu=$1
4763 build_vendor=$2
4764 shift; shift
4765 # Remember, the first character of IFS is used to create $*,
4766 # except with old shells:
4767 build_os=$*
4768 IFS=$ac_save_IFS
4769 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4770
4771
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4773 printf %s "checking host system type... " >&6; }
4774 if test ${ac_cv_host+y}
4775 then :
4776   printf %s "(cached) " >&6
4777 else $as_nop
4778   if test "x$host_alias" = x; then
4779   ac_cv_host=$ac_cv_build
4780 else
4781   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4782     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4783 fi
4784
4785 fi
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4787 printf "%s\n" "$ac_cv_host" >&6; }
4788 case $ac_cv_host in
4789 *-*-*) ;;
4790 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4791 esac
4792 host=$ac_cv_host
4793 ac_save_IFS=$IFS; IFS='-'
4794 set x $ac_cv_host
4795 shift
4796 host_cpu=$1
4797 host_vendor=$2
4798 shift; shift
4799 # Remember, the first character of IFS is used to create $*,
4800 # except with old shells:
4801 host_os=$*
4802 IFS=$ac_save_IFS
4803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4804
4805
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 printf %s "checking for a sed that does not truncate output... " >&6; }
4808 if test ${ac_cv_path_SED+y}
4809 then :
4810   printf %s "(cached) " >&6
4811 else $as_nop
4812             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4813      for ac_i in 1 2 3 4 5 6 7; do
4814        ac_script="$ac_script$as_nl$ac_script"
4815      done
4816      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4817      { ac_script=; unset ac_script;}
4818      if test -z "$SED"; then
4819   ac_path_SED_found=false
4820   # Loop through the user's path and test for each of PROGNAME-LIST
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   case $as_dir in #(((
4826     '') as_dir=./ ;;
4827     */) ;;
4828     *) as_dir=$as_dir/ ;;
4829   esac
4830     for ac_prog in sed gsed
4831    do
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4834       as_fn_executable_p "$ac_path_SED" || continue
4835 # Check for GNU ac_path_SED and select it if it is found.
4836   # Check for GNU $ac_path_SED
4837 case `"$ac_path_SED" --version 2>&1` in
4838 *GNU*)
4839   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4840 *)
4841   ac_count=0
4842   printf %s 0123456789 >"conftest.in"
4843   while :
4844   do
4845     cat "conftest.in" "conftest.in" >"conftest.tmp"
4846     mv "conftest.tmp" "conftest.in"
4847     cp "conftest.in" "conftest.nl"
4848     printf "%s\n" '' >> "conftest.nl"
4849     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851     as_fn_arith $ac_count + 1 && ac_count=$as_val
4852     if test $ac_count -gt ${ac_path_SED_max-0}; then
4853       # Best one so far, save it but keep looking for a better one
4854       ac_cv_path_SED="$ac_path_SED"
4855       ac_path_SED_max=$ac_count
4856     fi
4857     # 10*(2^10) chars as input seems more than enough
4858     test $ac_count -gt 10 && break
4859   done
4860   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 esac
4862
4863       $ac_path_SED_found && break 3
4864     done
4865   done
4866   done
4867 IFS=$as_save_IFS
4868   if test -z "$ac_cv_path_SED"; then
4869     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4870   fi
4871 else
4872   ac_cv_path_SED=$SED
4873 fi
4874
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4877 printf "%s\n" "$ac_cv_path_SED" >&6; }
4878  SED="$ac_cv_path_SED"
4879   rm -f conftest.sed
4880
4881 test -z "$SED" && SED=sed
4882 Xsed="$SED -e 1s/^X//"
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4895 printf %s "checking for grep that handles long lines and -e... " >&6; }
4896 if test ${ac_cv_path_GREP+y}
4897 then :
4898   printf %s "(cached) " >&6
4899 else $as_nop
4900   if test -z "$GREP"; then
4901   ac_path_GREP_found=false
4902   # Loop through the user's path and test for each of PROGNAME-LIST
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905 do
4906   IFS=$as_save_IFS
4907   case $as_dir in #(((
4908     '') as_dir=./ ;;
4909     */) ;;
4910     *) as_dir=$as_dir/ ;;
4911   esac
4912     for ac_prog in grep ggrep
4913    do
4914     for ac_exec_ext in '' $ac_executable_extensions; do
4915       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4916       as_fn_executable_p "$ac_path_GREP" || continue
4917 # Check for GNU ac_path_GREP and select it if it is found.
4918   # Check for GNU $ac_path_GREP
4919 case `"$ac_path_GREP" --version 2>&1` in
4920 *GNU*)
4921   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4922 *)
4923   ac_count=0
4924   printf %s 0123456789 >"conftest.in"
4925   while :
4926   do
4927     cat "conftest.in" "conftest.in" >"conftest.tmp"
4928     mv "conftest.tmp" "conftest.in"
4929     cp "conftest.in" "conftest.nl"
4930     printf "%s\n" 'GREP' >> "conftest.nl"
4931     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4933     as_fn_arith $ac_count + 1 && ac_count=$as_val
4934     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4935       # Best one so far, save it but keep looking for a better one
4936       ac_cv_path_GREP="$ac_path_GREP"
4937       ac_path_GREP_max=$ac_count
4938     fi
4939     # 10*(2^10) chars as input seems more than enough
4940     test $ac_count -gt 10 && break
4941   done
4942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4943 esac
4944
4945       $ac_path_GREP_found && break 3
4946     done
4947   done
4948   done
4949 IFS=$as_save_IFS
4950   if test -z "$ac_cv_path_GREP"; then
4951     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4952   fi
4953 else
4954   ac_cv_path_GREP=$GREP
4955 fi
4956
4957 fi
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4959 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4960  GREP="$ac_cv_path_GREP"
4961
4962
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4964 printf %s "checking for egrep... " >&6; }
4965 if test ${ac_cv_path_EGREP+y}
4966 then :
4967   printf %s "(cached) " >&6
4968 else $as_nop
4969   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4970    then ac_cv_path_EGREP="$GREP -E"
4971    else
4972      if test -z "$EGREP"; then
4973   ac_path_EGREP_found=false
4974   # Loop through the user's path and test for each of PROGNAME-LIST
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977 do
4978   IFS=$as_save_IFS
4979   case $as_dir in #(((
4980     '') as_dir=./ ;;
4981     */) ;;
4982     *) as_dir=$as_dir/ ;;
4983   esac
4984     for ac_prog in egrep
4985    do
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4988       as_fn_executable_p "$ac_path_EGREP" || continue
4989 # Check for GNU ac_path_EGREP and select it if it is found.
4990   # Check for GNU $ac_path_EGREP
4991 case `"$ac_path_EGREP" --version 2>&1` in
4992 *GNU*)
4993   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4994 *)
4995   ac_count=0
4996   printf %s 0123456789 >"conftest.in"
4997   while :
4998   do
4999     cat "conftest.in" "conftest.in" >"conftest.tmp"
5000     mv "conftest.tmp" "conftest.in"
5001     cp "conftest.in" "conftest.nl"
5002     printf "%s\n" 'EGREP' >> "conftest.nl"
5003     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005     as_fn_arith $ac_count + 1 && ac_count=$as_val
5006     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5007       # Best one so far, save it but keep looking for a better one
5008       ac_cv_path_EGREP="$ac_path_EGREP"
5009       ac_path_EGREP_max=$ac_count
5010     fi
5011     # 10*(2^10) chars as input seems more than enough
5012     test $ac_count -gt 10 && break
5013   done
5014   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 esac
5016
5017       $ac_path_EGREP_found && break 3
5018     done
5019   done
5020   done
5021 IFS=$as_save_IFS
5022   if test -z "$ac_cv_path_EGREP"; then
5023     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5024   fi
5025 else
5026   ac_cv_path_EGREP=$EGREP
5027 fi
5028
5029    fi
5030 fi
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5032 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5033  EGREP="$ac_cv_path_EGREP"
5034
5035
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5037 printf %s "checking for fgrep... " >&6; }
5038 if test ${ac_cv_path_FGREP+y}
5039 then :
5040   printf %s "(cached) " >&6
5041 else $as_nop
5042   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5043    then ac_cv_path_FGREP="$GREP -F"
5044    else
5045      if test -z "$FGREP"; then
5046   ac_path_FGREP_found=false
5047   # Loop through the user's path and test for each of PROGNAME-LIST
5048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5050 do
5051   IFS=$as_save_IFS
5052   case $as_dir in #(((
5053     '') as_dir=./ ;;
5054     */) ;;
5055     *) as_dir=$as_dir/ ;;
5056   esac
5057     for ac_prog in fgrep
5058    do
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5061       as_fn_executable_p "$ac_path_FGREP" || continue
5062 # Check for GNU ac_path_FGREP and select it if it is found.
5063   # Check for GNU $ac_path_FGREP
5064 case `"$ac_path_FGREP" --version 2>&1` in
5065 *GNU*)
5066   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5067 *)
5068   ac_count=0
5069   printf %s 0123456789 >"conftest.in"
5070   while :
5071   do
5072     cat "conftest.in" "conftest.in" >"conftest.tmp"
5073     mv "conftest.tmp" "conftest.in"
5074     cp "conftest.in" "conftest.nl"
5075     printf "%s\n" 'FGREP' >> "conftest.nl"
5076     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078     as_fn_arith $ac_count + 1 && ac_count=$as_val
5079     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5080       # Best one so far, save it but keep looking for a better one
5081       ac_cv_path_FGREP="$ac_path_FGREP"
5082       ac_path_FGREP_max=$ac_count
5083     fi
5084     # 10*(2^10) chars as input seems more than enough
5085     test $ac_count -gt 10 && break
5086   done
5087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090       $ac_path_FGREP_found && break 3
5091     done
5092   done
5093   done
5094 IFS=$as_save_IFS
5095   if test -z "$ac_cv_path_FGREP"; then
5096     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097   fi
5098 else
5099   ac_cv_path_FGREP=$FGREP
5100 fi
5101
5102    fi
5103 fi
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5105 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5106  FGREP="$ac_cv_path_FGREP"
5107
5108
5109 test -z "$GREP" && GREP=grep
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5130
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5132 printf %s "checking how to print strings... " >&6; }
5133 # Test print first, because it will be a builtin if present.
5134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5135    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5136   ECHO='print -r --'
5137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5138   ECHO='printf %s\n'
5139 else
5140   # Use this function as a fallback that always works.
5141   func_fallback_echo ()
5142   {
5143     eval 'cat <<_LTECHO_EOF
5144 $1
5145 _LTECHO_EOF'
5146   }
5147   ECHO='func_fallback_echo'
5148 fi
5149
5150 # func_echo_all arg...
5151 # Invoke $ECHO with all args, space-separated.
5152 func_echo_all ()
5153 {
5154     $ECHO ""
5155 }
5156
5157 case $ECHO in
5158   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5159 printf "%s\n" "printf" >&6; } ;;
5160   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5161 printf "%s\n" "print -r" >&6; } ;;
5162   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5163 printf "%s\n" "cat" >&6; } ;;
5164 esac
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181 # Check whether --with-gnu-ld was given.
5182 if test ${with_gnu_ld+y}
5183 then :
5184   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5185 else $as_nop
5186   with_gnu_ld=no
5187 fi
5188
5189 ac_prog=ld
5190 if test yes = "$GCC"; then
5191   # Check if gcc -print-prog-name=ld gives a path.
5192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5193 printf %s "checking for ld used by $CC... " >&6; }
5194   case $host in
5195   *-*-mingw*)
5196     # gcc leaves a trailing carriage return, which upsets mingw
5197     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5198   *)
5199     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5200   esac
5201   case $ac_prog in
5202     # Accept absolute paths.
5203     [\\/]* | ?:[\\/]*)
5204       re_direlt='/[^/][^/]*/\.\./'
5205       # Canonicalize the pathname of ld
5206       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5207       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5208         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5209       done
5210       test -z "$LD" && LD=$ac_prog
5211       ;;
5212   "")
5213     # If it fails, then pretend we aren't using GCC.
5214     ac_prog=ld
5215     ;;
5216   *)
5217     # If it is relative, then search for the first ld in PATH.
5218     with_gnu_ld=unknown
5219     ;;
5220   esac
5221 elif test yes = "$with_gnu_ld"; then
5222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5223 printf %s "checking for GNU ld... " >&6; }
5224 else
5225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5226 printf %s "checking for non-GNU ld... " >&6; }
5227 fi
5228 if test ${lt_cv_path_LD+y}
5229 then :
5230   printf %s "(cached) " >&6
5231 else $as_nop
5232   if test -z "$LD"; then
5233   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5234   for ac_dir in $PATH; do
5235     IFS=$lt_save_ifs
5236     test -z "$ac_dir" && ac_dir=.
5237     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5238       lt_cv_path_LD=$ac_dir/$ac_prog
5239       # Check to see if the program is GNU ld.  I'd rather use --version,
5240       # but apparently some variants of GNU ld only accept -v.
5241       # Break only if it was the GNU/non-GNU ld that we prefer.
5242       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5243       *GNU* | *'with BFD'*)
5244         test no != "$with_gnu_ld" && break
5245         ;;
5246       *)
5247         test yes != "$with_gnu_ld" && break
5248         ;;
5249       esac
5250     fi
5251   done
5252   IFS=$lt_save_ifs
5253 else
5254   lt_cv_path_LD=$LD # Let the user override the test with a path.
5255 fi
5256 fi
5257
5258 LD=$lt_cv_path_LD
5259 if test -n "$LD"; then
5260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5261 printf "%s\n" "$LD" >&6; }
5262 else
5263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 printf "%s\n" "no" >&6; }
5265 fi
5266 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5268 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5269 if test ${lt_cv_prog_gnu_ld+y}
5270 then :
5271   printf %s "(cached) " >&6
5272 else $as_nop
5273   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5274 case `$LD -v 2>&1 </dev/null` in
5275 *GNU* | *'with BFD'*)
5276   lt_cv_prog_gnu_ld=yes
5277   ;;
5278 *)
5279   lt_cv_prog_gnu_ld=no
5280   ;;
5281 esac
5282 fi
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5284 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5285 with_gnu_ld=$lt_cv_prog_gnu_ld
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5301 printf %s "checking how to run the C preprocessor... " >&6; }
5302 # On Suns, sometimes $CPP names a directory.
5303 if test -n "$CPP" && test -d "$CPP"; then
5304   CPP=
5305 fi
5306 if test -z "$CPP"; then
5307   if test ${ac_cv_prog_CPP+y}
5308 then :
5309   printf %s "(cached) " >&6
5310 else $as_nop
5311       # Double quotes because $CC needs to be expanded
5312     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5313     do
5314       ac_preproc_ok=false
5315 for ac_c_preproc_warn_flag in '' yes
5316 do
5317   # Use a header file that comes with gcc, so configuring glibc
5318   # with a fresh cross-compiler works.
5319   # On the NeXT, cc -E runs the code through the compiler's parser,
5320   # not just through cpp. "Syntax error" is here to catch this case.
5321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h.  */
5323 #include <limits.h>
5324                      Syntax error
5325 _ACEOF
5326 if ac_fn_c_try_cpp "$LINENO"
5327 then :
5328
5329 else $as_nop
5330   # Broken: fails on valid input.
5331 continue
5332 fi
5333 rm -f conftest.err conftest.i conftest.$ac_ext
5334
5335   # OK, works on sane cases.  Now check whether nonexistent headers
5336   # can be detected and how.
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 #include <ac_nonexistent.h>
5340 _ACEOF
5341 if ac_fn_c_try_cpp "$LINENO"
5342 then :
5343   # Broken: success on invalid input.
5344 continue
5345 else $as_nop
5346   # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5349 fi
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5351
5352 done
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.i conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok
5356 then :
5357   break
5358 fi
5359
5360     done
5361     ac_cv_prog_CPP=$CPP
5362
5363 fi
5364   CPP=$ac_cv_prog_CPP
5365 else
5366   ac_cv_prog_CPP=$CPP
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5369 printf "%s\n" "$CPP" >&6; }
5370 ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5372 do
5373   # Use a header file that comes with gcc, so configuring glibc
5374   # with a fresh cross-compiler works.
5375   # On the NeXT, cc -E runs the code through the compiler's parser,
5376   # not just through cpp. "Syntax error" is here to catch this case.
5377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h.  */
5379 #include <limits.h>
5380                      Syntax error
5381 _ACEOF
5382 if ac_fn_c_try_cpp "$LINENO"
5383 then :
5384
5385 else $as_nop
5386   # Broken: fails on valid input.
5387 continue
5388 fi
5389 rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391   # OK, works on sane cases.  Now check whether nonexistent headers
5392   # can be detected and how.
5393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h.  */
5395 #include <ac_nonexistent.h>
5396 _ACEOF
5397 if ac_fn_c_try_cpp "$LINENO"
5398 then :
5399   # Broken: success on invalid input.
5400 continue
5401 else $as_nop
5402   # Passes both tests.
5403 ac_preproc_ok=:
5404 break
5405 fi
5406 rm -f conftest.err conftest.i conftest.$ac_ext
5407
5408 done
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.i conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok
5412 then :
5413
5414 else $as_nop
5415   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5417 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5418 See \`config.log' for more details" "$LINENO" 5; }
5419 fi
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427 for ac_prog in gawk mawk nawk awk
5428 do
5429   # Extract the first word of "$ac_prog", so it can be a program name with args.
5430 set dummy $ac_prog; ac_word=$2
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 printf %s "checking for $ac_word... " >&6; }
5433 if test ${ac_cv_prog_AWK+y}
5434 then :
5435   printf %s "(cached) " >&6
5436 else $as_nop
5437   if test -n "$AWK"; then
5438   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   case $as_dir in #(((
5445     '') as_dir=./ ;;
5446     */) ;;
5447     *) as_dir=$as_dir/ ;;
5448   esac
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5451     ac_cv_prog_AWK="$ac_prog"
5452     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456   done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 AWK=$ac_cv_prog_AWK
5462 if test -n "$AWK"; then
5463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5464 printf "%s\n" "$AWK" >&6; }
5465 else
5466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 printf "%s\n" "no" >&6; }
5468 fi
5469
5470
5471   test -n "$AWK" && break
5472 done
5473
5474
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5476 printf %s "checking whether ln -s works... " >&6; }
5477 LN_S=$as_ln_s
5478 if test "$LN_S" = "ln -s"; then
5479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 printf "%s\n" "yes" >&6; }
5481 else
5482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5483 printf "%s\n" "no, using $LN_S" >&6; }
5484 fi
5485
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5487 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5488 set x ${MAKE-make}
5489 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5490 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5491 then :
5492   printf %s "(cached) " >&6
5493 else $as_nop
5494   cat >conftest.make <<\_ACEOF
5495 SHELL = /bin/sh
5496 all:
5497         @echo '@@@%%%=$(MAKE)=@@@%%%'
5498 _ACEOF
5499 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5500 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5501   *@@@%%%=?*=@@@%%%*)
5502     eval ac_cv_prog_make_${ac_make}_set=yes;;
5503   *)
5504     eval ac_cv_prog_make_${ac_make}_set=no;;
5505 esac
5506 rm -f conftest.make
5507 fi
5508 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 printf "%s\n" "yes" >&6; }
5511   SET_MAKE=
5512 else
5513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5515   SET_MAKE="MAKE=${MAKE-make}"
5516 fi
5517
5518
5519 case `pwd` in
5520   *\ * | *\     *)
5521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5522 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5523 esac
5524
5525
5526
5527 macro_version='2.4.7'
5528 macro_revision='2.4.7'
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 ltmain=$ac_aux_dir/ltmain.sh
5544
5545 # Backslashify metacharacters that are still active within
5546 # double-quoted strings.
5547 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5548
5549 # Same as above, but do not quote variable references.
5550 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5551
5552 # Sed substitution to delay expansion of an escaped shell variable in a
5553 # double_quote_subst'ed string.
5554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5555
5556 # Sed substitution to delay expansion of an escaped single quote.
5557 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5558
5559 # Sed substitution to avoid accidental globbing in evaled expressions
5560 no_glob_subst='s/\*/\\\*/g'
5561
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5563 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5564 if test ${lt_cv_path_NM+y}
5565 then :
5566   printf %s "(cached) " >&6
5567 else $as_nop
5568   if test -n "$NM"; then
5569   # Let the user override the test.
5570   lt_cv_path_NM=$NM
5571 else
5572   lt_nm_to_check=${ac_tool_prefix}nm
5573   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5574     lt_nm_to_check="$lt_nm_to_check nm"
5575   fi
5576   for lt_tmp_nm in $lt_nm_to_check; do
5577     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5578     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5579       IFS=$lt_save_ifs
5580       test -z "$ac_dir" && ac_dir=.
5581       tmp_nm=$ac_dir/$lt_tmp_nm
5582       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5583         # Check to see if the nm accepts a BSD-compat flag.
5584         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5585         #   nm: unknown option "B" ignored
5586         # Tru64's nm complains that /dev/null is an invalid object file
5587         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5588         case $build_os in
5589         mingw*) lt_bad_file=conftest.nm/nofile ;;
5590         *) lt_bad_file=/dev/null ;;
5591         esac
5592         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5593         *$lt_bad_file* | *'Invalid file or object type'*)
5594           lt_cv_path_NM="$tmp_nm -B"
5595           break 2
5596           ;;
5597         *)
5598           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5599           */dev/null*)
5600             lt_cv_path_NM="$tmp_nm -p"
5601             break 2
5602             ;;
5603           *)
5604             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5605             continue # so that we can try to find one that supports BSD flags
5606             ;;
5607           esac
5608           ;;
5609         esac
5610       fi
5611     done
5612     IFS=$lt_save_ifs
5613   done
5614   : ${lt_cv_path_NM=no}
5615 fi
5616 fi
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5618 printf "%s\n" "$lt_cv_path_NM" >&6; }
5619 if test no != "$lt_cv_path_NM"; then
5620   NM=$lt_cv_path_NM
5621 else
5622   # Didn't find any BSD compatible name lister, look for dumpbin.
5623   if test -n "$DUMPBIN"; then :
5624     # Let the user override the test.
5625   else
5626     if test -n "$ac_tool_prefix"; then
5627   for ac_prog in dumpbin "link -dump"
5628   do
5629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 printf %s "checking for $ac_word... " >&6; }
5633 if test ${ac_cv_prog_DUMPBIN+y}
5634 then :
5635   printf %s "(cached) " >&6
5636 else $as_nop
5637   if test -n "$DUMPBIN"; then
5638   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   case $as_dir in #(((
5645     '') as_dir=./ ;;
5646     */) ;;
5647     *) as_dir=$as_dir/ ;;
5648   esac
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5651     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5652     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 DUMPBIN=$ac_cv_prog_DUMPBIN
5662 if test -n "$DUMPBIN"; then
5663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5664 printf "%s\n" "$DUMPBIN" >&6; }
5665 else
5666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 printf "%s\n" "no" >&6; }
5668 fi
5669
5670
5671     test -n "$DUMPBIN" && break
5672   done
5673 fi
5674 if test -z "$DUMPBIN"; then
5675   ac_ct_DUMPBIN=$DUMPBIN
5676   for ac_prog in dumpbin "link -dump"
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5683 then :
5684   printf %s "(cached) " >&6
5685 else $as_nop
5686   if test -n "$ac_ct_DUMPBIN"; then
5687   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   case $as_dir in #(((
5694     '') as_dir=./ ;;
5695     */) ;;
5696     *) as_dir=$as_dir/ ;;
5697   esac
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5701     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5711 if test -n "$ac_ct_DUMPBIN"; then
5712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5713 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5714 else
5715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 printf "%s\n" "no" >&6; }
5717 fi
5718
5719
5720   test -n "$ac_ct_DUMPBIN" && break
5721 done
5722
5723   if test "x$ac_ct_DUMPBIN" = x; then
5724     DUMPBIN=":"
5725   else
5726     case $cross_compiling:$ac_tool_warned in
5727 yes:)
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730 ac_tool_warned=yes ;;
5731 esac
5732     DUMPBIN=$ac_ct_DUMPBIN
5733   fi
5734 fi
5735
5736     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5737     *COFF*)
5738       DUMPBIN="$DUMPBIN -symbols -headers"
5739       ;;
5740     *)
5741       DUMPBIN=:
5742       ;;
5743     esac
5744   fi
5745
5746   if test : != "$DUMPBIN"; then
5747     NM=$DUMPBIN
5748   fi
5749 fi
5750 test -z "$NM" && NM=nm
5751
5752
5753
5754
5755
5756
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5758 printf %s "checking the name lister ($NM) interface... " >&6; }
5759 if test ${lt_cv_nm_interface+y}
5760 then :
5761   printf %s "(cached) " >&6
5762 else $as_nop
5763   lt_cv_nm_interface="BSD nm"
5764   echo "int some_variable = 0;" > conftest.$ac_ext
5765   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5766   (eval "$ac_compile" 2>conftest.err)
5767   cat conftest.err >&5
5768   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5769   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5770   cat conftest.err >&5
5771   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5772   cat conftest.out >&5
5773   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5774     lt_cv_nm_interface="MS dumpbin"
5775   fi
5776   rm -f conftest*
5777 fi
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5779 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5780
5781 # find the maximum length of command line arguments
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783 printf %s "checking the maximum length of command line arguments... " >&6; }
5784 if test ${lt_cv_sys_max_cmd_len+y}
5785 then :
5786   printf %s "(cached) " >&6
5787 else $as_nop
5788     i=0
5789   teststring=ABCD
5790
5791   case $build_os in
5792   msdosdjgpp*)
5793     # On DJGPP, this test can blow up pretty badly due to problems in libc
5794     # (any single argument exceeding 2000 bytes causes a buffer overrun
5795     # during glob expansion).  Even if it were fixed, the result of this
5796     # check would be larger than it should be.
5797     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5798     ;;
5799
5800   gnu*)
5801     # Under GNU Hurd, this test is not required because there is
5802     # no limit to the length of command line arguments.
5803     # Libtool will interpret -1 as no limit whatsoever
5804     lt_cv_sys_max_cmd_len=-1;
5805     ;;
5806
5807   cygwin* | mingw* | cegcc*)
5808     # On Win9x/ME, this test blows up -- it succeeds, but takes
5809     # about 5 minutes as the teststring grows exponentially.
5810     # Worse, since 9x/ME are not pre-emptively multitasking,
5811     # you end up with a "frozen" computer, even though with patience
5812     # the test eventually succeeds (with a max line length of 256k).
5813     # Instead, let's just punt: use the minimum linelength reported by
5814     # all of the supported platforms: 8192 (on NT/2K/XP).
5815     lt_cv_sys_max_cmd_len=8192;
5816     ;;
5817
5818   mint*)
5819     # On MiNT this can take a long time and run out of memory.
5820     lt_cv_sys_max_cmd_len=8192;
5821     ;;
5822
5823   amigaos*)
5824     # On AmigaOS with pdksh, this test takes hours, literally.
5825     # So we just punt and use a minimum line length of 8192.
5826     lt_cv_sys_max_cmd_len=8192;
5827     ;;
5828
5829   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5830     # This has been around since 386BSD, at least.  Likely further.
5831     if test -x /sbin/sysctl; then
5832       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833     elif test -x /usr/sbin/sysctl; then
5834       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5835     else
5836       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5837     fi
5838     # And add a safety zone
5839     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841     ;;
5842
5843   interix*)
5844     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845     lt_cv_sys_max_cmd_len=196608
5846     ;;
5847
5848   os2*)
5849     # The test takes a long time on OS/2.
5850     lt_cv_sys_max_cmd_len=8192
5851     ;;
5852
5853   osf*)
5854     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5855     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5856     # nice to cause kernel panics so lets avoid the loop below.
5857     # First set a reasonable default.
5858     lt_cv_sys_max_cmd_len=16384
5859     #
5860     if test -x /sbin/sysconfig; then
5861       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5862         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5863       esac
5864     fi
5865     ;;
5866   sco3.2v5*)
5867     lt_cv_sys_max_cmd_len=102400
5868     ;;
5869   sysv5* | sco5v6* | sysv4.2uw2*)
5870     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5871     if test -n "$kargmax"; then
5872       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
5873     else
5874       lt_cv_sys_max_cmd_len=32768
5875     fi
5876     ;;
5877   *)
5878     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5879     if test -n "$lt_cv_sys_max_cmd_len" && \
5880        test undefined != "$lt_cv_sys_max_cmd_len"; then
5881       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5883     else
5884       # Make teststring a little bigger before we do anything with it.
5885       # a 1K string should be a reasonable start.
5886       for i in 1 2 3 4 5 6 7 8; do
5887         teststring=$teststring$teststring
5888       done
5889       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5890       # If test is not a shell built-in, we'll probably end up computing a
5891       # maximum length that is only half of the actual maximum length, but
5892       # we can't tell.
5893       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5894                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5895               test 17 != "$i" # 1/2 MB should be enough
5896       do
5897         i=`expr $i + 1`
5898         teststring=$teststring$teststring
5899       done
5900       # Only check the string length outside the loop.
5901       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5902       teststring=
5903       # Add a significant safety factor because C++ compilers can tack on
5904       # massive amounts of additional arguments before passing them to the
5905       # linker.  It appears as though 1/2 is a usable value.
5906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5907     fi
5908     ;;
5909   esac
5910
5911 fi
5912
5913 if test -n "$lt_cv_sys_max_cmd_len"; then
5914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5915 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5916 else
5917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5918 printf "%s\n" "none" >&6; }
5919 fi
5920 max_cmd_len=$lt_cv_sys_max_cmd_len
5921
5922
5923
5924
5925
5926
5927 : ${CP="cp -f"}
5928 : ${MV="mv -f"}
5929 : ${RM="rm -f"}
5930
5931 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5932   lt_unset=unset
5933 else
5934   lt_unset=false
5935 fi
5936
5937
5938
5939
5940
5941 # test EBCDIC or ASCII
5942 case `echo X|tr X '\101'` in
5943  A) # ASCII based system
5944     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5945   lt_SP2NL='tr \040 \012'
5946   lt_NL2SP='tr \015\012 \040\040'
5947   ;;
5948  *) # EBCDIC based system
5949   lt_SP2NL='tr \100 \n'
5950   lt_NL2SP='tr \r\n \100\100'
5951   ;;
5952 esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5963 printf %s "checking how to convert $build file names to $host format... " >&6; }
5964 if test ${lt_cv_to_host_file_cmd+y}
5965 then :
5966   printf %s "(cached) " >&6
5967 else $as_nop
5968   case $host in
5969   *-*-mingw* )
5970     case $build in
5971       *-*-mingw* ) # actually msys
5972         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5973         ;;
5974       *-*-cygwin* )
5975         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5976         ;;
5977       * ) # otherwise, assume *nix
5978         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5979         ;;
5980     esac
5981     ;;
5982   *-*-cygwin* )
5983     case $build in
5984       *-*-mingw* ) # actually msys
5985         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5986         ;;
5987       *-*-cygwin* )
5988         lt_cv_to_host_file_cmd=func_convert_file_noop
5989         ;;
5990       * ) # otherwise, assume *nix
5991         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5992         ;;
5993     esac
5994     ;;
5995   * ) # unhandled hosts (and "normal" native builds)
5996     lt_cv_to_host_file_cmd=func_convert_file_noop
5997     ;;
5998 esac
5999
6000 fi
6001
6002 to_host_file_cmd=$lt_cv_to_host_file_cmd
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6004 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6005
6006
6007
6008
6009
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6011 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6012 if test ${lt_cv_to_tool_file_cmd+y}
6013 then :
6014   printf %s "(cached) " >&6
6015 else $as_nop
6016   #assume ordinary cross tools, or native build.
6017 lt_cv_to_tool_file_cmd=func_convert_file_noop
6018 case $host in
6019   *-*-mingw* )
6020     case $build in
6021       *-*-mingw* ) # actually msys
6022         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023         ;;
6024     esac
6025     ;;
6026 esac
6027
6028 fi
6029
6030 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6032 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6033
6034
6035
6036
6037
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6039 printf %s "checking for $LD option to reload object files... " >&6; }
6040 if test ${lt_cv_ld_reload_flag+y}
6041 then :
6042   printf %s "(cached) " >&6
6043 else $as_nop
6044   lt_cv_ld_reload_flag='-r'
6045 fi
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6047 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6048 reload_flag=$lt_cv_ld_reload_flag
6049 case $reload_flag in
6050 "" | " "*) ;;
6051 *) reload_flag=" $reload_flag" ;;
6052 esac
6053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6054 case $host_os in
6055   cygwin* | mingw* | pw32* | cegcc*)
6056     if test yes != "$GCC"; then
6057       reload_cmds=false
6058     fi
6059     ;;
6060   darwin*)
6061     if test yes = "$GCC"; then
6062       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6063     else
6064       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6065     fi
6066     ;;
6067 esac
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 if test -n "$ac_tool_prefix"; then
6078   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}file; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_prog_FILECMD+y}
6083 then :
6084   printf %s "(cached) " >&6
6085 else $as_nop
6086   if test -n "$FILECMD"; then
6087   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   case $as_dir in #(((
6094     '') as_dir=./ ;;
6095     */) ;;
6096     *) as_dir=$as_dir/ ;;
6097   esac
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6100     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6101     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 FILECMD=$ac_cv_prog_FILECMD
6111 if test -n "$FILECMD"; then
6112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6113 printf "%s\n" "$FILECMD" >&6; }
6114 else
6115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 printf "%s\n" "no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_FILECMD"; then
6122   ac_ct_FILECMD=$FILECMD
6123   # Extract the first word of "file", so it can be a program name with args.
6124 set dummy file; ac_word=$2
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 printf %s "checking for $ac_word... " >&6; }
6127 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6128 then :
6129   printf %s "(cached) " >&6
6130 else $as_nop
6131   if test -n "$ac_ct_FILECMD"; then
6132   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   case $as_dir in #(((
6139     '') as_dir=./ ;;
6140     */) ;;
6141     *) as_dir=$as_dir/ ;;
6142   esac
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_FILECMD="file"
6146     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6156 if test -n "$ac_ct_FILECMD"; then
6157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6158 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6159 else
6160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 printf "%s\n" "no" >&6; }
6162 fi
6163
6164   if test "x$ac_ct_FILECMD" = x; then
6165     FILECMD=":"
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173     FILECMD=$ac_ct_FILECMD
6174   fi
6175 else
6176   FILECMD="$ac_cv_prog_FILECMD"
6177 fi
6178
6179
6180
6181
6182
6183
6184
6185 if test -n "$ac_tool_prefix"; then
6186   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 printf %s "checking for $ac_word... " >&6; }
6190 if test ${ac_cv_prog_OBJDUMP+y}
6191 then :
6192   printf %s "(cached) " >&6
6193 else $as_nop
6194   if test -n "$OBJDUMP"; then
6195   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   case $as_dir in #(((
6202     '') as_dir=./ ;;
6203     */) ;;
6204     *) as_dir=$as_dir/ ;;
6205   esac
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6208     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6209     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 OBJDUMP=$ac_cv_prog_OBJDUMP
6219 if test -n "$OBJDUMP"; then
6220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6221 printf "%s\n" "$OBJDUMP" >&6; }
6222 else
6223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 printf "%s\n" "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_OBJDUMP"; then
6230   ac_ct_OBJDUMP=$OBJDUMP
6231   # Extract the first word of "objdump", so it can be a program name with args.
6232 set dummy objdump; ac_word=$2
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 printf %s "checking for $ac_word... " >&6; }
6235 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6236 then :
6237   printf %s "(cached) " >&6
6238 else $as_nop
6239   if test -n "$ac_ct_OBJDUMP"; then
6240   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   case $as_dir in #(((
6247     '') as_dir=./ ;;
6248     */) ;;
6249     *) as_dir=$as_dir/ ;;
6250   esac
6251     for ac_exec_ext in '' $ac_executable_extensions; do
6252   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6254     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258   done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6264 if test -n "$ac_ct_OBJDUMP"; then
6265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6266 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6267 else
6268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 printf "%s\n" "no" >&6; }
6270 fi
6271
6272   if test "x$ac_ct_OBJDUMP" = x; then
6273     OBJDUMP="false"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     OBJDUMP=$ac_ct_OBJDUMP
6282   fi
6283 else
6284   OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 fi
6286
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6288
6289
6290
6291
6292
6293
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6295 printf %s "checking how to recognize dependent libraries... " >&6; }
6296 if test ${lt_cv_deplibs_check_method+y}
6297 then :
6298   printf %s "(cached) " >&6
6299 else $as_nop
6300   lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # 'unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'test_compile' -- check by making test program.
6309 # 'file_magic [[regex]]' -- check by looking for files in library path
6310 # that responds to the $file_magic_cmd with a given extended regex.
6311 # If you have 'file' or equivalent on your system and you're not sure
6312 # whether 'pass_all' will *always* work, you probably want this one.
6313
6314 case $host_os in
6315 aix[4-9]*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 beos*)
6320   lt_cv_deplibs_check_method=pass_all
6321   ;;
6322
6323 bsdi[45]*)
6324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325   lt_cv_file_magic_cmd='$FILECMD -L'
6326   lt_cv_file_magic_test_file=/shlib/libc.so
6327   ;;
6328
6329 cygwin*)
6330   # func_win32_libid is a shell function defined in ltmain.sh
6331   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332   lt_cv_file_magic_cmd='func_win32_libid'
6333   ;;
6334
6335 mingw* | pw32*)
6336   # Base MSYS/MinGW do not provide the 'file' command needed by
6337   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338   # unless we find 'file', for example because we are cross-compiling.
6339   if ( file / ) >/dev/null 2>&1; then
6340     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341     lt_cv_file_magic_cmd='func_win32_libid'
6342   else
6343     # Keep this pattern in sync with the one in func_win32_libid.
6344     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6345     lt_cv_file_magic_cmd='$OBJDUMP -f'
6346   fi
6347   ;;
6348
6349 cegcc*)
6350   # use the weaker test based on 'objdump'. See mingw*.
6351   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6352   lt_cv_file_magic_cmd='$OBJDUMP -f'
6353   ;;
6354
6355 darwin* | rhapsody*)
6356   lt_cv_deplibs_check_method=pass_all
6357   ;;
6358
6359 freebsd* | dragonfly* | midnightbsd*)
6360   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6361     case $host_cpu in
6362     i*86 )
6363       # Not sure whether the presence of OpenBSD here was a mistake.
6364       # Let's accept both of them until this is cleared up.
6365       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6366       lt_cv_file_magic_cmd=$FILECMD
6367       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6368       ;;
6369     esac
6370   else
6371     lt_cv_deplibs_check_method=pass_all
6372   fi
6373   ;;
6374
6375 haiku*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 hpux10.20* | hpux11*)
6380   lt_cv_file_magic_cmd=$FILECMD
6381   case $host_cpu in
6382   ia64*)
6383     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6384     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6385     ;;
6386   hppa*64*)
6387     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]'
6388     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6389     ;;
6390   *)
6391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6392     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6393     ;;
6394   esac
6395   ;;
6396
6397 interix[3-9]*)
6398   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6399   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6400   ;;
6401
6402 irix5* | irix6* | nonstopux*)
6403   case $LD in
6404   *-32|*"-32 ") libmagic=32-bit;;
6405   *-n32|*"-n32 ") libmagic=N32;;
6406   *-64|*"-64 ") libmagic=64-bit;;
6407   *) libmagic=never-match;;
6408   esac
6409   lt_cv_deplibs_check_method=pass_all
6410   ;;
6411
6412 # This must be glibc/ELF.
6413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 netbsd*)
6418   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420   else
6421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6422   fi
6423   ;;
6424
6425 newos6*)
6426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6427   lt_cv_file_magic_cmd=$FILECMD
6428   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429   ;;
6430
6431 *nto* | *qnx*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434
6435 openbsd* | bitrig*)
6436   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438   else
6439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440   fi
6441   ;;
6442
6443 osf3* | osf4* | osf5*)
6444   lt_cv_deplibs_check_method=pass_all
6445   ;;
6446
6447 rdos*)
6448   lt_cv_deplibs_check_method=pass_all
6449   ;;
6450
6451 solaris*)
6452   lt_cv_deplibs_check_method=pass_all
6453   ;;
6454
6455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458
6459 sysv4 | sysv4.3*)
6460   case $host_vendor in
6461   motorola)
6462     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]'
6463     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6464     ;;
6465   ncr)
6466     lt_cv_deplibs_check_method=pass_all
6467     ;;
6468   sequent)
6469     lt_cv_file_magic_cmd='/bin/file'
6470     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6471     ;;
6472   sni)
6473     lt_cv_file_magic_cmd='/bin/file'
6474     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6475     lt_cv_file_magic_test_file=/lib/libc.so
6476     ;;
6477   siemens)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   pc)
6481     lt_cv_deplibs_check_method=pass_all
6482     ;;
6483   esac
6484   ;;
6485
6486 tpf*)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489 os2*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492 esac
6493
6494 fi
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6496 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6497
6498 file_magic_glob=
6499 want_nocaseglob=no
6500 if test "$build" = "$host"; then
6501   case $host_os in
6502   mingw* | pw32*)
6503     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6504       want_nocaseglob=yes
6505     else
6506       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6507     fi
6508     ;;
6509   esac
6510 fi
6511
6512 file_magic_cmd=$lt_cv_file_magic_cmd
6513 deplibs_check_method=$lt_cv_deplibs_check_method
6514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 if test -n "$ac_tool_prefix"; then
6538   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 printf %s "checking for $ac_word... " >&6; }
6542 if test ${ac_cv_prog_DLLTOOL+y}
6543 then :
6544   printf %s "(cached) " >&6
6545 else $as_nop
6546   if test -n "$DLLTOOL"; then
6547   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   case $as_dir in #(((
6554     '') as_dir=./ ;;
6555     */) ;;
6556     *) as_dir=$as_dir/ ;;
6557   esac
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6560     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6561     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 DLLTOOL=$ac_cv_prog_DLLTOOL
6571 if test -n "$DLLTOOL"; then
6572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6573 printf "%s\n" "$DLLTOOL" >&6; }
6574 else
6575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 printf "%s\n" "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_DLLTOOL"; then
6582   ac_ct_DLLTOOL=$DLLTOOL
6583   # Extract the first word of "dlltool", so it can be a program name with args.
6584 set dummy dlltool; ac_word=$2
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 printf %s "checking for $ac_word... " >&6; }
6587 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6588 then :
6589   printf %s "(cached) " >&6
6590 else $as_nop
6591   if test -n "$ac_ct_DLLTOOL"; then
6592   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   case $as_dir in #(((
6599     '') as_dir=./ ;;
6600     */) ;;
6601     *) as_dir=$as_dir/ ;;
6602   esac
6603     for ac_exec_ext in '' $ac_executable_extensions; do
6604   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6605     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6606     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610   done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6616 if test -n "$ac_ct_DLLTOOL"; then
6617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6618 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6619 else
6620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 printf "%s\n" "no" >&6; }
6622 fi
6623
6624   if test "x$ac_ct_DLLTOOL" = x; then
6625     DLLTOOL="false"
6626   else
6627     case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633     DLLTOOL=$ac_ct_DLLTOOL
6634   fi
6635 else
6636   DLLTOOL="$ac_cv_prog_DLLTOOL"
6637 fi
6638
6639 test -z "$DLLTOOL" && DLLTOOL=dlltool
6640
6641
6642
6643
6644
6645
6646
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6648 printf %s "checking how to associate runtime and link libraries... " >&6; }
6649 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6650 then :
6651   printf %s "(cached) " >&6
6652 else $as_nop
6653   lt_cv_sharedlib_from_linklib_cmd='unknown'
6654
6655 case $host_os in
6656 cygwin* | mingw* | pw32* | cegcc*)
6657   # two different shell functions defined in ltmain.sh;
6658   # decide which one to use based on capabilities of $DLLTOOL
6659   case `$DLLTOOL --help 2>&1` in
6660   *--identify-strict*)
6661     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6662     ;;
6663   *)
6664     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6665     ;;
6666   esac
6667   ;;
6668 *)
6669   # fallback: assume linklib IS sharedlib
6670   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6671   ;;
6672 esac
6673
6674 fi
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6676 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6677 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6678 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6679
6680
6681
6682
6683
6684
6685
6686
6687 if test -n "$ac_tool_prefix"; then
6688   for ac_prog in ar
6689   do
6690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 printf %s "checking for $ac_word... " >&6; }
6694 if test ${ac_cv_prog_AR+y}
6695 then :
6696   printf %s "(cached) " >&6
6697 else $as_nop
6698   if test -n "$AR"; then
6699   ac_cv_prog_AR="$AR" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   case $as_dir in #(((
6706     '') as_dir=./ ;;
6707     */) ;;
6708     *) as_dir=$as_dir/ ;;
6709   esac
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6713     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 AR=$ac_cv_prog_AR
6723 if test -n "$AR"; then
6724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6725 printf "%s\n" "$AR" >&6; }
6726 else
6727   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 printf "%s\n" "no" >&6; }
6729 fi
6730
6731
6732     test -n "$AR" && break
6733   done
6734 fi
6735 if test -z "$AR"; then
6736   ac_ct_AR=$AR
6737   for ac_prog in ar
6738 do
6739   # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 printf %s "checking for $ac_word... " >&6; }
6743 if test ${ac_cv_prog_ac_ct_AR+y}
6744 then :
6745   printf %s "(cached) " >&6
6746 else $as_nop
6747   if test -n "$ac_ct_AR"; then
6748   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   case $as_dir in #(((
6755     '') as_dir=./ ;;
6756     */) ;;
6757     *) as_dir=$as_dir/ ;;
6758   esac
6759     for ac_exec_ext in '' $ac_executable_extensions; do
6760   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6761     ac_cv_prog_ac_ct_AR="$ac_prog"
6762     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766   done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774 printf "%s\n" "$ac_ct_AR" >&6; }
6775 else
6776   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 printf "%s\n" "no" >&6; }
6778 fi
6779
6780
6781   test -n "$ac_ct_AR" && break
6782 done
6783
6784   if test "x$ac_ct_AR" = x; then
6785     AR="false"
6786   else
6787     case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793     AR=$ac_ct_AR
6794   fi
6795 fi
6796
6797 : ${AR=ar}
6798
6799
6800
6801
6802
6803
6804 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6805 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6806 # higher priority because thats what people were doing historically (setting
6807 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6808 # variable obsoleted/removed.
6809
6810 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6811 lt_ar_flags=$AR_FLAGS
6812
6813
6814
6815
6816
6817
6818 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6819 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6820
6821
6822
6823
6824
6825
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6827 printf %s "checking for archiver @FILE support... " >&6; }
6828 if test ${lt_cv_ar_at_file+y}
6829 then :
6830   printf %s "(cached) " >&6
6831 else $as_nop
6832   lt_cv_ar_at_file=no
6833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h.  */
6835
6836 int
6837 main (void)
6838 {
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"
6845 then :
6846   echo conftest.$ac_objext > conftest.lst
6847       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849   (eval $lt_ar_try) 2>&5
6850   ac_status=$?
6851   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852   test $ac_status = 0; }
6853       if test 0 -eq "$ac_status"; then
6854         # Ensure the archiver fails upon bogus file names.
6855         rm -f conftest.$ac_objext libconftest.a
6856         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857   (eval $lt_ar_try) 2>&5
6858   ac_status=$?
6859   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860   test $ac_status = 0; }
6861         if test 0 -ne "$ac_status"; then
6862           lt_cv_ar_at_file=@
6863         fi
6864       fi
6865       rm -f conftest.* libconftest.a
6866
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6869
6870 fi
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6873
6874 if test no = "$lt_cv_ar_at_file"; then
6875   archiver_list_spec=
6876 else
6877   archiver_list_spec=$lt_cv_ar_at_file
6878 fi
6879
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 printf %s "checking for $ac_word... " >&6; }
6891 if test ${ac_cv_prog_STRIP+y}
6892 then :
6893   printf %s "(cached) " >&6
6894 else $as_nop
6895   if test -n "$STRIP"; then
6896   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   case $as_dir in #(((
6903     '') as_dir=./ ;;
6904     */) ;;
6905     *) as_dir=$as_dir/ ;;
6906   esac
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_STRIP="${ac_tool_prefix}strip"
6910     printf "%s\n" "$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 STRIP=$ac_cv_prog_STRIP
6920 if test -n "$STRIP"; then
6921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6922 printf "%s\n" "$STRIP" >&6; }
6923 else
6924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_STRIP"; then
6931   ac_ct_STRIP=$STRIP
6932   # Extract the first word of "strip", so it can be a program name with args.
6933 set dummy strip; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_ac_ct_STRIP+y}
6937 then :
6938   printf %s "(cached) " >&6
6939 else $as_nop
6940   if test -n "$ac_ct_STRIP"; then
6941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   case $as_dir in #(((
6948     '') as_dir=./ ;;
6949     */) ;;
6950     *) as_dir=$as_dir/ ;;
6951   esac
6952     for ac_exec_ext in '' $ac_executable_extensions; do
6953   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954     ac_cv_prog_ac_ct_STRIP="strip"
6955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6956     break 2
6957   fi
6958 done
6959   done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967 printf "%s\n" "$ac_ct_STRIP" >&6; }
6968 else
6969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6971 fi
6972
6973   if test "x$ac_ct_STRIP" = x; then
6974     STRIP=":"
6975   else
6976     case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982     STRIP=$ac_ct_STRIP
6983   fi
6984 else
6985   STRIP="$ac_cv_prog_STRIP"
6986 fi
6987
6988 test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 printf %s "checking for $ac_word... " >&6; }
7000 if test ${ac_cv_prog_RANLIB+y}
7001 then :
7002   printf %s "(cached) " >&6
7003 else $as_nop
7004   if test -n "$RANLIB"; then
7005   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   case $as_dir in #(((
7012     '') as_dir=./ ;;
7013     */) ;;
7014     *) as_dir=$as_dir/ ;;
7015   esac
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7019     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 RANLIB=$ac_cv_prog_RANLIB
7029 if test -n "$RANLIB"; then
7030   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031 printf "%s\n" "$RANLIB" >&6; }
7032 else
7033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_RANLIB"; then
7040   ac_ct_RANLIB=$RANLIB
7041   # Extract the first word of "ranlib", so it can be a program name with args.
7042 set dummy ranlib; ac_word=$2
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 printf %s "checking for $ac_word... " >&6; }
7045 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7046 then :
7047   printf %s "(cached) " >&6
7048 else $as_nop
7049   if test -n "$ac_ct_RANLIB"; then
7050   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   case $as_dir in #(((
7057     '') as_dir=./ ;;
7058     */) ;;
7059     *) as_dir=$as_dir/ ;;
7060   esac
7061     for ac_exec_ext in '' $ac_executable_extensions; do
7062   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7063     ac_cv_prog_ac_ct_RANLIB="ranlib"
7064     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068   done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074 if test -n "$ac_ct_RANLIB"; then
7075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7076 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7077 else
7078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 printf "%s\n" "no" >&6; }
7080 fi
7081
7082   if test "x$ac_ct_RANLIB" = x; then
7083     RANLIB=":"
7084   else
7085     case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091     RANLIB=$ac_ct_RANLIB
7092   fi
7093 else
7094   RANLIB="$ac_cv_prog_RANLIB"
7095 fi
7096
7097 test -z "$RANLIB" && RANLIB=:
7098
7099
7100
7101
7102
7103
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7108
7109 if test -n "$RANLIB"; then
7110   case $host_os in
7111   bitrig* | openbsd*)
7112     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7113     ;;
7114   *)
7115     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7116     ;;
7117   esac
7118   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7119 fi
7120
7121 case $host_os in
7122   darwin*)
7123     lock_old_archive_extraction=yes ;;
7124   *)
7125     lock_old_archive_extraction=no ;;
7126 esac
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 # If no C compiler was specified, use CC.
7167 LTCC=${LTCC-"$CC"}
7168
7169 # If no C compiler flags were specified, use CFLAGS.
7170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171
7172 # Allow CC to be a program name with arguments.
7173 compiler=$CC
7174
7175
7176 # Check for command to grab the raw symbol name followed by C symbol from nm.
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7178 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7179 if test ${lt_cv_sys_global_symbol_pipe+y}
7180 then :
7181   printf %s "(cached) " >&6
7182 else $as_nop
7183
7184 # These are sane defaults that work on at least a few old systems.
7185 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7186
7187 # Character class describing NM global symbol codes.
7188 symcode='[BCDEGRST]'
7189
7190 # Regexp to match symbols that can be accessed directly from C.
7191 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7192
7193 # Define system-specific variables.
7194 case $host_os in
7195 aix*)
7196   symcode='[BCDT]'
7197   ;;
7198 cygwin* | mingw* | pw32* | cegcc*)
7199   symcode='[ABCDGISTW]'
7200   ;;
7201 hpux*)
7202   if test ia64 = "$host_cpu"; then
7203     symcode='[ABCDEGRST]'
7204   fi
7205   ;;
7206 irix* | nonstopux*)
7207   symcode='[BCDEGRST]'
7208   ;;
7209 osf*)
7210   symcode='[BCDEGQRST]'
7211   ;;
7212 solaris*)
7213   symcode='[BDRT]'
7214   ;;
7215 sco3.2v5*)
7216   symcode='[DT]'
7217   ;;
7218 sysv4.2uw2*)
7219   symcode='[DT]'
7220   ;;
7221 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7222   symcode='[ABDT]'
7223   ;;
7224 sysv4)
7225   symcode='[DFNSTU]'
7226   ;;
7227 esac
7228
7229 # If we're using GNU nm, then use its standard symbol codes.
7230 case `$NM -V 2>&1` in
7231 *GNU* | *'with BFD'*)
7232   symcode='[ABCDGIRSTW]' ;;
7233 esac
7234
7235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236   # Gets list of data symbols to import.
7237   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7238   # Adjust the below global symbol transforms to fixup imported variables.
7239   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7240   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7241   lt_c_name_lib_hook="\
7242   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7243   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7244 else
7245   # Disable hooks by default.
7246   lt_cv_sys_global_symbol_to_import=
7247   lt_cdecl_hook=
7248   lt_c_name_hook=
7249   lt_c_name_lib_hook=
7250 fi
7251
7252 # Transform an extracted symbol line into a proper C declaration.
7253 # Some systems (esp. on ia64) link data and code symbols differently,
7254 # so use this general approach.
7255 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7256 $lt_cdecl_hook\
7257 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7258 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7259
7260 # Transform an extracted symbol line into symbol name and symbol address
7261 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7262 $lt_c_name_hook\
7263 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7264 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7265
7266 # Transform an extracted symbol line into symbol name with lib prefix and
7267 # symbol address.
7268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7269 $lt_c_name_lib_hook\
7270 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7271 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7272 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7273
7274 # Handle CRLF in mingw tool chain
7275 opt_cr=
7276 case $build_os in
7277 mingw*)
7278   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7279   ;;
7280 esac
7281
7282 # Try without a prefix underscore, then with it.
7283 for ac_symprfx in "" "_"; do
7284
7285   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7286   symxfrm="\\1 $ac_symprfx\\2 \\2"
7287
7288   # Write the raw and C identifiers.
7289   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7290     # Fake it for dumpbin and say T for any non-static function,
7291     # D for any global variable and I for any imported variable.
7292     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7293     # which start with @ or ?.
7294     lt_cv_sys_global_symbol_pipe="$AWK '"\
7295 "     {last_section=section; section=\$ 3};"\
7296 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7297 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7299 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7300 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7301 "     \$ 0!~/External *\|/{next};"\
7302 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7303 "     {if(hide[section]) next};"\
7304 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7305 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7306 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7307 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7308 "     ' prfx=^$ac_symprfx"
7309   else
7310     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7311   fi
7312   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7313
7314   # Check to see that the pipe works correctly.
7315   pipe_works=no
7316
7317   rm -f conftest*
7318   cat > conftest.$ac_ext <<_LT_EOF
7319 #ifdef __cplusplus
7320 extern "C" {
7321 #endif
7322 char nm_test_var;
7323 void nm_test_func(void);
7324 void nm_test_func(void){}
7325 #ifdef __cplusplus
7326 }
7327 #endif
7328 int main(){nm_test_var='a';nm_test_func();return(0);}
7329 _LT_EOF
7330
7331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332   (eval $ac_compile) 2>&5
7333   ac_status=$?
7334   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335   test $ac_status = 0; }; then
7336     # Now try to grab the symbols.
7337     nlist=conftest.nm
7338     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7339   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7340   ac_status=$?
7341   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342   test $ac_status = 0; } && test -s "$nlist"; then
7343       # Try sorting and uniquifying the output.
7344       if sort "$nlist" | uniq > "$nlist"T; then
7345         mv -f "$nlist"T "$nlist"
7346       else
7347         rm -f "$nlist"T
7348       fi
7349
7350       # Make sure that we snagged all the symbols we need.
7351       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7352         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7353           cat <<_LT_EOF > conftest.$ac_ext
7354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7355 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7356 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7357    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7358 # define LT_DLSYM_CONST
7359 #elif defined __osf__
7360 /* This system does not cope well with relocations in const data.  */
7361 # define LT_DLSYM_CONST
7362 #else
7363 # define LT_DLSYM_CONST const
7364 #endif
7365
7366 #ifdef __cplusplus
7367 extern "C" {
7368 #endif
7369
7370 _LT_EOF
7371           # Now generate the symbol file.
7372           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7373
7374           cat <<_LT_EOF >> conftest.$ac_ext
7375
7376 /* The mapping between symbol names and symbols.  */
7377 LT_DLSYM_CONST struct {
7378   const char *name;
7379   void       *address;
7380 }
7381 lt__PROGRAM__LTX_preloaded_symbols[] =
7382 {
7383   { "@PROGRAM@", (void *) 0 },
7384 _LT_EOF
7385           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7386           cat <<\_LT_EOF >> conftest.$ac_ext
7387   {0, (void *) 0}
7388 };
7389
7390 /* This works around a problem in FreeBSD linker */
7391 #ifdef FREEBSD_WORKAROUND
7392 static const void *lt_preloaded_setup() {
7393   return lt__PROGRAM__LTX_preloaded_symbols;
7394 }
7395 #endif
7396
7397 #ifdef __cplusplus
7398 }
7399 #endif
7400 _LT_EOF
7401           # Now try linking the two files.
7402           mv conftest.$ac_objext conftstm.$ac_objext
7403           lt_globsym_save_LIBS=$LIBS
7404           lt_globsym_save_CFLAGS=$CFLAGS
7405           LIBS=conftstm.$ac_objext
7406           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7407           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7408   (eval $ac_link) 2>&5
7409   ac_status=$?
7410   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7412             pipe_works=yes
7413           fi
7414           LIBS=$lt_globsym_save_LIBS
7415           CFLAGS=$lt_globsym_save_CFLAGS
7416         else
7417           echo "cannot find nm_test_func in $nlist" >&5
7418         fi
7419       else
7420         echo "cannot find nm_test_var in $nlist" >&5
7421       fi
7422     else
7423       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7424     fi
7425   else
7426     echo "$progname: failed program was:" >&5
7427     cat conftest.$ac_ext >&5
7428   fi
7429   rm -rf conftest* conftst*
7430
7431   # Do not use the global_symbol_pipe unless it works.
7432   if test yes = "$pipe_works"; then
7433     break
7434   else
7435     lt_cv_sys_global_symbol_pipe=
7436   fi
7437 done
7438
7439 fi
7440
7441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7442   lt_cv_sys_global_symbol_to_cdecl=
7443 fi
7444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7446 printf "%s\n" "failed" >&6; }
7447 else
7448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7449 printf "%s\n" "ok" >&6; }
7450 fi
7451
7452 # Response file support.
7453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7454   nm_file_list_spec='@'
7455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7456   nm_file_list_spec='@'
7457 fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7496 printf %s "checking for sysroot... " >&6; }
7497
7498 # Check whether --with-sysroot was given.
7499 if test ${with_sysroot+y}
7500 then :
7501   withval=$with_sysroot;
7502 else $as_nop
7503   with_sysroot=no
7504 fi
7505
7506
7507 lt_sysroot=
7508 case $with_sysroot in #(
7509  yes)
7510    if test yes = "$GCC"; then
7511      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7512    fi
7513    ;; #(
7514  /*)
7515    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7516    ;; #(
7517  no|'')
7518    ;; #(
7519  *)
7520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7521 printf "%s\n" "$with_sysroot" >&6; }
7522    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7523    ;;
7524 esac
7525
7526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7527 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7528
7529
7530
7531
7532
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7534 printf %s "checking for a working dd... " >&6; }
7535 if test ${ac_cv_path_lt_DD+y}
7536 then :
7537   printf %s "(cached) " >&6
7538 else $as_nop
7539   printf 0123456789abcdef0123456789abcdef >conftest.i
7540 cat conftest.i conftest.i >conftest2.i
7541 : ${lt_DD:=$DD}
7542 if test -z "$lt_DD"; then
7543   ac_path_lt_DD_found=false
7544   # Loop through the user's path and test for each of PROGNAME-LIST
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   case $as_dir in #(((
7550     '') as_dir=./ ;;
7551     */) ;;
7552     *) as_dir=$as_dir/ ;;
7553   esac
7554     for ac_prog in dd
7555    do
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7558       as_fn_executable_p "$ac_path_lt_DD" || continue
7559 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7560   cmp -s conftest.i conftest.out \
7561   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7562 fi
7563       $ac_path_lt_DD_found && break 3
7564     done
7565   done
7566   done
7567 IFS=$as_save_IFS
7568   if test -z "$ac_cv_path_lt_DD"; then
7569     :
7570   fi
7571 else
7572   ac_cv_path_lt_DD=$lt_DD
7573 fi
7574
7575 rm -f conftest.i conftest2.i conftest.out
7576 fi
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7578 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7579
7580
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7582 printf %s "checking how to truncate binary pipes... " >&6; }
7583 if test ${lt_cv_truncate_bin+y}
7584 then :
7585   printf %s "(cached) " >&6
7586 else $as_nop
7587   printf 0123456789abcdef0123456789abcdef >conftest.i
7588 cat conftest.i conftest.i >conftest2.i
7589 lt_cv_truncate_bin=
7590 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7591   cmp -s conftest.i conftest.out \
7592   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7593 fi
7594 rm -f conftest.i conftest2.i conftest.out
7595 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7596 fi
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7598 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7599
7600
7601
7602
7603
7604
7605
7606 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7607 func_cc_basename ()
7608 {
7609     for cc_temp in $*""; do
7610       case $cc_temp in
7611         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613         \-*) ;;
7614         *) break;;
7615       esac
7616     done
7617     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7618 }
7619
7620 # Check whether --enable-libtool-lock was given.
7621 if test ${enable_libtool_lock+y}
7622 then :
7623   enableval=$enable_libtool_lock;
7624 fi
7625
7626 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7627
7628 # Some flags need to be propagated to the compiler or linker for good
7629 # libtool support.
7630 case $host in
7631 ia64-*-hpux*)
7632   # Find out what ABI is being produced by ac_compile, and set mode
7633   # options accordingly.
7634   echo 'int i;' > conftest.$ac_ext
7635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636   (eval $ac_compile) 2>&5
7637   ac_status=$?
7638   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639   test $ac_status = 0; }; then
7640     case `$FILECMD conftest.$ac_objext` in
7641       *ELF-32*)
7642         HPUX_IA64_MODE=32
7643         ;;
7644       *ELF-64*)
7645         HPUX_IA64_MODE=64
7646         ;;
7647     esac
7648   fi
7649   rm -rf conftest*
7650   ;;
7651 *-*-irix6*)
7652   # Find out what ABI is being produced by ac_compile, and set linker
7653   # options accordingly.
7654   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7655   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7656   (eval $ac_compile) 2>&5
7657   ac_status=$?
7658   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659   test $ac_status = 0; }; then
7660     if test yes = "$lt_cv_prog_gnu_ld"; then
7661       case `$FILECMD conftest.$ac_objext` in
7662         *32-bit*)
7663           LD="${LD-ld} -melf32bsmip"
7664           ;;
7665         *N32*)
7666           LD="${LD-ld} -melf32bmipn32"
7667           ;;
7668         *64-bit*)
7669           LD="${LD-ld} -melf64bmip"
7670         ;;
7671       esac
7672     else
7673       case `$FILECMD conftest.$ac_objext` in
7674         *32-bit*)
7675           LD="${LD-ld} -32"
7676           ;;
7677         *N32*)
7678           LD="${LD-ld} -n32"
7679           ;;
7680         *64-bit*)
7681           LD="${LD-ld} -64"
7682           ;;
7683       esac
7684     fi
7685   fi
7686   rm -rf conftest*
7687   ;;
7688
7689 mips64*-*linux*)
7690   # Find out what ABI is being produced by ac_compile, and set linker
7691   # options accordingly.
7692   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694   (eval $ac_compile) 2>&5
7695   ac_status=$?
7696   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697   test $ac_status = 0; }; then
7698     emul=elf
7699     case `$FILECMD conftest.$ac_objext` in
7700       *32-bit*)
7701         emul="${emul}32"
7702         ;;
7703       *64-bit*)
7704         emul="${emul}64"
7705         ;;
7706     esac
7707     case `$FILECMD conftest.$ac_objext` in
7708       *MSB*)
7709         emul="${emul}btsmip"
7710         ;;
7711       *LSB*)
7712         emul="${emul}ltsmip"
7713         ;;
7714     esac
7715     case `$FILECMD conftest.$ac_objext` in
7716       *N32*)
7717         emul="${emul}n32"
7718         ;;
7719     esac
7720     LD="${LD-ld} -m $emul"
7721   fi
7722   rm -rf conftest*
7723   ;;
7724
7725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7727   # Find out what ABI is being produced by ac_compile, and set linker
7728   # options accordingly.  Note that the listed cases only cover the
7729   # situations where additional linker options are needed (such as when
7730   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7731   # vice versa); the common cases where no linker options are needed do
7732   # not appear in the list.
7733   echo 'int i;' > conftest.$ac_ext
7734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7735   (eval $ac_compile) 2>&5
7736   ac_status=$?
7737   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738   test $ac_status = 0; }; then
7739     case `$FILECMD conftest.o` in
7740       *32-bit*)
7741         case $host in
7742           x86_64-*kfreebsd*-gnu)
7743             LD="${LD-ld} -m elf_i386_fbsd"
7744             ;;
7745           x86_64-*linux*)
7746             case `$FILECMD conftest.o` in
7747               *x86-64*)
7748                 LD="${LD-ld} -m elf32_x86_64"
7749                 ;;
7750               *)
7751                 LD="${LD-ld} -m elf_i386"
7752                 ;;
7753             esac
7754             ;;
7755           powerpc64le-*linux*)
7756             LD="${LD-ld} -m elf32lppclinux"
7757             ;;
7758           powerpc64-*linux*)
7759             LD="${LD-ld} -m elf32ppclinux"
7760             ;;
7761           s390x-*linux*)
7762             LD="${LD-ld} -m elf_s390"
7763             ;;
7764           sparc64-*linux*)
7765             LD="${LD-ld} -m elf32_sparc"
7766             ;;
7767         esac
7768         ;;
7769       *64-bit*)
7770         case $host in
7771           x86_64-*kfreebsd*-gnu)
7772             LD="${LD-ld} -m elf_x86_64_fbsd"
7773             ;;
7774           x86_64-*linux*)
7775             LD="${LD-ld} -m elf_x86_64"
7776             ;;
7777           powerpcle-*linux*)
7778             LD="${LD-ld} -m elf64lppc"
7779             ;;
7780           powerpc-*linux*)
7781             LD="${LD-ld} -m elf64ppc"
7782             ;;
7783           s390*-*linux*|s390*-*tpf*)
7784             LD="${LD-ld} -m elf64_s390"
7785             ;;
7786           sparc*-*linux*)
7787             LD="${LD-ld} -m elf64_sparc"
7788             ;;
7789         esac
7790         ;;
7791     esac
7792   fi
7793   rm -rf conftest*
7794   ;;
7795
7796 *-*-sco3.2v5*)
7797   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7798   SAVE_CFLAGS=$CFLAGS
7799   CFLAGS="$CFLAGS -belf"
7800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7801 printf %s "checking whether the C compiler needs -belf... " >&6; }
7802 if test ${lt_cv_cc_needs_belf+y}
7803 then :
7804   printf %s "(cached) " >&6
7805 else $as_nop
7806   ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h.  */
7814
7815 int
7816 main (void)
7817 {
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 if ac_fn_c_try_link "$LINENO"
7824 then :
7825   lt_cv_cc_needs_belf=yes
7826 else $as_nop
7827   lt_cv_cc_needs_belf=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7830     conftest$ac_exeext conftest.$ac_ext
7831      ac_ext=c
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837 fi
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7839 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7840   if test yes != "$lt_cv_cc_needs_belf"; then
7841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7842     CFLAGS=$SAVE_CFLAGS
7843   fi
7844   ;;
7845 *-*solaris*)
7846   # Find out what ABI is being produced by ac_compile, and set linker
7847   # options accordingly.
7848   echo 'int i;' > conftest.$ac_ext
7849   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7850   (eval $ac_compile) 2>&5
7851   ac_status=$?
7852   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853   test $ac_status = 0; }; then
7854     case `$FILECMD conftest.o` in
7855     *64-bit*)
7856       case $lt_cv_prog_gnu_ld in
7857       yes*)
7858         case $host in
7859         i?86-*-solaris*|x86_64-*-solaris*)
7860           LD="${LD-ld} -m elf_x86_64"
7861           ;;
7862         sparc*-*-solaris*)
7863           LD="${LD-ld} -m elf64_sparc"
7864           ;;
7865         esac
7866         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7867         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7868           LD=${LD-ld}_sol2
7869         fi
7870         ;;
7871       *)
7872         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7873           LD="${LD-ld} -64"
7874         fi
7875         ;;
7876       esac
7877       ;;
7878     esac
7879   fi
7880   rm -rf conftest*
7881   ;;
7882 esac
7883
7884 need_locks=$enable_libtool_lock
7885
7886 if test -n "$ac_tool_prefix"; then
7887   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}mt; ac_word=$2
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 printf %s "checking for $ac_word... " >&6; }
7891 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7892 then :
7893   printf %s "(cached) " >&6
7894 else $as_nop
7895   if test -n "$MANIFEST_TOOL"; then
7896   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   case $as_dir in #(((
7903     '') as_dir=./ ;;
7904     */) ;;
7905     *) as_dir=$as_dir/ ;;
7906   esac
7907     for ac_exec_ext in '' $ac_executable_extensions; do
7908   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7910     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914   done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7920 if test -n "$MANIFEST_TOOL"; then
7921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7922 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7923 else
7924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 printf "%s\n" "no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7931   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7932   # Extract the first word of "mt", so it can be a program name with args.
7933 set dummy mt; ac_word=$2
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 printf %s "checking for $ac_word... " >&6; }
7936 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7937 then :
7938   printf %s "(cached) " >&6
7939 else $as_nop
7940   if test -n "$ac_ct_MANIFEST_TOOL"; then
7941   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946   IFS=$as_save_IFS
7947   case $as_dir in #(((
7948     '') as_dir=./ ;;
7949     */) ;;
7950     *) as_dir=$as_dir/ ;;
7951   esac
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7954     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7965 if test -n "$ac_ct_MANIFEST_TOOL"; then
7966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7967 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7968 else
7969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 printf "%s\n" "no" >&6; }
7971 fi
7972
7973   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7974     MANIFEST_TOOL=":"
7975   else
7976     case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7983   fi
7984 else
7985   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7986 fi
7987
7988 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7990 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7991 if test ${lt_cv_path_mainfest_tool+y}
7992 then :
7993   printf %s "(cached) " >&6
7994 else $as_nop
7995   lt_cv_path_mainfest_tool=no
7996   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7997   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7998   cat conftest.err >&5
7999   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8000     lt_cv_path_mainfest_tool=yes
8001   fi
8002   rm -f conftest*
8003 fi
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8005 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8006 if test yes != "$lt_cv_path_mainfest_tool"; then
8007   MANIFEST_TOOL=:
8008 fi
8009
8010
8011
8012
8013
8014
8015   case $host_os in
8016     rhapsody* | darwin*)
8017     if test -n "$ac_tool_prefix"; then
8018   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 printf %s "checking for $ac_word... " >&6; }
8022 if test ${ac_cv_prog_DSYMUTIL+y}
8023 then :
8024   printf %s "(cached) " >&6
8025 else $as_nop
8026   if test -n "$DSYMUTIL"; then
8027   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   case $as_dir in #(((
8034     '') as_dir=./ ;;
8035     */) ;;
8036     *) as_dir=$as_dir/ ;;
8037   esac
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8040     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8041     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8051 if test -n "$DSYMUTIL"; then
8052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8053 printf "%s\n" "$DSYMUTIL" >&6; }
8054 else
8055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 printf "%s\n" "no" >&6; }
8057 fi
8058
8059
8060 fi
8061 if test -z "$ac_cv_prog_DSYMUTIL"; then
8062   ac_ct_DSYMUTIL=$DSYMUTIL
8063   # Extract the first word of "dsymutil", so it can be a program name with args.
8064 set dummy dsymutil; ac_word=$2
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 printf %s "checking for $ac_word... " >&6; }
8067 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8068 then :
8069   printf %s "(cached) " >&6
8070 else $as_nop
8071   if test -n "$ac_ct_DSYMUTIL"; then
8072   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8073 else
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8076 do
8077   IFS=$as_save_IFS
8078   case $as_dir in #(((
8079     '') as_dir=./ ;;
8080     */) ;;
8081     *) as_dir=$as_dir/ ;;
8082   esac
8083     for ac_exec_ext in '' $ac_executable_extensions; do
8084   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8085     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8086     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8087     break 2
8088   fi
8089 done
8090   done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8096 if test -n "$ac_ct_DSYMUTIL"; then
8097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8098 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8099 else
8100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 printf "%s\n" "no" >&6; }
8102 fi
8103
8104   if test "x$ac_ct_DSYMUTIL" = x; then
8105     DSYMUTIL=":"
8106   else
8107     case $cross_compiling:$ac_tool_warned in
8108 yes:)
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8112 esac
8113     DSYMUTIL=$ac_ct_DSYMUTIL
8114   fi
8115 else
8116   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8117 fi
8118
8119     if test -n "$ac_tool_prefix"; then
8120   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_NMEDIT+y}
8125 then :
8126   printf %s "(cached) " >&6
8127 else $as_nop
8128   if test -n "$NMEDIT"; then
8129   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   case $as_dir in #(((
8136     '') as_dir=./ ;;
8137     */) ;;
8138     *) as_dir=$as_dir/ ;;
8139   esac
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8143     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 NMEDIT=$ac_cv_prog_NMEDIT
8153 if test -n "$NMEDIT"; then
8154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8155 printf "%s\n" "$NMEDIT" >&6; }
8156 else
8157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 printf "%s\n" "no" >&6; }
8159 fi
8160
8161
8162 fi
8163 if test -z "$ac_cv_prog_NMEDIT"; then
8164   ac_ct_NMEDIT=$NMEDIT
8165   # Extract the first word of "nmedit", so it can be a program name with args.
8166 set dummy nmedit; ac_word=$2
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 printf %s "checking for $ac_word... " >&6; }
8169 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8170 then :
8171   printf %s "(cached) " >&6
8172 else $as_nop
8173   if test -n "$ac_ct_NMEDIT"; then
8174   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   case $as_dir in #(((
8181     '') as_dir=./ ;;
8182     */) ;;
8183     *) as_dir=$as_dir/ ;;
8184   esac
8185     for ac_exec_ext in '' $ac_executable_extensions; do
8186   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8187     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8188     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8189     break 2
8190   fi
8191 done
8192   done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8198 if test -n "$ac_ct_NMEDIT"; then
8199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8200 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8201 else
8202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 printf "%s\n" "no" >&6; }
8204 fi
8205
8206   if test "x$ac_ct_NMEDIT" = x; then
8207     NMEDIT=":"
8208   else
8209     case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215     NMEDIT=$ac_ct_NMEDIT
8216   fi
8217 else
8218   NMEDIT="$ac_cv_prog_NMEDIT"
8219 fi
8220
8221     if test -n "$ac_tool_prefix"; then
8222   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 printf %s "checking for $ac_word... " >&6; }
8226 if test ${ac_cv_prog_LIPO+y}
8227 then :
8228   printf %s "(cached) " >&6
8229 else $as_nop
8230   if test -n "$LIPO"; then
8231   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   case $as_dir in #(((
8238     '') as_dir=./ ;;
8239     */) ;;
8240     *) as_dir=$as_dir/ ;;
8241   esac
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8245     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 LIPO=$ac_cv_prog_LIPO
8255 if test -n "$LIPO"; then
8256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8257 printf "%s\n" "$LIPO" >&6; }
8258 else
8259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 printf "%s\n" "no" >&6; }
8261 fi
8262
8263
8264 fi
8265 if test -z "$ac_cv_prog_LIPO"; then
8266   ac_ct_LIPO=$LIPO
8267   # Extract the first word of "lipo", so it can be a program name with args.
8268 set dummy lipo; ac_word=$2
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 printf %s "checking for $ac_word... " >&6; }
8271 if test ${ac_cv_prog_ac_ct_LIPO+y}
8272 then :
8273   printf %s "(cached) " >&6
8274 else $as_nop
8275   if test -n "$ac_ct_LIPO"; then
8276   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   case $as_dir in #(((
8283     '') as_dir=./ ;;
8284     */) ;;
8285     *) as_dir=$as_dir/ ;;
8286   esac
8287     for ac_exec_ext in '' $ac_executable_extensions; do
8288   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8289     ac_cv_prog_ac_ct_LIPO="lipo"
8290     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8291     break 2
8292   fi
8293 done
8294   done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8300 if test -n "$ac_ct_LIPO"; then
8301   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8302 printf "%s\n" "$ac_ct_LIPO" >&6; }
8303 else
8304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 printf "%s\n" "no" >&6; }
8306 fi
8307
8308   if test "x$ac_ct_LIPO" = x; then
8309     LIPO=":"
8310   else
8311     case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317     LIPO=$ac_ct_LIPO
8318   fi
8319 else
8320   LIPO="$ac_cv_prog_LIPO"
8321 fi
8322
8323     if test -n "$ac_tool_prefix"; then
8324   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}otool; ac_word=$2
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 printf %s "checking for $ac_word... " >&6; }
8328 if test ${ac_cv_prog_OTOOL+y}
8329 then :
8330   printf %s "(cached) " >&6
8331 else $as_nop
8332   if test -n "$OTOOL"; then
8333   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   case $as_dir in #(((
8340     '') as_dir=./ ;;
8341     */) ;;
8342     *) as_dir=$as_dir/ ;;
8343   esac
8344     for ac_exec_ext in '' $ac_executable_extensions; do
8345   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8346     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8347     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8348     break 2
8349   fi
8350 done
8351   done
8352 IFS=$as_save_IFS
8353
8354 fi
8355 fi
8356 OTOOL=$ac_cv_prog_OTOOL
8357 if test -n "$OTOOL"; then
8358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8359 printf "%s\n" "$OTOOL" >&6; }
8360 else
8361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 printf "%s\n" "no" >&6; }
8363 fi
8364
8365
8366 fi
8367 if test -z "$ac_cv_prog_OTOOL"; then
8368   ac_ct_OTOOL=$OTOOL
8369   # Extract the first word of "otool", so it can be a program name with args.
8370 set dummy otool; ac_word=$2
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 printf %s "checking for $ac_word... " >&6; }
8373 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8374 then :
8375   printf %s "(cached) " >&6
8376 else $as_nop
8377   if test -n "$ac_ct_OTOOL"; then
8378   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   case $as_dir in #(((
8385     '') as_dir=./ ;;
8386     */) ;;
8387     *) as_dir=$as_dir/ ;;
8388   esac
8389     for ac_exec_ext in '' $ac_executable_extensions; do
8390   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8391     ac_cv_prog_ac_ct_OTOOL="otool"
8392     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8393     break 2
8394   fi
8395 done
8396   done
8397 IFS=$as_save_IFS
8398
8399 fi
8400 fi
8401 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8402 if test -n "$ac_ct_OTOOL"; then
8403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8404 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8405 else
8406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 printf "%s\n" "no" >&6; }
8408 fi
8409
8410   if test "x$ac_ct_OTOOL" = x; then
8411     OTOOL=":"
8412   else
8413     case $cross_compiling:$ac_tool_warned in
8414 yes:)
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8417 ac_tool_warned=yes ;;
8418 esac
8419     OTOOL=$ac_ct_OTOOL
8420   fi
8421 else
8422   OTOOL="$ac_cv_prog_OTOOL"
8423 fi
8424
8425     if test -n "$ac_tool_prefix"; then
8426   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8427 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 printf %s "checking for $ac_word... " >&6; }
8430 if test ${ac_cv_prog_OTOOL64+y}
8431 then :
8432   printf %s "(cached) " >&6
8433 else $as_nop
8434   if test -n "$OTOOL64"; then
8435   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   case $as_dir in #(((
8442     '') as_dir=./ ;;
8443     */) ;;
8444     *) as_dir=$as_dir/ ;;
8445   esac
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8448     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8449     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 OTOOL64=$ac_cv_prog_OTOOL64
8459 if test -n "$OTOOL64"; then
8460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8461 printf "%s\n" "$OTOOL64" >&6; }
8462 else
8463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 printf "%s\n" "no" >&6; }
8465 fi
8466
8467
8468 fi
8469 if test -z "$ac_cv_prog_OTOOL64"; then
8470   ac_ct_OTOOL64=$OTOOL64
8471   # Extract the first word of "otool64", so it can be a program name with args.
8472 set dummy otool64; ac_word=$2
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 printf %s "checking for $ac_word... " >&6; }
8475 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8476 then :
8477   printf %s "(cached) " >&6
8478 else $as_nop
8479   if test -n "$ac_ct_OTOOL64"; then
8480   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485   IFS=$as_save_IFS
8486   case $as_dir in #(((
8487     '') as_dir=./ ;;
8488     */) ;;
8489     *) as_dir=$as_dir/ ;;
8490   esac
8491     for ac_exec_ext in '' $ac_executable_extensions; do
8492   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8493     ac_cv_prog_ac_ct_OTOOL64="otool64"
8494     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8495     break 2
8496   fi
8497 done
8498   done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8504 if test -n "$ac_ct_OTOOL64"; then
8505   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8506 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8507 else
8508   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 printf "%s\n" "no" >&6; }
8510 fi
8511
8512   if test "x$ac_ct_OTOOL64" = x; then
8513     OTOOL64=":"
8514   else
8515     case $cross_compiling:$ac_tool_warned in
8516 yes:)
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8520 esac
8521     OTOOL64=$ac_ct_OTOOL64
8522   fi
8523 else
8524   OTOOL64="$ac_cv_prog_OTOOL64"
8525 fi
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8554 printf %s "checking for -single_module linker flag... " >&6; }
8555 if test ${lt_cv_apple_cc_single_mod+y}
8556 then :
8557   printf %s "(cached) " >&6
8558 else $as_nop
8559   lt_cv_apple_cc_single_mod=no
8560       if test -z "$LT_MULTI_MODULE"; then
8561         # By default we will add the -single_module flag. You can override
8562         # by either setting the environment variable LT_MULTI_MODULE
8563         # non-empty at configure time, or by adding -multi_module to the
8564         # link flags.
8565         rm -rf libconftest.dylib*
8566         echo "int foo(void){return 1;}" > conftest.c
8567         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8568 -dynamiclib -Wl,-single_module conftest.c" >&5
8569         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8570           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8571         _lt_result=$?
8572         # If there is a non-empty error log, and "single_module"
8573         # appears in it, assume the flag caused a linker warning
8574         if test -s conftest.err && $GREP single_module conftest.err; then
8575           cat conftest.err >&5
8576         # Otherwise, if the output was created with a 0 exit code from
8577         # the compiler, it worked.
8578         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8579           lt_cv_apple_cc_single_mod=yes
8580         else
8581           cat conftest.err >&5
8582         fi
8583         rm -rf libconftest.dylib*
8584         rm -f conftest.*
8585       fi
8586 fi
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8588 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8589
8590     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8591 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8592 if test ${lt_cv_ld_exported_symbols_list+y}
8593 then :
8594   printf %s "(cached) " >&6
8595 else $as_nop
8596   lt_cv_ld_exported_symbols_list=no
8597       save_LDFLAGS=$LDFLAGS
8598       echo "_main" > conftest.sym
8599       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8600       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602
8603 int
8604 main (void)
8605 {
8606
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_link "$LINENO"
8612 then :
8613   lt_cv_ld_exported_symbols_list=yes
8614 else $as_nop
8615   lt_cv_ld_exported_symbols_list=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8618     conftest$ac_exeext conftest.$ac_ext
8619         LDFLAGS=$save_LDFLAGS
8620
8621 fi
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8623 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8624
8625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8626 printf %s "checking for -force_load linker flag... " >&6; }
8627 if test ${lt_cv_ld_force_load+y}
8628 then :
8629   printf %s "(cached) " >&6
8630 else $as_nop
8631   lt_cv_ld_force_load=no
8632       cat > conftest.c << _LT_EOF
8633 int forced_loaded() { return 2;}
8634 _LT_EOF
8635       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8636       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8637       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8638       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8639       echo "$RANLIB libconftest.a" >&5
8640       $RANLIB libconftest.a 2>&5
8641       cat > conftest.c << _LT_EOF
8642 int main() { return 0;}
8643 _LT_EOF
8644       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8645       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8646       _lt_result=$?
8647       if test -s conftest.err && $GREP force_load conftest.err; then
8648         cat conftest.err >&5
8649       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8650         lt_cv_ld_force_load=yes
8651       else
8652         cat conftest.err >&5
8653       fi
8654         rm -f conftest.err libconftest.a conftest conftest.c
8655         rm -rf conftest.dSYM
8656
8657 fi
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8659 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8660     case $host_os in
8661     rhapsody* | darwin1.[012])
8662       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8663     darwin1.*)
8664       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8665     darwin*)
8666       case $MACOSX_DEPLOYMENT_TARGET,$host in
8667         10.[012],*|,*powerpc*-darwin[5-8]*)
8668           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8669         *)
8670           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8671       esac
8672     ;;
8673   esac
8674     if test yes = "$lt_cv_apple_cc_single_mod"; then
8675       _lt_dar_single_mod='$single_module'
8676     fi
8677     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8678       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8679     else
8680       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8681     fi
8682     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8683       _lt_dsymutil='~$DSYMUTIL $lib || :'
8684     else
8685       _lt_dsymutil=
8686     fi
8687     ;;
8688   esac
8689
8690 # func_munge_path_list VARIABLE PATH
8691 # -----------------------------------
8692 # VARIABLE is name of variable containing _space_ separated list of
8693 # directories to be munged by the contents of PATH, which is string
8694 # having a format:
8695 # "DIR[:DIR]:"
8696 #       string "DIR[ DIR]" will be prepended to VARIABLE
8697 # ":DIR[:DIR]"
8698 #       string "DIR[ DIR]" will be appended to VARIABLE
8699 # "DIRP[:DIRP]::[DIRA:]DIRA"
8700 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8701 #       "DIRA[ DIRA]" will be appended to VARIABLE
8702 # "DIR[:DIR]"
8703 #       VARIABLE will be replaced by "DIR[ DIR]"
8704 func_munge_path_list ()
8705 {
8706     case x$2 in
8707     x)
8708         ;;
8709     *:)
8710         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8711         ;;
8712     x:*)
8713         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8714         ;;
8715     *::*)
8716         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8717         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8718         ;;
8719     *)
8720         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8721         ;;
8722     esac
8723 }
8724
8725 ac_header= ac_cache=
8726 for ac_item in $ac_header_c_list
8727 do
8728   if test $ac_cache; then
8729     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8730     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8731       printf "%s\n" "#define $ac_item 1" >> confdefs.h
8732     fi
8733     ac_header= ac_cache=
8734   elif test $ac_header; then
8735     ac_cache=$ac_item
8736   else
8737     ac_header=$ac_item
8738   fi
8739 done
8740
8741
8742
8743
8744
8745
8746
8747
8748 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8749 then :
8750
8751 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8752
8753 fi
8754 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8755 "
8756 if test "x$ac_cv_header_dlfcn_h" = xyes
8757 then :
8758   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8759
8760 fi
8761
8762
8763
8764
8765
8766 # Set options
8767 enable_win32_dll=yes
8768
8769 case $host in
8770 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8771   if test -n "$ac_tool_prefix"; then
8772   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8773 set dummy ${ac_tool_prefix}as; ac_word=$2
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 printf %s "checking for $ac_word... " >&6; }
8776 if test ${ac_cv_prog_AS+y}
8777 then :
8778   printf %s "(cached) " >&6
8779 else $as_nop
8780   if test -n "$AS"; then
8781   ac_cv_prog_AS="$AS" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786   IFS=$as_save_IFS
8787   case $as_dir in #(((
8788     '') as_dir=./ ;;
8789     */) ;;
8790     *) as_dir=$as_dir/ ;;
8791   esac
8792     for ac_exec_ext in '' $ac_executable_extensions; do
8793   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8794     ac_cv_prog_AS="${ac_tool_prefix}as"
8795     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8796     break 2
8797   fi
8798 done
8799   done
8800 IFS=$as_save_IFS
8801
8802 fi
8803 fi
8804 AS=$ac_cv_prog_AS
8805 if test -n "$AS"; then
8806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8807 printf "%s\n" "$AS" >&6; }
8808 else
8809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 printf "%s\n" "no" >&6; }
8811 fi
8812
8813
8814 fi
8815 if test -z "$ac_cv_prog_AS"; then
8816   ac_ct_AS=$AS
8817   # Extract the first word of "as", so it can be a program name with args.
8818 set dummy as; ac_word=$2
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 printf %s "checking for $ac_word... " >&6; }
8821 if test ${ac_cv_prog_ac_ct_AS+y}
8822 then :
8823   printf %s "(cached) " >&6
8824 else $as_nop
8825   if test -n "$ac_ct_AS"; then
8826   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831   IFS=$as_save_IFS
8832   case $as_dir in #(((
8833     '') as_dir=./ ;;
8834     */) ;;
8835     *) as_dir=$as_dir/ ;;
8836   esac
8837     for ac_exec_ext in '' $ac_executable_extensions; do
8838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8839     ac_cv_prog_ac_ct_AS="as"
8840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844   done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8850 if test -n "$ac_ct_AS"; then
8851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8852 printf "%s\n" "$ac_ct_AS" >&6; }
8853 else
8854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 printf "%s\n" "no" >&6; }
8856 fi
8857
8858   if test "x$ac_ct_AS" = x; then
8859     AS="false"
8860   else
8861     case $cross_compiling:$ac_tool_warned in
8862 yes:)
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8866 esac
8867     AS=$ac_ct_AS
8868   fi
8869 else
8870   AS="$ac_cv_prog_AS"
8871 fi
8872
8873   if test -n "$ac_tool_prefix"; then
8874   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 printf %s "checking for $ac_word... " >&6; }
8878 if test ${ac_cv_prog_DLLTOOL+y}
8879 then :
8880   printf %s "(cached) " >&6
8881 else $as_nop
8882   if test -n "$DLLTOOL"; then
8883   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888   IFS=$as_save_IFS
8889   case $as_dir in #(((
8890     '') as_dir=./ ;;
8891     */) ;;
8892     *) as_dir=$as_dir/ ;;
8893   esac
8894     for ac_exec_ext in '' $ac_executable_extensions; do
8895   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8896     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8897     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901   done
8902 IFS=$as_save_IFS
8903
8904 fi
8905 fi
8906 DLLTOOL=$ac_cv_prog_DLLTOOL
8907 if test -n "$DLLTOOL"; then
8908   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8909 printf "%s\n" "$DLLTOOL" >&6; }
8910 else
8911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 printf "%s\n" "no" >&6; }
8913 fi
8914
8915
8916 fi
8917 if test -z "$ac_cv_prog_DLLTOOL"; then
8918   ac_ct_DLLTOOL=$DLLTOOL
8919   # Extract the first word of "dlltool", so it can be a program name with args.
8920 set dummy dlltool; ac_word=$2
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 printf %s "checking for $ac_word... " >&6; }
8923 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8924 then :
8925   printf %s "(cached) " >&6
8926 else $as_nop
8927   if test -n "$ac_ct_DLLTOOL"; then
8928   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   case $as_dir in #(((
8935     '') as_dir=./ ;;
8936     */) ;;
8937     *) as_dir=$as_dir/ ;;
8938   esac
8939     for ac_exec_ext in '' $ac_executable_extensions; do
8940   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8941     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8942     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8943     break 2
8944   fi
8945 done
8946   done
8947 IFS=$as_save_IFS
8948
8949 fi
8950 fi
8951 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8952 if test -n "$ac_ct_DLLTOOL"; then
8953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8954 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8955 else
8956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 printf "%s\n" "no" >&6; }
8958 fi
8959
8960   if test "x$ac_ct_DLLTOOL" = x; then
8961     DLLTOOL="false"
8962   else
8963     case $cross_compiling:$ac_tool_warned in
8964 yes:)
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967 ac_tool_warned=yes ;;
8968 esac
8969     DLLTOOL=$ac_ct_DLLTOOL
8970   fi
8971 else
8972   DLLTOOL="$ac_cv_prog_DLLTOOL"
8973 fi
8974
8975   if test -n "$ac_tool_prefix"; then
8976   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 printf %s "checking for $ac_word... " >&6; }
8980 if test ${ac_cv_prog_OBJDUMP+y}
8981 then :
8982   printf %s "(cached) " >&6
8983 else $as_nop
8984   if test -n "$OBJDUMP"; then
8985   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8986 else
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8989 do
8990   IFS=$as_save_IFS
8991   case $as_dir in #(((
8992     '') as_dir=./ ;;
8993     */) ;;
8994     *) as_dir=$as_dir/ ;;
8995   esac
8996     for ac_exec_ext in '' $ac_executable_extensions; do
8997   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8998     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8999     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9000     break 2
9001   fi
9002 done
9003   done
9004 IFS=$as_save_IFS
9005
9006 fi
9007 fi
9008 OBJDUMP=$ac_cv_prog_OBJDUMP
9009 if test -n "$OBJDUMP"; then
9010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9011 printf "%s\n" "$OBJDUMP" >&6; }
9012 else
9013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 printf "%s\n" "no" >&6; }
9015 fi
9016
9017
9018 fi
9019 if test -z "$ac_cv_prog_OBJDUMP"; then
9020   ac_ct_OBJDUMP=$OBJDUMP
9021   # Extract the first word of "objdump", so it can be a program name with args.
9022 set dummy objdump; ac_word=$2
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 printf %s "checking for $ac_word... " >&6; }
9025 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9026 then :
9027   printf %s "(cached) " >&6
9028 else $as_nop
9029   if test -n "$ac_ct_OBJDUMP"; then
9030   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9031 else
9032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 for as_dir in $PATH
9034 do
9035   IFS=$as_save_IFS
9036   case $as_dir in #(((
9037     '') as_dir=./ ;;
9038     */) ;;
9039     *) as_dir=$as_dir/ ;;
9040   esac
9041     for ac_exec_ext in '' $ac_executable_extensions; do
9042   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9043     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9044     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9045     break 2
9046   fi
9047 done
9048   done
9049 IFS=$as_save_IFS
9050
9051 fi
9052 fi
9053 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9054 if test -n "$ac_ct_OBJDUMP"; then
9055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9056 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9057 else
9058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 printf "%s\n" "no" >&6; }
9060 fi
9061
9062   if test "x$ac_ct_OBJDUMP" = x; then
9063     OBJDUMP="false"
9064   else
9065     case $cross_compiling:$ac_tool_warned in
9066 yes:)
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9069 ac_tool_warned=yes ;;
9070 esac
9071     OBJDUMP=$ac_ct_OBJDUMP
9072   fi
9073 else
9074   OBJDUMP="$ac_cv_prog_OBJDUMP"
9075 fi
9076
9077   ;;
9078 esac
9079
9080 test -z "$AS" && AS=as
9081
9082
9083
9084
9085
9086 test -z "$DLLTOOL" && DLLTOOL=dlltool
9087
9088
9089
9090
9091
9092 test -z "$OBJDUMP" && OBJDUMP=objdump
9093
9094
9095
9096
9097
9098
9099
9100         enable_dlopen=no
9101
9102
9103
9104             # Check whether --enable-shared was given.
9105 if test ${enable_shared+y}
9106 then :
9107   enableval=$enable_shared; p=${PACKAGE-default}
9108     case $enableval in
9109     yes) enable_shared=yes ;;
9110     no) enable_shared=no ;;
9111     *)
9112       enable_shared=no
9113       # Look at the argument we got.  We use all the common list separators.
9114       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9115       for pkg in $enableval; do
9116         IFS=$lt_save_ifs
9117         if test "X$pkg" = "X$p"; then
9118           enable_shared=yes
9119         fi
9120       done
9121       IFS=$lt_save_ifs
9122       ;;
9123     esac
9124 else $as_nop
9125   enable_shared=yes
9126 fi
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136   # Check whether --enable-static was given.
9137 if test ${enable_static+y}
9138 then :
9139   enableval=$enable_static; p=${PACKAGE-default}
9140     case $enableval in
9141     yes) enable_static=yes ;;
9142     no) enable_static=no ;;
9143     *)
9144      enable_static=no
9145       # Look at the argument we got.  We use all the common list separators.
9146       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9147       for pkg in $enableval; do
9148         IFS=$lt_save_ifs
9149         if test "X$pkg" = "X$p"; then
9150           enable_static=yes
9151         fi
9152       done
9153       IFS=$lt_save_ifs
9154       ;;
9155     esac
9156 else $as_nop
9157   enable_static=yes
9158 fi
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 # Check whether --with-pic was given.
9170 if test ${with_pic+y}
9171 then :
9172   withval=$with_pic; lt_p=${PACKAGE-default}
9173     case $withval in
9174     yes|no) pic_mode=$withval ;;
9175     *)
9176       pic_mode=default
9177       # Look at the argument we got.  We use all the common list separators.
9178       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9179       for lt_pkg in $withval; do
9180         IFS=$lt_save_ifs
9181         if test "X$lt_pkg" = "X$lt_p"; then
9182           pic_mode=yes
9183         fi
9184       done
9185       IFS=$lt_save_ifs
9186       ;;
9187     esac
9188 else $as_nop
9189   pic_mode=default
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199   # Check whether --enable-fast-install was given.
9200 if test ${enable_fast_install+y}
9201 then :
9202   enableval=$enable_fast_install; p=${PACKAGE-default}
9203     case $enableval in
9204     yes) enable_fast_install=yes ;;
9205     no) enable_fast_install=no ;;
9206     *)
9207       enable_fast_install=no
9208       # Look at the argument we got.  We use all the common list separators.
9209       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9210       for pkg in $enableval; do
9211         IFS=$lt_save_ifs
9212         if test "X$pkg" = "X$p"; then
9213           enable_fast_install=yes
9214         fi
9215       done
9216       IFS=$lt_save_ifs
9217       ;;
9218     esac
9219 else $as_nop
9220   enable_fast_install=yes
9221 fi
9222
9223
9224
9225
9226
9227
9228
9229
9230   shared_archive_member_spec=
9231 case $host,$enable_shared in
9232 power*-*-aix[5-9]*,yes)
9233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9234 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9235
9236 # Check whether --with-aix-soname was given.
9237 if test ${with_aix_soname+y}
9238 then :
9239   withval=$with_aix_soname; case $withval in
9240     aix|svr4|both)
9241       ;;
9242     *)
9243       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9244       ;;
9245     esac
9246     lt_cv_with_aix_soname=$with_aix_soname
9247 else $as_nop
9248   if test ${lt_cv_with_aix_soname+y}
9249 then :
9250   printf %s "(cached) " >&6
9251 else $as_nop
9252   lt_cv_with_aix_soname=aix
9253 fi
9254
9255     with_aix_soname=$lt_cv_with_aix_soname
9256 fi
9257
9258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9259 printf "%s\n" "$with_aix_soname" >&6; }
9260   if test aix != "$with_aix_soname"; then
9261     # For the AIX way of multilib, we name the shared archive member
9262     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9263     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9264     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9265     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9266     if test 64 = "${OBJECT_MODE-32}"; then
9267       shared_archive_member_spec=shr_64
9268     else
9269       shared_archive_member_spec=shr
9270     fi
9271   fi
9272   ;;
9273 *)
9274   with_aix_soname=aix
9275   ;;
9276 esac
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 # This can be used to rebuild libtool when needed
9288 LIBTOOL_DEPS=$ltmain
9289
9290 # Always use our own libtool.
9291 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322 test -z "$LN_S" && LN_S="ln -s"
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 if test -n "${ZSH_VERSION+set}"; then
9338    setopt NO_GLOB_SUBST
9339 fi
9340
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9342 printf %s "checking for objdir... " >&6; }
9343 if test ${lt_cv_objdir+y}
9344 then :
9345   printf %s "(cached) " >&6
9346 else $as_nop
9347   rm -f .libs 2>/dev/null
9348 mkdir .libs 2>/dev/null
9349 if test -d .libs; then
9350   lt_cv_objdir=.libs
9351 else
9352   # MS-DOS does not allow filenames that begin with a dot.
9353   lt_cv_objdir=_libs
9354 fi
9355 rmdir .libs 2>/dev/null
9356 fi
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9358 printf "%s\n" "$lt_cv_objdir" >&6; }
9359 objdir=$lt_cv_objdir
9360
9361
9362
9363
9364
9365 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9366
9367
9368
9369
9370 case $host_os in
9371 aix3*)
9372   # AIX sometimes has problems with the GCC collect2 program.  For some
9373   # reason, if we set the COLLECT_NAMES environment variable, the problems
9374   # vanish in a puff of smoke.
9375   if test set != "${COLLECT_NAMES+set}"; then
9376     COLLECT_NAMES=
9377     export COLLECT_NAMES
9378   fi
9379   ;;
9380 esac
9381
9382 # Global variables:
9383 ofile=libtool
9384 can_build_shared=yes
9385
9386 # All known linkers require a '.a' archive for static linking (except MSVC and
9387 # ICC, which need '.lib').
9388 libext=a
9389
9390 with_gnu_ld=$lt_cv_prog_gnu_ld
9391
9392 old_CC=$CC
9393 old_CFLAGS=$CFLAGS
9394
9395 # Set sane defaults for various variables
9396 test -z "$CC" && CC=cc
9397 test -z "$LTCC" && LTCC=$CC
9398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9399 test -z "$LD" && LD=ld
9400 test -z "$ac_objext" && ac_objext=o
9401
9402 func_cc_basename $compiler
9403 cc_basename=$func_cc_basename_result
9404
9405
9406 # Only perform the check for file, if the check method requires it
9407 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9408 case $deplibs_check_method in
9409 file_magic*)
9410   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9411     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9412 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9413 if test ${lt_cv_path_MAGIC_CMD+y}
9414 then :
9415   printf %s "(cached) " >&6
9416 else $as_nop
9417   case $MAGIC_CMD in
9418 [\\/*] |  ?:[\\/]*)
9419   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9420   ;;
9421 *)
9422   lt_save_MAGIC_CMD=$MAGIC_CMD
9423   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9424   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9425   for ac_dir in $ac_dummy; do
9426     IFS=$lt_save_ifs
9427     test -z "$ac_dir" && ac_dir=.
9428     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9429       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9430       if test -n "$file_magic_test_file"; then
9431         case $deplibs_check_method in
9432         "file_magic "*)
9433           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9434           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9435           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9436             $EGREP "$file_magic_regex" > /dev/null; then
9437             :
9438           else
9439             cat <<_LT_EOF 1>&2
9440
9441 *** Warning: the command libtool uses to detect shared libraries,
9442 *** $file_magic_cmd, produces output that libtool cannot recognize.
9443 *** The result is that libtool may fail to recognize shared libraries
9444 *** as such.  This will affect the creation of libtool libraries that
9445 *** depend on shared libraries, but programs linked with such libtool
9446 *** libraries will work regardless of this problem.  Nevertheless, you
9447 *** may want to report the problem to your system manager and/or to
9448 *** bug-libtool@gnu.org
9449
9450 _LT_EOF
9451           fi ;;
9452         esac
9453       fi
9454       break
9455     fi
9456   done
9457   IFS=$lt_save_ifs
9458   MAGIC_CMD=$lt_save_MAGIC_CMD
9459   ;;
9460 esac
9461 fi
9462
9463 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9464 if test -n "$MAGIC_CMD"; then
9465   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9466 printf "%s\n" "$MAGIC_CMD" >&6; }
9467 else
9468   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 printf "%s\n" "no" >&6; }
9470 fi
9471
9472
9473
9474
9475
9476 if test -z "$lt_cv_path_MAGIC_CMD"; then
9477   if test -n "$ac_tool_prefix"; then
9478     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9479 printf %s "checking for file... " >&6; }
9480 if test ${lt_cv_path_MAGIC_CMD+y}
9481 then :
9482   printf %s "(cached) " >&6
9483 else $as_nop
9484   case $MAGIC_CMD in
9485 [\\/*] |  ?:[\\/]*)
9486   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9487   ;;
9488 *)
9489   lt_save_MAGIC_CMD=$MAGIC_CMD
9490   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492   for ac_dir in $ac_dummy; do
9493     IFS=$lt_save_ifs
9494     test -z "$ac_dir" && ac_dir=.
9495     if test -f "$ac_dir/file"; then
9496       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9497       if test -n "$file_magic_test_file"; then
9498         case $deplibs_check_method in
9499         "file_magic "*)
9500           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503             $EGREP "$file_magic_regex" > /dev/null; then
9504             :
9505           else
9506             cat <<_LT_EOF 1>&2
9507
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such.  This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem.  Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool@gnu.org
9516
9517 _LT_EOF
9518           fi ;;
9519         esac
9520       fi
9521       break
9522     fi
9523   done
9524   IFS=$lt_save_ifs
9525   MAGIC_CMD=$lt_save_MAGIC_CMD
9526   ;;
9527 esac
9528 fi
9529
9530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531 if test -n "$MAGIC_CMD"; then
9532   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 printf "%s\n" "$MAGIC_CMD" >&6; }
9534 else
9535   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 printf "%s\n" "no" >&6; }
9537 fi
9538
9539
9540   else
9541     MAGIC_CMD=:
9542   fi
9543 fi
9544
9545   fi
9546   ;;
9547 esac
9548
9549 # Use C for the default configuration in the libtool script
9550
9551 lt_save_CC=$CC
9552 ac_ext=c
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
9559 # Source file extension for C test sources.
9560 ac_ext=c
9561
9562 # Object file extension for compiled C test sources.
9563 objext=o
9564 objext=$objext
9565
9566 # Code to be used in simple compile tests
9567 lt_simple_compile_test_code="int some_variable = 0;"
9568
9569 # Code to be used in simple link tests
9570 lt_simple_link_test_code='int main(){return(0);}'
9571
9572
9573
9574
9575
9576
9577
9578 # If no C compiler was specified, use CC.
9579 LTCC=${LTCC-"$CC"}
9580
9581 # If no C compiler flags were specified, use CFLAGS.
9582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9583
9584 # Allow CC to be a program name with arguments.
9585 compiler=$CC
9586
9587 # Save the default compiler, since it gets overwritten when the other
9588 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9589 compiler_DEFAULT=$CC
9590
9591 # save warnings/boilerplate of simple test code
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9595 _lt_compiler_boilerplate=`cat conftest.err`
9596 $RM conftest*
9597
9598 ac_outfile=conftest.$ac_objext
9599 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9601 _lt_linker_boilerplate=`cat conftest.err`
9602 $RM -r conftest*
9603
9604
9605 ## CAVEAT EMPTOR:
9606 ## There is no encapsulation within the following macros, do not change
9607 ## the running order or otherwise move them around unless you know exactly
9608 ## what you are doing...
9609 if test -n "$compiler"; then
9610
9611 lt_prog_compiler_no_builtin_flag=
9612
9613 if test yes = "$GCC"; then
9614   case $cc_basename in
9615   nvcc*)
9616     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9617   *)
9618     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9619   esac
9620
9621   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9622 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9623 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9624 then :
9625   printf %s "(cached) " >&6
9626 else $as_nop
9627   lt_cv_prog_compiler_rtti_exceptions=no
9628    ac_outfile=conftest.$ac_objext
9629    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9631    # Insert the option either (1) after the last *FLAGS variable, or
9632    # (2) before a word containing "conftest.", or (3) at the end.
9633    # Note that $ac_compile itself does not contain backslashes and begins
9634    # with a dollar sign (not a hyphen), so the echo should work correctly.
9635    # The option is referenced via a variable to avoid confusing sed.
9636    lt_compile=`echo "$ac_compile" | $SED \
9637    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639    -e 's:$: $lt_compiler_flag:'`
9640    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641    (eval "$lt_compile" 2>conftest.err)
9642    ac_status=$?
9643    cat conftest.err >&5
9644    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645    if (exit $ac_status) && test -s "$ac_outfile"; then
9646      # The compiler can only warn and ignore the option if not recognized
9647      # So say no if there are warnings other than the usual output.
9648      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9649      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9650      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9651        lt_cv_prog_compiler_rtti_exceptions=yes
9652      fi
9653    fi
9654    $RM conftest*
9655
9656 fi
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9658 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9659
9660 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9661     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9662 else
9663     :
9664 fi
9665
9666 fi
9667
9668
9669
9670
9671
9672
9673   lt_prog_compiler_wl=
9674 lt_prog_compiler_pic=
9675 lt_prog_compiler_static=
9676
9677
9678   if test yes = "$GCC"; then
9679     lt_prog_compiler_wl='-Wl,'
9680     lt_prog_compiler_static='-static'
9681
9682     case $host_os in
9683       aix*)
9684       # All AIX code is PIC.
9685       if test ia64 = "$host_cpu"; then
9686         # AIX 5 now supports IA64 processor
9687         lt_prog_compiler_static='-Bstatic'
9688       fi
9689       lt_prog_compiler_pic='-fPIC'
9690       ;;
9691
9692     amigaos*)
9693       case $host_cpu in
9694       powerpc)
9695             # see comment about AmigaOS4 .so support
9696             lt_prog_compiler_pic='-fPIC'
9697         ;;
9698       m68k)
9699             # FIXME: we need at least 68020 code to build shared libraries, but
9700             # adding the '-m68020' flag to GCC prevents building anything better,
9701             # like '-m68040'.
9702             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9703         ;;
9704       esac
9705       ;;
9706
9707     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9708       # PIC is the default for these OSes.
9709       ;;
9710
9711     mingw* | cygwin* | pw32* | os2* | cegcc*)
9712       # This hack is so that the source file can tell whether it is being
9713       # built for inclusion in a dll (and should export symbols for example).
9714       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9715       # (--disable-auto-import) libraries
9716       lt_prog_compiler_pic='-DDLL_EXPORT'
9717       case $host_os in
9718       os2*)
9719         lt_prog_compiler_static='$wl-static'
9720         ;;
9721       esac
9722       ;;
9723
9724     darwin* | rhapsody*)
9725       # PIC is the default on this platform
9726       # Common symbols not allowed in MH_DYLIB files
9727       lt_prog_compiler_pic='-fno-common'
9728       ;;
9729
9730     haiku*)
9731       # PIC is the default for Haiku.
9732       # The "-static" flag exists, but is broken.
9733       lt_prog_compiler_static=
9734       ;;
9735
9736     hpux*)
9737       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9738       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9739       # sets the default TLS model and affects inlining.
9740       case $host_cpu in
9741       hppa*64*)
9742         # +Z the default
9743         ;;
9744       *)
9745         lt_prog_compiler_pic='-fPIC'
9746         ;;
9747       esac
9748       ;;
9749
9750     interix[3-9]*)
9751       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9752       # Instead, we relocate shared libraries at runtime.
9753       ;;
9754
9755     msdosdjgpp*)
9756       # Just because we use GCC doesn't mean we suddenly get shared libraries
9757       # on systems that don't support them.
9758       lt_prog_compiler_can_build_shared=no
9759       enable_shared=no
9760       ;;
9761
9762     *nto* | *qnx*)
9763       # QNX uses GNU C++, but need to define -shared option too, otherwise
9764       # it will coredump.
9765       lt_prog_compiler_pic='-fPIC -shared'
9766       ;;
9767
9768     sysv4*MP*)
9769       if test -d /usr/nec; then
9770         lt_prog_compiler_pic=-Kconform_pic
9771       fi
9772       ;;
9773
9774     *)
9775       lt_prog_compiler_pic='-fPIC'
9776       ;;
9777     esac
9778
9779     case $cc_basename in
9780     nvcc*) # Cuda Compiler Driver 2.2
9781       lt_prog_compiler_wl='-Xlinker '
9782       if test -n "$lt_prog_compiler_pic"; then
9783         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9784       fi
9785       ;;
9786     esac
9787   else
9788     # PORTME Check for flag to pass linker flags through the system compiler.
9789     case $host_os in
9790     aix*)
9791       lt_prog_compiler_wl='-Wl,'
9792       if test ia64 = "$host_cpu"; then
9793         # AIX 5 now supports IA64 processor
9794         lt_prog_compiler_static='-Bstatic'
9795       else
9796         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9797       fi
9798       ;;
9799
9800     darwin* | rhapsody*)
9801       # PIC is the default on this platform
9802       # Common symbols not allowed in MH_DYLIB files
9803       lt_prog_compiler_pic='-fno-common'
9804       case $cc_basename in
9805       nagfor*)
9806         # NAG Fortran compiler
9807         lt_prog_compiler_wl='-Wl,-Wl,,'
9808         lt_prog_compiler_pic='-PIC'
9809         lt_prog_compiler_static='-Bstatic'
9810         ;;
9811       esac
9812       ;;
9813
9814     mingw* | cygwin* | pw32* | os2* | cegcc*)
9815       # This hack is so that the source file can tell whether it is being
9816       # built for inclusion in a dll (and should export symbols for example).
9817       lt_prog_compiler_pic='-DDLL_EXPORT'
9818       case $host_os in
9819       os2*)
9820         lt_prog_compiler_static='$wl-static'
9821         ;;
9822       esac
9823       ;;
9824
9825     hpux9* | hpux10* | hpux11*)
9826       lt_prog_compiler_wl='-Wl,'
9827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9828       # not for PA HP-UX.
9829       case $host_cpu in
9830       hppa*64*|ia64*)
9831         # +Z the default
9832         ;;
9833       *)
9834         lt_prog_compiler_pic='+Z'
9835         ;;
9836       esac
9837       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9838       lt_prog_compiler_static='$wl-a ${wl}archive'
9839       ;;
9840
9841     irix5* | irix6* | nonstopux*)
9842       lt_prog_compiler_wl='-Wl,'
9843       # PIC (with -KPIC) is the default.
9844       lt_prog_compiler_static='-non_shared'
9845       ;;
9846
9847     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9848       case $cc_basename in
9849       # old Intel for x86_64, which still supported -KPIC.
9850       ecc*)
9851         lt_prog_compiler_wl='-Wl,'
9852         lt_prog_compiler_pic='-KPIC'
9853         lt_prog_compiler_static='-static'
9854         ;;
9855       # icc used to be incompatible with GCC.
9856       # ICC 10 doesn't accept -KPIC any more.
9857       icc* | ifort*)
9858         lt_prog_compiler_wl='-Wl,'
9859         lt_prog_compiler_pic='-fPIC'
9860         lt_prog_compiler_static='-static'
9861         ;;
9862       # Lahey Fortran 8.1.
9863       lf95*)
9864         lt_prog_compiler_wl='-Wl,'
9865         lt_prog_compiler_pic='--shared'
9866         lt_prog_compiler_static='--static'
9867         ;;
9868       nagfor*)
9869         # NAG Fortran compiler
9870         lt_prog_compiler_wl='-Wl,-Wl,,'
9871         lt_prog_compiler_pic='-PIC'
9872         lt_prog_compiler_static='-Bstatic'
9873         ;;
9874       tcc*)
9875         # Fabrice Bellard et al's Tiny C Compiler
9876         lt_prog_compiler_wl='-Wl,'
9877         lt_prog_compiler_pic='-fPIC'
9878         lt_prog_compiler_static='-static'
9879         ;;
9880       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9881         # Portland Group compilers (*not* the Pentium gcc compiler,
9882         # which looks to be a dead project)
9883         lt_prog_compiler_wl='-Wl,'
9884         lt_prog_compiler_pic='-fpic'
9885         lt_prog_compiler_static='-Bstatic'
9886         ;;
9887       ccc*)
9888         lt_prog_compiler_wl='-Wl,'
9889         # All Alpha code is PIC.
9890         lt_prog_compiler_static='-non_shared'
9891         ;;
9892       xl* | bgxl* | bgf* | mpixl*)
9893         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9894         lt_prog_compiler_wl='-Wl,'
9895         lt_prog_compiler_pic='-qpic'
9896         lt_prog_compiler_static='-qstaticlink'
9897         ;;
9898       *)
9899         case `$CC -V 2>&1 | $SED 5q` in
9900         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9901           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9902           lt_prog_compiler_pic='-KPIC'
9903           lt_prog_compiler_static='-Bstatic'
9904           lt_prog_compiler_wl=''
9905           ;;
9906         *Sun\ F* | *Sun*Fortran*)
9907           lt_prog_compiler_pic='-KPIC'
9908           lt_prog_compiler_static='-Bstatic'
9909           lt_prog_compiler_wl='-Qoption ld '
9910           ;;
9911         *Sun\ C*)
9912           # Sun C 5.9
9913           lt_prog_compiler_pic='-KPIC'
9914           lt_prog_compiler_static='-Bstatic'
9915           lt_prog_compiler_wl='-Wl,'
9916           ;;
9917         *Intel*\ [CF]*Compiler*)
9918           lt_prog_compiler_wl='-Wl,'
9919           lt_prog_compiler_pic='-fPIC'
9920           lt_prog_compiler_static='-static'
9921           ;;
9922         *Portland\ Group*)
9923           lt_prog_compiler_wl='-Wl,'
9924           lt_prog_compiler_pic='-fpic'
9925           lt_prog_compiler_static='-Bstatic'
9926           ;;
9927         esac
9928         ;;
9929       esac
9930       ;;
9931
9932     newsos6)
9933       lt_prog_compiler_pic='-KPIC'
9934       lt_prog_compiler_static='-Bstatic'
9935       ;;
9936
9937     *nto* | *qnx*)
9938       # QNX uses GNU C++, but need to define -shared option too, otherwise
9939       # it will coredump.
9940       lt_prog_compiler_pic='-fPIC -shared'
9941       ;;
9942
9943     osf3* | osf4* | osf5*)
9944       lt_prog_compiler_wl='-Wl,'
9945       # All OSF/1 code is PIC.
9946       lt_prog_compiler_static='-non_shared'
9947       ;;
9948
9949     rdos*)
9950       lt_prog_compiler_static='-non_shared'
9951       ;;
9952
9953     solaris*)
9954       lt_prog_compiler_pic='-KPIC'
9955       lt_prog_compiler_static='-Bstatic'
9956       case $cc_basename in
9957       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9958         lt_prog_compiler_wl='-Qoption ld ';;
9959       *)
9960         lt_prog_compiler_wl='-Wl,';;
9961       esac
9962       ;;
9963
9964     sunos4*)
9965       lt_prog_compiler_wl='-Qoption ld '
9966       lt_prog_compiler_pic='-PIC'
9967       lt_prog_compiler_static='-Bstatic'
9968       ;;
9969
9970     sysv4 | sysv4.2uw2* | sysv4.3*)
9971       lt_prog_compiler_wl='-Wl,'
9972       lt_prog_compiler_pic='-KPIC'
9973       lt_prog_compiler_static='-Bstatic'
9974       ;;
9975
9976     sysv4*MP*)
9977       if test -d /usr/nec; then
9978         lt_prog_compiler_pic='-Kconform_pic'
9979         lt_prog_compiler_static='-Bstatic'
9980       fi
9981       ;;
9982
9983     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9984       lt_prog_compiler_wl='-Wl,'
9985       lt_prog_compiler_pic='-KPIC'
9986       lt_prog_compiler_static='-Bstatic'
9987       ;;
9988
9989     unicos*)
9990       lt_prog_compiler_wl='-Wl,'
9991       lt_prog_compiler_can_build_shared=no
9992       ;;
9993
9994     uts4*)
9995       lt_prog_compiler_pic='-pic'
9996       lt_prog_compiler_static='-Bstatic'
9997       ;;
9998
9999     *)
10000       lt_prog_compiler_can_build_shared=no
10001       ;;
10002     esac
10003   fi
10004
10005 case $host_os in
10006   # For platforms that do not support PIC, -DPIC is meaningless:
10007   *djgpp*)
10008     lt_prog_compiler_pic=
10009     ;;
10010   *)
10011     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10012     ;;
10013 esac
10014
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10016 printf %s "checking for $compiler option to produce PIC... " >&6; }
10017 if test ${lt_cv_prog_compiler_pic+y}
10018 then :
10019   printf %s "(cached) " >&6
10020 else $as_nop
10021   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10022 fi
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10024 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10025 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10026
10027 #
10028 # Check to make sure the PIC flag actually works.
10029 #
10030 if test -n "$lt_prog_compiler_pic"; then
10031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10032 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10033 if test ${lt_cv_prog_compiler_pic_works+y}
10034 then :
10035   printf %s "(cached) " >&6
10036 else $as_nop
10037   lt_cv_prog_compiler_pic_works=no
10038    ac_outfile=conftest.$ac_objext
10039    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10040    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10041    # Insert the option either (1) after the last *FLAGS variable, or
10042    # (2) before a word containing "conftest.", or (3) at the end.
10043    # Note that $ac_compile itself does not contain backslashes and begins
10044    # with a dollar sign (not a hyphen), so the echo should work correctly.
10045    # The option is referenced via a variable to avoid confusing sed.
10046    lt_compile=`echo "$ac_compile" | $SED \
10047    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10049    -e 's:$: $lt_compiler_flag:'`
10050    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10051    (eval "$lt_compile" 2>conftest.err)
10052    ac_status=$?
10053    cat conftest.err >&5
10054    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055    if (exit $ac_status) && test -s "$ac_outfile"; then
10056      # The compiler can only warn and ignore the option if not recognized
10057      # So say no if there are warnings other than the usual output.
10058      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10059      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10060      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10061        lt_cv_prog_compiler_pic_works=yes
10062      fi
10063    fi
10064    $RM conftest*
10065
10066 fi
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10068 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10069
10070 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10071     case $lt_prog_compiler_pic in
10072      "" | " "*) ;;
10073      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10074      esac
10075 else
10076     lt_prog_compiler_pic=
10077      lt_prog_compiler_can_build_shared=no
10078 fi
10079
10080 fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 #
10093 # Check to make sure the static flag actually works.
10094 #
10095 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10097 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10098 if test ${lt_cv_prog_compiler_static_works+y}
10099 then :
10100   printf %s "(cached) " >&6
10101 else $as_nop
10102   lt_cv_prog_compiler_static_works=no
10103    save_LDFLAGS=$LDFLAGS
10104    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107      # The linker can only warn and ignore the option if not recognized
10108      # So say no if there are warnings
10109      if test -s conftest.err; then
10110        # Append any errors to the config.log.
10111        cat conftest.err 1>&5
10112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114        if diff conftest.exp conftest.er2 >/dev/null; then
10115          lt_cv_prog_compiler_static_works=yes
10116        fi
10117      else
10118        lt_cv_prog_compiler_static_works=yes
10119      fi
10120    fi
10121    $RM -r conftest*
10122    LDFLAGS=$save_LDFLAGS
10123
10124 fi
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10126 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10127
10128 if test yes = "$lt_cv_prog_compiler_static_works"; then
10129     :
10130 else
10131     lt_prog_compiler_static=
10132 fi
10133
10134
10135
10136
10137
10138
10139
10140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10141 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10142 if test ${lt_cv_prog_compiler_c_o+y}
10143 then :
10144   printf %s "(cached) " >&6
10145 else $as_nop
10146   lt_cv_prog_compiler_c_o=no
10147    $RM -r conftest 2>/dev/null
10148    mkdir conftest
10149    cd conftest
10150    mkdir out
10151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152
10153    lt_compiler_flag="-o out/conftest2.$ac_objext"
10154    # Insert the option either (1) after the last *FLAGS variable, or
10155    # (2) before a word containing "conftest.", or (3) at the end.
10156    # Note that $ac_compile itself does not contain backslashes and begins
10157    # with a dollar sign (not a hyphen), so the echo should work correctly.
10158    lt_compile=`echo "$ac_compile" | $SED \
10159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10161    -e 's:$: $lt_compiler_flag:'`
10162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10163    (eval "$lt_compile" 2>out/conftest.err)
10164    ac_status=$?
10165    cat out/conftest.err >&5
10166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10168    then
10169      # The compiler can only warn and ignore the option if not recognized
10170      # So say no if there are warnings
10171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10174        lt_cv_prog_compiler_c_o=yes
10175      fi
10176    fi
10177    chmod u+w . 2>&5
10178    $RM conftest*
10179    # SGI C++ compiler will create directory out/ii_files/ for
10180    # template instantiation
10181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10182    $RM out/* && rmdir out
10183    cd ..
10184    $RM -r conftest
10185    $RM conftest*
10186
10187 fi
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10189 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10190
10191
10192
10193
10194
10195
10196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10197 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10198 if test ${lt_cv_prog_compiler_c_o+y}
10199 then :
10200   printf %s "(cached) " >&6
10201 else $as_nop
10202   lt_cv_prog_compiler_c_o=no
10203    $RM -r conftest 2>/dev/null
10204    mkdir conftest
10205    cd conftest
10206    mkdir out
10207    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10208
10209    lt_compiler_flag="-o out/conftest2.$ac_objext"
10210    # Insert the option either (1) after the last *FLAGS variable, or
10211    # (2) before a word containing "conftest.", or (3) at the end.
10212    # Note that $ac_compile itself does not contain backslashes and begins
10213    # with a dollar sign (not a hyphen), so the echo should work correctly.
10214    lt_compile=`echo "$ac_compile" | $SED \
10215    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217    -e 's:$: $lt_compiler_flag:'`
10218    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10219    (eval "$lt_compile" 2>out/conftest.err)
10220    ac_status=$?
10221    cat out/conftest.err >&5
10222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10224    then
10225      # The compiler can only warn and ignore the option if not recognized
10226      # So say no if there are warnings
10227      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10228      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10229      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10230        lt_cv_prog_compiler_c_o=yes
10231      fi
10232    fi
10233    chmod u+w . 2>&5
10234    $RM conftest*
10235    # SGI C++ compiler will create directory out/ii_files/ for
10236    # template instantiation
10237    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10238    $RM out/* && rmdir out
10239    cd ..
10240    $RM -r conftest
10241    $RM conftest*
10242
10243 fi
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10245 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10246
10247
10248
10249
10250 hard_links=nottested
10251 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10252   # do not overwrite the value of need_locks provided by the user
10253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10254 printf %s "checking if we can lock with hard links... " >&6; }
10255   hard_links=yes
10256   $RM conftest*
10257   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10258   touch conftest.a
10259   ln conftest.a conftest.b 2>&5 || hard_links=no
10260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10262 printf "%s\n" "$hard_links" >&6; }
10263   if test no = "$hard_links"; then
10264     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10265 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10266     need_locks=warn
10267   fi
10268 else
10269   need_locks=no
10270 fi
10271
10272
10273
10274
10275
10276
10277   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10279
10280   runpath_var=
10281   allow_undefined_flag=
10282   always_export_symbols=no
10283   archive_cmds=
10284   archive_expsym_cmds=
10285   compiler_needs_object=no
10286   enable_shared_with_static_runtimes=no
10287   export_dynamic_flag_spec=
10288   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10289   hardcode_automatic=no
10290   hardcode_direct=no
10291   hardcode_direct_absolute=no
10292   hardcode_libdir_flag_spec=
10293   hardcode_libdir_separator=
10294   hardcode_minus_L=no
10295   hardcode_shlibpath_var=unsupported
10296   inherit_rpath=no
10297   link_all_deplibs=unknown
10298   module_cmds=
10299   module_expsym_cmds=
10300   old_archive_from_new_cmds=
10301   old_archive_from_expsyms_cmds=
10302   thread_safe_flag_spec=
10303   whole_archive_flag_spec=
10304   # include_expsyms should be a list of space-separated symbols to be *always*
10305   # included in the symbol list
10306   include_expsyms=
10307   # exclude_expsyms can be an extended regexp of symbols to exclude
10308   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10309   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10310   # as well as any symbol that contains 'd'.
10311   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10312   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10313   # platforms (ab)use it in PIC code, but their linkers get confused if
10314   # the symbol is explicitly referenced.  Since portable code cannot
10315   # rely on this symbol name, it's probably fine to never include it in
10316   # preloaded symbol tables.
10317   # Exclude shared library initialization/finalization symbols.
10318   extract_expsyms_cmds=
10319
10320   case $host_os in
10321   cygwin* | mingw* | pw32* | cegcc*)
10322     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10323     # When not using gcc, we currently assume that we are using
10324     # Microsoft Visual C++ or Intel C++ Compiler.
10325     if test yes != "$GCC"; then
10326       with_gnu_ld=no
10327     fi
10328     ;;
10329   interix*)
10330     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10331     with_gnu_ld=yes
10332     ;;
10333   openbsd* | bitrig*)
10334     with_gnu_ld=no
10335     ;;
10336   esac
10337
10338   ld_shlibs=yes
10339
10340   # On some targets, GNU ld is compatible enough with the native linker
10341   # that we're better off using the native interface for both.
10342   lt_use_gnu_ld_interface=no
10343   if test yes = "$with_gnu_ld"; then
10344     case $host_os in
10345       aix*)
10346         # The AIX port of GNU ld has always aspired to compatibility
10347         # with the native linker.  However, as the warning in the GNU ld
10348         # block says, versions before 2.19.5* couldn't really create working
10349         # shared libraries, regardless of the interface used.
10350         case `$LD -v 2>&1` in
10351           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10352           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10353           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10354           *)
10355             lt_use_gnu_ld_interface=yes
10356             ;;
10357         esac
10358         ;;
10359       *)
10360         lt_use_gnu_ld_interface=yes
10361         ;;
10362     esac
10363   fi
10364
10365   if test yes = "$lt_use_gnu_ld_interface"; then
10366     # If archive_cmds runs LD, not CC, wlarc should be empty
10367     wlarc='$wl'
10368
10369     # Set some defaults for GNU ld with shared library support. These
10370     # are reset later if shared libraries are not supported. Putting them
10371     # here allows them to be overridden if necessary.
10372     runpath_var=LD_RUN_PATH
10373     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10374     export_dynamic_flag_spec='$wl--export-dynamic'
10375     # ancient GNU ld didn't support --whole-archive et. al.
10376     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10377       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10378     else
10379       whole_archive_flag_spec=
10380     fi
10381     supports_anon_versioning=no
10382     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10383       *GNU\ gold*) supports_anon_versioning=yes ;;
10384       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10385       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10386       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10387       *\ 2.11.*) ;; # other 2.11 versions
10388       *) supports_anon_versioning=yes ;;
10389     esac
10390
10391     # See if GNU ld supports shared libraries.
10392     case $host_os in
10393     aix[3-9]*)
10394       # On AIX/PPC, the GNU linker is very broken
10395       if test ia64 != "$host_cpu"; then
10396         ld_shlibs=no
10397         cat <<_LT_EOF 1>&2
10398
10399 *** Warning: the GNU linker, at least up to release 2.19, is reported
10400 *** to be unable to reliably create shared libraries on AIX.
10401 *** Therefore, libtool is disabling shared libraries support.  If you
10402 *** really care for shared libraries, you may want to install binutils
10403 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10404 *** You will then need to restart the configuration process.
10405
10406 _LT_EOF
10407       fi
10408       ;;
10409
10410     amigaos*)
10411       case $host_cpu in
10412       powerpc)
10413             # see comment about AmigaOS4 .so support
10414             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10415             archive_expsym_cmds=''
10416         ;;
10417       m68k)
10418             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)'
10419             hardcode_libdir_flag_spec='-L$libdir'
10420             hardcode_minus_L=yes
10421         ;;
10422       esac
10423       ;;
10424
10425     beos*)
10426       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10427         allow_undefined_flag=unsupported
10428         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10429         # support --undefined.  This deserves some investigation.  FIXME
10430         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10431       else
10432         ld_shlibs=no
10433       fi
10434       ;;
10435
10436     cygwin* | mingw* | pw32* | cegcc*)
10437       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10438       # as there is no search path for DLLs.
10439       hardcode_libdir_flag_spec='-L$libdir'
10440       export_dynamic_flag_spec='$wl--export-all-symbols'
10441       allow_undefined_flag=unsupported
10442       always_export_symbols=no
10443       enable_shared_with_static_runtimes=yes
10444       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'
10445       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10446
10447       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10448         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449         # If the export-symbols file already is a .def file, use it as
10450         # is; otherwise, prepend EXPORTS...
10451         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10452           cp $export_symbols $output_objdir/$soname.def;
10453         else
10454           echo EXPORTS > $output_objdir/$soname.def;
10455           cat $export_symbols >> $output_objdir/$soname.def;
10456         fi~
10457         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10458       else
10459         ld_shlibs=no
10460       fi
10461       ;;
10462
10463     haiku*)
10464       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465       link_all_deplibs=yes
10466       ;;
10467
10468     os2*)
10469       hardcode_libdir_flag_spec='-L$libdir'
10470       hardcode_minus_L=yes
10471       allow_undefined_flag=unsupported
10472       shrext_cmds=.dll
10473       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476         $ECHO EXPORTS >> $output_objdir/$libname.def~
10477         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10478         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10479         emximp -o $lib $output_objdir/$libname.def'
10480       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10481         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10482         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10483         $ECHO EXPORTS >> $output_objdir/$libname.def~
10484         prefix_cmds="$SED"~
10485         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10486           prefix_cmds="$prefix_cmds -e 1d";
10487         fi~
10488         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10489         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10490         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10491         emximp -o $lib $output_objdir/$libname.def'
10492       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10493       enable_shared_with_static_runtimes=yes
10494       file_list_spec='@'
10495       ;;
10496
10497     interix[3-9]*)
10498       hardcode_direct=no
10499       hardcode_shlibpath_var=no
10500       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10501       export_dynamic_flag_spec='$wl-E'
10502       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10503       # Instead, shared libraries are loaded at an image base (0x10000000 by
10504       # default) and relocated if they conflict, which is a slow very memory
10505       # consuming and fragmenting process.  To avoid this, we pick a random,
10506       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10507       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10508       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10509       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'
10510       ;;
10511
10512     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10513       tmp_diet=no
10514       if test linux-dietlibc = "$host_os"; then
10515         case $cc_basename in
10516           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10517         esac
10518       fi
10519       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10520          && test no = "$tmp_diet"
10521       then
10522         tmp_addflag=' $pic_flag'
10523         tmp_sharedflag='-shared'
10524         case $cc_basename,$host_cpu in
10525         pgcc*)                          # Portland Group C compiler
10526           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'
10527           tmp_addflag=' $pic_flag'
10528           ;;
10529         pgf77* | pgf90* | pgf95* | pgfortran*)
10530                                         # Portland Group f77 and f90 compilers
10531           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'
10532           tmp_addflag=' $pic_flag -Mnomain' ;;
10533         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10534           tmp_addflag=' -i_dynamic' ;;
10535         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10536           tmp_addflag=' -i_dynamic -nofor_main' ;;
10537         ifc* | ifort*)                  # Intel Fortran compiler
10538           tmp_addflag=' -nofor_main' ;;
10539         lf95*)                          # Lahey Fortran 8.1
10540           whole_archive_flag_spec=
10541           tmp_sharedflag='--shared' ;;
10542         nagfor*)                        # NAGFOR 5.3
10543           tmp_sharedflag='-Wl,-shared' ;;
10544         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10545           tmp_sharedflag='-qmkshrobj'
10546           tmp_addflag= ;;
10547         nvcc*)  # Cuda Compiler Driver 2.2
10548           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'
10549           compiler_needs_object=yes
10550           ;;
10551         esac
10552         case `$CC -V 2>&1 | $SED 5q` in
10553         *Sun\ C*)                       # Sun C 5.9
10554           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'
10555           compiler_needs_object=yes
10556           tmp_sharedflag='-G' ;;
10557         *Sun\ F*)                       # Sun Fortran 8.3
10558           tmp_sharedflag='-G' ;;
10559         esac
10560         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10561
10562         if test yes = "$supports_anon_versioning"; then
10563           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10564             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10565             echo "local: *; };" >> $output_objdir/$libname.ver~
10566             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10567         fi
10568
10569         case $cc_basename in
10570         tcc*)
10571           export_dynamic_flag_spec='-rdynamic'
10572           ;;
10573         xlf* | bgf* | bgxlf* | mpixlf*)
10574           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10575           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10576           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10577           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10578           if test yes = "$supports_anon_versioning"; then
10579             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10580               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10581               echo "local: *; };" >> $output_objdir/$libname.ver~
10582               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10583           fi
10584           ;;
10585         esac
10586       else
10587         ld_shlibs=no
10588       fi
10589       ;;
10590
10591     netbsd*)
10592       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10593         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10594         wlarc=
10595       else
10596         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10598       fi
10599       ;;
10600
10601     solaris*)
10602       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10603         ld_shlibs=no
10604         cat <<_LT_EOF 1>&2
10605
10606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10607 *** create shared libraries on Solaris systems.  Therefore, libtool
10608 *** is disabling shared libraries support.  We urge you to upgrade GNU
10609 *** binutils to release 2.9.1 or newer.  Another option is to modify
10610 *** your PATH or compiler configuration so that the native linker is
10611 *** used, and then restart.
10612
10613 _LT_EOF
10614       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10616         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10617       else
10618         ld_shlibs=no
10619       fi
10620       ;;
10621
10622     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10623       case `$LD -v 2>&1` in
10624         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10625         ld_shlibs=no
10626         cat <<_LT_EOF 1>&2
10627
10628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10629 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10630 *** is disabling shared libraries support.  We urge you to upgrade GNU
10631 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10632 *** your PATH or compiler configuration so that the native linker is
10633 *** used, and then restart.
10634
10635 _LT_EOF
10636         ;;
10637         *)
10638           # For security reasons, it is highly recommended that you always
10639           # use absolute paths for naming shared libraries, and exclude the
10640           # DT_RUNPATH tag from executables and libraries.  But doing so
10641           # requires that you compile everything twice, which is a pain.
10642           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10643             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10644             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10645             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10646           else
10647             ld_shlibs=no
10648           fi
10649         ;;
10650       esac
10651       ;;
10652
10653     sunos4*)
10654       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10655       wlarc=
10656       hardcode_direct=yes
10657       hardcode_shlibpath_var=no
10658       ;;
10659
10660     *)
10661       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10662         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10663         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10664       else
10665         ld_shlibs=no
10666       fi
10667       ;;
10668     esac
10669
10670     if test no = "$ld_shlibs"; then
10671       runpath_var=
10672       hardcode_libdir_flag_spec=
10673       export_dynamic_flag_spec=
10674       whole_archive_flag_spec=
10675     fi
10676   else
10677     # PORTME fill in a description of your system's linker (not GNU ld)
10678     case $host_os in
10679     aix3*)
10680       allow_undefined_flag=unsupported
10681       always_export_symbols=yes
10682       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'
10683       # Note: this linker hardcodes the directories in LIBPATH if there
10684       # are no directories specified by -L.
10685       hardcode_minus_L=yes
10686       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10687         # Neither direct hardcoding nor static linking is supported with a
10688         # broken collect2.
10689         hardcode_direct=unsupported
10690       fi
10691       ;;
10692
10693     aix[4-9]*)
10694       if test ia64 = "$host_cpu"; then
10695         # On IA64, the linker does run time linking by default, so we don't
10696         # have to do anything special.
10697         aix_use_runtimelinking=no
10698         exp_sym_flag='-Bexport'
10699         no_entry_flag=
10700       else
10701         # If we're using GNU nm, then we don't want the "-C" option.
10702         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10703         # Without the "-l" option, or with the "-B" option, AIX nm treats
10704         # weak defined symbols like other global defined symbols, whereas
10705         # GNU nm marks them as "W".
10706         # While the 'weak' keyword is ignored in the Export File, we need
10707         # it in the Import File for the 'aix-soname' feature, so we have
10708         # to replace the "-B" option with "-P" for AIX nm.
10709         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10710           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10711         else
10712           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10713         fi
10714         aix_use_runtimelinking=no
10715
10716         # Test if we are trying to use run time linking or normal
10717         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10718         # have runtime linking enabled, and use it for executables.
10719         # For shared libraries, we enable/disable runtime linking
10720         # depending on the kind of the shared library created -
10721         # when "with_aix_soname,aix_use_runtimelinking" is:
10722         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10723         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10724         #            lib.a           static archive
10725         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10726         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10727         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10728         #            lib.a(lib.so.V) shared, rtl:no
10729         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10730         #            lib.a           static archive
10731         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10732           for ld_flag in $LDFLAGS; do
10733           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10734             aix_use_runtimelinking=yes
10735             break
10736           fi
10737           done
10738           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10739             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10740             # so we don't have lib.a shared libs to link our executables.
10741             # We have to force runtime linking in this case.
10742             aix_use_runtimelinking=yes
10743             LDFLAGS="$LDFLAGS -Wl,-brtl"
10744           fi
10745           ;;
10746         esac
10747
10748         exp_sym_flag='-bexport'
10749         no_entry_flag='-bnoentry'
10750       fi
10751
10752       # When large executables or shared objects are built, AIX ld can
10753       # have problems creating the table of contents.  If linking a library
10754       # or program results in "error TOC overflow" add -mminimal-toc to
10755       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10756       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10757
10758       archive_cmds=''
10759       hardcode_direct=yes
10760       hardcode_direct_absolute=yes
10761       hardcode_libdir_separator=':'
10762       link_all_deplibs=yes
10763       file_list_spec='$wl-f,'
10764       case $with_aix_soname,$aix_use_runtimelinking in
10765       aix,*) ;; # traditional, no import file
10766       svr4,* | *,yes) # use import file
10767         # The Import File defines what to hardcode.
10768         hardcode_direct=no
10769         hardcode_direct_absolute=no
10770         ;;
10771       esac
10772
10773       if test yes = "$GCC"; then
10774         case $host_os in aix4.[012]|aix4.[012].*)
10775         # We only want to do this on AIX 4.2 and lower, the check
10776         # below for broken collect2 doesn't work under 4.3+
10777           collect2name=`$CC -print-prog-name=collect2`
10778           if test -f "$collect2name" &&
10779            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10780           then
10781           # We have reworked collect2
10782           :
10783           else
10784           # We have old collect2
10785           hardcode_direct=unsupported
10786           # It fails to find uninstalled libraries when the uninstalled
10787           # path is not listed in the libpath.  Setting hardcode_minus_L
10788           # to unsupported forces relinking
10789           hardcode_minus_L=yes
10790           hardcode_libdir_flag_spec='-L$libdir'
10791           hardcode_libdir_separator=
10792           fi
10793           ;;
10794         esac
10795         shared_flag='-shared'
10796         if test yes = "$aix_use_runtimelinking"; then
10797           shared_flag="$shared_flag "'$wl-G'
10798         fi
10799         # Need to ensure runtime linking is disabled for the traditional
10800         # shared library, or the linker may eventually find shared libraries
10801         # /with/ Import File - we do not want to mix them.
10802         shared_flag_aix='-shared'
10803         shared_flag_svr4='-shared $wl-G'
10804       else
10805         # not using gcc
10806         if test ia64 = "$host_cpu"; then
10807         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10808         # chokes on -Wl,-G. The following line is correct:
10809           shared_flag='-G'
10810         else
10811           if test yes = "$aix_use_runtimelinking"; then
10812             shared_flag='$wl-G'
10813           else
10814             shared_flag='$wl-bM:SRE'
10815           fi
10816           shared_flag_aix='$wl-bM:SRE'
10817           shared_flag_svr4='$wl-G'
10818         fi
10819       fi
10820
10821       export_dynamic_flag_spec='$wl-bexpall'
10822       # It seems that -bexpall does not export symbols beginning with
10823       # underscore (_), so it is better to generate a list of symbols to export.
10824       always_export_symbols=yes
10825       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10826         # Warning - without using the other runtime loading flags (-brtl),
10827         # -berok will link without error, but may produce a broken library.
10828         allow_undefined_flag='-berok'
10829         # Determine the default libpath from the value encoded in an
10830         # empty executable.
10831         if test set = "${lt_cv_aix_libpath+set}"; then
10832   aix_libpath=$lt_cv_aix_libpath
10833 else
10834   if test ${lt_cv_aix_libpath_+y}
10835 then :
10836   printf %s "(cached) " >&6
10837 else $as_nop
10838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h.  */
10840
10841 int
10842 main (void)
10843 {
10844
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"
10850 then :
10851
10852   lt_aix_libpath_sed='
10853       /Import File Strings/,/^$/ {
10854           /^0/ {
10855               s/^0  *\([^ ]*\) *$/\1/
10856               p
10857           }
10858       }'
10859   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860   # Check for a 64-bit object if we didn't find anything.
10861   if test -z "$lt_cv_aix_libpath_"; then
10862     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863   fi
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866     conftest$ac_exeext conftest.$ac_ext
10867   if test -z "$lt_cv_aix_libpath_"; then
10868     lt_cv_aix_libpath_=/usr/lib:/lib
10869   fi
10870
10871 fi
10872
10873   aix_libpath=$lt_cv_aix_libpath_
10874 fi
10875
10876         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10877         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10878       else
10879         if test ia64 = "$host_cpu"; then
10880           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10881           allow_undefined_flag="-z nodefs"
10882           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"
10883         else
10884          # Determine the default libpath from the value encoded in an
10885          # empty executable.
10886          if test set = "${lt_cv_aix_libpath+set}"; then
10887   aix_libpath=$lt_cv_aix_libpath
10888 else
10889   if test ${lt_cv_aix_libpath_+y}
10890 then :
10891   printf %s "(cached) " >&6
10892 else $as_nop
10893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h.  */
10895
10896 int
10897 main (void)
10898 {
10899
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"
10905 then :
10906
10907   lt_aix_libpath_sed='
10908       /Import File Strings/,/^$/ {
10909           /^0/ {
10910               s/^0  *\([^ ]*\) *$/\1/
10911               p
10912           }
10913       }'
10914   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10915   # Check for a 64-bit object if we didn't find anything.
10916   if test -z "$lt_cv_aix_libpath_"; then
10917     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10918   fi
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10921     conftest$ac_exeext conftest.$ac_ext
10922   if test -z "$lt_cv_aix_libpath_"; then
10923     lt_cv_aix_libpath_=/usr/lib:/lib
10924   fi
10925
10926 fi
10927
10928   aix_libpath=$lt_cv_aix_libpath_
10929 fi
10930
10931          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10932           # Warning - without using the other run time loading flags,
10933           # -berok will link without error, but may produce a broken library.
10934           no_undefined_flag=' $wl-bernotok'
10935           allow_undefined_flag=' $wl-berok'
10936           if test yes = "$with_gnu_ld"; then
10937             # We only use this code for GNU lds that support --whole-archive.
10938             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10939           else
10940             # Exported symbols can be pulled into shared objects from archives
10941             whole_archive_flag_spec='$convenience'
10942           fi
10943           archive_cmds_need_lc=yes
10944           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10945           # -brtl affects multiple linker settings, -berok does not and is overridden later
10946           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10947           if test svr4 != "$with_aix_soname"; then
10948             # This is similar to how AIX traditionally builds its shared libraries.
10949             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10950           fi
10951           if test aix != "$with_aix_soname"; then
10952             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10953           else
10954             # used by -dlpreopen to get the symbols
10955             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10956           fi
10957           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10958         fi
10959       fi
10960       ;;
10961
10962     amigaos*)
10963       case $host_cpu in
10964       powerpc)
10965             # see comment about AmigaOS4 .so support
10966             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10967             archive_expsym_cmds=''
10968         ;;
10969       m68k)
10970             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)'
10971             hardcode_libdir_flag_spec='-L$libdir'
10972             hardcode_minus_L=yes
10973         ;;
10974       esac
10975       ;;
10976
10977     bsdi[45]*)
10978       export_dynamic_flag_spec=-rdynamic
10979       ;;
10980
10981     cygwin* | mingw* | pw32* | cegcc*)
10982       # When not using gcc, we currently assume that we are using
10983       # Microsoft Visual C++ or Intel C++ Compiler.
10984       # hardcode_libdir_flag_spec is actually meaningless, as there is
10985       # no search path for DLLs.
10986       case $cc_basename in
10987       cl* | icl*)
10988         # Native MSVC or ICC
10989         hardcode_libdir_flag_spec=' '
10990         allow_undefined_flag=unsupported
10991         always_export_symbols=yes
10992         file_list_spec='@'
10993         # Tell ltmain to make .lib files, not .a files.
10994         libext=lib
10995         # Tell ltmain to make .dll files, not .so files.
10996         shrext_cmds=.dll
10997         # FIXME: Setting linknames here is a bad hack.
10998         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10999         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11000             cp "$export_symbols" "$output_objdir/$soname.def";
11001             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11002           else
11003             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11004           fi~
11005           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11006           linknames='
11007         # The linker will not automatically build a static lib if we build a DLL.
11008         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11009         enable_shared_with_static_runtimes=yes
11010         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11011         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11012         # Don't use ranlib
11013         old_postinstall_cmds='chmod 644 $oldlib'
11014         postlink_cmds='lt_outputfile="@OUTPUT@"~
11015           lt_tool_outputfile="@TOOL_OUTPUT@"~
11016           case $lt_outputfile in
11017             *.exe|*.EXE) ;;
11018             *)
11019               lt_outputfile=$lt_outputfile.exe
11020               lt_tool_outputfile=$lt_tool_outputfile.exe
11021               ;;
11022           esac~
11023           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11024             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11025             $RM "$lt_outputfile.manifest";
11026           fi'
11027         ;;
11028       *)
11029         # Assume MSVC and ICC wrapper
11030         hardcode_libdir_flag_spec=' '
11031         allow_undefined_flag=unsupported
11032         # Tell ltmain to make .lib files, not .a files.
11033         libext=lib
11034         # Tell ltmain to make .dll files, not .so files.
11035         shrext_cmds=.dll
11036         # FIXME: Setting linknames here is a bad hack.
11037         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11038         # The linker will automatically build a .lib file if we build a DLL.
11039         old_archive_from_new_cmds='true'
11040         # FIXME: Should let the user specify the lib program.
11041         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11042         enable_shared_with_static_runtimes=yes
11043         ;;
11044       esac
11045       ;;
11046
11047     darwin* | rhapsody*)
11048
11049
11050   archive_cmds_need_lc=no
11051   hardcode_direct=no
11052   hardcode_automatic=yes
11053   hardcode_shlibpath_var=unsupported
11054   if test yes = "$lt_cv_ld_force_load"; then
11055     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\"`'
11056
11057   else
11058     whole_archive_flag_spec=''
11059   fi
11060   link_all_deplibs=yes
11061   allow_undefined_flag=$_lt_dar_allow_undefined
11062   case $cc_basename in
11063      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11064      *) _lt_dar_can_shared=$GCC ;;
11065   esac
11066   if test yes = "$_lt_dar_can_shared"; then
11067     output_verbose_link_cmd=func_echo_all
11068     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11069     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11070     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"
11071     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"
11072
11073   else
11074   ld_shlibs=no
11075   fi
11076
11077       ;;
11078
11079     dgux*)
11080       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081       hardcode_libdir_flag_spec='-L$libdir'
11082       hardcode_shlibpath_var=no
11083       ;;
11084
11085     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11086     # support.  Future versions do this automatically, but an explicit c++rt0.o
11087     # does not break anything, and helps significantly (at the cost of a little
11088     # extra space).
11089     freebsd2.2*)
11090       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11091       hardcode_libdir_flag_spec='-R$libdir'
11092       hardcode_direct=yes
11093       hardcode_shlibpath_var=no
11094       ;;
11095
11096     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11097     freebsd2.*)
11098       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11099       hardcode_direct=yes
11100       hardcode_minus_L=yes
11101       hardcode_shlibpath_var=no
11102       ;;
11103
11104     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11105     freebsd* | dragonfly* | midnightbsd*)
11106       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11107       hardcode_libdir_flag_spec='-R$libdir'
11108       hardcode_direct=yes
11109       hardcode_shlibpath_var=no
11110       ;;
11111
11112     hpux9*)
11113       if test yes = "$GCC"; then
11114         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11115       else
11116         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11117       fi
11118       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11119       hardcode_libdir_separator=:
11120       hardcode_direct=yes
11121
11122       # hardcode_minus_L: Not really in the search PATH,
11123       # but as the default location of the library.
11124       hardcode_minus_L=yes
11125       export_dynamic_flag_spec='$wl-E'
11126       ;;
11127
11128     hpux10*)
11129       if test yes,no = "$GCC,$with_gnu_ld"; then
11130         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11131       else
11132         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11133       fi
11134       if test no = "$with_gnu_ld"; then
11135         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11136         hardcode_libdir_separator=:
11137         hardcode_direct=yes
11138         hardcode_direct_absolute=yes
11139         export_dynamic_flag_spec='$wl-E'
11140         # hardcode_minus_L: Not really in the search PATH,
11141         # but as the default location of the library.
11142         hardcode_minus_L=yes
11143       fi
11144       ;;
11145
11146     hpux11*)
11147       if test yes,no = "$GCC,$with_gnu_ld"; then
11148         case $host_cpu in
11149         hppa*64*)
11150           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11151           ;;
11152         ia64*)
11153           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11154           ;;
11155         *)
11156           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11157           ;;
11158         esac
11159       else
11160         case $host_cpu in
11161         hppa*64*)
11162           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11163           ;;
11164         ia64*)
11165           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11166           ;;
11167         *)
11168
11169           # Older versions of the 11.00 compiler do not understand -b yet
11170           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11171           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11172 printf %s "checking if $CC understands -b... " >&6; }
11173 if test ${lt_cv_prog_compiler__b+y}
11174 then :
11175   printf %s "(cached) " >&6
11176 else $as_nop
11177   lt_cv_prog_compiler__b=no
11178    save_LDFLAGS=$LDFLAGS
11179    LDFLAGS="$LDFLAGS -b"
11180    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11181    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11182      # The linker can only warn and ignore the option if not recognized
11183      # So say no if there are warnings
11184      if test -s conftest.err; then
11185        # Append any errors to the config.log.
11186        cat conftest.err 1>&5
11187        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11188        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189        if diff conftest.exp conftest.er2 >/dev/null; then
11190          lt_cv_prog_compiler__b=yes
11191        fi
11192      else
11193        lt_cv_prog_compiler__b=yes
11194      fi
11195    fi
11196    $RM -r conftest*
11197    LDFLAGS=$save_LDFLAGS
11198
11199 fi
11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11201 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11202
11203 if test yes = "$lt_cv_prog_compiler__b"; then
11204     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11205 else
11206     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11207 fi
11208
11209           ;;
11210         esac
11211       fi
11212       if test no = "$with_gnu_ld"; then
11213         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11214         hardcode_libdir_separator=:
11215
11216         case $host_cpu in
11217         hppa*64*|ia64*)
11218           hardcode_direct=no
11219           hardcode_shlibpath_var=no
11220           ;;
11221         *)
11222           hardcode_direct=yes
11223           hardcode_direct_absolute=yes
11224           export_dynamic_flag_spec='$wl-E'
11225
11226           # hardcode_minus_L: Not really in the search PATH,
11227           # but as the default location of the library.
11228           hardcode_minus_L=yes
11229           ;;
11230         esac
11231       fi
11232       ;;
11233
11234     irix5* | irix6* | nonstopux*)
11235       if test yes = "$GCC"; then
11236         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'
11237         # Try to use the -exported_symbol ld option, if it does not
11238         # work, assume that -exports_file does not work either and
11239         # implicitly export all symbols.
11240         # This should be the same for all languages, so no per-tag cache variable.
11241         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11242 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11243 if test ${lt_cv_irix_exported_symbol+y}
11244 then :
11245   printf %s "(cached) " >&6
11246 else $as_nop
11247   save_LDFLAGS=$LDFLAGS
11248            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11249            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h.  */
11251 int foo (void) { return 0; }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"
11254 then :
11255   lt_cv_irix_exported_symbol=yes
11256 else $as_nop
11257   lt_cv_irix_exported_symbol=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11260     conftest$ac_exeext conftest.$ac_ext
11261            LDFLAGS=$save_LDFLAGS
11262 fi
11263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11264 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11265         if test yes = "$lt_cv_irix_exported_symbol"; then
11266           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'
11267         fi
11268       else
11269         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'
11270         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'
11271       fi
11272       archive_cmds_need_lc='no'
11273       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11274       hardcode_libdir_separator=:
11275       inherit_rpath=yes
11276       link_all_deplibs=yes
11277       ;;
11278
11279     linux*)
11280       case $cc_basename in
11281       tcc*)
11282         # Fabrice Bellard et al's Tiny C Compiler
11283         ld_shlibs=yes
11284         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11285         ;;
11286       esac
11287       ;;
11288
11289     netbsd*)
11290       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11291         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11292       else
11293         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11294       fi
11295       hardcode_libdir_flag_spec='-R$libdir'
11296       hardcode_direct=yes
11297       hardcode_shlibpath_var=no
11298       ;;
11299
11300     newsos6)
11301       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302       hardcode_direct=yes
11303       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11304       hardcode_libdir_separator=:
11305       hardcode_shlibpath_var=no
11306       ;;
11307
11308     *nto* | *qnx*)
11309       ;;
11310
11311     openbsd* | bitrig*)
11312       if test -f /usr/libexec/ld.so; then
11313         hardcode_direct=yes
11314         hardcode_shlibpath_var=no
11315         hardcode_direct_absolute=yes
11316         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11317           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11318           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11319           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11320           export_dynamic_flag_spec='$wl-E'
11321         else
11322           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11324         fi
11325       else
11326         ld_shlibs=no
11327       fi
11328       ;;
11329
11330     os2*)
11331       hardcode_libdir_flag_spec='-L$libdir'
11332       hardcode_minus_L=yes
11333       allow_undefined_flag=unsupported
11334       shrext_cmds=.dll
11335       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11336         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11337         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11338         $ECHO EXPORTS >> $output_objdir/$libname.def~
11339         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11340         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11341         emximp -o $lib $output_objdir/$libname.def'
11342       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11343         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11344         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11345         $ECHO EXPORTS >> $output_objdir/$libname.def~
11346         prefix_cmds="$SED"~
11347         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11348           prefix_cmds="$prefix_cmds -e 1d";
11349         fi~
11350         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11351         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11352         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11353         emximp -o $lib $output_objdir/$libname.def'
11354       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11355       enable_shared_with_static_runtimes=yes
11356       file_list_spec='@'
11357       ;;
11358
11359     osf3*)
11360       if test yes = "$GCC"; then
11361         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11362         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'
11363       else
11364         allow_undefined_flag=' -expect_unresolved \*'
11365         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'
11366       fi
11367       archive_cmds_need_lc='no'
11368       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11369       hardcode_libdir_separator=:
11370       ;;
11371
11372     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11373       if test yes = "$GCC"; then
11374         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11375         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'
11376         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11377       else
11378         allow_undefined_flag=' -expect_unresolved \*'
11379         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'
11380         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~
11381           $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'
11382
11383         # Both c and cxx compiler support -rpath directly
11384         hardcode_libdir_flag_spec='-rpath $libdir'
11385       fi
11386       archive_cmds_need_lc='no'
11387       hardcode_libdir_separator=:
11388       ;;
11389
11390     solaris*)
11391       no_undefined_flag=' -z defs'
11392       if test yes = "$GCC"; then
11393         wlarc='$wl'
11394         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11395         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11396           $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'
11397       else
11398         case `$CC -V 2>&1` in
11399         *"Compilers 5.0"*)
11400           wlarc=''
11401           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11403             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11404           ;;
11405         *)
11406           wlarc='$wl'
11407           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11408           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11409             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11410           ;;
11411         esac
11412       fi
11413       hardcode_libdir_flag_spec='-R$libdir'
11414       hardcode_shlibpath_var=no
11415       case $host_os in
11416       solaris2.[0-5] | solaris2.[0-5].*) ;;
11417       *)
11418         # The compiler driver will combine and reorder linker options,
11419         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11420         # but is careful enough not to reorder.
11421         # Supported since Solaris 2.6 (maybe 2.5.1?)
11422         if test yes = "$GCC"; then
11423           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11424         else
11425           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11426         fi
11427         ;;
11428       esac
11429       link_all_deplibs=yes
11430       ;;
11431
11432     sunos4*)
11433       if test sequent = "$host_vendor"; then
11434         # Use $CC to link under sequent, because it throws in some extra .o
11435         # files that make .init and .fini sections work.
11436         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11437       else
11438         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11439       fi
11440       hardcode_libdir_flag_spec='-L$libdir'
11441       hardcode_direct=yes
11442       hardcode_minus_L=yes
11443       hardcode_shlibpath_var=no
11444       ;;
11445
11446     sysv4)
11447       case $host_vendor in
11448         sni)
11449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450           hardcode_direct=yes # is this really true???
11451         ;;
11452         siemens)
11453           ## LD is ld it makes a PLAMLIB
11454           ## CC just makes a GrossModule.
11455           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11456           reload_cmds='$CC -r -o $output$reload_objs'
11457           hardcode_direct=no
11458         ;;
11459         motorola)
11460           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11462         ;;
11463       esac
11464       runpath_var='LD_RUN_PATH'
11465       hardcode_shlibpath_var=no
11466       ;;
11467
11468     sysv4.3*)
11469       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470       hardcode_shlibpath_var=no
11471       export_dynamic_flag_spec='-Bexport'
11472       ;;
11473
11474     sysv4*MP*)
11475       if test -d /usr/nec; then
11476         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477         hardcode_shlibpath_var=no
11478         runpath_var=LD_RUN_PATH
11479         hardcode_runpath_var=yes
11480         ld_shlibs=yes
11481       fi
11482       ;;
11483
11484     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11485       no_undefined_flag='$wl-z,text'
11486       archive_cmds_need_lc=no
11487       hardcode_shlibpath_var=no
11488       runpath_var='LD_RUN_PATH'
11489
11490       if test yes = "$GCC"; then
11491         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11492         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11493       else
11494         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496       fi
11497       ;;
11498
11499     sysv5* | sco3.2v5* | sco5v6*)
11500       # Note: We CANNOT use -z defs as we might desire, because we do not
11501       # link with -lc, and that would cause any symbols used from libc to
11502       # always be unresolved, which means just about no library would
11503       # ever link correctly.  If we're not using GNU ld we use -z text
11504       # though, which does catch some bad symbols but isn't as heavy-handed
11505       # as -z defs.
11506       no_undefined_flag='$wl-z,text'
11507       allow_undefined_flag='$wl-z,nodefs'
11508       archive_cmds_need_lc=no
11509       hardcode_shlibpath_var=no
11510       hardcode_libdir_flag_spec='$wl-R,$libdir'
11511       hardcode_libdir_separator=':'
11512       link_all_deplibs=yes
11513       export_dynamic_flag_spec='$wl-Bexport'
11514       runpath_var='LD_RUN_PATH'
11515
11516       if test yes = "$GCC"; then
11517         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11518         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11519       else
11520         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522       fi
11523       ;;
11524
11525     uts4*)
11526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11527       hardcode_libdir_flag_spec='-L$libdir'
11528       hardcode_shlibpath_var=no
11529       ;;
11530
11531     *)
11532       ld_shlibs=no
11533       ;;
11534     esac
11535
11536     if test sni = "$host_vendor"; then
11537       case $host in
11538       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11539         export_dynamic_flag_spec='$wl-Blargedynsym'
11540         ;;
11541       esac
11542     fi
11543   fi
11544
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11546 printf "%s\n" "$ld_shlibs" >&6; }
11547 test no = "$ld_shlibs" && can_build_shared=no
11548
11549 with_gnu_ld=$with_gnu_ld
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565 #
11566 # Do we need to explicitly link libc?
11567 #
11568 case "x$archive_cmds_need_lc" in
11569 x|xyes)
11570   # Assume -lc should be added
11571   archive_cmds_need_lc=yes
11572
11573   if test yes,yes = "$GCC,$enable_shared"; then
11574     case $archive_cmds in
11575     *'~'*)
11576       # FIXME: we may have to deal with multi-command sequences.
11577       ;;
11578     '$CC '*)
11579       # Test whether the compiler implicitly links with -lc since on some
11580       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11581       # to ld, don't add -lc before -lgcc.
11582       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11583 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11584 if test ${lt_cv_archive_cmds_need_lc+y}
11585 then :
11586   printf %s "(cached) " >&6
11587 else $as_nop
11588   $RM conftest*
11589         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11590
11591         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11592   (eval $ac_compile) 2>&5
11593   ac_status=$?
11594   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595   test $ac_status = 0; } 2>conftest.err; then
11596           soname=conftest
11597           lib=conftest
11598           libobjs=conftest.$ac_objext
11599           deplibs=
11600           wl=$lt_prog_compiler_wl
11601           pic_flag=$lt_prog_compiler_pic
11602           compiler_flags=-v
11603           linker_flags=-v
11604           verstring=
11605           output_objdir=.
11606           libname=conftest
11607           lt_save_allow_undefined_flag=$allow_undefined_flag
11608           allow_undefined_flag=
11609           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11610   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11611   ac_status=$?
11612   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613   test $ac_status = 0; }
11614           then
11615             lt_cv_archive_cmds_need_lc=no
11616           else
11617             lt_cv_archive_cmds_need_lc=yes
11618           fi
11619           allow_undefined_flag=$lt_save_allow_undefined_flag
11620         else
11621           cat conftest.err 1>&5
11622         fi
11623         $RM conftest*
11624
11625 fi
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11627 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11628       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11629       ;;
11630     esac
11631   fi
11632   ;;
11633 esac
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11787 printf %s "checking dynamic linker characteristics... " >&6; }
11788
11789 if test yes = "$GCC"; then
11790   case $host_os in
11791     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11792     *) lt_awk_arg='/^libraries:/' ;;
11793   esac
11794   case $host_os in
11795     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11796     *) lt_sed_strip_eq='s|=/|/|g' ;;
11797   esac
11798   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11799   case $lt_search_path_spec in
11800   *\;*)
11801     # if the path contains ";" then we assume it to be the separator
11802     # otherwise default to the standard path separator (i.e. ":") - it is
11803     # assumed that no part of a normal pathname contains ";" but that should
11804     # okay in the real world where ";" in dirpaths is itself problematic.
11805     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11806     ;;
11807   *)
11808     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11809     ;;
11810   esac
11811   # Ok, now we have the path, separated by spaces, we can step through it
11812   # and add multilib dir if necessary...
11813   lt_tmp_lt_search_path_spec=
11814   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11815   # ...but if some path component already ends with the multilib dir we assume
11816   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11817   case "$lt_multi_os_dir; $lt_search_path_spec " in
11818   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11819     lt_multi_os_dir=
11820     ;;
11821   esac
11822   for lt_sys_path in $lt_search_path_spec; do
11823     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11824       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11825     elif test -n "$lt_multi_os_dir"; then
11826       test -d "$lt_sys_path" && \
11827         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11828     fi
11829   done
11830   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11831 BEGIN {RS = " "; FS = "/|\n";} {
11832   lt_foo = "";
11833   lt_count = 0;
11834   for (lt_i = NF; lt_i > 0; lt_i--) {
11835     if ($lt_i != "" && $lt_i != ".") {
11836       if ($lt_i == "..") {
11837         lt_count++;
11838       } else {
11839         if (lt_count == 0) {
11840           lt_foo = "/" $lt_i lt_foo;
11841         } else {
11842           lt_count--;
11843         }
11844       }
11845     }
11846   }
11847   if (lt_foo != "") { lt_freq[lt_foo]++; }
11848   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11849 }'`
11850   # AWK program above erroneously prepends '/' to C:/dos/paths
11851   # for these hosts.
11852   case $host_os in
11853     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11854       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11855   esac
11856   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11857 else
11858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11859 fi
11860 library_names_spec=
11861 libname_spec='lib$name'
11862 soname_spec=
11863 shrext_cmds=.so
11864 postinstall_cmds=
11865 postuninstall_cmds=
11866 finish_cmds=
11867 finish_eval=
11868 shlibpath_var=
11869 shlibpath_overrides_runpath=unknown
11870 version_type=none
11871 dynamic_linker="$host_os ld.so"
11872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11873 need_lib_prefix=unknown
11874 hardcode_into_libs=no
11875
11876 # when you set need_version to no, make sure it does not cause -set_version
11877 # flags to be left without arguments
11878 need_version=unknown
11879
11880
11881
11882 case $host_os in
11883 aix3*)
11884   version_type=linux # correct to gnu/linux during the next big refactor
11885   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11886   shlibpath_var=LIBPATH
11887
11888   # AIX 3 has no versioning support, so we append a major version to the name.
11889   soname_spec='$libname$release$shared_ext$major'
11890   ;;
11891
11892 aix[4-9]*)
11893   version_type=linux # correct to gnu/linux during the next big refactor
11894   need_lib_prefix=no
11895   need_version=no
11896   hardcode_into_libs=yes
11897   if test ia64 = "$host_cpu"; then
11898     # AIX 5 supports IA64
11899     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11900     shlibpath_var=LD_LIBRARY_PATH
11901   else
11902     # With GCC up to 2.95.x, collect2 would create an import file
11903     # for dependence libraries.  The import file would start with
11904     # the line '#! .'.  This would cause the generated library to
11905     # depend on '.', always an invalid library.  This was fixed in
11906     # development snapshots of GCC prior to 3.0.
11907     case $host_os in
11908       aix4 | aix4.[01] | aix4.[01].*)
11909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11910            echo ' yes '
11911            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11912         :
11913       else
11914         can_build_shared=no
11915       fi
11916       ;;
11917     esac
11918     # Using Import Files as archive members, it is possible to support
11919     # filename-based versioning of shared library archives on AIX. While
11920     # this would work for both with and without runtime linking, it will
11921     # prevent static linking of such archives. So we do filename-based
11922     # shared library versioning with .so extension only, which is used
11923     # when both runtime linking and shared linking is enabled.
11924     # Unfortunately, runtime linking may impact performance, so we do
11925     # not want this to be the default eventually. Also, we use the
11926     # versioned .so libs for executables only if there is the -brtl
11927     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11928     # To allow for filename-based versioning support, we need to create
11929     # libNAME.so.V as an archive file, containing:
11930     # *) an Import File, referring to the versioned filename of the
11931     #    archive as well as the shared archive member, telling the
11932     #    bitwidth (32 or 64) of that shared object, and providing the
11933     #    list of exported symbols of that shared object, eventually
11934     #    decorated with the 'weak' keyword
11935     # *) the shared object with the F_LOADONLY flag set, to really avoid
11936     #    it being seen by the linker.
11937     # At run time we better use the real file rather than another symlink,
11938     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11939
11940     case $with_aix_soname,$aix_use_runtimelinking in
11941     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11942     # soname into executable. Probably we can add versioning support to
11943     # collect2, so additional links can be useful in future.
11944     aix,yes) # traditional libtool
11945       dynamic_linker='AIX unversionable lib.so'
11946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11947       # instead of lib<name>.a to let people know that these are not
11948       # typical AIX shared libraries.
11949       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950       ;;
11951     aix,no) # traditional AIX only
11952       dynamic_linker='AIX lib.a(lib.so.V)'
11953       # We preserve .a as extension for shared libraries through AIX4.2
11954       # and later when we are not doing run time linking.
11955       library_names_spec='$libname$release.a $libname.a'
11956       soname_spec='$libname$release$shared_ext$major'
11957       ;;
11958     svr4,*) # full svr4 only
11959       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11960       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11961       # We do not specify a path in Import Files, so LIBPATH fires.
11962       shlibpath_overrides_runpath=yes
11963       ;;
11964     *,yes) # both, prefer svr4
11965       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11966       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11967       # unpreferred sharedlib libNAME.a needs extra handling
11968       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11969       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11970       # We do not specify a path in Import Files, so LIBPATH fires.
11971       shlibpath_overrides_runpath=yes
11972       ;;
11973     *,no) # both, prefer aix
11974       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11975       library_names_spec='$libname$release.a $libname.a'
11976       soname_spec='$libname$release$shared_ext$major'
11977       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11978       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11979       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11980       ;;
11981     esac
11982     shlibpath_var=LIBPATH
11983   fi
11984   ;;
11985
11986 amigaos*)
11987   case $host_cpu in
11988   powerpc)
11989     # Since July 2007 AmigaOS4 officially supports .so libraries.
11990     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11991     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992     ;;
11993   m68k)
11994     library_names_spec='$libname.ixlibrary $libname.a'
11995     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11996     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11997     ;;
11998   esac
11999   ;;
12000
12001 beos*)
12002   library_names_spec='$libname$shared_ext'
12003   dynamic_linker="$host_os ld.so"
12004   shlibpath_var=LIBRARY_PATH
12005   ;;
12006
12007 bsdi[45]*)
12008   version_type=linux # correct to gnu/linux during the next big refactor
12009   need_version=no
12010   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12011   soname_spec='$libname$release$shared_ext$major'
12012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12013   shlibpath_var=LD_LIBRARY_PATH
12014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12016   # the default ld.so.conf also contains /usr/contrib/lib and
12017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12018   # libtool to hard-code these into programs
12019   ;;
12020
12021 cygwin* | mingw* | pw32* | cegcc*)
12022   version_type=windows
12023   shrext_cmds=.dll
12024   need_version=no
12025   need_lib_prefix=no
12026
12027   case $GCC,$cc_basename in
12028   yes,*)
12029     # gcc
12030     library_names_spec='$libname.dll.a'
12031     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12032     postinstall_cmds='base_file=`basename \$file`~
12033       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12034       dldir=$destdir/`dirname \$dlpath`~
12035       test -d \$dldir || mkdir -p \$dldir~
12036       $install_prog $dir/$dlname \$dldir/$dlname~
12037       chmod a+x \$dldir/$dlname~
12038       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12039         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12040       fi'
12041     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12042       dlpath=$dir/\$dldll~
12043        $RM \$dlpath'
12044     shlibpath_overrides_runpath=yes
12045
12046     case $host_os in
12047     cygwin*)
12048       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12049       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12050
12051       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12052       ;;
12053     mingw* | cegcc*)
12054       # MinGW DLLs use traditional 'lib' prefix
12055       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12056       ;;
12057     pw32*)
12058       # pw32 DLLs use 'pw' prefix rather than 'lib'
12059       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12060       ;;
12061     esac
12062     dynamic_linker='Win32 ld.exe'
12063     ;;
12064
12065   *,cl* | *,icl*)
12066     # Native MSVC or ICC
12067     libname_spec='$name'
12068     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12069     library_names_spec='$libname.dll.lib'
12070
12071     case $build_os in
12072     mingw*)
12073       sys_lib_search_path_spec=
12074       lt_save_ifs=$IFS
12075       IFS=';'
12076       for lt_path in $LIB
12077       do
12078         IFS=$lt_save_ifs
12079         # Let DOS variable expansion print the short 8.3 style file name.
12080         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12081         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12082       done
12083       IFS=$lt_save_ifs
12084       # Convert to MSYS style.
12085       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12086       ;;
12087     cygwin*)
12088       # Convert to unix form, then to dos form, then back to unix form
12089       # but this time dos style (no spaces!) so that the unix form looks
12090       # like /cygdrive/c/PROGRA~1:/cygdr...
12091       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12092       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12093       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12094       ;;
12095     *)
12096       sys_lib_search_path_spec=$LIB
12097       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12098         # It is most probably a Windows format PATH.
12099         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12100       else
12101         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12102       fi
12103       # FIXME: find the short name or the path components, as spaces are
12104       # common. (e.g. "Program Files" -> "PROGRA~1")
12105       ;;
12106     esac
12107
12108     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12109     postinstall_cmds='base_file=`basename \$file`~
12110       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12111       dldir=$destdir/`dirname \$dlpath`~
12112       test -d \$dldir || mkdir -p \$dldir~
12113       $install_prog $dir/$dlname \$dldir/$dlname'
12114     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12115       dlpath=$dir/\$dldll~
12116        $RM \$dlpath'
12117     shlibpath_overrides_runpath=yes
12118     dynamic_linker='Win32 link.exe'
12119     ;;
12120
12121   *)
12122     # Assume MSVC and ICC wrapper
12123     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12124     dynamic_linker='Win32 ld.exe'
12125     ;;
12126   esac
12127   # FIXME: first we should search . and the directory the executable is in
12128   shlibpath_var=PATH
12129   ;;
12130
12131 darwin* | rhapsody*)
12132   dynamic_linker="$host_os dyld"
12133   version_type=darwin
12134   need_lib_prefix=no
12135   need_version=no
12136   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12137   soname_spec='$libname$release$major$shared_ext'
12138   shlibpath_overrides_runpath=yes
12139   shlibpath_var=DYLD_LIBRARY_PATH
12140   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12141
12142   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12143   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12144   ;;
12145
12146 dgux*)
12147   version_type=linux # correct to gnu/linux during the next big refactor
12148   need_lib_prefix=no
12149   need_version=no
12150   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12151   soname_spec='$libname$release$shared_ext$major'
12152   shlibpath_var=LD_LIBRARY_PATH
12153   ;;
12154
12155 freebsd* | dragonfly* | midnightbsd*)
12156   # DragonFly does not have aout.  When/if they implement a new
12157   # versioning mechanism, adjust this.
12158   if test -x /usr/bin/objformat; then
12159     objformat=`/usr/bin/objformat`
12160   else
12161     case $host_os in
12162     freebsd[23].*) objformat=aout ;;
12163     *) objformat=elf ;;
12164     esac
12165   fi
12166   version_type=freebsd-$objformat
12167   case $version_type in
12168     freebsd-elf*)
12169       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170       soname_spec='$libname$release$shared_ext$major'
12171       need_version=no
12172       need_lib_prefix=no
12173       ;;
12174     freebsd-*)
12175       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12176       need_version=yes
12177       ;;
12178   esac
12179   shlibpath_var=LD_LIBRARY_PATH
12180   case $host_os in
12181   freebsd2.*)
12182     shlibpath_overrides_runpath=yes
12183     ;;
12184   freebsd3.[01]* | freebsdelf3.[01]*)
12185     shlibpath_overrides_runpath=yes
12186     hardcode_into_libs=yes
12187     ;;
12188   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12189   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12190     shlibpath_overrides_runpath=no
12191     hardcode_into_libs=yes
12192     ;;
12193   *) # from 4.6 on, and DragonFly
12194     shlibpath_overrides_runpath=yes
12195     hardcode_into_libs=yes
12196     ;;
12197   esac
12198   ;;
12199
12200 haiku*)
12201   version_type=linux # correct to gnu/linux during the next big refactor
12202   need_lib_prefix=no
12203   need_version=no
12204   dynamic_linker="$host_os runtime_loader"
12205   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206   soname_spec='$libname$release$shared_ext$major'
12207   shlibpath_var=LIBRARY_PATH
12208   shlibpath_overrides_runpath=no
12209   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12210   hardcode_into_libs=yes
12211   ;;
12212
12213 hpux9* | hpux10* | hpux11*)
12214   # Give a soname corresponding to the major version so that dld.sl refuses to
12215   # link against other versions.
12216   version_type=sunos
12217   need_lib_prefix=no
12218   need_version=no
12219   case $host_cpu in
12220   ia64*)
12221     shrext_cmds='.so'
12222     hardcode_into_libs=yes
12223     dynamic_linker="$host_os dld.so"
12224     shlibpath_var=LD_LIBRARY_PATH
12225     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12226     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227     soname_spec='$libname$release$shared_ext$major'
12228     if test 32 = "$HPUX_IA64_MODE"; then
12229       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12230       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12231     else
12232       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12233       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12234     fi
12235     ;;
12236   hppa*64*)
12237     shrext_cmds='.sl'
12238     hardcode_into_libs=yes
12239     dynamic_linker="$host_os dld.sl"
12240     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12242     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243     soname_spec='$libname$release$shared_ext$major'
12244     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12245     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12246     ;;
12247   *)
12248     shrext_cmds='.sl'
12249     dynamic_linker="$host_os dld.sl"
12250     shlibpath_var=SHLIB_PATH
12251     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12252     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253     soname_spec='$libname$release$shared_ext$major'
12254     ;;
12255   esac
12256   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12257   postinstall_cmds='chmod 555 $lib'
12258   # or fails outright, so override atomically:
12259   install_override_mode=555
12260   ;;
12261
12262 interix[3-9]*)
12263   version_type=linux # correct to gnu/linux during the next big refactor
12264   need_lib_prefix=no
12265   need_version=no
12266   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267   soname_spec='$libname$release$shared_ext$major'
12268   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   shlibpath_overrides_runpath=no
12271   hardcode_into_libs=yes
12272   ;;
12273
12274 irix5* | irix6* | nonstopux*)
12275   case $host_os in
12276     nonstopux*) version_type=nonstopux ;;
12277     *)
12278         if test yes = "$lt_cv_prog_gnu_ld"; then
12279                 version_type=linux # correct to gnu/linux during the next big refactor
12280         else
12281                 version_type=irix
12282         fi ;;
12283   esac
12284   need_lib_prefix=no
12285   need_version=no
12286   soname_spec='$libname$release$shared_ext$major'
12287   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12288   case $host_os in
12289   irix5* | nonstopux*)
12290     libsuff= shlibsuff=
12291     ;;
12292   *)
12293     case $LD in # libtool.m4 will add one of these switches to LD
12294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12295       libsuff= shlibsuff= libmagic=32-bit;;
12296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12297       libsuff=32 shlibsuff=N32 libmagic=N32;;
12298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12300     *) libsuff= shlibsuff= libmagic=never-match;;
12301     esac
12302     ;;
12303   esac
12304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12305   shlibpath_overrides_runpath=no
12306   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12307   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12308   hardcode_into_libs=yes
12309   ;;
12310
12311 # No shared lib support for Linux oldld, aout, or coff.
12312 linux*oldld* | linux*aout* | linux*coff*)
12313   dynamic_linker=no
12314   ;;
12315
12316 linux*android*)
12317   version_type=none # Android doesn't support versioned libraries.
12318   need_lib_prefix=no
12319   need_version=no
12320   library_names_spec='$libname$release$shared_ext'
12321   soname_spec='$libname$release$shared_ext'
12322   finish_cmds=
12323   shlibpath_var=LD_LIBRARY_PATH
12324   shlibpath_overrides_runpath=yes
12325
12326   # This implies no fast_install, which is unacceptable.
12327   # Some rework will be needed to allow for fast_install
12328   # before this can be enabled.
12329   hardcode_into_libs=yes
12330
12331   dynamic_linker='Android linker'
12332   # Don't embed -rpath directories since the linker doesn't support them.
12333   hardcode_libdir_flag_spec='-L$libdir'
12334   ;;
12335
12336 # This must be glibc/ELF.
12337 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12338   version_type=linux # correct to gnu/linux during the next big refactor
12339   need_lib_prefix=no
12340   need_version=no
12341   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342   soname_spec='$libname$release$shared_ext$major'
12343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12344   shlibpath_var=LD_LIBRARY_PATH
12345   shlibpath_overrides_runpath=no
12346
12347   # Some binutils ld are patched to set DT_RUNPATH
12348   if test ${lt_cv_shlibpath_overrides_runpath+y}
12349 then :
12350   printf %s "(cached) " >&6
12351 else $as_nop
12352   lt_cv_shlibpath_overrides_runpath=no
12353     save_LDFLAGS=$LDFLAGS
12354     save_libdir=$libdir
12355     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12356          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359
12360 int
12361 main (void)
12362 {
12363
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"
12369 then :
12370   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12371 then :
12372   lt_cv_shlibpath_overrides_runpath=yes
12373 fi
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12376     conftest$ac_exeext conftest.$ac_ext
12377     LDFLAGS=$save_LDFLAGS
12378     libdir=$save_libdir
12379
12380 fi
12381
12382   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12383
12384   # This implies no fast_install, which is unacceptable.
12385   # Some rework will be needed to allow for fast_install
12386   # before this can be enabled.
12387   hardcode_into_libs=yes
12388
12389   # Ideally, we could use ldconfig to report *all* directores which are
12390   # searched for libraries, however this is still not possible.  Aside from not
12391   # being certain /sbin/ldconfig is available, command
12392   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12393   # even though it is searched at run-time.  Try to do the best guess by
12394   # appending ld.so.conf contents (and includes) to the search path.
12395   if test -f /etc/ld.so.conf; then
12396     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' ' '`
12397     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12398   fi
12399
12400   # We used to test for /lib/ld.so.1 and disable shared libraries on
12401   # powerpc, because MkLinux only supported shared libraries with the
12402   # GNU dynamic linker.  Since this was broken with cross compilers,
12403   # most powerpc-linux boxes support dynamic linking these days and
12404   # people can always --disable-shared, the test was removed, and we
12405   # assume the GNU/Linux dynamic linker is in use.
12406   dynamic_linker='GNU/Linux ld.so'
12407   ;;
12408
12409 netbsd*)
12410   version_type=sunos
12411   need_lib_prefix=no
12412   need_version=no
12413   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12415     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12416     dynamic_linker='NetBSD (a.out) ld.so'
12417   else
12418     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12419     soname_spec='$libname$release$shared_ext$major'
12420     dynamic_linker='NetBSD ld.elf_so'
12421   fi
12422   shlibpath_var=LD_LIBRARY_PATH
12423   shlibpath_overrides_runpath=yes
12424   hardcode_into_libs=yes
12425   ;;
12426
12427 newsos6)
12428   version_type=linux # correct to gnu/linux during the next big refactor
12429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430   shlibpath_var=LD_LIBRARY_PATH
12431   shlibpath_overrides_runpath=yes
12432   ;;
12433
12434 *nto* | *qnx*)
12435   version_type=qnx
12436   need_lib_prefix=no
12437   need_version=no
12438   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12439   soname_spec='$libname$release$shared_ext$major'
12440   shlibpath_var=LD_LIBRARY_PATH
12441   shlibpath_overrides_runpath=no
12442   hardcode_into_libs=yes
12443   dynamic_linker='ldqnx.so'
12444   ;;
12445
12446 openbsd* | bitrig*)
12447   version_type=sunos
12448   sys_lib_dlsearch_path_spec=/usr/lib
12449   need_lib_prefix=no
12450   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12451     need_version=no
12452   else
12453     need_version=yes
12454   fi
12455   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12457   shlibpath_var=LD_LIBRARY_PATH
12458   shlibpath_overrides_runpath=yes
12459   ;;
12460
12461 os2*)
12462   libname_spec='$name'
12463   version_type=windows
12464   shrext_cmds=.dll
12465   need_version=no
12466   need_lib_prefix=no
12467   # OS/2 can only load a DLL with a base name of 8 characters or less.
12468   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12469     v=$($ECHO $release$versuffix | tr -d .-);
12470     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12471     $ECHO $n$v`$shared_ext'
12472   library_names_spec='${libname}_dll.$libext'
12473   dynamic_linker='OS/2 ld.exe'
12474   shlibpath_var=BEGINLIBPATH
12475   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12476   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12477   postinstall_cmds='base_file=`basename \$file`~
12478     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12479     dldir=$destdir/`dirname \$dlpath`~
12480     test -d \$dldir || mkdir -p \$dldir~
12481     $install_prog $dir/$dlname \$dldir/$dlname~
12482     chmod a+x \$dldir/$dlname~
12483     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12484       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12485     fi'
12486   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12487     dlpath=$dir/\$dldll~
12488     $RM \$dlpath'
12489   ;;
12490
12491 osf3* | osf4* | osf5*)
12492   version_type=osf
12493   need_lib_prefix=no
12494   need_version=no
12495   soname_spec='$libname$release$shared_ext$major'
12496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497   shlibpath_var=LD_LIBRARY_PATH
12498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12499   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12500   ;;
12501
12502 rdos*)
12503   dynamic_linker=no
12504   ;;
12505
12506 solaris*)
12507   version_type=linux # correct to gnu/linux during the next big refactor
12508   need_lib_prefix=no
12509   need_version=no
12510   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511   soname_spec='$libname$release$shared_ext$major'
12512   shlibpath_var=LD_LIBRARY_PATH
12513   shlibpath_overrides_runpath=yes
12514   hardcode_into_libs=yes
12515   # ldd complains unless libraries are executable
12516   postinstall_cmds='chmod +x $lib'
12517   ;;
12518
12519 sunos4*)
12520   version_type=sunos
12521   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12523   shlibpath_var=LD_LIBRARY_PATH
12524   shlibpath_overrides_runpath=yes
12525   if test yes = "$with_gnu_ld"; then
12526     need_lib_prefix=no
12527   fi
12528   need_version=yes
12529   ;;
12530
12531 sysv4 | sysv4.3*)
12532   version_type=linux # correct to gnu/linux during the next big refactor
12533   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12534   soname_spec='$libname$release$shared_ext$major'
12535   shlibpath_var=LD_LIBRARY_PATH
12536   case $host_vendor in
12537     sni)
12538       shlibpath_overrides_runpath=no
12539       need_lib_prefix=no
12540       runpath_var=LD_RUN_PATH
12541       ;;
12542     siemens)
12543       need_lib_prefix=no
12544       ;;
12545     motorola)
12546       need_lib_prefix=no
12547       need_version=no
12548       shlibpath_overrides_runpath=no
12549       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12550       ;;
12551   esac
12552   ;;
12553
12554 sysv4*MP*)
12555   if test -d /usr/nec; then
12556     version_type=linux # correct to gnu/linux during the next big refactor
12557     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12558     soname_spec='$libname$shared_ext.$major'
12559     shlibpath_var=LD_LIBRARY_PATH
12560   fi
12561   ;;
12562
12563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12564   version_type=sco
12565   need_lib_prefix=no
12566   need_version=no
12567   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12568   soname_spec='$libname$release$shared_ext$major'
12569   shlibpath_var=LD_LIBRARY_PATH
12570   shlibpath_overrides_runpath=yes
12571   hardcode_into_libs=yes
12572   if test yes = "$with_gnu_ld"; then
12573     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12574   else
12575     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12576     case $host_os in
12577       sco3.2v5*)
12578         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12579         ;;
12580     esac
12581   fi
12582   sys_lib_dlsearch_path_spec='/usr/lib'
12583   ;;
12584
12585 tpf*)
12586   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12587   version_type=linux # correct to gnu/linux during the next big refactor
12588   need_lib_prefix=no
12589   need_version=no
12590   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591   shlibpath_var=LD_LIBRARY_PATH
12592   shlibpath_overrides_runpath=no
12593   hardcode_into_libs=yes
12594   ;;
12595
12596 uts4*)
12597   version_type=linux # correct to gnu/linux during the next big refactor
12598   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12599   soname_spec='$libname$release$shared_ext$major'
12600   shlibpath_var=LD_LIBRARY_PATH
12601   ;;
12602
12603 *)
12604   dynamic_linker=no
12605   ;;
12606 esac
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12608 printf "%s\n" "$dynamic_linker" >&6; }
12609 test no = "$dynamic_linker" && can_build_shared=no
12610
12611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12612 if test yes = "$GCC"; then
12613   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12614 fi
12615
12616 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12617   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12618 fi
12619
12620 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12621   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12622 fi
12623
12624 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12625 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12626
12627 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12628 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12629
12630 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12631 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12730 printf %s "checking how to hardcode library paths into programs... " >&6; }
12731 hardcode_action=
12732 if test -n "$hardcode_libdir_flag_spec" ||
12733    test -n "$runpath_var" ||
12734    test yes = "$hardcode_automatic"; then
12735
12736   # We can hardcode non-existent directories.
12737   if test no != "$hardcode_direct" &&
12738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12739      # have to relink, otherwise we might link with an installed library
12740      # when we should be linking with a yet-to-be-installed one
12741      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12742      test no != "$hardcode_minus_L"; then
12743     # Linking always hardcodes the temporary library directory.
12744     hardcode_action=relink
12745   else
12746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12747     hardcode_action=immediate
12748   fi
12749 else
12750   # We cannot hardcode anything, or else we can only hardcode existing
12751   # directories.
12752   hardcode_action=unsupported
12753 fi
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12755 printf "%s\n" "$hardcode_action" >&6; }
12756
12757 if test relink = "$hardcode_action" ||
12758    test yes = "$inherit_rpath"; then
12759   # Fast installation is not supported
12760   enable_fast_install=no
12761 elif test yes = "$shlibpath_overrides_runpath" ||
12762      test no = "$enable_shared"; then
12763   # Fast installation is not necessary
12764   enable_fast_install=needless
12765 fi
12766
12767
12768
12769
12770
12771
12772   if test yes != "$enable_dlopen"; then
12773   enable_dlopen=unknown
12774   enable_dlopen_self=unknown
12775   enable_dlopen_self_static=unknown
12776 else
12777   lt_cv_dlopen=no
12778   lt_cv_dlopen_libs=
12779
12780   case $host_os in
12781   beos*)
12782     lt_cv_dlopen=load_add_on
12783     lt_cv_dlopen_libs=
12784     lt_cv_dlopen_self=yes
12785     ;;
12786
12787   mingw* | pw32* | cegcc*)
12788     lt_cv_dlopen=LoadLibrary
12789     lt_cv_dlopen_libs=
12790     ;;
12791
12792   cygwin*)
12793     lt_cv_dlopen=dlopen
12794     lt_cv_dlopen_libs=
12795     ;;
12796
12797   darwin*)
12798     # if libdl is installed we need to link against it
12799     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12800 printf %s "checking for dlopen in -ldl... " >&6; }
12801 if test ${ac_cv_lib_dl_dlopen+y}
12802 then :
12803   printf %s "(cached) " >&6
12804 else $as_nop
12805   ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-ldl  $LIBS"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 char dlopen ();
12814 int
12815 main (void)
12816 {
12817 return dlopen ();
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 if ac_fn_c_try_link "$LINENO"
12823 then :
12824   ac_cv_lib_dl_dlopen=yes
12825 else $as_nop
12826   ac_cv_lib_dl_dlopen=no
12827 fi
12828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12829     conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12831 fi
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12833 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12834 if test "x$ac_cv_lib_dl_dlopen" = xyes
12835 then :
12836   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12837 else $as_nop
12838
12839     lt_cv_dlopen=dyld
12840     lt_cv_dlopen_libs=
12841     lt_cv_dlopen_self=yes
12842
12843 fi
12844
12845     ;;
12846
12847   tpf*)
12848     # Don't try to run any link tests for TPF.  We know it's impossible
12849     # because TPF is a cross-compiler, and we know how we open DSOs.
12850     lt_cv_dlopen=dlopen
12851     lt_cv_dlopen_libs=
12852     lt_cv_dlopen_self=no
12853     ;;
12854
12855   *)
12856     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12857 if test "x$ac_cv_func_shl_load" = xyes
12858 then :
12859   lt_cv_dlopen=shl_load
12860 else $as_nop
12861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12862 printf %s "checking for shl_load in -ldld... " >&6; }
12863 if test ${ac_cv_lib_dld_shl_load+y}
12864 then :
12865   printf %s "(cached) " >&6
12866 else $as_nop
12867   ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-ldld  $LIBS"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h.  */
12871
12872 /* Override any GCC internal prototype to avoid an error.
12873    Use char because int might match the return type of a GCC
12874    builtin and then its argument prototype would still apply.  */
12875 char shl_load ();
12876 int
12877 main (void)
12878 {
12879 return shl_load ();
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_link "$LINENO"
12885 then :
12886   ac_cv_lib_dld_shl_load=yes
12887 else $as_nop
12888   ac_cv_lib_dld_shl_load=no
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12891     conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12893 fi
12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12895 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12896 if test "x$ac_cv_lib_dld_shl_load" = xyes
12897 then :
12898   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12899 else $as_nop
12900   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12901 if test "x$ac_cv_func_dlopen" = xyes
12902 then :
12903   lt_cv_dlopen=dlopen
12904 else $as_nop
12905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12906 printf %s "checking for dlopen in -ldl... " >&6; }
12907 if test ${ac_cv_lib_dl_dlopen+y}
12908 then :
12909   printf %s "(cached) " >&6
12910 else $as_nop
12911   ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ldl  $LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h.  */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917    Use char because int might match the return type of a GCC
12918    builtin and then its argument prototype would still apply.  */
12919 char dlopen ();
12920 int
12921 main (void)
12922 {
12923 return dlopen ();
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"
12929 then :
12930   ac_cv_lib_dl_dlopen=yes
12931 else $as_nop
12932   ac_cv_lib_dl_dlopen=no
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12935     conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12937 fi
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12939 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12940 if test "x$ac_cv_lib_dl_dlopen" = xyes
12941 then :
12942   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12943 else $as_nop
12944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12945 printf %s "checking for dlopen in -lsvld... " >&6; }
12946 if test ${ac_cv_lib_svld_dlopen+y}
12947 then :
12948   printf %s "(cached) " >&6
12949 else $as_nop
12950   ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lsvld  $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956    Use char because int might match the return type of a GCC
12957    builtin and then its argument prototype would still apply.  */
12958 char dlopen ();
12959 int
12960 main (void)
12961 {
12962 return dlopen ();
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_c_try_link "$LINENO"
12968 then :
12969   ac_cv_lib_svld_dlopen=yes
12970 else $as_nop
12971   ac_cv_lib_svld_dlopen=no
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12974     conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12976 fi
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12978 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12979 if test "x$ac_cv_lib_svld_dlopen" = xyes
12980 then :
12981   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12982 else $as_nop
12983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12984 printf %s "checking for dld_link in -ldld... " >&6; }
12985 if test ${ac_cv_lib_dld_dld_link+y}
12986 then :
12987   printf %s "(cached) " >&6
12988 else $as_nop
12989   ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-ldld  $LIBS"
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995    Use char because int might match the return type of a GCC
12996    builtin and then its argument prototype would still apply.  */
12997 char dld_link ();
12998 int
12999 main (void)
13000 {
13001 return dld_link ();
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 if ac_fn_c_try_link "$LINENO"
13007 then :
13008   ac_cv_lib_dld_dld_link=yes
13009 else $as_nop
13010   ac_cv_lib_dld_dld_link=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13013     conftest$ac_exeext conftest.$ac_ext
13014 LIBS=$ac_check_lib_save_LIBS
13015 fi
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13017 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13018 if test "x$ac_cv_lib_dld_dld_link" = xyes
13019 then :
13020   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13021 fi
13022
13023
13024 fi
13025
13026
13027 fi
13028
13029
13030 fi
13031
13032
13033 fi
13034
13035
13036 fi
13037
13038     ;;
13039   esac
13040
13041   if test no = "$lt_cv_dlopen"; then
13042     enable_dlopen=no
13043   else
13044     enable_dlopen=yes
13045   fi
13046
13047   case $lt_cv_dlopen in
13048   dlopen)
13049     save_CPPFLAGS=$CPPFLAGS
13050     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13051
13052     save_LDFLAGS=$LDFLAGS
13053     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13054
13055     save_LIBS=$LIBS
13056     LIBS="$lt_cv_dlopen_libs $LIBS"
13057
13058     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13059 printf %s "checking whether a program can dlopen itself... " >&6; }
13060 if test ${lt_cv_dlopen_self+y}
13061 then :
13062   printf %s "(cached) " >&6
13063 else $as_nop
13064           if test yes = "$cross_compiling"; then :
13065   lt_cv_dlopen_self=cross
13066 else
13067   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068   lt_status=$lt_dlunknown
13069   cat > conftest.$ac_ext <<_LT_EOF
13070 #line $LINENO "configure"
13071 #include "confdefs.h"
13072
13073 #if HAVE_DLFCN_H
13074 #include <dlfcn.h>
13075 #endif
13076
13077 #include <stdio.h>
13078
13079 #ifdef RTLD_GLOBAL
13080 #  define LT_DLGLOBAL           RTLD_GLOBAL
13081 #else
13082 #  ifdef DL_GLOBAL
13083 #    define LT_DLGLOBAL         DL_GLOBAL
13084 #  else
13085 #    define LT_DLGLOBAL         0
13086 #  endif
13087 #endif
13088
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090    find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13092 #  ifdef RTLD_LAZY
13093 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13094 #  else
13095 #    ifdef DL_LAZY
13096 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13097 #    else
13098 #      ifdef RTLD_NOW
13099 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13100 #      else
13101 #        ifdef DL_NOW
13102 #          define LT_DLLAZY_OR_NOW      DL_NOW
13103 #        else
13104 #          define LT_DLLAZY_OR_NOW      0
13105 #        endif
13106 #      endif
13107 #    endif
13108 #  endif
13109 #endif
13110
13111 /* When -fvisibility=hidden is used, assume the code has been annotated
13112    correspondingly for the symbols needed.  */
13113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13114 int fnord () __attribute__((visibility("default")));
13115 #endif
13116
13117 int fnord () { return 42; }
13118 int main ()
13119 {
13120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13121   int status = $lt_dlunknown;
13122
13123   if (self)
13124     {
13125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13126       else
13127         {
13128           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13129           else puts (dlerror ());
13130         }
13131       /* dlclose (self); */
13132     }
13133   else
13134     puts (dlerror ());
13135
13136   return status;
13137 }
13138 _LT_EOF
13139   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13140   (eval $ac_link) 2>&5
13141   ac_status=$?
13142   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13143   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13144     (./conftest; exit; ) >&5 2>/dev/null
13145     lt_status=$?
13146     case x$lt_status in
13147       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13148       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13149       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13150     esac
13151   else :
13152     # compilation failed
13153     lt_cv_dlopen_self=no
13154   fi
13155 fi
13156 rm -fr conftest*
13157
13158
13159 fi
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13161 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13162
13163     if test yes = "$lt_cv_dlopen_self"; then
13164       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13165       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13166 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13167 if test ${lt_cv_dlopen_self_static+y}
13168 then :
13169   printf %s "(cached) " >&6
13170 else $as_nop
13171           if test yes = "$cross_compiling"; then :
13172   lt_cv_dlopen_self_static=cross
13173 else
13174   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13175   lt_status=$lt_dlunknown
13176   cat > conftest.$ac_ext <<_LT_EOF
13177 #line $LINENO "configure"
13178 #include "confdefs.h"
13179
13180 #if HAVE_DLFCN_H
13181 #include <dlfcn.h>
13182 #endif
13183
13184 #include <stdio.h>
13185
13186 #ifdef RTLD_GLOBAL
13187 #  define LT_DLGLOBAL           RTLD_GLOBAL
13188 #else
13189 #  ifdef DL_GLOBAL
13190 #    define LT_DLGLOBAL         DL_GLOBAL
13191 #  else
13192 #    define LT_DLGLOBAL         0
13193 #  endif
13194 #endif
13195
13196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13197    find out it does not work in some platform. */
13198 #ifndef LT_DLLAZY_OR_NOW
13199 #  ifdef RTLD_LAZY
13200 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13201 #  else
13202 #    ifdef DL_LAZY
13203 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13204 #    else
13205 #      ifdef RTLD_NOW
13206 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13207 #      else
13208 #        ifdef DL_NOW
13209 #          define LT_DLLAZY_OR_NOW      DL_NOW
13210 #        else
13211 #          define LT_DLLAZY_OR_NOW      0
13212 #        endif
13213 #      endif
13214 #    endif
13215 #  endif
13216 #endif
13217
13218 /* When -fvisibility=hidden is used, assume the code has been annotated
13219    correspondingly for the symbols needed.  */
13220 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13221 int fnord () __attribute__((visibility("default")));
13222 #endif
13223
13224 int fnord () { return 42; }
13225 int main ()
13226 {
13227   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13228   int status = $lt_dlunknown;
13229
13230   if (self)
13231     {
13232       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13233       else
13234         {
13235           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13236           else puts (dlerror ());
13237         }
13238       /* dlclose (self); */
13239     }
13240   else
13241     puts (dlerror ());
13242
13243   return status;
13244 }
13245 _LT_EOF
13246   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13247   (eval $ac_link) 2>&5
13248   ac_status=$?
13249   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13251     (./conftest; exit; ) >&5 2>/dev/null
13252     lt_status=$?
13253     case x$lt_status in
13254       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13255       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13256       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13257     esac
13258   else :
13259     # compilation failed
13260     lt_cv_dlopen_self_static=no
13261   fi
13262 fi
13263 rm -fr conftest*
13264
13265
13266 fi
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13268 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13269     fi
13270
13271     CPPFLAGS=$save_CPPFLAGS
13272     LDFLAGS=$save_LDFLAGS
13273     LIBS=$save_LIBS
13274     ;;
13275   esac
13276
13277   case $lt_cv_dlopen_self in
13278   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13279   *) enable_dlopen_self=unknown ;;
13280   esac
13281
13282   case $lt_cv_dlopen_self_static in
13283   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13284   *) enable_dlopen_self_static=unknown ;;
13285   esac
13286 fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304 striplib=
13305 old_striplib=
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13307 printf %s "checking whether stripping libraries is possible... " >&6; }
13308 if test -z "$STRIP"; then
13309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 printf "%s\n" "no" >&6; }
13311 else
13312   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13313     old_striplib="$STRIP --strip-debug"
13314     striplib="$STRIP --strip-unneeded"
13315     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316 printf "%s\n" "yes" >&6; }
13317   else
13318     case $host_os in
13319     darwin*)
13320       # FIXME - insert some real tests, host_os isn't really good enough
13321       striplib="$STRIP -x"
13322       old_striplib="$STRIP -S"
13323       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13324 printf "%s\n" "yes" >&6; }
13325       ;;
13326     freebsd*)
13327       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13328         old_striplib="$STRIP --strip-debug"
13329         striplib="$STRIP --strip-unneeded"
13330         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13331 printf "%s\n" "yes" >&6; }
13332       else
13333         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 printf "%s\n" "no" >&6; }
13335       fi
13336       ;;
13337     *)
13338       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339 printf "%s\n" "no" >&6; }
13340       ;;
13341     esac
13342   fi
13343 fi
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356   # Report what library types will actually be built
13357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13358 printf %s "checking if libtool supports shared libraries... " >&6; }
13359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13360 printf "%s\n" "$can_build_shared" >&6; }
13361
13362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13363 printf %s "checking whether to build shared libraries... " >&6; }
13364   test no = "$can_build_shared" && enable_shared=no
13365
13366   # On AIX, shared libraries and static libraries use the same namespace, and
13367   # are all built from PIC.
13368   case $host_os in
13369   aix3*)
13370     test yes = "$enable_shared" && enable_static=no
13371     if test -n "$RANLIB"; then
13372       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13373       postinstall_cmds='$RANLIB $lib'
13374     fi
13375     ;;
13376
13377   aix[4-9]*)
13378     if test ia64 != "$host_cpu"; then
13379       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13380       yes,aix,yes) ;;                   # shared object as lib.so file only
13381       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13382       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13383       esac
13384     fi
13385     ;;
13386   esac
13387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13388 printf "%s\n" "$enable_shared" >&6; }
13389
13390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13391 printf %s "checking whether to build static libraries... " >&6; }
13392   # Make sure either enable_shared or enable_static is yes.
13393   test yes = "$enable_shared" || enable_static=yes
13394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13395 printf "%s\n" "$enable_static" >&6; }
13396
13397
13398
13399
13400 fi
13401 ac_ext=c
13402 ac_cpp='$CPP $CPPFLAGS'
13403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13406
13407 CC=$lt_save_CC
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423         ac_config_commands="$ac_config_commands libtool"
13424
13425
13426
13427
13428 # Only expand once:
13429
13430
13431
13432
13433 # Some awks crash when confronted with pnglibconf.dfa, do a test run now
13434 # to make sure this doesn't happen
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
13436 printf %s "checking that AWK works... " >&6; }
13437 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
13438    ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
13439    ${srcdir}/pngusr.dfa 1>&2
13440 then
13441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13442 printf "%s\n" "ok" >&6; }
13443 else
13444    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13446 as_fn_error 1 "failed
13447 See \`config.log' for more details" "$LINENO" 5; }
13448 fi
13449
13450 # This is a remnant of the old cc -E validation, where it may have been
13451 # necessary to use a different preprocessor for .dfn files
13452 DFNCPP="$CPP"
13453
13454
13455 # -Werror cannot be passed to GCC in CFLAGS because configure will fail
13456 # (it checks the compiler with a program that generates a warning).
13457 # Add the following option to deal with this:
13458
13459 # Check whether --enable-werror was given.
13460 if test ${enable_werror+y}
13461 then :
13462   enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
13463     if test "$enable_werror" != "no"; then
13464       sav_CFLAGS="$CFLAGS"
13465       CFLAGS="$enable_werror $CFLAGS"
13466       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
13467 printf %s "checking if the compiler allows $enable_werror... " >&6; }
13468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h.  */
13470
13471             int main(int argc, char **argv){
13472             return argv[argc-1][0];
13473             }
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"
13476 then :
13477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13478 printf "%s\n" "yes" >&6; }
13479          PNG_COPTS="$PNG_COPTS $enable_werror"
13480 else $as_nop
13481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 printf "%s\n" "no" >&6; }
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13485       CFLAGS="$sav_CFLAGS"
13486     fi
13487 fi
13488
13489
13490 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
13491 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
13492 # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
13493 # we test for that and force the "-std=c89" compiler option:
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
13495 printf %s "checking if we need to force back C standard to C89... " >&6; }
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h.  */
13498
13499       #define _POSIX_SOURCE 1
13500       #include <stdio.h>
13501
13502 int
13503 main (void)
13504 {
13505
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 if ac_fn_c_try_compile "$LINENO"
13511 then :
13512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 printf "%s\n" "no" >&6; }
13514 else $as_nop
13515
13516       if test "x$GCC" != "xyes"; then
13517          as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
13518       fi
13519    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13520 printf "%s\n" "yes" >&6; }
13521    CFLAGS="$CFLAGS -std=c89"
13522
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13525
13526 # Checks for structures and compiler characteristics.
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13528 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13529 if test ${ac_cv_struct_tm+y}
13530 then :
13531   printf %s "(cached) " >&6
13532 else $as_nop
13533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h.  */
13535 #include <sys/types.h>
13536 #include <time.h>
13537
13538 int
13539 main (void)
13540 {
13541 struct tm tm;
13542                                      int *p = &tm.tm_sec;
13543                                      return !p;
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_compile "$LINENO"
13549 then :
13550   ac_cv_struct_tm=time.h
13551 else $as_nop
13552   ac_cv_struct_tm=sys/time.h
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13555 fi
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13557 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13558 if test $ac_cv_struct_tm = sys/time.h; then
13559
13560 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13561
13562 fi
13563
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13565 printf %s "checking for C/C++ restrict keyword... " >&6; }
13566 if test ${ac_cv_c_restrict+y}
13567 then :
13568   printf %s "(cached) " >&6
13569 else $as_nop
13570   ac_cv_c_restrict=no
13571    # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13572    # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13573    # Put 'restrict' last, because C++ lacks it.
13574    for ac_kw in __restrict__ __restrict _Restrict restrict; do
13575      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577 typedef int *int_ptr;
13578            int foo (int_ptr $ac_kw ip) { return ip[0]; }
13579            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
13580            int bar (int ip[$ac_kw]) { return ip[0]; }
13581
13582 int
13583 main (void)
13584 {
13585 int s[1];
13586            int *$ac_kw t = s;
13587            t[0] = 0;
13588            return foo (t) + bar (t);
13589
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"
13595 then :
13596   ac_cv_c_restrict=$ac_kw
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13599      test "$ac_cv_c_restrict" != no && break
13600    done
13601
13602 fi
13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13604 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13605
13606  case $ac_cv_c_restrict in
13607    restrict) ;;
13608    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13609  ;;
13610    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13611  ;;
13612  esac
13613
13614
13615 # Checks for library functions.
13616
13617   for ac_func in pow
13618 do :
13619   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13620 if test "x$ac_cv_func_pow" = xyes
13621 then :
13622   printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
13623
13624 else $as_nop
13625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13626 printf %s "checking for pow in -lm... " >&6; }
13627 if test ${ac_cv_lib_m_pow+y}
13628 then :
13629   printf %s "(cached) " >&6
13630 else $as_nop
13631   ac_check_lib_save_LIBS=$LIBS
13632 LIBS="-lm  $LIBS"
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635
13636 /* Override any GCC internal prototype to avoid an error.
13637    Use char because int might match the return type of a GCC
13638    builtin and then its argument prototype would still apply.  */
13639 char pow ();
13640 int
13641 main (void)
13642 {
13643 return pow ();
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_link "$LINENO"
13649 then :
13650   ac_cv_lib_m_pow=yes
13651 else $as_nop
13652   ac_cv_lib_m_pow=no
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13655     conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13657 fi
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13659 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
13660 if test "x$ac_cv_lib_m_pow" = xyes
13661 then :
13662   printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13663
13664   LIBS="-lm $LIBS"
13665
13666 else $as_nop
13667   as_fn_error $? "cannot find pow" "$LINENO" 5
13668 fi
13669
13670 fi
13671
13672 done
13673
13674 # Some later POSIX 1003.1 functions are required for test programs, failure
13675 # here is soft (the corresponding test program is not built).
13676 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13677 if test "x$ac_cv_func_clock_gettime" = xyes
13678 then :
13679
13680 else $as_nop
13681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
13682 printf "%s\n" "$as_me: WARNING: not building timepng" >&2;}
13683 fi
13684
13685  if test "$ac_cv_func_clock_gettime" = "yes"; then
13686   HAVE_CLOCK_GETTIME_TRUE=
13687   HAVE_CLOCK_GETTIME_FALSE='#'
13688 else
13689   HAVE_CLOCK_GETTIME_TRUE='#'
13690   HAVE_CLOCK_GETTIME_FALSE=
13691 fi
13692
13693
13694
13695 # Check whether --with-zlib-prefix was given.
13696 if test ${with_zlib_prefix+y}
13697 then :
13698   withval=$with_zlib_prefix; ZPREFIX=${withval}
13699 else $as_nop
13700   ZPREFIX='z_'
13701 fi
13702
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13704 printf %s "checking for zlibVersion in -lz... " >&6; }
13705 if test ${ac_cv_lib_z_zlibVersion+y}
13706 then :
13707   printf %s "(cached) " >&6
13708 else $as_nop
13709   ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-lz  $LIBS"
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713
13714 /* Override any GCC internal prototype to avoid an error.
13715    Use char because int might match the return type of a GCC
13716    builtin and then its argument prototype would still apply.  */
13717 char zlibVersion ();
13718 int
13719 main (void)
13720 {
13721 return zlibVersion ();
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"
13727 then :
13728   ac_cv_lib_z_zlibVersion=yes
13729 else $as_nop
13730   ac_cv_lib_z_zlibVersion=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733     conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13735 fi
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13737 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
13738 if test "x$ac_cv_lib_z_zlibVersion" = xyes
13739 then :
13740   printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
13741
13742   LIBS="-lz $LIBS"
13743
13744 else $as_nop
13745   as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
13747 printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
13748 if eval test \${$as_ac_Lib+y}
13749 then :
13750   printf %s "(cached) " >&6
13751 else $as_nop
13752   ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-lz  $LIBS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756
13757 /* Override any GCC internal prototype to avoid an error.
13758    Use char because int might match the return type of a GCC
13759    builtin and then its argument prototype would still apply.  */
13760 char ${ZPREFIX}zlibVersion ();
13761 int
13762 main (void)
13763 {
13764 return ${ZPREFIX}zlibVersion ();
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"
13770 then :
13771   eval "$as_ac_Lib=yes"
13772 else $as_nop
13773   eval "$as_ac_Lib=no"
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13776     conftest$ac_exeext conftest.$ac_ext
13777 LIBS=$ac_check_lib_save_LIBS
13778 fi
13779 eval ac_res=\$$as_ac_Lib
13780                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13781 printf "%s\n" "$ac_res" >&6; }
13782 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
13783 then :
13784   printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
13785
13786   LIBS="-lz $LIBS"
13787
13788 else $as_nop
13789   as_fn_error $? "zlib not installed" "$LINENO" 5
13790 fi
13791
13792 fi
13793
13794
13795 # The following is for pngvalid, to ensure it catches FP errors even on
13796 # platforms that don't enable FP exceptions, the function appears in the math
13797 # library (typically), it's not an error if it is not found.
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
13799 printf %s "checking for feenableexcept in -lm... " >&6; }
13800 if test ${ac_cv_lib_m_feenableexcept+y}
13801 then :
13802   printf %s "(cached) " >&6
13803 else $as_nop
13804   ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lm  $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h.  */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810    Use char because int might match the return type of a GCC
13811    builtin and then its argument prototype would still apply.  */
13812 char feenableexcept ();
13813 int
13814 main (void)
13815 {
13816 return feenableexcept ();
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"
13822 then :
13823   ac_cv_lib_m_feenableexcept=yes
13824 else $as_nop
13825   ac_cv_lib_m_feenableexcept=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828     conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13830 fi
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
13832 printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
13833 if test "x$ac_cv_lib_m_feenableexcept" = xyes
13834 then :
13835   printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13836
13837   LIBS="-lm $LIBS"
13838
13839 fi
13840
13841 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
13842 if test "x$ac_cv_func_feenableexcept" = xyes
13843 then :
13844   printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
13845
13846 fi
13847
13848
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
13850 printf %s "checking if using Solaris linker... " >&6; }
13851 SLD=`$LD --version 2>&1 | grep Solaris`
13852 if test "$SLD"; then
13853     have_solaris_ld=yes
13854     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 printf "%s\n" "yes" >&6; }
13856 else
13857     have_solaris_ld=no
13858     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 printf "%s\n" "no" >&6; }
13860 fi
13861  if test "$have_solaris_ld" = "yes"; then
13862   HAVE_SOLARIS_LD_TRUE=
13863   HAVE_SOLARIS_LD_FALSE='#'
13864 else
13865   HAVE_SOLARIS_LD_TRUE='#'
13866   HAVE_SOLARIS_LD_FALSE=
13867 fi
13868
13869
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
13871 printf %s "checking if libraries can be versioned... " >&6; }
13872 # Special case for PE/COFF platforms: ld reports
13873 # support for version-script, but doesn't actually
13874 # DO anything with it.
13875 case $host in
13876 *cygwin* | *mingw32* | *interix* )
13877     have_ld_version_script=no
13878     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 printf "%s\n" "no" >&6; }
13880 ;;
13881 * )
13882
13883 if test "$have_solaris_ld" = "yes"; then
13884     GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
13885 else
13886     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
13887 fi
13888
13889 if test "$GLD"; then
13890     have_ld_version_script=yes
13891     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 printf "%s\n" "yes" >&6; }
13893 else
13894     have_ld_version_script=no
13895     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 printf "%s\n" "no" >&6; }
13897     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
13898 printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
13899 fi
13900 ;;
13901 esac
13902
13903  if test "$have_ld_version_script" = "yes"; then
13904   HAVE_LD_VERSION_SCRIPT_TRUE=
13905   HAVE_LD_VERSION_SCRIPT_FALSE='#'
13906 else
13907   HAVE_LD_VERSION_SCRIPT_TRUE='#'
13908   HAVE_LD_VERSION_SCRIPT_FALSE=
13909 fi
13910
13911
13912 if test "$have_ld_version_script" = "yes"; then
13913     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
13914 printf %s "checking for symbol prefix... " >&6; }
13915     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
13916                   | ${CPP-${CC-gcc} -E} - 2>&1 \
13917                   | ${EGREP-grep} "^PREFIX=" \
13918                   | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
13919
13920     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
13921 printf "%s\n" "$SYMBOL_PREFIX" >&6; }
13922 fi
13923
13924 # Substitutions for .in files
13925
13926
13927
13928
13929
13930 # Additional arguments (and substitutions)
13931 # Allow the pkg-config directory to be set
13932
13933 # Check whether --with-pkgconfigdir was given.
13934 if test ${with_pkgconfigdir+y}
13935 then :
13936   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
13937 else $as_nop
13938   pkgconfigdir='${libdir}/pkgconfig'
13939 fi
13940
13941
13942
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
13944 printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
13945
13946 # Make the *-config binary config scripts optional
13947
13948 # Check whether --with-binconfigs was given.
13949 if test ${with_binconfigs+y}
13950 then :
13951   withval=$with_binconfigs; if test "${withval}" = no; then
13952       binconfigs=
13953       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
13954 printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
13955     else
13956       binconfigs='${binconfigs}'
13957     fi
13958 else $as_nop
13959   binconfigs='${binconfigs}'
13960 fi
13961
13962
13963
13964 # Support for prefixes to the API function names; this will generate defines
13965 # at the start of the build to rename exported library functions
13966
13967 # Check whether --with-libpng-prefix was given.
13968 if test ${with_libpng_prefix+y}
13969 then :
13970   withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
13971       PNG_PREFIX=${withval}
13972
13973     fi
13974 fi
13975
13976  if test "${with_libpng_prefix:-no}" != "no"; then
13977   DO_PNG_PREFIX_TRUE=
13978   DO_PNG_PREFIX_FALSE='#'
13979 else
13980   DO_PNG_PREFIX_TRUE='#'
13981   DO_PNG_PREFIX_FALSE=
13982 fi
13983
13984
13985 # Control over what links are made for installed files.  Versioned files are
13986 # always installed, when the following options are turned on corresponding
13987 # unversioned links are also created (normally as symbolic links):
13988 # Check whether --enable-unversioned-links was given.
13989 if test ${enable_unversioned_links+y}
13990 then :
13991   enableval=$enable_unversioned_links;
13992 fi
13993
13994
13995 # The AM_CONDITIONAL test is written so that the default is enabled;
13996 # --disable-unversioned-links must be given to turn the option off.
13997  if test "$enable_unversioned_links" != "no"; then
13998   DO_INSTALL_LINKS_TRUE=
13999   DO_INSTALL_LINKS_FALSE='#'
14000 else
14001   DO_INSTALL_LINKS_TRUE='#'
14002   DO_INSTALL_LINKS_FALSE=
14003 fi
14004
14005
14006 # Check whether --enable-unversioned-libpng-pc was given.
14007 if test ${enable_unversioned_libpng_pc+y}
14008 then :
14009   enableval=$enable_unversioned_libpng_pc;
14010 fi
14011
14012  if test "$enable_unversioned_libpng_pc" != "no"; then
14013   DO_INSTALL_LIBPNG_PC_TRUE=
14014   DO_INSTALL_LIBPNG_PC_FALSE='#'
14015 else
14016   DO_INSTALL_LIBPNG_PC_TRUE='#'
14017   DO_INSTALL_LIBPNG_PC_FALSE=
14018 fi
14019
14020
14021 # Check whether --enable-unversioned-libpng-config was given.
14022 if test ${enable_unversioned_libpng_config+y}
14023 then :
14024   enableval=$enable_unversioned_libpng_config;
14025 fi
14026
14027  if test "$enable_unversioned_libpng_config" != "no"; then
14028   DO_INSTALL_LIBPNG_CONFIG_TRUE=
14029   DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
14030 else
14031   DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
14032   DO_INSTALL_LIBPNG_CONFIG_FALSE=
14033 fi
14034
14035
14036 # HOST-SPECIFIC OPTIONS
14037 # =====================
14038 #
14039 # DEFAULT
14040 # =======
14041 #
14042 # Check whether --enable-hardware-optimizations was given.
14043 if test ${enable_hardware_optimizations+y}
14044 then :
14045   enableval=$enable_hardware_optimizations; case "$enableval" in
14046       no|off)
14047          # disable hardware optimization on all systems:
14048          enable_arm_neon=no
14049
14050 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14051
14052          enable_mips_msa=no
14053
14054 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14055
14056          enable_powerpc_vsx=no
14057
14058 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14059
14060          enable_intel_sse=no
14061
14062 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14063
14064          ;;
14065       *)
14066          # allow enabling hardware optimization on any system:
14067          case "$host_cpu" in
14068             arm*|aarch64*)
14069               enable_arm_neon=yes
14070
14071 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14072
14073               ;;
14074             mipsel*|mips64el*)
14075               enable_mips_msa=yes
14076
14077 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14078
14079               ;;
14080             i?86|x86_64)
14081               enable_intel_sse=yes
14082
14083 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14084
14085               ;;
14086             powerpc*|ppc64*)
14087               enable_powerpc_vsx=yes
14088
14089 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14090
14091               ;;
14092          esac
14093          ;;
14094    esac
14095 fi
14096
14097
14098 # ARM
14099 # ===
14100 #
14101 # ARM NEON (SIMD) support.
14102
14103 # Check whether --enable-arm-neon was given.
14104 if test ${enable_arm_neon+y}
14105 then :
14106   enableval=$enable_arm_neon; case "$enableval" in
14107       no|off)
14108          # disable the default enabling on __ARM_NEON__ systems:
14109
14110 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14111
14112          # Prevent inclusion of the assembler files below:
14113          enable_arm_neon=no ;;
14114       check)
14115
14116 printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
14117 ;;
14118       api)
14119
14120 printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
14121 ;;
14122       yes|on)
14123
14124 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14125
14126          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14127             you want the optimizations unconditionally pass -mfpu=neon
14128             to the compiler." >&5
14129 printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14130             you want the optimizations unconditionally pass -mfpu=neon
14131             to the compiler." >&2;};;
14132       *)
14133          as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
14134    esac
14135 fi
14136
14137
14138 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
14139 # where ARM optimizations were explicitly requested (this allows a fallback
14140 # if a future host CPU does not match 'arm*')
14141
14142  if test "$enable_arm_neon" != 'no' &&
14143     case "$host_cpu" in
14144       arm*|aarch64*) : ;;
14145       *)    test "$enable_arm_neon" != '' ;;
14146     esac; then
14147   PNG_ARM_NEON_TRUE=
14148   PNG_ARM_NEON_FALSE='#'
14149 else
14150   PNG_ARM_NEON_TRUE='#'
14151   PNG_ARM_NEON_FALSE=
14152 fi
14153
14154
14155 # MIPS
14156 # ====
14157 #
14158 # MIPS MSA (SIMD) support.
14159
14160 # Check whether --enable-mips-msa was given.
14161 if test ${enable_mips_msa+y}
14162 then :
14163   enableval=$enable_mips_msa; case "$enableval" in
14164       no|off)
14165          # disable the default enabling on __mips_msa systems:
14166
14167 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14168
14169          # Prevent inclusion of the assembler files below:
14170          enable_mips_msa=no ;;
14171       check)
14172
14173 printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
14174 ;;
14175       api)
14176
14177 printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
14178 ;;
14179       yes|on)
14180
14181 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14182
14183          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14184             you want the optimizations unconditionally pass '-mmsa -mfp64'
14185             to the compiler." >&5
14186 printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14187             you want the optimizations unconditionally pass '-mmsa -mfp64'
14188             to the compiler." >&2;};;
14189       *)
14190          as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
14191    esac
14192 fi
14193
14194
14195 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
14196 # where MIPS optimizations were explicitly requested (this allows a fallback
14197 # if a future host CPU does not match 'mips*')
14198
14199  if test "$enable_mips_msa" != 'no' &&
14200     case "$host_cpu" in
14201       mipsel*|mips64el*) : ;;
14202     esac; then
14203   PNG_MIPS_MSA_TRUE=
14204   PNG_MIPS_MSA_FALSE='#'
14205 else
14206   PNG_MIPS_MSA_TRUE='#'
14207   PNG_MIPS_MSA_FALSE=
14208 fi
14209
14210
14211 # INTEL
14212 # =====
14213 #
14214 # INTEL SSE (SIMD) support.
14215
14216 # Check whether --enable-intel-sse was given.
14217 if test ${enable_intel_sse+y}
14218 then :
14219   enableval=$enable_intel_sse; case "$enableval" in
14220       no|off)
14221          # disable the default enabling:
14222
14223 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14224
14225          # Prevent inclusion of the assembler files below:
14226          enable_intel_sse=no ;;
14227       yes|on)
14228
14229 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14230 ;;
14231       *)
14232          as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
14233    esac
14234 fi
14235
14236
14237 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
14238 # where Intel optimizations were explicitly requested (this allows a fallback
14239 # if a future host CPU does not match 'x86*')
14240  if test "$enable_intel_sse" != 'no' &&
14241     case "$host_cpu" in
14242       i?86|x86_64) : ;;
14243       *)    test "$enable_intel_sse" != '' ;;
14244     esac; then
14245   PNG_INTEL_SSE_TRUE=
14246   PNG_INTEL_SSE_FALSE='#'
14247 else
14248   PNG_INTEL_SSE_TRUE='#'
14249   PNG_INTEL_SSE_FALSE=
14250 fi
14251
14252
14253 # PowerPC
14254 # =======
14255 #
14256 # PowerPC VSX (SIMD) support.
14257
14258 # Check whether --enable-powerpc-vsx was given.
14259 if test ${enable_powerpc_vsx+y}
14260 then :
14261   enableval=$enable_powerpc_vsx; case "$enableval" in
14262       no|off)
14263          # disable the default enabling on __ppc64__ systems:
14264
14265 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14266
14267          # Prevent inclusion of the platform-specific files below:
14268          enable_powerpc_vsx=no ;;
14269       check)
14270
14271 printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
14272
14273          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14274             for the list of supported OSes." >&5
14275 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14276             for the list of supported OSes." >&2;};;
14277       api)
14278
14279 printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
14280 ;;
14281       yes|on)
14282
14283 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14284
14285          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14286             you want the optimizations unconditionally pass '-maltivec -mvsx'
14287             or '-mcpu=power8' to the compiler." >&5
14288 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14289             you want the optimizations unconditionally pass '-maltivec -mvsx'
14290             or '-mcpu=power8' to the compiler." >&2;};;
14291       *)
14292          as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
14293    esac
14294 fi
14295
14296
14297 # Add PowerPC-specific files to all builds where $host_cpu is powerpc('powerpc*')
14298 # or where PowerPC optimizations were explicitly requested (this allows a fallback
14299 # if a future host CPU does not match 'powerpc*')
14300
14301  if test "$enable_powerpc_vsx" != 'no' &&
14302     case "$host_cpu" in
14303       powerpc*|ppc64*) : ;;
14304     esac; then
14305   PNG_POWERPC_VSX_TRUE=
14306   PNG_POWERPC_VSX_FALSE='#'
14307 else
14308   PNG_POWERPC_VSX_TRUE='#'
14309   PNG_POWERPC_VSX_FALSE=
14310 fi
14311
14312
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
14314 printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
14315
14316 # Config files, substituting as above
14317 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
14318
14319 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
14320
14321
14322 cat >confcache <<\_ACEOF
14323 # This file is a shell script that caches the results of configure
14324 # tests run on this system so they can be shared between configure
14325 # scripts and configure runs, see configure's option --config-cache.
14326 # It is not useful on other systems.  If it contains results you don't
14327 # want to keep, you may remove or edit it.
14328 #
14329 # config.status only pays attention to the cache file if you give it
14330 # the --recheck option to rerun configure.
14331 #
14332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14334 # following values.
14335
14336 _ACEOF
14337
14338 # The following way of writing the cache mishandles newlines in values,
14339 # but we know of no workaround that is simple, portable, and efficient.
14340 # So, we kill variables containing newlines.
14341 # Ultrix sh set writes to stderr and can't be redirected directly,
14342 # and sets the high bit in the cache file unless we assign to the vars.
14343 (
14344   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14345     eval ac_val=\$$ac_var
14346     case $ac_val in #(
14347     *${as_nl}*)
14348       case $ac_var in #(
14349       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14350 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14351       esac
14352       case $ac_var in #(
14353       _ | IFS | as_nl) ;; #(
14354       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14355       *) { eval $ac_var=; unset $ac_var;} ;;
14356       esac ;;
14357     esac
14358   done
14359
14360   (set) 2>&1 |
14361     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14362     *${as_nl}ac_space=\ *)
14363       # `set' does not quote correctly, so add quotes: double-quote
14364       # substitution turns \\\\ into \\, and sed turns \\ into \.
14365       sed -n \
14366         "s/'/'\\\\''/g;
14367           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14368       ;; #(
14369     *)
14370       # `set' quotes correctly as required by POSIX, so do not add quotes.
14371       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14372       ;;
14373     esac |
14374     sort
14375 ) |
14376   sed '
14377      /^ac_cv_env_/b end
14378      t clear
14379      :clear
14380      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14381      t end
14382      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14383      :end' >>confcache
14384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14385   if test -w "$cache_file"; then
14386     if test "x$cache_file" != "x/dev/null"; then
14387       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14388 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14389       if test ! -f "$cache_file" || test -h "$cache_file"; then
14390         cat confcache >"$cache_file"
14391       else
14392         case $cache_file in #(
14393         */* | ?:*)
14394           mv -f confcache "$cache_file"$$ &&
14395           mv -f "$cache_file"$$ "$cache_file" ;; #(
14396         *)
14397           mv -f confcache "$cache_file" ;;
14398         esac
14399       fi
14400     fi
14401   else
14402     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14403 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14404   fi
14405 fi
14406 rm -f confcache
14407
14408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14409 # Let make expand exec_prefix.
14410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14411
14412 DEFS=-DHAVE_CONFIG_H
14413
14414 ac_libobjs=
14415 ac_ltlibobjs=
14416 U=
14417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14418   # 1. Remove the extension, and $U if already installed.
14419   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14420   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14421   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14422   #    will be set to the directory where LIBOBJS objects are built.
14423   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14424   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14425 done
14426 LIBOBJS=$ac_libobjs
14427
14428 LTLIBOBJS=$ac_ltlibobjs
14429
14430
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14432 printf %s "checking that generated files are newer than configure... " >&6; }
14433    if test -n "$am_sleep_pid"; then
14434      # Hide warnings about reused PIDs.
14435      wait $am_sleep_pid 2>/dev/null
14436    fi
14437    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14438 printf "%s\n" "done" >&6; }
14439  if test -n "$EXEEXT"; then
14440   am__EXEEXT_TRUE=
14441   am__EXEEXT_FALSE='#'
14442 else
14443   am__EXEEXT_TRUE='#'
14444   am__EXEEXT_FALSE=
14445 fi
14446
14447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14448   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14450 fi
14451 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14452   as_fn_error $? "conditional \"AMDEP\" was never defined.
14453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14454 fi
14455 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14456   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14458 fi
14459 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14460   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14462 fi
14463 if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
14464   as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
14465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14466 fi
14467 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
14468   as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
14469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14470 fi
14471 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14472   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14474 fi
14475 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
14476   as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
14477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14478 fi
14479 if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
14480   as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14482 fi
14483 if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
14484   as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14486 fi
14487 if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
14488   as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
14489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14490 fi
14491 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
14492   as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
14493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14494 fi
14495 if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
14496   as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
14497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14498 fi
14499 if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
14500   as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
14501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14502 fi
14503 if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
14504   as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
14505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14506 fi
14507
14508 : "${CONFIG_STATUS=./config.status}"
14509 ac_write_fail=0
14510 ac_clean_files_save=$ac_clean_files
14511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14513 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14514 as_write_fail=0
14515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14516 #! $SHELL
14517 # Generated by $as_me.
14518 # Run this file to recreate the current configuration.
14519 # Compiler output produced by configure, useful for debugging
14520 # configure, is in config.log if it exists.
14521
14522 debug=false
14523 ac_cs_recheck=false
14524 ac_cs_silent=false
14525
14526 SHELL=\${CONFIG_SHELL-$SHELL}
14527 export SHELL
14528 _ASEOF
14529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14530 ## -------------------- ##
14531 ## M4sh Initialization. ##
14532 ## -------------------- ##
14533
14534 # Be more Bourne compatible
14535 DUALCASE=1; export DUALCASE # for MKS sh
14536 as_nop=:
14537 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14538 then :
14539   emulate sh
14540   NULLCMD=:
14541   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14542   # is contrary to our usage.  Disable this feature.
14543   alias -g '${1+"$@"}'='"$@"'
14544   setopt NO_GLOB_SUBST
14545 else $as_nop
14546   case `(set -o) 2>/dev/null` in #(
14547   *posix*) :
14548     set -o posix ;; #(
14549   *) :
14550      ;;
14551 esac
14552 fi
14553
14554
14555
14556 # Reset variables that may have inherited troublesome values from
14557 # the environment.
14558
14559 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14560 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14561 # side effect of setting IFS to empty, thus disabling word splitting.)
14562 # Quoting is to prevent editors from complaining about space-tab.
14563 as_nl='
14564 '
14565 export as_nl
14566 IFS=" ""        $as_nl"
14567
14568 PS1='$ '
14569 PS2='> '
14570 PS4='+ '
14571
14572 # Ensure predictable behavior from utilities with locale-dependent output.
14573 LC_ALL=C
14574 export LC_ALL
14575 LANGUAGE=C
14576 export LANGUAGE
14577
14578 # We cannot yet rely on "unset" to work, but we need these variables
14579 # to be unset--not just set to an empty or harmless value--now, to
14580 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
14581 # also avoids known problems related to "unset" and subshell syntax
14582 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14583 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14584 do eval test \${$as_var+y} \
14585   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14586 done
14587
14588 # Ensure that fds 0, 1, and 2 are open.
14589 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14590 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14591 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
14592
14593 # The user is always right.
14594 if ${PATH_SEPARATOR+false} :; then
14595   PATH_SEPARATOR=:
14596   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14597     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14598       PATH_SEPARATOR=';'
14599   }
14600 fi
14601
14602
14603 # Find who we are.  Look in the path if we contain no directory separator.
14604 as_myself=
14605 case $0 in #((
14606   *[\\/]* ) as_myself=$0 ;;
14607   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14609 do
14610   IFS=$as_save_IFS
14611   case $as_dir in #(((
14612     '') as_dir=./ ;;
14613     */) ;;
14614     *) as_dir=$as_dir/ ;;
14615   esac
14616     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14617   done
14618 IFS=$as_save_IFS
14619
14620      ;;
14621 esac
14622 # We did not find ourselves, most probably we were run as `sh COMMAND'
14623 # in which case we are not to be found in the path.
14624 if test "x$as_myself" = x; then
14625   as_myself=$0
14626 fi
14627 if test ! -f "$as_myself"; then
14628   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14629   exit 1
14630 fi
14631
14632
14633
14634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14635 # ----------------------------------------
14636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14638 # script with STATUS, using 1 if that was 0.
14639 as_fn_error ()
14640 {
14641   as_status=$1; test $as_status -eq 0 && as_status=1
14642   if test "$4"; then
14643     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14644     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14645   fi
14646   printf "%s\n" "$as_me: error: $2" >&2
14647   as_fn_exit $as_status
14648 } # as_fn_error
14649
14650
14651
14652 # as_fn_set_status STATUS
14653 # -----------------------
14654 # Set $? to STATUS, without forking.
14655 as_fn_set_status ()
14656 {
14657   return $1
14658 } # as_fn_set_status
14659
14660 # as_fn_exit STATUS
14661 # -----------------
14662 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14663 as_fn_exit ()
14664 {
14665   set +e
14666   as_fn_set_status $1
14667   exit $1
14668 } # as_fn_exit
14669
14670 # as_fn_unset VAR
14671 # ---------------
14672 # Portably unset VAR.
14673 as_fn_unset ()
14674 {
14675   { eval $1=; unset $1;}
14676 }
14677 as_unset=as_fn_unset
14678
14679 # as_fn_append VAR VALUE
14680 # ----------------------
14681 # Append the text in VALUE to the end of the definition contained in VAR. Take
14682 # advantage of any shell optimizations that allow amortized linear growth over
14683 # repeated appends, instead of the typical quadratic growth present in naive
14684 # implementations.
14685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14686 then :
14687   eval 'as_fn_append ()
14688   {
14689     eval $1+=\$2
14690   }'
14691 else $as_nop
14692   as_fn_append ()
14693   {
14694     eval $1=\$$1\$2
14695   }
14696 fi # as_fn_append
14697
14698 # as_fn_arith ARG...
14699 # ------------------
14700 # Perform arithmetic evaluation on the ARGs, and store the result in the
14701 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14702 # must be portable across $(()) and expr.
14703 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14704 then :
14705   eval 'as_fn_arith ()
14706   {
14707     as_val=$(( $* ))
14708   }'
14709 else $as_nop
14710   as_fn_arith ()
14711   {
14712     as_val=`expr "$@" || test $? -eq 1`
14713   }
14714 fi # as_fn_arith
14715
14716
14717 if expr a : '\(a\)' >/dev/null 2>&1 &&
14718    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14719   as_expr=expr
14720 else
14721   as_expr=false
14722 fi
14723
14724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14725   as_basename=basename
14726 else
14727   as_basename=false
14728 fi
14729
14730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14731   as_dirname=dirname
14732 else
14733   as_dirname=false
14734 fi
14735
14736 as_me=`$as_basename -- "$0" ||
14737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14738          X"$0" : 'X\(//\)$' \| \
14739          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14740 printf "%s\n" X/"$0" |
14741     sed '/^.*\/\([^/][^/]*\)\/*$/{
14742             s//\1/
14743             q
14744           }
14745           /^X\/\(\/\/\)$/{
14746             s//\1/
14747             q
14748           }
14749           /^X\/\(\/\).*/{
14750             s//\1/
14751             q
14752           }
14753           s/.*/./; q'`
14754
14755 # Avoid depending upon Character Ranges.
14756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14759 as_cr_digits='0123456789'
14760 as_cr_alnum=$as_cr_Letters$as_cr_digits
14761
14762
14763 # Determine whether it's possible to make 'echo' print without a newline.
14764 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14765 # for compatibility with existing Makefiles.
14766 ECHO_C= ECHO_N= ECHO_T=
14767 case `echo -n x` in #(((((
14768 -n*)
14769   case `echo 'xy\c'` in
14770   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14771   xy)  ECHO_C='\c';;
14772   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14773        ECHO_T=' ';;
14774   esac;;
14775 *)
14776   ECHO_N='-n';;
14777 esac
14778
14779 # For backward compatibility with old third-party macros, we provide
14780 # the shell variables $as_echo and $as_echo_n.  New code should use
14781 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14782 as_echo='printf %s\n'
14783 as_echo_n='printf %s'
14784
14785 rm -f conf$$ conf$$.exe conf$$.file
14786 if test -d conf$$.dir; then
14787   rm -f conf$$.dir/conf$$.file
14788 else
14789   rm -f conf$$.dir
14790   mkdir conf$$.dir 2>/dev/null
14791 fi
14792 if (echo >conf$$.file) 2>/dev/null; then
14793   if ln -s conf$$.file conf$$ 2>/dev/null; then
14794     as_ln_s='ln -s'
14795     # ... but there are two gotchas:
14796     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14797     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14798     # In both cases, we have to default to `cp -pR'.
14799     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14800       as_ln_s='cp -pR'
14801   elif ln conf$$.file conf$$ 2>/dev/null; then
14802     as_ln_s=ln
14803   else
14804     as_ln_s='cp -pR'
14805   fi
14806 else
14807   as_ln_s='cp -pR'
14808 fi
14809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14810 rmdir conf$$.dir 2>/dev/null
14811
14812
14813 # as_fn_mkdir_p
14814 # -------------
14815 # Create "$as_dir" as a directory, including parents if necessary.
14816 as_fn_mkdir_p ()
14817 {
14818
14819   case $as_dir in #(
14820   -*) as_dir=./$as_dir;;
14821   esac
14822   test -d "$as_dir" || eval $as_mkdir_p || {
14823     as_dirs=
14824     while :; do
14825       case $as_dir in #(
14826       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14827       *) as_qdir=$as_dir;;
14828       esac
14829       as_dirs="'$as_qdir' $as_dirs"
14830       as_dir=`$as_dirname -- "$as_dir" ||
14831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14832          X"$as_dir" : 'X\(//\)[^/]' \| \
14833          X"$as_dir" : 'X\(//\)$' \| \
14834          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14835 printf "%s\n" X"$as_dir" |
14836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14837             s//\1/
14838             q
14839           }
14840           /^X\(\/\/\)[^/].*/{
14841             s//\1/
14842             q
14843           }
14844           /^X\(\/\/\)$/{
14845             s//\1/
14846             q
14847           }
14848           /^X\(\/\).*/{
14849             s//\1/
14850             q
14851           }
14852           s/.*/./; q'`
14853       test -d "$as_dir" && break
14854     done
14855     test -z "$as_dirs" || eval "mkdir $as_dirs"
14856   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14857
14858
14859 } # as_fn_mkdir_p
14860 if mkdir -p . 2>/dev/null; then
14861   as_mkdir_p='mkdir -p "$as_dir"'
14862 else
14863   test -d ./-p && rmdir ./-p
14864   as_mkdir_p=false
14865 fi
14866
14867
14868 # as_fn_executable_p FILE
14869 # -----------------------
14870 # Test if FILE is an executable regular file.
14871 as_fn_executable_p ()
14872 {
14873   test -f "$1" && test -x "$1"
14874 } # as_fn_executable_p
14875 as_test_x='test -x'
14876 as_executable_p=as_fn_executable_p
14877
14878 # Sed expression to map a string onto a valid CPP name.
14879 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14880
14881 # Sed expression to map a string onto a valid variable name.
14882 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14883
14884
14885 exec 6>&1
14886 ## ----------------------------------- ##
14887 ## Main body of $CONFIG_STATUS script. ##
14888 ## ----------------------------------- ##
14889 _ASEOF
14890 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14891
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893 # Save the log message, to keep $0 and so on meaningful, and to
14894 # report actual input values of CONFIG_FILES etc. instead of their
14895 # values after options handling.
14896 ac_log="
14897 This file was extended by libpng $as_me 1.6.39, which was
14898 generated by GNU Autoconf 2.71.  Invocation command line was
14899
14900   CONFIG_FILES    = $CONFIG_FILES
14901   CONFIG_HEADERS  = $CONFIG_HEADERS
14902   CONFIG_LINKS    = $CONFIG_LINKS
14903   CONFIG_COMMANDS = $CONFIG_COMMANDS
14904   $ $0 $@
14905
14906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14907 "
14908
14909 _ACEOF
14910
14911 case $ac_config_files in *"
14912 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14913 esac
14914
14915 case $ac_config_headers in *"
14916 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14917 esac
14918
14919
14920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14921 # Files that config.status was made for.
14922 config_files="$ac_config_files"
14923 config_headers="$ac_config_headers"
14924 config_commands="$ac_config_commands"
14925
14926 _ACEOF
14927
14928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14929 ac_cs_usage="\
14930 \`$as_me' instantiates files and other configuration actions
14931 from templates according to the current configuration.  Unless the files
14932 and actions are specified as TAGs, all are instantiated by default.
14933
14934 Usage: $0 [OPTION]... [TAG]...
14935
14936   -h, --help       print this help, then exit
14937   -V, --version    print version number and configuration settings, then exit
14938       --config     print configuration, then exit
14939   -q, --quiet, --silent
14940                    do not print progress messages
14941   -d, --debug      don't remove temporary files
14942       --recheck    update $as_me by reconfiguring in the same conditions
14943       --file=FILE[:TEMPLATE]
14944                    instantiate the configuration file FILE
14945       --header=FILE[:TEMPLATE]
14946                    instantiate the configuration header FILE
14947
14948 Configuration files:
14949 $config_files
14950
14951 Configuration headers:
14952 $config_headers
14953
14954 Configuration commands:
14955 $config_commands
14956
14957 Report bugs to <png-mng-implement@lists.sourceforge.net>."
14958
14959 _ACEOF
14960 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14961 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14963 ac_cs_config='$ac_cs_config_escaped'
14964 ac_cs_version="\\
14965 libpng config.status 1.6.39
14966 configured by $0, generated by GNU Autoconf 2.71,
14967   with options \\"\$ac_cs_config\\"
14968
14969 Copyright (C) 2021 Free Software Foundation, Inc.
14970 This config.status script is free software; the Free Software Foundation
14971 gives unlimited permission to copy, distribute and modify it."
14972
14973 ac_pwd='$ac_pwd'
14974 srcdir='$srcdir'
14975 INSTALL='$INSTALL'
14976 MKDIR_P='$MKDIR_P'
14977 AWK='$AWK'
14978 test -n "\$AWK" || AWK=awk
14979 _ACEOF
14980
14981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14982 # The default lists apply if the user does not specify any file.
14983 ac_need_defaults=:
14984 while test $# != 0
14985 do
14986   case $1 in
14987   --*=?*)
14988     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14989     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14990     ac_shift=:
14991     ;;
14992   --*=)
14993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14994     ac_optarg=
14995     ac_shift=:
14996     ;;
14997   *)
14998     ac_option=$1
14999     ac_optarg=$2
15000     ac_shift=shift
15001     ;;
15002   esac
15003
15004   case $ac_option in
15005   # Handling of the options.
15006   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15007     ac_cs_recheck=: ;;
15008   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15009     printf "%s\n" "$ac_cs_version"; exit ;;
15010   --config | --confi | --conf | --con | --co | --c )
15011     printf "%s\n" "$ac_cs_config"; exit ;;
15012   --debug | --debu | --deb | --de | --d | -d )
15013     debug=: ;;
15014   --file | --fil | --fi | --f )
15015     $ac_shift
15016     case $ac_optarg in
15017     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15018     '') as_fn_error $? "missing file argument" ;;
15019     esac
15020     as_fn_append CONFIG_FILES " '$ac_optarg'"
15021     ac_need_defaults=false;;
15022   --header | --heade | --head | --hea )
15023     $ac_shift
15024     case $ac_optarg in
15025     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15026     esac
15027     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15028     ac_need_defaults=false;;
15029   --he | --h)
15030     # Conflict between --help and --header
15031     as_fn_error $? "ambiguous option: \`$1'
15032 Try \`$0 --help' for more information.";;
15033   --help | --hel | -h )
15034     printf "%s\n" "$ac_cs_usage"; exit ;;
15035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15036   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15037     ac_cs_silent=: ;;
15038
15039   # This is an error.
15040   -*) as_fn_error $? "unrecognized option: \`$1'
15041 Try \`$0 --help' for more information." ;;
15042
15043   *) as_fn_append ac_config_targets " $1"
15044      ac_need_defaults=false ;;
15045
15046   esac
15047   shift
15048 done
15049
15050 ac_configure_extra_args=
15051
15052 if $ac_cs_silent; then
15053   exec 6>/dev/null
15054   ac_configure_extra_args="$ac_configure_extra_args --silent"
15055 fi
15056
15057 _ACEOF
15058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059 if \$ac_cs_recheck; then
15060   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15061   shift
15062   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15063   CONFIG_SHELL='$SHELL'
15064   export CONFIG_SHELL
15065   exec "\$@"
15066 fi
15067
15068 _ACEOF
15069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070 exec 5>>config.log
15071 {
15072   echo
15073   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15074 ## Running $as_me. ##
15075 _ASBOX
15076   printf "%s\n" "$ac_log"
15077 } >&5
15078
15079 _ACEOF
15080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15081 #
15082 # INIT-COMMANDS
15083 #
15084 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15085
15086
15087 # The HP-UX ksh and POSIX shell print the target directory to stdout
15088 # if CDPATH is set.
15089 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15090
15091 sed_quote_subst='$sed_quote_subst'
15092 double_quote_subst='$double_quote_subst'
15093 delay_variable_subst='$delay_variable_subst'
15094 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15095 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15096 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15097 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15098 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15099 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15100 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15101 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15102 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15103 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15104 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15105 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15106 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15107 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15108 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15109 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15110 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15111 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15112 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15113 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15114 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15115 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15116 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15117 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15118 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15119 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15120 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15121 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15122 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15123 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15124 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15125 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15126 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15127 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15128 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15129 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15130 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15131 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15132 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15133 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15134 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15135 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15136 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15137 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15138 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15139 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15140 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15141 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15142 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15143 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15144 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15145 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15146 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15147 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15148 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15149 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15150 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15151 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15152 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15154 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15155 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"`'
15156 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15157 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15158 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15159 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15160 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15161 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15162 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15163 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15164 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15165 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15166 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15167 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15168 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15169 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15170 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15171 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15172 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15173 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15174 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15175 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15176 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15177 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15178 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15179 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15180 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15181 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15182 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15183 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15184 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15185 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15186 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15187 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15188 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15189 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15190 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15191 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15192 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15193 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15194 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15195 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15196 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15197 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15198 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15199 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15200 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15201 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15202 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15203 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15204 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15205 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15206 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15207 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15208 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15209 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15210 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15211 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15212 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15213 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15214 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15215 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15216 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15217 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15218 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15219 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15220 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15221 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15222 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15223 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15224 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15225 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15226 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15227 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15228 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15229 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15230 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15231 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15232
15233 LTCC='$LTCC'
15234 LTCFLAGS='$LTCFLAGS'
15235 compiler='$compiler_DEFAULT'
15236
15237 # A function that is used when there is no print builtin or printf.
15238 func_fallback_echo ()
15239 {
15240   eval 'cat <<_LTECHO_EOF
15241 \$1
15242 _LTECHO_EOF'
15243 }
15244
15245 # Quote evaled strings.
15246 for var in SED \
15247 GREP \
15248 EGREP \
15249 FGREP \
15250 SHELL \
15251 ECHO \
15252 LD \
15253 AS \
15254 DLLTOOL \
15255 OBJDUMP \
15256 PATH_SEPARATOR \
15257 NM \
15258 LN_S \
15259 lt_SP2NL \
15260 lt_NL2SP \
15261 reload_flag \
15262 FILECMD \
15263 deplibs_check_method \
15264 file_magic_cmd \
15265 file_magic_glob \
15266 want_nocaseglob \
15267 sharedlib_from_linklib_cmd \
15268 AR \
15269 archiver_list_spec \
15270 STRIP \
15271 RANLIB \
15272 CC \
15273 CFLAGS \
15274 compiler \
15275 lt_cv_sys_global_symbol_pipe \
15276 lt_cv_sys_global_symbol_to_cdecl \
15277 lt_cv_sys_global_symbol_to_import \
15278 lt_cv_sys_global_symbol_to_c_name_address \
15279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15280 lt_cv_nm_interface \
15281 nm_file_list_spec \
15282 lt_cv_truncate_bin \
15283 lt_prog_compiler_no_builtin_flag \
15284 lt_prog_compiler_pic \
15285 lt_prog_compiler_wl \
15286 lt_prog_compiler_static \
15287 lt_cv_prog_compiler_c_o \
15288 need_locks \
15289 MANIFEST_TOOL \
15290 DSYMUTIL \
15291 NMEDIT \
15292 LIPO \
15293 OTOOL \
15294 OTOOL64 \
15295 shrext_cmds \
15296 export_dynamic_flag_spec \
15297 whole_archive_flag_spec \
15298 compiler_needs_object \
15299 with_gnu_ld \
15300 allow_undefined_flag \
15301 no_undefined_flag \
15302 hardcode_libdir_flag_spec \
15303 hardcode_libdir_separator \
15304 exclude_expsyms \
15305 include_expsyms \
15306 file_list_spec \
15307 variables_saved_for_relink \
15308 libname_spec \
15309 library_names_spec \
15310 soname_spec \
15311 install_override_mode \
15312 finish_eval \
15313 old_striplib \
15314 striplib; do
15315     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15316     *[\\\\\\\`\\"\\\$]*)
15317       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15318       ;;
15319     *)
15320       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15321       ;;
15322     esac
15323 done
15324
15325 # Double-quote double-evaled strings.
15326 for var in reload_cmds \
15327 old_postinstall_cmds \
15328 old_postuninstall_cmds \
15329 old_archive_cmds \
15330 extract_expsyms_cmds \
15331 old_archive_from_new_cmds \
15332 old_archive_from_expsyms_cmds \
15333 archive_cmds \
15334 archive_expsym_cmds \
15335 module_cmds \
15336 module_expsym_cmds \
15337 export_symbols_cmds \
15338 prelink_cmds \
15339 postlink_cmds \
15340 postinstall_cmds \
15341 postuninstall_cmds \
15342 finish_cmds \
15343 sys_lib_search_path_spec \
15344 configure_time_dlsearch_path \
15345 configure_time_lt_sys_library_path; do
15346     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15347     *[\\\\\\\`\\"\\\$]*)
15348       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15349       ;;
15350     *)
15351       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15352       ;;
15353     esac
15354 done
15355
15356 ac_aux_dir='$ac_aux_dir'
15357
15358 # See if we are running on zsh, and set the options that allow our
15359 # commands through without removal of \ escapes INIT.
15360 if test -n "\${ZSH_VERSION+set}"; then
15361    setopt NO_GLOB_SUBST
15362 fi
15363
15364
15365     PACKAGE='$PACKAGE'
15366     VERSION='$VERSION'
15367     RM='$RM'
15368     ofile='$ofile'
15369
15370
15371
15372
15373 _ACEOF
15374
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15376
15377 # Handling of arguments.
15378 for ac_config_target in $ac_config_targets
15379 do
15380   case $ac_config_target in
15381     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15382     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15383     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15384     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15385     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
15386     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
15387
15388   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15389   esac
15390 done
15391
15392
15393 # If the user did not use the arguments to specify the items to instantiate,
15394 # then the envvar interface is used.  Set only those that are not.
15395 # We use the long form for the default assignment because of an extremely
15396 # bizarre bug on SunOS 4.1.3.
15397 if $ac_need_defaults; then
15398   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15399   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15400   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15401 fi
15402
15403 # Have a temporary directory for convenience.  Make it in the build tree
15404 # simply because there is no reason against having it here, and in addition,
15405 # creating and moving files from /tmp can sometimes cause problems.
15406 # Hook for its removal unless debugging.
15407 # Note that there is a small window in which the directory will not be cleaned:
15408 # after its creation but before its name has been assigned to `$tmp'.
15409 $debug ||
15410 {
15411   tmp= ac_tmp=
15412   trap 'exit_status=$?
15413   : "${ac_tmp:=$tmp}"
15414   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15415 ' 0
15416   trap 'as_fn_exit 1' 1 2 13 15
15417 }
15418 # Create a (secure) tmp directory for tmp files.
15419
15420 {
15421   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15422   test -d "$tmp"
15423 }  ||
15424 {
15425   tmp=./conf$$-$RANDOM
15426   (umask 077 && mkdir "$tmp")
15427 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15428 ac_tmp=$tmp
15429
15430 # Set up the scripts for CONFIG_FILES section.
15431 # No need to generate them if there are no CONFIG_FILES.
15432 # This happens for instance with `./config.status config.h'.
15433 if test -n "$CONFIG_FILES"; then
15434
15435
15436 ac_cr=`echo X | tr X '\015'`
15437 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15438 # But we know of no other shell where ac_cr would be empty at this
15439 # point, so we can use a bashism as a fallback.
15440 if test "x$ac_cr" = x; then
15441   eval ac_cr=\$\'\\r\'
15442 fi
15443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15445   ac_cs_awk_cr='\\r'
15446 else
15447   ac_cs_awk_cr=$ac_cr
15448 fi
15449
15450 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15451 _ACEOF
15452
15453
15454 {
15455   echo "cat >conf$$subs.awk <<_ACEOF" &&
15456   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15457   echo "_ACEOF"
15458 } >conf$$subs.sh ||
15459   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15461 ac_delim='%!_!# '
15462 for ac_last_try in false false false false false :; do
15463   . ./conf$$subs.sh ||
15464     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15465
15466   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15467   if test $ac_delim_n = $ac_delim_num; then
15468     break
15469   elif $ac_last_try; then
15470     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15471   else
15472     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15473   fi
15474 done
15475 rm -f conf$$subs.sh
15476
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15479 _ACEOF
15480 sed -n '
15481 h
15482 s/^/S["/; s/!.*/"]=/
15483 p
15484 g
15485 s/^[^!]*!//
15486 :repl
15487 t repl
15488 s/'"$ac_delim"'$//
15489 t delim
15490 :nl
15491 h
15492 s/\(.\{148\}\)..*/\1/
15493 t more1
15494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15495 p
15496 n
15497 b repl
15498 :more1
15499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15500 p
15501 g
15502 s/.\{148\}//
15503 t nl
15504 :delim
15505 h
15506 s/\(.\{148\}\)..*/\1/
15507 t more2
15508 s/["\\]/\\&/g; s/^/"/; s/$/"/
15509 p
15510 b
15511 :more2
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15513 p
15514 g
15515 s/.\{148\}//
15516 t delim
15517 ' <conf$$subs.awk | sed '
15518 /^[^""]/{
15519   N
15520   s/\n//
15521 }
15522 ' >>$CONFIG_STATUS || ac_write_fail=1
15523 rm -f conf$$subs.awk
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 _ACAWK
15526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15527   for (key in S) S_is_set[key] = 1
15528   FS = "\a"
15529
15530 }
15531 {
15532   line = $ 0
15533   nfields = split(line, field, "@")
15534   substed = 0
15535   len = length(field[1])
15536   for (i = 2; i < nfields; i++) {
15537     key = field[i]
15538     keylen = length(key)
15539     if (S_is_set[key]) {
15540       value = S[key]
15541       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15542       len += length(value) + length(field[++i])
15543       substed = 1
15544     } else
15545       len += 1 + keylen
15546   }
15547
15548   print line
15549 }
15550
15551 _ACAWK
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15555   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15556 else
15557   cat
15558 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15559   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15560 _ACEOF
15561
15562 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15563 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15564 # trailing colons and then remove the whole line if VPATH becomes empty
15565 # (actually we leave an empty line to preserve line numbers).
15566 if test "x$srcdir" = x.; then
15567   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15568 h
15569 s///
15570 s/^/:/
15571 s/[      ]*$/:/
15572 s/:\$(srcdir):/:/g
15573 s/:\${srcdir}:/:/g
15574 s/:@srcdir@:/:/g
15575 s/^:*//
15576 s/:*$//
15577 x
15578 s/\(=[   ]*\).*/\1/
15579 G
15580 s/\n//
15581 s/^[^=]*=[       ]*$//
15582 }'
15583 fi
15584
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 fi # test -n "$CONFIG_FILES"
15587
15588 # Set up the scripts for CONFIG_HEADERS section.
15589 # No need to generate them if there are no CONFIG_HEADERS.
15590 # This happens for instance with `./config.status Makefile'.
15591 if test -n "$CONFIG_HEADERS"; then
15592 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15593 BEGIN {
15594 _ACEOF
15595
15596 # Transform confdefs.h into an awk script `defines.awk', embedded as
15597 # here-document in config.status, that substitutes the proper values into
15598 # config.h.in to produce config.h.
15599
15600 # Create a delimiter string that does not exist in confdefs.h, to ease
15601 # handling of long lines.
15602 ac_delim='%!_!# '
15603 for ac_last_try in false false :; do
15604   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15605   if test -z "$ac_tt"; then
15606     break
15607   elif $ac_last_try; then
15608     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15609   else
15610     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15611   fi
15612 done
15613
15614 # For the awk script, D is an array of macro values keyed by name,
15615 # likewise P contains macro parameters if any.  Preserve backslash
15616 # newline sequences.
15617
15618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15619 sed -n '
15620 s/.\{148\}/&'"$ac_delim"'/g
15621 t rset
15622 :rset
15623 s/^[     ]*#[    ]*define[       ][      ]*/ /
15624 t def
15625 d
15626 :def
15627 s/\\$//
15628 t bsnl
15629 s/["\\]/\\&/g
15630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15631 D["\1"]=" \3"/p
15632 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15633 d
15634 :bsnl
15635 s/["\\]/\\&/g
15636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15637 D["\1"]=" \3\\\\\\n"\\/p
15638 t cont
15639 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15640 t cont
15641 d
15642 :cont
15643 n
15644 s/.\{148\}/&'"$ac_delim"'/g
15645 t clear
15646 :clear
15647 s/\\$//
15648 t bsnlc
15649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15650 d
15651 :bsnlc
15652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15653 b cont
15654 ' <confdefs.h | sed '
15655 s/'"$ac_delim"'/"\\\
15656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15657
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659   for (key in D) D_is_set[key] = 1
15660   FS = "\a"
15661 }
15662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15663   line = \$ 0
15664   split(line, arg, " ")
15665   if (arg[1] == "#") {
15666     defundef = arg[2]
15667     mac1 = arg[3]
15668   } else {
15669     defundef = substr(arg[1], 2)
15670     mac1 = arg[2]
15671   }
15672   split(mac1, mac2, "(") #)
15673   macro = mac2[1]
15674   prefix = substr(line, 1, index(line, defundef) - 1)
15675   if (D_is_set[macro]) {
15676     # Preserve the white space surrounding the "#".
15677     print prefix "define", macro P[macro] D[macro]
15678     next
15679   } else {
15680     # Replace #undef with comments.  This is necessary, for example,
15681     # in the case of _POSIX_SOURCE, which is predefined and required
15682     # on some systems where configure will not decide to define it.
15683     if (defundef == "undef") {
15684       print "/*", prefix defundef, macro, "*/"
15685       next
15686     }
15687   }
15688 }
15689 { print }
15690 _ACAWK
15691 _ACEOF
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15694 fi # test -n "$CONFIG_HEADERS"
15695
15696
15697 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15698 shift
15699 for ac_tag
15700 do
15701   case $ac_tag in
15702   :[FHLC]) ac_mode=$ac_tag; continue;;
15703   esac
15704   case $ac_mode$ac_tag in
15705   :[FHL]*:*);;
15706   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15707   :[FH]-) ac_tag=-:-;;
15708   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15709   esac
15710   ac_save_IFS=$IFS
15711   IFS=:
15712   set x $ac_tag
15713   IFS=$ac_save_IFS
15714   shift
15715   ac_file=$1
15716   shift
15717
15718   case $ac_mode in
15719   :L) ac_source=$1;;
15720   :[FH])
15721     ac_file_inputs=
15722     for ac_f
15723     do
15724       case $ac_f in
15725       -) ac_f="$ac_tmp/stdin";;
15726       *) # Look for the file first in the build tree, then in the source tree
15727          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15728          # because $ac_f cannot contain `:'.
15729          test -f "$ac_f" ||
15730            case $ac_f in
15731            [\\/$]*) false;;
15732            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15733            esac ||
15734            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15735       esac
15736       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15737       as_fn_append ac_file_inputs " '$ac_f'"
15738     done
15739
15740     # Let's still pretend it is `configure' which instantiates (i.e., don't
15741     # use $as_me), people would be surprised to read:
15742     #    /* config.h.  Generated by config.status.  */
15743     configure_input='Generated from '`
15744           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15745         `' by configure.'
15746     if test x"$ac_file" != x-; then
15747       configure_input="$ac_file.  $configure_input"
15748       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15749 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15750     fi
15751     # Neutralize special characters interpreted by sed in replacement strings.
15752     case $configure_input in #(
15753     *\&* | *\|* | *\\* )
15754        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15755        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15756     *) ac_sed_conf_input=$configure_input;;
15757     esac
15758
15759     case $ac_tag in
15760     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15761       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15762     esac
15763     ;;
15764   esac
15765
15766   ac_dir=`$as_dirname -- "$ac_file" ||
15767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15768          X"$ac_file" : 'X\(//\)[^/]' \| \
15769          X"$ac_file" : 'X\(//\)$' \| \
15770          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15771 printf "%s\n" X"$ac_file" |
15772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15773             s//\1/
15774             q
15775           }
15776           /^X\(\/\/\)[^/].*/{
15777             s//\1/
15778             q
15779           }
15780           /^X\(\/\/\)$/{
15781             s//\1/
15782             q
15783           }
15784           /^X\(\/\).*/{
15785             s//\1/
15786             q
15787           }
15788           s/.*/./; q'`
15789   as_dir="$ac_dir"; as_fn_mkdir_p
15790   ac_builddir=.
15791
15792 case "$ac_dir" in
15793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15794 *)
15795   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15796   # A ".." for each directory in $ac_dir_suffix.
15797   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15798   case $ac_top_builddir_sub in
15799   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15800   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15801   esac ;;
15802 esac
15803 ac_abs_top_builddir=$ac_pwd
15804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15805 # for backward compatibility:
15806 ac_top_builddir=$ac_top_build_prefix
15807
15808 case $srcdir in
15809   .)  # We are building in place.
15810     ac_srcdir=.
15811     ac_top_srcdir=$ac_top_builddir_sub
15812     ac_abs_top_srcdir=$ac_pwd ;;
15813   [\\/]* | ?:[\\/]* )  # Absolute name.
15814     ac_srcdir=$srcdir$ac_dir_suffix;
15815     ac_top_srcdir=$srcdir
15816     ac_abs_top_srcdir=$srcdir ;;
15817   *) # Relative name.
15818     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15819     ac_top_srcdir=$ac_top_build_prefix$srcdir
15820     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15821 esac
15822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15823
15824
15825   case $ac_mode in
15826   :F)
15827   #
15828   # CONFIG_FILE
15829   #
15830
15831   case $INSTALL in
15832   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15833   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15834   esac
15835   ac_MKDIR_P=$MKDIR_P
15836   case $MKDIR_P in
15837   [\\/$]* | ?:[\\/]* ) ;;
15838   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15839   esac
15840 _ACEOF
15841
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 # If the template does not know about datarootdir, expand it.
15844 # FIXME: This hack should be removed a few years after 2.60.
15845 ac_datarootdir_hack=; ac_datarootdir_seen=
15846 ac_sed_dataroot='
15847 /datarootdir/ {
15848   p
15849   q
15850 }
15851 /@datadir@/p
15852 /@docdir@/p
15853 /@infodir@/p
15854 /@localedir@/p
15855 /@mandir@/p'
15856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15857 *datarootdir*) ac_datarootdir_seen=yes;;
15858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15860 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15861 _ACEOF
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863   ac_datarootdir_hack='
15864   s&@datadir@&$datadir&g
15865   s&@docdir@&$docdir&g
15866   s&@infodir@&$infodir&g
15867   s&@localedir@&$localedir&g
15868   s&@mandir@&$mandir&g
15869   s&\\\${datarootdir}&$datarootdir&g' ;;
15870 esac
15871 _ACEOF
15872
15873 # Neutralize VPATH when `$srcdir' = `.'.
15874 # Shell code in configure.ac might set extrasub.
15875 # FIXME: do we really want to maintain this feature?
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 ac_sed_extra="$ac_vpsub
15878 $extrasub
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881 :t
15882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15883 s|@configure_input@|$ac_sed_conf_input|;t t
15884 s&@top_builddir@&$ac_top_builddir_sub&;t t
15885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15886 s&@srcdir@&$ac_srcdir&;t t
15887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15888 s&@top_srcdir@&$ac_top_srcdir&;t t
15889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15890 s&@builddir@&$ac_builddir&;t t
15891 s&@abs_builddir@&$ac_abs_builddir&;t t
15892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15893 s&@INSTALL@&$ac_INSTALL&;t t
15894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15895 $ac_datarootdir_hack
15896 "
15897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15898   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15899
15900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15901   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15902   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15903       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15905 which seems to be undefined.  Please make sure it is defined" >&5
15906 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15907 which seems to be undefined.  Please make sure it is defined" >&2;}
15908
15909   rm -f "$ac_tmp/stdin"
15910   case $ac_file in
15911   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15912   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15913   esac \
15914   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15915  ;;
15916   :H)
15917   #
15918   # CONFIG_HEADER
15919   #
15920   if test x"$ac_file" != x-; then
15921     {
15922       printf "%s\n" "/* $configure_input  */" >&1 \
15923       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15924     } >"$ac_tmp/config.h" \
15925       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15926     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15927       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15928 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15929     else
15930       rm -f "$ac_file"
15931       mv "$ac_tmp/config.h" "$ac_file" \
15932         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15933     fi
15934   else
15935     printf "%s\n" "/* $configure_input  */" >&1 \
15936       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15937       || as_fn_error $? "could not create -" "$LINENO" 5
15938   fi
15939 # Compute "$ac_file"'s index in $config_headers.
15940 _am_arg="$ac_file"
15941 _am_stamp_count=1
15942 for _am_header in $config_headers :; do
15943   case $_am_header in
15944     $_am_arg | $_am_arg:* )
15945       break ;;
15946     * )
15947       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15948   esac
15949 done
15950 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15951 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952          X"$_am_arg" : 'X\(//\)[^/]' \| \
15953          X"$_am_arg" : 'X\(//\)$' \| \
15954          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15955 printf "%s\n" X"$_am_arg" |
15956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957             s//\1/
15958             q
15959           }
15960           /^X\(\/\/\)[^/].*/{
15961             s//\1/
15962             q
15963           }
15964           /^X\(\/\/\)$/{
15965             s//\1/
15966             q
15967           }
15968           /^X\(\/\).*/{
15969             s//\1/
15970             q
15971           }
15972           s/.*/./; q'`/stamp-h$_am_stamp_count
15973  ;;
15974
15975   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15976 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15977  ;;
15978   esac
15979
15980
15981   case $ac_file$ac_mode in
15982     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15983   # Older Autoconf quotes --file arguments for eval, but not when files
15984   # are listed without --file.  Let's play safe and only enable the eval
15985   # if we detect the quoting.
15986   # TODO: see whether this extra hack can be removed once we start
15987   # requiring Autoconf 2.70 or later.
15988   case $CONFIG_FILES in #(
15989   *\'*) :
15990     eval set x "$CONFIG_FILES" ;; #(
15991   *) :
15992     set x $CONFIG_FILES ;; #(
15993   *) :
15994      ;;
15995 esac
15996   shift
15997   # Used to flag and report bootstrapping failures.
15998   am_rc=0
15999   for am_mf
16000   do
16001     # Strip MF so we end up with the name of the file.
16002     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16003     # Check whether this is an Automake generated Makefile which includes
16004     # dependency-tracking related rules and includes.
16005     # Grep'ing the whole file directly is not great: AIX grep has a line
16006     # limit of 2048, but all sed's we know have understand at least 4000.
16007     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16008       || continue
16009     am_dirpart=`$as_dirname -- "$am_mf" ||
16010 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16011          X"$am_mf" : 'X\(//\)[^/]' \| \
16012          X"$am_mf" : 'X\(//\)$' \| \
16013          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16014 printf "%s\n" X"$am_mf" |
16015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16016             s//\1/
16017             q
16018           }
16019           /^X\(\/\/\)[^/].*/{
16020             s//\1/
16021             q
16022           }
16023           /^X\(\/\/\)$/{
16024             s//\1/
16025             q
16026           }
16027           /^X\(\/\).*/{
16028             s//\1/
16029             q
16030           }
16031           s/.*/./; q'`
16032     am_filepart=`$as_basename -- "$am_mf" ||
16033 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16034          X"$am_mf" : 'X\(//\)$' \| \
16035          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16036 printf "%s\n" X/"$am_mf" |
16037     sed '/^.*\/\([^/][^/]*\)\/*$/{
16038             s//\1/
16039             q
16040           }
16041           /^X\/\(\/\/\)$/{
16042             s//\1/
16043             q
16044           }
16045           /^X\/\(\/\).*/{
16046             s//\1/
16047             q
16048           }
16049           s/.*/./; q'`
16050     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16051       && sed -e '/# am--include-marker/d' "$am_filepart" \
16052         | $MAKE -f - am--depfiles" >&5
16053    (cd "$am_dirpart" \
16054       && sed -e '/# am--include-marker/d' "$am_filepart" \
16055         | $MAKE -f - am--depfiles) >&5 2>&5
16056    ac_status=$?
16057    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058    (exit $ac_status); } || am_rc=$?
16059   done
16060   if test $am_rc -ne 0; then
16061     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16063 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16064     for automatic dependency tracking.  If GNU make was not used, consider
16065     re-running the configure script with MAKE=\"gmake\" (or whatever is
16066     necessary).  You can also try re-running configure with the
16067     '--disable-dependency-tracking' option to at least be able to build
16068     the package (albeit without support for automatic dependency tracking).
16069 See \`config.log' for more details" "$LINENO" 5; }
16070   fi
16071   { am_dirpart=; unset am_dirpart;}
16072   { am_filepart=; unset am_filepart;}
16073   { am_mf=; unset am_mf;}
16074   { am_rc=; unset am_rc;}
16075   rm -f conftest-deps.mk
16076 }
16077  ;;
16078     "libtool":C)
16079
16080     # See if we are running on zsh, and set the options that allow our
16081     # commands through without removal of \ escapes.
16082     if test -n "${ZSH_VERSION+set}"; then
16083       setopt NO_GLOB_SUBST
16084     fi
16085
16086     cfgfile=${ofile}T
16087     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16088     $RM "$cfgfile"
16089
16090     cat <<_LT_EOF >> "$cfgfile"
16091 #! $SHELL
16092 # Generated automatically by $as_me ($PACKAGE) $VERSION
16093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16095
16096 # Provide generalized library-building support services.
16097 # Written by Gordon Matzigkeit, 1996
16098
16099 # Copyright (C) 2014 Free Software Foundation, Inc.
16100 # This is free software; see the source for copying conditions.  There is NO
16101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16102
16103 # GNU Libtool is free software; you can redistribute it and/or modify
16104 # it under the terms of the GNU General Public License as published by
16105 # the Free Software Foundation; either version 2 of of the License, or
16106 # (at your option) any later version.
16107 #
16108 # As a special exception to the GNU General Public License, if you
16109 # distribute this file as part of a program or library that is built
16110 # using GNU Libtool, you may include this file under the  same
16111 # distribution terms that you use for the rest of that program.
16112 #
16113 # GNU Libtool is distributed in the hope that it will be useful, but
16114 # WITHOUT ANY WARRANTY; without even the implied warranty of
16115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16116 # GNU General Public License for more details.
16117 #
16118 # You should have received a copy of the GNU General Public License
16119 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16120
16121
16122 # The names of the tagged configurations supported by this script.
16123 available_tags=''
16124
16125 # Configured defaults for sys_lib_dlsearch_path munging.
16126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16127
16128 # ### BEGIN LIBTOOL CONFIG
16129
16130 # A sed program that does not truncate output.
16131 SED=$lt_SED
16132
16133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16134 Xsed="\$SED -e 1s/^X//"
16135
16136 # A grep program that handles long lines.
16137 GREP=$lt_GREP
16138
16139 # An ERE matcher.
16140 EGREP=$lt_EGREP
16141
16142 # A literal string matcher.
16143 FGREP=$lt_FGREP
16144
16145 # Shell to use when invoking shell scripts.
16146 SHELL=$lt_SHELL
16147
16148 # An echo program that protects backslashes.
16149 ECHO=$lt_ECHO
16150
16151 # Which release of libtool.m4 was used?
16152 macro_version=$macro_version
16153 macro_revision=$macro_revision
16154
16155 # Assembler program.
16156 AS=$lt_AS
16157
16158 # DLL creation program.
16159 DLLTOOL=$lt_DLLTOOL
16160
16161 # Object dumper program.
16162 OBJDUMP=$lt_OBJDUMP
16163
16164 # Whether or not to build shared libraries.
16165 build_libtool_libs=$enable_shared
16166
16167 # Whether or not to build static libraries.
16168 build_old_libs=$enable_static
16169
16170 # What type of objects to build.
16171 pic_mode=$pic_mode
16172
16173 # Whether or not to optimize for fast installation.
16174 fast_install=$enable_fast_install
16175
16176 # Shared archive member basename,for filename based shared library versioning on AIX.
16177 shared_archive_member_spec=$shared_archive_member_spec
16178
16179 # The PATH separator for the build system.
16180 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16181
16182 # The host system.
16183 host_alias=$host_alias
16184 host=$host
16185 host_os=$host_os
16186
16187 # The build system.
16188 build_alias=$build_alias
16189 build=$build
16190 build_os=$build_os
16191
16192 # A BSD- or MS-compatible name lister.
16193 NM=$lt_NM
16194
16195 # Whether we need soft or hard links.
16196 LN_S=$lt_LN_S
16197
16198 # What is the maximum length of a command?
16199 max_cmd_len=$max_cmd_len
16200
16201 # Object file suffix (normally "o").
16202 objext=$ac_objext
16203
16204 # Executable file suffix (normally "").
16205 exeext=$exeext
16206
16207 # whether the shell understands "unset".
16208 lt_unset=$lt_unset
16209
16210 # turn spaces into newlines.
16211 SP2NL=$lt_lt_SP2NL
16212
16213 # turn newlines into spaces.
16214 NL2SP=$lt_lt_NL2SP
16215
16216 # convert \$build file names to \$host format.
16217 to_host_file_cmd=$lt_cv_to_host_file_cmd
16218
16219 # convert \$build files to toolchain format.
16220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16221
16222 # A file(cmd) program that detects file types.
16223 FILECMD=$lt_FILECMD
16224
16225 # Method to check whether dependent libraries are shared objects.
16226 deplibs_check_method=$lt_deplibs_check_method
16227
16228 # Command to use when deplibs_check_method = "file_magic".
16229 file_magic_cmd=$lt_file_magic_cmd
16230
16231 # How to find potential files when deplibs_check_method = "file_magic".
16232 file_magic_glob=$lt_file_magic_glob
16233
16234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16235 want_nocaseglob=$lt_want_nocaseglob
16236
16237 # Command to associate shared and link libraries.
16238 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16239
16240 # The archiver.
16241 AR=$lt_AR
16242
16243 # Flags to create an archive (by configure).
16244 lt_ar_flags=$lt_ar_flags
16245
16246 # Flags to create an archive.
16247 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16248
16249 # How to feed a file listing to the archiver.
16250 archiver_list_spec=$lt_archiver_list_spec
16251
16252 # A symbol stripping program.
16253 STRIP=$lt_STRIP
16254
16255 # Commands used to install an old-style archive.
16256 RANLIB=$lt_RANLIB
16257 old_postinstall_cmds=$lt_old_postinstall_cmds
16258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16259
16260 # Whether to use a lock for old archive extraction.
16261 lock_old_archive_extraction=$lock_old_archive_extraction
16262
16263 # A C compiler.
16264 LTCC=$lt_CC
16265
16266 # LTCC compiler flags.
16267 LTCFLAGS=$lt_CFLAGS
16268
16269 # Take the output of nm and produce a listing of raw symbols and C names.
16270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16271
16272 # Transform the output of nm in a proper C declaration.
16273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16274
16275 # Transform the output of nm into a list of symbols to manually relocate.
16276 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16277
16278 # Transform the output of nm in a C name address pair.
16279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16280
16281 # Transform the output of nm in a C name address pair when lib prefix is needed.
16282 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16283
16284 # The name lister interface.
16285 nm_interface=$lt_lt_cv_nm_interface
16286
16287 # Specify filename containing input files for \$NM.
16288 nm_file_list_spec=$lt_nm_file_list_spec
16289
16290 # The root where to search for dependent libraries,and where our libraries should be installed.
16291 lt_sysroot=$lt_sysroot
16292
16293 # Command to truncate a binary pipe.
16294 lt_truncate_bin=$lt_lt_cv_truncate_bin
16295
16296 # The name of the directory that contains temporary libtool files.
16297 objdir=$objdir
16298
16299 # Used to examine libraries when file_magic_cmd begins with "file".
16300 MAGIC_CMD=$MAGIC_CMD
16301
16302 # Must we lock files when doing compilation?
16303 need_locks=$lt_need_locks
16304
16305 # Manifest tool.
16306 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16307
16308 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16309 DSYMUTIL=$lt_DSYMUTIL
16310
16311 # Tool to change global to local symbols on Mac OS X.
16312 NMEDIT=$lt_NMEDIT
16313
16314 # Tool to manipulate fat objects and archives on Mac OS X.
16315 LIPO=$lt_LIPO
16316
16317 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16318 OTOOL=$lt_OTOOL
16319
16320 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16321 OTOOL64=$lt_OTOOL64
16322
16323 # Old archive suffix (normally "a").
16324 libext=$libext
16325
16326 # Shared library suffix (normally ".so").
16327 shrext_cmds=$lt_shrext_cmds
16328
16329 # The commands to extract the exported symbol list from a shared archive.
16330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16331
16332 # Variables whose values should be saved in libtool wrapper scripts and
16333 # restored at link time.
16334 variables_saved_for_relink=$lt_variables_saved_for_relink
16335
16336 # Do we need the "lib" prefix for modules?
16337 need_lib_prefix=$need_lib_prefix
16338
16339 # Do we need a version for libraries?
16340 need_version=$need_version
16341
16342 # Library versioning type.
16343 version_type=$version_type
16344
16345 # Shared library runtime path variable.
16346 runpath_var=$runpath_var
16347
16348 # Shared library path variable.
16349 shlibpath_var=$shlibpath_var
16350
16351 # Is shlibpath searched before the hard-coded library search path?
16352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16353
16354 # Format of library name prefix.
16355 libname_spec=$lt_libname_spec
16356
16357 # List of archive names.  First name is the real one, the rest are links.
16358 # The last name is the one that the linker finds with -lNAME
16359 library_names_spec=$lt_library_names_spec
16360
16361 # The coded name of the library, if different from the real name.
16362 soname_spec=$lt_soname_spec
16363
16364 # Permission mode override for installation of shared libraries.
16365 install_override_mode=$lt_install_override_mode
16366
16367 # Command to use after installation of a shared archive.
16368 postinstall_cmds=$lt_postinstall_cmds
16369
16370 # Command to use after uninstallation of a shared archive.
16371 postuninstall_cmds=$lt_postuninstall_cmds
16372
16373 # Commands used to finish a libtool library installation in a directory.
16374 finish_cmds=$lt_finish_cmds
16375
16376 # As "finish_cmds", except a single script fragment to be evaled but
16377 # not shown.
16378 finish_eval=$lt_finish_eval
16379
16380 # Whether we should hardcode library paths into libraries.
16381 hardcode_into_libs=$hardcode_into_libs
16382
16383 # Compile-time system search path for libraries.
16384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16385
16386 # Detected run-time system search path for libraries.
16387 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16388
16389 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16390 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16391
16392 # Whether dlopen is supported.
16393 dlopen_support=$enable_dlopen
16394
16395 # Whether dlopen of programs is supported.
16396 dlopen_self=$enable_dlopen_self
16397
16398 # Whether dlopen of statically linked programs is supported.
16399 dlopen_self_static=$enable_dlopen_self_static
16400
16401 # Commands to strip libraries.
16402 old_striplib=$lt_old_striplib
16403 striplib=$lt_striplib
16404
16405
16406 # The linker used to build libraries.
16407 LD=$lt_LD
16408
16409 # How to create reloadable object files.
16410 reload_flag=$lt_reload_flag
16411 reload_cmds=$lt_reload_cmds
16412
16413 # Commands used to build an old-style archive.
16414 old_archive_cmds=$lt_old_archive_cmds
16415
16416 # A language specific compiler.
16417 CC=$lt_compiler
16418
16419 # Is the compiler the GNU compiler?
16420 with_gcc=$GCC
16421
16422 # Compiler flag to turn off builtin functions.
16423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16424
16425 # Additional compiler flags for building library objects.
16426 pic_flag=$lt_lt_prog_compiler_pic
16427
16428 # How to pass a linker flag through the compiler.
16429 wl=$lt_lt_prog_compiler_wl
16430
16431 # Compiler flag to prevent dynamic linking.
16432 link_static_flag=$lt_lt_prog_compiler_static
16433
16434 # Does compiler simultaneously support -c and -o options?
16435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16436
16437 # Whether or not to add -lc for building shared libraries.
16438 build_libtool_need_lc=$archive_cmds_need_lc
16439
16440 # Whether or not to disallow shared libs when runtime libs are static.
16441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16442
16443 # Compiler flag to allow reflexive dlopens.
16444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16445
16446 # Compiler flag to generate shared objects directly from archives.
16447 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16448
16449 # Whether the compiler copes with passing no objects directly.
16450 compiler_needs_object=$lt_compiler_needs_object
16451
16452 # Create an old-style archive from a shared archive.
16453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16454
16455 # Create a temporary old-style archive to link instead of a shared archive.
16456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16457
16458 # Commands used to build a shared archive.
16459 archive_cmds=$lt_archive_cmds
16460 archive_expsym_cmds=$lt_archive_expsym_cmds
16461
16462 # Commands used to build a loadable module if different from building
16463 # a shared archive.
16464 module_cmds=$lt_module_cmds
16465 module_expsym_cmds=$lt_module_expsym_cmds
16466
16467 # Whether we are building with GNU ld or not.
16468 with_gnu_ld=$lt_with_gnu_ld
16469
16470 # Flag that allows shared libraries with undefined symbols to be built.
16471 allow_undefined_flag=$lt_allow_undefined_flag
16472
16473 # Flag that enforces no undefined symbols.
16474 no_undefined_flag=$lt_no_undefined_flag
16475
16476 # Flag to hardcode \$libdir into a binary during linking.
16477 # This must work even if \$libdir does not exist
16478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16479
16480 # Whether we need a single "-rpath" flag with a separated argument.
16481 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16482
16483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16484 # DIR into the resulting binary.
16485 hardcode_direct=$hardcode_direct
16486
16487 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16488 # DIR into the resulting binary and the resulting library dependency is
16489 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16490 # library is relocated.
16491 hardcode_direct_absolute=$hardcode_direct_absolute
16492
16493 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16494 # into the resulting binary.
16495 hardcode_minus_L=$hardcode_minus_L
16496
16497 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16498 # into the resulting binary.
16499 hardcode_shlibpath_var=$hardcode_shlibpath_var
16500
16501 # Set to "yes" if building a shared library automatically hardcodes DIR
16502 # into the library and all subsequent libraries and executables linked
16503 # against it.
16504 hardcode_automatic=$hardcode_automatic
16505
16506 # Set to yes if linker adds runtime paths of dependent libraries
16507 # to runtime path list.
16508 inherit_rpath=$inherit_rpath
16509
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs
16512
16513 # Set to "yes" if exported symbols are required.
16514 always_export_symbols=$always_export_symbols
16515
16516 # The commands to list exported symbols.
16517 export_symbols_cmds=$lt_export_symbols_cmds
16518
16519 # Symbols that should not be listed in the preloaded symbols.
16520 exclude_expsyms=$lt_exclude_expsyms
16521
16522 # Symbols that must always be exported.
16523 include_expsyms=$lt_include_expsyms
16524
16525 # Commands necessary for linking programs (against libraries) with templates.
16526 prelink_cmds=$lt_prelink_cmds
16527
16528 # Commands necessary for finishing linking programs.
16529 postlink_cmds=$lt_postlink_cmds
16530
16531 # Specify filename containing input files.
16532 file_list_spec=$lt_file_list_spec
16533
16534 # How to hardcode a shared library path into an executable.
16535 hardcode_action=$hardcode_action
16536
16537 # ### END LIBTOOL CONFIG
16538
16539 _LT_EOF
16540
16541     cat <<'_LT_EOF' >> "$cfgfile"
16542
16543 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16544
16545 # func_munge_path_list VARIABLE PATH
16546 # -----------------------------------
16547 # VARIABLE is name of variable containing _space_ separated list of
16548 # directories to be munged by the contents of PATH, which is string
16549 # having a format:
16550 # "DIR[:DIR]:"
16551 #       string "DIR[ DIR]" will be prepended to VARIABLE
16552 # ":DIR[:DIR]"
16553 #       string "DIR[ DIR]" will be appended to VARIABLE
16554 # "DIRP[:DIRP]::[DIRA:]DIRA"
16555 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16556 #       "DIRA[ DIRA]" will be appended to VARIABLE
16557 # "DIR[:DIR]"
16558 #       VARIABLE will be replaced by "DIR[ DIR]"
16559 func_munge_path_list ()
16560 {
16561     case x$2 in
16562     x)
16563         ;;
16564     *:)
16565         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16566         ;;
16567     x:*)
16568         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16569         ;;
16570     *::*)
16571         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16572         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16573         ;;
16574     *)
16575         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16576         ;;
16577     esac
16578 }
16579
16580
16581 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16582 func_cc_basename ()
16583 {
16584     for cc_temp in $*""; do
16585       case $cc_temp in
16586         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16587         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16588         \-*) ;;
16589         *) break;;
16590       esac
16591     done
16592     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16593 }
16594
16595
16596 # ### END FUNCTIONS SHARED WITH CONFIGURE
16597
16598 _LT_EOF
16599
16600   case $host_os in
16601   aix3*)
16602     cat <<\_LT_EOF >> "$cfgfile"
16603 # AIX sometimes has problems with the GCC collect2 program.  For some
16604 # reason, if we set the COLLECT_NAMES environment variable, the problems
16605 # vanish in a puff of smoke.
16606 if test set != "${COLLECT_NAMES+set}"; then
16607   COLLECT_NAMES=
16608   export COLLECT_NAMES
16609 fi
16610 _LT_EOF
16611     ;;
16612   esac
16613
16614
16615
16616 ltmain=$ac_aux_dir/ltmain.sh
16617
16618
16619   # We use sed instead of cat because bash on DJGPP gets confused if
16620   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16621   # text mode, it properly converts lines to CR/LF.  This bash problem
16622   # is reportedly fixed, but why not run on old versions too?
16623   $SED '$q' "$ltmain" >> "$cfgfile" \
16624      || (rm -f "$cfgfile"; exit 1)
16625
16626    mv -f "$cfgfile" "$ofile" ||
16627     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16628   chmod +x "$ofile"
16629
16630  ;;
16631     "libpng-config":F) chmod +x libpng-config ;;
16632
16633   esac
16634 done # for ac_tag
16635
16636
16637 as_fn_exit 0
16638 _ACEOF
16639 ac_clean_files=$ac_clean_files_save
16640
16641 test $ac_write_fail = 0 ||
16642   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16643
16644
16645 # configure is writing to config.log, and then calls config.status.
16646 # config.status does its own redirection, appending to config.log.
16647 # Unfortunately, on DOS this fails, as config.log is still kept open
16648 # by configure, so config.status won't be able to write to it; its
16649 # output is simply discarded.  So we exec the FD to /dev/null,
16650 # effectively closing config.log, so it can be properly (re)opened and
16651 # appended to by config.status.  When coming back to configure, we
16652 # need to make the FD available again.
16653 if test "$no_create" != yes; then
16654   ac_cs_success=:
16655   ac_config_status_args=
16656   test "$silent" = yes &&
16657     ac_config_status_args="$ac_config_status_args --quiet"
16658   exec 5>/dev/null
16659   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16660   exec 5>>config.log
16661   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16662   # would make configure fail if this is the last instruction.
16663   $ac_cs_success || as_fn_exit 1
16664 fi
16665 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16667 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16668 fi
16669
16670