1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libpng 1.6.34.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: png-mng-implement@lists.sourceforge.net about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libpng'
592PACKAGE_TARNAME='libpng'
593PACKAGE_VERSION='1.6.34'
594PACKAGE_STRING='libpng 1.6.34'
595PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="pngget.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638PNG_POWERPC_VSX_FALSE
639PNG_POWERPC_VSX_TRUE
640PNG_INTEL_SSE_FALSE
641PNG_INTEL_SSE_TRUE
642PNG_MIPS_MSA_FALSE
643PNG_MIPS_MSA_TRUE
644PNG_ARM_NEON_FALSE
645PNG_ARM_NEON_TRUE
646DO_INSTALL_LIBPNG_CONFIG_FALSE
647DO_INSTALL_LIBPNG_CONFIG_TRUE
648DO_INSTALL_LIBPNG_PC_FALSE
649DO_INSTALL_LIBPNG_PC_TRUE
650DO_INSTALL_LINKS_FALSE
651DO_INSTALL_LINKS_TRUE
652DO_PNG_PREFIX_FALSE
653DO_PNG_PREFIX_TRUE
654PNG_PREFIX
655binconfigs
656pkgconfigdir
657PNGLIB_RELEASE
658PNGLIB_MINOR
659PNGLIB_MAJOR
660PNGLIB_VERSION
661SYMBOL_PREFIX
662HAVE_LD_VERSION_SCRIPT_FALSE
663HAVE_LD_VERSION_SCRIPT_TRUE
664HAVE_SOLARIS_LD_FALSE
665HAVE_SOLARIS_LD_TRUE
666HAVE_CLOCK_GETTIME_FALSE
667HAVE_CLOCK_GETTIME_TRUE
668LIBOBJS
669POW_LIB
670PNG_COPTS
671DFNCPP
672LT_SYS_LIBRARY_PATH
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LIBTOOL
686OBJDUMP
687DLLTOOL
688AS
689LN_S
690CPP
691LD
692FGREP
693EGREP
694GREP
695SED
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704am__fastdepCCAS_FALSE
705am__fastdepCCAS_TRUE
706CCASDEPMODE
707CCASFLAGS
708CCAS
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
712am__nodep
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726MAINT
727MAINTAINER_MODE_FALSE
728MAINTAINER_MODE_TRUE
729AM_BACKSLASH
730AM_DEFAULT_VERBOSITY
731AM_DEFAULT_V
732AM_V
733am__untar
734am__tar
735AMTAR
736am__leading_dot
737SET_MAKE
738AWK
739mkdir_p
740MKDIR_P
741INSTALL_STRIP_PROGRAM
742STRIP
743install_sh
744MAKEINFO
745AUTOHEADER
746AUTOMAKE
747AUTOCONF
748ACLOCAL
749VERSION
750PACKAGE
751CYGPATH_W
752am__isrc
753INSTALL_DATA
754INSTALL_SCRIPT
755INSTALL_PROGRAM
756target_alias
757host_alias
758build_alias
759LIBS
760ECHO_T
761ECHO_N
762ECHO_C
763DEFS
764mandir
765localedir
766libdir
767psdir
768pdfdir
769dvidir
770htmldir
771infodir
772docdir
773oldincludedir
774includedir
775localstatedir
776sharedstatedir
777sysconfdir
778datadir
779datarootdir
780libexecdir
781sbindir
782bindir
783program_transform_name
784prefix
785exec_prefix
786PACKAGE_URL
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
794ac_subst_files=''
795ac_user_opts='
796enable_option_checking
797enable_silent_rules
798enable_maintainer_mode
799enable_dependency_tracking
800with_gnu_ld
801enable_shared
802enable_static
803with_pic
804enable_fast_install
805with_aix_soname
806with_sysroot
807enable_libtool_lock
808enable_werror
809with_zlib_prefix
810with_pkgconfigdir
811with_binconfigs
812with_libpng_prefix
813enable_unversioned_links
814enable_unversioned_libpng_pc
815enable_unversioned_libpng_config
816enable_hardware_optimizations
817enable_arm_neon
818enable_mips_msa
819enable_intel_sse
820enable_powerpc_vsx
821'
822      ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
828LIBS
829CPPFLAGS
830CCAS
831CCASFLAGS
832CPP
833LT_SYS_LIBRARY_PATH
834PNG_COPTS'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  # Accept the important Cygnus configure options, so we can diagnose typos.
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=no ;;
955
956  -docdir | --docdir | --docdi | --doc | --do)
957    ac_prev=docdir ;;
958  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959    docdir=$ac_optarg ;;
960
961  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962    ac_prev=dvidir ;;
963  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964    dvidir=$ac_optarg ;;
965
966  -enable-* | --enable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126    ac_prev=sbindir ;;
1127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128  | --sbi=* | --sb=*)
1129    sbindir=$ac_optarg ;;
1130
1131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133  | --sharedst | --shareds | --shared | --share | --shar \
1134  | --sha | --sh)
1135    ac_prev=sharedstatedir ;;
1136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139  | --sha=* | --sh=*)
1140    sharedstatedir=$ac_optarg ;;
1141
1142  -site | --site | --sit)
1143    ac_prev=site ;;
1144  -site=* | --site=* | --sit=*)
1145    site=$ac_optarg ;;
1146
1147  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148    ac_prev=srcdir ;;
1149  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150    srcdir=$ac_optarg ;;
1151
1152  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153  | --syscon | --sysco | --sysc | --sys | --sy)
1154    ac_prev=sysconfdir ;;
1155  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157    sysconfdir=$ac_optarg ;;
1158
1159  -target | --target | --targe | --targ | --tar | --ta | --t)
1160    ac_prev=target_alias ;;
1161  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162    target_alias=$ac_optarg ;;
1163
1164  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165    verbose=yes ;;
1166
1167  -version | --version | --versio | --versi | --vers | -V)
1168    ac_init_version=: ;;
1169
1170  -with-* | --with-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=\$ac_optarg ;;
1185
1186  -without-* | --without-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=no ;;
1201
1202  --x)
1203    # Obsolete; use --with-x.
1204    with_x=yes ;;
1205
1206  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207  | --x-incl | --x-inc | --x-in | --x-i)
1208    ac_prev=x_includes ;;
1209  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211    x_includes=$ac_optarg ;;
1212
1213  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215    ac_prev=x_libraries ;;
1216  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218    x_libraries=$ac_optarg ;;
1219
1220  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222    ;;
1223
1224  *=*)
1225    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226    # Reject names that are not valid shell variable names.
1227    case $ac_envvar in #(
1228      '' | [0-9]* | *[!_$as_cr_alnum]* )
1229      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230    esac
1231    eval $ac_envvar=\$ac_optarg
1232    export $ac_envvar ;;
1233
1234  *)
1235    # FIXME: should be removed in autoconf 3.0.
1236    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240    ;;
1241
1242  esac
1243done
1244
1245if test -n "$ac_prev"; then
1246  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247  as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251  case $enable_option_checking in
1252    no) ;;
1253    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255  esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260		datadir sysconfdir sharedstatedir localstatedir includedir \
1261		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262		libdir localedir mandir
1263do
1264  eval ac_val=\$$ac_var
1265  # Remove trailing slashes.
1266  case $ac_val in
1267    */ )
1268      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269      eval $ac_var=\$ac_val;;
1270  esac
1271  # Be sure to have absolute directory names.
1272  case $ac_val in
1273    [\\/$]* | ?:[\\/]* )  continue;;
1274    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275  esac
1276  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288  if test "x$build_alias" = x; then
1289    cross_compiling=maybe
1290  elif test "x$build_alias" != "x$host_alias"; then
1291    cross_compiling=yes
1292  fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304  as_fn_error $? "working directory cannot be determined"
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306  as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311  ac_srcdir_defaulted=yes
1312  # Try the directory containing this script, then the parent directory.
1313  ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315	 X"$as_myself" : 'X\(//\)[^/]' \| \
1316	 X"$as_myself" : 'X\(//\)$' \| \
1317	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
1319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\/\)[^/].*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  /^X\(\/\/\)$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\).*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  s/.*/./; q'`
1336  srcdir=$ac_confdir
1337  if test ! -r "$srcdir/$ac_unique_file"; then
1338    srcdir=..
1339  fi
1340else
1341  ac_srcdir_defaulted=no
1342fi
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
1349	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350	pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353  srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_env_${ac_var}_value=\$${ac_var}
1364  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372  # Omit some internal or obsolete options to make the list less imposing.
1373  # This message is too long to be a string in the A/UX 3.1 sh.
1374  cat <<_ACEOF
1375\`configure' configures libpng 1.6.34 to adapt to many kinds of systems.
1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385  -h, --help              display this help and exit
1386      --help=short        display options specific to this package
1387      --help=recursive    display the short help of all the included packages
1388  -V, --version           display version information and exit
1389  -q, --quiet, --silent   do not print \`checking ...' messages
1390      --cache-file=FILE   cache test results in FILE [disabled]
1391  -C, --config-cache      alias for \`--cache-file=config.cache'
1392  -n, --no-create         do not create output files
1393      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395Installation directories:
1396  --prefix=PREFIX         install architecture-independent files in PREFIX
1397                          [$ac_default_prefix]
1398  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                          [PREFIX]
1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
1409  --bindir=DIR            user executables [EPREFIX/bin]
1410  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411  --libexecdir=DIR        program executables [EPREFIX/libexec]
1412  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415  --libdir=DIR            object code libraries [EPREFIX/lib]
1416  --includedir=DIR        C header files [PREFIX/include]
1417  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420  --infodir=DIR           info documentation [DATAROOTDIR/info]
1421  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422  --mandir=DIR            man documentation [DATAROOTDIR/man]
1423  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1424  --htmldir=DIR           html documentation [DOCDIR]
1425  --dvidir=DIR            dvi documentation [DOCDIR]
1426  --pdfdir=DIR            pdf documentation [DOCDIR]
1427  --psdir=DIR             ps documentation [DOCDIR]
1428_ACEOF
1429
1430  cat <<\_ACEOF
1431
1432Program names:
1433  --program-prefix=PREFIX            prepend PREFIX to installed program names
1434  --program-suffix=SUFFIX            append SUFFIX to installed program names
1435  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437System types:
1438  --build=BUILD     configure for building on BUILD [guessed]
1439  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of libpng 1.6.34:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-maintainer-mode
1456                          enable make rules and dependencies not useful (and
1457                          sometimes confusing) to the casual installer
1458  --enable-dependency-tracking
1459                          do not reject slow dependency extractors
1460  --disable-dependency-tracking
1461                          speeds up one-time build
1462  --enable-shared[=PKGS]  build shared libraries [default=yes]
1463  --enable-static[=PKGS]  build static libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467  --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1468                          if it is supported
1469  --enable-unversioned-links
1470                          Installed libpng header files are placed in a
1471                          versioned subdirectory and installed libpng library
1472                          (including DLL) files are versioned. If this option
1473                          is enabled unversioned links will be created
1474                          pointing to the corresponding installed files. If
1475                          you use libpng.pc or libpng-config for all builds
1476                          you do not need these links, but if you compile
1477                          programs directly they will typically #include
1478                          <png.h> and link with -lpng; in that case you need
1479                          the links. The links can be installed manually using
1480                          'make install-header-links' and 'make
1481                          install-library-links' and can be removed using the
1482                          corresponding uninstall- targets. If you do enable
1483                          this option every libpng 'make install' will
1484                          recreate the links to point to the just installed
1485                          version of libpng. The default is to create the
1486                          links; use --disable-unversioned-links to change
1487                          this
1488  --enable-unversioned-libpng-pc
1489                          Install the configuration file 'libpng.pc' as a link
1490                          to the versioned version. This is done by default -
1491                          use --disable-unversioned-libpng-pc to change this.
1492  --enable-unversioned-libpng-config
1493                          Install the configuration file 'libpng-config' as a
1494                          link to the versioned version. This is done by
1495                          default - use --disable-unversioned-libpng-config to
1496                          change this.
1497  --enable-hardware-optimizations
1498                          Enable hardware optimizations: =no/off, yes/on:
1499  --enable-arm-neon     Enable ARM NEON optimizations: =no/off, check, api,
1500                          yes/on: no/off: disable the optimizations; check:
1501                          use internal checking code (deprecated and poorly
1502                          supported); api: disable by default, enable by a
1503                          call to png_set_option; yes/on: turn on
1504                          unconditionally. If not specified: determined by the
1505                          compiler.
1506  --enable-mips-msa     Enable MIPS MSA optimizations: =no/off, check, api,
1507                          yes/on: no/off: disable the optimizations; check:
1508                          use internal checking code (deprecated and poorly
1509                          supported); api: disable by default, enable by a
1510                          call to png_set_option; yes/on: turn on
1511                          unconditionally. If not specified: determined by the
1512                          compiler.
1513  --enable-intel-sse    Enable Intel SSE optimizations: =no/off, yes/on:
1514                          no/off: disable the optimizations; yes/on: enable
1515                          the optimizations. If not specified: determined by
1516                          the compiler.
1517  --enable-powerpc-vsx  Enable POWERPC VSX optimizations: =no/off, check,
1518                          api, yes/on: no/off: disable the optimizations;
1519                          check: use internal checking code api: disable by
1520                          default, enable by a call to png_set_option yes/on:
1521                          turn on unconditionally. If not specified:
1522                          determined by the compiler.
1523
1524Optional Packages:
1525  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1529                          both]
1530  --with-aix-soname=aix|svr4|both
1531                          shared library versioning (aka "SONAME") variant to
1532                          provide on AIX, [default=aix].
1533  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1534                          compiler's sysroot if not specified).
1535  --with-zlib-prefix    prefix that may have been used in installed zlib
1536  --with-pkgconfigdir   Use the specified pkgconfig dir (default is
1537                          libdir/pkgconfig)
1538  --with-binconfigs     Generate shell libpng-config scripts as well as
1539                          pkg-config data [default=yes]
1540  --with-libpng-prefix  prefix libpng exported function (API) names with the
1541                          given value
1542
1543Some influential environment variables:
1544  CC          C compiler command
1545  CFLAGS      C compiler flags
1546  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1547              nonstandard directory <lib dir>
1548  LIBS        libraries to pass to the linker, e.g. -l<library>
1549  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550              you have headers in a nonstandard directory <include dir>
1551  CCAS        assembler compiler command (defaults to CC)
1552  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1553  CPP         C preprocessor
1554  LT_SYS_LIBRARY_PATH
1555              User-defined run-time library search path.
1556  PNG_COPTS   additional flags for the C compiler, use this for options that
1557              would cause configure itself to fail
1558
1559Use these variables to override the choices made by `configure' or to help
1560it to find libraries and programs with nonstandard names/locations.
1561
1562Report bugs to <png-mng-implement@lists.sourceforge.net>.
1563_ACEOF
1564ac_status=$?
1565fi
1566
1567if test "$ac_init_help" = "recursive"; then
1568  # If there are subdirs, report their specific --help.
1569  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570    test -d "$ac_dir" ||
1571      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572      continue
1573    ac_builddir=.
1574
1575case "$ac_dir" in
1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577*)
1578  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579  # A ".." for each directory in $ac_dir_suffix.
1580  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581  case $ac_top_builddir_sub in
1582  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584  esac ;;
1585esac
1586ac_abs_top_builddir=$ac_pwd
1587ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588# for backward compatibility:
1589ac_top_builddir=$ac_top_build_prefix
1590
1591case $srcdir in
1592  .)  # We are building in place.
1593    ac_srcdir=.
1594    ac_top_srcdir=$ac_top_builddir_sub
1595    ac_abs_top_srcdir=$ac_pwd ;;
1596  [\\/]* | ?:[\\/]* )  # Absolute name.
1597    ac_srcdir=$srcdir$ac_dir_suffix;
1598    ac_top_srcdir=$srcdir
1599    ac_abs_top_srcdir=$srcdir ;;
1600  *) # Relative name.
1601    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602    ac_top_srcdir=$ac_top_build_prefix$srcdir
1603    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604esac
1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607    cd "$ac_dir" || { ac_status=$?; continue; }
1608    # Check for guested configure.
1609    if test -f "$ac_srcdir/configure.gnu"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612    elif test -f "$ac_srcdir/configure"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure" --help=recursive
1615    else
1616      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617    fi || ac_status=$?
1618    cd "$ac_pwd" || { ac_status=$?; break; }
1619  done
1620fi
1621
1622test -n "$ac_init_help" && exit $ac_status
1623if $ac_init_version; then
1624  cat <<\_ACEOF
1625libpng configure 1.6.34
1626generated by GNU Autoconf 2.69
1627
1628Copyright (C) 2012 Free Software Foundation, Inc.
1629This configure script is free software; the Free Software Foundation
1630gives unlimited permission to copy, distribute and modify it.
1631_ACEOF
1632  exit
1633fi
1634
1635## ------------------------ ##
1636## Autoconf initialization. ##
1637## ------------------------ ##
1638
1639# ac_fn_c_try_compile LINENO
1640# --------------------------
1641# Try to compile conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext
1646  if { { ac_try="$ac_compile"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_compile") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest.$ac_objext; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670	ac_retval=1
1671fi
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } > conftest.i && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext conftest$ac_exeext
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest$ac_exeext && {
1740	 test "$cross_compiling" = yes ||
1741	 test -x conftest$ac_exeext
1742       }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1
1749fi
1750  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752  # interfere with the next link command; also delete a directory that is
1753  # left behind by Apple's compiler.  We do this before executing the actions.
1754  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_link
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  eval "$3=yes"
1779else
1780  eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_run LINENO
1792# ----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794# that executables *can* be run.
1795ac_fn_c_try_run ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>&5
1806  ac_status=$?
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809  { { case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_try") 2>&5
1816  ac_status=$?
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; }; }; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: program exited with status $ac_status" >&5
1822       $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825       ac_retval=$ac_status
1826fi
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_run
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851    which can conflict with char $2 (); below.
1852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853    <limits.h> exists even on freestanding compilers.  */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864   Use char because int might match the return type of a GCC
1865   builtin and then its argument prototype would still apply.  */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871    to always fail with ENOSYS.  Some functions are actually named
1872    something starting with __ and the normal name is an alias.  */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891    conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898} # ac_fn_c_check_func
1899
1900# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901# -------------------------------------------
1902# Tests whether TYPE exists after having included INCLUDES, setting cache
1903# variable VAR accordingly.
1904ac_fn_c_check_type ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
1909if eval \${$3+:} false; then :
1910  $as_echo_n "(cached) " >&6
1911else
1912  eval "$3=no"
1913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h.  */
1915$4
1916int
1917main ()
1918{
1919if (sizeof ($2))
1920	 return 0;
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932if (sizeof (($2)))
1933	    return 0;
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939
1940else
1941  eval "$3=yes"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_type
1953cat >config.log <<_ACEOF
1954This file contains any messages produced by compilers while
1955running configure, to aid debugging if configure makes a mistake.
1956
1957It was created by libpng $as_me 1.6.34, which was
1958generated by GNU Autoconf 2.69.  Invocation command line was
1959
1960  $ $0 $@
1961
1962_ACEOF
1963exec 5>>config.log
1964{
1965cat <<_ASUNAME
1966## --------- ##
1967## Platform. ##
1968## --------- ##
1969
1970hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1978
1979/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1980/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1981/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1983/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1984/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1985/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1986
1987_ASUNAME
1988
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994    $as_echo "PATH: $as_dir"
1995  done
1996IFS=$as_save_IFS
1997
1998} >&5
1999
2000cat >&5 <<_ACEOF
2001
2002
2003## ----------- ##
2004## Core tests. ##
2005## ----------- ##
2006
2007_ACEOF
2008
2009
2010# Keep a trace of the command line.
2011# Strip out --no-create and --no-recursion so they do not pile up.
2012# Strip out --silent because we don't want to record it for future runs.
2013# Also quote any args containing shell meta-characters.
2014# Make two passes to allow for proper duplicate-argument suppression.
2015ac_configure_args=
2016ac_configure_args0=
2017ac_configure_args1=
2018ac_must_keep_next=false
2019for ac_pass in 1 2
2020do
2021  for ac_arg
2022  do
2023    case $ac_arg in
2024    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026    | -silent | --silent | --silen | --sile | --sil)
2027      continue ;;
2028    *\'*)
2029      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030    esac
2031    case $ac_pass in
2032    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033    2)
2034      as_fn_append ac_configure_args1 " '$ac_arg'"
2035      if test $ac_must_keep_next = true; then
2036	ac_must_keep_next=false # Got value, back to normal.
2037      else
2038	case $ac_arg in
2039	  *=* | --config-cache | -C | -disable-* | --disable-* \
2040	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042	  | -with-* | --with-* | -without-* | --without-* | --x)
2043	    case "$ac_configure_args0 " in
2044	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045	    esac
2046	    ;;
2047	  -* ) ac_must_keep_next=true ;;
2048	esac
2049      fi
2050      as_fn_append ac_configure_args " '$ac_arg'"
2051      ;;
2052    esac
2053  done
2054done
2055{ ac_configure_args0=; unset ac_configure_args0;}
2056{ ac_configure_args1=; unset ac_configure_args1;}
2057
2058# When interrupted or exit'd, cleanup temporary files, and complete
2059# config.log.  We remove comments because anyway the quotes in there
2060# would cause problems or look ugly.
2061# WARNING: Use '\'' to represent an apostrophe within the trap.
2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063trap 'exit_status=$?
2064  # Save into config.log some information that might help in debugging.
2065  {
2066    echo
2067
2068    $as_echo "## ---------------- ##
2069## Cache variables. ##
2070## ---------------- ##"
2071    echo
2072    # The following way of writing the cache mishandles newlines in values,
2073(
2074  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075    eval ac_val=\$$ac_var
2076    case $ac_val in #(
2077    *${as_nl}*)
2078      case $ac_var in #(
2079      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081      esac
2082      case $ac_var in #(
2083      _ | IFS | as_nl) ;; #(
2084      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085      *) { eval $ac_var=; unset $ac_var;} ;;
2086      esac ;;
2087    esac
2088  done
2089  (set) 2>&1 |
2090    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091    *${as_nl}ac_space=\ *)
2092      sed -n \
2093	"s/'\''/'\''\\\\'\'''\''/g;
2094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095      ;; #(
2096    *)
2097      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098      ;;
2099    esac |
2100    sort
2101)
2102    echo
2103
2104    $as_echo "## ----------------- ##
2105## Output variables. ##
2106## ----------------- ##"
2107    echo
2108    for ac_var in $ac_subst_vars
2109    do
2110      eval ac_val=\$$ac_var
2111      case $ac_val in
2112      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113      esac
2114      $as_echo "$ac_var='\''$ac_val'\''"
2115    done | sort
2116    echo
2117
2118    if test -n "$ac_subst_files"; then
2119      $as_echo "## ------------------- ##
2120## File substitutions. ##
2121## ------------------- ##"
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      $as_echo "## ----------- ##
2136## confdefs.h. ##
2137## ----------- ##"
2138      echo
2139      cat confdefs.h
2140      echo
2141    fi
2142    test "$ac_signal" != 0 &&
2143      $as_echo "$as_me: caught signal $ac_signal"
2144    $as_echo "$as_me: exit $exit_status"
2145  } >&5
2146  rm -f core *.core core.conftest.* &&
2147    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148    exit $exit_status
2149' 0
2150for ac_signal in 1 2 13 15; do
2151  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152done
2153ac_signal=0
2154
2155# confdefs.h avoids OS command line length limits that DEFS can exceed.
2156rm -f -r conftest* confdefs.h
2157
2158$as_echo "/* confdefs.h */" > confdefs.h
2159
2160# Predefined preprocessor variables.
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_NAME "$PACKAGE_NAME"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_VERSION "$PACKAGE_VERSION"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_STRING "$PACKAGE_STRING"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_URL "$PACKAGE_URL"
2184_ACEOF
2185
2186
2187# Let the site file select an alternate cache file if it wants to.
2188# Prefer an explicitly selected file to automatically selected ones.
2189ac_site_file1=NONE
2190ac_site_file2=NONE
2191if test -n "$CONFIG_SITE"; then
2192  # We do not want a PATH search for config.site.
2193  case $CONFIG_SITE in #((
2194    -*)  ac_site_file1=./$CONFIG_SITE;;
2195    */*) ac_site_file1=$CONFIG_SITE;;
2196    *)   ac_site_file1=./$CONFIG_SITE;;
2197  esac
2198elif test "x$prefix" != xNONE; then
2199  ac_site_file1=$prefix/share/config.site
2200  ac_site_file2=$prefix/etc/config.site
2201else
2202  ac_site_file1=$ac_default_prefix/share/config.site
2203  ac_site_file2=$ac_default_prefix/etc/config.site
2204fi
2205for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206do
2207  test "x$ac_site_file" = xNONE && continue
2208  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211    sed 's/^/| /' "$ac_site_file" >&5
2212    . "$ac_site_file" \
2213      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215as_fn_error $? "failed to load site script $ac_site_file
2216See \`config.log' for more details" "$LINENO" 5; }
2217  fi
2218done
2219
2220if test -r "$cache_file"; then
2221  # Some versions of bash will fail to source /dev/null (special files
2222  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2223  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225$as_echo "$as_me: loading cache $cache_file" >&6;}
2226    case $cache_file in
2227      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228      *)                      . "./$cache_file";;
2229    esac
2230  fi
2231else
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233$as_echo "$as_me: creating cache $cache_file" >&6;}
2234  >$cache_file
2235fi
2236
2237# Check that the precious variables saved in the cache have kept the same
2238# value.
2239ac_cache_corrupted=false
2240for ac_var in $ac_precious_vars; do
2241  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242  eval ac_new_set=\$ac_env_${ac_var}_set
2243  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244  eval ac_new_val=\$ac_env_${ac_var}_value
2245  case $ac_old_set,$ac_new_set in
2246    set,)
2247      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249      ac_cache_corrupted=: ;;
2250    ,set)
2251      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253      ac_cache_corrupted=: ;;
2254    ,);;
2255    *)
2256      if test "x$ac_old_val" != "x$ac_new_val"; then
2257	# differences in whitespace do not lead to failure.
2258	ac_old_val_w=`echo x $ac_old_val`
2259	ac_new_val_w=`echo x $ac_new_val`
2260	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263	  ac_cache_corrupted=:
2264	else
2265	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267	  eval $ac_var=\$ac_old_val
2268	fi
2269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273      fi;;
2274  esac
2275  # Pass precious variables to config.status.
2276  if test "$ac_new_set" = set; then
2277    case $ac_new_val in
2278    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279    *) ac_arg=$ac_var=$ac_new_val ;;
2280    esac
2281    case " $ac_configure_args " in
2282      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284    esac
2285  fi
2286done
2287if $ac_cache_corrupted; then
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293fi
2294## -------------------- ##
2295## Main body of script. ##
2296## -------------------- ##
2297
2298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306
2307# libpng does not follow GNU file name conventions (hence 'foreign')
2308# color-tests requires automake 1.11 or later
2309# silent-rules requires automake 1.11 or later
2310# dist-xz requires automake 1.11 or later
2311# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2312# 1.13 is required for parallel tests
2313am__api_version='1.15'
2314
2315ac_aux_dir=
2316for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2317  if test -f "$ac_dir/install-sh"; then
2318    ac_aux_dir=$ac_dir
2319    ac_install_sh="$ac_aux_dir/install-sh -c"
2320    break
2321  elif test -f "$ac_dir/install.sh"; then
2322    ac_aux_dir=$ac_dir
2323    ac_install_sh="$ac_aux_dir/install.sh -c"
2324    break
2325  elif test -f "$ac_dir/shtool"; then
2326    ac_aux_dir=$ac_dir
2327    ac_install_sh="$ac_aux_dir/shtool install -c"
2328    break
2329  fi
2330done
2331if test -z "$ac_aux_dir"; then
2332  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2333fi
2334
2335# These three variables are undocumented and unsupported,
2336# and are intended to be withdrawn in a future Autoconf release.
2337# They can cause serious problems if a builder's source tree is in a directory
2338# whose full name contains unusual characters.
2339ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2340ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2341ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2342
2343
2344# Find a good install program.  We prefer a C program (faster),
2345# so one script is as good as another.  But avoid the broken or
2346# incompatible versions:
2347# SysV /etc/install, /usr/sbin/install
2348# SunOS /usr/etc/install
2349# IRIX /sbin/install
2350# AIX /bin/install
2351# AmigaOS /C/install, which installs bootblocks on floppy discs
2352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2355# OS/2's system install, which has a completely different semantic
2356# ./install, which can be erroneously created by make from ./install.sh.
2357# Reject install programs that cannot install multiple files.
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2359$as_echo_n "checking for a BSD-compatible install... " >&6; }
2360if test -z "$INSTALL"; then
2361if ${ac_cv_path_install+:} false; then :
2362  $as_echo_n "(cached) " >&6
2363else
2364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367  IFS=$as_save_IFS
2368  test -z "$as_dir" && as_dir=.
2369    # Account for people who put trailing slashes in PATH elements.
2370case $as_dir/ in #((
2371  ./ | .// | /[cC]/* | \
2372  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2373  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2374  /usr/ucb/* ) ;;
2375  *)
2376    # OSF1 and SCO ODT 3.0 have their own names for install.
2377    # Don't use installbsd from OSF since it installs stuff as root
2378    # by default.
2379    for ac_prog in ginstall scoinst install; do
2380      for ac_exec_ext in '' $ac_executable_extensions; do
2381	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2382	  if test $ac_prog = install &&
2383	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384	    # AIX install.  It has an incompatible calling convention.
2385	    :
2386	  elif test $ac_prog = install &&
2387	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388	    # program-specific install script used by HP pwplus--don't use.
2389	    :
2390	  else
2391	    rm -rf conftest.one conftest.two conftest.dir
2392	    echo one > conftest.one
2393	    echo two > conftest.two
2394	    mkdir conftest.dir
2395	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2396	      test -s conftest.one && test -s conftest.two &&
2397	      test -s conftest.dir/conftest.one &&
2398	      test -s conftest.dir/conftest.two
2399	    then
2400	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2401	      break 3
2402	    fi
2403	  fi
2404	fi
2405      done
2406    done
2407    ;;
2408esac
2409
2410  done
2411IFS=$as_save_IFS
2412
2413rm -rf conftest.one conftest.two conftest.dir
2414
2415fi
2416  if test "${ac_cv_path_install+set}" = set; then
2417    INSTALL=$ac_cv_path_install
2418  else
2419    # As a last resort, use the slow shell script.  Don't cache a
2420    # value for INSTALL within a source directory, because that will
2421    # break other packages using the cache if that directory is
2422    # removed, or if the value is a relative name.
2423    INSTALL=$ac_install_sh
2424  fi
2425fi
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2427$as_echo "$INSTALL" >&6; }
2428
2429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2430# It thinks the first close brace ends the variable substitution.
2431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2432
2433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2434
2435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2436
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2438$as_echo_n "checking whether build environment is sane... " >&6; }
2439# Reject unsafe characters in $srcdir or the absolute working directory
2440# name.  Accept space and tab only in the latter.
2441am_lf='
2442'
2443case `pwd` in
2444  *[\\\"\#\$\&\'\`$am_lf]*)
2445    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2446esac
2447case $srcdir in
2448  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2449    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2450esac
2451
2452# Do 'set' in a subshell so we don't clobber the current shell's
2453# arguments.  Must try -L first in case configure is actually a
2454# symlink; some systems play weird games with the mod time of symlinks
2455# (eg FreeBSD returns the mod time of the symlink's containing
2456# directory).
2457if (
2458   am_has_slept=no
2459   for am_try in 1 2; do
2460     echo "timestamp, slept: $am_has_slept" > conftest.file
2461     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2462     if test "$*" = "X"; then
2463	# -L didn't work.
2464	set X `ls -t "$srcdir/configure" conftest.file`
2465     fi
2466     if test "$*" != "X $srcdir/configure conftest.file" \
2467	&& test "$*" != "X conftest.file $srcdir/configure"; then
2468
2469	# If neither matched, then we have a broken ls.  This can happen
2470	# if, for instance, CONFIG_SHELL is bash and it inherits a
2471	# broken ls alias from the environment.  This has actually
2472	# happened.  Such a system could not be considered "sane".
2473	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2474  alias in your environment" "$LINENO" 5
2475     fi
2476     if test "$2" = conftest.file || test $am_try -eq 2; then
2477       break
2478     fi
2479     # Just in case.
2480     sleep 1
2481     am_has_slept=yes
2482   done
2483   test "$2" = conftest.file
2484   )
2485then
2486   # Ok.
2487   :
2488else
2489   as_fn_error $? "newly created file is older than distributed files!
2490Check your system clock" "$LINENO" 5
2491fi
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
2494# If we didn't sleep, we still need to ensure time stamps of config.status and
2495# generated files are strictly newer.
2496am_sleep_pid=
2497if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2498  ( sleep 1 ) &
2499  am_sleep_pid=$!
2500fi
2501
2502rm -f conftest.file
2503
2504test "$program_prefix" != NONE &&
2505  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2506# Use a double $ so make ignores it.
2507test "$program_suffix" != NONE &&
2508  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2509# Double any \ or $.
2510# By default was `s,x,x', remove it if useless.
2511ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2512program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2513
2514# Expand $ac_aux_dir to an absolute path.
2515am_aux_dir=`cd "$ac_aux_dir" && pwd`
2516
2517if test x"${MISSING+set}" != xset; then
2518  case $am_aux_dir in
2519  *\ * | *\	*)
2520    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2521  *)
2522    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2523  esac
2524fi
2525# Use eval to expand $SHELL
2526if eval "$MISSING --is-lightweight"; then
2527  am_missing_run="$MISSING "
2528else
2529  am_missing_run=
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2531$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2532fi
2533
2534if test x"${install_sh+set}" != xset; then
2535  case $am_aux_dir in
2536  *\ * | *\	*)
2537    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2538  *)
2539    install_sh="\${SHELL} $am_aux_dir/install-sh"
2540  esac
2541fi
2542
2543# Installed binaries are usually stripped using 'strip' when the user
2544# run "make install-strip".  However 'strip' might not be the right
2545# tool to use in cross-compilation environments, therefore Automake
2546# will honor the 'STRIP' environment variable to overrule this program.
2547if test "$cross_compiling" != no; then
2548  if test -n "$ac_tool_prefix"; then
2549  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2550set dummy ${ac_tool_prefix}strip; ac_word=$2
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if ${ac_cv_prog_STRIP+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$STRIP"; then
2557  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_exec_ext in '' $ac_executable_extensions; do
2565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576STRIP=$ac_cv_prog_STRIP
2577if test -n "$STRIP"; then
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2579$as_echo "$STRIP" >&6; }
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585
2586fi
2587if test -z "$ac_cv_prog_STRIP"; then
2588  ac_ct_STRIP=$STRIP
2589  # Extract the first word of "strip", so it can be a program name with args.
2590set dummy strip; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$ac_ct_STRIP"; then
2597  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606    ac_cv_prog_ac_ct_STRIP="strip"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2617if test -n "$ac_ct_STRIP"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2619$as_echo "$ac_ct_STRIP" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625  if test "x$ac_ct_STRIP" = x; then
2626    STRIP=":"
2627  else
2628    case $cross_compiling:$ac_tool_warned in
2629yes:)
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632ac_tool_warned=yes ;;
2633esac
2634    STRIP=$ac_ct_STRIP
2635  fi
2636else
2637  STRIP="$ac_cv_prog_STRIP"
2638fi
2639
2640fi
2641INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2644$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2645if test -z "$MKDIR_P"; then
2646  if ${ac_cv_path_mkdir+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654    for ac_prog in mkdir gmkdir; do
2655	 for ac_exec_ext in '' $ac_executable_extensions; do
2656	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2657	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2658	     'mkdir (GNU coreutils) '* | \
2659	     'mkdir (coreutils) '* | \
2660	     'mkdir (fileutils) '4.1*)
2661	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2662	       break 3;;
2663	   esac
2664	 done
2665       done
2666  done
2667IFS=$as_save_IFS
2668
2669fi
2670
2671  test -d ./--version && rmdir ./--version
2672  if test "${ac_cv_path_mkdir+set}" = set; then
2673    MKDIR_P="$ac_cv_path_mkdir -p"
2674  else
2675    # As a last resort, use the slow shell script.  Don't cache a
2676    # value for MKDIR_P within a source directory, because that will
2677    # break other packages using the cache if that directory is
2678    # removed, or if the value is a relative name.
2679    MKDIR_P="$ac_install_sh -d"
2680  fi
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2683$as_echo "$MKDIR_P" >&6; }
2684
2685for ac_prog in gawk mawk nawk awk
2686do
2687  # Extract the first word of "$ac_prog", so it can be a program name with args.
2688set dummy $ac_prog; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if ${ac_cv_prog_AWK+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$AWK"; then
2695  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704    ac_cv_prog_AWK="$ac_prog"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714AWK=$ac_cv_prog_AWK
2715if test -n "$AWK"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2717$as_echo "$AWK" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724  test -n "$AWK" && break
2725done
2726
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2728$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2729set x ${MAKE-make}
2730ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2731if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  cat >conftest.make <<\_ACEOF
2735SHELL = /bin/sh
2736all:
2737	@echo '@@@%%%=$(MAKE)=@@@%%%'
2738_ACEOF
2739# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2740case `${MAKE-make} -f conftest.make 2>/dev/null` in
2741  *@@@%%%=?*=@@@%%%*)
2742    eval ac_cv_prog_make_${ac_make}_set=yes;;
2743  *)
2744    eval ac_cv_prog_make_${ac_make}_set=no;;
2745esac
2746rm -f conftest.make
2747fi
2748if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2750$as_echo "yes" >&6; }
2751  SET_MAKE=
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755  SET_MAKE="MAKE=${MAKE-make}"
2756fi
2757
2758rm -rf .tst 2>/dev/null
2759mkdir .tst 2>/dev/null
2760if test -d .tst; then
2761  am__leading_dot=.
2762else
2763  am__leading_dot=_
2764fi
2765rmdir .tst 2>/dev/null
2766
2767# Check whether --enable-silent-rules was given.
2768if test "${enable_silent_rules+set}" = set; then :
2769  enableval=$enable_silent_rules;
2770fi
2771
2772case $enable_silent_rules in # (((
2773  yes) AM_DEFAULT_VERBOSITY=0;;
2774   no) AM_DEFAULT_VERBOSITY=1;;
2775    *) AM_DEFAULT_VERBOSITY=1;;
2776esac
2777am_make=${MAKE-make}
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2779$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2780if ${am_cv_make_support_nested_variables+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if $as_echo 'TRUE=$(BAR$(V))
2784BAR0=false
2785BAR1=true
2786V=1
2787am__doit:
2788	@$(TRUE)
2789.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2790  am_cv_make_support_nested_variables=yes
2791else
2792  am_cv_make_support_nested_variables=no
2793fi
2794fi
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2796$as_echo "$am_cv_make_support_nested_variables" >&6; }
2797if test $am_cv_make_support_nested_variables = yes; then
2798    AM_V='$(V)'
2799  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2800else
2801  AM_V=$AM_DEFAULT_VERBOSITY
2802  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2803fi
2804AM_BACKSLASH='\'
2805
2806if test "`cd $srcdir && pwd`" != "`pwd`"; then
2807  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2808  # is not polluted with repeated "-I."
2809  am__isrc=' -I$(srcdir)'
2810  # test to see if srcdir already configured
2811  if test -f $srcdir/config.status; then
2812    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2813  fi
2814fi
2815
2816# test whether we have cygpath
2817if test -z "$CYGPATH_W"; then
2818  if (cygpath --version) >/dev/null 2>/dev/null; then
2819    CYGPATH_W='cygpath -w'
2820  else
2821    CYGPATH_W=echo
2822  fi
2823fi
2824
2825
2826# Define the identity of the package.
2827 PACKAGE='libpng'
2828 VERSION='1.6.34'
2829
2830
2831cat >>confdefs.h <<_ACEOF
2832#define PACKAGE "$PACKAGE"
2833_ACEOF
2834
2835
2836cat >>confdefs.h <<_ACEOF
2837#define VERSION "$VERSION"
2838_ACEOF
2839
2840# Some tools Automake needs.
2841
2842ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2843
2844
2845AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2846
2847
2848AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2849
2850
2851AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2852
2853
2854MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855
2856# For better backward compatibility.  To be removed once Automake 1.9.x
2857# dies out for good.  For more background, see:
2858# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2859# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2860mkdir_p='$(MKDIR_P)'
2861
2862# We need awk for the "check" target (and possibly the TAP driver).  The
2863# system "awk" is bad on some platforms.
2864# Always define AMTAR for backward compatibility.  Yes, it's still used
2865# in the wild :-(  We should find a proper way to deprecate it ...
2866AMTAR='$${TAR-tar}'
2867
2868
2869# We'll loop over all known methods to create a tar archive until one works.
2870_am_tools='gnutar  pax cpio none'
2871
2872am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2873
2874
2875
2876
2877
2878
2879# POSIX will say in a future version that running "rm -f" with no argument
2880# is OK; and we want to be able to make that assumption in our Makefile
2881# recipes.  So use an aggressive probe to check that the usage we want is
2882# actually supported "in the wild" to an acceptable degree.
2883# See automake bug#10828.
2884# To make any issue more visible, cause the running configure to be aborted
2885# by default if the 'rm' program in use doesn't match our expectations; the
2886# user can still override this though.
2887if rm -f && rm -fr && rm -rf; then : OK; else
2888  cat >&2 <<'END'
2889Oops!
2890
2891Your 'rm' program seems unable to run without file operands specified
2892on the command line, even when the '-f' option is present.  This is contrary
2893to the behaviour of most rm programs out there, and not conforming with
2894the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2895
2896Please tell bug-automake@gnu.org about your system, including the value
2897of your $PATH and any error possibly output before this message.  This
2898can help us improve future automake versions.
2899
2900END
2901  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2902    echo 'Configuration will proceed anyway, since you have set the' >&2
2903    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2904    echo >&2
2905  else
2906    cat >&2 <<'END'
2907Aborting the configuration process, to ensure you take notice of the issue.
2908
2909You can download and install GNU coreutils to get an 'rm' implementation
2910that behaves properly: <http://www.gnu.org/software/coreutils/>.
2911
2912If you want to complete the configuration process using your problematic
2913'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2914to "yes", and re-run configure.
2915
2916END
2917    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2918  fi
2919fi
2920
2921# The following line causes --disable-maintainer-mode to be the default to
2922# configure. This is necessary because libpng distributions cannot rely on the
2923# time stamps of the autotools generated files being correct
2924
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2926$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2927    # Check whether --enable-maintainer-mode was given.
2928if test "${enable_maintainer_mode+set}" = set; then :
2929  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2930else
2931  USE_MAINTAINER_MODE=no
2932fi
2933
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2935$as_echo "$USE_MAINTAINER_MODE" >&6; }
2936   if test $USE_MAINTAINER_MODE = yes; then
2937  MAINTAINER_MODE_TRUE=
2938  MAINTAINER_MODE_FALSE='#'
2939else
2940  MAINTAINER_MODE_TRUE='#'
2941  MAINTAINER_MODE_FALSE=
2942fi
2943
2944  MAINT=$MAINTAINER_MODE_TRUE
2945
2946
2947
2948
2949PNGLIB_VERSION=1.6.34
2950PNGLIB_MAJOR=1
2951PNGLIB_MINOR=6
2952PNGLIB_RELEASE=34
2953
2954
2955
2956ac_config_headers="$ac_config_headers config.h"
2957
2958
2959# Checks for programs.
2960ac_ext=c
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965
2966ac_ext=c
2967ac_cpp='$CPP $CPPFLAGS'
2968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971if test -n "$ac_tool_prefix"; then
2972  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if ${ac_cv_prog_CC+:} false; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  if test -n "$CC"; then
2980  ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987    for ac_exec_ext in '' $ac_executable_extensions; do
2988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994  done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999CC=$ac_cv_prog_CC
3000if test -n "$CC"; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002$as_echo "$CC" >&6; }
3003else
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008
3009fi
3010if test -z "$ac_cv_prog_CC"; then
3011  ac_ct_CC=$CC
3012  # Extract the first word of "gcc", so it can be a program name with args.
3013set dummy gcc; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$ac_ct_CC"; then
3020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029    ac_cv_prog_ac_ct_CC="gcc"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040if test -n "$ac_ct_CC"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042$as_echo "$ac_ct_CC" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048  if test "x$ac_ct_CC" = x; then
3049    CC=""
3050  else
3051    case $cross_compiling:$ac_tool_warned in
3052yes:)
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055ac_tool_warned=yes ;;
3056esac
3057    CC=$ac_ct_CC
3058  fi
3059else
3060  CC="$ac_cv_prog_CC"
3061fi
3062
3063if test -z "$CC"; then
3064          if test -n "$ac_tool_prefix"; then
3065    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066set dummy ${ac_tool_prefix}cc; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
3069if ${ac_cv_prog_CC+:} false; then :
3070  $as_echo_n "(cached) " >&6
3071else
3072  if test -n "$CC"; then
3073  ac_cv_prog_CC="$CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080    for ac_exec_ext in '' $ac_executable_extensions; do
3081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_CC="${ac_tool_prefix}cc"
3083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087  done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092CC=$ac_cv_prog_CC
3093if test -n "$CC"; then
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095$as_echo "$CC" >&6; }
3096else
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101
3102  fi
3103fi
3104if test -z "$CC"; then
3105  # Extract the first word of "cc", so it can be a program name with args.
3106set dummy cc; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$CC"; then
3113  ac_cv_prog_CC="$CC" # Let the user override the test.
3114else
3115  ac_prog_rejected=no
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124       ac_prog_rejected=yes
3125       continue
3126     fi
3127    ac_cv_prog_CC="cc"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135if test $ac_prog_rejected = yes; then
3136  # We found a bogon in the path, so make sure we never use it.
3137  set dummy $ac_cv_prog_CC
3138  shift
3139  if test $# != 0; then
3140    # We chose a different compiler from the bogus one.
3141    # However, it has the same basename, so the bogon will be chosen
3142    # first if we set CC to just the basename; use the full file name.
3143    shift
3144    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145  fi
3146fi
3147fi
3148fi
3149CC=$ac_cv_prog_CC
3150if test -n "$CC"; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152$as_echo "$CC" >&6; }
3153else
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
3156fi
3157
3158
3159fi
3160if test -z "$CC"; then
3161  if test -n "$ac_tool_prefix"; then
3162  for ac_prog in cl.exe
3163  do
3164    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
3168if ${ac_cv_prog_CC+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  if test -n "$CC"; then
3172  ac_cv_prog_CC="$CC" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186  done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194$as_echo "$CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201    test -n "$CC" && break
3202  done
3203fi
3204if test -z "$CC"; then
3205  ac_ct_CC=$CC
3206  for ac_prog in cl.exe
3207do
3208  # Extract the first word of "$ac_prog", so it can be a program name with args.
3209set dummy $ac_prog; ac_word=$2
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211$as_echo_n "checking for $ac_word... " >&6; }
3212if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213  $as_echo_n "(cached) " >&6
3214else
3215  if test -n "$ac_ct_CC"; then
3216  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  test -z "$as_dir" && as_dir=.
3223    for ac_exec_ext in '' $ac_executable_extensions; do
3224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225    ac_cv_prog_ac_ct_CC="$ac_prog"
3226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227    break 2
3228  fi
3229done
3230  done
3231IFS=$as_save_IFS
3232
3233fi
3234fi
3235ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236if test -n "$ac_ct_CC"; then
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238$as_echo "$ac_ct_CC" >&6; }
3239else
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
3242fi
3243
3244
3245  test -n "$ac_ct_CC" && break
3246done
3247
3248  if test "x$ac_ct_CC" = x; then
3249    CC=""
3250  else
3251    case $cross_compiling:$ac_tool_warned in
3252yes:)
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255ac_tool_warned=yes ;;
3256esac
3257    CC=$ac_ct_CC
3258  fi
3259fi
3260
3261fi
3262
3263
3264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266as_fn_error $? "no acceptable C compiler found in \$PATH
3267See \`config.log' for more details" "$LINENO" 5; }
3268
3269# Provide some information about the compiler.
3270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3271set X $ac_compile
3272ac_compiler=$2
3273for ac_option in --version -v -V -qversion; do
3274  { { ac_try="$ac_compiler $ac_option >&5"
3275case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
3281  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282  ac_status=$?
3283  if test -s conftest.err; then
3284    sed '10a\
3285... rest of stderr output deleted ...
3286         10q' conftest.err >conftest.er1
3287    cat conftest.er1 >&5
3288  fi
3289  rm -f conftest.er1 conftest.err
3290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291  test $ac_status = 0; }
3292done
3293
3294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h.  */
3296
3297int
3298main ()
3299{
3300
3301  ;
3302  return 0;
3303}
3304_ACEOF
3305ac_clean_files_save=$ac_clean_files
3306ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307# Try to create an executable without -o first, disregard a.out.
3308# It will help us diagnose broken compilers, and finding out an intuition
3309# of exeext.
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311$as_echo_n "checking whether the C compiler works... " >&6; }
3312ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313
3314# The possible output files:
3315ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3316
3317ac_rmfiles=
3318for ac_file in $ac_files
3319do
3320  case $ac_file in
3321    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323  esac
3324done
3325rm -f $ac_rmfiles
3326
3327if { { ac_try="$ac_link_default"
3328case "(($ac_try" in
3329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330  *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334  (eval "$ac_link_default") 2>&5
3335  ac_status=$?
3336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337  test $ac_status = 0; }; then :
3338  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3341# so that the user can short-circuit this test for compilers unknown to
3342# Autoconf.
3343for ac_file in $ac_files ''
3344do
3345  test -f "$ac_file" || continue
3346  case $ac_file in
3347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3348	;;
3349    [ab].out )
3350	# We found the default executable, but exeext='' is most
3351	# certainly right.
3352	break;;
3353    *.* )
3354	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355	then :; else
3356	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357	fi
3358	# We set ac_cv_exeext here because the later test for it is not
3359	# safe: cross compilers may not add the suffix if given an `-o'
3360	# argument, so we may need to know it at that point already.
3361	# Even if this section looks crufty: it has the advantage of
3362	# actually working.
3363	break;;
3364    * )
3365	break;;
3366  esac
3367done
3368test "$ac_cv_exeext" = no && ac_cv_exeext=
3369
3370else
3371  ac_file=''
3372fi
3373if test -z "$ac_file"; then :
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375$as_echo "no" >&6; }
3376$as_echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381as_fn_error 77 "C compiler cannot create executables
3382See \`config.log' for more details" "$LINENO" 5; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385$as_echo "yes" >&6; }
3386fi
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388$as_echo_n "checking for C compiler default output file name... " >&6; }
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390$as_echo "$ac_file" >&6; }
3391ac_exeext=$ac_cv_exeext
3392
3393rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394ac_clean_files=$ac_clean_files_save
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396$as_echo_n "checking for suffix of executables... " >&6; }
3397if { { ac_try="$ac_link"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_link") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }; then :
3408  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3410# work properly (i.e., refer to `conftest.exe'), while it won't with
3411# `rm'.
3412for ac_file in conftest.exe conftest conftest.*; do
3413  test -f "$ac_file" || continue
3414  case $ac_file in
3415    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417	  break;;
3418    * ) break;;
3419  esac
3420done
3421else
3422  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425See \`config.log' for more details" "$LINENO" 5; }
3426fi
3427rm -f conftest conftest$ac_cv_exeext
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429$as_echo "$ac_cv_exeext" >&6; }
3430
3431rm -f conftest.$ac_ext
3432EXEEXT=$ac_cv_exeext
3433ac_exeext=$EXEEXT
3434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436#include <stdio.h>
3437int
3438main ()
3439{
3440FILE *f = fopen ("conftest.out", "w");
3441 return ferror (f) || fclose (f) != 0;
3442
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447ac_clean_files="$ac_clean_files conftest.out"
3448# Check that the compiler produces executables we can run.  If not, either
3449# the compiler is broken, or we cross compile.
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451$as_echo_n "checking whether we are cross compiling... " >&6; }
3452if test "$cross_compiling" != yes; then
3453  { { ac_try="$ac_link"
3454case "(($ac_try" in
3455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456  *) ac_try_echo=$ac_try;;
3457esac
3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459$as_echo "$ac_try_echo"; } >&5
3460  (eval "$ac_link") 2>&5
3461  ac_status=$?
3462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463  test $ac_status = 0; }
3464  if { ac_try='./conftest$ac_cv_exeext'
3465  { { case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471  (eval "$ac_try") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }; }; then
3475    cross_compiling=no
3476  else
3477    if test "$cross_compiling" = maybe; then
3478	cross_compiling=yes
3479    else
3480	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482as_fn_error $? "cannot run C compiled programs.
3483If you meant to cross compile, use \`--host'.
3484See \`config.log' for more details" "$LINENO" 5; }
3485    fi
3486  fi
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489$as_echo "$cross_compiling" >&6; }
3490
3491rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492ac_clean_files=$ac_clean_files_save
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494$as_echo_n "checking for suffix of object files... " >&6; }
3495if ${ac_cv_objext+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.o conftest.obj
3510if { { ac_try="$ac_compile"
3511case "(($ac_try" in
3512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513  *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516$as_echo "$ac_try_echo"; } >&5
3517  (eval "$ac_compile") 2>&5
3518  ac_status=$?
3519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520  test $ac_status = 0; }; then :
3521  for ac_file in conftest.o conftest.obj conftest.*; do
3522  test -f "$ac_file" || continue;
3523  case $ac_file in
3524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526       break;;
3527  esac
3528done
3529else
3530  $as_echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535as_fn_error $? "cannot compute suffix of object files: cannot compile
3536See \`config.log' for more details" "$LINENO" 5; }
3537fi
3538rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541$as_echo "$ac_cv_objext" >&6; }
3542OBJEXT=$ac_cv_objext
3543ac_objext=$OBJEXT
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546if ${ac_cv_c_compiler_gnu+:} false; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555#ifndef __GNUC__
3556       choke me
3557#endif
3558
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563if ac_fn_c_try_compile "$LINENO"; then :
3564  ac_compiler_gnu=yes
3565else
3566  ac_compiler_gnu=no
3567fi
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570
3571fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574if test $ac_compiler_gnu = yes; then
3575  GCC=yes
3576else
3577  GCC=
3578fi
3579ac_test_CFLAGS=${CFLAGS+set}
3580ac_save_CFLAGS=$CFLAGS
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582$as_echo_n "checking whether $CC accepts -g... " >&6; }
3583if ${ac_cv_prog_cc_g+:} false; then :
3584  $as_echo_n "(cached) " >&6
3585else
3586  ac_save_c_werror_flag=$ac_c_werror_flag
3587   ac_c_werror_flag=yes
3588   ac_cv_prog_cc_g=no
3589   CFLAGS="-g"
3590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_c_try_compile "$LINENO"; then :
3602  ac_cv_prog_cc_g=yes
3603else
3604  CFLAGS=""
3605      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h.  */
3607
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616if ac_fn_c_try_compile "$LINENO"; then :
3617
3618else
3619  ac_c_werror_flag=$ac_save_c_werror_flag
3620	 CFLAGS="-g"
3621	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623
3624int
3625main ()
3626{
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633  ac_cv_prog_cc_g=yes
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638fi
3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640   ac_c_werror_flag=$ac_save_c_werror_flag
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643$as_echo "$ac_cv_prog_cc_g" >&6; }
3644if test "$ac_test_CFLAGS" = set; then
3645  CFLAGS=$ac_save_CFLAGS
3646elif test $ac_cv_prog_cc_g = yes; then
3647  if test "$GCC" = yes; then
3648    CFLAGS="-g -O2"
3649  else
3650    CFLAGS="-g"
3651  fi
3652else
3653  if test "$GCC" = yes; then
3654    CFLAGS="-O2"
3655  else
3656    CFLAGS=
3657  fi
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661if ${ac_cv_prog_cc_c89+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  ac_cv_prog_cc_c89=no
3665ac_save_CC=$CC
3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668#include <stdarg.h>
3669#include <stdio.h>
3670struct stat;
3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3672struct buf { int x; };
3673FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674static char *e (p, i)
3675     char **p;
3676     int i;
3677{
3678  return p[i];
3679}
3680static char *f (char * (*g) (char **, int), char **p, ...)
3681{
3682  char *s;
3683  va_list v;
3684  va_start (v,p);
3685  s = g (p, va_arg (v,int));
3686  va_end (v);
3687  return s;
3688}
3689
3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3691   function prototypes and stuff, but not '\xHH' hex character constants.
3692   These don't provoke an error unfortunately, instead are silently treated
3693   as 'x'.  The following induces an error, until -std is added to get
3694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3695   array size at least.  It's necessary to write '\x00'==0 to get something
3696   that's true only with -std.  */
3697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700   inside strings and character constants.  */
3701#define FOO(x) 'x'
3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
3710int
3711main ()
3712{
3713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720do
3721  CC="$ac_save_CC $ac_arg"
3722  if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_cv_prog_cc_c89=$ac_arg
3724fi
3725rm -f core conftest.err conftest.$ac_objext
3726  test "x$ac_cv_prog_cc_c89" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730
3731fi
3732# AC_CACHE_VAL
3733case "x$ac_cv_prog_cc_c89" in
3734  x)
3735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736$as_echo "none needed" >&6; } ;;
3737  xno)
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739$as_echo "unsupported" >&6; } ;;
3740  *)
3741    CC="$CC $ac_cv_prog_cc_c89"
3742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744esac
3745if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755ac_ext=c
3756ac_cpp='$CPP $CPPFLAGS'
3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3761$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3762if ${am_cv_prog_cc_c_o+:} false; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776  # Make sure it works both with $CC and with simple cc.
3777  # Following AC_PROG_CC_C_O, we do the test twice because some
3778  # compilers refuse to overwrite an existing .o file with -o,
3779  # though they will create one.
3780  am_cv_prog_cc_c_o=yes
3781  for am_i in 1 2; do
3782    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3783   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } \
3787         && test -f conftest2.$ac_objext; then
3788      : OK
3789    else
3790      am_cv_prog_cc_c_o=no
3791      break
3792    fi
3793  done
3794  rm -f core conftest*
3795  unset am_i
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3798$as_echo "$am_cv_prog_cc_c_o" >&6; }
3799if test "$am_cv_prog_cc_c_o" != yes; then
3800   # Losing compiler, so override with the script.
3801   # FIXME: It is wrong to rewrite CC.
3802   # But if we don't then we get into trouble of one sort or another.
3803   # A longer-term fix would be to have automake use am__CC in this case,
3804   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3805   CC="$am_aux_dir/compile $CC"
3806fi
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813DEPDIR="${am__leading_dot}deps"
3814
3815ac_config_commands="$ac_config_commands depfiles"
3816
3817
3818am_make=${MAKE-make}
3819cat > confinc << 'END'
3820am__doit:
3821	@echo this is the am__doit target
3822.PHONY: am__doit
3823END
3824# If we don't find an include directive, just comment out the code.
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3826$as_echo_n "checking for style of include used by $am_make... " >&6; }
3827am__include="#"
3828am__quote=
3829_am_result=none
3830# First try GNU make style include.
3831echo "include confinc" > confmf
3832# Ignore all kinds of additional output from 'make'.
3833case `$am_make -s -f confmf 2> /dev/null` in #(
3834*the\ am__doit\ target*)
3835  am__include=include
3836  am__quote=
3837  _am_result=GNU
3838  ;;
3839esac
3840# Now try BSD make style include.
3841if test "$am__include" = "#"; then
3842   echo '.include "confinc"' > confmf
3843   case `$am_make -s -f confmf 2> /dev/null` in #(
3844   *the\ am__doit\ target*)
3845     am__include=.include
3846     am__quote="\""
3847     _am_result=BSD
3848     ;;
3849   esac
3850fi
3851
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3854$as_echo "$_am_result" >&6; }
3855rm -f confinc confmf
3856
3857# Check whether --enable-dependency-tracking was given.
3858if test "${enable_dependency_tracking+set}" = set; then :
3859  enableval=$enable_dependency_tracking;
3860fi
3861
3862if test "x$enable_dependency_tracking" != xno; then
3863  am_depcomp="$ac_aux_dir/depcomp"
3864  AMDEPBACKSLASH='\'
3865  am__nodep='_no'
3866fi
3867 if test "x$enable_dependency_tracking" != xno; then
3868  AMDEP_TRUE=
3869  AMDEP_FALSE='#'
3870else
3871  AMDEP_TRUE='#'
3872  AMDEP_FALSE=
3873fi
3874
3875
3876
3877depcc="$CC"   am_compiler_list=
3878
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3880$as_echo_n "checking dependency style of $depcc... " >&6; }
3881if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3882  $as_echo_n "(cached) " >&6
3883else
3884  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3885  # We make a subdir and do the tests there.  Otherwise we can end up
3886  # making bogus files that we don't know about and never remove.  For
3887  # instance it was reported that on HP-UX the gcc test will end up
3888  # making a dummy file named 'D' -- because '-MD' means "put the output
3889  # in D".
3890  rm -rf conftest.dir
3891  mkdir conftest.dir
3892  # Copy depcomp to subdir because otherwise we won't find it if we're
3893  # using a relative directory.
3894  cp "$am_depcomp" conftest.dir
3895  cd conftest.dir
3896  # We will build objects and dependencies in a subdirectory because
3897  # it helps to detect inapplicable dependency modes.  For instance
3898  # both Tru64's cc and ICC support -MD to output dependencies as a
3899  # side effect of compilation, but ICC will put the dependencies in
3900  # the current directory while Tru64 will put them in the object
3901  # directory.
3902  mkdir sub
3903
3904  am_cv_CC_dependencies_compiler_type=none
3905  if test "$am_compiler_list" = ""; then
3906     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3907  fi
3908  am__universal=false
3909  case " $depcc " in #(
3910     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3911     esac
3912
3913  for depmode in $am_compiler_list; do
3914    # Setup a source with many dependencies, because some compilers
3915    # like to wrap large dependency lists on column 80 (with \), and
3916    # we should not choose a depcomp mode which is confused by this.
3917    #
3918    # We need to recreate these files for each test, as the compiler may
3919    # overwrite some of them when testing with obscure command lines.
3920    # This happens at least with the AIX C compiler.
3921    : > sub/conftest.c
3922    for i in 1 2 3 4 5 6; do
3923      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3924      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3925      # Solaris 10 /bin/sh.
3926      echo '/* dummy */' > sub/conftst$i.h
3927    done
3928    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3929
3930    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3931    # mode.  It turns out that the SunPro C++ compiler does not properly
3932    # handle '-M -o', and we need to detect this.  Also, some Intel
3933    # versions had trouble with output in subdirs.
3934    am__obj=sub/conftest.${OBJEXT-o}
3935    am__minus_obj="-o $am__obj"
3936    case $depmode in
3937    gcc)
3938      # This depmode causes a compiler race in universal mode.
3939      test "$am__universal" = false || continue
3940      ;;
3941    nosideeffect)
3942      # After this tag, mechanisms are not by side-effect, so they'll
3943      # only be used when explicitly requested.
3944      if test "x$enable_dependency_tracking" = xyes; then
3945	continue
3946      else
3947	break
3948      fi
3949      ;;
3950    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3951      # This compiler won't grok '-c -o', but also, the minuso test has
3952      # not run yet.  These depmodes are late enough in the game, and
3953      # so weak that their functioning should not be impacted.
3954      am__obj=conftest.${OBJEXT-o}
3955      am__minus_obj=
3956      ;;
3957    none) break ;;
3958    esac
3959    if depmode=$depmode \
3960       source=sub/conftest.c object=$am__obj \
3961       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3962       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3963         >/dev/null 2>conftest.err &&
3964       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3965       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3966       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3967       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3968      # icc doesn't choke on unknown options, it will just issue warnings
3969      # or remarks (even with -Werror).  So we grep stderr for any message
3970      # that says an option was ignored or not supported.
3971      # When given -MP, icc 7.0 and 7.1 complain thusly:
3972      #   icc: Command line warning: ignoring option '-M'; no argument required
3973      # The diagnosis changed in icc 8.0:
3974      #   icc: Command line remark: option '-MP' not supported
3975      if (grep 'ignoring option' conftest.err ||
3976          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3977        am_cv_CC_dependencies_compiler_type=$depmode
3978        break
3979      fi
3980    fi
3981  done
3982
3983  cd ..
3984  rm -rf conftest.dir
3985else
3986  am_cv_CC_dependencies_compiler_type=none
3987fi
3988
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3991$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3992CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3993
3994 if
3995  test "x$enable_dependency_tracking" != xno \
3996  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3997  am__fastdepCC_TRUE=
3998  am__fastdepCC_FALSE='#'
3999else
4000  am__fastdepCC_TRUE='#'
4001  am__fastdepCC_FALSE=
4002fi
4003
4004
4005# By default we simply use the C compiler to build assembly code.
4006
4007test "${CCAS+set}" = set || CCAS=$CC
4008test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4009
4010
4011
4012depcc="$CCAS"   am_compiler_list=
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015$as_echo_n "checking dependency style of $depcc... " >&6; }
4016if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020  # We make a subdir and do the tests there.  Otherwise we can end up
4021  # making bogus files that we don't know about and never remove.  For
4022  # instance it was reported that on HP-UX the gcc test will end up
4023  # making a dummy file named 'D' -- because '-MD' means "put the output
4024  # in D".
4025  rm -rf conftest.dir
4026  mkdir conftest.dir
4027  # Copy depcomp to subdir because otherwise we won't find it if we're
4028  # using a relative directory.
4029  cp "$am_depcomp" conftest.dir
4030  cd conftest.dir
4031  # We will build objects and dependencies in a subdirectory because
4032  # it helps to detect inapplicable dependency modes.  For instance
4033  # both Tru64's cc and ICC support -MD to output dependencies as a
4034  # side effect of compilation, but ICC will put the dependencies in
4035  # the current directory while Tru64 will put them in the object
4036  # directory.
4037  mkdir sub
4038
4039  am_cv_CCAS_dependencies_compiler_type=none
4040  if test "$am_compiler_list" = ""; then
4041     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042  fi
4043  am__universal=false
4044
4045
4046  for depmode in $am_compiler_list; do
4047    # Setup a source with many dependencies, because some compilers
4048    # like to wrap large dependency lists on column 80 (with \), and
4049    # we should not choose a depcomp mode which is confused by this.
4050    #
4051    # We need to recreate these files for each test, as the compiler may
4052    # overwrite some of them when testing with obscure command lines.
4053    # This happens at least with the AIX C compiler.
4054    : > sub/conftest.c
4055    for i in 1 2 3 4 5 6; do
4056      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4058      # Solaris 10 /bin/sh.
4059      echo '/* dummy */' > sub/conftst$i.h
4060    done
4061    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4062
4063    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4064    # mode.  It turns out that the SunPro C++ compiler does not properly
4065    # handle '-M -o', and we need to detect this.  Also, some Intel
4066    # versions had trouble with output in subdirs.
4067    am__obj=sub/conftest.${OBJEXT-o}
4068    am__minus_obj="-o $am__obj"
4069    case $depmode in
4070    gcc)
4071      # This depmode causes a compiler race in universal mode.
4072      test "$am__universal" = false || continue
4073      ;;
4074    nosideeffect)
4075      # After this tag, mechanisms are not by side-effect, so they'll
4076      # only be used when explicitly requested.
4077      if test "x$enable_dependency_tracking" = xyes; then
4078	continue
4079      else
4080	break
4081      fi
4082      ;;
4083    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4084      # This compiler won't grok '-c -o', but also, the minuso test has
4085      # not run yet.  These depmodes are late enough in the game, and
4086      # so weak that their functioning should not be impacted.
4087      am__obj=conftest.${OBJEXT-o}
4088      am__minus_obj=
4089      ;;
4090    none) break ;;
4091    esac
4092    if depmode=$depmode \
4093       source=sub/conftest.c object=$am__obj \
4094       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4095       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4096         >/dev/null 2>conftest.err &&
4097       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4098       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4099       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4100       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4101      # icc doesn't choke on unknown options, it will just issue warnings
4102      # or remarks (even with -Werror).  So we grep stderr for any message
4103      # that says an option was ignored or not supported.
4104      # When given -MP, icc 7.0 and 7.1 complain thusly:
4105      #   icc: Command line warning: ignoring option '-M'; no argument required
4106      # The diagnosis changed in icc 8.0:
4107      #   icc: Command line remark: option '-MP' not supported
4108      if (grep 'ignoring option' conftest.err ||
4109          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4110        am_cv_CCAS_dependencies_compiler_type=$depmode
4111        break
4112      fi
4113    fi
4114  done
4115
4116  cd ..
4117  rm -rf conftest.dir
4118else
4119  am_cv_CCAS_dependencies_compiler_type=none
4120fi
4121
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4124$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4125CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4126
4127 if
4128  test "x$enable_dependency_tracking" != xno \
4129  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4130  am__fastdepCCAS_TRUE=
4131  am__fastdepCCAS_FALSE='#'
4132else
4133  am__fastdepCCAS_TRUE='#'
4134  am__fastdepCCAS_FALSE=
4135fi
4136
4137
4138# Make sure we can run config.sub.
4139$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4140  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4143$as_echo_n "checking build system type... " >&6; }
4144if ${ac_cv_build+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  ac_build_alias=$build_alias
4148test "x$ac_build_alias" = x &&
4149  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4150test "x$ac_build_alias" = x &&
4151  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4152ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4153  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4154
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4157$as_echo "$ac_cv_build" >&6; }
4158case $ac_cv_build in
4159*-*-*) ;;
4160*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4161esac
4162build=$ac_cv_build
4163ac_save_IFS=$IFS; IFS='-'
4164set x $ac_cv_build
4165shift
4166build_cpu=$1
4167build_vendor=$2
4168shift; shift
4169# Remember, the first character of IFS is used to create $*,
4170# except with old shells:
4171build_os=$*
4172IFS=$ac_save_IFS
4173case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4174
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4177$as_echo_n "checking host system type... " >&6; }
4178if ${ac_cv_host+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180else
4181  if test "x$host_alias" = x; then
4182  ac_cv_host=$ac_cv_build
4183else
4184  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4185    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4186fi
4187
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4190$as_echo "$ac_cv_host" >&6; }
4191case $ac_cv_host in
4192*-*-*) ;;
4193*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4194esac
4195host=$ac_cv_host
4196ac_save_IFS=$IFS; IFS='-'
4197set x $ac_cv_host
4198shift
4199host_cpu=$1
4200host_vendor=$2
4201shift; shift
4202# Remember, the first character of IFS is used to create $*,
4203# except with old shells:
4204host_os=$*
4205IFS=$ac_save_IFS
4206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4207
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4210$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4211if ${ac_cv_path_SED+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4215     for ac_i in 1 2 3 4 5 6 7; do
4216       ac_script="$ac_script$as_nl$ac_script"
4217     done
4218     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4219     { ac_script=; unset ac_script;}
4220     if test -z "$SED"; then
4221  ac_path_SED_found=false
4222  # Loop through the user's path and test for each of PROGNAME-LIST
4223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226  IFS=$as_save_IFS
4227  test -z "$as_dir" && as_dir=.
4228    for ac_prog in sed gsed; do
4229    for ac_exec_ext in '' $ac_executable_extensions; do
4230      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4231      as_fn_executable_p "$ac_path_SED" || continue
4232# Check for GNU ac_path_SED and select it if it is found.
4233  # Check for GNU $ac_path_SED
4234case `"$ac_path_SED" --version 2>&1` in
4235*GNU*)
4236  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4237*)
4238  ac_count=0
4239  $as_echo_n 0123456789 >"conftest.in"
4240  while :
4241  do
4242    cat "conftest.in" "conftest.in" >"conftest.tmp"
4243    mv "conftest.tmp" "conftest.in"
4244    cp "conftest.in" "conftest.nl"
4245    $as_echo '' >> "conftest.nl"
4246    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248    as_fn_arith $ac_count + 1 && ac_count=$as_val
4249    if test $ac_count -gt ${ac_path_SED_max-0}; then
4250      # Best one so far, save it but keep looking for a better one
4251      ac_cv_path_SED="$ac_path_SED"
4252      ac_path_SED_max=$ac_count
4253    fi
4254    # 10*(2^10) chars as input seems more than enough
4255    test $ac_count -gt 10 && break
4256  done
4257  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258esac
4259
4260      $ac_path_SED_found && break 3
4261    done
4262  done
4263  done
4264IFS=$as_save_IFS
4265  if test -z "$ac_cv_path_SED"; then
4266    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4267  fi
4268else
4269  ac_cv_path_SED=$SED
4270fi
4271
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4274$as_echo "$ac_cv_path_SED" >&6; }
4275 SED="$ac_cv_path_SED"
4276  rm -f conftest.sed
4277
4278test -z "$SED" && SED=sed
4279Xsed="$SED -e 1s/^X//"
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4292$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4293if ${ac_cv_path_GREP+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if test -z "$GREP"; then
4297  ac_path_GREP_found=false
4298  # Loop through the user's path and test for each of PROGNAME-LIST
4299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_prog in grep ggrep; do
4305    for ac_exec_ext in '' $ac_executable_extensions; do
4306      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4307      as_fn_executable_p "$ac_path_GREP" || continue
4308# Check for GNU ac_path_GREP and select it if it is found.
4309  # Check for GNU $ac_path_GREP
4310case `"$ac_path_GREP" --version 2>&1` in
4311*GNU*)
4312  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4313*)
4314  ac_count=0
4315  $as_echo_n 0123456789 >"conftest.in"
4316  while :
4317  do
4318    cat "conftest.in" "conftest.in" >"conftest.tmp"
4319    mv "conftest.tmp" "conftest.in"
4320    cp "conftest.in" "conftest.nl"
4321    $as_echo 'GREP' >> "conftest.nl"
4322    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324    as_fn_arith $ac_count + 1 && ac_count=$as_val
4325    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4326      # Best one so far, save it but keep looking for a better one
4327      ac_cv_path_GREP="$ac_path_GREP"
4328      ac_path_GREP_max=$ac_count
4329    fi
4330    # 10*(2^10) chars as input seems more than enough
4331    test $ac_count -gt 10 && break
4332  done
4333  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
4336      $ac_path_GREP_found && break 3
4337    done
4338  done
4339  done
4340IFS=$as_save_IFS
4341  if test -z "$ac_cv_path_GREP"; then
4342    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343  fi
4344else
4345  ac_cv_path_GREP=$GREP
4346fi
4347
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4350$as_echo "$ac_cv_path_GREP" >&6; }
4351 GREP="$ac_cv_path_GREP"
4352
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4355$as_echo_n "checking for egrep... " >&6; }
4356if ${ac_cv_path_EGREP+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360   then ac_cv_path_EGREP="$GREP -E"
4361   else
4362     if test -z "$EGREP"; then
4363  ac_path_EGREP_found=false
4364  # Loop through the user's path and test for each of PROGNAME-LIST
4365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370    for ac_prog in egrep; do
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4373      as_fn_executable_p "$ac_path_EGREP" || continue
4374# Check for GNU ac_path_EGREP and select it if it is found.
4375  # Check for GNU $ac_path_EGREP
4376case `"$ac_path_EGREP" --version 2>&1` in
4377*GNU*)
4378  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4379*)
4380  ac_count=0
4381  $as_echo_n 0123456789 >"conftest.in"
4382  while :
4383  do
4384    cat "conftest.in" "conftest.in" >"conftest.tmp"
4385    mv "conftest.tmp" "conftest.in"
4386    cp "conftest.in" "conftest.nl"
4387    $as_echo 'EGREP' >> "conftest.nl"
4388    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390    as_fn_arith $ac_count + 1 && ac_count=$as_val
4391    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4392      # Best one so far, save it but keep looking for a better one
4393      ac_cv_path_EGREP="$ac_path_EGREP"
4394      ac_path_EGREP_max=$ac_count
4395    fi
4396    # 10*(2^10) chars as input seems more than enough
4397    test $ac_count -gt 10 && break
4398  done
4399  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400esac
4401
4402      $ac_path_EGREP_found && break 3
4403    done
4404  done
4405  done
4406IFS=$as_save_IFS
4407  if test -z "$ac_cv_path_EGREP"; then
4408    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409  fi
4410else
4411  ac_cv_path_EGREP=$EGREP
4412fi
4413
4414   fi
4415fi
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4417$as_echo "$ac_cv_path_EGREP" >&6; }
4418 EGREP="$ac_cv_path_EGREP"
4419
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4422$as_echo_n "checking for fgrep... " >&6; }
4423if ${ac_cv_path_FGREP+:} false; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4427   then ac_cv_path_FGREP="$GREP -F"
4428   else
4429     if test -z "$FGREP"; then
4430  ac_path_FGREP_found=false
4431  # Loop through the user's path and test for each of PROGNAME-LIST
4432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437    for ac_prog in fgrep; do
4438    for ac_exec_ext in '' $ac_executable_extensions; do
4439      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4440      as_fn_executable_p "$ac_path_FGREP" || continue
4441# Check for GNU ac_path_FGREP and select it if it is found.
4442  # Check for GNU $ac_path_FGREP
4443case `"$ac_path_FGREP" --version 2>&1` in
4444*GNU*)
4445  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4446*)
4447  ac_count=0
4448  $as_echo_n 0123456789 >"conftest.in"
4449  while :
4450  do
4451    cat "conftest.in" "conftest.in" >"conftest.tmp"
4452    mv "conftest.tmp" "conftest.in"
4453    cp "conftest.in" "conftest.nl"
4454    $as_echo 'FGREP' >> "conftest.nl"
4455    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4456    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4457    as_fn_arith $ac_count + 1 && ac_count=$as_val
4458    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4459      # Best one so far, save it but keep looking for a better one
4460      ac_cv_path_FGREP="$ac_path_FGREP"
4461      ac_path_FGREP_max=$ac_count
4462    fi
4463    # 10*(2^10) chars as input seems more than enough
4464    test $ac_count -gt 10 && break
4465  done
4466  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467esac
4468
4469      $ac_path_FGREP_found && break 3
4470    done
4471  done
4472  done
4473IFS=$as_save_IFS
4474  if test -z "$ac_cv_path_FGREP"; then
4475    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476  fi
4477else
4478  ac_cv_path_FGREP=$FGREP
4479fi
4480
4481   fi
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4484$as_echo "$ac_cv_path_FGREP" >&6; }
4485 FGREP="$ac_cv_path_FGREP"
4486
4487
4488test -z "$GREP" && GREP=grep
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4507ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4508ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4511$as_echo_n "checking how to print strings... " >&6; }
4512# Test print first, because it will be a builtin if present.
4513if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4514   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4515  ECHO='print -r --'
4516elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4517  ECHO='printf %s\n'
4518else
4519  # Use this function as a fallback that always works.
4520  func_fallback_echo ()
4521  {
4522    eval 'cat <<_LTECHO_EOF
4523$1
4524_LTECHO_EOF'
4525  }
4526  ECHO='func_fallback_echo'
4527fi
4528
4529# func_echo_all arg...
4530# Invoke $ECHO with all args, space-separated.
4531func_echo_all ()
4532{
4533    $ECHO ""
4534}
4535
4536case $ECHO in
4537  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4538$as_echo "printf" >&6; } ;;
4539  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4540$as_echo "print -r" >&6; } ;;
4541  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4542$as_echo "cat" >&6; } ;;
4543esac
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560# Check whether --with-gnu-ld was given.
4561if test "${with_gnu_ld+set}" = set; then :
4562  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4563else
4564  with_gnu_ld=no
4565fi
4566
4567ac_prog=ld
4568if test yes = "$GCC"; then
4569  # Check if gcc -print-prog-name=ld gives a path.
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4571$as_echo_n "checking for ld used by $CC... " >&6; }
4572  case $host in
4573  *-*-mingw*)
4574    # gcc leaves a trailing carriage return, which upsets mingw
4575    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4576  *)
4577    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4578  esac
4579  case $ac_prog in
4580    # Accept absolute paths.
4581    [\\/]* | ?:[\\/]*)
4582      re_direlt='/[^/][^/]*/\.\./'
4583      # Canonicalize the pathname of ld
4584      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4585      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4586	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4587      done
4588      test -z "$LD" && LD=$ac_prog
4589      ;;
4590  "")
4591    # If it fails, then pretend we aren't using GCC.
4592    ac_prog=ld
4593    ;;
4594  *)
4595    # If it is relative, then search for the first ld in PATH.
4596    with_gnu_ld=unknown
4597    ;;
4598  esac
4599elif test yes = "$with_gnu_ld"; then
4600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4601$as_echo_n "checking for GNU ld... " >&6; }
4602else
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4604$as_echo_n "checking for non-GNU ld... " >&6; }
4605fi
4606if ${lt_cv_path_LD+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  if test -z "$LD"; then
4610  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4611  for ac_dir in $PATH; do
4612    IFS=$lt_save_ifs
4613    test -z "$ac_dir" && ac_dir=.
4614    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4615      lt_cv_path_LD=$ac_dir/$ac_prog
4616      # Check to see if the program is GNU ld.  I'd rather use --version,
4617      # but apparently some variants of GNU ld only accept -v.
4618      # Break only if it was the GNU/non-GNU ld that we prefer.
4619      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4620      *GNU* | *'with BFD'*)
4621	test no != "$with_gnu_ld" && break
4622	;;
4623      *)
4624	test yes != "$with_gnu_ld" && break
4625	;;
4626      esac
4627    fi
4628  done
4629  IFS=$lt_save_ifs
4630else
4631  lt_cv_path_LD=$LD # Let the user override the test with a path.
4632fi
4633fi
4634
4635LD=$lt_cv_path_LD
4636if test -n "$LD"; then
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4638$as_echo "$LD" >&6; }
4639else
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }
4642fi
4643test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4645$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4646if ${lt_cv_prog_gnu_ld+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4650case `$LD -v 2>&1 </dev/null` in
4651*GNU* | *'with BFD'*)
4652  lt_cv_prog_gnu_ld=yes
4653  ;;
4654*)
4655  lt_cv_prog_gnu_ld=no
4656  ;;
4657esac
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4660$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4661with_gnu_ld=$lt_cv_prog_gnu_ld
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671ac_ext=c
4672ac_cpp='$CPP $CPPFLAGS'
4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4677$as_echo_n "checking how to run the C preprocessor... " >&6; }
4678# On Suns, sometimes $CPP names a directory.
4679if test -n "$CPP" && test -d "$CPP"; then
4680  CPP=
4681fi
4682if test -z "$CPP"; then
4683  if ${ac_cv_prog_CPP+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686      # Double quotes because CPP needs to be expanded
4687    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4688    do
4689      ac_preproc_ok=false
4690for ac_c_preproc_warn_flag in '' yes
4691do
4692  # Use a header file that comes with gcc, so configuring glibc
4693  # with a fresh cross-compiler works.
4694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695  # <limits.h> exists even on freestanding compilers.
4696  # On the NeXT, cc -E runs the code through the compiler's parser,
4697  # not just through cpp. "Syntax error" is here to catch this case.
4698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h.  */
4700#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
4705		     Syntax error
4706_ACEOF
4707if ac_fn_c_try_cpp "$LINENO"; then :
4708
4709else
4710  # Broken: fails on valid input.
4711continue
4712fi
4713rm -f conftest.err conftest.i conftest.$ac_ext
4714
4715  # OK, works on sane cases.  Now check whether nonexistent headers
4716  # can be detected and how.
4717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h.  */
4719#include <ac_nonexistent.h>
4720_ACEOF
4721if ac_fn_c_try_cpp "$LINENO"; then :
4722  # Broken: success on invalid input.
4723continue
4724else
4725  # Passes both tests.
4726ac_preproc_ok=:
4727break
4728fi
4729rm -f conftest.err conftest.i conftest.$ac_ext
4730
4731done
4732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4733rm -f conftest.i conftest.err conftest.$ac_ext
4734if $ac_preproc_ok; then :
4735  break
4736fi
4737
4738    done
4739    ac_cv_prog_CPP=$CPP
4740
4741fi
4742  CPP=$ac_cv_prog_CPP
4743else
4744  ac_cv_prog_CPP=$CPP
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4747$as_echo "$CPP" >&6; }
4748ac_preproc_ok=false
4749for ac_c_preproc_warn_flag in '' yes
4750do
4751  # Use a header file that comes with gcc, so configuring glibc
4752  # with a fresh cross-compiler works.
4753  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4754  # <limits.h> exists even on freestanding compilers.
4755  # On the NeXT, cc -E runs the code through the compiler's parser,
4756  # not just through cpp. "Syntax error" is here to catch this case.
4757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759#ifdef __STDC__
4760# include <limits.h>
4761#else
4762# include <assert.h>
4763#endif
4764		     Syntax error
4765_ACEOF
4766if ac_fn_c_try_cpp "$LINENO"; then :
4767
4768else
4769  # Broken: fails on valid input.
4770continue
4771fi
4772rm -f conftest.err conftest.i conftest.$ac_ext
4773
4774  # OK, works on sane cases.  Now check whether nonexistent headers
4775  # can be detected and how.
4776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h.  */
4778#include <ac_nonexistent.h>
4779_ACEOF
4780if ac_fn_c_try_cpp "$LINENO"; then :
4781  # Broken: success on invalid input.
4782continue
4783else
4784  # Passes both tests.
4785ac_preproc_ok=:
4786break
4787fi
4788rm -f conftest.err conftest.i conftest.$ac_ext
4789
4790done
4791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4792rm -f conftest.i conftest.err conftest.$ac_ext
4793if $ac_preproc_ok; then :
4794
4795else
4796  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4798as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4799See \`config.log' for more details" "$LINENO" 5; }
4800fi
4801
4802ac_ext=c
4803ac_cpp='$CPP $CPPFLAGS'
4804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807
4808for ac_prog in gawk mawk nawk awk
4809do
4810  # Extract the first word of "$ac_prog", so it can be a program name with args.
4811set dummy $ac_prog; ac_word=$2
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813$as_echo_n "checking for $ac_word... " >&6; }
4814if ${ac_cv_prog_AWK+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  if test -n "$AWK"; then
4818  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823  IFS=$as_save_IFS
4824  test -z "$as_dir" && as_dir=.
4825    for ac_exec_ext in '' $ac_executable_extensions; do
4826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827    ac_cv_prog_AWK="$ac_prog"
4828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829    break 2
4830  fi
4831done
4832  done
4833IFS=$as_save_IFS
4834
4835fi
4836fi
4837AWK=$ac_cv_prog_AWK
4838if test -n "$AWK"; then
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4840$as_echo "$AWK" >&6; }
4841else
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844fi
4845
4846
4847  test -n "$AWK" && break
4848done
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4852$as_echo_n "checking whether ln -s works... " >&6; }
4853LN_S=$as_ln_s
4854if test "$LN_S" = "ln -s"; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856$as_echo "yes" >&6; }
4857else
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4859$as_echo "no, using $LN_S" >&6; }
4860fi
4861
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4863$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4864set x ${MAKE-make}
4865ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4866if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  cat >conftest.make <<\_ACEOF
4870SHELL = /bin/sh
4871all:
4872	@echo '@@@%%%=$(MAKE)=@@@%%%'
4873_ACEOF
4874# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4875case `${MAKE-make} -f conftest.make 2>/dev/null` in
4876  *@@@%%%=?*=@@@%%%*)
4877    eval ac_cv_prog_make_${ac_make}_set=yes;;
4878  *)
4879    eval ac_cv_prog_make_${ac_make}_set=no;;
4880esac
4881rm -f conftest.make
4882fi
4883if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4885$as_echo "yes" >&6; }
4886  SET_MAKE=
4887else
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890  SET_MAKE="MAKE=${MAKE-make}"
4891fi
4892
4893
4894case `pwd` in
4895  *\ * | *\	*)
4896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4897$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4898esac
4899
4900
4901
4902macro_version='2.4.6'
4903macro_revision='2.4.6'
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917ltmain=$ac_aux_dir/ltmain.sh
4918
4919# Backslashify metacharacters that are still active within
4920# double-quoted strings.
4921sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4922
4923# Same as above, but do not quote variable references.
4924double_quote_subst='s/\(["`\\]\)/\\\1/g'
4925
4926# Sed substitution to delay expansion of an escaped shell variable in a
4927# double_quote_subst'ed string.
4928delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4929
4930# Sed substitution to delay expansion of an escaped single quote.
4931delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4932
4933# Sed substitution to avoid accidental globbing in evaled expressions
4934no_glob_subst='s/\*/\\\*/g'
4935
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4937$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4938if ${lt_cv_path_NM+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  if test -n "$NM"; then
4942  # Let the user override the test.
4943  lt_cv_path_NM=$NM
4944else
4945  lt_nm_to_check=${ac_tool_prefix}nm
4946  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4947    lt_nm_to_check="$lt_nm_to_check nm"
4948  fi
4949  for lt_tmp_nm in $lt_nm_to_check; do
4950    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4951    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4952      IFS=$lt_save_ifs
4953      test -z "$ac_dir" && ac_dir=.
4954      tmp_nm=$ac_dir/$lt_tmp_nm
4955      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4956	# Check to see if the nm accepts a BSD-compat flag.
4957	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4958	#   nm: unknown option "B" ignored
4959	# Tru64's nm complains that /dev/null is an invalid object file
4960	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4961	case $build_os in
4962	mingw*) lt_bad_file=conftest.nm/nofile ;;
4963	*) lt_bad_file=/dev/null ;;
4964	esac
4965	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4966	*$lt_bad_file* | *'Invalid file or object type'*)
4967	  lt_cv_path_NM="$tmp_nm -B"
4968	  break 2
4969	  ;;
4970	*)
4971	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972	  */dev/null*)
4973	    lt_cv_path_NM="$tmp_nm -p"
4974	    break 2
4975	    ;;
4976	  *)
4977	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978	    continue # so that we can try to find one that supports BSD flags
4979	    ;;
4980	  esac
4981	  ;;
4982	esac
4983      fi
4984    done
4985    IFS=$lt_save_ifs
4986  done
4987  : ${lt_cv_path_NM=no}
4988fi
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991$as_echo "$lt_cv_path_NM" >&6; }
4992if test no != "$lt_cv_path_NM"; then
4993  NM=$lt_cv_path_NM
4994else
4995  # Didn't find any BSD compatible name lister, look for dumpbin.
4996  if test -n "$DUMPBIN"; then :
4997    # Let the user override the test.
4998  else
4999    if test -n "$ac_tool_prefix"; then
5000  for ac_prog in dumpbin "link -dump"
5001  do
5002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if ${ac_cv_prog_DUMPBIN+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$DUMPBIN"; then
5010  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024  done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029DUMPBIN=$ac_cv_prog_DUMPBIN
5030if test -n "$DUMPBIN"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032$as_echo "$DUMPBIN" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039    test -n "$DUMPBIN" && break
5040  done
5041fi
5042if test -z "$DUMPBIN"; then
5043  ac_ct_DUMPBIN=$DUMPBIN
5044  for ac_prog in dumpbin "link -dump"
5045do
5046  # Extract the first word of "$ac_prog", so it can be a program name with args.
5047set dummy $ac_prog; ac_word=$2
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -n "$ac_ct_DUMPBIN"; then
5054  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061    for ac_exec_ext in '' $ac_executable_extensions; do
5062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065    break 2
5066  fi
5067done
5068  done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074if test -n "$ac_ct_DUMPBIN"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076$as_echo "$ac_ct_DUMPBIN" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079$as_echo "no" >&6; }
5080fi
5081
5082
5083  test -n "$ac_ct_DUMPBIN" && break
5084done
5085
5086  if test "x$ac_ct_DUMPBIN" = x; then
5087    DUMPBIN=":"
5088  else
5089    case $cross_compiling:$ac_tool_warned in
5090yes:)
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093ac_tool_warned=yes ;;
5094esac
5095    DUMPBIN=$ac_ct_DUMPBIN
5096  fi
5097fi
5098
5099    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5100    *COFF*)
5101      DUMPBIN="$DUMPBIN -symbols -headers"
5102      ;;
5103    *)
5104      DUMPBIN=:
5105      ;;
5106    esac
5107  fi
5108
5109  if test : != "$DUMPBIN"; then
5110    NM=$DUMPBIN
5111  fi
5112fi
5113test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122if ${lt_cv_nm_interface+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  lt_cv_nm_interface="BSD nm"
5126  echo "int some_variable = 0;" > conftest.$ac_ext
5127  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128  (eval "$ac_compile" 2>conftest.err)
5129  cat conftest.err >&5
5130  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132  cat conftest.err >&5
5133  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134  cat conftest.out >&5
5135  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136    lt_cv_nm_interface="MS dumpbin"
5137  fi
5138  rm -f conftest*
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141$as_echo "$lt_cv_nm_interface" >&6; }
5142
5143# find the maximum length of command line arguments
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5145$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5146if ${lt_cv_sys_max_cmd_len+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149    i=0
5150  teststring=ABCD
5151
5152  case $build_os in
5153  msdosdjgpp*)
5154    # On DJGPP, this test can blow up pretty badly due to problems in libc
5155    # (any single argument exceeding 2000 bytes causes a buffer overrun
5156    # during glob expansion).  Even if it were fixed, the result of this
5157    # check would be larger than it should be.
5158    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5159    ;;
5160
5161  gnu*)
5162    # Under GNU Hurd, this test is not required because there is
5163    # no limit to the length of command line arguments.
5164    # Libtool will interpret -1 as no limit whatsoever
5165    lt_cv_sys_max_cmd_len=-1;
5166    ;;
5167
5168  cygwin* | mingw* | cegcc*)
5169    # On Win9x/ME, this test blows up -- it succeeds, but takes
5170    # about 5 minutes as the teststring grows exponentially.
5171    # Worse, since 9x/ME are not pre-emptively multitasking,
5172    # you end up with a "frozen" computer, even though with patience
5173    # the test eventually succeeds (with a max line length of 256k).
5174    # Instead, let's just punt: use the minimum linelength reported by
5175    # all of the supported platforms: 8192 (on NT/2K/XP).
5176    lt_cv_sys_max_cmd_len=8192;
5177    ;;
5178
5179  mint*)
5180    # On MiNT this can take a long time and run out of memory.
5181    lt_cv_sys_max_cmd_len=8192;
5182    ;;
5183
5184  amigaos*)
5185    # On AmigaOS with pdksh, this test takes hours, literally.
5186    # So we just punt and use a minimum line length of 8192.
5187    lt_cv_sys_max_cmd_len=8192;
5188    ;;
5189
5190  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5191    # This has been around since 386BSD, at least.  Likely further.
5192    if test -x /sbin/sysctl; then
5193      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194    elif test -x /usr/sbin/sysctl; then
5195      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196    else
5197      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5198    fi
5199    # And add a safety zone
5200    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202    ;;
5203
5204  interix*)
5205    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206    lt_cv_sys_max_cmd_len=196608
5207    ;;
5208
5209  os2*)
5210    # The test takes a long time on OS/2.
5211    lt_cv_sys_max_cmd_len=8192
5212    ;;
5213
5214  osf*)
5215    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217    # nice to cause kernel panics so lets avoid the loop below.
5218    # First set a reasonable default.
5219    lt_cv_sys_max_cmd_len=16384
5220    #
5221    if test -x /sbin/sysconfig; then
5222      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224      esac
5225    fi
5226    ;;
5227  sco3.2v5*)
5228    lt_cv_sys_max_cmd_len=102400
5229    ;;
5230  sysv5* | sco5v6* | sysv4.2uw2*)
5231    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232    if test -n "$kargmax"; then
5233      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5234    else
5235      lt_cv_sys_max_cmd_len=32768
5236    fi
5237    ;;
5238  *)
5239    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240    if test -n "$lt_cv_sys_max_cmd_len" && \
5241       test undefined != "$lt_cv_sys_max_cmd_len"; then
5242      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244    else
5245      # Make teststring a little bigger before we do anything with it.
5246      # a 1K string should be a reasonable start.
5247      for i in 1 2 3 4 5 6 7 8; do
5248        teststring=$teststring$teststring
5249      done
5250      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5251      # If test is not a shell built-in, we'll probably end up computing a
5252      # maximum length that is only half of the actual maximum length, but
5253      # we can't tell.
5254      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5255	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5256	      test 17 != "$i" # 1/2 MB should be enough
5257      do
5258        i=`expr $i + 1`
5259        teststring=$teststring$teststring
5260      done
5261      # Only check the string length outside the loop.
5262      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5263      teststring=
5264      # Add a significant safety factor because C++ compilers can tack on
5265      # massive amounts of additional arguments before passing them to the
5266      # linker.  It appears as though 1/2 is a usable value.
5267      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5268    fi
5269    ;;
5270  esac
5271
5272fi
5273
5274if test -n "$lt_cv_sys_max_cmd_len"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5276$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5279$as_echo "none" >&6; }
5280fi
5281max_cmd_len=$lt_cv_sys_max_cmd_len
5282
5283
5284
5285
5286
5287
5288: ${CP="cp -f"}
5289: ${MV="mv -f"}
5290: ${RM="rm -f"}
5291
5292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5293  lt_unset=unset
5294else
5295  lt_unset=false
5296fi
5297
5298
5299
5300
5301
5302# test EBCDIC or ASCII
5303case `echo X|tr X '\101'` in
5304 A) # ASCII based system
5305    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5306  lt_SP2NL='tr \040 \012'
5307  lt_NL2SP='tr \015\012 \040\040'
5308  ;;
5309 *) # EBCDIC based system
5310  lt_SP2NL='tr \100 \n'
5311  lt_NL2SP='tr \r\n \100\100'
5312  ;;
5313esac
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5324$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5325if ${lt_cv_to_host_file_cmd+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  case $host in
5329  *-*-mingw* )
5330    case $build in
5331      *-*-mingw* ) # actually msys
5332        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5333        ;;
5334      *-*-cygwin* )
5335        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5336        ;;
5337      * ) # otherwise, assume *nix
5338        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5339        ;;
5340    esac
5341    ;;
5342  *-*-cygwin* )
5343    case $build in
5344      *-*-mingw* ) # actually msys
5345        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5346        ;;
5347      *-*-cygwin* )
5348        lt_cv_to_host_file_cmd=func_convert_file_noop
5349        ;;
5350      * ) # otherwise, assume *nix
5351        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5352        ;;
5353    esac
5354    ;;
5355  * ) # unhandled hosts (and "normal" native builds)
5356    lt_cv_to_host_file_cmd=func_convert_file_noop
5357    ;;
5358esac
5359
5360fi
5361
5362to_host_file_cmd=$lt_cv_to_host_file_cmd
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5364$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5365
5366
5367
5368
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5371$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5372if ${lt_cv_to_tool_file_cmd+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  #assume ordinary cross tools, or native build.
5376lt_cv_to_tool_file_cmd=func_convert_file_noop
5377case $host in
5378  *-*-mingw* )
5379    case $build in
5380      *-*-mingw* ) # actually msys
5381        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5382        ;;
5383    esac
5384    ;;
5385esac
5386
5387fi
5388
5389to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5391$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5392
5393
5394
5395
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5398$as_echo_n "checking for $LD option to reload object files... " >&6; }
5399if ${lt_cv_ld_reload_flag+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  lt_cv_ld_reload_flag='-r'
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5405$as_echo "$lt_cv_ld_reload_flag" >&6; }
5406reload_flag=$lt_cv_ld_reload_flag
5407case $reload_flag in
5408"" | " "*) ;;
5409*) reload_flag=" $reload_flag" ;;
5410esac
5411reload_cmds='$LD$reload_flag -o $output$reload_objs'
5412case $host_os in
5413  cygwin* | mingw* | pw32* | cegcc*)
5414    if test yes != "$GCC"; then
5415      reload_cmds=false
5416    fi
5417    ;;
5418  darwin*)
5419    if test yes = "$GCC"; then
5420      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5421    else
5422      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5423    fi
5424    ;;
5425esac
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435if test -n "$ac_tool_prefix"; then
5436  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5437set dummy ${ac_tool_prefix}objdump; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_OBJDUMP+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  if test -n "$OBJDUMP"; then
5444  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449  IFS=$as_save_IFS
5450  test -z "$as_dir" && as_dir=.
5451    for ac_exec_ext in '' $ac_executable_extensions; do
5452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455    break 2
5456  fi
5457done
5458  done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463OBJDUMP=$ac_cv_prog_OBJDUMP
5464if test -n "$OBJDUMP"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5466$as_echo "$OBJDUMP" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472
5473fi
5474if test -z "$ac_cv_prog_OBJDUMP"; then
5475  ac_ct_OBJDUMP=$OBJDUMP
5476  # Extract the first word of "objdump", so it can be a program name with args.
5477set dummy objdump; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  if test -n "$ac_ct_OBJDUMP"; then
5484  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5504if test -n "$ac_ct_OBJDUMP"; then
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5506$as_echo "$ac_ct_OBJDUMP" >&6; }
5507else
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512  if test "x$ac_ct_OBJDUMP" = x; then
5513    OBJDUMP="false"
5514  else
5515    case $cross_compiling:$ac_tool_warned in
5516yes:)
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519ac_tool_warned=yes ;;
5520esac
5521    OBJDUMP=$ac_ct_OBJDUMP
5522  fi
5523else
5524  OBJDUMP="$ac_cv_prog_OBJDUMP"
5525fi
5526
5527test -z "$OBJDUMP" && OBJDUMP=objdump
5528
5529
5530
5531
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5535$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5536if ${lt_cv_deplibs_check_method+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  lt_cv_file_magic_cmd='$MAGIC_CMD'
5540lt_cv_file_magic_test_file=
5541lt_cv_deplibs_check_method='unknown'
5542# Need to set the preceding variable on all platforms that support
5543# interlibrary dependencies.
5544# 'none' -- dependencies not supported.
5545# 'unknown' -- same as none, but documents that we really don't know.
5546# 'pass_all' -- all dependencies passed with no checks.
5547# 'test_compile' -- check by making test program.
5548# 'file_magic [[regex]]' -- check by looking for files in library path
5549# that responds to the $file_magic_cmd with a given extended regex.
5550# If you have 'file' or equivalent on your system and you're not sure
5551# whether 'pass_all' will *always* work, you probably want this one.
5552
5553case $host_os in
5554aix[4-9]*)
5555  lt_cv_deplibs_check_method=pass_all
5556  ;;
5557
5558beos*)
5559  lt_cv_deplibs_check_method=pass_all
5560  ;;
5561
5562bsdi[45]*)
5563  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5564  lt_cv_file_magic_cmd='/usr/bin/file -L'
5565  lt_cv_file_magic_test_file=/shlib/libc.so
5566  ;;
5567
5568cygwin*)
5569  # func_win32_libid is a shell function defined in ltmain.sh
5570  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5571  lt_cv_file_magic_cmd='func_win32_libid'
5572  ;;
5573
5574mingw* | pw32*)
5575  # Base MSYS/MinGW do not provide the 'file' command needed by
5576  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5577  # unless we find 'file', for example because we are cross-compiling.
5578  if ( file / ) >/dev/null 2>&1; then
5579    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5580    lt_cv_file_magic_cmd='func_win32_libid'
5581  else
5582    # Keep this pattern in sync with the one in func_win32_libid.
5583    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5584    lt_cv_file_magic_cmd='$OBJDUMP -f'
5585  fi
5586  ;;
5587
5588cegcc*)
5589  # use the weaker test based on 'objdump'. See mingw*.
5590  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5591  lt_cv_file_magic_cmd='$OBJDUMP -f'
5592  ;;
5593
5594darwin* | rhapsody*)
5595  lt_cv_deplibs_check_method=pass_all
5596  ;;
5597
5598freebsd* | dragonfly*)
5599  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5600    case $host_cpu in
5601    i*86 )
5602      # Not sure whether the presence of OpenBSD here was a mistake.
5603      # Let's accept both of them until this is cleared up.
5604      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5605      lt_cv_file_magic_cmd=/usr/bin/file
5606      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5607      ;;
5608    esac
5609  else
5610    lt_cv_deplibs_check_method=pass_all
5611  fi
5612  ;;
5613
5614haiku*)
5615  lt_cv_deplibs_check_method=pass_all
5616  ;;
5617
5618hpux10.20* | hpux11*)
5619  lt_cv_file_magic_cmd=/usr/bin/file
5620  case $host_cpu in
5621  ia64*)
5622    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5623    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5624    ;;
5625  hppa*64*)
5626    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]'
5627    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5628    ;;
5629  *)
5630    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5631    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5632    ;;
5633  esac
5634  ;;
5635
5636interix[3-9]*)
5637  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5638  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5639  ;;
5640
5641irix5* | irix6* | nonstopux*)
5642  case $LD in
5643  *-32|*"-32 ") libmagic=32-bit;;
5644  *-n32|*"-n32 ") libmagic=N32;;
5645  *-64|*"-64 ") libmagic=64-bit;;
5646  *) libmagic=never-match;;
5647  esac
5648  lt_cv_deplibs_check_method=pass_all
5649  ;;
5650
5651# This must be glibc/ELF.
5652linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5653  lt_cv_deplibs_check_method=pass_all
5654  ;;
5655
5656netbsd*)
5657  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659  else
5660    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5661  fi
5662  ;;
5663
5664newos6*)
5665  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5666  lt_cv_file_magic_cmd=/usr/bin/file
5667  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5668  ;;
5669
5670*nto* | *qnx*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674openbsd* | bitrig*)
5675  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5676    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5677  else
5678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5679  fi
5680  ;;
5681
5682osf3* | osf4* | osf5*)
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685
5686rdos*)
5687  lt_cv_deplibs_check_method=pass_all
5688  ;;
5689
5690solaris*)
5691  lt_cv_deplibs_check_method=pass_all
5692  ;;
5693
5694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5695  lt_cv_deplibs_check_method=pass_all
5696  ;;
5697
5698sysv4 | sysv4.3*)
5699  case $host_vendor in
5700  motorola)
5701    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]'
5702    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5703    ;;
5704  ncr)
5705    lt_cv_deplibs_check_method=pass_all
5706    ;;
5707  sequent)
5708    lt_cv_file_magic_cmd='/bin/file'
5709    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5710    ;;
5711  sni)
5712    lt_cv_file_magic_cmd='/bin/file'
5713    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5714    lt_cv_file_magic_test_file=/lib/libc.so
5715    ;;
5716  siemens)
5717    lt_cv_deplibs_check_method=pass_all
5718    ;;
5719  pc)
5720    lt_cv_deplibs_check_method=pass_all
5721    ;;
5722  esac
5723  ;;
5724
5725tpf*)
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728os2*)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731esac
5732
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5735$as_echo "$lt_cv_deplibs_check_method" >&6; }
5736
5737file_magic_glob=
5738want_nocaseglob=no
5739if test "$build" = "$host"; then
5740  case $host_os in
5741  mingw* | pw32*)
5742    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5743      want_nocaseglob=yes
5744    else
5745      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5746    fi
5747    ;;
5748  esac
5749fi
5750
5751file_magic_cmd=$lt_cv_file_magic_cmd
5752deplibs_check_method=$lt_cv_deplibs_check_method
5753test -z "$deplibs_check_method" && deplibs_check_method=unknown
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776if test -n "$ac_tool_prefix"; then
5777  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5778set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780$as_echo_n "checking for $ac_word... " >&6; }
5781if ${ac_cv_prog_DLLTOOL+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  if test -n "$DLLTOOL"; then
5785  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790  IFS=$as_save_IFS
5791  test -z "$as_dir" && as_dir=.
5792    for ac_exec_ext in '' $ac_executable_extensions; do
5793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796    break 2
5797  fi
5798done
5799  done
5800IFS=$as_save_IFS
5801
5802fi
5803fi
5804DLLTOOL=$ac_cv_prog_DLLTOOL
5805if test -n "$DLLTOOL"; then
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5807$as_echo "$DLLTOOL" >&6; }
5808else
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811fi
5812
5813
5814fi
5815if test -z "$ac_cv_prog_DLLTOOL"; then
5816  ac_ct_DLLTOOL=$DLLTOOL
5817  # Extract the first word of "dlltool", so it can be a program name with args.
5818set dummy dlltool; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  if test -n "$ac_ct_DLLTOOL"; then
5825  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839  done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5845if test -n "$ac_ct_DLLTOOL"; then
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5847$as_echo "$ac_ct_DLLTOOL" >&6; }
5848else
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853  if test "x$ac_ct_DLLTOOL" = x; then
5854    DLLTOOL="false"
5855  else
5856    case $cross_compiling:$ac_tool_warned in
5857yes:)
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860ac_tool_warned=yes ;;
5861esac
5862    DLLTOOL=$ac_ct_DLLTOOL
5863  fi
5864else
5865  DLLTOOL="$ac_cv_prog_DLLTOOL"
5866fi
5867
5868test -z "$DLLTOOL" && DLLTOOL=dlltool
5869
5870
5871
5872
5873
5874
5875
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5877$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5878if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5879  $as_echo_n "(cached) " >&6
5880else
5881  lt_cv_sharedlib_from_linklib_cmd='unknown'
5882
5883case $host_os in
5884cygwin* | mingw* | pw32* | cegcc*)
5885  # two different shell functions defined in ltmain.sh;
5886  # decide which one to use based on capabilities of $DLLTOOL
5887  case `$DLLTOOL --help 2>&1` in
5888  *--identify-strict*)
5889    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5890    ;;
5891  *)
5892    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5893    ;;
5894  esac
5895  ;;
5896*)
5897  # fallback: assume linklib IS sharedlib
5898  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5899  ;;
5900esac
5901
5902fi
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5904$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5905sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5906test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5907
5908
5909
5910
5911
5912
5913
5914
5915if test -n "$ac_tool_prefix"; then
5916  for ac_prog in ar
5917  do
5918    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
5922if ${ac_cv_prog_AR+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  if test -n "$AR"; then
5926  ac_cv_prog_AR="$AR" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931  IFS=$as_save_IFS
5932  test -z "$as_dir" && as_dir=.
5933    for ac_exec_ext in '' $ac_executable_extensions; do
5934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937    break 2
5938  fi
5939done
5940  done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945AR=$ac_cv_prog_AR
5946if test -n "$AR"; then
5947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5948$as_echo "$AR" >&6; }
5949else
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954
5955    test -n "$AR" && break
5956  done
5957fi
5958if test -z "$AR"; then
5959  ac_ct_AR=$AR
5960  for ac_prog in ar
5961do
5962  # Extract the first word of "$ac_prog", so it can be a program name with args.
5963set dummy $ac_prog; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_prog_ac_ct_AR+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  if test -n "$ac_ct_AR"; then
5970  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977    for ac_exec_ext in '' $ac_executable_extensions; do
5978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979    ac_cv_prog_ac_ct_AR="$ac_prog"
5980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981    break 2
5982  fi
5983done
5984  done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_AR=$ac_cv_prog_ac_ct_AR
5990if test -n "$ac_ct_AR"; then
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5992$as_echo "$ac_ct_AR" >&6; }
5993else
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998
5999  test -n "$ac_ct_AR" && break
6000done
6001
6002  if test "x$ac_ct_AR" = x; then
6003    AR="false"
6004  else
6005    case $cross_compiling:$ac_tool_warned in
6006yes:)
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009ac_tool_warned=yes ;;
6010esac
6011    AR=$ac_ct_AR
6012  fi
6013fi
6014
6015: ${AR=ar}
6016: ${AR_FLAGS=cru}
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6029$as_echo_n "checking for archiver @FILE support... " >&6; }
6030if ${lt_cv_ar_at_file+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  lt_cv_ar_at_file=no
6034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036
6037int
6038main ()
6039{
6040
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045if ac_fn_c_try_compile "$LINENO"; then :
6046  echo conftest.$ac_objext > conftest.lst
6047      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6048      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049  (eval $lt_ar_try) 2>&5
6050  ac_status=$?
6051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052  test $ac_status = 0; }
6053      if test 0 -eq "$ac_status"; then
6054	# Ensure the archiver fails upon bogus file names.
6055	rm -f conftest.$ac_objext libconftest.a
6056	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6057  (eval $lt_ar_try) 2>&5
6058  ac_status=$?
6059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060  test $ac_status = 0; }
6061	if test 0 -ne "$ac_status"; then
6062          lt_cv_ar_at_file=@
6063        fi
6064      fi
6065      rm -f conftest.* libconftest.a
6066
6067fi
6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6072$as_echo "$lt_cv_ar_at_file" >&6; }
6073
6074if test no = "$lt_cv_ar_at_file"; then
6075  archiver_list_spec=
6076else
6077  archiver_list_spec=$lt_cv_ar_at_file
6078fi
6079
6080
6081
6082
6083
6084
6085
6086if test -n "$ac_tool_prefix"; then
6087  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}strip; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if ${ac_cv_prog_STRIP+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$STRIP"; then
6095  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114STRIP=$ac_cv_prog_STRIP
6115if test -n "$STRIP"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6117$as_echo "$STRIP" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124fi
6125if test -z "$ac_cv_prog_STRIP"; then
6126  ac_ct_STRIP=$STRIP
6127  # Extract the first word of "strip", so it can be a program name with args.
6128set dummy strip; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  if test -n "$ac_ct_STRIP"; then
6135  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144    ac_cv_prog_ac_ct_STRIP="strip"
6145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149  done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155if test -n "$ac_ct_STRIP"; then
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6157$as_echo "$ac_ct_STRIP" >&6; }
6158else
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163  if test "x$ac_ct_STRIP" = x; then
6164    STRIP=":"
6165  else
6166    case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172    STRIP=$ac_ct_STRIP
6173  fi
6174else
6175  STRIP="$ac_cv_prog_STRIP"
6176fi
6177
6178test -z "$STRIP" && STRIP=:
6179
6180
6181
6182
6183
6184
6185if test -n "$ac_tool_prefix"; then
6186  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6187set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if ${ac_cv_prog_RANLIB+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test -n "$RANLIB"; then
6194  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  test -z "$as_dir" && as_dir=.
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205    break 2
6206  fi
6207done
6208  done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213RANLIB=$ac_cv_prog_RANLIB
6214if test -n "$RANLIB"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6216$as_echo "$RANLIB" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222
6223fi
6224if test -z "$ac_cv_prog_RANLIB"; then
6225  ac_ct_RANLIB=$RANLIB
6226  # Extract the first word of "ranlib", so it can be a program name with args.
6227set dummy ranlib; ac_word=$2
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
6230if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  if test -n "$ac_ct_RANLIB"; then
6234  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241    for ac_exec_ext in '' $ac_executable_extensions; do
6242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243    ac_cv_prog_ac_ct_RANLIB="ranlib"
6244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248  done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6254if test -n "$ac_ct_RANLIB"; then
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6256$as_echo "$ac_ct_RANLIB" >&6; }
6257else
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262  if test "x$ac_ct_RANLIB" = x; then
6263    RANLIB=":"
6264  else
6265    case $cross_compiling:$ac_tool_warned in
6266yes:)
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269ac_tool_warned=yes ;;
6270esac
6271    RANLIB=$ac_ct_RANLIB
6272  fi
6273else
6274  RANLIB="$ac_cv_prog_RANLIB"
6275fi
6276
6277test -z "$RANLIB" && RANLIB=:
6278
6279
6280
6281
6282
6283
6284# Determine commands to create old-style static archives.
6285old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6286old_postinstall_cmds='chmod 644 $oldlib'
6287old_postuninstall_cmds=
6288
6289if test -n "$RANLIB"; then
6290  case $host_os in
6291  bitrig* | openbsd*)
6292    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6293    ;;
6294  *)
6295    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6296    ;;
6297  esac
6298  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6299fi
6300
6301case $host_os in
6302  darwin*)
6303    lock_old_archive_extraction=yes ;;
6304  *)
6305    lock_old_archive_extraction=no ;;
6306esac
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346# If no C compiler was specified, use CC.
6347LTCC=${LTCC-"$CC"}
6348
6349# If no C compiler flags were specified, use CFLAGS.
6350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6351
6352# Allow CC to be a program name with arguments.
6353compiler=$CC
6354
6355
6356# Check for command to grab the raw symbol name followed by C symbol from nm.
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6358$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6359if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362
6363# These are sane defaults that work on at least a few old systems.
6364# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6365
6366# Character class describing NM global symbol codes.
6367symcode='[BCDEGRST]'
6368
6369# Regexp to match symbols that can be accessed directly from C.
6370sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6371
6372# Define system-specific variables.
6373case $host_os in
6374aix*)
6375  symcode='[BCDT]'
6376  ;;
6377cygwin* | mingw* | pw32* | cegcc*)
6378  symcode='[ABCDGISTW]'
6379  ;;
6380hpux*)
6381  if test ia64 = "$host_cpu"; then
6382    symcode='[ABCDEGRST]'
6383  fi
6384  ;;
6385irix* | nonstopux*)
6386  symcode='[BCDEGRST]'
6387  ;;
6388osf*)
6389  symcode='[BCDEGQRST]'
6390  ;;
6391solaris*)
6392  symcode='[BDRT]'
6393  ;;
6394sco3.2v5*)
6395  symcode='[DT]'
6396  ;;
6397sysv4.2uw2*)
6398  symcode='[DT]'
6399  ;;
6400sysv5* | sco5v6* | unixware* | OpenUNIX*)
6401  symcode='[ABDT]'
6402  ;;
6403sysv4)
6404  symcode='[DFNSTU]'
6405  ;;
6406esac
6407
6408# If we're using GNU nm, then use its standard symbol codes.
6409case `$NM -V 2>&1` in
6410*GNU* | *'with BFD'*)
6411  symcode='[ABCDGIRSTW]' ;;
6412esac
6413
6414if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6415  # Gets list of data symbols to import.
6416  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6417  # Adjust the below global symbol transforms to fixup imported variables.
6418  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6419  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6420  lt_c_name_lib_hook="\
6421  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6422  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6423else
6424  # Disable hooks by default.
6425  lt_cv_sys_global_symbol_to_import=
6426  lt_cdecl_hook=
6427  lt_c_name_hook=
6428  lt_c_name_lib_hook=
6429fi
6430
6431# Transform an extracted symbol line into a proper C declaration.
6432# Some systems (esp. on ia64) link data and code symbols differently,
6433# so use this general approach.
6434lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6435$lt_cdecl_hook\
6436" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6437" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6438
6439# Transform an extracted symbol line into symbol name and symbol address
6440lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6441$lt_c_name_hook\
6442" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6443" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6444
6445# Transform an extracted symbol line into symbol name with lib prefix and
6446# symbol address.
6447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6448$lt_c_name_lib_hook\
6449" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6450" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6451" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6452
6453# Handle CRLF in mingw tool chain
6454opt_cr=
6455case $build_os in
6456mingw*)
6457  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6458  ;;
6459esac
6460
6461# Try without a prefix underscore, then with it.
6462for ac_symprfx in "" "_"; do
6463
6464  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6465  symxfrm="\\1 $ac_symprfx\\2 \\2"
6466
6467  # Write the raw and C identifiers.
6468  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6469    # Fake it for dumpbin and say T for any non-static function,
6470    # D for any global variable and I for any imported variable.
6471    # Also find C++ and __fastcall symbols from MSVC++,
6472    # which start with @ or ?.
6473    lt_cv_sys_global_symbol_pipe="$AWK '"\
6474"     {last_section=section; section=\$ 3};"\
6475"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6476"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6477"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6478"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6479"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6480"     \$ 0!~/External *\|/{next};"\
6481"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6482"     {if(hide[section]) next};"\
6483"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6484"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6485"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6486"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6487"     ' prfx=^$ac_symprfx"
6488  else
6489    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490  fi
6491  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6492
6493  # Check to see that the pipe works correctly.
6494  pipe_works=no
6495
6496  rm -f conftest*
6497  cat > conftest.$ac_ext <<_LT_EOF
6498#ifdef __cplusplus
6499extern "C" {
6500#endif
6501char nm_test_var;
6502void nm_test_func(void);
6503void nm_test_func(void){}
6504#ifdef __cplusplus
6505}
6506#endif
6507int main(){nm_test_var='a';nm_test_func();return(0);}
6508_LT_EOF
6509
6510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511  (eval $ac_compile) 2>&5
6512  ac_status=$?
6513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514  test $ac_status = 0; }; then
6515    # Now try to grab the symbols.
6516    nlist=conftest.nm
6517    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6518  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6519  ac_status=$?
6520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521  test $ac_status = 0; } && test -s "$nlist"; then
6522      # Try sorting and uniquifying the output.
6523      if sort "$nlist" | uniq > "$nlist"T; then
6524	mv -f "$nlist"T "$nlist"
6525      else
6526	rm -f "$nlist"T
6527      fi
6528
6529      # Make sure that we snagged all the symbols we need.
6530      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6531	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6532	  cat <<_LT_EOF > conftest.$ac_ext
6533/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6534#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6535/* DATA imports from DLLs on WIN32 can't be const, because runtime
6536   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6537# define LT_DLSYM_CONST
6538#elif defined __osf__
6539/* This system does not cope well with relocations in const data.  */
6540# define LT_DLSYM_CONST
6541#else
6542# define LT_DLSYM_CONST const
6543#endif
6544
6545#ifdef __cplusplus
6546extern "C" {
6547#endif
6548
6549_LT_EOF
6550	  # Now generate the symbol file.
6551	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6552
6553	  cat <<_LT_EOF >> conftest.$ac_ext
6554
6555/* The mapping between symbol names and symbols.  */
6556LT_DLSYM_CONST struct {
6557  const char *name;
6558  void       *address;
6559}
6560lt__PROGRAM__LTX_preloaded_symbols[] =
6561{
6562  { "@PROGRAM@", (void *) 0 },
6563_LT_EOF
6564	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6565	  cat <<\_LT_EOF >> conftest.$ac_ext
6566  {0, (void *) 0}
6567};
6568
6569/* This works around a problem in FreeBSD linker */
6570#ifdef FREEBSD_WORKAROUND
6571static const void *lt_preloaded_setup() {
6572  return lt__PROGRAM__LTX_preloaded_symbols;
6573}
6574#endif
6575
6576#ifdef __cplusplus
6577}
6578#endif
6579_LT_EOF
6580	  # Now try linking the two files.
6581	  mv conftest.$ac_objext conftstm.$ac_objext
6582	  lt_globsym_save_LIBS=$LIBS
6583	  lt_globsym_save_CFLAGS=$CFLAGS
6584	  LIBS=conftstm.$ac_objext
6585	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6586	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6587  (eval $ac_link) 2>&5
6588  ac_status=$?
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6591	    pipe_works=yes
6592	  fi
6593	  LIBS=$lt_globsym_save_LIBS
6594	  CFLAGS=$lt_globsym_save_CFLAGS
6595	else
6596	  echo "cannot find nm_test_func in $nlist" >&5
6597	fi
6598      else
6599	echo "cannot find nm_test_var in $nlist" >&5
6600      fi
6601    else
6602      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6603    fi
6604  else
6605    echo "$progname: failed program was:" >&5
6606    cat conftest.$ac_ext >&5
6607  fi
6608  rm -rf conftest* conftst*
6609
6610  # Do not use the global_symbol_pipe unless it works.
6611  if test yes = "$pipe_works"; then
6612    break
6613  else
6614    lt_cv_sys_global_symbol_pipe=
6615  fi
6616done
6617
6618fi
6619
6620if test -z "$lt_cv_sys_global_symbol_pipe"; then
6621  lt_cv_sys_global_symbol_to_cdecl=
6622fi
6623if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6625$as_echo "failed" >&6; }
6626else
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6628$as_echo "ok" >&6; }
6629fi
6630
6631# Response file support.
6632if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6633  nm_file_list_spec='@'
6634elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6635  nm_file_list_spec='@'
6636fi
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6675$as_echo_n "checking for sysroot... " >&6; }
6676
6677# Check whether --with-sysroot was given.
6678if test "${with_sysroot+set}" = set; then :
6679  withval=$with_sysroot;
6680else
6681  with_sysroot=no
6682fi
6683
6684
6685lt_sysroot=
6686case $with_sysroot in #(
6687 yes)
6688   if test yes = "$GCC"; then
6689     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6690   fi
6691   ;; #(
6692 /*)
6693   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6694   ;; #(
6695 no|'')
6696   ;; #(
6697 *)
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6699$as_echo "$with_sysroot" >&6; }
6700   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6701   ;;
6702esac
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6705$as_echo "${lt_sysroot:-no}" >&6; }
6706
6707
6708
6709
6710
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6712$as_echo_n "checking for a working dd... " >&6; }
6713if ${ac_cv_path_lt_DD+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  printf 0123456789abcdef0123456789abcdef >conftest.i
6717cat conftest.i conftest.i >conftest2.i
6718: ${lt_DD:=$DD}
6719if test -z "$lt_DD"; then
6720  ac_path_lt_DD_found=false
6721  # Loop through the user's path and test for each of PROGNAME-LIST
6722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725  IFS=$as_save_IFS
6726  test -z "$as_dir" && as_dir=.
6727    for ac_prog in dd; do
6728    for ac_exec_ext in '' $ac_executable_extensions; do
6729      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6730      as_fn_executable_p "$ac_path_lt_DD" || continue
6731if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6732  cmp -s conftest.i conftest.out \
6733  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6734fi
6735      $ac_path_lt_DD_found && break 3
6736    done
6737  done
6738  done
6739IFS=$as_save_IFS
6740  if test -z "$ac_cv_path_lt_DD"; then
6741    :
6742  fi
6743else
6744  ac_cv_path_lt_DD=$lt_DD
6745fi
6746
6747rm -f conftest.i conftest2.i conftest.out
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6750$as_echo "$ac_cv_path_lt_DD" >&6; }
6751
6752
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6754$as_echo_n "checking how to truncate binary pipes... " >&6; }
6755if ${lt_cv_truncate_bin+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  printf 0123456789abcdef0123456789abcdef >conftest.i
6759cat conftest.i conftest.i >conftest2.i
6760lt_cv_truncate_bin=
6761if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6762  cmp -s conftest.i conftest.out \
6763  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6764fi
6765rm -f conftest.i conftest2.i conftest.out
6766test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6769$as_echo "$lt_cv_truncate_bin" >&6; }
6770
6771
6772
6773
6774
6775
6776
6777# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6778func_cc_basename ()
6779{
6780    for cc_temp in $*""; do
6781      case $cc_temp in
6782        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6783        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6784        \-*) ;;
6785        *) break;;
6786      esac
6787    done
6788    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6789}
6790
6791# Check whether --enable-libtool-lock was given.
6792if test "${enable_libtool_lock+set}" = set; then :
6793  enableval=$enable_libtool_lock;
6794fi
6795
6796test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6797
6798# Some flags need to be propagated to the compiler or linker for good
6799# libtool support.
6800case $host in
6801ia64-*-hpux*)
6802  # Find out what ABI is being produced by ac_compile, and set mode
6803  # options accordingly.
6804  echo 'int i;' > conftest.$ac_ext
6805  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806  (eval $ac_compile) 2>&5
6807  ac_status=$?
6808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809  test $ac_status = 0; }; then
6810    case `/usr/bin/file conftest.$ac_objext` in
6811      *ELF-32*)
6812	HPUX_IA64_MODE=32
6813	;;
6814      *ELF-64*)
6815	HPUX_IA64_MODE=64
6816	;;
6817    esac
6818  fi
6819  rm -rf conftest*
6820  ;;
6821*-*-irix6*)
6822  # Find out what ABI is being produced by ac_compile, and set linker
6823  # options accordingly.
6824  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826  (eval $ac_compile) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; }; then
6830    if test yes = "$lt_cv_prog_gnu_ld"; then
6831      case `/usr/bin/file conftest.$ac_objext` in
6832	*32-bit*)
6833	  LD="${LD-ld} -melf32bsmip"
6834	  ;;
6835	*N32*)
6836	  LD="${LD-ld} -melf32bmipn32"
6837	  ;;
6838	*64-bit*)
6839	  LD="${LD-ld} -melf64bmip"
6840	;;
6841      esac
6842    else
6843      case `/usr/bin/file conftest.$ac_objext` in
6844	*32-bit*)
6845	  LD="${LD-ld} -32"
6846	  ;;
6847	*N32*)
6848	  LD="${LD-ld} -n32"
6849	  ;;
6850	*64-bit*)
6851	  LD="${LD-ld} -64"
6852	  ;;
6853      esac
6854    fi
6855  fi
6856  rm -rf conftest*
6857  ;;
6858
6859mips64*-*linux*)
6860  # Find out what ABI is being produced by ac_compile, and set linker
6861  # options accordingly.
6862  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864  (eval $ac_compile) 2>&5
6865  ac_status=$?
6866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867  test $ac_status = 0; }; then
6868    emul=elf
6869    case `/usr/bin/file conftest.$ac_objext` in
6870      *32-bit*)
6871	emul="${emul}32"
6872	;;
6873      *64-bit*)
6874	emul="${emul}64"
6875	;;
6876    esac
6877    case `/usr/bin/file conftest.$ac_objext` in
6878      *MSB*)
6879	emul="${emul}btsmip"
6880	;;
6881      *LSB*)
6882	emul="${emul}ltsmip"
6883	;;
6884    esac
6885    case `/usr/bin/file conftest.$ac_objext` in
6886      *N32*)
6887	emul="${emul}n32"
6888	;;
6889    esac
6890    LD="${LD-ld} -m $emul"
6891  fi
6892  rm -rf conftest*
6893  ;;
6894
6895x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6896s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6897  # Find out what ABI is being produced by ac_compile, and set linker
6898  # options accordingly.  Note that the listed cases only cover the
6899  # situations where additional linker options are needed (such as when
6900  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6901  # vice versa); the common cases where no linker options are needed do
6902  # not appear in the list.
6903  echo 'int i;' > conftest.$ac_ext
6904  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905  (eval $ac_compile) 2>&5
6906  ac_status=$?
6907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908  test $ac_status = 0; }; then
6909    case `/usr/bin/file conftest.o` in
6910      *32-bit*)
6911	case $host in
6912	  x86_64-*kfreebsd*-gnu)
6913	    LD="${LD-ld} -m elf_i386_fbsd"
6914	    ;;
6915	  x86_64-*linux*)
6916	    case `/usr/bin/file conftest.o` in
6917	      *x86-64*)
6918		LD="${LD-ld} -m elf32_x86_64"
6919		;;
6920	      *)
6921		LD="${LD-ld} -m elf_i386"
6922		;;
6923	    esac
6924	    ;;
6925	  powerpc64le-*linux*)
6926	    LD="${LD-ld} -m elf32lppclinux"
6927	    ;;
6928	  powerpc64-*linux*)
6929	    LD="${LD-ld} -m elf32ppclinux"
6930	    ;;
6931	  s390x-*linux*)
6932	    LD="${LD-ld} -m elf_s390"
6933	    ;;
6934	  sparc64-*linux*)
6935	    LD="${LD-ld} -m elf32_sparc"
6936	    ;;
6937	esac
6938	;;
6939      *64-bit*)
6940	case $host in
6941	  x86_64-*kfreebsd*-gnu)
6942	    LD="${LD-ld} -m elf_x86_64_fbsd"
6943	    ;;
6944	  x86_64-*linux*)
6945	    LD="${LD-ld} -m elf_x86_64"
6946	    ;;
6947	  powerpcle-*linux*)
6948	    LD="${LD-ld} -m elf64lppc"
6949	    ;;
6950	  powerpc-*linux*)
6951	    LD="${LD-ld} -m elf64ppc"
6952	    ;;
6953	  s390*-*linux*|s390*-*tpf*)
6954	    LD="${LD-ld} -m elf64_s390"
6955	    ;;
6956	  sparc*-*linux*)
6957	    LD="${LD-ld} -m elf64_sparc"
6958	    ;;
6959	esac
6960	;;
6961    esac
6962  fi
6963  rm -rf conftest*
6964  ;;
6965
6966*-*-sco3.2v5*)
6967  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6968  SAVE_CFLAGS=$CFLAGS
6969  CFLAGS="$CFLAGS -belf"
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6971$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6972if ${lt_cv_cc_needs_belf+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  ac_ext=c
6976ac_cpp='$CPP $CPPFLAGS'
6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980
6981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983
6984int
6985main ()
6986{
6987
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992if ac_fn_c_try_link "$LINENO"; then :
6993  lt_cv_cc_needs_belf=yes
6994else
6995  lt_cv_cc_needs_belf=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext \
6998    conftest$ac_exeext conftest.$ac_ext
6999     ac_ext=c
7000ac_cpp='$CPP $CPPFLAGS'
7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7007$as_echo "$lt_cv_cc_needs_belf" >&6; }
7008  if test yes != "$lt_cv_cc_needs_belf"; then
7009    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7010    CFLAGS=$SAVE_CFLAGS
7011  fi
7012  ;;
7013*-*solaris*)
7014  # Find out what ABI is being produced by ac_compile, and set linker
7015  # options accordingly.
7016  echo 'int i;' > conftest.$ac_ext
7017  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7018  (eval $ac_compile) 2>&5
7019  ac_status=$?
7020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021  test $ac_status = 0; }; then
7022    case `/usr/bin/file conftest.o` in
7023    *64-bit*)
7024      case $lt_cv_prog_gnu_ld in
7025      yes*)
7026        case $host in
7027        i?86-*-solaris*|x86_64-*-solaris*)
7028          LD="${LD-ld} -m elf_x86_64"
7029          ;;
7030        sparc*-*-solaris*)
7031          LD="${LD-ld} -m elf64_sparc"
7032          ;;
7033        esac
7034        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7035        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7036          LD=${LD-ld}_sol2
7037        fi
7038        ;;
7039      *)
7040	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7041	  LD="${LD-ld} -64"
7042	fi
7043	;;
7044      esac
7045      ;;
7046    esac
7047  fi
7048  rm -rf conftest*
7049  ;;
7050esac
7051
7052need_locks=$enable_libtool_lock
7053
7054if test -n "$ac_tool_prefix"; then
7055  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7056set dummy ${ac_tool_prefix}mt; ac_word=$2
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058$as_echo_n "checking for $ac_word... " >&6; }
7059if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7060  $as_echo_n "(cached) " >&6
7061else
7062  if test -n "$MANIFEST_TOOL"; then
7063  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070    for ac_exec_ext in '' $ac_executable_extensions; do
7071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077  done
7078IFS=$as_save_IFS
7079
7080fi
7081fi
7082MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7083if test -n "$MANIFEST_TOOL"; then
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7085$as_echo "$MANIFEST_TOOL" >&6; }
7086else
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091
7092fi
7093if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7094  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7095  # Extract the first word of "mt", so it can be a program name with args.
7096set dummy mt; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  if test -n "$ac_ct_MANIFEST_TOOL"; then
7103  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_exec_ext in '' $ac_executable_extensions; do
7111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117  done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7123if test -n "$ac_ct_MANIFEST_TOOL"; then
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7125$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7126else
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7132    MANIFEST_TOOL=":"
7133  else
7134    case $cross_compiling:$ac_tool_warned in
7135yes:)
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138ac_tool_warned=yes ;;
7139esac
7140    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7141  fi
7142else
7143  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7144fi
7145
7146test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7148$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7149if ${lt_cv_path_mainfest_tool+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  lt_cv_path_mainfest_tool=no
7153  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7154  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7155  cat conftest.err >&5
7156  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7157    lt_cv_path_mainfest_tool=yes
7158  fi
7159  rm -f conftest*
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7162$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7163if test yes != "$lt_cv_path_mainfest_tool"; then
7164  MANIFEST_TOOL=:
7165fi
7166
7167
7168
7169
7170
7171
7172  case $host_os in
7173    rhapsody* | darwin*)
7174    if test -n "$ac_tool_prefix"; then
7175  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7176set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_DSYMUTIL+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$DSYMUTIL"; then
7183  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202DSYMUTIL=$ac_cv_prog_DSYMUTIL
7203if test -n "$DSYMUTIL"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7205$as_echo "$DSYMUTIL" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211
7212fi
7213if test -z "$ac_cv_prog_DSYMUTIL"; then
7214  ac_ct_DSYMUTIL=$DSYMUTIL
7215  # Extract the first word of "dsymutil", so it can be a program name with args.
7216set dummy dsymutil; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$ac_ct_DSYMUTIL"; then
7223  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230    for ac_exec_ext in '' $ac_executable_extensions; do
7231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237  done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7243if test -n "$ac_ct_DSYMUTIL"; then
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7245$as_echo "$ac_ct_DSYMUTIL" >&6; }
7246else
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251  if test "x$ac_ct_DSYMUTIL" = x; then
7252    DSYMUTIL=":"
7253  else
7254    case $cross_compiling:$ac_tool_warned in
7255yes:)
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258ac_tool_warned=yes ;;
7259esac
7260    DSYMUTIL=$ac_ct_DSYMUTIL
7261  fi
7262else
7263  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7264fi
7265
7266    if test -n "$ac_tool_prefix"; then
7267  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7268set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if ${ac_cv_prog_NMEDIT+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$NMEDIT"; then
7275  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289  done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294NMEDIT=$ac_cv_prog_NMEDIT
7295if test -n "$NMEDIT"; then
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7297$as_echo "$NMEDIT" >&6; }
7298else
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303
7304fi
7305if test -z "$ac_cv_prog_NMEDIT"; then
7306  ac_ct_NMEDIT=$NMEDIT
7307  # Extract the first word of "nmedit", so it can be a program name with args.
7308set dummy nmedit; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  if test -n "$ac_ct_NMEDIT"; then
7315  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322    for ac_exec_ext in '' $ac_executable_extensions; do
7323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329  done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7335if test -n "$ac_ct_NMEDIT"; then
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7337$as_echo "$ac_ct_NMEDIT" >&6; }
7338else
7339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343  if test "x$ac_ct_NMEDIT" = x; then
7344    NMEDIT=":"
7345  else
7346    case $cross_compiling:$ac_tool_warned in
7347yes:)
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350ac_tool_warned=yes ;;
7351esac
7352    NMEDIT=$ac_ct_NMEDIT
7353  fi
7354else
7355  NMEDIT="$ac_cv_prog_NMEDIT"
7356fi
7357
7358    if test -n "$ac_tool_prefix"; then
7359  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7360set dummy ${ac_tool_prefix}lipo; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_LIPO+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$LIPO"; then
7367  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386LIPO=$ac_cv_prog_LIPO
7387if test -n "$LIPO"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7389$as_echo "$LIPO" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396fi
7397if test -z "$ac_cv_prog_LIPO"; then
7398  ac_ct_LIPO=$LIPO
7399  # Extract the first word of "lipo", so it can be a program name with args.
7400set dummy lipo; ac_word=$2
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402$as_echo_n "checking for $ac_word... " >&6; }
7403if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  if test -n "$ac_ct_LIPO"; then
7407  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7408else
7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416    ac_cv_prog_ac_ct_LIPO="lipo"
7417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424fi
7425fi
7426ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7427if test -n "$ac_ct_LIPO"; then
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7429$as_echo "$ac_ct_LIPO" >&6; }
7430else
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432$as_echo "no" >&6; }
7433fi
7434
7435  if test "x$ac_ct_LIPO" = x; then
7436    LIPO=":"
7437  else
7438    case $cross_compiling:$ac_tool_warned in
7439yes:)
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442ac_tool_warned=yes ;;
7443esac
7444    LIPO=$ac_ct_LIPO
7445  fi
7446else
7447  LIPO="$ac_cv_prog_LIPO"
7448fi
7449
7450    if test -n "$ac_tool_prefix"; then
7451  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7452set dummy ${ac_tool_prefix}otool; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if ${ac_cv_prog_OTOOL+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  if test -n "$OTOOL"; then
7459  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466    for ac_exec_ext in '' $ac_executable_extensions; do
7467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473  done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478OTOOL=$ac_cv_prog_OTOOL
7479if test -n "$OTOOL"; then
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7481$as_echo "$OTOOL" >&6; }
7482else
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487
7488fi
7489if test -z "$ac_cv_prog_OTOOL"; then
7490  ac_ct_OTOOL=$OTOOL
7491  # Extract the first word of "otool", so it can be a program name with args.
7492set dummy otool; ac_word=$2
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  if test -n "$ac_ct_OTOOL"; then
7499  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506    for ac_exec_ext in '' $ac_executable_extensions; do
7507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508    ac_cv_prog_ac_ct_OTOOL="otool"
7509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513  done
7514IFS=$as_save_IFS
7515
7516fi
7517fi
7518ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7519if test -n "$ac_ct_OTOOL"; then
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7521$as_echo "$ac_ct_OTOOL" >&6; }
7522else
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527  if test "x$ac_ct_OTOOL" = x; then
7528    OTOOL=":"
7529  else
7530    case $cross_compiling:$ac_tool_warned in
7531yes:)
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534ac_tool_warned=yes ;;
7535esac
7536    OTOOL=$ac_ct_OTOOL
7537  fi
7538else
7539  OTOOL="$ac_cv_prog_OTOOL"
7540fi
7541
7542    if test -n "$ac_tool_prefix"; then
7543  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}otool64; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if ${ac_cv_prog_OTOOL64+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -n "$OTOOL64"; then
7551  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_exec_ext in '' $ac_executable_extensions; do
7559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565  done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570OTOOL64=$ac_cv_prog_OTOOL64
7571if test -n "$OTOOL64"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7573$as_echo "$OTOOL64" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579
7580fi
7581if test -z "$ac_cv_prog_OTOOL64"; then
7582  ac_ct_OTOOL64=$OTOOL64
7583  # Extract the first word of "otool64", so it can be a program name with args.
7584set dummy otool64; ac_word=$2
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  if test -n "$ac_ct_OTOOL64"; then
7591  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598    for ac_exec_ext in '' $ac_executable_extensions; do
7599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600    ac_cv_prog_ac_ct_OTOOL64="otool64"
7601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605  done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
7610ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7611if test -n "$ac_ct_OTOOL64"; then
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7613$as_echo "$ac_ct_OTOOL64" >&6; }
7614else
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
7619  if test "x$ac_ct_OTOOL64" = x; then
7620    OTOOL64=":"
7621  else
7622    case $cross_compiling:$ac_tool_warned in
7623yes:)
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626ac_tool_warned=yes ;;
7627esac
7628    OTOOL64=$ac_ct_OTOOL64
7629  fi
7630else
7631  OTOOL64="$ac_cv_prog_OTOOL64"
7632fi
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7661$as_echo_n "checking for -single_module linker flag... " >&6; }
7662if ${lt_cv_apple_cc_single_mod+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  lt_cv_apple_cc_single_mod=no
7666      if test -z "$LT_MULTI_MODULE"; then
7667	# By default we will add the -single_module flag. You can override
7668	# by either setting the environment variable LT_MULTI_MODULE
7669	# non-empty at configure time, or by adding -multi_module to the
7670	# link flags.
7671	rm -rf libconftest.dylib*
7672	echo "int foo(void){return 1;}" > conftest.c
7673	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7674-dynamiclib -Wl,-single_module conftest.c" >&5
7675	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7676	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7677        _lt_result=$?
7678	# If there is a non-empty error log, and "single_module"
7679	# appears in it, assume the flag caused a linker warning
7680        if test -s conftest.err && $GREP single_module conftest.err; then
7681	  cat conftest.err >&5
7682	# Otherwise, if the output was created with a 0 exit code from
7683	# the compiler, it worked.
7684	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7685	  lt_cv_apple_cc_single_mod=yes
7686	else
7687	  cat conftest.err >&5
7688	fi
7689	rm -rf libconftest.dylib*
7690	rm -f conftest.*
7691      fi
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7694$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7695
7696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7697$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7698if ${lt_cv_ld_exported_symbols_list+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  lt_cv_ld_exported_symbols_list=no
7702      save_LDFLAGS=$LDFLAGS
7703      echo "_main" > conftest.sym
7704      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707
7708int
7709main ()
7710{
7711
7712  ;
7713  return 0;
7714}
7715_ACEOF
7716if ac_fn_c_try_link "$LINENO"; then :
7717  lt_cv_ld_exported_symbols_list=yes
7718else
7719  lt_cv_ld_exported_symbols_list=no
7720fi
7721rm -f core conftest.err conftest.$ac_objext \
7722    conftest$ac_exeext conftest.$ac_ext
7723	LDFLAGS=$save_LDFLAGS
7724
7725fi
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7727$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7728
7729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7730$as_echo_n "checking for -force_load linker flag... " >&6; }
7731if ${lt_cv_ld_force_load+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  lt_cv_ld_force_load=no
7735      cat > conftest.c << _LT_EOF
7736int forced_loaded() { return 2;}
7737_LT_EOF
7738      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7739      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7740      echo "$AR cru libconftest.a conftest.o" >&5
7741      $AR cru libconftest.a conftest.o 2>&5
7742      echo "$RANLIB libconftest.a" >&5
7743      $RANLIB libconftest.a 2>&5
7744      cat > conftest.c << _LT_EOF
7745int main() { return 0;}
7746_LT_EOF
7747      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7748      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7749      _lt_result=$?
7750      if test -s conftest.err && $GREP force_load conftest.err; then
7751	cat conftest.err >&5
7752      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7753	lt_cv_ld_force_load=yes
7754      else
7755	cat conftest.err >&5
7756      fi
7757        rm -f conftest.err libconftest.a conftest conftest.c
7758        rm -rf conftest.dSYM
7759
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7762$as_echo "$lt_cv_ld_force_load" >&6; }
7763    case $host_os in
7764    rhapsody* | darwin1.[012])
7765      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7766    darwin1.*)
7767      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7768    darwin*) # darwin 5.x on
7769      # if running on 10.5 or later, the deployment target defaults
7770      # to the OS version, if on x86, and 10.4, the deployment
7771      # target defaults to 10.4. Don't you love it?
7772      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7773	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7774	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7775	10.[012][,.]*)
7776	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7777	10.*)
7778	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7779      esac
7780    ;;
7781  esac
7782    if test yes = "$lt_cv_apple_cc_single_mod"; then
7783      _lt_dar_single_mod='$single_module'
7784    fi
7785    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7786      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7787    else
7788      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7789    fi
7790    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7791      _lt_dsymutil='~$DSYMUTIL $lib || :'
7792    else
7793      _lt_dsymutil=
7794    fi
7795    ;;
7796  esac
7797
7798# func_munge_path_list VARIABLE PATH
7799# -----------------------------------
7800# VARIABLE is name of variable containing _space_ separated list of
7801# directories to be munged by the contents of PATH, which is string
7802# having a format:
7803# "DIR[:DIR]:"
7804#       string "DIR[ DIR]" will be prepended to VARIABLE
7805# ":DIR[:DIR]"
7806#       string "DIR[ DIR]" will be appended to VARIABLE
7807# "DIRP[:DIRP]::[DIRA:]DIRA"
7808#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7809#       "DIRA[ DIRA]" will be appended to VARIABLE
7810# "DIR[:DIR]"
7811#       VARIABLE will be replaced by "DIR[ DIR]"
7812func_munge_path_list ()
7813{
7814    case x$2 in
7815    x)
7816        ;;
7817    *:)
7818        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7819        ;;
7820    x:*)
7821        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7822        ;;
7823    *::*)
7824        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7825        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7826        ;;
7827    *)
7828        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7829        ;;
7830    esac
7831}
7832
7833
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7835$as_echo_n "checking for ANSI C header files... " >&6; }
7836if ${ac_cv_header_stdc+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841#include <stdlib.h>
7842#include <stdarg.h>
7843#include <string.h>
7844#include <float.h>
7845
7846int
7847main ()
7848{
7849
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_compile "$LINENO"; then :
7855  ac_cv_header_stdc=yes
7856else
7857  ac_cv_header_stdc=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860
7861if test $ac_cv_header_stdc = yes; then
7862  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h.  */
7865#include <string.h>
7866
7867_ACEOF
7868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869  $EGREP "memchr" >/dev/null 2>&1; then :
7870
7871else
7872  ac_cv_header_stdc=no
7873fi
7874rm -f conftest*
7875
7876fi
7877
7878if test $ac_cv_header_stdc = yes; then
7879  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882#include <stdlib.h>
7883
7884_ACEOF
7885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7886  $EGREP "free" >/dev/null 2>&1; then :
7887
7888else
7889  ac_cv_header_stdc=no
7890fi
7891rm -f conftest*
7892
7893fi
7894
7895if test $ac_cv_header_stdc = yes; then
7896  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7897  if test "$cross_compiling" = yes; then :
7898  :
7899else
7900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902#include <ctype.h>
7903#include <stdlib.h>
7904#if ((' ' & 0x0FF) == 0x020)
7905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7907#else
7908# define ISLOWER(c) \
7909		   (('a' <= (c) && (c) <= 'i') \
7910		     || ('j' <= (c) && (c) <= 'r') \
7911		     || ('s' <= (c) && (c) <= 'z'))
7912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7913#endif
7914
7915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7916int
7917main ()
7918{
7919  int i;
7920  for (i = 0; i < 256; i++)
7921    if (XOR (islower (i), ISLOWER (i))
7922	|| toupper (i) != TOUPPER (i))
7923      return 2;
7924  return 0;
7925}
7926_ACEOF
7927if ac_fn_c_try_run "$LINENO"; then :
7928
7929else
7930  ac_cv_header_stdc=no
7931fi
7932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7933  conftest.$ac_objext conftest.beam conftest.$ac_ext
7934fi
7935
7936fi
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7939$as_echo "$ac_cv_header_stdc" >&6; }
7940if test $ac_cv_header_stdc = yes; then
7941
7942$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7943
7944fi
7945
7946# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7948		  inttypes.h stdint.h unistd.h
7949do :
7950  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7952"
7953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7954  cat >>confdefs.h <<_ACEOF
7955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956_ACEOF
7957
7958fi
7959
7960done
7961
7962
7963for ac_header in dlfcn.h
7964do :
7965  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7966"
7967if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7968  cat >>confdefs.h <<_ACEOF
7969#define HAVE_DLFCN_H 1
7970_ACEOF
7971
7972fi
7973
7974done
7975
7976
7977
7978
7979
7980# Set options
7981enable_win32_dll=yes
7982
7983case $host in
7984*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7985  if test -n "$ac_tool_prefix"; then
7986  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7987set dummy ${ac_tool_prefix}as; ac_word=$2
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if ${ac_cv_prog_AS+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  if test -n "$AS"; then
7994  ac_cv_prog_AS="$AS" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999  IFS=$as_save_IFS
8000  test -z "$as_dir" && as_dir=.
8001    for ac_exec_ext in '' $ac_executable_extensions; do
8002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003    ac_cv_prog_AS="${ac_tool_prefix}as"
8004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005    break 2
8006  fi
8007done
8008  done
8009IFS=$as_save_IFS
8010
8011fi
8012fi
8013AS=$ac_cv_prog_AS
8014if test -n "$AS"; then
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8016$as_echo "$AS" >&6; }
8017else
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
8020fi
8021
8022
8023fi
8024if test -z "$ac_cv_prog_AS"; then
8025  ac_ct_AS=$AS
8026  # Extract the first word of "as", so it can be a program name with args.
8027set dummy as; ac_word=$2
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029$as_echo_n "checking for $ac_word... " >&6; }
8030if ${ac_cv_prog_ac_ct_AS+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  if test -n "$ac_ct_AS"; then
8034  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  test -z "$as_dir" && as_dir=.
8041    for ac_exec_ext in '' $ac_executable_extensions; do
8042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_ac_ct_AS="as"
8044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048  done
8049IFS=$as_save_IFS
8050
8051fi
8052fi
8053ac_ct_AS=$ac_cv_prog_ac_ct_AS
8054if test -n "$ac_ct_AS"; then
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8056$as_echo "$ac_ct_AS" >&6; }
8057else
8058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060fi
8061
8062  if test "x$ac_ct_AS" = x; then
8063    AS="false"
8064  else
8065    case $cross_compiling:$ac_tool_warned in
8066yes:)
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069ac_tool_warned=yes ;;
8070esac
8071    AS=$ac_ct_AS
8072  fi
8073else
8074  AS="$ac_cv_prog_AS"
8075fi
8076
8077  if test -n "$ac_tool_prefix"; then
8078  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8079set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if ${ac_cv_prog_DLLTOOL+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  if test -n "$DLLTOOL"; then
8086  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  test -z "$as_dir" && as_dir=.
8093    for ac_exec_ext in '' $ac_executable_extensions; do
8094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097    break 2
8098  fi
8099done
8100  done
8101IFS=$as_save_IFS
8102
8103fi
8104fi
8105DLLTOOL=$ac_cv_prog_DLLTOOL
8106if test -n "$DLLTOOL"; then
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8108$as_echo "$DLLTOOL" >&6; }
8109else
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113
8114
8115fi
8116if test -z "$ac_cv_prog_DLLTOOL"; then
8117  ac_ct_DLLTOOL=$DLLTOOL
8118  # Extract the first word of "dlltool", so it can be a program name with args.
8119set dummy dlltool; ac_word=$2
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  if test -n "$ac_ct_DLLTOOL"; then
8126  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  test -z "$as_dir" && as_dir=.
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8146if test -n "$ac_ct_DLLTOOL"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8148$as_echo "$ac_ct_DLLTOOL" >&6; }
8149else
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154  if test "x$ac_ct_DLLTOOL" = x; then
8155    DLLTOOL="false"
8156  else
8157    case $cross_compiling:$ac_tool_warned in
8158yes:)
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161ac_tool_warned=yes ;;
8162esac
8163    DLLTOOL=$ac_ct_DLLTOOL
8164  fi
8165else
8166  DLLTOOL="$ac_cv_prog_DLLTOOL"
8167fi
8168
8169  if test -n "$ac_tool_prefix"; then
8170  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8171set dummy ${ac_tool_prefix}objdump; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_OBJDUMP+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  if test -n "$OBJDUMP"; then
8178  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183  IFS=$as_save_IFS
8184  test -z "$as_dir" && as_dir=.
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_OBJDUMP="${ac_tool_prefix}objdump"
8188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189    break 2
8190  fi
8191done
8192  done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197OBJDUMP=$ac_cv_prog_OBJDUMP
8198if test -n "$OBJDUMP"; then
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8200$as_echo "$OBJDUMP" >&6; }
8201else
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206
8207fi
8208if test -z "$ac_cv_prog_OBJDUMP"; then
8209  ac_ct_OBJDUMP=$OBJDUMP
8210  # Extract the first word of "objdump", so it can be a program name with args.
8211set dummy objdump; ac_word=$2
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  if test -n "$ac_ct_OBJDUMP"; then
8218  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223  IFS=$as_save_IFS
8224  test -z "$as_dir" && as_dir=.
8225    for ac_exec_ext in '' $ac_executable_extensions; do
8226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229    break 2
8230  fi
8231done
8232  done
8233IFS=$as_save_IFS
8234
8235fi
8236fi
8237ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8238if test -n "$ac_ct_OBJDUMP"; then
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8240$as_echo "$ac_ct_OBJDUMP" >&6; }
8241else
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
8244fi
8245
8246  if test "x$ac_ct_OBJDUMP" = x; then
8247    OBJDUMP="false"
8248  else
8249    case $cross_compiling:$ac_tool_warned in
8250yes:)
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253ac_tool_warned=yes ;;
8254esac
8255    OBJDUMP=$ac_ct_OBJDUMP
8256  fi
8257else
8258  OBJDUMP="$ac_cv_prog_OBJDUMP"
8259fi
8260
8261  ;;
8262esac
8263
8264test -z "$AS" && AS=as
8265
8266
8267
8268
8269
8270test -z "$DLLTOOL" && DLLTOOL=dlltool
8271
8272
8273
8274
8275
8276test -z "$OBJDUMP" && OBJDUMP=objdump
8277
8278
8279
8280
8281
8282
8283
8284        enable_dlopen=no
8285
8286
8287
8288            # Check whether --enable-shared was given.
8289if test "${enable_shared+set}" = set; then :
8290  enableval=$enable_shared; p=${PACKAGE-default}
8291    case $enableval in
8292    yes) enable_shared=yes ;;
8293    no) enable_shared=no ;;
8294    *)
8295      enable_shared=no
8296      # Look at the argument we got.  We use all the common list separators.
8297      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8298      for pkg in $enableval; do
8299	IFS=$lt_save_ifs
8300	if test "X$pkg" = "X$p"; then
8301	  enable_shared=yes
8302	fi
8303      done
8304      IFS=$lt_save_ifs
8305      ;;
8306    esac
8307else
8308  enable_shared=yes
8309fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319  # Check whether --enable-static was given.
8320if test "${enable_static+set}" = set; then :
8321  enableval=$enable_static; p=${PACKAGE-default}
8322    case $enableval in
8323    yes) enable_static=yes ;;
8324    no) enable_static=no ;;
8325    *)
8326     enable_static=no
8327      # Look at the argument we got.  We use all the common list separators.
8328      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8329      for pkg in $enableval; do
8330	IFS=$lt_save_ifs
8331	if test "X$pkg" = "X$p"; then
8332	  enable_static=yes
8333	fi
8334      done
8335      IFS=$lt_save_ifs
8336      ;;
8337    esac
8338else
8339  enable_static=yes
8340fi
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351# Check whether --with-pic was given.
8352if test "${with_pic+set}" = set; then :
8353  withval=$with_pic; lt_p=${PACKAGE-default}
8354    case $withval in
8355    yes|no) pic_mode=$withval ;;
8356    *)
8357      pic_mode=default
8358      # Look at the argument we got.  We use all the common list separators.
8359      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8360      for lt_pkg in $withval; do
8361	IFS=$lt_save_ifs
8362	if test "X$lt_pkg" = "X$lt_p"; then
8363	  pic_mode=yes
8364	fi
8365      done
8366      IFS=$lt_save_ifs
8367      ;;
8368    esac
8369else
8370  pic_mode=default
8371fi
8372
8373
8374
8375
8376
8377
8378
8379
8380  # Check whether --enable-fast-install was given.
8381if test "${enable_fast_install+set}" = set; then :
8382  enableval=$enable_fast_install; p=${PACKAGE-default}
8383    case $enableval in
8384    yes) enable_fast_install=yes ;;
8385    no) enable_fast_install=no ;;
8386    *)
8387      enable_fast_install=no
8388      # Look at the argument we got.  We use all the common list separators.
8389      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8390      for pkg in $enableval; do
8391	IFS=$lt_save_ifs
8392	if test "X$pkg" = "X$p"; then
8393	  enable_fast_install=yes
8394	fi
8395      done
8396      IFS=$lt_save_ifs
8397      ;;
8398    esac
8399else
8400  enable_fast_install=yes
8401fi
8402
8403
8404
8405
8406
8407
8408
8409
8410  shared_archive_member_spec=
8411case $host,$enable_shared in
8412power*-*-aix[5-9]*,yes)
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8414$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8415
8416# Check whether --with-aix-soname was given.
8417if test "${with_aix_soname+set}" = set; then :
8418  withval=$with_aix_soname; case $withval in
8419    aix|svr4|both)
8420      ;;
8421    *)
8422      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8423      ;;
8424    esac
8425    lt_cv_with_aix_soname=$with_aix_soname
8426else
8427  if ${lt_cv_with_aix_soname+:} false; then :
8428  $as_echo_n "(cached) " >&6
8429else
8430  lt_cv_with_aix_soname=aix
8431fi
8432
8433    with_aix_soname=$lt_cv_with_aix_soname
8434fi
8435
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8437$as_echo "$with_aix_soname" >&6; }
8438  if test aix != "$with_aix_soname"; then
8439    # For the AIX way of multilib, we name the shared archive member
8440    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8441    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8442    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8443    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8444    if test 64 = "${OBJECT_MODE-32}"; then
8445      shared_archive_member_spec=shr_64
8446    else
8447      shared_archive_member_spec=shr
8448    fi
8449  fi
8450  ;;
8451*)
8452  with_aix_soname=aix
8453  ;;
8454esac
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465# This can be used to rebuild libtool when needed
8466LIBTOOL_DEPS=$ltmain
8467
8468# Always use our own libtool.
8469LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500test -z "$LN_S" && LN_S="ln -s"
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515if test -n "${ZSH_VERSION+set}"; then
8516   setopt NO_GLOB_SUBST
8517fi
8518
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8520$as_echo_n "checking for objdir... " >&6; }
8521if ${lt_cv_objdir+:} false; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524  rm -f .libs 2>/dev/null
8525mkdir .libs 2>/dev/null
8526if test -d .libs; then
8527  lt_cv_objdir=.libs
8528else
8529  # MS-DOS does not allow filenames that begin with a dot.
8530  lt_cv_objdir=_libs
8531fi
8532rmdir .libs 2>/dev/null
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8535$as_echo "$lt_cv_objdir" >&6; }
8536objdir=$lt_cv_objdir
8537
8538
8539
8540
8541
8542cat >>confdefs.h <<_ACEOF
8543#define LT_OBJDIR "$lt_cv_objdir/"
8544_ACEOF
8545
8546
8547
8548
8549case $host_os in
8550aix3*)
8551  # AIX sometimes has problems with the GCC collect2 program.  For some
8552  # reason, if we set the COLLECT_NAMES environment variable, the problems
8553  # vanish in a puff of smoke.
8554  if test set != "${COLLECT_NAMES+set}"; then
8555    COLLECT_NAMES=
8556    export COLLECT_NAMES
8557  fi
8558  ;;
8559esac
8560
8561# Global variables:
8562ofile=libtool
8563can_build_shared=yes
8564
8565# All known linkers require a '.a' archive for static linking (except MSVC,
8566# which needs '.lib').
8567libext=a
8568
8569with_gnu_ld=$lt_cv_prog_gnu_ld
8570
8571old_CC=$CC
8572old_CFLAGS=$CFLAGS
8573
8574# Set sane defaults for various variables
8575test -z "$CC" && CC=cc
8576test -z "$LTCC" && LTCC=$CC
8577test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8578test -z "$LD" && LD=ld
8579test -z "$ac_objext" && ac_objext=o
8580
8581func_cc_basename $compiler
8582cc_basename=$func_cc_basename_result
8583
8584
8585# Only perform the check for file, if the check method requires it
8586test -z "$MAGIC_CMD" && MAGIC_CMD=file
8587case $deplibs_check_method in
8588file_magic*)
8589  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8591$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8592if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  case $MAGIC_CMD in
8596[\\/*] |  ?:[\\/]*)
8597  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8598  ;;
8599*)
8600  lt_save_MAGIC_CMD=$MAGIC_CMD
8601  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8602  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603  for ac_dir in $ac_dummy; do
8604    IFS=$lt_save_ifs
8605    test -z "$ac_dir" && ac_dir=.
8606    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8607      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8608      if test -n "$file_magic_test_file"; then
8609	case $deplibs_check_method in
8610	"file_magic "*)
8611	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614	    $EGREP "$file_magic_regex" > /dev/null; then
8615	    :
8616	  else
8617	    cat <<_LT_EOF 1>&2
8618
8619*** Warning: the command libtool uses to detect shared libraries,
8620*** $file_magic_cmd, produces output that libtool cannot recognize.
8621*** The result is that libtool may fail to recognize shared libraries
8622*** as such.  This will affect the creation of libtool libraries that
8623*** depend on shared libraries, but programs linked with such libtool
8624*** libraries will work regardless of this problem.  Nevertheless, you
8625*** may want to report the problem to your system manager and/or to
8626*** bug-libtool@gnu.org
8627
8628_LT_EOF
8629	  fi ;;
8630	esac
8631      fi
8632      break
8633    fi
8634  done
8635  IFS=$lt_save_ifs
8636  MAGIC_CMD=$lt_save_MAGIC_CMD
8637  ;;
8638esac
8639fi
8640
8641MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8642if test -n "$MAGIC_CMD"; then
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644$as_echo "$MAGIC_CMD" >&6; }
8645else
8646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
8648fi
8649
8650
8651
8652
8653
8654if test -z "$lt_cv_path_MAGIC_CMD"; then
8655  if test -n "$ac_tool_prefix"; then
8656    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8657$as_echo_n "checking for file... " >&6; }
8658if ${lt_cv_path_MAGIC_CMD+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  case $MAGIC_CMD in
8662[\\/*] |  ?:[\\/]*)
8663  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8664  ;;
8665*)
8666  lt_save_MAGIC_CMD=$MAGIC_CMD
8667  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8668  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8669  for ac_dir in $ac_dummy; do
8670    IFS=$lt_save_ifs
8671    test -z "$ac_dir" && ac_dir=.
8672    if test -f "$ac_dir/file"; then
8673      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8674      if test -n "$file_magic_test_file"; then
8675	case $deplibs_check_method in
8676	"file_magic "*)
8677	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8678	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8679	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8680	    $EGREP "$file_magic_regex" > /dev/null; then
8681	    :
8682	  else
8683	    cat <<_LT_EOF 1>&2
8684
8685*** Warning: the command libtool uses to detect shared libraries,
8686*** $file_magic_cmd, produces output that libtool cannot recognize.
8687*** The result is that libtool may fail to recognize shared libraries
8688*** as such.  This will affect the creation of libtool libraries that
8689*** depend on shared libraries, but programs linked with such libtool
8690*** libraries will work regardless of this problem.  Nevertheless, you
8691*** may want to report the problem to your system manager and/or to
8692*** bug-libtool@gnu.org
8693
8694_LT_EOF
8695	  fi ;;
8696	esac
8697      fi
8698      break
8699    fi
8700  done
8701  IFS=$lt_save_ifs
8702  MAGIC_CMD=$lt_save_MAGIC_CMD
8703  ;;
8704esac
8705fi
8706
8707MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8708if test -n "$MAGIC_CMD"; then
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8710$as_echo "$MAGIC_CMD" >&6; }
8711else
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714fi
8715
8716
8717  else
8718    MAGIC_CMD=:
8719  fi
8720fi
8721
8722  fi
8723  ;;
8724esac
8725
8726# Use C for the default configuration in the libtool script
8727
8728lt_save_CC=$CC
8729ac_ext=c
8730ac_cpp='$CPP $CPPFLAGS'
8731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733ac_compiler_gnu=$ac_cv_c_compiler_gnu
8734
8735
8736# Source file extension for C test sources.
8737ac_ext=c
8738
8739# Object file extension for compiled C test sources.
8740objext=o
8741objext=$objext
8742
8743# Code to be used in simple compile tests
8744lt_simple_compile_test_code="int some_variable = 0;"
8745
8746# Code to be used in simple link tests
8747lt_simple_link_test_code='int main(){return(0);}'
8748
8749
8750
8751
8752
8753
8754
8755# If no C compiler was specified, use CC.
8756LTCC=${LTCC-"$CC"}
8757
8758# If no C compiler flags were specified, use CFLAGS.
8759LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8760
8761# Allow CC to be a program name with arguments.
8762compiler=$CC
8763
8764# Save the default compiler, since it gets overwritten when the other
8765# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8766compiler_DEFAULT=$CC
8767
8768# save warnings/boilerplate of simple test code
8769ac_outfile=conftest.$ac_objext
8770echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8771eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8772_lt_compiler_boilerplate=`cat conftest.err`
8773$RM conftest*
8774
8775ac_outfile=conftest.$ac_objext
8776echo "$lt_simple_link_test_code" >conftest.$ac_ext
8777eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8778_lt_linker_boilerplate=`cat conftest.err`
8779$RM -r conftest*
8780
8781
8782## CAVEAT EMPTOR:
8783## There is no encapsulation within the following macros, do not change
8784## the running order or otherwise move them around unless you know exactly
8785## what you are doing...
8786if test -n "$compiler"; then
8787
8788lt_prog_compiler_no_builtin_flag=
8789
8790if test yes = "$GCC"; then
8791  case $cc_basename in
8792  nvcc*)
8793    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8794  *)
8795    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8796  esac
8797
8798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8799$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8800if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  lt_cv_prog_compiler_rtti_exceptions=no
8804   ac_outfile=conftest.$ac_objext
8805   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8807   # Insert the option either (1) after the last *FLAGS variable, or
8808   # (2) before a word containing "conftest.", or (3) at the end.
8809   # Note that $ac_compile itself does not contain backslashes and begins
8810   # with a dollar sign (not a hyphen), so the echo should work correctly.
8811   # The option is referenced via a variable to avoid confusing sed.
8812   lt_compile=`echo "$ac_compile" | $SED \
8813   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8814   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8815   -e 's:$: $lt_compiler_flag:'`
8816   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8817   (eval "$lt_compile" 2>conftest.err)
8818   ac_status=$?
8819   cat conftest.err >&5
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   if (exit $ac_status) && test -s "$ac_outfile"; then
8822     # The compiler can only warn and ignore the option if not recognized
8823     # So say no if there are warnings other than the usual output.
8824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8825     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8826     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8827       lt_cv_prog_compiler_rtti_exceptions=yes
8828     fi
8829   fi
8830   $RM conftest*
8831
8832fi
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8834$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8835
8836if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8837    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8838else
8839    :
8840fi
8841
8842fi
8843
8844
8845
8846
8847
8848
8849  lt_prog_compiler_wl=
8850lt_prog_compiler_pic=
8851lt_prog_compiler_static=
8852
8853
8854  if test yes = "$GCC"; then
8855    lt_prog_compiler_wl='-Wl,'
8856    lt_prog_compiler_static='-static'
8857
8858    case $host_os in
8859      aix*)
8860      # All AIX code is PIC.
8861      if test ia64 = "$host_cpu"; then
8862	# AIX 5 now supports IA64 processor
8863	lt_prog_compiler_static='-Bstatic'
8864      fi
8865      lt_prog_compiler_pic='-fPIC'
8866      ;;
8867
8868    amigaos*)
8869      case $host_cpu in
8870      powerpc)
8871            # see comment about AmigaOS4 .so support
8872            lt_prog_compiler_pic='-fPIC'
8873        ;;
8874      m68k)
8875            # FIXME: we need at least 68020 code to build shared libraries, but
8876            # adding the '-m68020' flag to GCC prevents building anything better,
8877            # like '-m68040'.
8878            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8879        ;;
8880      esac
8881      ;;
8882
8883    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8884      # PIC is the default for these OSes.
8885      ;;
8886
8887    mingw* | cygwin* | pw32* | os2* | cegcc*)
8888      # This hack is so that the source file can tell whether it is being
8889      # built for inclusion in a dll (and should export symbols for example).
8890      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8891      # (--disable-auto-import) libraries
8892      lt_prog_compiler_pic='-DDLL_EXPORT'
8893      case $host_os in
8894      os2*)
8895	lt_prog_compiler_static='$wl-static'
8896	;;
8897      esac
8898      ;;
8899
8900    darwin* | rhapsody*)
8901      # PIC is the default on this platform
8902      # Common symbols not allowed in MH_DYLIB files
8903      lt_prog_compiler_pic='-fno-common'
8904      ;;
8905
8906    haiku*)
8907      # PIC is the default for Haiku.
8908      # The "-static" flag exists, but is broken.
8909      lt_prog_compiler_static=
8910      ;;
8911
8912    hpux*)
8913      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8914      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8915      # sets the default TLS model and affects inlining.
8916      case $host_cpu in
8917      hppa*64*)
8918	# +Z the default
8919	;;
8920      *)
8921	lt_prog_compiler_pic='-fPIC'
8922	;;
8923      esac
8924      ;;
8925
8926    interix[3-9]*)
8927      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8928      # Instead, we relocate shared libraries at runtime.
8929      ;;
8930
8931    msdosdjgpp*)
8932      # Just because we use GCC doesn't mean we suddenly get shared libraries
8933      # on systems that don't support them.
8934      lt_prog_compiler_can_build_shared=no
8935      enable_shared=no
8936      ;;
8937
8938    *nto* | *qnx*)
8939      # QNX uses GNU C++, but need to define -shared option too, otherwise
8940      # it will coredump.
8941      lt_prog_compiler_pic='-fPIC -shared'
8942      ;;
8943
8944    sysv4*MP*)
8945      if test -d /usr/nec; then
8946	lt_prog_compiler_pic=-Kconform_pic
8947      fi
8948      ;;
8949
8950    *)
8951      lt_prog_compiler_pic='-fPIC'
8952      ;;
8953    esac
8954
8955    case $cc_basename in
8956    nvcc*) # Cuda Compiler Driver 2.2
8957      lt_prog_compiler_wl='-Xlinker '
8958      if test -n "$lt_prog_compiler_pic"; then
8959        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8960      fi
8961      ;;
8962    esac
8963  else
8964    # PORTME Check for flag to pass linker flags through the system compiler.
8965    case $host_os in
8966    aix*)
8967      lt_prog_compiler_wl='-Wl,'
8968      if test ia64 = "$host_cpu"; then
8969	# AIX 5 now supports IA64 processor
8970	lt_prog_compiler_static='-Bstatic'
8971      else
8972	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8973      fi
8974      ;;
8975
8976    darwin* | rhapsody*)
8977      # PIC is the default on this platform
8978      # Common symbols not allowed in MH_DYLIB files
8979      lt_prog_compiler_pic='-fno-common'
8980      case $cc_basename in
8981      nagfor*)
8982        # NAG Fortran compiler
8983        lt_prog_compiler_wl='-Wl,-Wl,,'
8984        lt_prog_compiler_pic='-PIC'
8985        lt_prog_compiler_static='-Bstatic'
8986        ;;
8987      esac
8988      ;;
8989
8990    mingw* | cygwin* | pw32* | os2* | cegcc*)
8991      # This hack is so that the source file can tell whether it is being
8992      # built for inclusion in a dll (and should export symbols for example).
8993      lt_prog_compiler_pic='-DDLL_EXPORT'
8994      case $host_os in
8995      os2*)
8996	lt_prog_compiler_static='$wl-static'
8997	;;
8998      esac
8999      ;;
9000
9001    hpux9* | hpux10* | hpux11*)
9002      lt_prog_compiler_wl='-Wl,'
9003      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9004      # not for PA HP-UX.
9005      case $host_cpu in
9006      hppa*64*|ia64*)
9007	# +Z the default
9008	;;
9009      *)
9010	lt_prog_compiler_pic='+Z'
9011	;;
9012      esac
9013      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9014      lt_prog_compiler_static='$wl-a ${wl}archive'
9015      ;;
9016
9017    irix5* | irix6* | nonstopux*)
9018      lt_prog_compiler_wl='-Wl,'
9019      # PIC (with -KPIC) is the default.
9020      lt_prog_compiler_static='-non_shared'
9021      ;;
9022
9023    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9024      case $cc_basename in
9025      # old Intel for x86_64, which still supported -KPIC.
9026      ecc*)
9027	lt_prog_compiler_wl='-Wl,'
9028	lt_prog_compiler_pic='-KPIC'
9029	lt_prog_compiler_static='-static'
9030        ;;
9031      # icc used to be incompatible with GCC.
9032      # ICC 10 doesn't accept -KPIC any more.
9033      icc* | ifort*)
9034	lt_prog_compiler_wl='-Wl,'
9035	lt_prog_compiler_pic='-fPIC'
9036	lt_prog_compiler_static='-static'
9037        ;;
9038      # Lahey Fortran 8.1.
9039      lf95*)
9040	lt_prog_compiler_wl='-Wl,'
9041	lt_prog_compiler_pic='--shared'
9042	lt_prog_compiler_static='--static'
9043	;;
9044      nagfor*)
9045	# NAG Fortran compiler
9046	lt_prog_compiler_wl='-Wl,-Wl,,'
9047	lt_prog_compiler_pic='-PIC'
9048	lt_prog_compiler_static='-Bstatic'
9049	;;
9050      tcc*)
9051	# Fabrice Bellard et al's Tiny C Compiler
9052	lt_prog_compiler_wl='-Wl,'
9053	lt_prog_compiler_pic='-fPIC'
9054	lt_prog_compiler_static='-static'
9055	;;
9056      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9057        # Portland Group compilers (*not* the Pentium gcc compiler,
9058	# which looks to be a dead project)
9059	lt_prog_compiler_wl='-Wl,'
9060	lt_prog_compiler_pic='-fpic'
9061	lt_prog_compiler_static='-Bstatic'
9062        ;;
9063      ccc*)
9064        lt_prog_compiler_wl='-Wl,'
9065        # All Alpha code is PIC.
9066        lt_prog_compiler_static='-non_shared'
9067        ;;
9068      xl* | bgxl* | bgf* | mpixl*)
9069	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9070	lt_prog_compiler_wl='-Wl,'
9071	lt_prog_compiler_pic='-qpic'
9072	lt_prog_compiler_static='-qstaticlink'
9073	;;
9074      *)
9075	case `$CC -V 2>&1 | sed 5q` in
9076	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9077	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9078	  lt_prog_compiler_pic='-KPIC'
9079	  lt_prog_compiler_static='-Bstatic'
9080	  lt_prog_compiler_wl=''
9081	  ;;
9082	*Sun\ F* | *Sun*Fortran*)
9083	  lt_prog_compiler_pic='-KPIC'
9084	  lt_prog_compiler_static='-Bstatic'
9085	  lt_prog_compiler_wl='-Qoption ld '
9086	  ;;
9087	*Sun\ C*)
9088	  # Sun C 5.9
9089	  lt_prog_compiler_pic='-KPIC'
9090	  lt_prog_compiler_static='-Bstatic'
9091	  lt_prog_compiler_wl='-Wl,'
9092	  ;;
9093        *Intel*\ [CF]*Compiler*)
9094	  lt_prog_compiler_wl='-Wl,'
9095	  lt_prog_compiler_pic='-fPIC'
9096	  lt_prog_compiler_static='-static'
9097	  ;;
9098	*Portland\ Group*)
9099	  lt_prog_compiler_wl='-Wl,'
9100	  lt_prog_compiler_pic='-fpic'
9101	  lt_prog_compiler_static='-Bstatic'
9102	  ;;
9103	esac
9104	;;
9105      esac
9106      ;;
9107
9108    newsos6)
9109      lt_prog_compiler_pic='-KPIC'
9110      lt_prog_compiler_static='-Bstatic'
9111      ;;
9112
9113    *nto* | *qnx*)
9114      # QNX uses GNU C++, but need to define -shared option too, otherwise
9115      # it will coredump.
9116      lt_prog_compiler_pic='-fPIC -shared'
9117      ;;
9118
9119    osf3* | osf4* | osf5*)
9120      lt_prog_compiler_wl='-Wl,'
9121      # All OSF/1 code is PIC.
9122      lt_prog_compiler_static='-non_shared'
9123      ;;
9124
9125    rdos*)
9126      lt_prog_compiler_static='-non_shared'
9127      ;;
9128
9129    solaris*)
9130      lt_prog_compiler_pic='-KPIC'
9131      lt_prog_compiler_static='-Bstatic'
9132      case $cc_basename in
9133      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9134	lt_prog_compiler_wl='-Qoption ld ';;
9135      *)
9136	lt_prog_compiler_wl='-Wl,';;
9137      esac
9138      ;;
9139
9140    sunos4*)
9141      lt_prog_compiler_wl='-Qoption ld '
9142      lt_prog_compiler_pic='-PIC'
9143      lt_prog_compiler_static='-Bstatic'
9144      ;;
9145
9146    sysv4 | sysv4.2uw2* | sysv4.3*)
9147      lt_prog_compiler_wl='-Wl,'
9148      lt_prog_compiler_pic='-KPIC'
9149      lt_prog_compiler_static='-Bstatic'
9150      ;;
9151
9152    sysv4*MP*)
9153      if test -d /usr/nec; then
9154	lt_prog_compiler_pic='-Kconform_pic'
9155	lt_prog_compiler_static='-Bstatic'
9156      fi
9157      ;;
9158
9159    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9160      lt_prog_compiler_wl='-Wl,'
9161      lt_prog_compiler_pic='-KPIC'
9162      lt_prog_compiler_static='-Bstatic'
9163      ;;
9164
9165    unicos*)
9166      lt_prog_compiler_wl='-Wl,'
9167      lt_prog_compiler_can_build_shared=no
9168      ;;
9169
9170    uts4*)
9171      lt_prog_compiler_pic='-pic'
9172      lt_prog_compiler_static='-Bstatic'
9173      ;;
9174
9175    *)
9176      lt_prog_compiler_can_build_shared=no
9177      ;;
9178    esac
9179  fi
9180
9181case $host_os in
9182  # For platforms that do not support PIC, -DPIC is meaningless:
9183  *djgpp*)
9184    lt_prog_compiler_pic=
9185    ;;
9186  *)
9187    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9188    ;;
9189esac
9190
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9192$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9193if ${lt_cv_prog_compiler_pic+:} false; then :
9194  $as_echo_n "(cached) " >&6
9195else
9196  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9199$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9200lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9201
9202#
9203# Check to make sure the PIC flag actually works.
9204#
9205if test -n "$lt_prog_compiler_pic"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9207$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9208if ${lt_cv_prog_compiler_pic_works+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  lt_cv_prog_compiler_pic_works=no
9212   ac_outfile=conftest.$ac_objext
9213   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9214   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9215   # Insert the option either (1) after the last *FLAGS variable, or
9216   # (2) before a word containing "conftest.", or (3) at the end.
9217   # Note that $ac_compile itself does not contain backslashes and begins
9218   # with a dollar sign (not a hyphen), so the echo should work correctly.
9219   # The option is referenced via a variable to avoid confusing sed.
9220   lt_compile=`echo "$ac_compile" | $SED \
9221   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9222   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9223   -e 's:$: $lt_compiler_flag:'`
9224   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9225   (eval "$lt_compile" 2>conftest.err)
9226   ac_status=$?
9227   cat conftest.err >&5
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   if (exit $ac_status) && test -s "$ac_outfile"; then
9230     # The compiler can only warn and ignore the option if not recognized
9231     # So say no if there are warnings other than the usual output.
9232     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9233     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9234     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9235       lt_cv_prog_compiler_pic_works=yes
9236     fi
9237   fi
9238   $RM conftest*
9239
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9242$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9243
9244if test yes = "$lt_cv_prog_compiler_pic_works"; then
9245    case $lt_prog_compiler_pic in
9246     "" | " "*) ;;
9247     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9248     esac
9249else
9250    lt_prog_compiler_pic=
9251     lt_prog_compiler_can_build_shared=no
9252fi
9253
9254fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266#
9267# Check to make sure the static flag actually works.
9268#
9269wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9271$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9272if ${lt_cv_prog_compiler_static_works+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  lt_cv_prog_compiler_static_works=no
9276   save_LDFLAGS=$LDFLAGS
9277   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9278   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9279   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9280     # The linker can only warn and ignore the option if not recognized
9281     # So say no if there are warnings
9282     if test -s conftest.err; then
9283       # Append any errors to the config.log.
9284       cat conftest.err 1>&5
9285       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9286       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287       if diff conftest.exp conftest.er2 >/dev/null; then
9288         lt_cv_prog_compiler_static_works=yes
9289       fi
9290     else
9291       lt_cv_prog_compiler_static_works=yes
9292     fi
9293   fi
9294   $RM -r conftest*
9295   LDFLAGS=$save_LDFLAGS
9296
9297fi
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9299$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9300
9301if test yes = "$lt_cv_prog_compiler_static_works"; then
9302    :
9303else
9304    lt_prog_compiler_static=
9305fi
9306
9307
9308
9309
9310
9311
9312
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9315if ${lt_cv_prog_compiler_c_o+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  lt_cv_prog_compiler_c_o=no
9319   $RM -r conftest 2>/dev/null
9320   mkdir conftest
9321   cd conftest
9322   mkdir out
9323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324
9325   lt_compiler_flag="-o out/conftest2.$ac_objext"
9326   # Insert the option either (1) after the last *FLAGS variable, or
9327   # (2) before a word containing "conftest.", or (3) at the end.
9328   # Note that $ac_compile itself does not contain backslashes and begins
9329   # with a dollar sign (not a hyphen), so the echo should work correctly.
9330   lt_compile=`echo "$ac_compile" | $SED \
9331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333   -e 's:$: $lt_compiler_flag:'`
9334   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335   (eval "$lt_compile" 2>out/conftest.err)
9336   ac_status=$?
9337   cat out/conftest.err >&5
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9340   then
9341     # The compiler can only warn and ignore the option if not recognized
9342     # So say no if there are warnings
9343     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9344     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9345     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9346       lt_cv_prog_compiler_c_o=yes
9347     fi
9348   fi
9349   chmod u+w . 2>&5
9350   $RM conftest*
9351   # SGI C++ compiler will create directory out/ii_files/ for
9352   # template instantiation
9353   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9354   $RM out/* && rmdir out
9355   cd ..
9356   $RM -r conftest
9357   $RM conftest*
9358
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9361$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9362
9363
9364
9365
9366
9367
9368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9369$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9370if ${lt_cv_prog_compiler_c_o+:} false; then :
9371  $as_echo_n "(cached) " >&6
9372else
9373  lt_cv_prog_compiler_c_o=no
9374   $RM -r conftest 2>/dev/null
9375   mkdir conftest
9376   cd conftest
9377   mkdir out
9378   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9379
9380   lt_compiler_flag="-o out/conftest2.$ac_objext"
9381   # Insert the option either (1) after the last *FLAGS variable, or
9382   # (2) before a word containing "conftest.", or (3) at the end.
9383   # Note that $ac_compile itself does not contain backslashes and begins
9384   # with a dollar sign (not a hyphen), so the echo should work correctly.
9385   lt_compile=`echo "$ac_compile" | $SED \
9386   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9388   -e 's:$: $lt_compiler_flag:'`
9389   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9390   (eval "$lt_compile" 2>out/conftest.err)
9391   ac_status=$?
9392   cat out/conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9395   then
9396     # The compiler can only warn and ignore the option if not recognized
9397     # So say no if there are warnings
9398     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9399     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9400     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9401       lt_cv_prog_compiler_c_o=yes
9402     fi
9403   fi
9404   chmod u+w . 2>&5
9405   $RM conftest*
9406   # SGI C++ compiler will create directory out/ii_files/ for
9407   # template instantiation
9408   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9409   $RM out/* && rmdir out
9410   cd ..
9411   $RM -r conftest
9412   $RM conftest*
9413
9414fi
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9416$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9417
9418
9419
9420
9421hard_links=nottested
9422if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9423  # do not overwrite the value of need_locks provided by the user
9424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9425$as_echo_n "checking if we can lock with hard links... " >&6; }
9426  hard_links=yes
9427  $RM conftest*
9428  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9429  touch conftest.a
9430  ln conftest.a conftest.b 2>&5 || hard_links=no
9431  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9433$as_echo "$hard_links" >&6; }
9434  if test no = "$hard_links"; then
9435    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9436$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9437    need_locks=warn
9438  fi
9439else
9440  need_locks=no
9441fi
9442
9443
9444
9445
9446
9447
9448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9450
9451  runpath_var=
9452  allow_undefined_flag=
9453  always_export_symbols=no
9454  archive_cmds=
9455  archive_expsym_cmds=
9456  compiler_needs_object=no
9457  enable_shared_with_static_runtimes=no
9458  export_dynamic_flag_spec=
9459  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9460  hardcode_automatic=no
9461  hardcode_direct=no
9462  hardcode_direct_absolute=no
9463  hardcode_libdir_flag_spec=
9464  hardcode_libdir_separator=
9465  hardcode_minus_L=no
9466  hardcode_shlibpath_var=unsupported
9467  inherit_rpath=no
9468  link_all_deplibs=unknown
9469  module_cmds=
9470  module_expsym_cmds=
9471  old_archive_from_new_cmds=
9472  old_archive_from_expsyms_cmds=
9473  thread_safe_flag_spec=
9474  whole_archive_flag_spec=
9475  # include_expsyms should be a list of space-separated symbols to be *always*
9476  # included in the symbol list
9477  include_expsyms=
9478  # exclude_expsyms can be an extended regexp of symbols to exclude
9479  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9480  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9481  # as well as any symbol that contains 'd'.
9482  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9483  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9484  # platforms (ab)use it in PIC code, but their linkers get confused if
9485  # the symbol is explicitly referenced.  Since portable code cannot
9486  # rely on this symbol name, it's probably fine to never include it in
9487  # preloaded symbol tables.
9488  # Exclude shared library initialization/finalization symbols.
9489  extract_expsyms_cmds=
9490
9491  case $host_os in
9492  cygwin* | mingw* | pw32* | cegcc*)
9493    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9494    # When not using gcc, we currently assume that we are using
9495    # Microsoft Visual C++.
9496    if test yes != "$GCC"; then
9497      with_gnu_ld=no
9498    fi
9499    ;;
9500  interix*)
9501    # we just hope/assume this is gcc and not c89 (= MSVC++)
9502    with_gnu_ld=yes
9503    ;;
9504  openbsd* | bitrig*)
9505    with_gnu_ld=no
9506    ;;
9507  esac
9508
9509  ld_shlibs=yes
9510
9511  # On some targets, GNU ld is compatible enough with the native linker
9512  # that we're better off using the native interface for both.
9513  lt_use_gnu_ld_interface=no
9514  if test yes = "$with_gnu_ld"; then
9515    case $host_os in
9516      aix*)
9517	# The AIX port of GNU ld has always aspired to compatibility
9518	# with the native linker.  However, as the warning in the GNU ld
9519	# block says, versions before 2.19.5* couldn't really create working
9520	# shared libraries, regardless of the interface used.
9521	case `$LD -v 2>&1` in
9522	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9523	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9524	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9525	  *)
9526	    lt_use_gnu_ld_interface=yes
9527	    ;;
9528	esac
9529	;;
9530      *)
9531	lt_use_gnu_ld_interface=yes
9532	;;
9533    esac
9534  fi
9535
9536  if test yes = "$lt_use_gnu_ld_interface"; then
9537    # If archive_cmds runs LD, not CC, wlarc should be empty
9538    wlarc='$wl'
9539
9540    # Set some defaults for GNU ld with shared library support. These
9541    # are reset later if shared libraries are not supported. Putting them
9542    # here allows them to be overridden if necessary.
9543    runpath_var=LD_RUN_PATH
9544    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9545    export_dynamic_flag_spec='$wl--export-dynamic'
9546    # ancient GNU ld didn't support --whole-archive et. al.
9547    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9548      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9549    else
9550      whole_archive_flag_spec=
9551    fi
9552    supports_anon_versioning=no
9553    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9554      *GNU\ gold*) supports_anon_versioning=yes ;;
9555      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9556      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9557      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9558      *\ 2.11.*) ;; # other 2.11 versions
9559      *) supports_anon_versioning=yes ;;
9560    esac
9561
9562    # See if GNU ld supports shared libraries.
9563    case $host_os in
9564    aix[3-9]*)
9565      # On AIX/PPC, the GNU linker is very broken
9566      if test ia64 != "$host_cpu"; then
9567	ld_shlibs=no
9568	cat <<_LT_EOF 1>&2
9569
9570*** Warning: the GNU linker, at least up to release 2.19, is reported
9571*** to be unable to reliably create shared libraries on AIX.
9572*** Therefore, libtool is disabling shared libraries support.  If you
9573*** really care for shared libraries, you may want to install binutils
9574*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9575*** You will then need to restart the configuration process.
9576
9577_LT_EOF
9578      fi
9579      ;;
9580
9581    amigaos*)
9582      case $host_cpu in
9583      powerpc)
9584            # see comment about AmigaOS4 .so support
9585            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9586            archive_expsym_cmds=''
9587        ;;
9588      m68k)
9589            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)'
9590            hardcode_libdir_flag_spec='-L$libdir'
9591            hardcode_minus_L=yes
9592        ;;
9593      esac
9594      ;;
9595
9596    beos*)
9597      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598	allow_undefined_flag=unsupported
9599	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9600	# support --undefined.  This deserves some investigation.  FIXME
9601	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602      else
9603	ld_shlibs=no
9604      fi
9605      ;;
9606
9607    cygwin* | mingw* | pw32* | cegcc*)
9608      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9609      # as there is no search path for DLLs.
9610      hardcode_libdir_flag_spec='-L$libdir'
9611      export_dynamic_flag_spec='$wl--export-all-symbols'
9612      allow_undefined_flag=unsupported
9613      always_export_symbols=no
9614      enable_shared_with_static_runtimes=yes
9615      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'
9616      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9617
9618      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9619        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9620	# If the export-symbols file already is a .def file, use it as
9621	# is; otherwise, prepend EXPORTS...
9622	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9623          cp $export_symbols $output_objdir/$soname.def;
9624        else
9625          echo EXPORTS > $output_objdir/$soname.def;
9626          cat $export_symbols >> $output_objdir/$soname.def;
9627        fi~
9628        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9629      else
9630	ld_shlibs=no
9631      fi
9632      ;;
9633
9634    haiku*)
9635      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9636      link_all_deplibs=yes
9637      ;;
9638
9639    os2*)
9640      hardcode_libdir_flag_spec='-L$libdir'
9641      hardcode_minus_L=yes
9642      allow_undefined_flag=unsupported
9643      shrext_cmds=.dll
9644      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9645	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9646	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9647	$ECHO EXPORTS >> $output_objdir/$libname.def~
9648	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9649	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9650	emximp -o $lib $output_objdir/$libname.def'
9651      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9652	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9653	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9654	$ECHO EXPORTS >> $output_objdir/$libname.def~
9655	prefix_cmds="$SED"~
9656	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9657	  prefix_cmds="$prefix_cmds -e 1d";
9658	fi~
9659	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9660	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9661	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9662	emximp -o $lib $output_objdir/$libname.def'
9663      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9664      enable_shared_with_static_runtimes=yes
9665      ;;
9666
9667    interix[3-9]*)
9668      hardcode_direct=no
9669      hardcode_shlibpath_var=no
9670      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9671      export_dynamic_flag_spec='$wl-E'
9672      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9673      # Instead, shared libraries are loaded at an image base (0x10000000 by
9674      # default) and relocated if they conflict, which is a slow very memory
9675      # consuming and fragmenting process.  To avoid this, we pick a random,
9676      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9677      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9678      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9679      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'
9680      ;;
9681
9682    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9683      tmp_diet=no
9684      if test linux-dietlibc = "$host_os"; then
9685	case $cc_basename in
9686	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9687	esac
9688      fi
9689      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9690	 && test no = "$tmp_diet"
9691      then
9692	tmp_addflag=' $pic_flag'
9693	tmp_sharedflag='-shared'
9694	case $cc_basename,$host_cpu in
9695        pgcc*)				# Portland Group C compiler
9696	  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'
9697	  tmp_addflag=' $pic_flag'
9698	  ;;
9699	pgf77* | pgf90* | pgf95* | pgfortran*)
9700					# Portland Group f77 and f90 compilers
9701	  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'
9702	  tmp_addflag=' $pic_flag -Mnomain' ;;
9703	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9704	  tmp_addflag=' -i_dynamic' ;;
9705	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9706	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9707	ifc* | ifort*)			# Intel Fortran compiler
9708	  tmp_addflag=' -nofor_main' ;;
9709	lf95*)				# Lahey Fortran 8.1
9710	  whole_archive_flag_spec=
9711	  tmp_sharedflag='--shared' ;;
9712        nagfor*)                        # NAGFOR 5.3
9713          tmp_sharedflag='-Wl,-shared' ;;
9714	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9715	  tmp_sharedflag='-qmkshrobj'
9716	  tmp_addflag= ;;
9717	nvcc*)	# Cuda Compiler Driver 2.2
9718	  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'
9719	  compiler_needs_object=yes
9720	  ;;
9721	esac
9722	case `$CC -V 2>&1 | sed 5q` in
9723	*Sun\ C*)			# Sun C 5.9
9724	  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'
9725	  compiler_needs_object=yes
9726	  tmp_sharedflag='-G' ;;
9727	*Sun\ F*)			# Sun Fortran 8.3
9728	  tmp_sharedflag='-G' ;;
9729	esac
9730	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9731
9732        if test yes = "$supports_anon_versioning"; then
9733          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9734            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9735            echo "local: *; };" >> $output_objdir/$libname.ver~
9736            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9737        fi
9738
9739	case $cc_basename in
9740	tcc*)
9741	  export_dynamic_flag_spec='-rdynamic'
9742	  ;;
9743	xlf* | bgf* | bgxlf* | mpixlf*)
9744	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9745	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9746	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9747	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9748	  if test yes = "$supports_anon_versioning"; then
9749	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9750              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9751              echo "local: *; };" >> $output_objdir/$libname.ver~
9752              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9753	  fi
9754	  ;;
9755	esac
9756      else
9757        ld_shlibs=no
9758      fi
9759      ;;
9760
9761    netbsd*)
9762      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9763	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9764	wlarc=
9765      else
9766	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9767	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9768      fi
9769      ;;
9770
9771    solaris*)
9772      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9773	ld_shlibs=no
9774	cat <<_LT_EOF 1>&2
9775
9776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9777*** create shared libraries on Solaris systems.  Therefore, libtool
9778*** is disabling shared libraries support.  We urge you to upgrade GNU
9779*** binutils to release 2.9.1 or newer.  Another option is to modify
9780*** your PATH or compiler configuration so that the native linker is
9781*** used, and then restart.
9782
9783_LT_EOF
9784      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9785	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9786	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9787      else
9788	ld_shlibs=no
9789      fi
9790      ;;
9791
9792    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9793      case `$LD -v 2>&1` in
9794        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9795	ld_shlibs=no
9796	cat <<_LT_EOF 1>&2
9797
9798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9799*** reliably create shared libraries on SCO systems.  Therefore, libtool
9800*** is disabling shared libraries support.  We urge you to upgrade GNU
9801*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9802*** your PATH or compiler configuration so that the native linker is
9803*** used, and then restart.
9804
9805_LT_EOF
9806	;;
9807	*)
9808	  # For security reasons, it is highly recommended that you always
9809	  # use absolute paths for naming shared libraries, and exclude the
9810	  # DT_RUNPATH tag from executables and libraries.  But doing so
9811	  # requires that you compile everything twice, which is a pain.
9812	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9814	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9815	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9816	  else
9817	    ld_shlibs=no
9818	  fi
9819	;;
9820      esac
9821      ;;
9822
9823    sunos4*)
9824      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825      wlarc=
9826      hardcode_direct=yes
9827      hardcode_shlibpath_var=no
9828      ;;
9829
9830    *)
9831      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9834      else
9835	ld_shlibs=no
9836      fi
9837      ;;
9838    esac
9839
9840    if test no = "$ld_shlibs"; then
9841      runpath_var=
9842      hardcode_libdir_flag_spec=
9843      export_dynamic_flag_spec=
9844      whole_archive_flag_spec=
9845    fi
9846  else
9847    # PORTME fill in a description of your system's linker (not GNU ld)
9848    case $host_os in
9849    aix3*)
9850      allow_undefined_flag=unsupported
9851      always_export_symbols=yes
9852      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'
9853      # Note: this linker hardcodes the directories in LIBPATH if there
9854      # are no directories specified by -L.
9855      hardcode_minus_L=yes
9856      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9857	# Neither direct hardcoding nor static linking is supported with a
9858	# broken collect2.
9859	hardcode_direct=unsupported
9860      fi
9861      ;;
9862
9863    aix[4-9]*)
9864      if test ia64 = "$host_cpu"; then
9865	# On IA64, the linker does run time linking by default, so we don't
9866	# have to do anything special.
9867	aix_use_runtimelinking=no
9868	exp_sym_flag='-Bexport'
9869	no_entry_flag=
9870      else
9871	# If we're using GNU nm, then we don't want the "-C" option.
9872	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9873	# Without the "-l" option, or with the "-B" option, AIX nm treats
9874	# weak defined symbols like other global defined symbols, whereas
9875	# GNU nm marks them as "W".
9876	# While the 'weak' keyword is ignored in the Export File, we need
9877	# it in the Import File for the 'aix-soname' feature, so we have
9878	# to replace the "-B" option with "-P" for AIX nm.
9879	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9880	  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'
9881	else
9882	  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 == "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'
9883	fi
9884	aix_use_runtimelinking=no
9885
9886	# Test if we are trying to use run time linking or normal
9887	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9888	# have runtime linking enabled, and use it for executables.
9889	# For shared libraries, we enable/disable runtime linking
9890	# depending on the kind of the shared library created -
9891	# when "with_aix_soname,aix_use_runtimelinking" is:
9892	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9893	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9894	#            lib.a           static archive
9895	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9896	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9897	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9898	#            lib.a(lib.so.V) shared, rtl:no
9899	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9900	#            lib.a           static archive
9901	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9902	  for ld_flag in $LDFLAGS; do
9903	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9904	    aix_use_runtimelinking=yes
9905	    break
9906	  fi
9907	  done
9908	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9909	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9910	    # so we don't have lib.a shared libs to link our executables.
9911	    # We have to force runtime linking in this case.
9912	    aix_use_runtimelinking=yes
9913	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9914	  fi
9915	  ;;
9916	esac
9917
9918	exp_sym_flag='-bexport'
9919	no_entry_flag='-bnoentry'
9920      fi
9921
9922      # When large executables or shared objects are built, AIX ld can
9923      # have problems creating the table of contents.  If linking a library
9924      # or program results in "error TOC overflow" add -mminimal-toc to
9925      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9926      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9927
9928      archive_cmds=''
9929      hardcode_direct=yes
9930      hardcode_direct_absolute=yes
9931      hardcode_libdir_separator=':'
9932      link_all_deplibs=yes
9933      file_list_spec='$wl-f,'
9934      case $with_aix_soname,$aix_use_runtimelinking in
9935      aix,*) ;; # traditional, no import file
9936      svr4,* | *,yes) # use import file
9937	# The Import File defines what to hardcode.
9938	hardcode_direct=no
9939	hardcode_direct_absolute=no
9940	;;
9941      esac
9942
9943      if test yes = "$GCC"; then
9944	case $host_os in aix4.[012]|aix4.[012].*)
9945	# We only want to do this on AIX 4.2 and lower, the check
9946	# below for broken collect2 doesn't work under 4.3+
9947	  collect2name=`$CC -print-prog-name=collect2`
9948	  if test -f "$collect2name" &&
9949	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9950	  then
9951	  # We have reworked collect2
9952	  :
9953	  else
9954	  # We have old collect2
9955	  hardcode_direct=unsupported
9956	  # It fails to find uninstalled libraries when the uninstalled
9957	  # path is not listed in the libpath.  Setting hardcode_minus_L
9958	  # to unsupported forces relinking
9959	  hardcode_minus_L=yes
9960	  hardcode_libdir_flag_spec='-L$libdir'
9961	  hardcode_libdir_separator=
9962	  fi
9963	  ;;
9964	esac
9965	shared_flag='-shared'
9966	if test yes = "$aix_use_runtimelinking"; then
9967	  shared_flag="$shared_flag "'$wl-G'
9968	fi
9969	# Need to ensure runtime linking is disabled for the traditional
9970	# shared library, or the linker may eventually find shared libraries
9971	# /with/ Import File - we do not want to mix them.
9972	shared_flag_aix='-shared'
9973	shared_flag_svr4='-shared $wl-G'
9974      else
9975	# not using gcc
9976	if test ia64 = "$host_cpu"; then
9977	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9978	# chokes on -Wl,-G. The following line is correct:
9979	  shared_flag='-G'
9980	else
9981	  if test yes = "$aix_use_runtimelinking"; then
9982	    shared_flag='$wl-G'
9983	  else
9984	    shared_flag='$wl-bM:SRE'
9985	  fi
9986	  shared_flag_aix='$wl-bM:SRE'
9987	  shared_flag_svr4='$wl-G'
9988	fi
9989      fi
9990
9991      export_dynamic_flag_spec='$wl-bexpall'
9992      # It seems that -bexpall does not export symbols beginning with
9993      # underscore (_), so it is better to generate a list of symbols to export.
9994      always_export_symbols=yes
9995      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9996	# Warning - without using the other runtime loading flags (-brtl),
9997	# -berok will link without error, but may produce a broken library.
9998	allow_undefined_flag='-berok'
9999        # Determine the default libpath from the value encoded in an
10000        # empty executable.
10001        if test set = "${lt_cv_aix_libpath+set}"; then
10002  aix_libpath=$lt_cv_aix_libpath
10003else
10004  if ${lt_cv_aix_libpath_+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009
10010int
10011main ()
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019
10020  lt_aix_libpath_sed='
10021      /Import File Strings/,/^$/ {
10022	  /^0/ {
10023	      s/^0  *\([^ ]*\) *$/\1/
10024	      p
10025	  }
10026      }'
10027  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10028  # Check for a 64-bit object if we didn't find anything.
10029  if test -z "$lt_cv_aix_libpath_"; then
10030    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031  fi
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034    conftest$ac_exeext conftest.$ac_ext
10035  if test -z "$lt_cv_aix_libpath_"; then
10036    lt_cv_aix_libpath_=/usr/lib:/lib
10037  fi
10038
10039fi
10040
10041  aix_libpath=$lt_cv_aix_libpath_
10042fi
10043
10044        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10045        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
10046      else
10047	if test ia64 = "$host_cpu"; then
10048	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10049	  allow_undefined_flag="-z nodefs"
10050	  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"
10051	else
10052	 # Determine the default libpath from the value encoded in an
10053	 # empty executable.
10054	 if test set = "${lt_cv_aix_libpath+set}"; then
10055  aix_libpath=$lt_cv_aix_libpath
10056else
10057  if ${lt_cv_aix_libpath_+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062
10063int
10064main ()
10065{
10066
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071if ac_fn_c_try_link "$LINENO"; then :
10072
10073  lt_aix_libpath_sed='
10074      /Import File Strings/,/^$/ {
10075	  /^0/ {
10076	      s/^0  *\([^ ]*\) *$/\1/
10077	      p
10078	  }
10079      }'
10080  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10081  # Check for a 64-bit object if we didn't find anything.
10082  if test -z "$lt_cv_aix_libpath_"; then
10083    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084  fi
10085fi
10086rm -f core conftest.err conftest.$ac_objext \
10087    conftest$ac_exeext conftest.$ac_ext
10088  if test -z "$lt_cv_aix_libpath_"; then
10089    lt_cv_aix_libpath_=/usr/lib:/lib
10090  fi
10091
10092fi
10093
10094  aix_libpath=$lt_cv_aix_libpath_
10095fi
10096
10097	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10098	  # Warning - without using the other run time loading flags,
10099	  # -berok will link without error, but may produce a broken library.
10100	  no_undefined_flag=' $wl-bernotok'
10101	  allow_undefined_flag=' $wl-berok'
10102	  if test yes = "$with_gnu_ld"; then
10103	    # We only use this code for GNU lds that support --whole-archive.
10104	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10105	  else
10106	    # Exported symbols can be pulled into shared objects from archives
10107	    whole_archive_flag_spec='$convenience'
10108	  fi
10109	  archive_cmds_need_lc=yes
10110	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10111	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10112	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10113	  if test svr4 != "$with_aix_soname"; then
10114	    # This is similar to how AIX traditionally builds its shared libraries.
10115	    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'
10116	  fi
10117	  if test aix != "$with_aix_soname"; then
10118	    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'
10119	  else
10120	    # used by -dlpreopen to get the symbols
10121	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10122	  fi
10123	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10124	fi
10125      fi
10126      ;;
10127
10128    amigaos*)
10129      case $host_cpu in
10130      powerpc)
10131            # see comment about AmigaOS4 .so support
10132            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10133            archive_expsym_cmds=''
10134        ;;
10135      m68k)
10136            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)'
10137            hardcode_libdir_flag_spec='-L$libdir'
10138            hardcode_minus_L=yes
10139        ;;
10140      esac
10141      ;;
10142
10143    bsdi[45]*)
10144      export_dynamic_flag_spec=-rdynamic
10145      ;;
10146
10147    cygwin* | mingw* | pw32* | cegcc*)
10148      # When not using gcc, we currently assume that we are using
10149      # Microsoft Visual C++.
10150      # hardcode_libdir_flag_spec is actually meaningless, as there is
10151      # no search path for DLLs.
10152      case $cc_basename in
10153      cl*)
10154	# Native MSVC
10155	hardcode_libdir_flag_spec=' '
10156	allow_undefined_flag=unsupported
10157	always_export_symbols=yes
10158	file_list_spec='@'
10159	# Tell ltmain to make .lib files, not .a files.
10160	libext=lib
10161	# Tell ltmain to make .dll files, not .so files.
10162	shrext_cmds=.dll
10163	# FIXME: Setting linknames here is a bad hack.
10164	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10165	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10166            cp "$export_symbols" "$output_objdir/$soname.def";
10167            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10168          else
10169            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10170          fi~
10171          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10172          linknames='
10173	# The linker will not automatically build a static lib if we build a DLL.
10174	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10175	enable_shared_with_static_runtimes=yes
10176	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10177	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10178	# Don't use ranlib
10179	old_postinstall_cmds='chmod 644 $oldlib'
10180	postlink_cmds='lt_outputfile="@OUTPUT@"~
10181          lt_tool_outputfile="@TOOL_OUTPUT@"~
10182          case $lt_outputfile in
10183            *.exe|*.EXE) ;;
10184            *)
10185              lt_outputfile=$lt_outputfile.exe
10186              lt_tool_outputfile=$lt_tool_outputfile.exe
10187              ;;
10188          esac~
10189          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10190            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10191            $RM "$lt_outputfile.manifest";
10192          fi'
10193	;;
10194      *)
10195	# Assume MSVC wrapper
10196	hardcode_libdir_flag_spec=' '
10197	allow_undefined_flag=unsupported
10198	# Tell ltmain to make .lib files, not .a files.
10199	libext=lib
10200	# Tell ltmain to make .dll files, not .so files.
10201	shrext_cmds=.dll
10202	# FIXME: Setting linknames here is a bad hack.
10203	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10204	# The linker will automatically build a .lib file if we build a DLL.
10205	old_archive_from_new_cmds='true'
10206	# FIXME: Should let the user specify the lib program.
10207	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10208	enable_shared_with_static_runtimes=yes
10209	;;
10210      esac
10211      ;;
10212
10213    darwin* | rhapsody*)
10214
10215
10216  archive_cmds_need_lc=no
10217  hardcode_direct=no
10218  hardcode_automatic=yes
10219  hardcode_shlibpath_var=unsupported
10220  if test yes = "$lt_cv_ld_force_load"; then
10221    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\"`'
10222
10223  else
10224    whole_archive_flag_spec=''
10225  fi
10226  link_all_deplibs=yes
10227  allow_undefined_flag=$_lt_dar_allow_undefined
10228  case $cc_basename in
10229     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10230     *) _lt_dar_can_shared=$GCC ;;
10231  esac
10232  if test yes = "$_lt_dar_can_shared"; then
10233    output_verbose_link_cmd=func_echo_all
10234    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10235    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10236    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"
10237    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"
10238
10239  else
10240  ld_shlibs=no
10241  fi
10242
10243      ;;
10244
10245    dgux*)
10246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247      hardcode_libdir_flag_spec='-L$libdir'
10248      hardcode_shlibpath_var=no
10249      ;;
10250
10251    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10252    # support.  Future versions do this automatically, but an explicit c++rt0.o
10253    # does not break anything, and helps significantly (at the cost of a little
10254    # extra space).
10255    freebsd2.2*)
10256      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10257      hardcode_libdir_flag_spec='-R$libdir'
10258      hardcode_direct=yes
10259      hardcode_shlibpath_var=no
10260      ;;
10261
10262    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10263    freebsd2.*)
10264      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10265      hardcode_direct=yes
10266      hardcode_minus_L=yes
10267      hardcode_shlibpath_var=no
10268      ;;
10269
10270    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10271    freebsd* | dragonfly*)
10272      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10273      hardcode_libdir_flag_spec='-R$libdir'
10274      hardcode_direct=yes
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    hpux9*)
10279      if test yes = "$GCC"; then
10280	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'
10281      else
10282	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'
10283      fi
10284      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10285      hardcode_libdir_separator=:
10286      hardcode_direct=yes
10287
10288      # hardcode_minus_L: Not really in the search PATH,
10289      # but as the default location of the library.
10290      hardcode_minus_L=yes
10291      export_dynamic_flag_spec='$wl-E'
10292      ;;
10293
10294    hpux10*)
10295      if test yes,no = "$GCC,$with_gnu_ld"; then
10296	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10297      else
10298	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10299      fi
10300      if test no = "$with_gnu_ld"; then
10301	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10302	hardcode_libdir_separator=:
10303	hardcode_direct=yes
10304	hardcode_direct_absolute=yes
10305	export_dynamic_flag_spec='$wl-E'
10306	# hardcode_minus_L: Not really in the search PATH,
10307	# but as the default location of the library.
10308	hardcode_minus_L=yes
10309      fi
10310      ;;
10311
10312    hpux11*)
10313      if test yes,no = "$GCC,$with_gnu_ld"; then
10314	case $host_cpu in
10315	hppa*64*)
10316	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10317	  ;;
10318	ia64*)
10319	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320	  ;;
10321	*)
10322	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323	  ;;
10324	esac
10325      else
10326	case $host_cpu in
10327	hppa*64*)
10328	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10329	  ;;
10330	ia64*)
10331	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332	  ;;
10333	*)
10334
10335	  # Older versions of the 11.00 compiler do not understand -b yet
10336	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10337	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10338$as_echo_n "checking if $CC understands -b... " >&6; }
10339if ${lt_cv_prog_compiler__b+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  lt_cv_prog_compiler__b=no
10343   save_LDFLAGS=$LDFLAGS
10344   LDFLAGS="$LDFLAGS -b"
10345   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10346   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10347     # The linker can only warn and ignore the option if not recognized
10348     # So say no if there are warnings
10349     if test -s conftest.err; then
10350       # Append any errors to the config.log.
10351       cat conftest.err 1>&5
10352       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10353       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10354       if diff conftest.exp conftest.er2 >/dev/null; then
10355         lt_cv_prog_compiler__b=yes
10356       fi
10357     else
10358       lt_cv_prog_compiler__b=yes
10359     fi
10360   fi
10361   $RM -r conftest*
10362   LDFLAGS=$save_LDFLAGS
10363
10364fi
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10366$as_echo "$lt_cv_prog_compiler__b" >&6; }
10367
10368if test yes = "$lt_cv_prog_compiler__b"; then
10369    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10370else
10371    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10372fi
10373
10374	  ;;
10375	esac
10376      fi
10377      if test no = "$with_gnu_ld"; then
10378	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10379	hardcode_libdir_separator=:
10380
10381	case $host_cpu in
10382	hppa*64*|ia64*)
10383	  hardcode_direct=no
10384	  hardcode_shlibpath_var=no
10385	  ;;
10386	*)
10387	  hardcode_direct=yes
10388	  hardcode_direct_absolute=yes
10389	  export_dynamic_flag_spec='$wl-E'
10390
10391	  # hardcode_minus_L: Not really in the search PATH,
10392	  # but as the default location of the library.
10393	  hardcode_minus_L=yes
10394	  ;;
10395	esac
10396      fi
10397      ;;
10398
10399    irix5* | irix6* | nonstopux*)
10400      if test yes = "$GCC"; then
10401	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'
10402	# Try to use the -exported_symbol ld option, if it does not
10403	# work, assume that -exports_file does not work either and
10404	# implicitly export all symbols.
10405	# This should be the same for all languages, so no per-tag cache variable.
10406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10407$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10408if ${lt_cv_irix_exported_symbol+:} false; then :
10409  $as_echo_n "(cached) " >&6
10410else
10411  save_LDFLAGS=$LDFLAGS
10412	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10413	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415int foo (void) { return 0; }
10416_ACEOF
10417if ac_fn_c_try_link "$LINENO"; then :
10418  lt_cv_irix_exported_symbol=yes
10419else
10420  lt_cv_irix_exported_symbol=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext \
10423    conftest$ac_exeext conftest.$ac_ext
10424           LDFLAGS=$save_LDFLAGS
10425fi
10426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10427$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10428	if test yes = "$lt_cv_irix_exported_symbol"; then
10429          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'
10430	fi
10431      else
10432	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'
10433	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'
10434      fi
10435      archive_cmds_need_lc='no'
10436      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10437      hardcode_libdir_separator=:
10438      inherit_rpath=yes
10439      link_all_deplibs=yes
10440      ;;
10441
10442    linux*)
10443      case $cc_basename in
10444      tcc*)
10445	# Fabrice Bellard et al's Tiny C Compiler
10446	ld_shlibs=yes
10447	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10448	;;
10449      esac
10450      ;;
10451
10452    netbsd*)
10453      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10455      else
10456	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10457      fi
10458      hardcode_libdir_flag_spec='-R$libdir'
10459      hardcode_direct=yes
10460      hardcode_shlibpath_var=no
10461      ;;
10462
10463    newsos6)
10464      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10465      hardcode_direct=yes
10466      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467      hardcode_libdir_separator=:
10468      hardcode_shlibpath_var=no
10469      ;;
10470
10471    *nto* | *qnx*)
10472      ;;
10473
10474    openbsd* | bitrig*)
10475      if test -f /usr/libexec/ld.so; then
10476	hardcode_direct=yes
10477	hardcode_shlibpath_var=no
10478	hardcode_direct_absolute=yes
10479	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10480	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10481	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10482	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10483	  export_dynamic_flag_spec='$wl-E'
10484	else
10485	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10487	fi
10488      else
10489	ld_shlibs=no
10490      fi
10491      ;;
10492
10493    os2*)
10494      hardcode_libdir_flag_spec='-L$libdir'
10495      hardcode_minus_L=yes
10496      allow_undefined_flag=unsupported
10497      shrext_cmds=.dll
10498      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10499	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10500	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10501	$ECHO EXPORTS >> $output_objdir/$libname.def~
10502	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10503	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10504	emximp -o $lib $output_objdir/$libname.def'
10505      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10506	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10507	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10508	$ECHO EXPORTS >> $output_objdir/$libname.def~
10509	prefix_cmds="$SED"~
10510	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10511	  prefix_cmds="$prefix_cmds -e 1d";
10512	fi~
10513	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10514	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10515	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10516	emximp -o $lib $output_objdir/$libname.def'
10517      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10518      enable_shared_with_static_runtimes=yes
10519      ;;
10520
10521    osf3*)
10522      if test yes = "$GCC"; then
10523	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10524	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'
10525      else
10526	allow_undefined_flag=' -expect_unresolved \*'
10527	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'
10528      fi
10529      archive_cmds_need_lc='no'
10530      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10531      hardcode_libdir_separator=:
10532      ;;
10533
10534    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10535      if test yes = "$GCC"; then
10536	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10537	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'
10538	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10539      else
10540	allow_undefined_flag=' -expect_unresolved \*'
10541	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'
10542	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~
10543          $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'
10544
10545	# Both c and cxx compiler support -rpath directly
10546	hardcode_libdir_flag_spec='-rpath $libdir'
10547      fi
10548      archive_cmds_need_lc='no'
10549      hardcode_libdir_separator=:
10550      ;;
10551
10552    solaris*)
10553      no_undefined_flag=' -z defs'
10554      if test yes = "$GCC"; then
10555	wlarc='$wl'
10556	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10557	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558          $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'
10559      else
10560	case `$CC -V 2>&1` in
10561	*"Compilers 5.0"*)
10562	  wlarc=''
10563	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10565            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10566	  ;;
10567	*)
10568	  wlarc='$wl'
10569	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10570	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10571            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10572	  ;;
10573	esac
10574      fi
10575      hardcode_libdir_flag_spec='-R$libdir'
10576      hardcode_shlibpath_var=no
10577      case $host_os in
10578      solaris2.[0-5] | solaris2.[0-5].*) ;;
10579      *)
10580	# The compiler driver will combine and reorder linker options,
10581	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10582	# but is careful enough not to reorder.
10583	# Supported since Solaris 2.6 (maybe 2.5.1?)
10584	if test yes = "$GCC"; then
10585	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10586	else
10587	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10588	fi
10589	;;
10590      esac
10591      link_all_deplibs=yes
10592      ;;
10593
10594    sunos4*)
10595      if test sequent = "$host_vendor"; then
10596	# Use $CC to link under sequent, because it throws in some extra .o
10597	# files that make .init and .fini sections work.
10598	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10599      else
10600	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10601      fi
10602      hardcode_libdir_flag_spec='-L$libdir'
10603      hardcode_direct=yes
10604      hardcode_minus_L=yes
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    sysv4)
10609      case $host_vendor in
10610	sni)
10611	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612	  hardcode_direct=yes # is this really true???
10613	;;
10614	siemens)
10615	  ## LD is ld it makes a PLAMLIB
10616	  ## CC just makes a GrossModule.
10617	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10618	  reload_cmds='$CC -r -o $output$reload_objs'
10619	  hardcode_direct=no
10620        ;;
10621	motorola)
10622	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10624	;;
10625      esac
10626      runpath_var='LD_RUN_PATH'
10627      hardcode_shlibpath_var=no
10628      ;;
10629
10630    sysv4.3*)
10631      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632      hardcode_shlibpath_var=no
10633      export_dynamic_flag_spec='-Bexport'
10634      ;;
10635
10636    sysv4*MP*)
10637      if test -d /usr/nec; then
10638	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639	hardcode_shlibpath_var=no
10640	runpath_var=LD_RUN_PATH
10641	hardcode_runpath_var=yes
10642	ld_shlibs=yes
10643      fi
10644      ;;
10645
10646    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10647      no_undefined_flag='$wl-z,text'
10648      archive_cmds_need_lc=no
10649      hardcode_shlibpath_var=no
10650      runpath_var='LD_RUN_PATH'
10651
10652      if test yes = "$GCC"; then
10653	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10655      else
10656	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10658      fi
10659      ;;
10660
10661    sysv5* | sco3.2v5* | sco5v6*)
10662      # Note: We CANNOT use -z defs as we might desire, because we do not
10663      # link with -lc, and that would cause any symbols used from libc to
10664      # always be unresolved, which means just about no library would
10665      # ever link correctly.  If we're not using GNU ld we use -z text
10666      # though, which does catch some bad symbols but isn't as heavy-handed
10667      # as -z defs.
10668      no_undefined_flag='$wl-z,text'
10669      allow_undefined_flag='$wl-z,nodefs'
10670      archive_cmds_need_lc=no
10671      hardcode_shlibpath_var=no
10672      hardcode_libdir_flag_spec='$wl-R,$libdir'
10673      hardcode_libdir_separator=':'
10674      link_all_deplibs=yes
10675      export_dynamic_flag_spec='$wl-Bexport'
10676      runpath_var='LD_RUN_PATH'
10677
10678      if test yes = "$GCC"; then
10679	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681      else
10682	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684      fi
10685      ;;
10686
10687    uts4*)
10688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689      hardcode_libdir_flag_spec='-L$libdir'
10690      hardcode_shlibpath_var=no
10691      ;;
10692
10693    *)
10694      ld_shlibs=no
10695      ;;
10696    esac
10697
10698    if test sni = "$host_vendor"; then
10699      case $host in
10700      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10701	export_dynamic_flag_spec='$wl-Blargedynsym'
10702	;;
10703      esac
10704    fi
10705  fi
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10708$as_echo "$ld_shlibs" >&6; }
10709test no = "$ld_shlibs" && can_build_shared=no
10710
10711with_gnu_ld=$with_gnu_ld
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727#
10728# Do we need to explicitly link libc?
10729#
10730case "x$archive_cmds_need_lc" in
10731x|xyes)
10732  # Assume -lc should be added
10733  archive_cmds_need_lc=yes
10734
10735  if test yes,yes = "$GCC,$enable_shared"; then
10736    case $archive_cmds in
10737    *'~'*)
10738      # FIXME: we may have to deal with multi-command sequences.
10739      ;;
10740    '$CC '*)
10741      # Test whether the compiler implicitly links with -lc since on some
10742      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10743      # to ld, don't add -lc before -lgcc.
10744      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10745$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10746if ${lt_cv_archive_cmds_need_lc+:} false; then :
10747  $as_echo_n "(cached) " >&6
10748else
10749  $RM conftest*
10750	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10751
10752	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10753  (eval $ac_compile) 2>&5
10754  ac_status=$?
10755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756  test $ac_status = 0; } 2>conftest.err; then
10757	  soname=conftest
10758	  lib=conftest
10759	  libobjs=conftest.$ac_objext
10760	  deplibs=
10761	  wl=$lt_prog_compiler_wl
10762	  pic_flag=$lt_prog_compiler_pic
10763	  compiler_flags=-v
10764	  linker_flags=-v
10765	  verstring=
10766	  output_objdir=.
10767	  libname=conftest
10768	  lt_save_allow_undefined_flag=$allow_undefined_flag
10769	  allow_undefined_flag=
10770	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10771  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10772  ac_status=$?
10773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774  test $ac_status = 0; }
10775	  then
10776	    lt_cv_archive_cmds_need_lc=no
10777	  else
10778	    lt_cv_archive_cmds_need_lc=yes
10779	  fi
10780	  allow_undefined_flag=$lt_save_allow_undefined_flag
10781	else
10782	  cat conftest.err 1>&5
10783	fi
10784	$RM conftest*
10785
10786fi
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10788$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10789      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10790      ;;
10791    esac
10792  fi
10793  ;;
10794esac
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10948$as_echo_n "checking dynamic linker characteristics... " >&6; }
10949
10950if test yes = "$GCC"; then
10951  case $host_os in
10952    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10953    *) lt_awk_arg='/^libraries:/' ;;
10954  esac
10955  case $host_os in
10956    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10957    *) lt_sed_strip_eq='s|=/|/|g' ;;
10958  esac
10959  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10960  case $lt_search_path_spec in
10961  *\;*)
10962    # if the path contains ";" then we assume it to be the separator
10963    # otherwise default to the standard path separator (i.e. ":") - it is
10964    # assumed that no part of a normal pathname contains ";" but that should
10965    # okay in the real world where ";" in dirpaths is itself problematic.
10966    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10967    ;;
10968  *)
10969    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10970    ;;
10971  esac
10972  # Ok, now we have the path, separated by spaces, we can step through it
10973  # and add multilib dir if necessary...
10974  lt_tmp_lt_search_path_spec=
10975  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10976  # ...but if some path component already ends with the multilib dir we assume
10977  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10978  case "$lt_multi_os_dir; $lt_search_path_spec " in
10979  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10980    lt_multi_os_dir=
10981    ;;
10982  esac
10983  for lt_sys_path in $lt_search_path_spec; do
10984    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10985      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10986    elif test -n "$lt_multi_os_dir"; then
10987      test -d "$lt_sys_path" && \
10988	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10989    fi
10990  done
10991  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10992BEGIN {RS = " "; FS = "/|\n";} {
10993  lt_foo = "";
10994  lt_count = 0;
10995  for (lt_i = NF; lt_i > 0; lt_i--) {
10996    if ($lt_i != "" && $lt_i != ".") {
10997      if ($lt_i == "..") {
10998        lt_count++;
10999      } else {
11000        if (lt_count == 0) {
11001          lt_foo = "/" $lt_i lt_foo;
11002        } else {
11003          lt_count--;
11004        }
11005      }
11006    }
11007  }
11008  if (lt_foo != "") { lt_freq[lt_foo]++; }
11009  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11010}'`
11011  # AWK program above erroneously prepends '/' to C:/dos/paths
11012  # for these hosts.
11013  case $host_os in
11014    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11015      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11016  esac
11017  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11018else
11019  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11020fi
11021library_names_spec=
11022libname_spec='lib$name'
11023soname_spec=
11024shrext_cmds=.so
11025postinstall_cmds=
11026postuninstall_cmds=
11027finish_cmds=
11028finish_eval=
11029shlibpath_var=
11030shlibpath_overrides_runpath=unknown
11031version_type=none
11032dynamic_linker="$host_os ld.so"
11033sys_lib_dlsearch_path_spec="/lib /usr/lib"
11034need_lib_prefix=unknown
11035hardcode_into_libs=no
11036
11037# when you set need_version to no, make sure it does not cause -set_version
11038# flags to be left without arguments
11039need_version=unknown
11040
11041
11042
11043case $host_os in
11044aix3*)
11045  version_type=linux # correct to gnu/linux during the next big refactor
11046  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11047  shlibpath_var=LIBPATH
11048
11049  # AIX 3 has no versioning support, so we append a major version to the name.
11050  soname_spec='$libname$release$shared_ext$major'
11051  ;;
11052
11053aix[4-9]*)
11054  version_type=linux # correct to gnu/linux during the next big refactor
11055  need_lib_prefix=no
11056  need_version=no
11057  hardcode_into_libs=yes
11058  if test ia64 = "$host_cpu"; then
11059    # AIX 5 supports IA64
11060    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11061    shlibpath_var=LD_LIBRARY_PATH
11062  else
11063    # With GCC up to 2.95.x, collect2 would create an import file
11064    # for dependence libraries.  The import file would start with
11065    # the line '#! .'.  This would cause the generated library to
11066    # depend on '.', always an invalid library.  This was fixed in
11067    # development snapshots of GCC prior to 3.0.
11068    case $host_os in
11069      aix4 | aix4.[01] | aix4.[01].*)
11070      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11071	   echo ' yes '
11072	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11073	:
11074      else
11075	can_build_shared=no
11076      fi
11077      ;;
11078    esac
11079    # Using Import Files as archive members, it is possible to support
11080    # filename-based versioning of shared library archives on AIX. While
11081    # this would work for both with and without runtime linking, it will
11082    # prevent static linking of such archives. So we do filename-based
11083    # shared library versioning with .so extension only, which is used
11084    # when both runtime linking and shared linking is enabled.
11085    # Unfortunately, runtime linking may impact performance, so we do
11086    # not want this to be the default eventually. Also, we use the
11087    # versioned .so libs for executables only if there is the -brtl
11088    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11089    # To allow for filename-based versioning support, we need to create
11090    # libNAME.so.V as an archive file, containing:
11091    # *) an Import File, referring to the versioned filename of the
11092    #    archive as well as the shared archive member, telling the
11093    #    bitwidth (32 or 64) of that shared object, and providing the
11094    #    list of exported symbols of that shared object, eventually
11095    #    decorated with the 'weak' keyword
11096    # *) the shared object with the F_LOADONLY flag set, to really avoid
11097    #    it being seen by the linker.
11098    # At run time we better use the real file rather than another symlink,
11099    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11100
11101    case $with_aix_soname,$aix_use_runtimelinking in
11102    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11103    # soname into executable. Probably we can add versioning support to
11104    # collect2, so additional links can be useful in future.
11105    aix,yes) # traditional libtool
11106      dynamic_linker='AIX unversionable lib.so'
11107      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11108      # instead of lib<name>.a to let people know that these are not
11109      # typical AIX shared libraries.
11110      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111      ;;
11112    aix,no) # traditional AIX only
11113      dynamic_linker='AIX lib.a(lib.so.V)'
11114      # We preserve .a as extension for shared libraries through AIX4.2
11115      # and later when we are not doing run time linking.
11116      library_names_spec='$libname$release.a $libname.a'
11117      soname_spec='$libname$release$shared_ext$major'
11118      ;;
11119    svr4,*) # full svr4 only
11120      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11121      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11122      # We do not specify a path in Import Files, so LIBPATH fires.
11123      shlibpath_overrides_runpath=yes
11124      ;;
11125    *,yes) # both, prefer svr4
11126      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11127      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11128      # unpreferred sharedlib libNAME.a needs extra handling
11129      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"'
11130      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"'
11131      # We do not specify a path in Import Files, so LIBPATH fires.
11132      shlibpath_overrides_runpath=yes
11133      ;;
11134    *,no) # both, prefer aix
11135      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11136      library_names_spec='$libname$release.a $libname.a'
11137      soname_spec='$libname$release$shared_ext$major'
11138      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11139      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)'
11140      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"'
11141      ;;
11142    esac
11143    shlibpath_var=LIBPATH
11144  fi
11145  ;;
11146
11147amigaos*)
11148  case $host_cpu in
11149  powerpc)
11150    # Since July 2007 AmigaOS4 officially supports .so libraries.
11151    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11152    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153    ;;
11154  m68k)
11155    library_names_spec='$libname.ixlibrary $libname.a'
11156    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11157    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'
11158    ;;
11159  esac
11160  ;;
11161
11162beos*)
11163  library_names_spec='$libname$shared_ext'
11164  dynamic_linker="$host_os ld.so"
11165  shlibpath_var=LIBRARY_PATH
11166  ;;
11167
11168bsdi[45]*)
11169  version_type=linux # correct to gnu/linux during the next big refactor
11170  need_version=no
11171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172  soname_spec='$libname$release$shared_ext$major'
11173  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11174  shlibpath_var=LD_LIBRARY_PATH
11175  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11176  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11177  # the default ld.so.conf also contains /usr/contrib/lib and
11178  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11179  # libtool to hard-code these into programs
11180  ;;
11181
11182cygwin* | mingw* | pw32* | cegcc*)
11183  version_type=windows
11184  shrext_cmds=.dll
11185  need_version=no
11186  need_lib_prefix=no
11187
11188  case $GCC,$cc_basename in
11189  yes,*)
11190    # gcc
11191    library_names_spec='$libname.dll.a'
11192    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193    postinstall_cmds='base_file=`basename \$file`~
11194      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11195      dldir=$destdir/`dirname \$dlpath`~
11196      test -d \$dldir || mkdir -p \$dldir~
11197      $install_prog $dir/$dlname \$dldir/$dlname~
11198      chmod a+x \$dldir/$dlname~
11199      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11200        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11201      fi'
11202    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11203      dlpath=$dir/\$dldll~
11204       $RM \$dlpath'
11205    shlibpath_overrides_runpath=yes
11206
11207    case $host_os in
11208    cygwin*)
11209      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11210      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11211
11212      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11213      ;;
11214    mingw* | cegcc*)
11215      # MinGW DLLs use traditional 'lib' prefix
11216      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11217      ;;
11218    pw32*)
11219      # pw32 DLLs use 'pw' prefix rather than 'lib'
11220      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11221      ;;
11222    esac
11223    dynamic_linker='Win32 ld.exe'
11224    ;;
11225
11226  *,cl*)
11227    # Native MSVC
11228    libname_spec='$name'
11229    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11230    library_names_spec='$libname.dll.lib'
11231
11232    case $build_os in
11233    mingw*)
11234      sys_lib_search_path_spec=
11235      lt_save_ifs=$IFS
11236      IFS=';'
11237      for lt_path in $LIB
11238      do
11239        IFS=$lt_save_ifs
11240        # Let DOS variable expansion print the short 8.3 style file name.
11241        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11242        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11243      done
11244      IFS=$lt_save_ifs
11245      # Convert to MSYS style.
11246      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11247      ;;
11248    cygwin*)
11249      # Convert to unix form, then to dos form, then back to unix form
11250      # but this time dos style (no spaces!) so that the unix form looks
11251      # like /cygdrive/c/PROGRA~1:/cygdr...
11252      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11253      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11254      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11255      ;;
11256    *)
11257      sys_lib_search_path_spec=$LIB
11258      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11259        # It is most probably a Windows format PATH.
11260        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11261      else
11262        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11263      fi
11264      # FIXME: find the short name or the path components, as spaces are
11265      # common. (e.g. "Program Files" -> "PROGRA~1")
11266      ;;
11267    esac
11268
11269    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11270    postinstall_cmds='base_file=`basename \$file`~
11271      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11272      dldir=$destdir/`dirname \$dlpath`~
11273      test -d \$dldir || mkdir -p \$dldir~
11274      $install_prog $dir/$dlname \$dldir/$dlname'
11275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11276      dlpath=$dir/\$dldll~
11277       $RM \$dlpath'
11278    shlibpath_overrides_runpath=yes
11279    dynamic_linker='Win32 link.exe'
11280    ;;
11281
11282  *)
11283    # Assume MSVC wrapper
11284    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11285    dynamic_linker='Win32 ld.exe'
11286    ;;
11287  esac
11288  # FIXME: first we should search . and the directory the executable is in
11289  shlibpath_var=PATH
11290  ;;
11291
11292darwin* | rhapsody*)
11293  dynamic_linker="$host_os dyld"
11294  version_type=darwin
11295  need_lib_prefix=no
11296  need_version=no
11297  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11298  soname_spec='$libname$release$major$shared_ext'
11299  shlibpath_overrides_runpath=yes
11300  shlibpath_var=DYLD_LIBRARY_PATH
11301  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11302
11303  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11304  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11305  ;;
11306
11307dgux*)
11308  version_type=linux # correct to gnu/linux during the next big refactor
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11312  soname_spec='$libname$release$shared_ext$major'
11313  shlibpath_var=LD_LIBRARY_PATH
11314  ;;
11315
11316freebsd* | dragonfly*)
11317  # DragonFly does not have aout.  When/if they implement a new
11318  # versioning mechanism, adjust this.
11319  if test -x /usr/bin/objformat; then
11320    objformat=`/usr/bin/objformat`
11321  else
11322    case $host_os in
11323    freebsd[23].*) objformat=aout ;;
11324    *) objformat=elf ;;
11325    esac
11326  fi
11327  version_type=freebsd-$objformat
11328  case $version_type in
11329    freebsd-elf*)
11330      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11331      soname_spec='$libname$release$shared_ext$major'
11332      need_version=no
11333      need_lib_prefix=no
11334      ;;
11335    freebsd-*)
11336      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11337      need_version=yes
11338      ;;
11339  esac
11340  shlibpath_var=LD_LIBRARY_PATH
11341  case $host_os in
11342  freebsd2.*)
11343    shlibpath_overrides_runpath=yes
11344    ;;
11345  freebsd3.[01]* | freebsdelf3.[01]*)
11346    shlibpath_overrides_runpath=yes
11347    hardcode_into_libs=yes
11348    ;;
11349  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11350  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11351    shlibpath_overrides_runpath=no
11352    hardcode_into_libs=yes
11353    ;;
11354  *) # from 4.6 on, and DragonFly
11355    shlibpath_overrides_runpath=yes
11356    hardcode_into_libs=yes
11357    ;;
11358  esac
11359  ;;
11360
11361haiku*)
11362  version_type=linux # correct to gnu/linux during the next big refactor
11363  need_lib_prefix=no
11364  need_version=no
11365  dynamic_linker="$host_os runtime_loader"
11366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367  soname_spec='$libname$release$shared_ext$major'
11368  shlibpath_var=LIBRARY_PATH
11369  shlibpath_overrides_runpath=no
11370  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11371  hardcode_into_libs=yes
11372  ;;
11373
11374hpux9* | hpux10* | hpux11*)
11375  # Give a soname corresponding to the major version so that dld.sl refuses to
11376  # link against other versions.
11377  version_type=sunos
11378  need_lib_prefix=no
11379  need_version=no
11380  case $host_cpu in
11381  ia64*)
11382    shrext_cmds='.so'
11383    hardcode_into_libs=yes
11384    dynamic_linker="$host_os dld.so"
11385    shlibpath_var=LD_LIBRARY_PATH
11386    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11387    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388    soname_spec='$libname$release$shared_ext$major'
11389    if test 32 = "$HPUX_IA64_MODE"; then
11390      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11391      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11392    else
11393      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11394      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11395    fi
11396    ;;
11397  hppa*64*)
11398    shrext_cmds='.sl'
11399    hardcode_into_libs=yes
11400    dynamic_linker="$host_os dld.sl"
11401    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11402    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11403    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404    soname_spec='$libname$release$shared_ext$major'
11405    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11406    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11407    ;;
11408  *)
11409    shrext_cmds='.sl'
11410    dynamic_linker="$host_os dld.sl"
11411    shlibpath_var=SHLIB_PATH
11412    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11413    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414    soname_spec='$libname$release$shared_ext$major'
11415    ;;
11416  esac
11417  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11418  postinstall_cmds='chmod 555 $lib'
11419  # or fails outright, so override atomically:
11420  install_override_mode=555
11421  ;;
11422
11423interix[3-9]*)
11424  version_type=linux # correct to gnu/linux during the next big refactor
11425  need_lib_prefix=no
11426  need_version=no
11427  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428  soname_spec='$libname$release$shared_ext$major'
11429  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11430  shlibpath_var=LD_LIBRARY_PATH
11431  shlibpath_overrides_runpath=no
11432  hardcode_into_libs=yes
11433  ;;
11434
11435irix5* | irix6* | nonstopux*)
11436  case $host_os in
11437    nonstopux*) version_type=nonstopux ;;
11438    *)
11439	if test yes = "$lt_cv_prog_gnu_ld"; then
11440		version_type=linux # correct to gnu/linux during the next big refactor
11441	else
11442		version_type=irix
11443	fi ;;
11444  esac
11445  need_lib_prefix=no
11446  need_version=no
11447  soname_spec='$libname$release$shared_ext$major'
11448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11449  case $host_os in
11450  irix5* | nonstopux*)
11451    libsuff= shlibsuff=
11452    ;;
11453  *)
11454    case $LD in # libtool.m4 will add one of these switches to LD
11455    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11456      libsuff= shlibsuff= libmagic=32-bit;;
11457    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11458      libsuff=32 shlibsuff=N32 libmagic=N32;;
11459    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11460      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11461    *) libsuff= shlibsuff= libmagic=never-match;;
11462    esac
11463    ;;
11464  esac
11465  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11466  shlibpath_overrides_runpath=no
11467  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11468  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11469  hardcode_into_libs=yes
11470  ;;
11471
11472# No shared lib support for Linux oldld, aout, or coff.
11473linux*oldld* | linux*aout* | linux*coff*)
11474  dynamic_linker=no
11475  ;;
11476
11477linux*android*)
11478  version_type=none # Android doesn't support versioned libraries.
11479  need_lib_prefix=no
11480  need_version=no
11481  library_names_spec='$libname$release$shared_ext'
11482  soname_spec='$libname$release$shared_ext'
11483  finish_cmds=
11484  shlibpath_var=LD_LIBRARY_PATH
11485  shlibpath_overrides_runpath=yes
11486
11487  # This implies no fast_install, which is unacceptable.
11488  # Some rework will be needed to allow for fast_install
11489  # before this can be enabled.
11490  hardcode_into_libs=yes
11491
11492  dynamic_linker='Android linker'
11493  # Don't embed -rpath directories since the linker doesn't support them.
11494  hardcode_libdir_flag_spec='-L$libdir'
11495  ;;
11496
11497# This must be glibc/ELF.
11498linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11499  version_type=linux # correct to gnu/linux during the next big refactor
11500  need_lib_prefix=no
11501  need_version=no
11502  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11503  soname_spec='$libname$release$shared_ext$major'
11504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=no
11507
11508  # Some binutils ld are patched to set DT_RUNPATH
11509  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11510  $as_echo_n "(cached) " >&6
11511else
11512  lt_cv_shlibpath_overrides_runpath=no
11513    save_LDFLAGS=$LDFLAGS
11514    save_libdir=$libdir
11515    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11516	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11517    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518/* end confdefs.h.  */
11519
11520int
11521main ()
11522{
11523
11524  ;
11525  return 0;
11526}
11527_ACEOF
11528if ac_fn_c_try_link "$LINENO"; then :
11529  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11530  lt_cv_shlibpath_overrides_runpath=yes
11531fi
11532fi
11533rm -f core conftest.err conftest.$ac_objext \
11534    conftest$ac_exeext conftest.$ac_ext
11535    LDFLAGS=$save_LDFLAGS
11536    libdir=$save_libdir
11537
11538fi
11539
11540  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11541
11542  # This implies no fast_install, which is unacceptable.
11543  # Some rework will be needed to allow for fast_install
11544  # before this can be enabled.
11545  hardcode_into_libs=yes
11546
11547  # Ideally, we could use ldconfig to report *all* directores which are
11548  # searched for libraries, however this is still not possible.  Aside from not
11549  # being certain /sbin/ldconfig is available, command
11550  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11551  # even though it is searched at run-time.  Try to do the best guess by
11552  # appending ld.so.conf contents (and includes) to the search path.
11553  if test -f /etc/ld.so.conf; then
11554    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' ' '`
11555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11556  fi
11557
11558  # We used to test for /lib/ld.so.1 and disable shared libraries on
11559  # powerpc, because MkLinux only supported shared libraries with the
11560  # GNU dynamic linker.  Since this was broken with cross compilers,
11561  # most powerpc-linux boxes support dynamic linking these days and
11562  # people can always --disable-shared, the test was removed, and we
11563  # assume the GNU/Linux dynamic linker is in use.
11564  dynamic_linker='GNU/Linux ld.so'
11565  ;;
11566
11567netbsd*)
11568  version_type=sunos
11569  need_lib_prefix=no
11570  need_version=no
11571  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11572    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11573    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11574    dynamic_linker='NetBSD (a.out) ld.so'
11575  else
11576    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11577    soname_spec='$libname$release$shared_ext$major'
11578    dynamic_linker='NetBSD ld.elf_so'
11579  fi
11580  shlibpath_var=LD_LIBRARY_PATH
11581  shlibpath_overrides_runpath=yes
11582  hardcode_into_libs=yes
11583  ;;
11584
11585newsos6)
11586  version_type=linux # correct to gnu/linux during the next big refactor
11587  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11588  shlibpath_var=LD_LIBRARY_PATH
11589  shlibpath_overrides_runpath=yes
11590  ;;
11591
11592*nto* | *qnx*)
11593  version_type=qnx
11594  need_lib_prefix=no
11595  need_version=no
11596  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597  soname_spec='$libname$release$shared_ext$major'
11598  shlibpath_var=LD_LIBRARY_PATH
11599  shlibpath_overrides_runpath=no
11600  hardcode_into_libs=yes
11601  dynamic_linker='ldqnx.so'
11602  ;;
11603
11604openbsd* | bitrig*)
11605  version_type=sunos
11606  sys_lib_dlsearch_path_spec=/usr/lib
11607  need_lib_prefix=no
11608  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11609    need_version=no
11610  else
11611    need_version=yes
11612  fi
11613  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615  shlibpath_var=LD_LIBRARY_PATH
11616  shlibpath_overrides_runpath=yes
11617  ;;
11618
11619os2*)
11620  libname_spec='$name'
11621  version_type=windows
11622  shrext_cmds=.dll
11623  need_version=no
11624  need_lib_prefix=no
11625  # OS/2 can only load a DLL with a base name of 8 characters or less.
11626  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11627    v=$($ECHO $release$versuffix | tr -d .-);
11628    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11629    $ECHO $n$v`$shared_ext'
11630  library_names_spec='${libname}_dll.$libext'
11631  dynamic_linker='OS/2 ld.exe'
11632  shlibpath_var=BEGINLIBPATH
11633  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11634  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635  postinstall_cmds='base_file=`basename \$file`~
11636    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11637    dldir=$destdir/`dirname \$dlpath`~
11638    test -d \$dldir || mkdir -p \$dldir~
11639    $install_prog $dir/$dlname \$dldir/$dlname~
11640    chmod a+x \$dldir/$dlname~
11641    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11642      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11643    fi'
11644  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11645    dlpath=$dir/\$dldll~
11646    $RM \$dlpath'
11647  ;;
11648
11649osf3* | osf4* | osf5*)
11650  version_type=osf
11651  need_lib_prefix=no
11652  need_version=no
11653  soname_spec='$libname$release$shared_ext$major'
11654  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655  shlibpath_var=LD_LIBRARY_PATH
11656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11657  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11658  ;;
11659
11660rdos*)
11661  dynamic_linker=no
11662  ;;
11663
11664solaris*)
11665  version_type=linux # correct to gnu/linux during the next big refactor
11666  need_lib_prefix=no
11667  need_version=no
11668  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669  soname_spec='$libname$release$shared_ext$major'
11670  shlibpath_var=LD_LIBRARY_PATH
11671  shlibpath_overrides_runpath=yes
11672  hardcode_into_libs=yes
11673  # ldd complains unless libraries are executable
11674  postinstall_cmds='chmod +x $lib'
11675  ;;
11676
11677sunos4*)
11678  version_type=sunos
11679  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11680  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  shlibpath_overrides_runpath=yes
11683  if test yes = "$with_gnu_ld"; then
11684    need_lib_prefix=no
11685  fi
11686  need_version=yes
11687  ;;
11688
11689sysv4 | sysv4.3*)
11690  version_type=linux # correct to gnu/linux during the next big refactor
11691  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692  soname_spec='$libname$release$shared_ext$major'
11693  shlibpath_var=LD_LIBRARY_PATH
11694  case $host_vendor in
11695    sni)
11696      shlibpath_overrides_runpath=no
11697      need_lib_prefix=no
11698      runpath_var=LD_RUN_PATH
11699      ;;
11700    siemens)
11701      need_lib_prefix=no
11702      ;;
11703    motorola)
11704      need_lib_prefix=no
11705      need_version=no
11706      shlibpath_overrides_runpath=no
11707      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11708      ;;
11709  esac
11710  ;;
11711
11712sysv4*MP*)
11713  if test -d /usr/nec; then
11714    version_type=linux # correct to gnu/linux during the next big refactor
11715    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11716    soname_spec='$libname$shared_ext.$major'
11717    shlibpath_var=LD_LIBRARY_PATH
11718  fi
11719  ;;
11720
11721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11722  version_type=sco
11723  need_lib_prefix=no
11724  need_version=no
11725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11726  soname_spec='$libname$release$shared_ext$major'
11727  shlibpath_var=LD_LIBRARY_PATH
11728  shlibpath_overrides_runpath=yes
11729  hardcode_into_libs=yes
11730  if test yes = "$with_gnu_ld"; then
11731    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11732  else
11733    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11734    case $host_os in
11735      sco3.2v5*)
11736        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11737	;;
11738    esac
11739  fi
11740  sys_lib_dlsearch_path_spec='/usr/lib'
11741  ;;
11742
11743tpf*)
11744  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11745  version_type=linux # correct to gnu/linux during the next big refactor
11746  need_lib_prefix=no
11747  need_version=no
11748  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749  shlibpath_var=LD_LIBRARY_PATH
11750  shlibpath_overrides_runpath=no
11751  hardcode_into_libs=yes
11752  ;;
11753
11754uts4*)
11755  version_type=linux # correct to gnu/linux during the next big refactor
11756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757  soname_spec='$libname$release$shared_ext$major'
11758  shlibpath_var=LD_LIBRARY_PATH
11759  ;;
11760
11761*)
11762  dynamic_linker=no
11763  ;;
11764esac
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11766$as_echo "$dynamic_linker" >&6; }
11767test no = "$dynamic_linker" && can_build_shared=no
11768
11769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11770if test yes = "$GCC"; then
11771  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11772fi
11773
11774if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11775  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11776fi
11777
11778if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11779  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11780fi
11781
11782# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11783configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11784
11785# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11786func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11787
11788# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11789configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11888$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11889hardcode_action=
11890if test -n "$hardcode_libdir_flag_spec" ||
11891   test -n "$runpath_var" ||
11892   test yes = "$hardcode_automatic"; then
11893
11894  # We can hardcode non-existent directories.
11895  if test no != "$hardcode_direct" &&
11896     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11897     # have to relink, otherwise we might link with an installed library
11898     # when we should be linking with a yet-to-be-installed one
11899     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11900     test no != "$hardcode_minus_L"; then
11901    # Linking always hardcodes the temporary library directory.
11902    hardcode_action=relink
11903  else
11904    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11905    hardcode_action=immediate
11906  fi
11907else
11908  # We cannot hardcode anything, or else we can only hardcode existing
11909  # directories.
11910  hardcode_action=unsupported
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11913$as_echo "$hardcode_action" >&6; }
11914
11915if test relink = "$hardcode_action" ||
11916   test yes = "$inherit_rpath"; then
11917  # Fast installation is not supported
11918  enable_fast_install=no
11919elif test yes = "$shlibpath_overrides_runpath" ||
11920     test no = "$enable_shared"; then
11921  # Fast installation is not necessary
11922  enable_fast_install=needless
11923fi
11924
11925
11926
11927
11928
11929
11930  if test yes != "$enable_dlopen"; then
11931  enable_dlopen=unknown
11932  enable_dlopen_self=unknown
11933  enable_dlopen_self_static=unknown
11934else
11935  lt_cv_dlopen=no
11936  lt_cv_dlopen_libs=
11937
11938  case $host_os in
11939  beos*)
11940    lt_cv_dlopen=load_add_on
11941    lt_cv_dlopen_libs=
11942    lt_cv_dlopen_self=yes
11943    ;;
11944
11945  mingw* | pw32* | cegcc*)
11946    lt_cv_dlopen=LoadLibrary
11947    lt_cv_dlopen_libs=
11948    ;;
11949
11950  cygwin*)
11951    lt_cv_dlopen=dlopen
11952    lt_cv_dlopen_libs=
11953    ;;
11954
11955  darwin*)
11956    # if libdl is installed we need to link against it
11957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11958$as_echo_n "checking for dlopen in -ldl... " >&6; }
11959if ${ac_cv_lib_dl_dlopen+:} false; then :
11960  $as_echo_n "(cached) " >&6
11961else
11962  ac_check_lib_save_LIBS=$LIBS
11963LIBS="-ldl  $LIBS"
11964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965/* end confdefs.h.  */
11966
11967/* Override any GCC internal prototype to avoid an error.
11968   Use char because int might match the return type of a GCC
11969   builtin and then its argument prototype would still apply.  */
11970#ifdef __cplusplus
11971extern "C"
11972#endif
11973char dlopen ();
11974int
11975main ()
11976{
11977return dlopen ();
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982if ac_fn_c_try_link "$LINENO"; then :
11983  ac_cv_lib_dl_dlopen=yes
11984else
11985  ac_cv_lib_dl_dlopen=no
11986fi
11987rm -f core conftest.err conftest.$ac_objext \
11988    conftest$ac_exeext conftest.$ac_ext
11989LIBS=$ac_check_lib_save_LIBS
11990fi
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11992$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11993if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11994  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11995else
11996
11997    lt_cv_dlopen=dyld
11998    lt_cv_dlopen_libs=
11999    lt_cv_dlopen_self=yes
12000
12001fi
12002
12003    ;;
12004
12005  tpf*)
12006    # Don't try to run any link tests for TPF.  We know it's impossible
12007    # because TPF is a cross-compiler, and we know how we open DSOs.
12008    lt_cv_dlopen=dlopen
12009    lt_cv_dlopen_libs=
12010    lt_cv_dlopen_self=no
12011    ;;
12012
12013  *)
12014    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12015if test "x$ac_cv_func_shl_load" = xyes; then :
12016  lt_cv_dlopen=shl_load
12017else
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12019$as_echo_n "checking for shl_load in -ldld... " >&6; }
12020if ${ac_cv_lib_dld_shl_load+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023  ac_check_lib_save_LIBS=$LIBS
12024LIBS="-ldld  $LIBS"
12025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026/* end confdefs.h.  */
12027
12028/* Override any GCC internal prototype to avoid an error.
12029   Use char because int might match the return type of a GCC
12030   builtin and then its argument prototype would still apply.  */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034char shl_load ();
12035int
12036main ()
12037{
12038return shl_load ();
12039  ;
12040  return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_link "$LINENO"; then :
12044  ac_cv_lib_dld_shl_load=yes
12045else
12046  ac_cv_lib_dld_shl_load=no
12047fi
12048rm -f core conftest.err conftest.$ac_objext \
12049    conftest$ac_exeext conftest.$ac_ext
12050LIBS=$ac_check_lib_save_LIBS
12051fi
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12053$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12054if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12055  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12056else
12057  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12058if test "x$ac_cv_func_dlopen" = xyes; then :
12059  lt_cv_dlopen=dlopen
12060else
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12062$as_echo_n "checking for dlopen in -ldl... " >&6; }
12063if ${ac_cv_lib_dl_dlopen+:} false; then :
12064  $as_echo_n "(cached) " >&6
12065else
12066  ac_check_lib_save_LIBS=$LIBS
12067LIBS="-ldl  $LIBS"
12068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h.  */
12070
12071/* Override any GCC internal prototype to avoid an error.
12072   Use char because int might match the return type of a GCC
12073   builtin and then its argument prototype would still apply.  */
12074#ifdef __cplusplus
12075extern "C"
12076#endif
12077char dlopen ();
12078int
12079main ()
12080{
12081return dlopen ();
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_link "$LINENO"; then :
12087  ac_cv_lib_dl_dlopen=yes
12088else
12089  ac_cv_lib_dl_dlopen=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext \
12092    conftest$ac_exeext conftest.$ac_ext
12093LIBS=$ac_check_lib_save_LIBS
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12097if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12098  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12099else
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12101$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12102if ${ac_cv_lib_svld_dlopen+:} false; then :
12103  $as_echo_n "(cached) " >&6
12104else
12105  ac_check_lib_save_LIBS=$LIBS
12106LIBS="-lsvld  $LIBS"
12107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108/* end confdefs.h.  */
12109
12110/* Override any GCC internal prototype to avoid an error.
12111   Use char because int might match the return type of a GCC
12112   builtin and then its argument prototype would still apply.  */
12113#ifdef __cplusplus
12114extern "C"
12115#endif
12116char dlopen ();
12117int
12118main ()
12119{
12120return dlopen ();
12121  ;
12122  return 0;
12123}
12124_ACEOF
12125if ac_fn_c_try_link "$LINENO"; then :
12126  ac_cv_lib_svld_dlopen=yes
12127else
12128  ac_cv_lib_svld_dlopen=no
12129fi
12130rm -f core conftest.err conftest.$ac_objext \
12131    conftest$ac_exeext conftest.$ac_ext
12132LIBS=$ac_check_lib_save_LIBS
12133fi
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12135$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12136if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12137  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12138else
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12140$as_echo_n "checking for dld_link in -ldld... " >&6; }
12141if ${ac_cv_lib_dld_dld_link+:} false; then :
12142  $as_echo_n "(cached) " >&6
12143else
12144  ac_check_lib_save_LIBS=$LIBS
12145LIBS="-ldld  $LIBS"
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148
12149/* Override any GCC internal prototype to avoid an error.
12150   Use char because int might match the return type of a GCC
12151   builtin and then its argument prototype would still apply.  */
12152#ifdef __cplusplus
12153extern "C"
12154#endif
12155char dld_link ();
12156int
12157main ()
12158{
12159return dld_link ();
12160  ;
12161  return 0;
12162}
12163_ACEOF
12164if ac_fn_c_try_link "$LINENO"; then :
12165  ac_cv_lib_dld_dld_link=yes
12166else
12167  ac_cv_lib_dld_dld_link=no
12168fi
12169rm -f core conftest.err conftest.$ac_objext \
12170    conftest$ac_exeext conftest.$ac_ext
12171LIBS=$ac_check_lib_save_LIBS
12172fi
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12174$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12175if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12176  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12177fi
12178
12179
12180fi
12181
12182
12183fi
12184
12185
12186fi
12187
12188
12189fi
12190
12191
12192fi
12193
12194    ;;
12195  esac
12196
12197  if test no = "$lt_cv_dlopen"; then
12198    enable_dlopen=no
12199  else
12200    enable_dlopen=yes
12201  fi
12202
12203  case $lt_cv_dlopen in
12204  dlopen)
12205    save_CPPFLAGS=$CPPFLAGS
12206    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12207
12208    save_LDFLAGS=$LDFLAGS
12209    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12210
12211    save_LIBS=$LIBS
12212    LIBS="$lt_cv_dlopen_libs $LIBS"
12213
12214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12215$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12216if ${lt_cv_dlopen_self+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  	  if test yes = "$cross_compiling"; then :
12220  lt_cv_dlopen_self=cross
12221else
12222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12223  lt_status=$lt_dlunknown
12224  cat > conftest.$ac_ext <<_LT_EOF
12225#line $LINENO "configure"
12226#include "confdefs.h"
12227
12228#if HAVE_DLFCN_H
12229#include <dlfcn.h>
12230#endif
12231
12232#include <stdio.h>
12233
12234#ifdef RTLD_GLOBAL
12235#  define LT_DLGLOBAL		RTLD_GLOBAL
12236#else
12237#  ifdef DL_GLOBAL
12238#    define LT_DLGLOBAL		DL_GLOBAL
12239#  else
12240#    define LT_DLGLOBAL		0
12241#  endif
12242#endif
12243
12244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12245   find out it does not work in some platform. */
12246#ifndef LT_DLLAZY_OR_NOW
12247#  ifdef RTLD_LAZY
12248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12249#  else
12250#    ifdef DL_LAZY
12251#      define LT_DLLAZY_OR_NOW		DL_LAZY
12252#    else
12253#      ifdef RTLD_NOW
12254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12255#      else
12256#        ifdef DL_NOW
12257#          define LT_DLLAZY_OR_NOW	DL_NOW
12258#        else
12259#          define LT_DLLAZY_OR_NOW	0
12260#        endif
12261#      endif
12262#    endif
12263#  endif
12264#endif
12265
12266/* When -fvisibility=hidden is used, assume the code has been annotated
12267   correspondingly for the symbols needed.  */
12268#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269int fnord () __attribute__((visibility("default")));
12270#endif
12271
12272int fnord () { return 42; }
12273int main ()
12274{
12275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12276  int status = $lt_dlunknown;
12277
12278  if (self)
12279    {
12280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12281      else
12282        {
12283	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12284          else puts (dlerror ());
12285	}
12286      /* dlclose (self); */
12287    }
12288  else
12289    puts (dlerror ());
12290
12291  return status;
12292}
12293_LT_EOF
12294  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295  (eval $ac_link) 2>&5
12296  ac_status=$?
12297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12299    (./conftest; exit; ) >&5 2>/dev/null
12300    lt_status=$?
12301    case x$lt_status in
12302      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12303      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12304      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12305    esac
12306  else :
12307    # compilation failed
12308    lt_cv_dlopen_self=no
12309  fi
12310fi
12311rm -fr conftest*
12312
12313
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12316$as_echo "$lt_cv_dlopen_self" >&6; }
12317
12318    if test yes = "$lt_cv_dlopen_self"; then
12319      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12321$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12322if ${lt_cv_dlopen_self_static+:} false; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  	  if test yes = "$cross_compiling"; then :
12326  lt_cv_dlopen_self_static=cross
12327else
12328  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12329  lt_status=$lt_dlunknown
12330  cat > conftest.$ac_ext <<_LT_EOF
12331#line $LINENO "configure"
12332#include "confdefs.h"
12333
12334#if HAVE_DLFCN_H
12335#include <dlfcn.h>
12336#endif
12337
12338#include <stdio.h>
12339
12340#ifdef RTLD_GLOBAL
12341#  define LT_DLGLOBAL		RTLD_GLOBAL
12342#else
12343#  ifdef DL_GLOBAL
12344#    define LT_DLGLOBAL		DL_GLOBAL
12345#  else
12346#    define LT_DLGLOBAL		0
12347#  endif
12348#endif
12349
12350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12351   find out it does not work in some platform. */
12352#ifndef LT_DLLAZY_OR_NOW
12353#  ifdef RTLD_LAZY
12354#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12355#  else
12356#    ifdef DL_LAZY
12357#      define LT_DLLAZY_OR_NOW		DL_LAZY
12358#    else
12359#      ifdef RTLD_NOW
12360#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12361#      else
12362#        ifdef DL_NOW
12363#          define LT_DLLAZY_OR_NOW	DL_NOW
12364#        else
12365#          define LT_DLLAZY_OR_NOW	0
12366#        endif
12367#      endif
12368#    endif
12369#  endif
12370#endif
12371
12372/* When -fvisibility=hidden is used, assume the code has been annotated
12373   correspondingly for the symbols needed.  */
12374#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12375int fnord () __attribute__((visibility("default")));
12376#endif
12377
12378int fnord () { return 42; }
12379int main ()
12380{
12381  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12382  int status = $lt_dlunknown;
12383
12384  if (self)
12385    {
12386      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12387      else
12388        {
12389	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12390          else puts (dlerror ());
12391	}
12392      /* dlclose (self); */
12393    }
12394  else
12395    puts (dlerror ());
12396
12397  return status;
12398}
12399_LT_EOF
12400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12401  (eval $ac_link) 2>&5
12402  ac_status=$?
12403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12404  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12405    (./conftest; exit; ) >&5 2>/dev/null
12406    lt_status=$?
12407    case x$lt_status in
12408      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12409      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12410      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12411    esac
12412  else :
12413    # compilation failed
12414    lt_cv_dlopen_self_static=no
12415  fi
12416fi
12417rm -fr conftest*
12418
12419
12420fi
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12422$as_echo "$lt_cv_dlopen_self_static" >&6; }
12423    fi
12424
12425    CPPFLAGS=$save_CPPFLAGS
12426    LDFLAGS=$save_LDFLAGS
12427    LIBS=$save_LIBS
12428    ;;
12429  esac
12430
12431  case $lt_cv_dlopen_self in
12432  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12433  *) enable_dlopen_self=unknown ;;
12434  esac
12435
12436  case $lt_cv_dlopen_self_static in
12437  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12438  *) enable_dlopen_self_static=unknown ;;
12439  esac
12440fi
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458striplib=
12459old_striplib=
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12461$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12462if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12463  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12464  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12466$as_echo "yes" >&6; }
12467else
12468# FIXME - insert some real tests, host_os isn't really good enough
12469  case $host_os in
12470  darwin*)
12471    if test -n "$STRIP"; then
12472      striplib="$STRIP -x"
12473      old_striplib="$STRIP -S"
12474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475$as_echo "yes" >&6; }
12476    else
12477      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478$as_echo "no" >&6; }
12479    fi
12480    ;;
12481  *)
12482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483$as_echo "no" >&6; }
12484    ;;
12485  esac
12486fi
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499  # Report what library types will actually be built
12500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12501$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12503$as_echo "$can_build_shared" >&6; }
12504
12505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12506$as_echo_n "checking whether to build shared libraries... " >&6; }
12507  test no = "$can_build_shared" && enable_shared=no
12508
12509  # On AIX, shared libraries and static libraries use the same namespace, and
12510  # are all built from PIC.
12511  case $host_os in
12512  aix3*)
12513    test yes = "$enable_shared" && enable_static=no
12514    if test -n "$RANLIB"; then
12515      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12516      postinstall_cmds='$RANLIB $lib'
12517    fi
12518    ;;
12519
12520  aix[4-9]*)
12521    if test ia64 != "$host_cpu"; then
12522      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12523      yes,aix,yes) ;;			# shared object as lib.so file only
12524      yes,svr4,*) ;;			# shared object as lib.so archive member only
12525      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12526      esac
12527    fi
12528    ;;
12529  esac
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12531$as_echo "$enable_shared" >&6; }
12532
12533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12534$as_echo_n "checking whether to build static libraries... " >&6; }
12535  # Make sure either enable_shared or enable_static is yes.
12536  test yes = "$enable_shared" || enable_static=yes
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12538$as_echo "$enable_static" >&6; }
12539
12540
12541
12542
12543fi
12544ac_ext=c
12545ac_cpp='$CPP $CPPFLAGS'
12546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
12550CC=$lt_save_CC
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566        ac_config_commands="$ac_config_commands libtool"
12567
12568
12569
12570
12571# Only expand once:
12572
12573
12574
12575
12576# Some awks crash when confronted with pnglibconf.dfa, do a test run now
12577# to make sure this doesn't happen
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
12579$as_echo_n "checking that AWK works... " >&6; }
12580if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
12581   ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
12582   ${srcdir}/pngusr.dfa 1>&2
12583then
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12585$as_echo "ok" >&6; }
12586else
12587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12589as_fn_error 1 "failed
12590See \`config.log' for more details" "$LINENO" 5; }
12591fi
12592
12593# This is a remnant of the old cc -E validation, where it may have been
12594# necessary to use a different preprocessor for .dfn files
12595DFNCPP="$CPP"
12596
12597
12598# -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12599# checks the compiler with a program that generates a warning), add the
12600# following option to deal with this
12601
12602# Check whether --enable-werror was given.
12603if test "${enable_werror+set}" = set; then :
12604  enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12605    if test "$enable_werror" != "no"; then
12606      sav_CFLAGS="$CFLAGS"
12607      CFLAGS="$enable_werror $CFLAGS"
12608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12609$as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12610      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612
12613            int main(int argc, char **argv){
12614            return argv[argc-1][0];
12615            }
12616_ACEOF
12617if ac_fn_c_try_compile "$LINENO"; then :
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619$as_echo "yes" >&6; }
12620         PNG_COPTS="$PNG_COPTS $enable_werror"
12621else
12622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626      CFLAGS="$sav_CFLAGS"
12627    fi
12628fi
12629
12630
12631# For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
12632# In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
12633# This is incompatible with the new default mode, so we test for that and force the
12634# "-std=c89" compiler option:
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
12636$as_echo_n "checking if we need to force back C standard to C89... " >&6; }
12637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639
12640      #define _POSIX_SOURCE 1
12641      #include <stdio.h>
12642
12643int
12644main ()
12645{
12646
12647  ;
12648  return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_compile "$LINENO"; then :
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654else
12655
12656      if test "x$GCC" != "xyes"; then
12657         as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
12658      fi
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660$as_echo "yes" >&6; }
12661   CFLAGS="$CFLAGS -std=c89"
12662
12663fi
12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665
12666# Checks for header files.
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12668$as_echo_n "checking for ANSI C header files... " >&6; }
12669if ${ac_cv_header_stdc+:} false; then :
12670  $as_echo_n "(cached) " >&6
12671else
12672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h.  */
12674#include <stdlib.h>
12675#include <stdarg.h>
12676#include <string.h>
12677#include <float.h>
12678
12679int
12680main ()
12681{
12682
12683  ;
12684  return 0;
12685}
12686_ACEOF
12687if ac_fn_c_try_compile "$LINENO"; then :
12688  ac_cv_header_stdc=yes
12689else
12690  ac_cv_header_stdc=no
12691fi
12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693
12694if test $ac_cv_header_stdc = yes; then
12695  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h.  */
12698#include <string.h>
12699
12700_ACEOF
12701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12702  $EGREP "memchr" >/dev/null 2>&1; then :
12703
12704else
12705  ac_cv_header_stdc=no
12706fi
12707rm -f conftest*
12708
12709fi
12710
12711if test $ac_cv_header_stdc = yes; then
12712  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h.  */
12715#include <stdlib.h>
12716
12717_ACEOF
12718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12719  $EGREP "free" >/dev/null 2>&1; then :
12720
12721else
12722  ac_cv_header_stdc=no
12723fi
12724rm -f conftest*
12725
12726fi
12727
12728if test $ac_cv_header_stdc = yes; then
12729  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12730  if test "$cross_compiling" = yes; then :
12731  :
12732else
12733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735#include <ctype.h>
12736#include <stdlib.h>
12737#if ((' ' & 0x0FF) == 0x020)
12738# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12739# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12740#else
12741# define ISLOWER(c) \
12742		   (('a' <= (c) && (c) <= 'i') \
12743		     || ('j' <= (c) && (c) <= 'r') \
12744		     || ('s' <= (c) && (c) <= 'z'))
12745# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12746#endif
12747
12748#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12749int
12750main ()
12751{
12752  int i;
12753  for (i = 0; i < 256; i++)
12754    if (XOR (islower (i), ISLOWER (i))
12755	|| toupper (i) != TOUPPER (i))
12756      return 2;
12757  return 0;
12758}
12759_ACEOF
12760if ac_fn_c_try_run "$LINENO"; then :
12761
12762else
12763  ac_cv_header_stdc=no
12764fi
12765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12766  conftest.$ac_objext conftest.beam conftest.$ac_ext
12767fi
12768
12769fi
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12772$as_echo "$ac_cv_header_stdc" >&6; }
12773if test $ac_cv_header_stdc = yes; then
12774
12775$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12776
12777fi
12778
12779
12780# Checks for typedefs, structures, and compiler characteristics.
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12782$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12783if ${ac_cv_c_const+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787/* end confdefs.h.  */
12788
12789int
12790main ()
12791{
12792
12793#ifndef __cplusplus
12794  /* Ultrix mips cc rejects this sort of thing.  */
12795  typedef int charset[2];
12796  const charset cs = { 0, 0 };
12797  /* SunOS 4.1.1 cc rejects this.  */
12798  char const *const *pcpcc;
12799  char **ppc;
12800  /* NEC SVR4.0.2 mips cc rejects this.  */
12801  struct point {int x, y;};
12802  static struct point const zero = {0,0};
12803  /* AIX XL C 1.02.0.0 rejects this.
12804     It does not let you subtract one const X* pointer from another in
12805     an arm of an if-expression whose if-part is not a constant
12806     expression */
12807  const char *g = "string";
12808  pcpcc = &g + (g ? g-g : 0);
12809  /* HPUX 7.0 cc rejects these. */
12810  ++pcpcc;
12811  ppc = (char**) pcpcc;
12812  pcpcc = (char const *const *) ppc;
12813  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12814    char tx;
12815    char *t = &tx;
12816    char const *s = 0 ? (char *) 0 : (char const *) 0;
12817
12818    *t++ = 0;
12819    if (s) return 0;
12820  }
12821  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12822    int x[] = {25, 17};
12823    const int *foo = &x[0];
12824    ++foo;
12825  }
12826  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12827    typedef const int *iptr;
12828    iptr p = 0;
12829    ++p;
12830  }
12831  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12832       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12833    struct s { int j; const int *ap[3]; } bx;
12834    struct s *b = &bx; b->j = 5;
12835  }
12836  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12837    const int foo = 10;
12838    if (!foo) return 0;
12839  }
12840  return !cs[0] && !zero.x;
12841#endif
12842
12843  ;
12844  return 0;
12845}
12846_ACEOF
12847if ac_fn_c_try_compile "$LINENO"; then :
12848  ac_cv_c_const=yes
12849else
12850  ac_cv_c_const=no
12851fi
12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853fi
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12855$as_echo "$ac_cv_c_const" >&6; }
12856if test $ac_cv_c_const = no; then
12857
12858$as_echo "#define const /**/" >>confdefs.h
12859
12860fi
12861
12862ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12863if test "x$ac_cv_type_size_t" = xyes; then :
12864
12865else
12866
12867cat >>confdefs.h <<_ACEOF
12868#define size_t unsigned int
12869_ACEOF
12870
12871fi
12872
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12874$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12875if ${ac_cv_struct_tm+:} false; then :
12876  $as_echo_n "(cached) " >&6
12877else
12878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879/* end confdefs.h.  */
12880#include <sys/types.h>
12881#include <time.h>
12882
12883int
12884main ()
12885{
12886struct tm tm;
12887				     int *p = &tm.tm_sec;
12888				     return !p;
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893if ac_fn_c_try_compile "$LINENO"; then :
12894  ac_cv_struct_tm=time.h
12895else
12896  ac_cv_struct_tm=sys/time.h
12897fi
12898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899fi
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12901$as_echo "$ac_cv_struct_tm" >&6; }
12902if test $ac_cv_struct_tm = sys/time.h; then
12903
12904$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12905
12906fi
12907
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12909$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12910if ${ac_cv_c_restrict+:} false; then :
12911  $as_echo_n "(cached) " >&6
12912else
12913  ac_cv_c_restrict=no
12914   # The order here caters to the fact that C++ does not require restrict.
12915   for ac_kw in __restrict __restrict__ _Restrict restrict; do
12916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h.  */
12918typedef int * int_ptr;
12919	int foo (int_ptr $ac_kw ip) {
12920	return ip[0];
12921       }
12922int
12923main ()
12924{
12925int s[1];
12926	int * $ac_kw t = s;
12927	t[0] = 0;
12928	return foo(t)
12929  ;
12930  return 0;
12931}
12932_ACEOF
12933if ac_fn_c_try_compile "$LINENO"; then :
12934  ac_cv_c_restrict=$ac_kw
12935fi
12936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937     test "$ac_cv_c_restrict" != no && break
12938   done
12939
12940fi
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12942$as_echo "$ac_cv_c_restrict" >&6; }
12943
12944 case $ac_cv_c_restrict in
12945   restrict) ;;
12946   no) $as_echo "#define restrict /**/" >>confdefs.h
12947 ;;
12948   *)  cat >>confdefs.h <<_ACEOF
12949#define restrict $ac_cv_c_restrict
12950_ACEOF
12951 ;;
12952 esac
12953
12954
12955# Checks for library functions.
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12957$as_echo_n "checking for working strtod... " >&6; }
12958if ${ac_cv_func_strtod+:} false; then :
12959  $as_echo_n "(cached) " >&6
12960else
12961  if test "$cross_compiling" = yes; then :
12962  ac_cv_func_strtod=no
12963else
12964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966
12967$ac_includes_default
12968#ifndef strtod
12969double strtod ();
12970#endif
12971int
12972main()
12973{
12974  {
12975    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12976    char *string = " +69";
12977    char *term;
12978    double value;
12979    value = strtod (string, &term);
12980    if (value != 69 || term != (string + 4))
12981      return 1;
12982  }
12983
12984  {
12985    /* Under Solaris 2.4, strtod returns the wrong value for the
12986       terminating character under some conditions.  */
12987    char *string = "NaN";
12988    char *term;
12989    strtod (string, &term);
12990    if (term != string && *(term - 1) == 0)
12991      return 1;
12992  }
12993  return 0;
12994}
12995
12996_ACEOF
12997if ac_fn_c_try_run "$LINENO"; then :
12998  ac_cv_func_strtod=yes
12999else
13000  ac_cv_func_strtod=no
13001fi
13002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13003  conftest.$ac_objext conftest.beam conftest.$ac_ext
13004fi
13005
13006fi
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
13008$as_echo "$ac_cv_func_strtod" >&6; }
13009if test $ac_cv_func_strtod = no; then
13010  case " $LIBOBJS " in
13011  *" strtod.$ac_objext "* ) ;;
13012  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13013 ;;
13014esac
13015
13016ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13017if test "x$ac_cv_func_pow" = xyes; then :
13018
13019fi
13020
13021if test $ac_cv_func_pow = no; then
13022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13023$as_echo_n "checking for pow in -lm... " >&6; }
13024if ${ac_cv_lib_m_pow+:} false; then :
13025  $as_echo_n "(cached) " >&6
13026else
13027  ac_check_lib_save_LIBS=$LIBS
13028LIBS="-lm  $LIBS"
13029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031
13032/* Override any GCC internal prototype to avoid an error.
13033   Use char because int might match the return type of a GCC
13034   builtin and then its argument prototype would still apply.  */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038char pow ();
13039int
13040main ()
13041{
13042return pow ();
13043  ;
13044  return 0;
13045}
13046_ACEOF
13047if ac_fn_c_try_link "$LINENO"; then :
13048  ac_cv_lib_m_pow=yes
13049else
13050  ac_cv_lib_m_pow=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext \
13053    conftest$ac_exeext conftest.$ac_ext
13054LIBS=$ac_check_lib_save_LIBS
13055fi
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13057$as_echo "$ac_cv_lib_m_pow" >&6; }
13058if test "x$ac_cv_lib_m_pow" = xyes; then :
13059  POW_LIB=-lm
13060else
13061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
13062$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13063fi
13064
13065fi
13066
13067fi
13068
13069for ac_func in memset
13070do :
13071  ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
13072if test "x$ac_cv_func_memset" = xyes; then :
13073  cat >>confdefs.h <<_ACEOF
13074#define HAVE_MEMSET 1
13075_ACEOF
13076
13077else
13078  as_fn_error $? "memset not found in libc" "$LINENO" 5
13079fi
13080done
13081
13082for ac_func in pow
13083do :
13084  ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13085if test "x$ac_cv_func_pow" = xyes; then :
13086  cat >>confdefs.h <<_ACEOF
13087#define HAVE_POW 1
13088_ACEOF
13089
13090else
13091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13092$as_echo_n "checking for pow in -lm... " >&6; }
13093if ${ac_cv_lib_m_pow+:} false; then :
13094  $as_echo_n "(cached) " >&6
13095else
13096  ac_check_lib_save_LIBS=$LIBS
13097LIBS="-lm  $LIBS"
13098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099/* end confdefs.h.  */
13100
13101/* Override any GCC internal prototype to avoid an error.
13102   Use char because int might match the return type of a GCC
13103   builtin and then its argument prototype would still apply.  */
13104#ifdef __cplusplus
13105extern "C"
13106#endif
13107char pow ();
13108int
13109main ()
13110{
13111return pow ();
13112  ;
13113  return 0;
13114}
13115_ACEOF
13116if ac_fn_c_try_link "$LINENO"; then :
13117  ac_cv_lib_m_pow=yes
13118else
13119  ac_cv_lib_m_pow=no
13120fi
13121rm -f core conftest.err conftest.$ac_objext \
13122    conftest$ac_exeext conftest.$ac_ext
13123LIBS=$ac_check_lib_save_LIBS
13124fi
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13126$as_echo "$ac_cv_lib_m_pow" >&6; }
13127if test "x$ac_cv_lib_m_pow" = xyes; then :
13128  cat >>confdefs.h <<_ACEOF
13129#define HAVE_LIBM 1
13130_ACEOF
13131
13132  LIBS="-lm $LIBS"
13133
13134else
13135  as_fn_error $? "cannot find pow" "$LINENO" 5
13136fi
13137
13138fi
13139done
13140
13141
13142# Some later POSIX 1003.1 functions are required for test programs, failure here
13143# is soft (the corresponding test program is not built).
13144ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13145if test "x$ac_cv_func_clock_gettime" = xyes; then :
13146
13147else
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
13149$as_echo "$as_me: WARNING: not building timepng" >&2;}
13150fi
13151
13152 if test "$ac_cv_func_clock_gettime" = "yes"; then
13153  HAVE_CLOCK_GETTIME_TRUE=
13154  HAVE_CLOCK_GETTIME_FALSE='#'
13155else
13156  HAVE_CLOCK_GETTIME_TRUE='#'
13157  HAVE_CLOCK_GETTIME_FALSE=
13158fi
13159
13160
13161
13162# Check whether --with-zlib-prefix was given.
13163if test "${with_zlib_prefix+set}" = set; then :
13164  withval=$with_zlib_prefix; ZPREFIX=${withval}
13165else
13166  ZPREFIX='z_'
13167fi
13168
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13170$as_echo_n "checking for zlibVersion in -lz... " >&6; }
13171if ${ac_cv_lib_z_zlibVersion+:} false; then :
13172  $as_echo_n "(cached) " >&6
13173else
13174  ac_check_lib_save_LIBS=$LIBS
13175LIBS="-lz  $LIBS"
13176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h.  */
13178
13179/* Override any GCC internal prototype to avoid an error.
13180   Use char because int might match the return type of a GCC
13181   builtin and then its argument prototype would still apply.  */
13182#ifdef __cplusplus
13183extern "C"
13184#endif
13185char zlibVersion ();
13186int
13187main ()
13188{
13189return zlibVersion ();
13190  ;
13191  return 0;
13192}
13193_ACEOF
13194if ac_fn_c_try_link "$LINENO"; then :
13195  ac_cv_lib_z_zlibVersion=yes
13196else
13197  ac_cv_lib_z_zlibVersion=no
13198fi
13199rm -f core conftest.err conftest.$ac_objext \
13200    conftest$ac_exeext conftest.$ac_ext
13201LIBS=$ac_check_lib_save_LIBS
13202fi
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13204$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13205if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13206  cat >>confdefs.h <<_ACEOF
13207#define HAVE_LIBZ 1
13208_ACEOF
13209
13210  LIBS="-lz $LIBS"
13211
13212else
13213  as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
13215$as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
13216if eval \${$as_ac_Lib+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  ac_check_lib_save_LIBS=$LIBS
13220LIBS="-lz  $LIBS"
13221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223
13224/* Override any GCC internal prototype to avoid an error.
13225   Use char because int might match the return type of a GCC
13226   builtin and then its argument prototype would still apply.  */
13227#ifdef __cplusplus
13228extern "C"
13229#endif
13230char ${ZPREFIX}zlibVersion ();
13231int
13232main ()
13233{
13234return ${ZPREFIX}zlibVersion ();
13235  ;
13236  return 0;
13237}
13238_ACEOF
13239if ac_fn_c_try_link "$LINENO"; then :
13240  eval "$as_ac_Lib=yes"
13241else
13242  eval "$as_ac_Lib=no"
13243fi
13244rm -f core conftest.err conftest.$ac_objext \
13245    conftest$ac_exeext conftest.$ac_ext
13246LIBS=$ac_check_lib_save_LIBS
13247fi
13248eval ac_res=\$$as_ac_Lib
13249	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13250$as_echo "$ac_res" >&6; }
13251if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13252  cat >>confdefs.h <<_ACEOF
13253#define HAVE_LIBZ 1
13254_ACEOF
13255
13256  LIBS="-lz $LIBS"
13257
13258else
13259  as_fn_error $? "zlib not installed" "$LINENO" 5
13260fi
13261
13262fi
13263
13264
13265# The following is for pngvalid, to ensure it catches FP errors even on
13266# platforms that don't enable FP exceptions, the function appears in the math
13267# library (typically), it's not an error if it is not found.
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
13269$as_echo_n "checking for feenableexcept in -lm... " >&6; }
13270if ${ac_cv_lib_m_feenableexcept+:} false; then :
13271  $as_echo_n "(cached) " >&6
13272else
13273  ac_check_lib_save_LIBS=$LIBS
13274LIBS="-lm  $LIBS"
13275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h.  */
13277
13278/* Override any GCC internal prototype to avoid an error.
13279   Use char because int might match the return type of a GCC
13280   builtin and then its argument prototype would still apply.  */
13281#ifdef __cplusplus
13282extern "C"
13283#endif
13284char feenableexcept ();
13285int
13286main ()
13287{
13288return feenableexcept ();
13289  ;
13290  return 0;
13291}
13292_ACEOF
13293if ac_fn_c_try_link "$LINENO"; then :
13294  ac_cv_lib_m_feenableexcept=yes
13295else
13296  ac_cv_lib_m_feenableexcept=no
13297fi
13298rm -f core conftest.err conftest.$ac_objext \
13299    conftest$ac_exeext conftest.$ac_ext
13300LIBS=$ac_check_lib_save_LIBS
13301fi
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
13303$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
13304if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
13305  cat >>confdefs.h <<_ACEOF
13306#define HAVE_LIBM 1
13307_ACEOF
13308
13309  LIBS="-lm $LIBS"
13310
13311fi
13312
13313for ac_func in feenableexcept
13314do :
13315  ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
13316if test "x$ac_cv_func_feenableexcept" = xyes; then :
13317  cat >>confdefs.h <<_ACEOF
13318#define HAVE_FEENABLEEXCEPT 1
13319_ACEOF
13320
13321fi
13322done
13323
13324
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
13326$as_echo_n "checking if using Solaris linker... " >&6; }
13327SLD=`$LD --version 2>&1 | grep Solaris`
13328if test "$SLD"; then
13329    have_solaris_ld=yes
13330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13331$as_echo "yes" >&6; }
13332else
13333    have_solaris_ld=no
13334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337 if test "$have_solaris_ld" = "yes"; then
13338  HAVE_SOLARIS_LD_TRUE=
13339  HAVE_SOLARIS_LD_FALSE='#'
13340else
13341  HAVE_SOLARIS_LD_TRUE='#'
13342  HAVE_SOLARIS_LD_FALSE=
13343fi
13344
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
13347$as_echo_n "checking if libraries can be versioned... " >&6; }
13348# Special case for PE/COFF platforms: ld reports
13349# support for version-script, but doesn't actually
13350# DO anything with it.
13351case $host in
13352*cygwin* | *mingw32* | *interix* )
13353    have_ld_version_script=no
13354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355$as_echo "no" >&6; }
13356;;
13357* )
13358
13359if test "$have_solaris_ld" = "yes"; then
13360    GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
13361else
13362    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
13363fi
13364
13365if test "$GLD"; then
13366    have_ld_version_script=yes
13367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368$as_echo "yes" >&6; }
13369else
13370    have_ld_version_script=no
13371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
13374$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
13375fi
13376;;
13377esac
13378
13379 if test "$have_ld_version_script" = "yes"; then
13380  HAVE_LD_VERSION_SCRIPT_TRUE=
13381  HAVE_LD_VERSION_SCRIPT_FALSE='#'
13382else
13383  HAVE_LD_VERSION_SCRIPT_TRUE='#'
13384  HAVE_LD_VERSION_SCRIPT_FALSE=
13385fi
13386
13387
13388if test "$have_ld_version_script" = "yes"; then
13389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
13390$as_echo_n "checking for symbol prefix... " >&6; }
13391    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
13392                  | ${CPP-${CC-gcc} -E} - 2>&1 \
13393                  | ${EGREP-grep} "^PREFIX=" \
13394                  | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
13395
13396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
13397$as_echo "$SYMBOL_PREFIX" >&6; }
13398fi
13399
13400# Substitutions for .in files
13401
13402
13403
13404
13405
13406# Additional arguments (and substitutions)
13407# Allow the pkg-config directory to be set
13408
13409# Check whether --with-pkgconfigdir was given.
13410if test "${with_pkgconfigdir+set}" = set; then :
13411  withval=$with_pkgconfigdir; pkgconfigdir=${withval}
13412else
13413  pkgconfigdir='${libdir}/pkgconfig'
13414fi
13415
13416
13417
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
13419$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
13420
13421# Make the *-config binary config scripts optional
13422
13423# Check whether --with-binconfigs was given.
13424if test "${with_binconfigs+set}" = set; then :
13425  withval=$with_binconfigs; if test "${withval}" = no; then
13426      binconfigs=
13427      { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
13428$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
13429    else
13430      binconfigs='${binconfigs}'
13431    fi
13432else
13433  binconfigs='${binconfigs}'
13434fi
13435
13436
13437
13438# Support for prefixes to the API function names; this will generate defines
13439# at the start of the build to rename exported library functions
13440
13441# Check whether --with-libpng-prefix was given.
13442if test "${with_libpng_prefix+set}" = set; then :
13443  withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
13444      PNG_PREFIX=${withval}
13445
13446    fi
13447fi
13448
13449 if test "${with_libpng_prefix:-no}" != "no"; then
13450  DO_PNG_PREFIX_TRUE=
13451  DO_PNG_PREFIX_FALSE='#'
13452else
13453  DO_PNG_PREFIX_TRUE='#'
13454  DO_PNG_PREFIX_FALSE=
13455fi
13456
13457
13458# Control over what links are made for installed files.  Versioned files are
13459# always installed, when the following options are turned on corresponding
13460# unversioned links are also created (normally as symbolic links):
13461# Check whether --enable-unversioned-links was given.
13462if test "${enable_unversioned_links+set}" = set; then :
13463  enableval=$enable_unversioned_links;
13464fi
13465
13466
13467# The AM_CONDITIONAL test is written so that the default is enabled;
13468# --disable-unversioned-links must be given to turn the option off.
13469 if test "$enable_unversioned_links" != "no"; then
13470  DO_INSTALL_LINKS_TRUE=
13471  DO_INSTALL_LINKS_FALSE='#'
13472else
13473  DO_INSTALL_LINKS_TRUE='#'
13474  DO_INSTALL_LINKS_FALSE=
13475fi
13476
13477
13478# Check whether --enable-unversioned-libpng-pc was given.
13479if test "${enable_unversioned_libpng_pc+set}" = set; then :
13480  enableval=$enable_unversioned_libpng_pc;
13481fi
13482
13483 if test "$enable_unversioned_libpng_pc" != "no"; then
13484  DO_INSTALL_LIBPNG_PC_TRUE=
13485  DO_INSTALL_LIBPNG_PC_FALSE='#'
13486else
13487  DO_INSTALL_LIBPNG_PC_TRUE='#'
13488  DO_INSTALL_LIBPNG_PC_FALSE=
13489fi
13490
13491
13492# Check whether --enable-unversioned-libpng-config was given.
13493if test "${enable_unversioned_libpng_config+set}" = set; then :
13494  enableval=$enable_unversioned_libpng_config;
13495fi
13496
13497 if test "$enable_unversioned_libpng_config" != "no"; then
13498  DO_INSTALL_LIBPNG_CONFIG_TRUE=
13499  DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
13500else
13501  DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
13502  DO_INSTALL_LIBPNG_CONFIG_FALSE=
13503fi
13504
13505
13506# HOST SPECIFIC OPTIONS
13507# =====================
13508#
13509# DEFAULT
13510# =======
13511#
13512# Check whether --enable-hardware-optimizations was given.
13513if test "${enable_hardware_optimizations+set}" = set; then :
13514  enableval=$enable_hardware_optimizations; case "$enableval" in
13515      no|off)
13516         # disable hardware optimization on all systems:
13517         enable_arm_neon=no
13518
13519$as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
13520
13521         enable_mips_msa=no
13522
13523$as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
13524
13525         enable_powerpc_vsx=no
13526
13527$as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
13528
13529         enable_intel_sse=no
13530
13531$as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
13532
13533         ;;
13534      *)
13535         # allow enabling hardware optimization on any system:
13536         case "$host_cpu" in
13537            arm*|aarch64*)
13538              enable_arm_neon=yes
13539
13540$as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
13541
13542              ;;
13543            mipsel*|mips64el*)
13544              enable_mips_msa=yes
13545
13546$as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
13547
13548              ;;
13549            i?86|x86_64)
13550              enable_intel_sse=yes
13551
13552$as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
13553
13554              ;;
13555            powerpc*|ppc64*)
13556              enable_powerpc_vsx=yes
13557
13558$as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
13559
13560              ;;
13561         esac
13562         ;;
13563   esac
13564fi
13565
13566
13567# ARM
13568# ===
13569#
13570# ARM NEON (SIMD) support.
13571
13572# Check whether --enable-arm-neon was given.
13573if test "${enable_arm_neon+set}" = set; then :
13574  enableval=$enable_arm_neon; case "$enableval" in
13575      no|off)
13576         # disable the default enabling on __ARM_NEON__ systems:
13577
13578$as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
13579
13580         # Prevent inclusion of the assembler files below:
13581         enable_arm_neon=no;;
13582      check)
13583
13584$as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
13585;;
13586      api)
13587
13588$as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
13589;;
13590      yes|on)
13591
13592$as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
13593
13594         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
13595            you want the optimizations unconditionally pass -mfpu=neon
13596            to the compiler." >&5
13597$as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
13598            you want the optimizations unconditionally pass -mfpu=neon
13599            to the compiler." >&2;};;
13600      *)
13601         as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
13602   esac
13603fi
13604
13605
13606# Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
13607# where ARM optimizations were explicitly requested (this allows a fallback if a
13608# future host CPU does not match 'arm*')
13609
13610 if test "$enable_arm_neon" != 'no' &&
13611    case "$host_cpu" in
13612      arm*|aarch64*) :;;
13613      *)    test "$enable_arm_neon" != '';;
13614    esac; then
13615  PNG_ARM_NEON_TRUE=
13616  PNG_ARM_NEON_FALSE='#'
13617else
13618  PNG_ARM_NEON_TRUE='#'
13619  PNG_ARM_NEON_FALSE=
13620fi
13621
13622
13623# MIPS
13624# ===
13625#
13626# MIPS MSA (SIMD) support.
13627
13628# Check whether --enable-mips-msa was given.
13629if test "${enable_mips_msa+set}" = set; then :
13630  enableval=$enable_mips_msa; case "$enableval" in
13631      no|off)
13632         # disable the default enabling on __mips_msa systems:
13633
13634$as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
13635
13636         # Prevent inclusion of the assembler files below:
13637         enable_mips_msa=no;;
13638      check)
13639
13640$as_echo "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
13641;;
13642      api)
13643
13644$as_echo "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
13645;;
13646      yes|on)
13647
13648$as_echo "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
13649
13650         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
13651            you want the optimizations unconditionally pass '-mmsa -mfp64'
13652            to the compiler." >&5
13653$as_echo "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
13654            you want the optimizations unconditionally pass '-mmsa -mfp64'
13655            to the compiler." >&2;};;
13656      *)
13657         as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
13658   esac
13659fi
13660
13661
13662# Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
13663# where MIPS optimizations were explicitly requested (this allows a fallback if a
13664# future host CPU does not match 'mips*')
13665
13666 if test "$enable_mips_msa" != 'no' &&
13667    case "$host_cpu" in
13668      mipsel*|mips64el*) :;;
13669    esac; then
13670  PNG_MIPS_MSA_TRUE=
13671  PNG_MIPS_MSA_FALSE='#'
13672else
13673  PNG_MIPS_MSA_TRUE='#'
13674  PNG_MIPS_MSA_FALSE=
13675fi
13676
13677
13678# INTEL
13679# =====
13680#
13681# INTEL SSE (SIMD) support.
13682
13683# Check whether --enable-intel-sse was given.
13684if test "${enable_intel_sse+set}" = set; then :
13685  enableval=$enable_intel_sse; case "$enableval" in
13686      no|off)
13687         # disable the default enabling:
13688
13689$as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
13690
13691         # Prevent inclusion of the assembler files below:
13692         enable_intel_sse=no;;
13693      yes|on)
13694
13695$as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
13696;;
13697      *)
13698         as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
13699   esac
13700fi
13701
13702
13703# Add Intel specific files to all builds where the host_cpu is Intel ('x86*')
13704# or where Intel optimizations were explicitly requested (this allows a
13705# fallback if a future host CPU does not match 'x86*')
13706 if test "$enable_intel_sse" != 'no' &&
13707    case "$host_cpu" in
13708      i?86|x86_64) :;;
13709      *)    test "$enable_intel_sse" != '';;
13710    esac; then
13711  PNG_INTEL_SSE_TRUE=
13712  PNG_INTEL_SSE_FALSE='#'
13713else
13714  PNG_INTEL_SSE_TRUE='#'
13715  PNG_INTEL_SSE_FALSE=
13716fi
13717
13718
13719# PowerPC
13720# ===
13721#
13722# PowerPC VSX (SIMD) support.
13723
13724# Check whether --enable-powerpc-vsx was given.
13725if test "${enable_powerpc_vsx+set}" = set; then :
13726  enableval=$enable_powerpc_vsx; case "$enableval" in
13727      no|off)
13728         # disable the default enabling on __ppc64__ systems:
13729
13730$as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
13731
13732         # Prevent inclusion of the platform specific files below:
13733         enable_powerpc_vsx=no;;
13734      check)
13735
13736$as_echo "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
13737
13738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
13739            for the list of supported OSes." >&5
13740$as_echo "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
13741            for the list of supported OSes." >&2;};;
13742      api)
13743
13744$as_echo "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
13745;;
13746      yes|on)
13747
13748$as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
13749
13750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
13751            you want the optimizations unconditionally pass '-maltivec -mvsx'
13752            or '-mcpu=power8'to the compiler." >&5
13753$as_echo "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
13754            you want the optimizations unconditionally pass '-maltivec -mvsx'
13755            or '-mcpu=power8'to the compiler." >&2;};;
13756      *)
13757         as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
13758   esac
13759fi
13760
13761
13762# Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or
13763# where POWERPC optimizations were explicitly requested (this allows a fallback if a
13764# future host CPU does not match 'powerpc*')
13765
13766 if test "$enable_powerpc_vsx" != 'no' &&
13767    case "$host_cpu" in
13768      powerpc*|ppc64*) :;;
13769    esac; then
13770  PNG_POWERPC_VSX_TRUE=
13771  PNG_POWERPC_VSX_FALSE='#'
13772else
13773  PNG_POWERPC_VSX_TRUE='#'
13774  PNG_POWERPC_VSX_FALSE=
13775fi
13776
13777
13778
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
13780$as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
13781
13782# Config files, substituting as above
13783ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
13784
13785ac_config_files="$ac_config_files libpng-config:libpng-config.in"
13786
13787
13788cat >confcache <<\_ACEOF
13789# This file is a shell script that caches the results of configure
13790# tests run on this system so they can be shared between configure
13791# scripts and configure runs, see configure's option --config-cache.
13792# It is not useful on other systems.  If it contains results you don't
13793# want to keep, you may remove or edit it.
13794#
13795# config.status only pays attention to the cache file if you give it
13796# the --recheck option to rerun configure.
13797#
13798# `ac_cv_env_foo' variables (set or unset) will be overridden when
13799# loading this file, other *unset* `ac_cv_foo' will be assigned the
13800# following values.
13801
13802_ACEOF
13803
13804# The following way of writing the cache mishandles newlines in values,
13805# but we know of no workaround that is simple, portable, and efficient.
13806# So, we kill variables containing newlines.
13807# Ultrix sh set writes to stderr and can't be redirected directly,
13808# and sets the high bit in the cache file unless we assign to the vars.
13809(
13810  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13811    eval ac_val=\$$ac_var
13812    case $ac_val in #(
13813    *${as_nl}*)
13814      case $ac_var in #(
13815      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13816$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13817      esac
13818      case $ac_var in #(
13819      _ | IFS | as_nl) ;; #(
13820      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13821      *) { eval $ac_var=; unset $ac_var;} ;;
13822      esac ;;
13823    esac
13824  done
13825
13826  (set) 2>&1 |
13827    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13828    *${as_nl}ac_space=\ *)
13829      # `set' does not quote correctly, so add quotes: double-quote
13830      # substitution turns \\\\ into \\, and sed turns \\ into \.
13831      sed -n \
13832	"s/'/'\\\\''/g;
13833	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13834      ;; #(
13835    *)
13836      # `set' quotes correctly as required by POSIX, so do not add quotes.
13837      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13838      ;;
13839    esac |
13840    sort
13841) |
13842  sed '
13843     /^ac_cv_env_/b end
13844     t clear
13845     :clear
13846     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13847     t end
13848     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13849     :end' >>confcache
13850if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13851  if test -w "$cache_file"; then
13852    if test "x$cache_file" != "x/dev/null"; then
13853      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13854$as_echo "$as_me: updating cache $cache_file" >&6;}
13855      if test ! -f "$cache_file" || test -h "$cache_file"; then
13856	cat confcache >"$cache_file"
13857      else
13858        case $cache_file in #(
13859        */* | ?:*)
13860	  mv -f confcache "$cache_file"$$ &&
13861	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13862        *)
13863	  mv -f confcache "$cache_file" ;;
13864	esac
13865      fi
13866    fi
13867  else
13868    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13869$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13870  fi
13871fi
13872rm -f confcache
13873
13874test "x$prefix" = xNONE && prefix=$ac_default_prefix
13875# Let make expand exec_prefix.
13876test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13877
13878DEFS=-DHAVE_CONFIG_H
13879
13880ac_libobjs=
13881ac_ltlibobjs=
13882U=
13883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13884  # 1. Remove the extension, and $U if already installed.
13885  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13886  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13887  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13888  #    will be set to the directory where LIBOBJS objects are built.
13889  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13890  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13891done
13892LIBOBJS=$ac_libobjs
13893
13894LTLIBOBJS=$ac_ltlibobjs
13895
13896
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13898$as_echo_n "checking that generated files are newer than configure... " >&6; }
13899   if test -n "$am_sleep_pid"; then
13900     # Hide warnings about reused PIDs.
13901     wait $am_sleep_pid 2>/dev/null
13902   fi
13903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13904$as_echo "done" >&6; }
13905 if test -n "$EXEEXT"; then
13906  am__EXEEXT_TRUE=
13907  am__EXEEXT_FALSE='#'
13908else
13909  am__EXEEXT_TRUE='#'
13910  am__EXEEXT_FALSE=
13911fi
13912
13913if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13914  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13915Usually this means the macro was only invoked conditionally." "$LINENO" 5
13916fi
13917if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13918  as_fn_error $? "conditional \"AMDEP\" was never defined.
13919Usually this means the macro was only invoked conditionally." "$LINENO" 5
13920fi
13921if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13922  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13923Usually this means the macro was only invoked conditionally." "$LINENO" 5
13924fi
13925if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13926  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13927Usually this means the macro was only invoked conditionally." "$LINENO" 5
13928fi
13929if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
13930  as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
13931Usually this means the macro was only invoked conditionally." "$LINENO" 5
13932fi
13933if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13934  as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
13935Usually this means the macro was only invoked conditionally." "$LINENO" 5
13936fi
13937if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13938  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13939Usually this means the macro was only invoked conditionally." "$LINENO" 5
13940fi
13941if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13942  as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13943Usually this means the macro was only invoked conditionally." "$LINENO" 5
13944fi
13945if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
13946  as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
13947Usually this means the macro was only invoked conditionally." "$LINENO" 5
13948fi
13949if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
13950  as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
13951Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952fi
13953if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
13954  as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
13955Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956fi
13957if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13958  as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13959Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960fi
13961if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
13962  as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
13963Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964fi
13965if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
13966  as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
13967Usually this means the macro was only invoked conditionally." "$LINENO" 5
13968fi
13969if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
13970  as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
13971Usually this means the macro was only invoked conditionally." "$LINENO" 5
13972fi
13973
13974: "${CONFIG_STATUS=./config.status}"
13975ac_write_fail=0
13976ac_clean_files_save=$ac_clean_files
13977ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13979$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13980as_write_fail=0
13981cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13982#! $SHELL
13983# Generated by $as_me.
13984# Run this file to recreate the current configuration.
13985# Compiler output produced by configure, useful for debugging
13986# configure, is in config.log if it exists.
13987
13988debug=false
13989ac_cs_recheck=false
13990ac_cs_silent=false
13991
13992SHELL=\${CONFIG_SHELL-$SHELL}
13993export SHELL
13994_ASEOF
13995cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13996## -------------------- ##
13997## M4sh Initialization. ##
13998## -------------------- ##
13999
14000# Be more Bourne compatible
14001DUALCASE=1; export DUALCASE # for MKS sh
14002if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14003  emulate sh
14004  NULLCMD=:
14005  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14006  # is contrary to our usage.  Disable this feature.
14007  alias -g '${1+"$@"}'='"$@"'
14008  setopt NO_GLOB_SUBST
14009else
14010  case `(set -o) 2>/dev/null` in #(
14011  *posix*) :
14012    set -o posix ;; #(
14013  *) :
14014     ;;
14015esac
14016fi
14017
14018
14019as_nl='
14020'
14021export as_nl
14022# Printing a long string crashes Solaris 7 /usr/bin/printf.
14023as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14024as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14025as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14026# Prefer a ksh shell builtin over an external printf program on Solaris,
14027# but without wasting forks for bash or zsh.
14028if test -z "$BASH_VERSION$ZSH_VERSION" \
14029    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14030  as_echo='print -r --'
14031  as_echo_n='print -rn --'
14032elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14033  as_echo='printf %s\n'
14034  as_echo_n='printf %s'
14035else
14036  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14037    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14038    as_echo_n='/usr/ucb/echo -n'
14039  else
14040    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14041    as_echo_n_body='eval
14042      arg=$1;
14043      case $arg in #(
14044      *"$as_nl"*)
14045	expr "X$arg" : "X\\(.*\\)$as_nl";
14046	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14047      esac;
14048      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14049    '
14050    export as_echo_n_body
14051    as_echo_n='sh -c $as_echo_n_body as_echo'
14052  fi
14053  export as_echo_body
14054  as_echo='sh -c $as_echo_body as_echo'
14055fi
14056
14057# The user is always right.
14058if test "${PATH_SEPARATOR+set}" != set; then
14059  PATH_SEPARATOR=:
14060  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14061    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14062      PATH_SEPARATOR=';'
14063  }
14064fi
14065
14066
14067# IFS
14068# We need space, tab and new line, in precisely that order.  Quoting is
14069# there to prevent editors from complaining about space-tab.
14070# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14071# splitting by setting IFS to empty value.)
14072IFS=" ""	$as_nl"
14073
14074# Find who we are.  Look in the path if we contain no directory separator.
14075as_myself=
14076case $0 in #((
14077  *[\\/]* ) as_myself=$0 ;;
14078  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079for as_dir in $PATH
14080do
14081  IFS=$as_save_IFS
14082  test -z "$as_dir" && as_dir=.
14083    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14084  done
14085IFS=$as_save_IFS
14086
14087     ;;
14088esac
14089# We did not find ourselves, most probably we were run as `sh COMMAND'
14090# in which case we are not to be found in the path.
14091if test "x$as_myself" = x; then
14092  as_myself=$0
14093fi
14094if test ! -f "$as_myself"; then
14095  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14096  exit 1
14097fi
14098
14099# Unset variables that we do not need and which cause bugs (e.g. in
14100# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14101# suppresses any "Segmentation fault" message there.  '((' could
14102# trigger a bug in pdksh 5.2.14.
14103for as_var in BASH_ENV ENV MAIL MAILPATH
14104do eval test x\${$as_var+set} = xset \
14105  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14106done
14107PS1='$ '
14108PS2='> '
14109PS4='+ '
14110
14111# NLS nuisances.
14112LC_ALL=C
14113export LC_ALL
14114LANGUAGE=C
14115export LANGUAGE
14116
14117# CDPATH.
14118(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14119
14120
14121# as_fn_error STATUS ERROR [LINENO LOG_FD]
14122# ----------------------------------------
14123# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14124# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14125# script with STATUS, using 1 if that was 0.
14126as_fn_error ()
14127{
14128  as_status=$1; test $as_status -eq 0 && as_status=1
14129  if test "$4"; then
14130    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14131    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14132  fi
14133  $as_echo "$as_me: error: $2" >&2
14134  as_fn_exit $as_status
14135} # as_fn_error
14136
14137
14138# as_fn_set_status STATUS
14139# -----------------------
14140# Set $? to STATUS, without forking.
14141as_fn_set_status ()
14142{
14143  return $1
14144} # as_fn_set_status
14145
14146# as_fn_exit STATUS
14147# -----------------
14148# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14149as_fn_exit ()
14150{
14151  set +e
14152  as_fn_set_status $1
14153  exit $1
14154} # as_fn_exit
14155
14156# as_fn_unset VAR
14157# ---------------
14158# Portably unset VAR.
14159as_fn_unset ()
14160{
14161  { eval $1=; unset $1;}
14162}
14163as_unset=as_fn_unset
14164# as_fn_append VAR VALUE
14165# ----------------------
14166# Append the text in VALUE to the end of the definition contained in VAR. Take
14167# advantage of any shell optimizations that allow amortized linear growth over
14168# repeated appends, instead of the typical quadratic growth present in naive
14169# implementations.
14170if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14171  eval 'as_fn_append ()
14172  {
14173    eval $1+=\$2
14174  }'
14175else
14176  as_fn_append ()
14177  {
14178    eval $1=\$$1\$2
14179  }
14180fi # as_fn_append
14181
14182# as_fn_arith ARG...
14183# ------------------
14184# Perform arithmetic evaluation on the ARGs, and store the result in the
14185# global $as_val. Take advantage of shells that can avoid forks. The arguments
14186# must be portable across $(()) and expr.
14187if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14188  eval 'as_fn_arith ()
14189  {
14190    as_val=$(( $* ))
14191  }'
14192else
14193  as_fn_arith ()
14194  {
14195    as_val=`expr "$@" || test $? -eq 1`
14196  }
14197fi # as_fn_arith
14198
14199
14200if expr a : '\(a\)' >/dev/null 2>&1 &&
14201   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14202  as_expr=expr
14203else
14204  as_expr=false
14205fi
14206
14207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14208  as_basename=basename
14209else
14210  as_basename=false
14211fi
14212
14213if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14214  as_dirname=dirname
14215else
14216  as_dirname=false
14217fi
14218
14219as_me=`$as_basename -- "$0" ||
14220$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14221	 X"$0" : 'X\(//\)$' \| \
14222	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14223$as_echo X/"$0" |
14224    sed '/^.*\/\([^/][^/]*\)\/*$/{
14225	    s//\1/
14226	    q
14227	  }
14228	  /^X\/\(\/\/\)$/{
14229	    s//\1/
14230	    q
14231	  }
14232	  /^X\/\(\/\).*/{
14233	    s//\1/
14234	    q
14235	  }
14236	  s/.*/./; q'`
14237
14238# Avoid depending upon Character Ranges.
14239as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14241as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14242as_cr_digits='0123456789'
14243as_cr_alnum=$as_cr_Letters$as_cr_digits
14244
14245ECHO_C= ECHO_N= ECHO_T=
14246case `echo -n x` in #(((((
14247-n*)
14248  case `echo 'xy\c'` in
14249  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14250  xy)  ECHO_C='\c';;
14251  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14252       ECHO_T='	';;
14253  esac;;
14254*)
14255  ECHO_N='-n';;
14256esac
14257
14258rm -f conf$$ conf$$.exe conf$$.file
14259if test -d conf$$.dir; then
14260  rm -f conf$$.dir/conf$$.file
14261else
14262  rm -f conf$$.dir
14263  mkdir conf$$.dir 2>/dev/null
14264fi
14265if (echo >conf$$.file) 2>/dev/null; then
14266  if ln -s conf$$.file conf$$ 2>/dev/null; then
14267    as_ln_s='ln -s'
14268    # ... but there are two gotchas:
14269    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14270    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14271    # In both cases, we have to default to `cp -pR'.
14272    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14273      as_ln_s='cp -pR'
14274  elif ln conf$$.file conf$$ 2>/dev/null; then
14275    as_ln_s=ln
14276  else
14277    as_ln_s='cp -pR'
14278  fi
14279else
14280  as_ln_s='cp -pR'
14281fi
14282rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14283rmdir conf$$.dir 2>/dev/null
14284
14285
14286# as_fn_mkdir_p
14287# -------------
14288# Create "$as_dir" as a directory, including parents if necessary.
14289as_fn_mkdir_p ()
14290{
14291
14292  case $as_dir in #(
14293  -*) as_dir=./$as_dir;;
14294  esac
14295  test -d "$as_dir" || eval $as_mkdir_p || {
14296    as_dirs=
14297    while :; do
14298      case $as_dir in #(
14299      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14300      *) as_qdir=$as_dir;;
14301      esac
14302      as_dirs="'$as_qdir' $as_dirs"
14303      as_dir=`$as_dirname -- "$as_dir" ||
14304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14305	 X"$as_dir" : 'X\(//\)[^/]' \| \
14306	 X"$as_dir" : 'X\(//\)$' \| \
14307	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14308$as_echo X"$as_dir" |
14309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14310	    s//\1/
14311	    q
14312	  }
14313	  /^X\(\/\/\)[^/].*/{
14314	    s//\1/
14315	    q
14316	  }
14317	  /^X\(\/\/\)$/{
14318	    s//\1/
14319	    q
14320	  }
14321	  /^X\(\/\).*/{
14322	    s//\1/
14323	    q
14324	  }
14325	  s/.*/./; q'`
14326      test -d "$as_dir" && break
14327    done
14328    test -z "$as_dirs" || eval "mkdir $as_dirs"
14329  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14330
14331
14332} # as_fn_mkdir_p
14333if mkdir -p . 2>/dev/null; then
14334  as_mkdir_p='mkdir -p "$as_dir"'
14335else
14336  test -d ./-p && rmdir ./-p
14337  as_mkdir_p=false
14338fi
14339
14340
14341# as_fn_executable_p FILE
14342# -----------------------
14343# Test if FILE is an executable regular file.
14344as_fn_executable_p ()
14345{
14346  test -f "$1" && test -x "$1"
14347} # as_fn_executable_p
14348as_test_x='test -x'
14349as_executable_p=as_fn_executable_p
14350
14351# Sed expression to map a string onto a valid CPP name.
14352as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14353
14354# Sed expression to map a string onto a valid variable name.
14355as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14356
14357
14358exec 6>&1
14359## ----------------------------------- ##
14360## Main body of $CONFIG_STATUS script. ##
14361## ----------------------------------- ##
14362_ASEOF
14363test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14364
14365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14366# Save the log message, to keep $0 and so on meaningful, and to
14367# report actual input values of CONFIG_FILES etc. instead of their
14368# values after options handling.
14369ac_log="
14370This file was extended by libpng $as_me 1.6.34, which was
14371generated by GNU Autoconf 2.69.  Invocation command line was
14372
14373  CONFIG_FILES    = $CONFIG_FILES
14374  CONFIG_HEADERS  = $CONFIG_HEADERS
14375  CONFIG_LINKS    = $CONFIG_LINKS
14376  CONFIG_COMMANDS = $CONFIG_COMMANDS
14377  $ $0 $@
14378
14379on `(hostname || uname -n) 2>/dev/null | sed 1q`
14380"
14381
14382_ACEOF
14383
14384case $ac_config_files in *"
14385"*) set x $ac_config_files; shift; ac_config_files=$*;;
14386esac
14387
14388case $ac_config_headers in *"
14389"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14390esac
14391
14392
14393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394# Files that config.status was made for.
14395config_files="$ac_config_files"
14396config_headers="$ac_config_headers"
14397config_commands="$ac_config_commands"
14398
14399_ACEOF
14400
14401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14402ac_cs_usage="\
14403\`$as_me' instantiates files and other configuration actions
14404from templates according to the current configuration.  Unless the files
14405and actions are specified as TAGs, all are instantiated by default.
14406
14407Usage: $0 [OPTION]... [TAG]...
14408
14409  -h, --help       print this help, then exit
14410  -V, --version    print version number and configuration settings, then exit
14411      --config     print configuration, then exit
14412  -q, --quiet, --silent
14413                   do not print progress messages
14414  -d, --debug      don't remove temporary files
14415      --recheck    update $as_me by reconfiguring in the same conditions
14416      --file=FILE[:TEMPLATE]
14417                   instantiate the configuration file FILE
14418      --header=FILE[:TEMPLATE]
14419                   instantiate the configuration header FILE
14420
14421Configuration files:
14422$config_files
14423
14424Configuration headers:
14425$config_headers
14426
14427Configuration commands:
14428$config_commands
14429
14430Report bugs to <png-mng-implement@lists.sourceforge.net>."
14431
14432_ACEOF
14433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14435ac_cs_version="\\
14436libpng config.status 1.6.34
14437configured by $0, generated by GNU Autoconf 2.69,
14438  with options \\"\$ac_cs_config\\"
14439
14440Copyright (C) 2012 Free Software Foundation, Inc.
14441This config.status script is free software; the Free Software Foundation
14442gives unlimited permission to copy, distribute and modify it."
14443
14444ac_pwd='$ac_pwd'
14445srcdir='$srcdir'
14446INSTALL='$INSTALL'
14447MKDIR_P='$MKDIR_P'
14448AWK='$AWK'
14449test -n "\$AWK" || AWK=awk
14450_ACEOF
14451
14452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14453# The default lists apply if the user does not specify any file.
14454ac_need_defaults=:
14455while test $# != 0
14456do
14457  case $1 in
14458  --*=?*)
14459    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14460    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14461    ac_shift=:
14462    ;;
14463  --*=)
14464    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14465    ac_optarg=
14466    ac_shift=:
14467    ;;
14468  *)
14469    ac_option=$1
14470    ac_optarg=$2
14471    ac_shift=shift
14472    ;;
14473  esac
14474
14475  case $ac_option in
14476  # Handling of the options.
14477  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14478    ac_cs_recheck=: ;;
14479  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14480    $as_echo "$ac_cs_version"; exit ;;
14481  --config | --confi | --conf | --con | --co | --c )
14482    $as_echo "$ac_cs_config"; exit ;;
14483  --debug | --debu | --deb | --de | --d | -d )
14484    debug=: ;;
14485  --file | --fil | --fi | --f )
14486    $ac_shift
14487    case $ac_optarg in
14488    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14489    '') as_fn_error $? "missing file argument" ;;
14490    esac
14491    as_fn_append CONFIG_FILES " '$ac_optarg'"
14492    ac_need_defaults=false;;
14493  --header | --heade | --head | --hea )
14494    $ac_shift
14495    case $ac_optarg in
14496    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14497    esac
14498    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14499    ac_need_defaults=false;;
14500  --he | --h)
14501    # Conflict between --help and --header
14502    as_fn_error $? "ambiguous option: \`$1'
14503Try \`$0 --help' for more information.";;
14504  --help | --hel | -h )
14505    $as_echo "$ac_cs_usage"; exit ;;
14506  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14507  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14508    ac_cs_silent=: ;;
14509
14510  # This is an error.
14511  -*) as_fn_error $? "unrecognized option: \`$1'
14512Try \`$0 --help' for more information." ;;
14513
14514  *) as_fn_append ac_config_targets " $1"
14515     ac_need_defaults=false ;;
14516
14517  esac
14518  shift
14519done
14520
14521ac_configure_extra_args=
14522
14523if $ac_cs_silent; then
14524  exec 6>/dev/null
14525  ac_configure_extra_args="$ac_configure_extra_args --silent"
14526fi
14527
14528_ACEOF
14529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14530if \$ac_cs_recheck; then
14531  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14532  shift
14533  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14534  CONFIG_SHELL='$SHELL'
14535  export CONFIG_SHELL
14536  exec "\$@"
14537fi
14538
14539_ACEOF
14540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14541exec 5>>config.log
14542{
14543  echo
14544  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14545## Running $as_me. ##
14546_ASBOX
14547  $as_echo "$ac_log"
14548} >&5
14549
14550_ACEOF
14551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14552#
14553# INIT-COMMANDS
14554#
14555AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14556
14557
14558# The HP-UX ksh and POSIX shell print the target directory to stdout
14559# if CDPATH is set.
14560(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14561
14562sed_quote_subst='$sed_quote_subst'
14563double_quote_subst='$double_quote_subst'
14564delay_variable_subst='$delay_variable_subst'
14565SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14566Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14567GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14568EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14569FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14570SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14571ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14572LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14573macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14574macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14575AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14576DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14577OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14578enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14579enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14580pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14581enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14582shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14583PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14584host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14585host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14586host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14587build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14588build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14589build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14590NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14591LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14592max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14593ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14594exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14595lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14596lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14597lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14598lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14599lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14600reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14601reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14602deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14603file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14604file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14605want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14606sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14607AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14608AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14609archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14610STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14611RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14612old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14613old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14614old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14615lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14616CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14617CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14618compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14619GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14620lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14621lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14622lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14623lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14624lt_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"`'
14625lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14626nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14627lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14628lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14629objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14630MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14631lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14632lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14633lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14634lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14635lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14636need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14637MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14638DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14639NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14640LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14641OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14642OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14643libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14644shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14645extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14646archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14647enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14648export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14649whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14650compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14651old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14652old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14653archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14654archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14655module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14656module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14657with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14658allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14659no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14660hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14661hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14662hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14663hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14664hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14665hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14666hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14667inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14668link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14669always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14670export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14671exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14672include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14673prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14674postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14675file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14676variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14677need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14678need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14679version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14680runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14681shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14682shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14683libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14684library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14685soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14686install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14687postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14688postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14689finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14690finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14691hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14692sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14693configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14694configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14695hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14696enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14697enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14698enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14699old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14700striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14701
14702LTCC='$LTCC'
14703LTCFLAGS='$LTCFLAGS'
14704compiler='$compiler_DEFAULT'
14705
14706# A function that is used when there is no print builtin or printf.
14707func_fallback_echo ()
14708{
14709  eval 'cat <<_LTECHO_EOF
14710\$1
14711_LTECHO_EOF'
14712}
14713
14714# Quote evaled strings.
14715for var in SED \
14716GREP \
14717EGREP \
14718FGREP \
14719SHELL \
14720ECHO \
14721LD \
14722AS \
14723DLLTOOL \
14724OBJDUMP \
14725PATH_SEPARATOR \
14726NM \
14727LN_S \
14728lt_SP2NL \
14729lt_NL2SP \
14730reload_flag \
14731deplibs_check_method \
14732file_magic_cmd \
14733file_magic_glob \
14734want_nocaseglob \
14735sharedlib_from_linklib_cmd \
14736AR \
14737AR_FLAGS \
14738archiver_list_spec \
14739STRIP \
14740RANLIB \
14741CC \
14742CFLAGS \
14743compiler \
14744lt_cv_sys_global_symbol_pipe \
14745lt_cv_sys_global_symbol_to_cdecl \
14746lt_cv_sys_global_symbol_to_import \
14747lt_cv_sys_global_symbol_to_c_name_address \
14748lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14749lt_cv_nm_interface \
14750nm_file_list_spec \
14751lt_cv_truncate_bin \
14752lt_prog_compiler_no_builtin_flag \
14753lt_prog_compiler_pic \
14754lt_prog_compiler_wl \
14755lt_prog_compiler_static \
14756lt_cv_prog_compiler_c_o \
14757need_locks \
14758MANIFEST_TOOL \
14759DSYMUTIL \
14760NMEDIT \
14761LIPO \
14762OTOOL \
14763OTOOL64 \
14764shrext_cmds \
14765export_dynamic_flag_spec \
14766whole_archive_flag_spec \
14767compiler_needs_object \
14768with_gnu_ld \
14769allow_undefined_flag \
14770no_undefined_flag \
14771hardcode_libdir_flag_spec \
14772hardcode_libdir_separator \
14773exclude_expsyms \
14774include_expsyms \
14775file_list_spec \
14776variables_saved_for_relink \
14777libname_spec \
14778library_names_spec \
14779soname_spec \
14780install_override_mode \
14781finish_eval \
14782old_striplib \
14783striplib; do
14784    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14785    *[\\\\\\\`\\"\\\$]*)
14786      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14787      ;;
14788    *)
14789      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14790      ;;
14791    esac
14792done
14793
14794# Double-quote double-evaled strings.
14795for var in reload_cmds \
14796old_postinstall_cmds \
14797old_postuninstall_cmds \
14798old_archive_cmds \
14799extract_expsyms_cmds \
14800old_archive_from_new_cmds \
14801old_archive_from_expsyms_cmds \
14802archive_cmds \
14803archive_expsym_cmds \
14804module_cmds \
14805module_expsym_cmds \
14806export_symbols_cmds \
14807prelink_cmds \
14808postlink_cmds \
14809postinstall_cmds \
14810postuninstall_cmds \
14811finish_cmds \
14812sys_lib_search_path_spec \
14813configure_time_dlsearch_path \
14814configure_time_lt_sys_library_path; do
14815    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14816    *[\\\\\\\`\\"\\\$]*)
14817      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14818      ;;
14819    *)
14820      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14821      ;;
14822    esac
14823done
14824
14825ac_aux_dir='$ac_aux_dir'
14826
14827# See if we are running on zsh, and set the options that allow our
14828# commands through without removal of \ escapes INIT.
14829if test -n "\${ZSH_VERSION+set}"; then
14830   setopt NO_GLOB_SUBST
14831fi
14832
14833
14834    PACKAGE='$PACKAGE'
14835    VERSION='$VERSION'
14836    RM='$RM'
14837    ofile='$ofile'
14838
14839
14840
14841
14842_ACEOF
14843
14844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14845
14846# Handling of arguments.
14847for ac_config_target in $ac_config_targets
14848do
14849  case $ac_config_target in
14850    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14851    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14852    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14853    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14854    "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14855    "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
14856
14857  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14858  esac
14859done
14860
14861
14862# If the user did not use the arguments to specify the items to instantiate,
14863# then the envvar interface is used.  Set only those that are not.
14864# We use the long form for the default assignment because of an extremely
14865# bizarre bug on SunOS 4.1.3.
14866if $ac_need_defaults; then
14867  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14868  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14869  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14870fi
14871
14872# Have a temporary directory for convenience.  Make it in the build tree
14873# simply because there is no reason against having it here, and in addition,
14874# creating and moving files from /tmp can sometimes cause problems.
14875# Hook for its removal unless debugging.
14876# Note that there is a small window in which the directory will not be cleaned:
14877# after its creation but before its name has been assigned to `$tmp'.
14878$debug ||
14879{
14880  tmp= ac_tmp=
14881  trap 'exit_status=$?
14882  : "${ac_tmp:=$tmp}"
14883  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14884' 0
14885  trap 'as_fn_exit 1' 1 2 13 15
14886}
14887# Create a (secure) tmp directory for tmp files.
14888
14889{
14890  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14891  test -d "$tmp"
14892}  ||
14893{
14894  tmp=./conf$$-$RANDOM
14895  (umask 077 && mkdir "$tmp")
14896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14897ac_tmp=$tmp
14898
14899# Set up the scripts for CONFIG_FILES section.
14900# No need to generate them if there are no CONFIG_FILES.
14901# This happens for instance with `./config.status config.h'.
14902if test -n "$CONFIG_FILES"; then
14903
14904
14905ac_cr=`echo X | tr X '\015'`
14906# On cygwin, bash can eat \r inside `` if the user requested igncr.
14907# But we know of no other shell where ac_cr would be empty at this
14908# point, so we can use a bashism as a fallback.
14909if test "x$ac_cr" = x; then
14910  eval ac_cr=\$\'\\r\'
14911fi
14912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14914  ac_cs_awk_cr='\\r'
14915else
14916  ac_cs_awk_cr=$ac_cr
14917fi
14918
14919echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14920_ACEOF
14921
14922
14923{
14924  echo "cat >conf$$subs.awk <<_ACEOF" &&
14925  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14926  echo "_ACEOF"
14927} >conf$$subs.sh ||
14928  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14930ac_delim='%!_!# '
14931for ac_last_try in false false false false false :; do
14932  . ./conf$$subs.sh ||
14933    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14934
14935  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14936  if test $ac_delim_n = $ac_delim_num; then
14937    break
14938  elif $ac_last_try; then
14939    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14940  else
14941    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14942  fi
14943done
14944rm -f conf$$subs.sh
14945
14946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14948_ACEOF
14949sed -n '
14950h
14951s/^/S["/; s/!.*/"]=/
14952p
14953g
14954s/^[^!]*!//
14955:repl
14956t repl
14957s/'"$ac_delim"'$//
14958t delim
14959:nl
14960h
14961s/\(.\{148\}\)..*/\1/
14962t more1
14963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14964p
14965n
14966b repl
14967:more1
14968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14969p
14970g
14971s/.\{148\}//
14972t nl
14973:delim
14974h
14975s/\(.\{148\}\)..*/\1/
14976t more2
14977s/["\\]/\\&/g; s/^/"/; s/$/"/
14978p
14979b
14980:more2
14981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14982p
14983g
14984s/.\{148\}//
14985t delim
14986' <conf$$subs.awk | sed '
14987/^[^""]/{
14988  N
14989  s/\n//
14990}
14991' >>$CONFIG_STATUS || ac_write_fail=1
14992rm -f conf$$subs.awk
14993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14994_ACAWK
14995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14996  for (key in S) S_is_set[key] = 1
14997  FS = ""
14998
14999}
15000{
15001  line = $ 0
15002  nfields = split(line, field, "@")
15003  substed = 0
15004  len = length(field[1])
15005  for (i = 2; i < nfields; i++) {
15006    key = field[i]
15007    keylen = length(key)
15008    if (S_is_set[key]) {
15009      value = S[key]
15010      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15011      len += length(value) + length(field[++i])
15012      substed = 1
15013    } else
15014      len += 1 + keylen
15015  }
15016
15017  print line
15018}
15019
15020_ACAWK
15021_ACEOF
15022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15024  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15025else
15026  cat
15027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15028  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15029_ACEOF
15030
15031# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15033# trailing colons and then remove the whole line if VPATH becomes empty
15034# (actually we leave an empty line to preserve line numbers).
15035if test "x$srcdir" = x.; then
15036  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15037h
15038s///
15039s/^/:/
15040s/[	 ]*$/:/
15041s/:\$(srcdir):/:/g
15042s/:\${srcdir}:/:/g
15043s/:@srcdir@:/:/g
15044s/^:*//
15045s/:*$//
15046x
15047s/\(=[	 ]*\).*/\1/
15048G
15049s/\n//
15050s/^[^=]*=[	 ]*$//
15051}'
15052fi
15053
15054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055fi # test -n "$CONFIG_FILES"
15056
15057# Set up the scripts for CONFIG_HEADERS section.
15058# No need to generate them if there are no CONFIG_HEADERS.
15059# This happens for instance with `./config.status Makefile'.
15060if test -n "$CONFIG_HEADERS"; then
15061cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15062BEGIN {
15063_ACEOF
15064
15065# Transform confdefs.h into an awk script `defines.awk', embedded as
15066# here-document in config.status, that substitutes the proper values into
15067# config.h.in to produce config.h.
15068
15069# Create a delimiter string that does not exist in confdefs.h, to ease
15070# handling of long lines.
15071ac_delim='%!_!# '
15072for ac_last_try in false false :; do
15073  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15074  if test -z "$ac_tt"; then
15075    break
15076  elif $ac_last_try; then
15077    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15078  else
15079    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15080  fi
15081done
15082
15083# For the awk script, D is an array of macro values keyed by name,
15084# likewise P contains macro parameters if any.  Preserve backslash
15085# newline sequences.
15086
15087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15088sed -n '
15089s/.\{148\}/&'"$ac_delim"'/g
15090t rset
15091:rset
15092s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15093t def
15094d
15095:def
15096s/\\$//
15097t bsnl
15098s/["\\]/\\&/g
15099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15100D["\1"]=" \3"/p
15101s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15102d
15103:bsnl
15104s/["\\]/\\&/g
15105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15106D["\1"]=" \3\\\\\\n"\\/p
15107t cont
15108s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15109t cont
15110d
15111:cont
15112n
15113s/.\{148\}/&'"$ac_delim"'/g
15114t clear
15115:clear
15116s/\\$//
15117t bsnlc
15118s/["\\]/\\&/g; s/^/"/; s/$/"/p
15119d
15120:bsnlc
15121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15122b cont
15123' <confdefs.h | sed '
15124s/'"$ac_delim"'/"\\\
15125"/g' >>$CONFIG_STATUS || ac_write_fail=1
15126
15127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128  for (key in D) D_is_set[key] = 1
15129  FS = ""
15130}
15131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15132  line = \$ 0
15133  split(line, arg, " ")
15134  if (arg[1] == "#") {
15135    defundef = arg[2]
15136    mac1 = arg[3]
15137  } else {
15138    defundef = substr(arg[1], 2)
15139    mac1 = arg[2]
15140  }
15141  split(mac1, mac2, "(") #)
15142  macro = mac2[1]
15143  prefix = substr(line, 1, index(line, defundef) - 1)
15144  if (D_is_set[macro]) {
15145    # Preserve the white space surrounding the "#".
15146    print prefix "define", macro P[macro] D[macro]
15147    next
15148  } else {
15149    # Replace #undef with comments.  This is necessary, for example,
15150    # in the case of _POSIX_SOURCE, which is predefined and required
15151    # on some systems where configure will not decide to define it.
15152    if (defundef == "undef") {
15153      print "/*", prefix defundef, macro, "*/"
15154      next
15155    }
15156  }
15157}
15158{ print }
15159_ACAWK
15160_ACEOF
15161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15163fi # test -n "$CONFIG_HEADERS"
15164
15165
15166eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15167shift
15168for ac_tag
15169do
15170  case $ac_tag in
15171  :[FHLC]) ac_mode=$ac_tag; continue;;
15172  esac
15173  case $ac_mode$ac_tag in
15174  :[FHL]*:*);;
15175  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15176  :[FH]-) ac_tag=-:-;;
15177  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15178  esac
15179  ac_save_IFS=$IFS
15180  IFS=:
15181  set x $ac_tag
15182  IFS=$ac_save_IFS
15183  shift
15184  ac_file=$1
15185  shift
15186
15187  case $ac_mode in
15188  :L) ac_source=$1;;
15189  :[FH])
15190    ac_file_inputs=
15191    for ac_f
15192    do
15193      case $ac_f in
15194      -) ac_f="$ac_tmp/stdin";;
15195      *) # Look for the file first in the build tree, then in the source tree
15196	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15197	 # because $ac_f cannot contain `:'.
15198	 test -f "$ac_f" ||
15199	   case $ac_f in
15200	   [\\/$]*) false;;
15201	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15202	   esac ||
15203	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15204      esac
15205      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15206      as_fn_append ac_file_inputs " '$ac_f'"
15207    done
15208
15209    # Let's still pretend it is `configure' which instantiates (i.e., don't
15210    # use $as_me), people would be surprised to read:
15211    #    /* config.h.  Generated by config.status.  */
15212    configure_input='Generated from '`
15213	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15214	`' by configure.'
15215    if test x"$ac_file" != x-; then
15216      configure_input="$ac_file.  $configure_input"
15217      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15218$as_echo "$as_me: creating $ac_file" >&6;}
15219    fi
15220    # Neutralize special characters interpreted by sed in replacement strings.
15221    case $configure_input in #(
15222    *\&* | *\|* | *\\* )
15223       ac_sed_conf_input=`$as_echo "$configure_input" |
15224       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15225    *) ac_sed_conf_input=$configure_input;;
15226    esac
15227
15228    case $ac_tag in
15229    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15231    esac
15232    ;;
15233  esac
15234
15235  ac_dir=`$as_dirname -- "$ac_file" ||
15236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15237	 X"$ac_file" : 'X\(//\)[^/]' \| \
15238	 X"$ac_file" : 'X\(//\)$' \| \
15239	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15240$as_echo X"$ac_file" |
15241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15242	    s//\1/
15243	    q
15244	  }
15245	  /^X\(\/\/\)[^/].*/{
15246	    s//\1/
15247	    q
15248	  }
15249	  /^X\(\/\/\)$/{
15250	    s//\1/
15251	    q
15252	  }
15253	  /^X\(\/\).*/{
15254	    s//\1/
15255	    q
15256	  }
15257	  s/.*/./; q'`
15258  as_dir="$ac_dir"; as_fn_mkdir_p
15259  ac_builddir=.
15260
15261case "$ac_dir" in
15262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15263*)
15264  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15265  # A ".." for each directory in $ac_dir_suffix.
15266  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15267  case $ac_top_builddir_sub in
15268  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15269  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15270  esac ;;
15271esac
15272ac_abs_top_builddir=$ac_pwd
15273ac_abs_builddir=$ac_pwd$ac_dir_suffix
15274# for backward compatibility:
15275ac_top_builddir=$ac_top_build_prefix
15276
15277case $srcdir in
15278  .)  # We are building in place.
15279    ac_srcdir=.
15280    ac_top_srcdir=$ac_top_builddir_sub
15281    ac_abs_top_srcdir=$ac_pwd ;;
15282  [\\/]* | ?:[\\/]* )  # Absolute name.
15283    ac_srcdir=$srcdir$ac_dir_suffix;
15284    ac_top_srcdir=$srcdir
15285    ac_abs_top_srcdir=$srcdir ;;
15286  *) # Relative name.
15287    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15288    ac_top_srcdir=$ac_top_build_prefix$srcdir
15289    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15290esac
15291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15292
15293
15294  case $ac_mode in
15295  :F)
15296  #
15297  # CONFIG_FILE
15298  #
15299
15300  case $INSTALL in
15301  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15302  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15303  esac
15304  ac_MKDIR_P=$MKDIR_P
15305  case $MKDIR_P in
15306  [\\/$]* | ?:[\\/]* ) ;;
15307  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15308  esac
15309_ACEOF
15310
15311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15312# If the template does not know about datarootdir, expand it.
15313# FIXME: This hack should be removed a few years after 2.60.
15314ac_datarootdir_hack=; ac_datarootdir_seen=
15315ac_sed_dataroot='
15316/datarootdir/ {
15317  p
15318  q
15319}
15320/@datadir@/p
15321/@docdir@/p
15322/@infodir@/p
15323/@localedir@/p
15324/@mandir@/p'
15325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15326*datarootdir*) ac_datarootdir_seen=yes;;
15327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15328  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15330_ACEOF
15331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332  ac_datarootdir_hack='
15333  s&@datadir@&$datadir&g
15334  s&@docdir@&$docdir&g
15335  s&@infodir@&$infodir&g
15336  s&@localedir@&$localedir&g
15337  s&@mandir@&$mandir&g
15338  s&\\\${datarootdir}&$datarootdir&g' ;;
15339esac
15340_ACEOF
15341
15342# Neutralize VPATH when `$srcdir' = `.'.
15343# Shell code in configure.ac might set extrasub.
15344# FIXME: do we really want to maintain this feature?
15345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346ac_sed_extra="$ac_vpsub
15347$extrasub
15348_ACEOF
15349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15350:t
15351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15352s|@configure_input@|$ac_sed_conf_input|;t t
15353s&@top_builddir@&$ac_top_builddir_sub&;t t
15354s&@top_build_prefix@&$ac_top_build_prefix&;t t
15355s&@srcdir@&$ac_srcdir&;t t
15356s&@abs_srcdir@&$ac_abs_srcdir&;t t
15357s&@top_srcdir@&$ac_top_srcdir&;t t
15358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15359s&@builddir@&$ac_builddir&;t t
15360s&@abs_builddir@&$ac_abs_builddir&;t t
15361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15362s&@INSTALL@&$ac_INSTALL&;t t
15363s&@MKDIR_P@&$ac_MKDIR_P&;t t
15364$ac_datarootdir_hack
15365"
15366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15367  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15368
15369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15370  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15371  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15372      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15374which seems to be undefined.  Please make sure it is defined" >&5
15375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15376which seems to be undefined.  Please make sure it is defined" >&2;}
15377
15378  rm -f "$ac_tmp/stdin"
15379  case $ac_file in
15380  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15381  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15382  esac \
15383  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15384 ;;
15385  :H)
15386  #
15387  # CONFIG_HEADER
15388  #
15389  if test x"$ac_file" != x-; then
15390    {
15391      $as_echo "/* $configure_input  */" \
15392      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15393    } >"$ac_tmp/config.h" \
15394      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15395    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15396      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15397$as_echo "$as_me: $ac_file is unchanged" >&6;}
15398    else
15399      rm -f "$ac_file"
15400      mv "$ac_tmp/config.h" "$ac_file" \
15401	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15402    fi
15403  else
15404    $as_echo "/* $configure_input  */" \
15405      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15406      || as_fn_error $? "could not create -" "$LINENO" 5
15407  fi
15408# Compute "$ac_file"'s index in $config_headers.
15409_am_arg="$ac_file"
15410_am_stamp_count=1
15411for _am_header in $config_headers :; do
15412  case $_am_header in
15413    $_am_arg | $_am_arg:* )
15414      break ;;
15415    * )
15416      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15417  esac
15418done
15419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15421	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15422	 X"$_am_arg" : 'X\(//\)$' \| \
15423	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15424$as_echo X"$_am_arg" |
15425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15426	    s//\1/
15427	    q
15428	  }
15429	  /^X\(\/\/\)[^/].*/{
15430	    s//\1/
15431	    q
15432	  }
15433	  /^X\(\/\/\)$/{
15434	    s//\1/
15435	    q
15436	  }
15437	  /^X\(\/\).*/{
15438	    s//\1/
15439	    q
15440	  }
15441	  s/.*/./; q'`/stamp-h$_am_stamp_count
15442 ;;
15443
15444  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15445$as_echo "$as_me: executing $ac_file commands" >&6;}
15446 ;;
15447  esac
15448
15449
15450  case $ac_file$ac_mode in
15451    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15452  # Older Autoconf quotes --file arguments for eval, but not when files
15453  # are listed without --file.  Let's play safe and only enable the eval
15454  # if we detect the quoting.
15455  case $CONFIG_FILES in
15456  *\'*) eval set x "$CONFIG_FILES" ;;
15457  *)   set x $CONFIG_FILES ;;
15458  esac
15459  shift
15460  for mf
15461  do
15462    # Strip MF so we end up with the name of the file.
15463    mf=`echo "$mf" | sed -e 's/:.*$//'`
15464    # Check whether this is an Automake generated Makefile or not.
15465    # We used to match only the files named 'Makefile.in', but
15466    # some people rename them; so instead we look at the file content.
15467    # Grep'ing the first line is not enough: some people post-process
15468    # each Makefile.in and add a new line on top of each file to say so.
15469    # Grep'ing the whole file is not good either: AIX grep has a line
15470    # limit of 2048, but all sed's we know have understand at least 4000.
15471    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15472      dirpart=`$as_dirname -- "$mf" ||
15473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474	 X"$mf" : 'X\(//\)[^/]' \| \
15475	 X"$mf" : 'X\(//\)$' \| \
15476	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15477$as_echo X"$mf" |
15478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479	    s//\1/
15480	    q
15481	  }
15482	  /^X\(\/\/\)[^/].*/{
15483	    s//\1/
15484	    q
15485	  }
15486	  /^X\(\/\/\)$/{
15487	    s//\1/
15488	    q
15489	  }
15490	  /^X\(\/\).*/{
15491	    s//\1/
15492	    q
15493	  }
15494	  s/.*/./; q'`
15495    else
15496      continue
15497    fi
15498    # Extract the definition of DEPDIR, am__include, and am__quote
15499    # from the Makefile without running 'make'.
15500    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15501    test -z "$DEPDIR" && continue
15502    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15503    test -z "$am__include" && continue
15504    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15505    # Find all dependency output files, they are included files with
15506    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15507    # simplest approach to changing $(DEPDIR) to its actual value in the
15508    # expansion.
15509    for file in `sed -n "
15510      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15511	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15512      # Make sure the directory exists.
15513      test -f "$dirpart/$file" && continue
15514      fdir=`$as_dirname -- "$file" ||
15515$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15516	 X"$file" : 'X\(//\)[^/]' \| \
15517	 X"$file" : 'X\(//\)$' \| \
15518	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15519$as_echo X"$file" |
15520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15521	    s//\1/
15522	    q
15523	  }
15524	  /^X\(\/\/\)[^/].*/{
15525	    s//\1/
15526	    q
15527	  }
15528	  /^X\(\/\/\)$/{
15529	    s//\1/
15530	    q
15531	  }
15532	  /^X\(\/\).*/{
15533	    s//\1/
15534	    q
15535	  }
15536	  s/.*/./; q'`
15537      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15538      # echo "creating $dirpart/$file"
15539      echo '# dummy' > "$dirpart/$file"
15540    done
15541  done
15542}
15543 ;;
15544    "libtool":C)
15545
15546    # See if we are running on zsh, and set the options that allow our
15547    # commands through without removal of \ escapes.
15548    if test -n "${ZSH_VERSION+set}"; then
15549      setopt NO_GLOB_SUBST
15550    fi
15551
15552    cfgfile=${ofile}T
15553    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15554    $RM "$cfgfile"
15555
15556    cat <<_LT_EOF >> "$cfgfile"
15557#! $SHELL
15558# Generated automatically by $as_me ($PACKAGE) $VERSION
15559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15560# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15561
15562# Provide generalized library-building support services.
15563# Written by Gordon Matzigkeit, 1996
15564
15565# Copyright (C) 2014 Free Software Foundation, Inc.
15566# This is free software; see the source for copying conditions.  There is NO
15567# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15568
15569# GNU Libtool is free software; you can redistribute it and/or modify
15570# it under the terms of the GNU General Public License as published by
15571# the Free Software Foundation; either version 2 of of the License, or
15572# (at your option) any later version.
15573#
15574# As a special exception to the GNU General Public License, if you
15575# distribute this file as part of a program or library that is built
15576# using GNU Libtool, you may include this file under the  same
15577# distribution terms that you use for the rest of that program.
15578#
15579# GNU Libtool is distributed in the hope that it will be useful, but
15580# WITHOUT ANY WARRANTY; without even the implied warranty of
15581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15582# GNU General Public License for more details.
15583#
15584# You should have received a copy of the GNU General Public License
15585# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15586
15587
15588# The names of the tagged configurations supported by this script.
15589available_tags=''
15590
15591# Configured defaults for sys_lib_dlsearch_path munging.
15592: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15593
15594# ### BEGIN LIBTOOL CONFIG
15595
15596# A sed program that does not truncate output.
15597SED=$lt_SED
15598
15599# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15600Xsed="\$SED -e 1s/^X//"
15601
15602# A grep program that handles long lines.
15603GREP=$lt_GREP
15604
15605# An ERE matcher.
15606EGREP=$lt_EGREP
15607
15608# A literal string matcher.
15609FGREP=$lt_FGREP
15610
15611# Shell to use when invoking shell scripts.
15612SHELL=$lt_SHELL
15613
15614# An echo program that protects backslashes.
15615ECHO=$lt_ECHO
15616
15617# Which release of libtool.m4 was used?
15618macro_version=$macro_version
15619macro_revision=$macro_revision
15620
15621# Assembler program.
15622AS=$lt_AS
15623
15624# DLL creation program.
15625DLLTOOL=$lt_DLLTOOL
15626
15627# Object dumper program.
15628OBJDUMP=$lt_OBJDUMP
15629
15630# Whether or not to build shared libraries.
15631build_libtool_libs=$enable_shared
15632
15633# Whether or not to build static libraries.
15634build_old_libs=$enable_static
15635
15636# What type of objects to build.
15637pic_mode=$pic_mode
15638
15639# Whether or not to optimize for fast installation.
15640fast_install=$enable_fast_install
15641
15642# Shared archive member basename,for filename based shared library versioning on AIX.
15643shared_archive_member_spec=$shared_archive_member_spec
15644
15645# The PATH separator for the build system.
15646PATH_SEPARATOR=$lt_PATH_SEPARATOR
15647
15648# The host system.
15649host_alias=$host_alias
15650host=$host
15651host_os=$host_os
15652
15653# The build system.
15654build_alias=$build_alias
15655build=$build
15656build_os=$build_os
15657
15658# A BSD- or MS-compatible name lister.
15659NM=$lt_NM
15660
15661# Whether we need soft or hard links.
15662LN_S=$lt_LN_S
15663
15664# What is the maximum length of a command?
15665max_cmd_len=$max_cmd_len
15666
15667# Object file suffix (normally "o").
15668objext=$ac_objext
15669
15670# Executable file suffix (normally "").
15671exeext=$exeext
15672
15673# whether the shell understands "unset".
15674lt_unset=$lt_unset
15675
15676# turn spaces into newlines.
15677SP2NL=$lt_lt_SP2NL
15678
15679# turn newlines into spaces.
15680NL2SP=$lt_lt_NL2SP
15681
15682# convert \$build file names to \$host format.
15683to_host_file_cmd=$lt_cv_to_host_file_cmd
15684
15685# convert \$build files to toolchain format.
15686to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15687
15688# Method to check whether dependent libraries are shared objects.
15689deplibs_check_method=$lt_deplibs_check_method
15690
15691# Command to use when deplibs_check_method = "file_magic".
15692file_magic_cmd=$lt_file_magic_cmd
15693
15694# How to find potential files when deplibs_check_method = "file_magic".
15695file_magic_glob=$lt_file_magic_glob
15696
15697# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15698want_nocaseglob=$lt_want_nocaseglob
15699
15700# Command to associate shared and link libraries.
15701sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15702
15703# The archiver.
15704AR=$lt_AR
15705
15706# Flags to create an archive.
15707AR_FLAGS=$lt_AR_FLAGS
15708
15709# How to feed a file listing to the archiver.
15710archiver_list_spec=$lt_archiver_list_spec
15711
15712# A symbol stripping program.
15713STRIP=$lt_STRIP
15714
15715# Commands used to install an old-style archive.
15716RANLIB=$lt_RANLIB
15717old_postinstall_cmds=$lt_old_postinstall_cmds
15718old_postuninstall_cmds=$lt_old_postuninstall_cmds
15719
15720# Whether to use a lock for old archive extraction.
15721lock_old_archive_extraction=$lock_old_archive_extraction
15722
15723# A C compiler.
15724LTCC=$lt_CC
15725
15726# LTCC compiler flags.
15727LTCFLAGS=$lt_CFLAGS
15728
15729# Take the output of nm and produce a listing of raw symbols and C names.
15730global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15731
15732# Transform the output of nm in a proper C declaration.
15733global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15734
15735# Transform the output of nm into a list of symbols to manually relocate.
15736global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15737
15738# Transform the output of nm in a C name address pair.
15739global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15740
15741# Transform the output of nm in a C name address pair when lib prefix is needed.
15742global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15743
15744# The name lister interface.
15745nm_interface=$lt_lt_cv_nm_interface
15746
15747# Specify filename containing input files for \$NM.
15748nm_file_list_spec=$lt_nm_file_list_spec
15749
15750# The root where to search for dependent libraries,and where our libraries should be installed.
15751lt_sysroot=$lt_sysroot
15752
15753# Command to truncate a binary pipe.
15754lt_truncate_bin=$lt_lt_cv_truncate_bin
15755
15756# The name of the directory that contains temporary libtool files.
15757objdir=$objdir
15758
15759# Used to examine libraries when file_magic_cmd begins with "file".
15760MAGIC_CMD=$MAGIC_CMD
15761
15762# Must we lock files when doing compilation?
15763need_locks=$lt_need_locks
15764
15765# Manifest tool.
15766MANIFEST_TOOL=$lt_MANIFEST_TOOL
15767
15768# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15769DSYMUTIL=$lt_DSYMUTIL
15770
15771# Tool to change global to local symbols on Mac OS X.
15772NMEDIT=$lt_NMEDIT
15773
15774# Tool to manipulate fat objects and archives on Mac OS X.
15775LIPO=$lt_LIPO
15776
15777# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15778OTOOL=$lt_OTOOL
15779
15780# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15781OTOOL64=$lt_OTOOL64
15782
15783# Old archive suffix (normally "a").
15784libext=$libext
15785
15786# Shared library suffix (normally ".so").
15787shrext_cmds=$lt_shrext_cmds
15788
15789# The commands to extract the exported symbol list from a shared archive.
15790extract_expsyms_cmds=$lt_extract_expsyms_cmds
15791
15792# Variables whose values should be saved in libtool wrapper scripts and
15793# restored at link time.
15794variables_saved_for_relink=$lt_variables_saved_for_relink
15795
15796# Do we need the "lib" prefix for modules?
15797need_lib_prefix=$need_lib_prefix
15798
15799# Do we need a version for libraries?
15800need_version=$need_version
15801
15802# Library versioning type.
15803version_type=$version_type
15804
15805# Shared library runtime path variable.
15806runpath_var=$runpath_var
15807
15808# Shared library path variable.
15809shlibpath_var=$shlibpath_var
15810
15811# Is shlibpath searched before the hard-coded library search path?
15812shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15813
15814# Format of library name prefix.
15815libname_spec=$lt_libname_spec
15816
15817# List of archive names.  First name is the real one, the rest are links.
15818# The last name is the one that the linker finds with -lNAME
15819library_names_spec=$lt_library_names_spec
15820
15821# The coded name of the library, if different from the real name.
15822soname_spec=$lt_soname_spec
15823
15824# Permission mode override for installation of shared libraries.
15825install_override_mode=$lt_install_override_mode
15826
15827# Command to use after installation of a shared archive.
15828postinstall_cmds=$lt_postinstall_cmds
15829
15830# Command to use after uninstallation of a shared archive.
15831postuninstall_cmds=$lt_postuninstall_cmds
15832
15833# Commands used to finish a libtool library installation in a directory.
15834finish_cmds=$lt_finish_cmds
15835
15836# As "finish_cmds", except a single script fragment to be evaled but
15837# not shown.
15838finish_eval=$lt_finish_eval
15839
15840# Whether we should hardcode library paths into libraries.
15841hardcode_into_libs=$hardcode_into_libs
15842
15843# Compile-time system search path for libraries.
15844sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15845
15846# Detected run-time system search path for libraries.
15847sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15848
15849# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15850configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15851
15852# Whether dlopen is supported.
15853dlopen_support=$enable_dlopen
15854
15855# Whether dlopen of programs is supported.
15856dlopen_self=$enable_dlopen_self
15857
15858# Whether dlopen of statically linked programs is supported.
15859dlopen_self_static=$enable_dlopen_self_static
15860
15861# Commands to strip libraries.
15862old_striplib=$lt_old_striplib
15863striplib=$lt_striplib
15864
15865
15866# The linker used to build libraries.
15867LD=$lt_LD
15868
15869# How to create reloadable object files.
15870reload_flag=$lt_reload_flag
15871reload_cmds=$lt_reload_cmds
15872
15873# Commands used to build an old-style archive.
15874old_archive_cmds=$lt_old_archive_cmds
15875
15876# A language specific compiler.
15877CC=$lt_compiler
15878
15879# Is the compiler the GNU compiler?
15880with_gcc=$GCC
15881
15882# Compiler flag to turn off builtin functions.
15883no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15884
15885# Additional compiler flags for building library objects.
15886pic_flag=$lt_lt_prog_compiler_pic
15887
15888# How to pass a linker flag through the compiler.
15889wl=$lt_lt_prog_compiler_wl
15890
15891# Compiler flag to prevent dynamic linking.
15892link_static_flag=$lt_lt_prog_compiler_static
15893
15894# Does compiler simultaneously support -c and -o options?
15895compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15896
15897# Whether or not to add -lc for building shared libraries.
15898build_libtool_need_lc=$archive_cmds_need_lc
15899
15900# Whether or not to disallow shared libs when runtime libs are static.
15901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15902
15903# Compiler flag to allow reflexive dlopens.
15904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15905
15906# Compiler flag to generate shared objects directly from archives.
15907whole_archive_flag_spec=$lt_whole_archive_flag_spec
15908
15909# Whether the compiler copes with passing no objects directly.
15910compiler_needs_object=$lt_compiler_needs_object
15911
15912# Create an old-style archive from a shared archive.
15913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15914
15915# Create a temporary old-style archive to link instead of a shared archive.
15916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15917
15918# Commands used to build a shared archive.
15919archive_cmds=$lt_archive_cmds
15920archive_expsym_cmds=$lt_archive_expsym_cmds
15921
15922# Commands used to build a loadable module if different from building
15923# a shared archive.
15924module_cmds=$lt_module_cmds
15925module_expsym_cmds=$lt_module_expsym_cmds
15926
15927# Whether we are building with GNU ld or not.
15928with_gnu_ld=$lt_with_gnu_ld
15929
15930# Flag that allows shared libraries with undefined symbols to be built.
15931allow_undefined_flag=$lt_allow_undefined_flag
15932
15933# Flag that enforces no undefined symbols.
15934no_undefined_flag=$lt_no_undefined_flag
15935
15936# Flag to hardcode \$libdir into a binary during linking.
15937# This must work even if \$libdir does not exist
15938hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15939
15940# Whether we need a single "-rpath" flag with a separated argument.
15941hardcode_libdir_separator=$lt_hardcode_libdir_separator
15942
15943# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15944# DIR into the resulting binary.
15945hardcode_direct=$hardcode_direct
15946
15947# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15948# DIR into the resulting binary and the resulting library dependency is
15949# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15950# library is relocated.
15951hardcode_direct_absolute=$hardcode_direct_absolute
15952
15953# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15954# into the resulting binary.
15955hardcode_minus_L=$hardcode_minus_L
15956
15957# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15958# into the resulting binary.
15959hardcode_shlibpath_var=$hardcode_shlibpath_var
15960
15961# Set to "yes" if building a shared library automatically hardcodes DIR
15962# into the library and all subsequent libraries and executables linked
15963# against it.
15964hardcode_automatic=$hardcode_automatic
15965
15966# Set to yes if linker adds runtime paths of dependent libraries
15967# to runtime path list.
15968inherit_rpath=$inherit_rpath
15969
15970# Whether libtool must link a program against all its dependency libraries.
15971link_all_deplibs=$link_all_deplibs
15972
15973# Set to "yes" if exported symbols are required.
15974always_export_symbols=$always_export_symbols
15975
15976# The commands to list exported symbols.
15977export_symbols_cmds=$lt_export_symbols_cmds
15978
15979# Symbols that should not be listed in the preloaded symbols.
15980exclude_expsyms=$lt_exclude_expsyms
15981
15982# Symbols that must always be exported.
15983include_expsyms=$lt_include_expsyms
15984
15985# Commands necessary for linking programs (against libraries) with templates.
15986prelink_cmds=$lt_prelink_cmds
15987
15988# Commands necessary for finishing linking programs.
15989postlink_cmds=$lt_postlink_cmds
15990
15991# Specify filename containing input files.
15992file_list_spec=$lt_file_list_spec
15993
15994# How to hardcode a shared library path into an executable.
15995hardcode_action=$hardcode_action
15996
15997# ### END LIBTOOL CONFIG
15998
15999_LT_EOF
16000
16001    cat <<'_LT_EOF' >> "$cfgfile"
16002
16003# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16004
16005# func_munge_path_list VARIABLE PATH
16006# -----------------------------------
16007# VARIABLE is name of variable containing _space_ separated list of
16008# directories to be munged by the contents of PATH, which is string
16009# having a format:
16010# "DIR[:DIR]:"
16011#       string "DIR[ DIR]" will be prepended to VARIABLE
16012# ":DIR[:DIR]"
16013#       string "DIR[ DIR]" will be appended to VARIABLE
16014# "DIRP[:DIRP]::[DIRA:]DIRA"
16015#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16016#       "DIRA[ DIRA]" will be appended to VARIABLE
16017# "DIR[:DIR]"
16018#       VARIABLE will be replaced by "DIR[ DIR]"
16019func_munge_path_list ()
16020{
16021    case x$2 in
16022    x)
16023        ;;
16024    *:)
16025        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16026        ;;
16027    x:*)
16028        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16029        ;;
16030    *::*)
16031        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16032        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16033        ;;
16034    *)
16035        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16036        ;;
16037    esac
16038}
16039
16040
16041# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16042func_cc_basename ()
16043{
16044    for cc_temp in $*""; do
16045      case $cc_temp in
16046        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16047        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16048        \-*) ;;
16049        *) break;;
16050      esac
16051    done
16052    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16053}
16054
16055
16056# ### END FUNCTIONS SHARED WITH CONFIGURE
16057
16058_LT_EOF
16059
16060  case $host_os in
16061  aix3*)
16062    cat <<\_LT_EOF >> "$cfgfile"
16063# AIX sometimes has problems with the GCC collect2 program.  For some
16064# reason, if we set the COLLECT_NAMES environment variable, the problems
16065# vanish in a puff of smoke.
16066if test set != "${COLLECT_NAMES+set}"; then
16067  COLLECT_NAMES=
16068  export COLLECT_NAMES
16069fi
16070_LT_EOF
16071    ;;
16072  esac
16073
16074
16075ltmain=$ac_aux_dir/ltmain.sh
16076
16077
16078  # We use sed instead of cat because bash on DJGPP gets confused if
16079  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16080  # text mode, it properly converts lines to CR/LF.  This bash problem
16081  # is reportedly fixed, but why not run on old versions too?
16082  sed '$q' "$ltmain" >> "$cfgfile" \
16083     || (rm -f "$cfgfile"; exit 1)
16084
16085   mv -f "$cfgfile" "$ofile" ||
16086    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16087  chmod +x "$ofile"
16088
16089 ;;
16090    "libpng-config":F) chmod +x libpng-config ;;
16091
16092  esac
16093done # for ac_tag
16094
16095
16096as_fn_exit 0
16097_ACEOF
16098ac_clean_files=$ac_clean_files_save
16099
16100test $ac_write_fail = 0 ||
16101  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16102
16103
16104# configure is writing to config.log, and then calls config.status.
16105# config.status does its own redirection, appending to config.log.
16106# Unfortunately, on DOS this fails, as config.log is still kept open
16107# by configure, so config.status won't be able to write to it; its
16108# output is simply discarded.  So we exec the FD to /dev/null,
16109# effectively closing config.log, so it can be properly (re)opened and
16110# appended to by config.status.  When coming back to configure, we
16111# need to make the FD available again.
16112if test "$no_create" != yes; then
16113  ac_cs_success=:
16114  ac_config_status_args=
16115  test "$silent" = yes &&
16116    ac_config_status_args="$ac_config_status_args --quiet"
16117  exec 5>/dev/null
16118  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16119  exec 5>>config.log
16120  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16121  # would make configure fail if this is the last instruction.
16122  $ac_cs_success || as_fn_exit 1
16123fi
16124if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16126$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16127fi
16128
16129