xref: /libtiff-4.0.7/configure (revision 87f02eac)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.6.
4#
5# Report bugs to <[email protected]>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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 [email protected] and
278$0: [email protected] about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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='LibTIFF Software'
592PACKAGE_TARNAME='tiff'
593PACKAGE_VERSION='4.0.6'
594PACKAGE_STRING='LibTIFF Software 4.0.6'
595PACKAGE_BUGREPORT='[email protected]'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBDIR
638WIN32_IO_FALSE
639WIN32_IO_TRUE
640HAVE_OPENGL_FALSE
641HAVE_OPENGL_TRUE
642GLUT_LIBS
643GLUT_CFLAGS
644GLU_LIBS
645GLU_CFLAGS
646GL_LIBS
647GL_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657HAVE_CXX_FALSE
658HAVE_CXX_TRUE
659HAVE_LZMA_FALSE
660HAVE_LZMA_TRUE
661HAVE_JBIG_FALSE
662HAVE_JBIG_TRUE
663HAVE_JPEG_FALSE
664HAVE_JPEG_TRUE
665LIBTIFF_DOCDIR
666HAVE_RPATH_FALSE
667HAVE_RPATH_TRUE
668LIBOBJS
669tiff_libs_private
670CXXCPP
671am__fastdepCXX_FALSE
672am__fastdepCXX_TRUE
673CXXDEPMODE
674ac_ct_CXX
675CXXFLAGS
676CXX
677CPP
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687NM
688ac_ct_DUMPBIN
689DUMPBIN
690LD
691FGREP
692EGREP
693GREP
694SED
695LIBTOOL
696OBJDUMP
697DLLTOOL
698AS
699HAVE_LD_VERSION_SCRIPT_FALSE
700HAVE_LD_VERSION_SCRIPT_TRUE
701CMAKE
702LN_S
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__quote
711am__include
712DEPDIR
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720LIBTIFF_RELEASE_DATE
721LIBTIFF_VERSION_INFO
722LIBTIFF_VERSION
723LIBTIFF_ALPHA_VERSION
724LIBTIFF_MICRO_VERSION
725LIBTIFF_MINOR_VERSION
726LIBTIFF_MAJOR_VERSION
727MAINT
728MAINTAINER_MODE_FALSE
729MAINTAINER_MODE_TRUE
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_silent_rules
807enable_maintainer_mode
808enable_dependency_tracking
809enable_ld_version_script
810enable_shared
811enable_static
812with_pic
813enable_fast_install
814with_aix_soname
815with_gnu_ld
816with_sysroot
817enable_libtool_lock
818enable_rpath
819enable_largefile
820with_docdir
821enable_ccitt
822enable_packbits
823enable_lzw
824enable_thunder
825enable_next
826enable_logluv
827enable_mdi
828enable_zlib
829with_zlib_include_dir
830with_zlib_lib_dir
831enable_pixarlog
832enable_jpeg
833with_jpeg_include_dir
834with_jpeg_lib_dir
835enable_old_jpeg
836enable_jbig
837with_jbig_include_dir
838with_jbig_lib_dir
839enable_lzma
840with_lzma_include_dir
841with_lzma_lib_dir
842enable_jpeg12
843with_jpeg12_include_dir
844with_jpeg12_lib
845enable_cxx
846with_x
847enable_win32_io
848enable_strip_chopping
849with_default_strip_size
850enable_defer_strile_load
851enable_chunky_strip_read
852enable_extrasample_as_alpha
853enable_check_ycbcr_subsampling
854'
855      ac_precious_vars='build_alias
856host_alias
857target_alias
858CC
859CFLAGS
860LDFLAGS
861LIBS
862CPPFLAGS
863CPP
864CXX
865CXXFLAGS
866CCC
867CXXCPP
868XMKMF'
869
870
871# Initialize some variables set by options.
872ac_init_help=
873ac_init_version=false
874ac_unrecognized_opts=
875ac_unrecognized_sep=
876# The variables have the same names as the options, with
877# dashes changed to underlines.
878cache_file=/dev/null
879exec_prefix=NONE
880no_create=
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
889verbose=
890x_includes=NONE
891x_libraries=NONE
892
893# Installation directory options.
894# These are left unexpanded so users can "make install exec_prefix=/foo"
895# and all the variables that are supposed to be based on exec_prefix
896# by default will actually change.
897# Use braces instead of parens because sh, perl, etc. also accept them.
898# (The list follows the same order as the GNU Coding Standards.)
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910infodir='${datarootdir}/info'
911htmldir='${docdir}'
912dvidir='${docdir}'
913pdfdir='${docdir}'
914psdir='${docdir}'
915libdir='${exec_prefix}/lib'
916localedir='${datarootdir}/locale'
917mandir='${datarootdir}/man'
918
919ac_prev=
920ac_dashdash=
921for ac_option
922do
923  # If the previous option needs an argument, assign it.
924  if test -n "$ac_prev"; then
925    eval $ac_prev=\$ac_option
926    ac_prev=
927    continue
928  fi
929
930  case $ac_option in
931  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932  *=)   ac_optarg= ;;
933  *)    ac_optarg=yes ;;
934  esac
935
936  # Accept the important Cygnus configure options, so we can diagnose typos.
937
938  case $ac_dashdash$ac_option in
939  --)
940    ac_dashdash=yes ;;
941
942  -bindir | --bindir | --bindi | --bind | --bin | --bi)
943    ac_prev=bindir ;;
944  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945    bindir=$ac_optarg ;;
946
947  -build | --build | --buil | --bui | --bu)
948    ac_prev=build_alias ;;
949  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950    build_alias=$ac_optarg ;;
951
952  -cache-file | --cache-file | --cache-fil | --cache-fi \
953  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954    ac_prev=cache_file ;;
955  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957    cache_file=$ac_optarg ;;
958
959  --config-cache | -C)
960    cache_file=config.cache ;;
961
962  -datadir | --datadir | --datadi | --datad)
963    ac_prev=datadir ;;
964  -datadir=* | --datadir=* | --datadi=* | --datad=*)
965    datadir=$ac_optarg ;;
966
967  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968  | --dataroo | --dataro | --datar)
969    ac_prev=datarootdir ;;
970  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972    datarootdir=$ac_optarg ;;
973
974  -disable-* | --disable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=no ;;
989
990  -docdir | --docdir | --docdi | --doc | --do)
991    ac_prev=docdir ;;
992  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993    docdir=$ac_optarg ;;
994
995  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996    ac_prev=dvidir ;;
997  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998    dvidir=$ac_optarg ;;
999
1000  -enable-* | --enable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: $ac_useropt"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018  | --exec | --exe | --ex)
1019    ac_prev=exec_prefix ;;
1020  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022  | --exec=* | --exe=* | --ex=*)
1023    exec_prefix=$ac_optarg ;;
1024
1025  -gas | --gas | --ga | --g)
1026    # Obsolete; use --with-gas.
1027    with_gas=yes ;;
1028
1029  -help | --help | --hel | --he | -h)
1030    ac_init_help=long ;;
1031  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032    ac_init_help=recursive ;;
1033  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034    ac_init_help=short ;;
1035
1036  -host | --host | --hos | --ho)
1037    ac_prev=host_alias ;;
1038  -host=* | --host=* | --hos=* | --ho=*)
1039    host_alias=$ac_optarg ;;
1040
1041  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042    ac_prev=htmldir ;;
1043  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044  | --ht=*)
1045    htmldir=$ac_optarg ;;
1046
1047  -includedir | --includedir | --includedi | --included | --include \
1048  | --includ | --inclu | --incl | --inc)
1049    ac_prev=includedir ;;
1050  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051  | --includ=* | --inclu=* | --incl=* | --inc=*)
1052    includedir=$ac_optarg ;;
1053
1054  -infodir | --infodir | --infodi | --infod | --info | --inf)
1055    ac_prev=infodir ;;
1056  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057    infodir=$ac_optarg ;;
1058
1059  -libdir | --libdir | --libdi | --libd)
1060    ac_prev=libdir ;;
1061  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062    libdir=$ac_optarg ;;
1063
1064  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065  | --libexe | --libex | --libe)
1066    ac_prev=libexecdir ;;
1067  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068  | --libexe=* | --libex=* | --libe=*)
1069    libexecdir=$ac_optarg ;;
1070
1071  -localedir | --localedir | --localedi | --localed | --locale)
1072    ac_prev=localedir ;;
1073  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074    localedir=$ac_optarg ;;
1075
1076  -localstatedir | --localstatedir | --localstatedi | --localstated \
1077  | --localstate | --localstat | --localsta | --localst | --locals)
1078    ac_prev=localstatedir ;;
1079  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081    localstatedir=$ac_optarg ;;
1082
1083  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084    ac_prev=mandir ;;
1085  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086    mandir=$ac_optarg ;;
1087
1088  -nfp | --nfp | --nf)
1089    # Obsolete; use --without-fp.
1090    with_fp=no ;;
1091
1092  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093  | --no-cr | --no-c | -n)
1094    no_create=yes ;;
1095
1096  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098    no_recursion=yes ;;
1099
1100  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102  | --oldin | --oldi | --old | --ol | --o)
1103    ac_prev=oldincludedir ;;
1104  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107    oldincludedir=$ac_optarg ;;
1108
1109  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110    ac_prev=prefix ;;
1111  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112    prefix=$ac_optarg ;;
1113
1114  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115  | --program-pre | --program-pr | --program-p)
1116    ac_prev=program_prefix ;;
1117  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119    program_prefix=$ac_optarg ;;
1120
1121  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122  | --program-suf | --program-su | --program-s)
1123    ac_prev=program_suffix ;;
1124  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126    program_suffix=$ac_optarg ;;
1127
1128  -program-transform-name | --program-transform-name \
1129  | --program-transform-nam | --program-transform-na \
1130  | --program-transform-n | --program-transform- \
1131  | --program-transform | --program-transfor \
1132  | --program-transfo | --program-transf \
1133  | --program-trans | --program-tran \
1134  | --progr-tra | --program-tr | --program-t)
1135    ac_prev=program_transform_name ;;
1136  -program-transform-name=* | --program-transform-name=* \
1137  | --program-transform-nam=* | --program-transform-na=* \
1138  | --program-transform-n=* | --program-transform-=* \
1139  | --program-transform=* | --program-transfor=* \
1140  | --program-transfo=* | --program-transf=* \
1141  | --program-trans=* | --program-tran=* \
1142  | --progr-tra=* | --program-tr=* | --program-t=*)
1143    program_transform_name=$ac_optarg ;;
1144
1145  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146    ac_prev=pdfdir ;;
1147  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148    pdfdir=$ac_optarg ;;
1149
1150  -psdir | --psdir | --psdi | --psd | --ps)
1151    ac_prev=psdir ;;
1152  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153    psdir=$ac_optarg ;;
1154
1155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156  | -silent | --silent | --silen | --sile | --sil)
1157    silent=yes ;;
1158
1159  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160    ac_prev=sbindir ;;
1161  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162  | --sbi=* | --sb=*)
1163    sbindir=$ac_optarg ;;
1164
1165  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167  | --sharedst | --shareds | --shared | --share | --shar \
1168  | --sha | --sh)
1169    ac_prev=sharedstatedir ;;
1170  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173  | --sha=* | --sh=*)
1174    sharedstatedir=$ac_optarg ;;
1175
1176  -site | --site | --sit)
1177    ac_prev=site ;;
1178  -site=* | --site=* | --sit=*)
1179    site=$ac_optarg ;;
1180
1181  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182    ac_prev=srcdir ;;
1183  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184    srcdir=$ac_optarg ;;
1185
1186  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187  | --syscon | --sysco | --sysc | --sys | --sy)
1188    ac_prev=sysconfdir ;;
1189  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191    sysconfdir=$ac_optarg ;;
1192
1193  -target | --target | --targe | --targ | --tar | --ta | --t)
1194    ac_prev=target_alias ;;
1195  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196    target_alias=$ac_optarg ;;
1197
1198  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199    verbose=yes ;;
1200
1201  -version | --version | --versio | --versi | --vers | -V)
1202    ac_init_version=: ;;
1203
1204  -with-* | --with-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: $ac_useropt"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224      as_fn_error $? "invalid package name: $ac_useropt"
1225    ac_useropt_orig=$ac_useropt
1226    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227    case $ac_user_opts in
1228      *"
1229"with_$ac_useropt"
1230"*) ;;
1231      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232	 ac_unrecognized_sep=', ';;
1233    esac
1234    eval with_$ac_useropt=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255Try \`$0 --help' for more information"
1256    ;;
1257
1258  *=*)
1259    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260    # Reject names that are not valid shell variable names.
1261    case $ac_envvar in #(
1262      '' | [0-9]* | *[!_$as_cr_alnum]* )
1263      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264    esac
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  as_fn_error $? "missing argument to $ac_option"
1282fi
1283
1284if test -n "$ac_unrecognized_opts"; then
1285  case $enable_option_checking in
1286    no) ;;
1287    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289  esac
1290fi
1291
1292# Check all directory arguments for consistency.
1293for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294		datadir sysconfdir sharedstatedir localstatedir includedir \
1295		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296		libdir localedir mandir
1297do
1298  eval ac_val=\$$ac_var
1299  # Remove trailing slashes.
1300  case $ac_val in
1301    */ )
1302      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303      eval $ac_var=\$ac_val;;
1304  esac
1305  # Be sure to have absolute directory names.
1306  case $ac_val in
1307    [\\/$]* | ?:[\\/]* )  continue;;
1308    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309  esac
1310  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322  if test "x$build_alias" = x; then
1323    cross_compiling=maybe
1324  elif test "x$build_alias" != "x$host_alias"; then
1325    cross_compiling=yes
1326  fi
1327fi
1328
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332test "$silent" = yes && exec 6>/dev/null
1333
1334
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338  as_fn_error $? "working directory cannot be determined"
1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340  as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$as_myself" ||
1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349	 X"$as_myself" : 'X\(//\)[^/]' \| \
1350	 X"$as_myself" : 'X\(//\)$' \| \
1351	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352$as_echo X"$as_myself" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)[^/].*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\).*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380fi
1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382ac_abs_confdir=`(
1383	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384	pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures LibTIFF Software 4.0.6 to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking ...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR            user executables [EPREFIX/bin]
1444  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR        program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471X features:
1472  --x-includes=DIR    X include files are in DIR
1473  --x-libraries=DIR   X library files are in DIR
1474
1475System types:
1476  --build=BUILD     configure for building on BUILD [guessed]
1477  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482  case $ac_init_help in
1483     short | recursive ) echo "Configuration of LibTIFF Software 4.0.6:";;
1484   esac
1485  cat <<\_ACEOF
1486
1487Optional Features:
1488  --disable-option-checking  ignore unrecognized --enable/--with options
1489  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491  --enable-silent-rules   less verbose build output (undo: "make V=1")
1492  --disable-silent-rules  verbose build output (undo: "make V=0")
1493  --enable-maintainer-mode
1494                          enable make rules and dependencies not useful (and
1495                          sometimes confusing) to the casual installer
1496  --enable-dependency-tracking
1497                          do not reject slow dependency extractors
1498  --disable-dependency-tracking
1499                          speeds up one-time build
1500  --enable-ld-version-script
1501                          enable linker version script (default is disabled)
1502  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503  --enable-static[=PKGS]  build static libraries [default=yes]
1504  --enable-fast-install[=PKGS]
1505                          optimize for fast installation [default=yes]
1506  --disable-libtool-lock  avoid locking (might break parallel builds)
1507  --enable-rpath          Enable runtime linker paths (-R libtool option)
1508  --disable-largefile     omit support for large files
1509  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1510  --disable-packbits      disable support for Macintosh PackBits algorithm
1511  --disable-lzw           disable support for LZW algorithm
1512  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1513  --disable-next          disable support for NeXT 2-bit RLE algorithm
1514  --disable-logluv        disable support for LogLuv high dynamic range
1515                          encoding
1516  --disable-mdi           disable support for Microsoft Document Imaging
1517  --disable-zlib          disable Zlib usage (required for Deflate
1518                          compression, enabled by default)
1519  --disable-pixarlog      disable support for Pixar log-format algorithm
1520                          (requires Zlib)
1521  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1522                          compression, enabled by default)
1523  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1524                          enabled by default)
1525  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1526                          compression, enabled by default)
1527  --disable-lzma          disable liblzma usage (required for LZMA2
1528                          compression, enabled by default)
1529  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1530  --enable-cxx            enable C++ stream API building (requires C++
1531                          compiler)
1532  --disable-win32-io      disable Win32 I/O (Windows only, enabled by default
1533                          except for Cygwin)
1534  --disable-strip-chopping
1535                          disable support for strip chopping (whether or not
1536                          to convert single-strip uncompressed images to
1537                          mutiple strips of specified size to reduce memory
1538                          usage)
1539  --enable-defer-strile-load
1540                          enable deferred strip/tile offset/size loading
1541                          (experimental)
1542  --enable-chunky-strip-read
1543                          enable reading large strips in chunks for
1544                          TIFFReadScanline() (experimental)
1545  --disable-extrasample-as-alpha
1546                          the RGBA interface will treat a fourth sample with
1547                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1548                          packages produce RGBA files but don't mark the alpha
1549                          properly
1550  --disable-check-ycbcr-subsampling
1551                          disable picking up YCbCr subsampling info from the
1552                          JPEG data stream to support files lacking the tag
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-aix-soname=aix|svr4|both
1560                          shared library versioning (aka "SONAME") variant to
1561                          provide on AIX, [default=aix].
1562  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1564                          compiler's sysroot if not specified).
1565  --with-docdir=DIR       directory where documentation should be installed
1566  --with-zlib-include-dir=DIR
1567                          location of Zlib headers
1568  --with-zlib-lib-dir=DIR location of Zlib library binary
1569  --with-jpeg-include-dir=DIR
1570                          location of IJG JPEG library headers
1571  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1572  --with-jbig-include-dir=DIR
1573                          location of JBIG-KIT headers
1574  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1575  --with-lzma-include-dir=DIR
1576                          location of liblzma headers
1577  --with-lzma-lib-dir=DIR location of liblzma library binary
1578  --with-jpeg12-include-dir=DIR
1579                          location of libjpeg 12bit headers
1580  --with-jpeg12-lib=LIBRARY
1581                          path to libjpeg 12bit library
1582  --with-x                use the X Window System
1583  --with-default-strip-size=SIZE
1584                          default size of the strip in bytes (when strip
1585                          chopping enabled) [[default=8192]]
1586
1587Some influential environment variables:
1588  CC          C compiler command
1589  CFLAGS      C compiler flags
1590  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591              nonstandard directory <lib dir>
1592  LIBS        libraries to pass to the linker, e.g. -l<library>
1593  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594              you have headers in a nonstandard directory <include dir>
1595  CPP         C preprocessor
1596  CXX         C++ compiler command
1597  CXXFLAGS    C++ compiler flags
1598  CXXCPP      C++ preprocessor
1599  XMKMF       Path to xmkmf, Makefile generator for X Window System
1600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <[email protected]>.
1605_ACEOF
1606ac_status=$?
1607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610  # If there are subdirs, report their specific --help.
1611  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612    test -d "$ac_dir" ||
1613      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614      continue
1615    ac_builddir=.
1616
1617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621  # A ".." for each directory in $ac_dir_suffix.
1622  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623  case $ac_top_builddir_sub in
1624  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626  esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
1632
1633case $srcdir in
1634  .)  # We are building in place.
1635    ac_srcdir=.
1636    ac_top_srcdir=$ac_top_builddir_sub
1637    ac_abs_top_srcdir=$ac_pwd ;;
1638  [\\/]* | ?:[\\/]* )  # Absolute name.
1639    ac_srcdir=$srcdir$ac_dir_suffix;
1640    ac_top_srcdir=$srcdir
1641    ac_abs_top_srcdir=$srcdir ;;
1642  *) # Relative name.
1643    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644    ac_top_srcdir=$ac_top_build_prefix$srcdir
1645    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646esac
1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649    cd "$ac_dir" || { ac_status=$?; continue; }
1650    # Check for guested configure.
1651    if test -f "$ac_srcdir/configure.gnu"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654    elif test -f "$ac_srcdir/configure"; then
1655      echo &&
1656      $SHELL "$ac_srcdir/configure" --help=recursive
1657    else
1658      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659    fi || ac_status=$?
1660    cd "$ac_pwd" || { ac_status=$?; break; }
1661  done
1662fi
1663
1664test -n "$ac_init_help" && exit $ac_status
1665if $ac_init_version; then
1666  cat <<\_ACEOF
1667LibTIFF Software configure 4.0.6
1668generated by GNU Autoconf 2.69
1669
1670Copyright (C) 2012 Free Software Foundation, Inc.
1671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
1673_ACEOF
1674  exit
1675fi
1676
1677## ------------------------ ##
1678## Autoconf initialization. ##
1679## ------------------------ ##
1680
1681# ac_fn_c_try_compile LINENO
1682# --------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_compile ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  rm -f conftest.$ac_objext
1688  if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_compile") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && {
1704	 test -z "$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       } && test -s conftest.$ac_objext; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_compile
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  rm -f conftest.$ac_objext conftest$ac_exeext
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && {
1742	 test -z "$ac_c_werror_flag" ||
1743	 test ! -s conftest.err
1744       } && test -s conftest$ac_exeext && {
1745	 test "$cross_compiling" = yes ||
1746	 test -x conftest$ac_exeext
1747       }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753	ac_retval=1
1754fi
1755  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757  # interfere with the next link command; also delete a directory that is
1758  # left behind by Apple's compiler.  We do this before executing the actions.
1759  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_link
1764
1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists and can be compiled using the include files in
1768# INCLUDES, setting the cache variable VAR accordingly.
1769ac_fn_c_check_header_compile ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775  $as_echo_n "(cached) " >&6
1776else
1777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h.  */
1779$4
1780#include <$2>
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783  eval "$3=yes"
1784else
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_header_compile
1795
1796# ac_fn_c_try_cpp LINENO
1797# ----------------------
1798# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_c_try_cpp ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if { { ac_try="$ac_cpp conftest.$ac_ext"
1803case "(($ac_try" in
1804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805  *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1810  ac_status=$?
1811  if test -s conftest.err; then
1812    grep -v '^ *+' conftest.err >conftest.er1
1813    cat conftest.er1 >&5
1814    mv -f conftest.er1 conftest.err
1815  fi
1816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; } > conftest.i && {
1818	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1819	 test ! -s conftest.err
1820       }; then :
1821  ac_retval=0
1822else
1823  $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826    ac_retval=1
1827fi
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_cpp
1832
1833# ac_fn_c_try_run LINENO
1834# ----------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836# that executables *can* be run.
1837ac_fn_c_try_run ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_link") 2>&5
1848  ac_status=$?
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851  { { case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_try") 2>&5
1858  ac_status=$?
1859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; }; }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: program exited with status $ac_status" >&5
1864       $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867       ac_retval=$ac_status
1868fi
1869  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871  as_fn_set_status $ac_retval
1872
1873} # ac_fn_c_try_run
1874
1875# ac_fn_c_check_func LINENO FUNC VAR
1876# ----------------------------------
1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1878ac_fn_c_check_func ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if eval \${$3+:} false; then :
1884  $as_echo_n "(cached) " >&6
1885else
1886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890#define $2 innocuous_$2
1891
1892/* System header to define __stub macros and hopefully few prototypes,
1893    which can conflict with char $2 (); below.
1894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895    <limits.h> exists even on freestanding compilers.  */
1896
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
1902
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906   Use char because int might match the return type of a GCC
1907   builtin and then its argument prototype would still apply.  */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913    to always fail with ENOSYS.  Some functions are actually named
1914    something starting with __ and the normal name is an alias.  */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
1921{
1922return $2 ();
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928  eval "$3=yes"
1929else
1930  eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933    conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_func
1941
1942# ac_fn_cxx_try_compile LINENO
1943# ----------------------------
1944# Try to compile conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_cxx_try_compile ()
1946{
1947  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948  rm -f conftest.$ac_objext
1949  if { { ac_try="$ac_compile"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_compile") 2>conftest.err
1957  ac_status=$?
1958  if test -s conftest.err; then
1959    grep -v '^ *+' conftest.err >conftest.er1
1960    cat conftest.er1 >&5
1961    mv -f conftest.er1 conftest.err
1962  fi
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && {
1965	 test -z "$ac_cxx_werror_flag" ||
1966	 test ! -s conftest.err
1967       } && test -s conftest.$ac_objext; then :
1968  ac_retval=0
1969else
1970  $as_echo "$as_me: failed program was:" >&5
1971sed 's/^/| /' conftest.$ac_ext >&5
1972
1973	ac_retval=1
1974fi
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976  as_fn_set_status $ac_retval
1977
1978} # ac_fn_cxx_try_compile
1979
1980# ac_fn_cxx_try_cpp LINENO
1981# ------------------------
1982# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_cxx_try_cpp ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if { { ac_try="$ac_cpp conftest.$ac_ext"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994  ac_status=$?
1995  if test -s conftest.err; then
1996    grep -v '^ *+' conftest.err >conftest.er1
1997    cat conftest.er1 >&5
1998    mv -f conftest.er1 conftest.err
1999  fi
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; } > conftest.i && {
2002	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003	 test ! -s conftest.err
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010    ac_retval=1
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_cpp
2016
2017# ac_fn_cxx_try_link LINENO
2018# -------------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_link ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  rm -f conftest.$ac_objext conftest$ac_exeext
2024  if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027  *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031  (eval "$ac_link") 2>conftest.err
2032  ac_status=$?
2033  if test -s conftest.err; then
2034    grep -v '^ *+' conftest.err >conftest.er1
2035    cat conftest.er1 >&5
2036    mv -f conftest.er1 conftest.err
2037  fi
2038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039  test $ac_status = 0; } && {
2040	 test -z "$ac_cxx_werror_flag" ||
2041	 test ! -s conftest.err
2042       } && test -s conftest$ac_exeext && {
2043	 test "$cross_compiling" = yes ||
2044	 test -x conftest$ac_exeext
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051	ac_retval=1
2052fi
2053  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055  # interfere with the next link command; also delete a directory that is
2056  # left behind by Apple's compiler.  We do this before executing the actions.
2057  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059  as_fn_set_status $ac_retval
2060
2061} # ac_fn_cxx_try_link
2062
2063# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064# -------------------------------------------------------
2065# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066# the include files in INCLUDES and setting the cache variable VAR
2067# accordingly.
2068ac_fn_c_check_header_mongrel ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  if eval \${$3+:} false; then :
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073$as_echo_n "checking for $2... " >&6; }
2074if eval \${$3+:} false; then :
2075  $as_echo_n "(cached) " >&6
2076fi
2077eval ac_res=\$$3
2078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080else
2081  # Is the header compilable?
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083$as_echo_n "checking $2 usability... " >&6; }
2084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$4
2087#include <$2>
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090  ac_header_compiler=yes
2091else
2092  ac_header_compiler=no
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096$as_echo "$ac_header_compiler" >&6; }
2097
2098# Is the header present?
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100$as_echo_n "checking $2 presence... " >&6; }
2101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h.  */
2103#include <$2>
2104_ACEOF
2105if ac_fn_c_try_cpp "$LINENO"; then :
2106  ac_header_preproc=yes
2107else
2108  ac_header_preproc=no
2109fi
2110rm -f conftest.err conftest.i conftest.$ac_ext
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112$as_echo "$ac_header_preproc" >&6; }
2113
2114# So?  What about this header?
2115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116  yes:no: )
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121    ;;
2122  no:yes:* )
2123    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2126$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2127    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2130$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133( $as_echo "## -------------------------------------- ##
2134## Report this to [email protected] ##
2135## -------------------------------------- ##"
2136     ) | sed "s/^/$as_me: WARNING:     /" >&2
2137    ;;
2138esac
2139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140$as_echo_n "checking for $2... " >&6; }
2141if eval \${$3+:} false; then :
2142  $as_echo_n "(cached) " >&6
2143else
2144  eval "$3=\$ac_header_compiler"
2145fi
2146eval ac_res=\$$3
2147	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149fi
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_header_mongrel
2153
2154# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155# -------------------------------------------
2156# Tests whether TYPE exists after having included INCLUDES, setting cache
2157# variable VAR accordingly.
2158ac_fn_c_check_type ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  eval "$3=no"
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170int
2171main ()
2172{
2173if (sizeof ($2))
2174	 return 0;
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186if (sizeof (($2)))
2187	    return 0;
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193
2194else
2195  eval "$3=yes"
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_check_type
2207
2208# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2209# ---------------------------------------------
2210# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2211# accordingly.
2212ac_fn_c_check_decl ()
2213{
2214  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215  as_decl_name=`echo $2|sed 's/ *(.*//'`
2216  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2218$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2219if eval \${$3+:} false; then :
2220  $as_echo_n "(cached) " >&6
2221else
2222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h.  */
2224$4
2225int
2226main ()
2227{
2228#ifndef $as_decl_name
2229#ifdef __cplusplus
2230  (void) $as_decl_use;
2231#else
2232  (void) $as_decl_name;
2233#endif
2234#endif
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  eval "$3=yes"
2242else
2243  eval "$3=no"
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246fi
2247eval ac_res=\$$3
2248	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249$as_echo "$ac_res" >&6; }
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252} # ac_fn_c_check_decl
2253
2254# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2255# --------------------------------------------
2256# Tries to find the compile-time value of EXPR in a program that includes
2257# INCLUDES, setting VAR accordingly. Returns whether the value could be
2258# computed
2259ac_fn_c_compute_int ()
2260{
2261  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262  if test "$cross_compiling" = yes; then
2263    # Depending upon the size, compute the lo and hi bounds.
2264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h.  */
2266$4
2267int
2268main ()
2269{
2270static int test_array [1 - 2 * !(($2) >= 0)];
2271test_array [0] = 0;
2272return test_array [0];
2273
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279  ac_lo=0 ac_mid=0
2280  while :; do
2281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h.  */
2283$4
2284int
2285main ()
2286{
2287static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288test_array [0] = 0;
2289return test_array [0];
2290
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_compile "$LINENO"; then :
2296  ac_hi=$ac_mid; break
2297else
2298  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2299			if test $ac_lo -le $ac_mid; then
2300			  ac_lo= ac_hi=
2301			  break
2302			fi
2303			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304fi
2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306  done
2307else
2308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309/* end confdefs.h.  */
2310$4
2311int
2312main ()
2313{
2314static int test_array [1 - 2 * !(($2) < 0)];
2315test_array [0] = 0;
2316return test_array [0];
2317
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323  ac_hi=-1 ac_mid=-1
2324  while :; do
2325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h.  */
2327$4
2328int
2329main ()
2330{
2331static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2332test_array [0] = 0;
2333return test_array [0];
2334
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339if ac_fn_c_try_compile "$LINENO"; then :
2340  ac_lo=$ac_mid; break
2341else
2342  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2343			if test $ac_mid -le $ac_hi; then
2344			  ac_lo= ac_hi=
2345			  break
2346			fi
2347			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2348fi
2349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350  done
2351else
2352  ac_lo= ac_hi=
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357# Binary search between lo and hi bounds.
2358while test "x$ac_lo" != "x$ac_hi"; do
2359  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h.  */
2362$4
2363int
2364main ()
2365{
2366static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2367test_array [0] = 0;
2368return test_array [0];
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374if ac_fn_c_try_compile "$LINENO"; then :
2375  ac_hi=$ac_mid
2376else
2377  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2378fi
2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380done
2381case $ac_lo in #((
2382?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2383'') ac_retval=1 ;;
2384esac
2385  else
2386    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387/* end confdefs.h.  */
2388$4
2389static long int longval () { return $2; }
2390static unsigned long int ulongval () { return $2; }
2391#include <stdio.h>
2392#include <stdlib.h>
2393int
2394main ()
2395{
2396
2397  FILE *f = fopen ("conftest.val", "w");
2398  if (! f)
2399    return 1;
2400  if (($2) < 0)
2401    {
2402      long int i = longval ();
2403      if (i != ($2))
2404	return 1;
2405      fprintf (f, "%ld", i);
2406    }
2407  else
2408    {
2409      unsigned long int i = ulongval ();
2410      if (i != ($2))
2411	return 1;
2412      fprintf (f, "%lu", i);
2413    }
2414  /* Do not output a trailing newline, as this causes \r\n confusion
2415     on some platforms.  */
2416  return ferror (f) || fclose (f) != 0;
2417
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422if ac_fn_c_try_run "$LINENO"; then :
2423  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2424else
2425  ac_retval=1
2426fi
2427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2428  conftest.$ac_objext conftest.beam conftest.$ac_ext
2429rm -f conftest.val
2430
2431  fi
2432  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433  as_fn_set_status $ac_retval
2434
2435} # ac_fn_c_compute_int
2436cat >config.log <<_ACEOF
2437This file contains any messages produced by compilers while
2438running configure, to aid debugging if configure makes a mistake.
2439
2440It was created by LibTIFF Software $as_me 4.0.6, which was
2441generated by GNU Autoconf 2.69.  Invocation command line was
2442
2443  $ $0 $@
2444
2445_ACEOF
2446exec 5>>config.log
2447{
2448cat <<_ASUNAME
2449## --------- ##
2450## Platform. ##
2451## --------- ##
2452
2453hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2454uname -m = `(uname -m) 2>/dev/null || echo unknown`
2455uname -r = `(uname -r) 2>/dev/null || echo unknown`
2456uname -s = `(uname -s) 2>/dev/null || echo unknown`
2457uname -v = `(uname -v) 2>/dev/null || echo unknown`
2458
2459/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2460/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2461
2462/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2463/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2464/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2465/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2466/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2467/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2468/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2469
2470_ASUNAME
2471
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    $as_echo "PATH: $as_dir"
2478  done
2479IFS=$as_save_IFS
2480
2481} >&5
2482
2483cat >&5 <<_ACEOF
2484
2485
2486## ----------- ##
2487## Core tests. ##
2488## ----------- ##
2489
2490_ACEOF
2491
2492
2493# Keep a trace of the command line.
2494# Strip out --no-create and --no-recursion so they do not pile up.
2495# Strip out --silent because we don't want to record it for future runs.
2496# Also quote any args containing shell meta-characters.
2497# Make two passes to allow for proper duplicate-argument suppression.
2498ac_configure_args=
2499ac_configure_args0=
2500ac_configure_args1=
2501ac_must_keep_next=false
2502for ac_pass in 1 2
2503do
2504  for ac_arg
2505  do
2506    case $ac_arg in
2507    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2508    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2509    | -silent | --silent | --silen | --sile | --sil)
2510      continue ;;
2511    *\'*)
2512      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2513    esac
2514    case $ac_pass in
2515    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2516    2)
2517      as_fn_append ac_configure_args1 " '$ac_arg'"
2518      if test $ac_must_keep_next = true; then
2519	ac_must_keep_next=false # Got value, back to normal.
2520      else
2521	case $ac_arg in
2522	  *=* | --config-cache | -C | -disable-* | --disable-* \
2523	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2524	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2525	  | -with-* | --with-* | -without-* | --without-* | --x)
2526	    case "$ac_configure_args0 " in
2527	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2528	    esac
2529	    ;;
2530	  -* ) ac_must_keep_next=true ;;
2531	esac
2532      fi
2533      as_fn_append ac_configure_args " '$ac_arg'"
2534      ;;
2535    esac
2536  done
2537done
2538{ ac_configure_args0=; unset ac_configure_args0;}
2539{ ac_configure_args1=; unset ac_configure_args1;}
2540
2541# When interrupted or exit'd, cleanup temporary files, and complete
2542# config.log.  We remove comments because anyway the quotes in there
2543# would cause problems or look ugly.
2544# WARNING: Use '\'' to represent an apostrophe within the trap.
2545# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2546trap 'exit_status=$?
2547  # Save into config.log some information that might help in debugging.
2548  {
2549    echo
2550
2551    $as_echo "## ---------------- ##
2552## Cache variables. ##
2553## ---------------- ##"
2554    echo
2555    # The following way of writing the cache mishandles newlines in values,
2556(
2557  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558    eval ac_val=\$$ac_var
2559    case $ac_val in #(
2560    *${as_nl}*)
2561      case $ac_var in #(
2562      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2564      esac
2565      case $ac_var in #(
2566      _ | IFS | as_nl) ;; #(
2567      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568      *) { eval $ac_var=; unset $ac_var;} ;;
2569      esac ;;
2570    esac
2571  done
2572  (set) 2>&1 |
2573    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574    *${as_nl}ac_space=\ *)
2575      sed -n \
2576	"s/'\''/'\''\\\\'\'''\''/g;
2577	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2578      ;; #(
2579    *)
2580      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581      ;;
2582    esac |
2583    sort
2584)
2585    echo
2586
2587    $as_echo "## ----------------- ##
2588## Output variables. ##
2589## ----------------- ##"
2590    echo
2591    for ac_var in $ac_subst_vars
2592    do
2593      eval ac_val=\$$ac_var
2594      case $ac_val in
2595      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596      esac
2597      $as_echo "$ac_var='\''$ac_val'\''"
2598    done | sort
2599    echo
2600
2601    if test -n "$ac_subst_files"; then
2602      $as_echo "## ------------------- ##
2603## File substitutions. ##
2604## ------------------- ##"
2605      echo
2606      for ac_var in $ac_subst_files
2607      do
2608	eval ac_val=\$$ac_var
2609	case $ac_val in
2610	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611	esac
2612	$as_echo "$ac_var='\''$ac_val'\''"
2613      done | sort
2614      echo
2615    fi
2616
2617    if test -s confdefs.h; then
2618      $as_echo "## ----------- ##
2619## confdefs.h. ##
2620## ----------- ##"
2621      echo
2622      cat confdefs.h
2623      echo
2624    fi
2625    test "$ac_signal" != 0 &&
2626      $as_echo "$as_me: caught signal $ac_signal"
2627    $as_echo "$as_me: exit $exit_status"
2628  } >&5
2629  rm -f core *.core core.conftest.* &&
2630    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2631    exit $exit_status
2632' 0
2633for ac_signal in 1 2 13 15; do
2634  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635done
2636ac_signal=0
2637
2638# confdefs.h avoids OS command line length limits that DEFS can exceed.
2639rm -f -r conftest* confdefs.h
2640
2641$as_echo "/* confdefs.h */" > confdefs.h
2642
2643# Predefined preprocessor variables.
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE_NAME "$PACKAGE_NAME"
2647_ACEOF
2648
2649cat >>confdefs.h <<_ACEOF
2650#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2651_ACEOF
2652
2653cat >>confdefs.h <<_ACEOF
2654#define PACKAGE_VERSION "$PACKAGE_VERSION"
2655_ACEOF
2656
2657cat >>confdefs.h <<_ACEOF
2658#define PACKAGE_STRING "$PACKAGE_STRING"
2659_ACEOF
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2663_ACEOF
2664
2665cat >>confdefs.h <<_ACEOF
2666#define PACKAGE_URL "$PACKAGE_URL"
2667_ACEOF
2668
2669
2670# Let the site file select an alternate cache file if it wants to.
2671# Prefer an explicitly selected file to automatically selected ones.
2672ac_site_file1=NONE
2673ac_site_file2=NONE
2674if test -n "$CONFIG_SITE"; then
2675  # We do not want a PATH search for config.site.
2676  case $CONFIG_SITE in #((
2677    -*)  ac_site_file1=./$CONFIG_SITE;;
2678    */*) ac_site_file1=$CONFIG_SITE;;
2679    *)   ac_site_file1=./$CONFIG_SITE;;
2680  esac
2681elif test "x$prefix" != xNONE; then
2682  ac_site_file1=$prefix/share/config.site
2683  ac_site_file2=$prefix/etc/config.site
2684else
2685  ac_site_file1=$ac_default_prefix/share/config.site
2686  ac_site_file2=$ac_default_prefix/etc/config.site
2687fi
2688for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2689do
2690  test "x$ac_site_file" = xNONE && continue
2691  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2692    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2693$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2694    sed 's/^/| /' "$ac_site_file" >&5
2695    . "$ac_site_file" \
2696      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698as_fn_error $? "failed to load site script $ac_site_file
2699See \`config.log' for more details" "$LINENO" 5; }
2700  fi
2701done
2702
2703if test -r "$cache_file"; then
2704  # Some versions of bash will fail to source /dev/null (special files
2705  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2706  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2707    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2708$as_echo "$as_me: loading cache $cache_file" >&6;}
2709    case $cache_file in
2710      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2711      *)                      . "./$cache_file";;
2712    esac
2713  fi
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2716$as_echo "$as_me: creating cache $cache_file" >&6;}
2717  >$cache_file
2718fi
2719
2720# Check that the precious variables saved in the cache have kept the same
2721# value.
2722ac_cache_corrupted=false
2723for ac_var in $ac_precious_vars; do
2724  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2725  eval ac_new_set=\$ac_env_${ac_var}_set
2726  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2727  eval ac_new_val=\$ac_env_${ac_var}_value
2728  case $ac_old_set,$ac_new_set in
2729    set,)
2730      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2731$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2732      ac_cache_corrupted=: ;;
2733    ,set)
2734      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2735$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2736      ac_cache_corrupted=: ;;
2737    ,);;
2738    *)
2739      if test "x$ac_old_val" != "x$ac_new_val"; then
2740	# differences in whitespace do not lead to failure.
2741	ac_old_val_w=`echo x $ac_old_val`
2742	ac_new_val_w=`echo x $ac_new_val`
2743	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2744	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2745$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2746	  ac_cache_corrupted=:
2747	else
2748	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2749$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2750	  eval $ac_var=\$ac_old_val
2751	fi
2752	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2753$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2754	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2755$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2756      fi;;
2757  esac
2758  # Pass precious variables to config.status.
2759  if test "$ac_new_set" = set; then
2760    case $ac_new_val in
2761    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2762    *) ac_arg=$ac_var=$ac_new_val ;;
2763    esac
2764    case " $ac_configure_args " in
2765      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2766      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767    esac
2768  fi
2769done
2770if $ac_cache_corrupted; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2774$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2775  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2776fi
2777## -------------------- ##
2778## Main body of script. ##
2779## -------------------- ##
2780
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787
2788ac_aux_dir=
2789for ac_dir in config "$srcdir"/config; do
2790  if test -f "$ac_dir/install-sh"; then
2791    ac_aux_dir=$ac_dir
2792    ac_install_sh="$ac_aux_dir/install-sh -c"
2793    break
2794  elif test -f "$ac_dir/install.sh"; then
2795    ac_aux_dir=$ac_dir
2796    ac_install_sh="$ac_aux_dir/install.sh -c"
2797    break
2798  elif test -f "$ac_dir/shtool"; then
2799    ac_aux_dir=$ac_dir
2800    ac_install_sh="$ac_aux_dir/shtool install -c"
2801    break
2802  fi
2803done
2804if test -z "$ac_aux_dir"; then
2805  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2806fi
2807
2808# These three variables are undocumented and unsupported,
2809# and are intended to be withdrawn in a future Autoconf release.
2810# They can cause serious problems if a builder's source tree is in a directory
2811# whose full name contains unusual characters.
2812ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2813ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2814ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2815
2816
2817
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824
2825# Make sure we can run config.sub.
2826$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2827  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2830$as_echo_n "checking build system type... " >&6; }
2831if ${ac_cv_build+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  ac_build_alias=$build_alias
2835test "x$ac_build_alias" = x &&
2836  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2837test "x$ac_build_alias" = x &&
2838  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2839ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2840  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2841
2842fi
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2844$as_echo "$ac_cv_build" >&6; }
2845case $ac_cv_build in
2846*-*-*) ;;
2847*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2848esac
2849build=$ac_cv_build
2850ac_save_IFS=$IFS; IFS='-'
2851set x $ac_cv_build
2852shift
2853build_cpu=$1
2854build_vendor=$2
2855shift; shift
2856# Remember, the first character of IFS is used to create $*,
2857# except with old shells:
2858build_os=$*
2859IFS=$ac_save_IFS
2860case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2861
2862
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2864$as_echo_n "checking host system type... " >&6; }
2865if ${ac_cv_host+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  if test "x$host_alias" = x; then
2869  ac_cv_host=$ac_cv_build
2870else
2871  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2872    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2873fi
2874
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2877$as_echo "$ac_cv_host" >&6; }
2878case $ac_cv_host in
2879*-*-*) ;;
2880*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2881esac
2882host=$ac_cv_host
2883ac_save_IFS=$IFS; IFS='-'
2884set x $ac_cv_host
2885shift
2886host_cpu=$1
2887host_vendor=$2
2888shift; shift
2889# Remember, the first character of IFS is used to create $*,
2890# except with old shells:
2891host_os=$*
2892IFS=$ac_save_IFS
2893case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2894
2895
2896
2897am__api_version='1.14'
2898
2899# Find a good install program.  We prefer a C program (faster),
2900# so one script is as good as another.  But avoid the broken or
2901# incompatible versions:
2902# SysV /etc/install, /usr/sbin/install
2903# SunOS /usr/etc/install
2904# IRIX /sbin/install
2905# AIX /bin/install
2906# AmigaOS /C/install, which installs bootblocks on floppy discs
2907# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2908# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2909# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2910# OS/2's system install, which has a completely different semantic
2911# ./install, which can be erroneously created by make from ./install.sh.
2912# Reject install programs that cannot install multiple files.
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2914$as_echo_n "checking for a BSD-compatible install... " >&6; }
2915if test -z "$INSTALL"; then
2916if ${ac_cv_path_install+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    # Account for people who put trailing slashes in PATH elements.
2925case $as_dir/ in #((
2926  ./ | .// | /[cC]/* | \
2927  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2928  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2929  /usr/ucb/* ) ;;
2930  *)
2931    # OSF1 and SCO ODT 3.0 have their own names for install.
2932    # Don't use installbsd from OSF since it installs stuff as root
2933    # by default.
2934    for ac_prog in ginstall scoinst install; do
2935      for ac_exec_ext in '' $ac_executable_extensions; do
2936	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2937	  if test $ac_prog = install &&
2938	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2939	    # AIX install.  It has an incompatible calling convention.
2940	    :
2941	  elif test $ac_prog = install &&
2942	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943	    # program-specific install script used by HP pwplus--don't use.
2944	    :
2945	  else
2946	    rm -rf conftest.one conftest.two conftest.dir
2947	    echo one > conftest.one
2948	    echo two > conftest.two
2949	    mkdir conftest.dir
2950	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2951	      test -s conftest.one && test -s conftest.two &&
2952	      test -s conftest.dir/conftest.one &&
2953	      test -s conftest.dir/conftest.two
2954	    then
2955	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2956	      break 3
2957	    fi
2958	  fi
2959	fi
2960      done
2961    done
2962    ;;
2963esac
2964
2965  done
2966IFS=$as_save_IFS
2967
2968rm -rf conftest.one conftest.two conftest.dir
2969
2970fi
2971  if test "${ac_cv_path_install+set}" = set; then
2972    INSTALL=$ac_cv_path_install
2973  else
2974    # As a last resort, use the slow shell script.  Don't cache a
2975    # value for INSTALL within a source directory, because that will
2976    # break other packages using the cache if that directory is
2977    # removed, or if the value is a relative name.
2978    INSTALL=$ac_install_sh
2979  fi
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2982$as_echo "$INSTALL" >&6; }
2983
2984# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2985# It thinks the first close brace ends the variable substitution.
2986test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2987
2988test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2989
2990test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2993$as_echo_n "checking whether build environment is sane... " >&6; }
2994# Reject unsafe characters in $srcdir or the absolute working directory
2995# name.  Accept space and tab only in the latter.
2996am_lf='
2997'
2998case `pwd` in
2999  *[\\\"\#\$\&\'\`$am_lf]*)
3000    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3001esac
3002case $srcdir in
3003  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3004    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3005esac
3006
3007# Do 'set' in a subshell so we don't clobber the current shell's
3008# arguments.  Must try -L first in case configure is actually a
3009# symlink; some systems play weird games with the mod time of symlinks
3010# (eg FreeBSD returns the mod time of the symlink's containing
3011# directory).
3012if (
3013   am_has_slept=no
3014   for am_try in 1 2; do
3015     echo "timestamp, slept: $am_has_slept" > conftest.file
3016     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3017     if test "$*" = "X"; then
3018	# -L didn't work.
3019	set X `ls -t "$srcdir/configure" conftest.file`
3020     fi
3021     if test "$*" != "X $srcdir/configure conftest.file" \
3022	&& test "$*" != "X conftest.file $srcdir/configure"; then
3023
3024	# If neither matched, then we have a broken ls.  This can happen
3025	# if, for instance, CONFIG_SHELL is bash and it inherits a
3026	# broken ls alias from the environment.  This has actually
3027	# happened.  Such a system could not be considered "sane".
3028	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3029  alias in your environment" "$LINENO" 5
3030     fi
3031     if test "$2" = conftest.file || test $am_try -eq 2; then
3032       break
3033     fi
3034     # Just in case.
3035     sleep 1
3036     am_has_slept=yes
3037   done
3038   test "$2" = conftest.file
3039   )
3040then
3041   # Ok.
3042   :
3043else
3044   as_fn_error $? "newly created file is older than distributed files!
3045Check your system clock" "$LINENO" 5
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048$as_echo "yes" >&6; }
3049# If we didn't sleep, we still need to ensure time stamps of config.status and
3050# generated files are strictly newer.
3051am_sleep_pid=
3052if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3053  ( sleep 1 ) &
3054  am_sleep_pid=$!
3055fi
3056
3057rm -f conftest.file
3058
3059test "$program_prefix" != NONE &&
3060  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3061# Use a double $ so make ignores it.
3062test "$program_suffix" != NONE &&
3063  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3064# Double any \ or $.
3065# By default was `s,x,x', remove it if useless.
3066ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3067program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3068
3069# expand $ac_aux_dir to an absolute path
3070am_aux_dir=`cd $ac_aux_dir && pwd`
3071
3072if test x"${MISSING+set}" != xset; then
3073  case $am_aux_dir in
3074  *\ * | *\	*)
3075    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3076  *)
3077    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3078  esac
3079fi
3080# Use eval to expand $SHELL
3081if eval "$MISSING --is-lightweight"; then
3082  am_missing_run="$MISSING "
3083else
3084  am_missing_run=
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3086$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3087fi
3088
3089if test x"${install_sh}" != xset; then
3090  case $am_aux_dir in
3091  *\ * | *\	*)
3092    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3093  *)
3094    install_sh="\${SHELL} $am_aux_dir/install-sh"
3095  esac
3096fi
3097
3098# Installed binaries are usually stripped using 'strip' when the user
3099# run "make install-strip".  However 'strip' might not be the right
3100# tool to use in cross-compilation environments, therefore Automake
3101# will honor the 'STRIP' environment variable to overrule this program.
3102if test "$cross_compiling" != no; then
3103  if test -n "$ac_tool_prefix"; then
3104  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3105set dummy ${ac_tool_prefix}strip; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if ${ac_cv_prog_STRIP+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$STRIP"; then
3112  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126  done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
3131STRIP=$ac_cv_prog_STRIP
3132if test -n "$STRIP"; then
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3134$as_echo "$STRIP" >&6; }
3135else
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
3138fi
3139
3140
3141fi
3142if test -z "$ac_cv_prog_STRIP"; then
3143  ac_ct_STRIP=$STRIP
3144  # Extract the first word of "strip", so it can be a program name with args.
3145set dummy strip; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
3148if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  if test -n "$ac_ct_STRIP"; then
3152  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159    for ac_exec_ext in '' $ac_executable_extensions; do
3160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_ac_ct_STRIP="strip"
3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166  done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3172if test -n "$ac_ct_STRIP"; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3174$as_echo "$ac_ct_STRIP" >&6; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180  if test "x$ac_ct_STRIP" = x; then
3181    STRIP=":"
3182  else
3183    case $cross_compiling:$ac_tool_warned in
3184yes:)
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187ac_tool_warned=yes ;;
3188esac
3189    STRIP=$ac_ct_STRIP
3190  fi
3191else
3192  STRIP="$ac_cv_prog_STRIP"
3193fi
3194
3195fi
3196INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3197
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3199$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3200if test -z "$MKDIR_P"; then
3201  if ${ac_cv_path_mkdir+:} false; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_prog in mkdir gmkdir; do
3210	 for ac_exec_ext in '' $ac_executable_extensions; do
3211	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3212	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3213	     'mkdir (GNU coreutils) '* | \
3214	     'mkdir (coreutils) '* | \
3215	     'mkdir (fileutils) '4.1*)
3216	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3217	       break 3;;
3218	   esac
3219	 done
3220       done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225
3226  test -d ./--version && rmdir ./--version
3227  if test "${ac_cv_path_mkdir+set}" = set; then
3228    MKDIR_P="$ac_cv_path_mkdir -p"
3229  else
3230    # As a last resort, use the slow shell script.  Don't cache a
3231    # value for MKDIR_P within a source directory, because that will
3232    # break other packages using the cache if that directory is
3233    # removed, or if the value is a relative name.
3234    MKDIR_P="$ac_install_sh -d"
3235  fi
3236fi
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3238$as_echo "$MKDIR_P" >&6; }
3239
3240for ac_prog in gawk mawk nawk awk
3241do
3242  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243set dummy $ac_prog; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_AWK+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$AWK"; then
3250  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_AWK="$ac_prog"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269AWK=$ac_cv_prog_AWK
3270if test -n "$AWK"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3272$as_echo "$AWK" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279  test -n "$AWK" && break
3280done
3281
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3283$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3284set x ${MAKE-make}
3285ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3286if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  cat >conftest.make <<\_ACEOF
3290SHELL = /bin/sh
3291all:
3292	@echo '@@@%%%=$(MAKE)=@@@%%%'
3293_ACEOF
3294# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3295case `${MAKE-make} -f conftest.make 2>/dev/null` in
3296  *@@@%%%=?*=@@@%%%*)
3297    eval ac_cv_prog_make_${ac_make}_set=yes;;
3298  *)
3299    eval ac_cv_prog_make_${ac_make}_set=no;;
3300esac
3301rm -f conftest.make
3302fi
3303if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305$as_echo "yes" >&6; }
3306  SET_MAKE=
3307else
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310  SET_MAKE="MAKE=${MAKE-make}"
3311fi
3312
3313rm -rf .tst 2>/dev/null
3314mkdir .tst 2>/dev/null
3315if test -d .tst; then
3316  am__leading_dot=.
3317else
3318  am__leading_dot=_
3319fi
3320rmdir .tst 2>/dev/null
3321
3322# Check whether --enable-silent-rules was given.
3323if test "${enable_silent_rules+set}" = set; then :
3324  enableval=$enable_silent_rules;
3325fi
3326
3327case $enable_silent_rules in # (((
3328  yes) AM_DEFAULT_VERBOSITY=0;;
3329   no) AM_DEFAULT_VERBOSITY=1;;
3330    *) AM_DEFAULT_VERBOSITY=1;;
3331esac
3332am_make=${MAKE-make}
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3334$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3335if ${am_cv_make_support_nested_variables+:} false; then :
3336  $as_echo_n "(cached) " >&6
3337else
3338  if $as_echo 'TRUE=$(BAR$(V))
3339BAR0=false
3340BAR1=true
3341V=1
3342am__doit:
3343	@$(TRUE)
3344.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3345  am_cv_make_support_nested_variables=yes
3346else
3347  am_cv_make_support_nested_variables=no
3348fi
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3351$as_echo "$am_cv_make_support_nested_variables" >&6; }
3352if test $am_cv_make_support_nested_variables = yes; then
3353    AM_V='$(V)'
3354  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3355else
3356  AM_V=$AM_DEFAULT_VERBOSITY
3357  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3358fi
3359AM_BACKSLASH='\'
3360
3361if test "`cd $srcdir && pwd`" != "`pwd`"; then
3362  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3363  # is not polluted with repeated "-I."
3364  am__isrc=' -I$(srcdir)'
3365  # test to see if srcdir already configured
3366  if test -f $srcdir/config.status; then
3367    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3368  fi
3369fi
3370
3371# test whether we have cygpath
3372if test -z "$CYGPATH_W"; then
3373  if (cygpath --version) >/dev/null 2>/dev/null; then
3374    CYGPATH_W='cygpath -w'
3375  else
3376    CYGPATH_W=echo
3377  fi
3378fi
3379
3380
3381# Define the identity of the package.
3382 PACKAGE='tiff'
3383 VERSION='4.0.6'
3384
3385
3386cat >>confdefs.h <<_ACEOF
3387#define PACKAGE "$PACKAGE"
3388_ACEOF
3389
3390
3391cat >>confdefs.h <<_ACEOF
3392#define VERSION "$VERSION"
3393_ACEOF
3394
3395# Some tools Automake needs.
3396
3397ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3398
3399
3400AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3401
3402
3403AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3404
3405
3406AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3407
3408
3409MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3410
3411# For better backward compatibility.  To be removed once Automake 1.9.x
3412# dies out for good.  For more background, see:
3413# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3414# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3415mkdir_p='$(MKDIR_P)'
3416
3417# We need awk for the "check" target.  The system "awk" is bad on
3418# some platforms.
3419# Always define AMTAR for backward compatibility.  Yes, it's still used
3420# in the wild :-(  We should find a proper way to deprecate it ...
3421AMTAR='$${TAR-tar}'
3422
3423
3424# We'll loop over all known methods to create a tar archive until one works.
3425_am_tools='gnutar  pax cpio none'
3426
3427
3428
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3430$as_echo_n "checking how to create a pax tar archive... " >&6; }
3431
3432  # Go ahead even if we have the value already cached.  We do so because we
3433  # need to set the values for the 'am__tar' and 'am__untar' variables.
3434  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3435
3436  for _am_tool in $_am_tools; do
3437    case $_am_tool in
3438    gnutar)
3439      for _am_tar in tar gnutar gtar; do
3440        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3441   ($_am_tar --version) >&5 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && break
3445      done
3446      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3447      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3448      am__untar="$_am_tar -xf -"
3449      ;;
3450    plaintar)
3451      # Must skip GNU tar: if it does not support --format= it doesn't create
3452      # ustar tarball either.
3453      (tar --version) >/dev/null 2>&1 && continue
3454      am__tar='tar chf - "$$tardir"'
3455      am__tar_='tar chf - "$tardir"'
3456      am__untar='tar xf -'
3457      ;;
3458    pax)
3459      am__tar='pax -L -x pax -w "$$tardir"'
3460      am__tar_='pax -L -x pax -w "$tardir"'
3461      am__untar='pax -r'
3462      ;;
3463    cpio)
3464      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3465      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3466      am__untar='cpio -i -H pax -d'
3467      ;;
3468    none)
3469      am__tar=false
3470      am__tar_=false
3471      am__untar=false
3472      ;;
3473    esac
3474
3475    # If the value was cached, stop now.  We just wanted to have am__tar
3476    # and am__untar set.
3477    test -n "${am_cv_prog_tar_pax}" && break
3478
3479    # tar/untar a dummy directory, and stop if the command works.
3480    rm -rf conftest.dir
3481    mkdir conftest.dir
3482    echo GrepMe > conftest.dir/file
3483    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3484   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }
3488    rm -rf conftest.dir
3489    if test -s conftest.tar; then
3490      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3491   ($am__untar <conftest.tar) >&5 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }
3495      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3496   (cat conftest.dir/file) >&5 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }
3500      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3501    fi
3502  done
3503  rm -rf conftest.dir
3504
3505  if ${am_cv_prog_tar_pax+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  am_cv_prog_tar_pax=$_am_tool
3509fi
3510
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3512$as_echo "$am_cv_prog_tar_pax" >&6; }
3513
3514
3515
3516
3517
3518
3519# POSIX will say in a future version that running "rm -f" with no argument
3520# is OK; and we want to be able to make that assumption in our Makefile
3521# recipes.  So use an aggressive probe to check that the usage we want is
3522# actually supported "in the wild" to an acceptable degree.
3523# See automake bug#10828.
3524# To make any issue more visible, cause the running configure to be aborted
3525# by default if the 'rm' program in use doesn't match our expectations; the
3526# user can still override this though.
3527if rm -f && rm -fr && rm -rf; then : OK; else
3528  cat >&2 <<'END'
3529Oops!
3530
3531Your 'rm' program seems unable to run without file operands specified
3532on the command line, even when the '-f' option is present.  This is contrary
3533to the behaviour of most rm programs out there, and not conforming with
3534the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3535
3536Please tell bug-automake@gnu.org about your system, including the value
3537of your $PATH and any error possibly output before this message.  This
3538can help us improve future automake versions.
3539
3540END
3541  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3542    echo 'Configuration will proceed anyway, since you have set the' >&2
3543    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3544    echo >&2
3545  else
3546    cat >&2 <<'END'
3547Aborting the configuration process, to ensure you take notice of the issue.
3548
3549You can download and install GNU coreutils to get an 'rm' implementation
3550that behaves properly: <http://www.gnu.org/software/coreutils/>.
3551
3552If you want to complete the configuration process using your problematic
3553'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3554to "yes", and re-run configure.
3555
3556END
3557    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3558  fi
3559fi
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3562$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3563    # Check whether --enable-maintainer-mode was given.
3564if test "${enable_maintainer_mode+set}" = set; then :
3565  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3566else
3567  USE_MAINTAINER_MODE=no
3568fi
3569
3570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3571$as_echo "$USE_MAINTAINER_MODE" >&6; }
3572   if test $USE_MAINTAINER_MODE = yes; then
3573  MAINTAINER_MODE_TRUE=
3574  MAINTAINER_MODE_FALSE='#'
3575else
3576  MAINTAINER_MODE_TRUE='#'
3577  MAINTAINER_MODE_FALSE=
3578fi
3579
3580  MAINT=$MAINTAINER_MODE_TRUE
3581
3582
3583
3584LIBTIFF_MAJOR_VERSION=4
3585LIBTIFF_MINOR_VERSION=0
3586LIBTIFF_MICRO_VERSION=6
3587LIBTIFF_ALPHA_VERSION=
3588LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3589LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3590
3591LIBTIFF_CURRENT=7
3592LIBTIFF_REVISION=4
3593LIBTIFF_AGE=2
3594LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3595
3596# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3597# in OpenBSD uses some special semantics for shared libraries. Their soname
3598# contains only two numbers, major and minor.
3599# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3600#case "$host_os" in
3601#    openbsd* | mirbsd*)
3602#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3603#	;;
3604#    *)
3605#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3606#	;;
3607#esac
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622if test -n "$ac_tool_prefix"; then
3623  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}gcc; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if ${ac_cv_prog_CC+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$CC"; then
3631  ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CC=$ac_cv_prog_CC
3651if test -n "$CC"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653$as_echo "$CC" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660fi
3661if test -z "$ac_cv_prog_CC"; then
3662  ac_ct_CC=$CC
3663  # Extract the first word of "gcc", so it can be a program name with args.
3664set dummy gcc; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if ${ac_cv_prog_ac_ct_CC+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680    ac_cv_prog_ac_ct_CC="gcc"
3681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693$as_echo "$ac_ct_CC" >&6; }
3694else
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699  if test "x$ac_ct_CC" = x; then
3700    CC=""
3701  else
3702    case $cross_compiling:$ac_tool_warned in
3703yes:)
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706ac_tool_warned=yes ;;
3707esac
3708    CC=$ac_ct_CC
3709  fi
3710else
3711  CC="$ac_cv_prog_CC"
3712fi
3713
3714if test -z "$CC"; then
3715          if test -n "$ac_tool_prefix"; then
3716    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3717set dummy ${ac_tool_prefix}cc; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if ${ac_cv_prog_CC+:} false; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -n "$CC"; then
3724  ac_cv_prog_CC="$CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733    ac_cv_prog_CC="${ac_tool_prefix}cc"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746$as_echo "$CC" >&6; }
3747else
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753  fi
3754fi
3755if test -z "$CC"; then
3756  # Extract the first word of "cc", so it can be a program name with args.
3757set dummy cc; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
3760if ${ac_cv_prog_CC+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  if test -n "$CC"; then
3764  ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766  ac_prog_rejected=no
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3775       ac_prog_rejected=yes
3776       continue
3777     fi
3778    ac_cv_prog_CC="cc"
3779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780    break 2
3781  fi
3782done
3783  done
3784IFS=$as_save_IFS
3785
3786if test $ac_prog_rejected = yes; then
3787  # We found a bogon in the path, so make sure we never use it.
3788  set dummy $ac_cv_prog_CC
3789  shift
3790  if test $# != 0; then
3791    # We chose a different compiler from the bogus one.
3792    # However, it has the same basename, so the bogon will be chosen
3793    # first if we set CC to just the basename; use the full file name.
3794    shift
3795    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796  fi
3797fi
3798fi
3799fi
3800CC=$ac_cv_prog_CC
3801if test -n "$CC"; then
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803$as_echo "$CC" >&6; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806$as_echo "no" >&6; }
3807fi
3808
3809
3810fi
3811if test -z "$CC"; then
3812  if test -n "$ac_tool_prefix"; then
3813  for ac_prog in cl.exe
3814  do
3815    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if ${ac_cv_prog_CC+:} false; then :
3820  $as_echo_n "(cached) " >&6
3821else
3822  if test -n "$CC"; then
3823  ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828  IFS=$as_save_IFS
3829  test -z "$as_dir" && as_dir=.
3830    for ac_exec_ext in '' $ac_executable_extensions; do
3831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834    break 2
3835  fi
3836done
3837  done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852    test -n "$CC" && break
3853  done
3854fi
3855if test -z "$CC"; then
3856  ac_ct_CC=$CC
3857  for ac_prog in cl.exe
3858do
3859  # Extract the first word of "$ac_prog", so it can be a program name with args.
3860set dummy $ac_prog; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if ${ac_cv_prog_ac_ct_CC+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  if test -n "$ac_ct_CC"; then
3867  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874    for ac_exec_ext in '' $ac_executable_extensions; do
3875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876    ac_cv_prog_ac_ct_CC="$ac_prog"
3877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878    break 2
3879  fi
3880done
3881  done
3882IFS=$as_save_IFS
3883
3884fi
3885fi
3886ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887if test -n "$ac_ct_CC"; then
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889$as_echo "$ac_ct_CC" >&6; }
3890else
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892$as_echo "no" >&6; }
3893fi
3894
3895
3896  test -n "$ac_ct_CC" && break
3897done
3898
3899  if test "x$ac_ct_CC" = x; then
3900    CC=""
3901  else
3902    case $cross_compiling:$ac_tool_warned in
3903yes:)
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906ac_tool_warned=yes ;;
3907esac
3908    CC=$ac_ct_CC
3909  fi
3910fi
3911
3912fi
3913
3914
3915test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error $? "no acceptable C compiler found in \$PATH
3918See \`config.log' for more details" "$LINENO" 5; }
3919
3920# Provide some information about the compiler.
3921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3922set X $ac_compile
3923ac_compiler=$2
3924for ac_option in --version -v -V -qversion; do
3925  { { ac_try="$ac_compiler $ac_option >&5"
3926case "(($ac_try" in
3927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928  *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931$as_echo "$ac_try_echo"; } >&5
3932  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3933  ac_status=$?
3934  if test -s conftest.err; then
3935    sed '10a\
3936... rest of stderr output deleted ...
3937         10q' conftest.err >conftest.er1
3938    cat conftest.er1 >&5
3939  fi
3940  rm -f conftest.er1 conftest.err
3941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942  test $ac_status = 0; }
3943done
3944
3945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h.  */
3947
3948int
3949main ()
3950{
3951
3952  ;
3953  return 0;
3954}
3955_ACEOF
3956ac_clean_files_save=$ac_clean_files
3957ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3958# Try to create an executable without -o first, disregard a.out.
3959# It will help us diagnose broken compilers, and finding out an intuition
3960# of exeext.
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3962$as_echo_n "checking whether the C compiler works... " >&6; }
3963ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3964
3965# The possible output files:
3966ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3967
3968ac_rmfiles=
3969for ac_file in $ac_files
3970do
3971  case $ac_file in
3972    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3974  esac
3975done
3976rm -f $ac_rmfiles
3977
3978if { { ac_try="$ac_link_default"
3979case "(($ac_try" in
3980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981  *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984$as_echo "$ac_try_echo"; } >&5
3985  (eval "$ac_link_default") 2>&5
3986  ac_status=$?
3987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988  test $ac_status = 0; }; then :
3989  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3990# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3991# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3992# so that the user can short-circuit this test for compilers unknown to
3993# Autoconf.
3994for ac_file in $ac_files ''
3995do
3996  test -f "$ac_file" || continue
3997  case $ac_file in
3998    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3999	;;
4000    [ab].out )
4001	# We found the default executable, but exeext='' is most
4002	# certainly right.
4003	break;;
4004    *.* )
4005	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4006	then :; else
4007	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4008	fi
4009	# We set ac_cv_exeext here because the later test for it is not
4010	# safe: cross compilers may not add the suffix if given an `-o'
4011	# argument, so we may need to know it at that point already.
4012	# Even if this section looks crufty: it has the advantage of
4013	# actually working.
4014	break;;
4015    * )
4016	break;;
4017  esac
4018done
4019test "$ac_cv_exeext" = no && ac_cv_exeext=
4020
4021else
4022  ac_file=''
4023fi
4024if test -z "$ac_file"; then :
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027$as_echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032as_fn_error 77 "C compiler cannot create executables
4033See \`config.log' for more details" "$LINENO" 5; }
4034else
4035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4036$as_echo "yes" >&6; }
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4039$as_echo_n "checking for C compiler default output file name... " >&6; }
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4041$as_echo "$ac_file" >&6; }
4042ac_exeext=$ac_cv_exeext
4043
4044rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4045ac_clean_files=$ac_clean_files_save
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4047$as_echo_n "checking for suffix of executables... " >&6; }
4048if { { ac_try="$ac_link"
4049case "(($ac_try" in
4050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051  *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055  (eval "$ac_link") 2>&5
4056  ac_status=$?
4057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058  test $ac_status = 0; }; then :
4059  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4060# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4061# work properly (i.e., refer to `conftest.exe'), while it won't with
4062# `rm'.
4063for ac_file in conftest.exe conftest conftest.*; do
4064  test -f "$ac_file" || continue
4065  case $ac_file in
4066    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4068	  break;;
4069    * ) break;;
4070  esac
4071done
4072else
4073  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4076See \`config.log' for more details" "$LINENO" 5; }
4077fi
4078rm -f conftest conftest$ac_cv_exeext
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4080$as_echo "$ac_cv_exeext" >&6; }
4081
4082rm -f conftest.$ac_ext
4083EXEEXT=$ac_cv_exeext
4084ac_exeext=$EXEEXT
4085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087#include <stdio.h>
4088int
4089main ()
4090{
4091FILE *f = fopen ("conftest.out", "w");
4092 return ferror (f) || fclose (f) != 0;
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098ac_clean_files="$ac_clean_files conftest.out"
4099# Check that the compiler produces executables we can run.  If not, either
4100# the compiler is broken, or we cross compile.
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4102$as_echo_n "checking whether we are cross compiling... " >&6; }
4103if test "$cross_compiling" != yes; then
4104  { { ac_try="$ac_link"
4105case "(($ac_try" in
4106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107  *) ac_try_echo=$ac_try;;
4108esac
4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110$as_echo "$ac_try_echo"; } >&5
4111  (eval "$ac_link") 2>&5
4112  ac_status=$?
4113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114  test $ac_status = 0; }
4115  if { ac_try='./conftest$ac_cv_exeext'
4116  { { case "(($ac_try" in
4117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118  *) ac_try_echo=$ac_try;;
4119esac
4120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121$as_echo "$ac_try_echo"; } >&5
4122  (eval "$ac_try") 2>&5
4123  ac_status=$?
4124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125  test $ac_status = 0; }; }; then
4126    cross_compiling=no
4127  else
4128    if test "$cross_compiling" = maybe; then
4129	cross_compiling=yes
4130    else
4131	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133as_fn_error $? "cannot run C compiled programs.
4134If you meant to cross compile, use \`--host'.
4135See \`config.log' for more details" "$LINENO" 5; }
4136    fi
4137  fi
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4140$as_echo "$cross_compiling" >&6; }
4141
4142rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4143ac_clean_files=$ac_clean_files_save
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4145$as_echo_n "checking for suffix of object files... " >&6; }
4146if ${ac_cv_objext+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151
4152int
4153main ()
4154{
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160rm -f conftest.o conftest.obj
4161if { { ac_try="$ac_compile"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167$as_echo "$ac_try_echo"; } >&5
4168  (eval "$ac_compile") 2>&5
4169  ac_status=$?
4170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171  test $ac_status = 0; }; then :
4172  for ac_file in conftest.o conftest.obj conftest.*; do
4173  test -f "$ac_file" || continue;
4174  case $ac_file in
4175    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4176    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4177       break;;
4178  esac
4179done
4180else
4181  $as_echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186as_fn_error $? "cannot compute suffix of object files: cannot compile
4187See \`config.log' for more details" "$LINENO" 5; }
4188fi
4189rm -f conftest.$ac_cv_objext conftest.$ac_ext
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4192$as_echo "$ac_cv_objext" >&6; }
4193OBJEXT=$ac_cv_objext
4194ac_objext=$OBJEXT
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4197if ${ac_cv_c_compiler_gnu+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202
4203int
4204main ()
4205{
4206#ifndef __GNUC__
4207       choke me
4208#endif
4209
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then :
4215  ac_compiler_gnu=yes
4216else
4217  ac_compiler_gnu=no
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220ac_cv_c_compiler_gnu=$ac_compiler_gnu
4221
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4225if test $ac_compiler_gnu = yes; then
4226  GCC=yes
4227else
4228  GCC=
4229fi
4230ac_test_CFLAGS=${CFLAGS+set}
4231ac_save_CFLAGS=$CFLAGS
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4233$as_echo_n "checking whether $CC accepts -g... " >&6; }
4234if ${ac_cv_prog_cc_g+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  ac_save_c_werror_flag=$ac_c_werror_flag
4238   ac_c_werror_flag=yes
4239   ac_cv_prog_cc_g=no
4240   CFLAGS="-g"
4241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243
4244int
4245main ()
4246{
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"; then :
4253  ac_cv_prog_cc_g=yes
4254else
4255  CFLAGS=""
4256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258
4259int
4260main ()
4261{
4262
4263  ;
4264  return 0;
4265}
4266_ACEOF
4267if ac_fn_c_try_compile "$LINENO"; then :
4268
4269else
4270  ac_c_werror_flag=$ac_save_c_werror_flag
4271	 CFLAGS="-g"
4272	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274
4275int
4276main ()
4277{
4278
4279  ;
4280  return 0;
4281}
4282_ACEOF
4283if ac_fn_c_try_compile "$LINENO"; then :
4284  ac_cv_prog_cc_g=yes
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287fi
4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289fi
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291   ac_c_werror_flag=$ac_save_c_werror_flag
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4294$as_echo "$ac_cv_prog_cc_g" >&6; }
4295if test "$ac_test_CFLAGS" = set; then
4296  CFLAGS=$ac_save_CFLAGS
4297elif test $ac_cv_prog_cc_g = yes; then
4298  if test "$GCC" = yes; then
4299    CFLAGS="-g -O2"
4300  else
4301    CFLAGS="-g"
4302  fi
4303else
4304  if test "$GCC" = yes; then
4305    CFLAGS="-O2"
4306  else
4307    CFLAGS=
4308  fi
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4312if ${ac_cv_prog_cc_c89+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  ac_cv_prog_cc_c89=no
4316ac_save_CC=$CC
4317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#include <stdarg.h>
4320#include <stdio.h>
4321struct stat;
4322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4323struct buf { int x; };
4324FILE * (*rcsopen) (struct buf *, struct stat *, int);
4325static char *e (p, i)
4326     char **p;
4327     int i;
4328{
4329  return p[i];
4330}
4331static char *f (char * (*g) (char **, int), char **p, ...)
4332{
4333  char *s;
4334  va_list v;
4335  va_start (v,p);
4336  s = g (p, va_arg (v,int));
4337  va_end (v);
4338  return s;
4339}
4340
4341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4342   function prototypes and stuff, but not '\xHH' hex character constants.
4343   These don't provoke an error unfortunately, instead are silently treated
4344   as 'x'.  The following induces an error, until -std is added to get
4345   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4346   array size at least.  It's necessary to write '\x00'==0 to get something
4347   that's true only with -std.  */
4348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4349
4350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4351   inside strings and character constants.  */
4352#define FOO(x) 'x'
4353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4354
4355int test (int i, double x);
4356struct s1 {int (*f) (int a);};
4357struct s2 {int (*f) (double a);};
4358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4359int argc;
4360char **argv;
4361int
4362main ()
4363{
4364return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4370	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4371do
4372  CC="$ac_save_CC $ac_arg"
4373  if ac_fn_c_try_compile "$LINENO"; then :
4374  ac_cv_prog_cc_c89=$ac_arg
4375fi
4376rm -f core conftest.err conftest.$ac_objext
4377  test "x$ac_cv_prog_cc_c89" != "xno" && break
4378done
4379rm -f conftest.$ac_ext
4380CC=$ac_save_CC
4381
4382fi
4383# AC_CACHE_VAL
4384case "x$ac_cv_prog_cc_c89" in
4385  x)
4386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4387$as_echo "none needed" >&6; } ;;
4388  xno)
4389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4390$as_echo "unsupported" >&6; } ;;
4391  *)
4392    CC="$CC $ac_cv_prog_cc_c89"
4393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4395esac
4396if test "x$ac_cv_prog_cc_c89" != xno; then :
4397
4398fi
4399
4400ac_ext=c
4401ac_cpp='$CPP $CPPFLAGS'
4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406ac_ext=c
4407ac_cpp='$CPP $CPPFLAGS'
4408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4412$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4413if ${am_cv_prog_cc_c_o+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418
4419int
4420main ()
4421{
4422
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427  # Make sure it works both with $CC and with simple cc.
4428  # Following AC_PROG_CC_C_O, we do the test twice because some
4429  # compilers refuse to overwrite an existing .o file with -o,
4430  # though they will create one.
4431  am_cv_prog_cc_c_o=yes
4432  for am_i in 1 2; do
4433    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4434   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } \
4438         && test -f conftest2.$ac_objext; then
4439      : OK
4440    else
4441      am_cv_prog_cc_c_o=no
4442      break
4443    fi
4444  done
4445  rm -f core conftest*
4446  unset am_i
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4449$as_echo "$am_cv_prog_cc_c_o" >&6; }
4450if test "$am_cv_prog_cc_c_o" != yes; then
4451   # Losing compiler, so override with the script.
4452   # FIXME: It is wrong to rewrite CC.
4453   # But if we don't then we get into trouble of one sort or another.
4454   # A longer-term fix would be to have automake use am__CC in this case,
4455   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4456   CC="$am_aux_dir/compile $CC"
4457fi
4458ac_ext=c
4459ac_cpp='$CPP $CPPFLAGS'
4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464DEPDIR="${am__leading_dot}deps"
4465
4466ac_config_commands="$ac_config_commands depfiles"
4467
4468
4469am_make=${MAKE-make}
4470cat > confinc << 'END'
4471am__doit:
4472	@echo this is the am__doit target
4473.PHONY: am__doit
4474END
4475# If we don't find an include directive, just comment out the code.
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4477$as_echo_n "checking for style of include used by $am_make... " >&6; }
4478am__include="#"
4479am__quote=
4480_am_result=none
4481# First try GNU make style include.
4482echo "include confinc" > confmf
4483# Ignore all kinds of additional output from 'make'.
4484case `$am_make -s -f confmf 2> /dev/null` in #(
4485*the\ am__doit\ target*)
4486  am__include=include
4487  am__quote=
4488  _am_result=GNU
4489  ;;
4490esac
4491# Now try BSD make style include.
4492if test "$am__include" = "#"; then
4493   echo '.include "confinc"' > confmf
4494   case `$am_make -s -f confmf 2> /dev/null` in #(
4495   *the\ am__doit\ target*)
4496     am__include=.include
4497     am__quote="\""
4498     _am_result=BSD
4499     ;;
4500   esac
4501fi
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4505$as_echo "$_am_result" >&6; }
4506rm -f confinc confmf
4507
4508# Check whether --enable-dependency-tracking was given.
4509if test "${enable_dependency_tracking+set}" = set; then :
4510  enableval=$enable_dependency_tracking;
4511fi
4512
4513if test "x$enable_dependency_tracking" != xno; then
4514  am_depcomp="$ac_aux_dir/depcomp"
4515  AMDEPBACKSLASH='\'
4516  am__nodep='_no'
4517fi
4518 if test "x$enable_dependency_tracking" != xno; then
4519  AMDEP_TRUE=
4520  AMDEP_FALSE='#'
4521else
4522  AMDEP_TRUE='#'
4523  AMDEP_FALSE=
4524fi
4525
4526
4527
4528depcc="$CC"   am_compiler_list=
4529
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4531$as_echo_n "checking dependency style of $depcc... " >&6; }
4532if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4536  # We make a subdir and do the tests there.  Otherwise we can end up
4537  # making bogus files that we don't know about and never remove.  For
4538  # instance it was reported that on HP-UX the gcc test will end up
4539  # making a dummy file named 'D' -- because '-MD' means "put the output
4540  # in D".
4541  rm -rf conftest.dir
4542  mkdir conftest.dir
4543  # Copy depcomp to subdir because otherwise we won't find it if we're
4544  # using a relative directory.
4545  cp "$am_depcomp" conftest.dir
4546  cd conftest.dir
4547  # We will build objects and dependencies in a subdirectory because
4548  # it helps to detect inapplicable dependency modes.  For instance
4549  # both Tru64's cc and ICC support -MD to output dependencies as a
4550  # side effect of compilation, but ICC will put the dependencies in
4551  # the current directory while Tru64 will put them in the object
4552  # directory.
4553  mkdir sub
4554
4555  am_cv_CC_dependencies_compiler_type=none
4556  if test "$am_compiler_list" = ""; then
4557     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4558  fi
4559  am__universal=false
4560  case " $depcc " in #(
4561     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4562     esac
4563
4564  for depmode in $am_compiler_list; do
4565    # Setup a source with many dependencies, because some compilers
4566    # like to wrap large dependency lists on column 80 (with \), and
4567    # we should not choose a depcomp mode which is confused by this.
4568    #
4569    # We need to recreate these files for each test, as the compiler may
4570    # overwrite some of them when testing with obscure command lines.
4571    # This happens at least with the AIX C compiler.
4572    : > sub/conftest.c
4573    for i in 1 2 3 4 5 6; do
4574      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4575      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4576      # Solaris 10 /bin/sh.
4577      echo '/* dummy */' > sub/conftst$i.h
4578    done
4579    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4580
4581    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4582    # mode.  It turns out that the SunPro C++ compiler does not properly
4583    # handle '-M -o', and we need to detect this.  Also, some Intel
4584    # versions had trouble with output in subdirs.
4585    am__obj=sub/conftest.${OBJEXT-o}
4586    am__minus_obj="-o $am__obj"
4587    case $depmode in
4588    gcc)
4589      # This depmode causes a compiler race in universal mode.
4590      test "$am__universal" = false || continue
4591      ;;
4592    nosideeffect)
4593      # After this tag, mechanisms are not by side-effect, so they'll
4594      # only be used when explicitly requested.
4595      if test "x$enable_dependency_tracking" = xyes; then
4596	continue
4597      else
4598	break
4599      fi
4600      ;;
4601    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4602      # This compiler won't grok '-c -o', but also, the minuso test has
4603      # not run yet.  These depmodes are late enough in the game, and
4604      # so weak that their functioning should not be impacted.
4605      am__obj=conftest.${OBJEXT-o}
4606      am__minus_obj=
4607      ;;
4608    none) break ;;
4609    esac
4610    if depmode=$depmode \
4611       source=sub/conftest.c object=$am__obj \
4612       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4613       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4614         >/dev/null 2>conftest.err &&
4615       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4616       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4617       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4618       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4619      # icc doesn't choke on unknown options, it will just issue warnings
4620      # or remarks (even with -Werror).  So we grep stderr for any message
4621      # that says an option was ignored or not supported.
4622      # When given -MP, icc 7.0 and 7.1 complain thusly:
4623      #   icc: Command line warning: ignoring option '-M'; no argument required
4624      # The diagnosis changed in icc 8.0:
4625      #   icc: Command line remark: option '-MP' not supported
4626      if (grep 'ignoring option' conftest.err ||
4627          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4628        am_cv_CC_dependencies_compiler_type=$depmode
4629        break
4630      fi
4631    fi
4632  done
4633
4634  cd ..
4635  rm -rf conftest.dir
4636else
4637  am_cv_CC_dependencies_compiler_type=none
4638fi
4639
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4642$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4643CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4644
4645 if
4646  test "x$enable_dependency_tracking" != xno \
4647  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4648  am__fastdepCC_TRUE=
4649  am__fastdepCC_FALSE='#'
4650else
4651  am__fastdepCC_TRUE='#'
4652  am__fastdepCC_FALSE=
4653fi
4654
4655
4656
4657
4658
4659  ansi=
4660  if test -z "$ansi"; then
4661    msg="for C compiler warning flags"
4662  else
4663    msg="for C compiler warning and ANSI conformance flags"
4664  fi
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4666$as_echo_n "checking $msg... " >&6; }
4667if ${vl_cv_prog_cc_warnings+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670
4671    if test -n "$CC"; then
4672      cat > conftest.c <<EOF
4673int main(int argc, char **argv) { return 0; }
4674EOF
4675
4676            if test "$GCC" = "yes"; then
4677        if test -z "$ansi"; then
4678          vl_cv_prog_cc_warnings="-Wall -W"
4679        else
4680          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4681        fi
4682
4683
4684            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4685           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4686           test -f conftest.o; then
4687        if test -z "$ansi"; then
4688          vl_cv_prog_cc_warnings="-v"
4689        else
4690          vl_cv_prog_cc_warnings="-v -Xc"
4691        fi
4692
4693            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4694           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4695           test -f conftest.o; then
4696        if test -z "$ansi"; then
4697          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4698        else
4699          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4700        fi
4701
4702            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4703           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4704           test -f conftest.o; then
4705        if test -z "$ansi"; then
4706          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4707        else
4708          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4709        fi
4710
4711            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4712           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4713           test -f conftest.o; then
4714        if test -z "$ansi"; then
4715          vl_cv_prog_cc_warnings="-fullwarn"
4716        else
4717          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4718        fi
4719
4720            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4721           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4722           test -f conftest.o; then
4723        if test -z "$ansi"; then
4724          vl_cv_prog_cc_warnings="+w1"
4725        else
4726          vl_cv_prog_cc_warnings="+w1 -Aa"
4727        fi
4728
4729            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4730           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4731           test -f conftest.o; then
4732        if test -z "$ansi"; then
4733          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4734        else
4735          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4736        fi
4737
4738            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4739           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4740           test -f conftest.o; then
4741        if test -z "$ansi"; then
4742          vl_cv_prog_cc_warnings="-h msglevel 2"
4743        else
4744          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4745        fi
4746
4747      fi
4748      rm -f conftest.*
4749    fi
4750    if test -n "$vl_cv_prog_cc_warnings"; then
4751      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4752    else
4753      vl_cv_prog_cc_warnings="unknown"
4754    fi
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4758$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4759
4760
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4763$as_echo_n "checking whether ln -s works... " >&6; }
4764LN_S=$as_ln_s
4765if test "$LN_S" = "ln -s"; then
4766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4767$as_echo "yes" >&6; }
4768else
4769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4770$as_echo "no, using $LN_S" >&6; }
4771fi
4772
4773# Used only for validating the source distribution during distcheck
4774# Extract the first word of "cmake", so it can be a program name with args.
4775set dummy cmake; ac_word=$2
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777$as_echo_n "checking for $ac_word... " >&6; }
4778if ${ac_cv_path_CMAKE+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  case $CMAKE in
4782  [\\/]* | ?:[\\/]*)
4783  ac_cv_path_CMAKE="$CMAKE" # Let the user override the test with a path.
4784  ;;
4785  *)
4786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789  IFS=$as_save_IFS
4790  test -z "$as_dir" && as_dir=.
4791    for ac_exec_ext in '' $ac_executable_extensions; do
4792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793    ac_cv_path_CMAKE="$as_dir/$ac_word$ac_exec_ext"
4794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795    break 2
4796  fi
4797done
4798  done
4799IFS=$as_save_IFS
4800
4801  ;;
4802esac
4803fi
4804CMAKE=$ac_cv_path_CMAKE
4805if test -n "$CMAKE"; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5
4807$as_echo "$CMAKE" >&6; }
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814
4815
4816# Check if LD supports linker scripts, and define automake conditional
4817# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4818# constrained to compilers using GNU ld on ELF systems or systems
4819# which provide an adequate emulation thereof.
4820# Check whether --enable-ld-version-script was given.
4821if test "${enable_ld_version_script+set}" = set; then :
4822  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4823else
4824  have_ld_version_script=no
4825fi
4826
4827if test "$have_ld_version_script" != no; then
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4829$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4830  save_LDFLAGS="$LDFLAGS"
4831  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4832  cat > conftest.map <<EOF
4833VERS_1 {
4834        global: sym;
4835};
4836
4837VERS_2 {
4838        global: sym;
4839} VERS_1;
4840EOF
4841
4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h.  */
4844
4845int
4846main ()
4847{
4848
4849  ;
4850  return 0;
4851}
4852_ACEOF
4853if ac_fn_c_try_link "$LINENO"; then :
4854  have_ld_version_script=yes
4855else
4856  have_ld_version_script=no
4857fi
4858rm -f core conftest.err conftest.$ac_objext \
4859    conftest$ac_exeext conftest.$ac_ext
4860  rm -f conftest.map
4861  LDFLAGS="$save_LDFLAGS"
4862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4863$as_echo "$have_ld_version_script" >&6; }
4864fi
4865 if test "$have_ld_version_script" = "yes"; then
4866  HAVE_LD_VERSION_SCRIPT_TRUE=
4867  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4868else
4869  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4870  HAVE_LD_VERSION_SCRIPT_FALSE=
4871fi
4872
4873
4874
4875
4876
4877
4878case `pwd` in
4879  *\ * | *\	*)
4880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4881$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4882esac
4883
4884
4885
4886macro_version='2.4.4'
4887macro_revision='2.4.4'
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901ltmain=$ac_aux_dir/ltmain.sh
4902
4903# Backslashify metacharacters that are still active within
4904# double-quoted strings.
4905sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4906
4907# Same as above, but do not quote variable references.
4908double_quote_subst='s/\(["`\\]\)/\\\1/g'
4909
4910# Sed substitution to delay expansion of an escaped shell variable in a
4911# double_quote_subst'ed string.
4912delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4913
4914# Sed substitution to delay expansion of an escaped single quote.
4915delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4916
4917# Sed substitution to avoid accidental globbing in evaled expressions
4918no_glob_subst='s/\*/\\\*/g'
4919
4920ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4921ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4922ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4923
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4925$as_echo_n "checking how to print strings... " >&6; }
4926# Test print first, because it will be a builtin if present.
4927if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4928   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4929  ECHO='print -r --'
4930elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4931  ECHO='printf %s\n'
4932else
4933  # Use this function as a fallback that always works.
4934  func_fallback_echo ()
4935  {
4936    eval 'cat <<_LTECHO_EOF
4937$1
4938_LTECHO_EOF'
4939  }
4940  ECHO='func_fallback_echo'
4941fi
4942
4943# func_echo_all arg...
4944# Invoke $ECHO with all args, space-separated.
4945func_echo_all ()
4946{
4947    $ECHO ""
4948}
4949
4950case $ECHO in
4951  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4952$as_echo "printf" >&6; } ;;
4953  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4954$as_echo "print -r" >&6; } ;;
4955  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4956$as_echo "cat" >&6; } ;;
4957esac
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4973$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4974if ${ac_cv_path_SED+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4978     for ac_i in 1 2 3 4 5 6 7; do
4979       ac_script="$ac_script$as_nl$ac_script"
4980     done
4981     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4982     { ac_script=; unset ac_script;}
4983     if test -z "$SED"; then
4984  ac_path_SED_found=false
4985  # Loop through the user's path and test for each of PROGNAME-LIST
4986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991    for ac_prog in sed gsed; do
4992    for ac_exec_ext in '' $ac_executable_extensions; do
4993      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4994      as_fn_executable_p "$ac_path_SED" || continue
4995# Check for GNU ac_path_SED and select it if it is found.
4996  # Check for GNU $ac_path_SED
4997case `"$ac_path_SED" --version 2>&1` in
4998*GNU*)
4999  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5000*)
5001  ac_count=0
5002  $as_echo_n 0123456789 >"conftest.in"
5003  while :
5004  do
5005    cat "conftest.in" "conftest.in" >"conftest.tmp"
5006    mv "conftest.tmp" "conftest.in"
5007    cp "conftest.in" "conftest.nl"
5008    $as_echo '' >> "conftest.nl"
5009    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011    as_fn_arith $ac_count + 1 && ac_count=$as_val
5012    if test $ac_count -gt ${ac_path_SED_max-0}; then
5013      # Best one so far, save it but keep looking for a better one
5014      ac_cv_path_SED="$ac_path_SED"
5015      ac_path_SED_max=$ac_count
5016    fi
5017    # 10*(2^10) chars as input seems more than enough
5018    test $ac_count -gt 10 && break
5019  done
5020  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021esac
5022
5023      $ac_path_SED_found && break 3
5024    done
5025  done
5026  done
5027IFS=$as_save_IFS
5028  if test -z "$ac_cv_path_SED"; then
5029    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5030  fi
5031else
5032  ac_cv_path_SED=$SED
5033fi
5034
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5037$as_echo "$ac_cv_path_SED" >&6; }
5038 SED="$ac_cv_path_SED"
5039  rm -f conftest.sed
5040
5041test -z "$SED" && SED=sed
5042Xsed="$SED -e 1s/^X//"
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5055$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5056if ${ac_cv_path_GREP+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  if test -z "$GREP"; then
5060  ac_path_GREP_found=false
5061  # Loop through the user's path and test for each of PROGNAME-LIST
5062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5064do
5065  IFS=$as_save_IFS
5066  test -z "$as_dir" && as_dir=.
5067    for ac_prog in grep ggrep; do
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5070      as_fn_executable_p "$ac_path_GREP" || continue
5071# Check for GNU ac_path_GREP and select it if it is found.
5072  # Check for GNU $ac_path_GREP
5073case `"$ac_path_GREP" --version 2>&1` in
5074*GNU*)
5075  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5076*)
5077  ac_count=0
5078  $as_echo_n 0123456789 >"conftest.in"
5079  while :
5080  do
5081    cat "conftest.in" "conftest.in" >"conftest.tmp"
5082    mv "conftest.tmp" "conftest.in"
5083    cp "conftest.in" "conftest.nl"
5084    $as_echo 'GREP' >> "conftest.nl"
5085    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087    as_fn_arith $ac_count + 1 && ac_count=$as_val
5088    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5089      # Best one so far, save it but keep looking for a better one
5090      ac_cv_path_GREP="$ac_path_GREP"
5091      ac_path_GREP_max=$ac_count
5092    fi
5093    # 10*(2^10) chars as input seems more than enough
5094    test $ac_count -gt 10 && break
5095  done
5096  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097esac
5098
5099      $ac_path_GREP_found && break 3
5100    done
5101  done
5102  done
5103IFS=$as_save_IFS
5104  if test -z "$ac_cv_path_GREP"; then
5105    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5106  fi
5107else
5108  ac_cv_path_GREP=$GREP
5109fi
5110
5111fi
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5113$as_echo "$ac_cv_path_GREP" >&6; }
5114 GREP="$ac_cv_path_GREP"
5115
5116
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5118$as_echo_n "checking for egrep... " >&6; }
5119if ${ac_cv_path_EGREP+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5123   then ac_cv_path_EGREP="$GREP -E"
5124   else
5125     if test -z "$EGREP"; then
5126  ac_path_EGREP_found=false
5127  # Loop through the user's path and test for each of PROGNAME-LIST
5128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130do
5131  IFS=$as_save_IFS
5132  test -z "$as_dir" && as_dir=.
5133    for ac_prog in egrep; do
5134    for ac_exec_ext in '' $ac_executable_extensions; do
5135      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5136      as_fn_executable_p "$ac_path_EGREP" || continue
5137# Check for GNU ac_path_EGREP and select it if it is found.
5138  # Check for GNU $ac_path_EGREP
5139case `"$ac_path_EGREP" --version 2>&1` in
5140*GNU*)
5141  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5142*)
5143  ac_count=0
5144  $as_echo_n 0123456789 >"conftest.in"
5145  while :
5146  do
5147    cat "conftest.in" "conftest.in" >"conftest.tmp"
5148    mv "conftest.tmp" "conftest.in"
5149    cp "conftest.in" "conftest.nl"
5150    $as_echo 'EGREP' >> "conftest.nl"
5151    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153    as_fn_arith $ac_count + 1 && ac_count=$as_val
5154    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5155      # Best one so far, save it but keep looking for a better one
5156      ac_cv_path_EGREP="$ac_path_EGREP"
5157      ac_path_EGREP_max=$ac_count
5158    fi
5159    # 10*(2^10) chars as input seems more than enough
5160    test $ac_count -gt 10 && break
5161  done
5162  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163esac
5164
5165      $ac_path_EGREP_found && break 3
5166    done
5167  done
5168  done
5169IFS=$as_save_IFS
5170  if test -z "$ac_cv_path_EGREP"; then
5171    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172  fi
5173else
5174  ac_cv_path_EGREP=$EGREP
5175fi
5176
5177   fi
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5180$as_echo "$ac_cv_path_EGREP" >&6; }
5181 EGREP="$ac_cv_path_EGREP"
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5185$as_echo_n "checking for fgrep... " >&6; }
5186if ${ac_cv_path_FGREP+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5190   then ac_cv_path_FGREP="$GREP -F"
5191   else
5192     if test -z "$FGREP"; then
5193  ac_path_FGREP_found=false
5194  # Loop through the user's path and test for each of PROGNAME-LIST
5195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200    for ac_prog in fgrep; do
5201    for ac_exec_ext in '' $ac_executable_extensions; do
5202      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5203      as_fn_executable_p "$ac_path_FGREP" || continue
5204# Check for GNU ac_path_FGREP and select it if it is found.
5205  # Check for GNU $ac_path_FGREP
5206case `"$ac_path_FGREP" --version 2>&1` in
5207*GNU*)
5208  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5209*)
5210  ac_count=0
5211  $as_echo_n 0123456789 >"conftest.in"
5212  while :
5213  do
5214    cat "conftest.in" "conftest.in" >"conftest.tmp"
5215    mv "conftest.tmp" "conftest.in"
5216    cp "conftest.in" "conftest.nl"
5217    $as_echo 'FGREP' >> "conftest.nl"
5218    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220    as_fn_arith $ac_count + 1 && ac_count=$as_val
5221    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5222      # Best one so far, save it but keep looking for a better one
5223      ac_cv_path_FGREP="$ac_path_FGREP"
5224      ac_path_FGREP_max=$ac_count
5225    fi
5226    # 10*(2^10) chars as input seems more than enough
5227    test $ac_count -gt 10 && break
5228  done
5229  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230esac
5231
5232      $ac_path_FGREP_found && break 3
5233    done
5234  done
5235  done
5236IFS=$as_save_IFS
5237  if test -z "$ac_cv_path_FGREP"; then
5238    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5239  fi
5240else
5241  ac_cv_path_FGREP=$FGREP
5242fi
5243
5244   fi
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5247$as_echo "$ac_cv_path_FGREP" >&6; }
5248 FGREP="$ac_cv_path_FGREP"
5249
5250
5251test -z "$GREP" && GREP=grep
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271# Check whether --with-gnu-ld was given.
5272if test "${with_gnu_ld+set}" = set; then :
5273  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5274else
5275  with_gnu_ld=no
5276fi
5277
5278ac_prog=ld
5279if test yes = "$GCC"; then
5280  # Check if gcc -print-prog-name=ld gives a path.
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5282$as_echo_n "checking for ld used by $CC... " >&6; }
5283  case $host in
5284  *-*-mingw*)
5285    # gcc leaves a trailing carriage return, which upsets mingw
5286    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5287  *)
5288    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5289  esac
5290  case $ac_prog in
5291    # Accept absolute paths.
5292    [\\/]* | ?:[\\/]*)
5293      re_direlt='/[^/][^/]*/\.\./'
5294      # Canonicalize the pathname of ld
5295      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5296      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5297	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5298      done
5299      test -z "$LD" && LD=$ac_prog
5300      ;;
5301  "")
5302    # If it fails, then pretend we aren't using GCC.
5303    ac_prog=ld
5304    ;;
5305  *)
5306    # If it is relative, then search for the first ld in PATH.
5307    with_gnu_ld=unknown
5308    ;;
5309  esac
5310elif test yes = "$with_gnu_ld"; then
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5312$as_echo_n "checking for GNU ld... " >&6; }
5313else
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5315$as_echo_n "checking for non-GNU ld... " >&6; }
5316fi
5317if ${lt_cv_path_LD+:} false; then :
5318  $as_echo_n "(cached) " >&6
5319else
5320  if test -z "$LD"; then
5321  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5322  for ac_dir in $PATH; do
5323    IFS=$lt_save_ifs
5324    test -z "$ac_dir" && ac_dir=.
5325    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5326      lt_cv_path_LD=$ac_dir/$ac_prog
5327      # Check to see if the program is GNU ld.  I'd rather use --version,
5328      # but apparently some variants of GNU ld only accept -v.
5329      # Break only if it was the GNU/non-GNU ld that we prefer.
5330      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5331      *GNU* | *'with BFD'*)
5332	test no != "$with_gnu_ld" && break
5333	;;
5334      *)
5335	test yes != "$with_gnu_ld" && break
5336	;;
5337      esac
5338    fi
5339  done
5340  IFS=$lt_save_ifs
5341else
5342  lt_cv_path_LD=$LD # Let the user override the test with a path.
5343fi
5344fi
5345
5346LD=$lt_cv_path_LD
5347if test -n "$LD"; then
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5349$as_echo "$LD" >&6; }
5350else
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5356$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5357if ${lt_cv_prog_gnu_ld+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5361case `$LD -v 2>&1 </dev/null` in
5362*GNU* | *'with BFD'*)
5363  lt_cv_prog_gnu_ld=yes
5364  ;;
5365*)
5366  lt_cv_prog_gnu_ld=no
5367  ;;
5368esac
5369fi
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5371$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5372with_gnu_ld=$lt_cv_prog_gnu_ld
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5383$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5384if ${lt_cv_path_NM+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  if test -n "$NM"; then
5388  # Let the user override the test.
5389  lt_cv_path_NM=$NM
5390else
5391  lt_nm_to_check=${ac_tool_prefix}nm
5392  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5393    lt_nm_to_check="$lt_nm_to_check nm"
5394  fi
5395  for lt_tmp_nm in $lt_nm_to_check; do
5396    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5397    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5398      IFS=$lt_save_ifs
5399      test -z "$ac_dir" && ac_dir=.
5400      tmp_nm=$ac_dir/$lt_tmp_nm
5401      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5402	# Check to see if the nm accepts a BSD-compat flag.
5403	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5404	#   nm: unknown option "B" ignored
5405	# Tru64's nm complains that /dev/null is an invalid object file
5406	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5407	case $build_os in
5408	mingw*) lt_bad_file=conftest.nm/nofile ;;
5409	*) lt_bad_file=/dev/null ;;
5410	esac
5411	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5412	*$lt_bad_file* | *'Invalid file or object type'*)
5413	  lt_cv_path_NM="$tmp_nm -B"
5414	  break 2
5415	  ;;
5416	*)
5417	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5418	  */dev/null*)
5419	    lt_cv_path_NM="$tmp_nm -p"
5420	    break 2
5421	    ;;
5422	  *)
5423	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5424	    continue # so that we can try to find one that supports BSD flags
5425	    ;;
5426	  esac
5427	  ;;
5428	esac
5429      fi
5430    done
5431    IFS=$lt_save_ifs
5432  done
5433  : ${lt_cv_path_NM=no}
5434fi
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5437$as_echo "$lt_cv_path_NM" >&6; }
5438if test no != "$lt_cv_path_NM"; then
5439  NM=$lt_cv_path_NM
5440else
5441  # Didn't find any BSD compatible name lister, look for dumpbin.
5442  if test -n "$DUMPBIN"; then :
5443    # Let the user override the test.
5444  else
5445    if test -n "$ac_tool_prefix"; then
5446  for ac_prog in dumpbin "link -dump"
5447  do
5448    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if ${ac_cv_prog_DUMPBIN+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$DUMPBIN"; then
5456  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470  done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475DUMPBIN=$ac_cv_prog_DUMPBIN
5476if test -n "$DUMPBIN"; then
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5478$as_echo "$DUMPBIN" >&6; }
5479else
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484
5485    test -n "$DUMPBIN" && break
5486  done
5487fi
5488if test -z "$DUMPBIN"; then
5489  ac_ct_DUMPBIN=$DUMPBIN
5490  for ac_prog in dumpbin "link -dump"
5491do
5492  # Extract the first word of "$ac_prog", so it can be a program name with args.
5493set dummy $ac_prog; ac_word=$2
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
5496if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -n "$ac_ct_DUMPBIN"; then
5500  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507    for ac_exec_ext in '' $ac_executable_extensions; do
5508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511    break 2
5512  fi
5513done
5514  done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5520if test -n "$ac_ct_DUMPBIN"; then
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5522$as_echo "$ac_ct_DUMPBIN" >&6; }
5523else
5524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529  test -n "$ac_ct_DUMPBIN" && break
5530done
5531
5532  if test "x$ac_ct_DUMPBIN" = x; then
5533    DUMPBIN=":"
5534  else
5535    case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541    DUMPBIN=$ac_ct_DUMPBIN
5542  fi
5543fi
5544
5545    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5546    *COFF*)
5547      DUMPBIN="$DUMPBIN -symbols -headers"
5548      ;;
5549    *)
5550      DUMPBIN=:
5551      ;;
5552    esac
5553  fi
5554
5555  if test : != "$DUMPBIN"; then
5556    NM=$DUMPBIN
5557  fi
5558fi
5559test -z "$NM" && NM=nm
5560
5561
5562
5563
5564
5565
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5567$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5568if ${lt_cv_nm_interface+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  lt_cv_nm_interface="BSD nm"
5572  echo "int some_variable = 0;" > conftest.$ac_ext
5573  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5574  (eval "$ac_compile" 2>conftest.err)
5575  cat conftest.err >&5
5576  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5577  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5578  cat conftest.err >&5
5579  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5580  cat conftest.out >&5
5581  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5582    lt_cv_nm_interface="MS dumpbin"
5583  fi
5584  rm -f conftest*
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5587$as_echo "$lt_cv_nm_interface" >&6; }
5588
5589# find the maximum length of command line arguments
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5591$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5592if ${lt_cv_sys_max_cmd_len+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595    i=0
5596  teststring=ABCD
5597
5598  case $build_os in
5599  msdosdjgpp*)
5600    # On DJGPP, this test can blow up pretty badly due to problems in libc
5601    # (any single argument exceeding 2000 bytes causes a buffer overrun
5602    # during glob expansion).  Even if it were fixed, the result of this
5603    # check would be larger than it should be.
5604    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5605    ;;
5606
5607  gnu*)
5608    # Under GNU Hurd, this test is not required because there is
5609    # no limit to the length of command line arguments.
5610    # Libtool will interpret -1 as no limit whatsoever
5611    lt_cv_sys_max_cmd_len=-1;
5612    ;;
5613
5614  cygwin* | mingw* | cegcc*)
5615    # On Win9x/ME, this test blows up -- it succeeds, but takes
5616    # about 5 minutes as the teststring grows exponentially.
5617    # Worse, since 9x/ME are not pre-emptively multitasking,
5618    # you end up with a "frozen" computer, even though with patience
5619    # the test eventually succeeds (with a max line length of 256k).
5620    # Instead, let's just punt: use the minimum linelength reported by
5621    # all of the supported platforms: 8192 (on NT/2K/XP).
5622    lt_cv_sys_max_cmd_len=8192;
5623    ;;
5624
5625  mint*)
5626    # On MiNT this can take a long time and run out of memory.
5627    lt_cv_sys_max_cmd_len=8192;
5628    ;;
5629
5630  amigaos*)
5631    # On AmigaOS with pdksh, this test takes hours, literally.
5632    # So we just punt and use a minimum line length of 8192.
5633    lt_cv_sys_max_cmd_len=8192;
5634    ;;
5635
5636  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5637    # This has been around since 386BSD, at least.  Likely further.
5638    if test -x /sbin/sysctl; then
5639      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5640    elif test -x /usr/sbin/sysctl; then
5641      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5642    else
5643      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5644    fi
5645    # And add a safety zone
5646    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5647    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5648    ;;
5649
5650  interix*)
5651    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5652    lt_cv_sys_max_cmd_len=196608
5653    ;;
5654
5655  os2*)
5656    # The test takes a long time on OS/2.
5657    lt_cv_sys_max_cmd_len=8192
5658    ;;
5659
5660  osf*)
5661    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5662    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5663    # nice to cause kernel panics so lets avoid the loop below.
5664    # First set a reasonable default.
5665    lt_cv_sys_max_cmd_len=16384
5666    #
5667    if test -x /sbin/sysconfig; then
5668      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5669        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5670      esac
5671    fi
5672    ;;
5673  sco3.2v5*)
5674    lt_cv_sys_max_cmd_len=102400
5675    ;;
5676  sysv5* | sco5v6* | sysv4.2uw2*)
5677    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5678    if test -n "$kargmax"; then
5679      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5680    else
5681      lt_cv_sys_max_cmd_len=32768
5682    fi
5683    ;;
5684  *)
5685    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5686    if test -n "$lt_cv_sys_max_cmd_len" && \
5687       test undefined != "$lt_cv_sys_max_cmd_len"; then
5688      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5689      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5690    else
5691      # Make teststring a little bigger before we do anything with it.
5692      # a 1K string should be a reasonable start.
5693      for i in 1 2 3 4 5 6 7 8; do
5694        teststring=$teststring$teststring
5695      done
5696      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5697      # If test is not a shell built-in, we'll probably end up computing a
5698      # maximum length that is only half of the actual maximum length, but
5699      # we can't tell.
5700      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5701	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5702	      test 17 != "$i" # 1/2 MB should be enough
5703      do
5704        i=`expr $i + 1`
5705        teststring=$teststring$teststring
5706      done
5707      # Only check the string length outside the loop.
5708      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5709      teststring=
5710      # Add a significant safety factor because C++ compilers can tack on
5711      # massive amounts of additional arguments before passing them to the
5712      # linker.  It appears as though 1/2 is a usable value.
5713      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5714    fi
5715    ;;
5716  esac
5717
5718fi
5719
5720if test -n "$lt_cv_sys_max_cmd_len"; then
5721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5722$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5723else
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5725$as_echo "none" >&6; }
5726fi
5727max_cmd_len=$lt_cv_sys_max_cmd_len
5728
5729
5730
5731
5732
5733
5734: ${CP="cp -f"}
5735: ${MV="mv -f"}
5736: ${RM="rm -f"}
5737
5738if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5739  lt_unset=unset
5740else
5741  lt_unset=false
5742fi
5743
5744
5745
5746
5747
5748# test EBCDIC or ASCII
5749case `echo X|tr X '\101'` in
5750 A) # ASCII based system
5751    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5752  lt_SP2NL='tr \040 \012'
5753  lt_NL2SP='tr \015\012 \040\040'
5754  ;;
5755 *) # EBCDIC based system
5756  lt_SP2NL='tr \100 \n'
5757  lt_NL2SP='tr \r\n \100\100'
5758  ;;
5759esac
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5770$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5771if ${lt_cv_to_host_file_cmd+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  case $host in
5775  *-*-mingw* )
5776    case $build in
5777      *-*-mingw* ) # actually msys
5778        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5779        ;;
5780      *-*-cygwin* )
5781        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5782        ;;
5783      * ) # otherwise, assume *nix
5784        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5785        ;;
5786    esac
5787    ;;
5788  *-*-cygwin* )
5789    case $build in
5790      *-*-mingw* ) # actually msys
5791        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5792        ;;
5793      *-*-cygwin* )
5794        lt_cv_to_host_file_cmd=func_convert_file_noop
5795        ;;
5796      * ) # otherwise, assume *nix
5797        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5798        ;;
5799    esac
5800    ;;
5801  * ) # unhandled hosts (and "normal" native builds)
5802    lt_cv_to_host_file_cmd=func_convert_file_noop
5803    ;;
5804esac
5805
5806fi
5807
5808to_host_file_cmd=$lt_cv_to_host_file_cmd
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5810$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5811
5812
5813
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5817$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5818if ${lt_cv_to_tool_file_cmd+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  #assume ordinary cross tools, or native build.
5822lt_cv_to_tool_file_cmd=func_convert_file_noop
5823case $host in
5824  *-*-mingw* )
5825    case $build in
5826      *-*-mingw* ) # actually msys
5827        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5828        ;;
5829    esac
5830    ;;
5831esac
5832
5833fi
5834
5835to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5837$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5838
5839
5840
5841
5842
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5844$as_echo_n "checking for $LD option to reload object files... " >&6; }
5845if ${lt_cv_ld_reload_flag+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  lt_cv_ld_reload_flag='-r'
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5851$as_echo "$lt_cv_ld_reload_flag" >&6; }
5852reload_flag=$lt_cv_ld_reload_flag
5853case $reload_flag in
5854"" | " "*) ;;
5855*) reload_flag=" $reload_flag" ;;
5856esac
5857reload_cmds='$LD$reload_flag -o $output$reload_objs'
5858case $host_os in
5859  cygwin* | mingw* | pw32* | cegcc*)
5860    if test yes != "$GCC"; then
5861      reload_cmds=false
5862    fi
5863    ;;
5864  darwin*)
5865    if test yes = "$GCC"; then
5866      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5867    else
5868      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5869    fi
5870    ;;
5871esac
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881if test -n "$ac_tool_prefix"; then
5882  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}objdump; ac_word=$2
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885$as_echo_n "checking for $ac_word... " >&6; }
5886if ${ac_cv_prog_OBJDUMP+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  if test -n "$OBJDUMP"; then
5890  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897    for ac_exec_ext in '' $ac_executable_extensions; do
5898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904  done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909OBJDUMP=$ac_cv_prog_OBJDUMP
5910if test -n "$OBJDUMP"; then
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5912$as_echo "$OBJDUMP" >&6; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917
5918
5919fi
5920if test -z "$ac_cv_prog_OBJDUMP"; then
5921  ac_ct_OBJDUMP=$OBJDUMP
5922  # Extract the first word of "objdump", so it can be a program name with args.
5923set dummy objdump; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -n "$ac_ct_OBJDUMP"; then
5930  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944  done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5950if test -n "$ac_ct_OBJDUMP"; then
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5952$as_echo "$ac_ct_OBJDUMP" >&6; }
5953else
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958  if test "x$ac_ct_OBJDUMP" = x; then
5959    OBJDUMP="false"
5960  else
5961    case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967    OBJDUMP=$ac_ct_OBJDUMP
5968  fi
5969else
5970  OBJDUMP="$ac_cv_prog_OBJDUMP"
5971fi
5972
5973test -z "$OBJDUMP" && OBJDUMP=objdump
5974
5975
5976
5977
5978
5979
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5981$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5982if ${lt_cv_deplibs_check_method+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  lt_cv_file_magic_cmd='$MAGIC_CMD'
5986lt_cv_file_magic_test_file=
5987lt_cv_deplibs_check_method='unknown'
5988# Need to set the preceding variable on all platforms that support
5989# interlibrary dependencies.
5990# 'none' -- dependencies not supported.
5991# 'unknown' -- same as none, but documents that we really don't know.
5992# 'pass_all' -- all dependencies passed with no checks.
5993# 'test_compile' -- check by making test program.
5994# 'file_magic [[regex]]' -- check by looking for files in library path
5995# that responds to the $file_magic_cmd with a given extended regex.
5996# If you have 'file' or equivalent on your system and you're not sure
5997# whether 'pass_all' will *always* work, you probably want this one.
5998
5999case $host_os in
6000aix[4-9]*)
6001  lt_cv_deplibs_check_method=pass_all
6002  ;;
6003
6004beos*)
6005  lt_cv_deplibs_check_method=pass_all
6006  ;;
6007
6008bsdi[45]*)
6009  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010  lt_cv_file_magic_cmd='/usr/bin/file -L'
6011  lt_cv_file_magic_test_file=/shlib/libc.so
6012  ;;
6013
6014cygwin*)
6015  # func_win32_libid is a shell function defined in ltmain.sh
6016  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017  lt_cv_file_magic_cmd='func_win32_libid'
6018  ;;
6019
6020mingw* | pw32*)
6021  # Base MSYS/MinGW do not provide the 'file' command needed by
6022  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023  # unless we find 'file', for example because we are cross-compiling.
6024  if ( file / ) >/dev/null 2>&1; then
6025    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6026    lt_cv_file_magic_cmd='func_win32_libid'
6027  else
6028    # Keep this pattern in sync with the one in func_win32_libid.
6029    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6030    lt_cv_file_magic_cmd='$OBJDUMP -f'
6031  fi
6032  ;;
6033
6034cegcc*)
6035  # use the weaker test based on 'objdump'. See mingw*.
6036  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6037  lt_cv_file_magic_cmd='$OBJDUMP -f'
6038  ;;
6039
6040darwin* | rhapsody*)
6041  lt_cv_deplibs_check_method=pass_all
6042  ;;
6043
6044freebsd* | dragonfly*)
6045  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6046    case $host_cpu in
6047    i*86 )
6048      # Not sure whether the presence of OpenBSD here was a mistake.
6049      # Let's accept both of them until this is cleared up.
6050      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6051      lt_cv_file_magic_cmd=/usr/bin/file
6052      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6053      ;;
6054    esac
6055  else
6056    lt_cv_deplibs_check_method=pass_all
6057  fi
6058  ;;
6059
6060haiku*)
6061  lt_cv_deplibs_check_method=pass_all
6062  ;;
6063
6064hpux10.20* | hpux11*)
6065  lt_cv_file_magic_cmd=/usr/bin/file
6066  case $host_cpu in
6067  ia64*)
6068    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6069    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6070    ;;
6071  hppa*64*)
6072    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]'
6073    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6074    ;;
6075  *)
6076    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6077    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6078    ;;
6079  esac
6080  ;;
6081
6082interix[3-9]*)
6083  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6084  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6085  ;;
6086
6087irix5* | irix6* | nonstopux*)
6088  case $LD in
6089  *-32|*"-32 ") libmagic=32-bit;;
6090  *-n32|*"-n32 ") libmagic=N32;;
6091  *-64|*"-64 ") libmagic=64-bit;;
6092  *) libmagic=never-match;;
6093  esac
6094  lt_cv_deplibs_check_method=pass_all
6095  ;;
6096
6097# This must be glibc/ELF.
6098linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6099  lt_cv_deplibs_check_method=pass_all
6100  ;;
6101
6102netbsd*)
6103  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6104    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105  else
6106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6107  fi
6108  ;;
6109
6110newos6*)
6111  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6112  lt_cv_file_magic_cmd=/usr/bin/file
6113  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6114  ;;
6115
6116*nto* | *qnx*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120openbsd* | bitrig*)
6121  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6122    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6123  else
6124    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6125  fi
6126  ;;
6127
6128osf3* | osf4* | osf5*)
6129  lt_cv_deplibs_check_method=pass_all
6130  ;;
6131
6132rdos*)
6133  lt_cv_deplibs_check_method=pass_all
6134  ;;
6135
6136solaris*)
6137  lt_cv_deplibs_check_method=pass_all
6138  ;;
6139
6140sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6141  lt_cv_deplibs_check_method=pass_all
6142  ;;
6143
6144sysv4 | sysv4.3*)
6145  case $host_vendor in
6146  motorola)
6147    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]'
6148    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6149    ;;
6150  ncr)
6151    lt_cv_deplibs_check_method=pass_all
6152    ;;
6153  sequent)
6154    lt_cv_file_magic_cmd='/bin/file'
6155    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6156    ;;
6157  sni)
6158    lt_cv_file_magic_cmd='/bin/file'
6159    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6160    lt_cv_file_magic_test_file=/lib/libc.so
6161    ;;
6162  siemens)
6163    lt_cv_deplibs_check_method=pass_all
6164    ;;
6165  pc)
6166    lt_cv_deplibs_check_method=pass_all
6167    ;;
6168  esac
6169  ;;
6170
6171tpf*)
6172  lt_cv_deplibs_check_method=pass_all
6173  ;;
6174os2*)
6175  lt_cv_deplibs_check_method=pass_all
6176  ;;
6177esac
6178
6179fi
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6181$as_echo "$lt_cv_deplibs_check_method" >&6; }
6182
6183file_magic_glob=
6184want_nocaseglob=no
6185if test "$build" = "$host"; then
6186  case $host_os in
6187  mingw* | pw32*)
6188    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6189      want_nocaseglob=yes
6190    else
6191      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6192    fi
6193    ;;
6194  esac
6195fi
6196
6197file_magic_cmd=$lt_cv_file_magic_cmd
6198deplibs_check_method=$lt_cv_deplibs_check_method
6199test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222if test -n "$ac_tool_prefix"; then
6223  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6224set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
6227if ${ac_cv_prog_DLLTOOL+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  if test -n "$DLLTOOL"; then
6231  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250DLLTOOL=$ac_cv_prog_DLLTOOL
6251if test -n "$DLLTOOL"; then
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6253$as_echo "$DLLTOOL" >&6; }
6254else
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259
6260fi
6261if test -z "$ac_cv_prog_DLLTOOL"; then
6262  ac_ct_DLLTOOL=$DLLTOOL
6263  # Extract the first word of "dlltool", so it can be a program name with args.
6264set dummy dlltool; ac_word=$2
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  if test -n "$ac_ct_DLLTOOL"; then
6271  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278    for ac_exec_ext in '' $ac_executable_extensions; do
6279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285  done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6291if test -n "$ac_ct_DLLTOOL"; then
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6293$as_echo "$ac_ct_DLLTOOL" >&6; }
6294else
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296$as_echo "no" >&6; }
6297fi
6298
6299  if test "x$ac_ct_DLLTOOL" = x; then
6300    DLLTOOL="false"
6301  else
6302    case $cross_compiling:$ac_tool_warned in
6303yes:)
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306ac_tool_warned=yes ;;
6307esac
6308    DLLTOOL=$ac_ct_DLLTOOL
6309  fi
6310else
6311  DLLTOOL="$ac_cv_prog_DLLTOOL"
6312fi
6313
6314test -z "$DLLTOOL" && DLLTOOL=dlltool
6315
6316
6317
6318
6319
6320
6321
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6323$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6324if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  lt_cv_sharedlib_from_linklib_cmd='unknown'
6328
6329case $host_os in
6330cygwin* | mingw* | pw32* | cegcc*)
6331  # two different shell functions defined in ltmain.sh;
6332  # decide which one to use based on capabilities of $DLLTOOL
6333  case `$DLLTOOL --help 2>&1` in
6334  *--identify-strict*)
6335    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6336    ;;
6337  *)
6338    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6339    ;;
6340  esac
6341  ;;
6342*)
6343  # fallback: assume linklib IS sharedlib
6344  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6345  ;;
6346esac
6347
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6350$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6351sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6352test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6353
6354
6355
6356
6357
6358
6359
6360if test -n "$ac_tool_prefix"; then
6361  for ac_prog in ar
6362  do
6363    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if ${ac_cv_prog_AR+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  if test -n "$AR"; then
6371  ac_cv_prog_AR="$AR" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390AR=$ac_cv_prog_AR
6391if test -n "$AR"; then
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6393$as_echo "$AR" >&6; }
6394else
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399
6400    test -n "$AR" && break
6401  done
6402fi
6403if test -z "$AR"; then
6404  ac_ct_AR=$AR
6405  for ac_prog in ar
6406do
6407  # Extract the first word of "$ac_prog", so it can be a program name with args.
6408set dummy $ac_prog; ac_word=$2
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410$as_echo_n "checking for $ac_word... " >&6; }
6411if ${ac_cv_prog_ac_ct_AR+:} false; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  if test -n "$ac_ct_AR"; then
6415  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6416else
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420  IFS=$as_save_IFS
6421  test -z "$as_dir" && as_dir=.
6422    for ac_exec_ext in '' $ac_executable_extensions; do
6423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424    ac_cv_prog_ac_ct_AR="$ac_prog"
6425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426    break 2
6427  fi
6428done
6429  done
6430IFS=$as_save_IFS
6431
6432fi
6433fi
6434ac_ct_AR=$ac_cv_prog_ac_ct_AR
6435if test -n "$ac_ct_AR"; then
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6437$as_echo "$ac_ct_AR" >&6; }
6438else
6439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440$as_echo "no" >&6; }
6441fi
6442
6443
6444  test -n "$ac_ct_AR" && break
6445done
6446
6447  if test "x$ac_ct_AR" = x; then
6448    AR="false"
6449  else
6450    case $cross_compiling:$ac_tool_warned in
6451yes:)
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454ac_tool_warned=yes ;;
6455esac
6456    AR=$ac_ct_AR
6457  fi
6458fi
6459
6460: ${AR=ar}
6461: ${AR_FLAGS=cru}
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6474$as_echo_n "checking for archiver @FILE support... " >&6; }
6475if ${lt_cv_ar_at_file+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  lt_cv_ar_at_file=no
6479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480/* end confdefs.h.  */
6481
6482int
6483main ()
6484{
6485
6486  ;
6487  return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_compile "$LINENO"; then :
6491  echo conftest.$ac_objext > conftest.lst
6492      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6493      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6494  (eval $lt_ar_try) 2>&5
6495  ac_status=$?
6496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497  test $ac_status = 0; }
6498      if test 0 -eq "$ac_status"; then
6499	# Ensure the archiver fails upon bogus file names.
6500	rm -f conftest.$ac_objext libconftest.a
6501	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6502  (eval $lt_ar_try) 2>&5
6503  ac_status=$?
6504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505  test $ac_status = 0; }
6506	if test 0 -ne "$ac_status"; then
6507          lt_cv_ar_at_file=@
6508        fi
6509      fi
6510      rm -f conftest.* libconftest.a
6511
6512fi
6513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6517$as_echo "$lt_cv_ar_at_file" >&6; }
6518
6519if test no = "$lt_cv_ar_at_file"; then
6520  archiver_list_spec=
6521else
6522  archiver_list_spec=$lt_cv_ar_at_file
6523fi
6524
6525
6526
6527
6528
6529
6530
6531if test -n "$ac_tool_prefix"; then
6532  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6533set dummy ${ac_tool_prefix}strip; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if ${ac_cv_prog_STRIP+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  if test -n "$STRIP"; then
6540  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545  IFS=$as_save_IFS
6546  test -z "$as_dir" && as_dir=.
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559STRIP=$ac_cv_prog_STRIP
6560if test -n "$STRIP"; then
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6562$as_echo "$STRIP" >&6; }
6563else
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569fi
6570if test -z "$ac_cv_prog_STRIP"; then
6571  ac_ct_STRIP=$STRIP
6572  # Extract the first word of "strip", so it can be a program name with args.
6573set dummy strip; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$ac_ct_STRIP"; then
6580  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_ac_ct_STRIP="strip"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6600if test -n "$ac_ct_STRIP"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6602$as_echo "$ac_ct_STRIP" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608  if test "x$ac_ct_STRIP" = x; then
6609    STRIP=":"
6610  else
6611    case $cross_compiling:$ac_tool_warned in
6612yes:)
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615ac_tool_warned=yes ;;
6616esac
6617    STRIP=$ac_ct_STRIP
6618  fi
6619else
6620  STRIP="$ac_cv_prog_STRIP"
6621fi
6622
6623test -z "$STRIP" && STRIP=:
6624
6625
6626
6627
6628
6629
6630if test -n "$ac_tool_prefix"; then
6631  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6632set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634$as_echo_n "checking for $ac_word... " >&6; }
6635if ${ac_cv_prog_RANLIB+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  if test -n "$RANLIB"; then
6639  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646    for ac_exec_ext in '' $ac_executable_extensions; do
6647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653  done
6654IFS=$as_save_IFS
6655
6656fi
6657fi
6658RANLIB=$ac_cv_prog_RANLIB
6659if test -n "$RANLIB"; then
6660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6661$as_echo "$RANLIB" >&6; }
6662else
6663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664$as_echo "no" >&6; }
6665fi
6666
6667
6668fi
6669if test -z "$ac_cv_prog_RANLIB"; then
6670  ac_ct_RANLIB=$RANLIB
6671  # Extract the first word of "ranlib", so it can be a program name with args.
6672set dummy ranlib; ac_word=$2
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674$as_echo_n "checking for $ac_word... " >&6; }
6675if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  if test -n "$ac_ct_RANLIB"; then
6679  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684  IFS=$as_save_IFS
6685  test -z "$as_dir" && as_dir=.
6686    for ac_exec_ext in '' $ac_executable_extensions; do
6687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688    ac_cv_prog_ac_ct_RANLIB="ranlib"
6689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690    break 2
6691  fi
6692done
6693  done
6694IFS=$as_save_IFS
6695
6696fi
6697fi
6698ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6699if test -n "$ac_ct_RANLIB"; then
6700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6701$as_echo "$ac_ct_RANLIB" >&6; }
6702else
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704$as_echo "no" >&6; }
6705fi
6706
6707  if test "x$ac_ct_RANLIB" = x; then
6708    RANLIB=":"
6709  else
6710    case $cross_compiling:$ac_tool_warned in
6711yes:)
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714ac_tool_warned=yes ;;
6715esac
6716    RANLIB=$ac_ct_RANLIB
6717  fi
6718else
6719  RANLIB="$ac_cv_prog_RANLIB"
6720fi
6721
6722test -z "$RANLIB" && RANLIB=:
6723
6724
6725
6726
6727
6728
6729# Determine commands to create old-style static archives.
6730old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6731old_postinstall_cmds='chmod 644 $oldlib'
6732old_postuninstall_cmds=
6733
6734if test -n "$RANLIB"; then
6735  case $host_os in
6736  bitrig* | openbsd*)
6737    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6738    ;;
6739  *)
6740    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6741    ;;
6742  esac
6743  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6744fi
6745
6746case $host_os in
6747  darwin*)
6748    lock_old_archive_extraction=yes ;;
6749  *)
6750    lock_old_archive_extraction=no ;;
6751esac
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791# If no C compiler was specified, use CC.
6792LTCC=${LTCC-"$CC"}
6793
6794# If no C compiler flags were specified, use CFLAGS.
6795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6796
6797# Allow CC to be a program name with arguments.
6798compiler=$CC
6799
6800
6801# Check for command to grab the raw symbol name followed by C symbol from nm.
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6803$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6804if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807
6808# These are sane defaults that work on at least a few old systems.
6809# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6810
6811# Character class describing NM global symbol codes.
6812symcode='[BCDEGRST]'
6813
6814# Regexp to match symbols that can be accessed directly from C.
6815sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6816
6817# Define system-specific variables.
6818case $host_os in
6819aix*)
6820  symcode='[BCDT]'
6821  ;;
6822cygwin* | mingw* | pw32* | cegcc*)
6823  symcode='[ABCDGISTW]'
6824  ;;
6825hpux*)
6826  if test ia64 = "$host_cpu"; then
6827    symcode='[ABCDEGRST]'
6828  fi
6829  ;;
6830irix* | nonstopux*)
6831  symcode='[BCDEGRST]'
6832  ;;
6833osf*)
6834  symcode='[BCDEGQRST]'
6835  ;;
6836solaris*)
6837  symcode='[BDRT]'
6838  ;;
6839sco3.2v5*)
6840  symcode='[DT]'
6841  ;;
6842sysv4.2uw2*)
6843  symcode='[DT]'
6844  ;;
6845sysv5* | sco5v6* | unixware* | OpenUNIX*)
6846  symcode='[ABDT]'
6847  ;;
6848sysv4)
6849  symcode='[DFNSTU]'
6850  ;;
6851esac
6852
6853# If we're using GNU nm, then use its standard symbol codes.
6854case `$NM -V 2>&1` in
6855*GNU* | *'with BFD'*)
6856  symcode='[ABCDGIRSTW]' ;;
6857esac
6858
6859if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860  # Gets list of data symbols to import.
6861  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6862  # Adjust the below global symbol transforms to fixup imported variables.
6863  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6864  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6865  lt_c_name_lib_hook="\
6866  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6867  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6868else
6869  # Disable hooks by default.
6870  lt_cv_sys_global_symbol_to_import=
6871  lt_cdecl_hook=
6872  lt_c_name_hook=
6873  lt_c_name_lib_hook=
6874fi
6875
6876# Transform an extracted symbol line into a proper C declaration.
6877# Some systems (esp. on ia64) link data and code symbols differently,
6878# so use this general approach.
6879lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6880$lt_cdecl_hook\
6881" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6882" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6883
6884# Transform an extracted symbol line into symbol name and symbol address
6885lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6886$lt_c_name_hook\
6887" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6888" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6889
6890# Transform an extracted symbol line into symbol name with lib prefix and
6891# symbol address.
6892lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6893$lt_c_name_lib_hook\
6894" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6895" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6896" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6897
6898# Handle CRLF in mingw tool chain
6899opt_cr=
6900case $build_os in
6901mingw*)
6902  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6903  ;;
6904esac
6905
6906# Try without a prefix underscore, then with it.
6907for ac_symprfx in "" "_"; do
6908
6909  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6910  symxfrm="\\1 $ac_symprfx\\2 \\2"
6911
6912  # Write the raw and C identifiers.
6913  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914    # Fake it for dumpbin and say T for any non-static function,
6915    # D for any global variable and I for any imported variable.
6916    # Also find C++ and __fastcall symbols from MSVC++,
6917    # which start with @ or ?.
6918    lt_cv_sys_global_symbol_pipe="$AWK '"\
6919"     {last_section=section; section=\$ 3};"\
6920"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6921"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6922"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6923"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6924"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6925"     \$ 0!~/External *\|/{next};"\
6926"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6927"     {if(hide[section]) next};"\
6928"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6929"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6930"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6931"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6932"     ' prfx=^$ac_symprfx"
6933  else
6934    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6935  fi
6936  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6937
6938  # Check to see that the pipe works correctly.
6939  pipe_works=no
6940
6941  rm -f conftest*
6942  cat > conftest.$ac_ext <<_LT_EOF
6943#ifdef __cplusplus
6944extern "C" {
6945#endif
6946char nm_test_var;
6947void nm_test_func(void);
6948void nm_test_func(void){}
6949#ifdef __cplusplus
6950}
6951#endif
6952int main(){nm_test_var='a';nm_test_func();return(0);}
6953_LT_EOF
6954
6955  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956  (eval $ac_compile) 2>&5
6957  ac_status=$?
6958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959  test $ac_status = 0; }; then
6960    # Now try to grab the symbols.
6961    nlist=conftest.nm
6962    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6963  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6964  ac_status=$?
6965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966  test $ac_status = 0; } && test -s "$nlist"; then
6967      # Try sorting and uniquifying the output.
6968      if sort "$nlist" | uniq > "$nlist"T; then
6969	mv -f "$nlist"T "$nlist"
6970      else
6971	rm -f "$nlist"T
6972      fi
6973
6974      # Make sure that we snagged all the symbols we need.
6975      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6976	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6977	  cat <<_LT_EOF > conftest.$ac_ext
6978/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6979#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6980/* DATA imports from DLLs on WIN32 can't be const, because runtime
6981   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6982# define LT_DLSYM_CONST
6983#elif defined __osf__
6984/* This system does not cope well with relocations in const data.  */
6985# define LT_DLSYM_CONST
6986#else
6987# define LT_DLSYM_CONST const
6988#endif
6989
6990#ifdef __cplusplus
6991extern "C" {
6992#endif
6993
6994_LT_EOF
6995	  # Now generate the symbol file.
6996	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6997
6998	  cat <<_LT_EOF >> conftest.$ac_ext
6999
7000/* The mapping between symbol names and symbols.  */
7001LT_DLSYM_CONST struct {
7002  const char *name;
7003  void       *address;
7004}
7005lt__PROGRAM__LTX_preloaded_symbols[] =
7006{
7007  { "@PROGRAM@", (void *) 0 },
7008_LT_EOF
7009	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7010	  cat <<\_LT_EOF >> conftest.$ac_ext
7011  {0, (void *) 0}
7012};
7013
7014/* This works around a problem in FreeBSD linker */
7015#ifdef FREEBSD_WORKAROUND
7016static const void *lt_preloaded_setup() {
7017  return lt__PROGRAM__LTX_preloaded_symbols;
7018}
7019#endif
7020
7021#ifdef __cplusplus
7022}
7023#endif
7024_LT_EOF
7025	  # Now try linking the two files.
7026	  mv conftest.$ac_objext conftstm.$ac_objext
7027	  lt_globsym_save_LIBS=$LIBS
7028	  lt_globsym_save_CFLAGS=$CFLAGS
7029	  LIBS=conftstm.$ac_objext
7030	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7031	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7032  (eval $ac_link) 2>&5
7033  ac_status=$?
7034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7036	    pipe_works=yes
7037	  fi
7038	  LIBS=$lt_globsym_save_LIBS
7039	  CFLAGS=$lt_globsym_save_CFLAGS
7040	else
7041	  echo "cannot find nm_test_func in $nlist" >&5
7042	fi
7043      else
7044	echo "cannot find nm_test_var in $nlist" >&5
7045      fi
7046    else
7047      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7048    fi
7049  else
7050    echo "$progname: failed program was:" >&5
7051    cat conftest.$ac_ext >&5
7052  fi
7053  rm -rf conftest* conftst*
7054
7055  # Do not use the global_symbol_pipe unless it works.
7056  if test yes = "$pipe_works"; then
7057    break
7058  else
7059    lt_cv_sys_global_symbol_pipe=
7060  fi
7061done
7062
7063fi
7064
7065if test -z "$lt_cv_sys_global_symbol_pipe"; then
7066  lt_cv_sys_global_symbol_to_cdecl=
7067fi
7068if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7070$as_echo "failed" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7073$as_echo "ok" >&6; }
7074fi
7075
7076# Response file support.
7077if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7078  nm_file_list_spec='@'
7079elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7080  nm_file_list_spec='@'
7081fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7120$as_echo_n "checking for sysroot... " >&6; }
7121
7122# Check whether --with-sysroot was given.
7123if test "${with_sysroot+set}" = set; then :
7124  withval=$with_sysroot;
7125else
7126  with_sysroot=no
7127fi
7128
7129
7130lt_sysroot=
7131case $with_sysroot in #(
7132 yes)
7133   if test yes = "$GCC"; then
7134     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7135   fi
7136   ;; #(
7137 /*)
7138   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7139   ;; #(
7140 no|'')
7141   ;; #(
7142 *)
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7144$as_echo "$with_sysroot" >&6; }
7145   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7146   ;;
7147esac
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7150$as_echo "${lt_sysroot:-no}" >&6; }
7151
7152
7153
7154
7155
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7157$as_echo_n "checking for a working dd... " >&6; }
7158if ${ac_cv_path_lt_DD+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  printf 0123456789abcdef0123456789abcdef >conftest.i
7162cat conftest.i conftest.i >conftest2.i
7163: ${lt_DD:=$DD}
7164if test -z "$lt_DD"; then
7165  ac_path_lt_DD_found=false
7166  # Loop through the user's path and test for each of PROGNAME-LIST
7167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170  IFS=$as_save_IFS
7171  test -z "$as_dir" && as_dir=.
7172    for ac_prog in dd; do
7173    for ac_exec_ext in '' $ac_executable_extensions; do
7174      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7175      as_fn_executable_p "$ac_path_lt_DD" || continue
7176if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7177  cmp -s conftest.i conftest.out \
7178  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7179fi
7180      $ac_path_lt_DD_found && break 3
7181    done
7182  done
7183  done
7184IFS=$as_save_IFS
7185  if test -z "$ac_cv_path_lt_DD"; then
7186    :
7187  fi
7188else
7189  ac_cv_path_lt_DD=$lt_DD
7190fi
7191
7192rm -f conftest.i conftest2.i conftest.out
7193fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7195$as_echo "$ac_cv_path_lt_DD" >&6; }
7196
7197
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7199$as_echo_n "checking how to truncate binary pipes... " >&6; }
7200if ${lt_cv_truncate_bin+:} false; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  printf 0123456789abcdef0123456789abcdef >conftest.i
7204cat conftest.i conftest.i >conftest2.i
7205lt_cv_truncate_bin=
7206if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7207  cmp -s conftest.i conftest.out \
7208  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7209fi
7210rm -f conftest.i conftest2.i conftest.out
7211test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7212fi
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7214$as_echo "$lt_cv_truncate_bin" >&6; }
7215
7216
7217
7218
7219
7220
7221# Check whether --enable-libtool-lock was given.
7222if test "${enable_libtool_lock+set}" = set; then :
7223  enableval=$enable_libtool_lock;
7224fi
7225
7226test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7227
7228# Some flags need to be propagated to the compiler or linker for good
7229# libtool support.
7230case $host in
7231ia64-*-hpux*)
7232  # Find out what ABI is being produced by ac_compile, and set mode
7233  # options accordingly.
7234  echo 'int i;' > conftest.$ac_ext
7235  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236  (eval $ac_compile) 2>&5
7237  ac_status=$?
7238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239  test $ac_status = 0; }; then
7240    case `/usr/bin/file conftest.$ac_objext` in
7241      *ELF-32*)
7242	HPUX_IA64_MODE=32
7243	;;
7244      *ELF-64*)
7245	HPUX_IA64_MODE=64
7246	;;
7247    esac
7248  fi
7249  rm -rf conftest*
7250  ;;
7251*-*-irix6*)
7252  # Find out what ABI is being produced by ac_compile, and set linker
7253  # options accordingly.
7254  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7255  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7256  (eval $ac_compile) 2>&5
7257  ac_status=$?
7258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259  test $ac_status = 0; }; then
7260    if test yes = "$lt_cv_prog_gnu_ld"; then
7261      case `/usr/bin/file conftest.$ac_objext` in
7262	*32-bit*)
7263	  LD="${LD-ld} -melf32bsmip"
7264	  ;;
7265	*N32*)
7266	  LD="${LD-ld} -melf32bmipn32"
7267	  ;;
7268	*64-bit*)
7269	  LD="${LD-ld} -melf64bmip"
7270	;;
7271      esac
7272    else
7273      case `/usr/bin/file conftest.$ac_objext` in
7274	*32-bit*)
7275	  LD="${LD-ld} -32"
7276	  ;;
7277	*N32*)
7278	  LD="${LD-ld} -n32"
7279	  ;;
7280	*64-bit*)
7281	  LD="${LD-ld} -64"
7282	  ;;
7283      esac
7284    fi
7285  fi
7286  rm -rf conftest*
7287  ;;
7288
7289mips64*-*linux*)
7290  # Find out what ABI is being produced by ac_compile, and set linker
7291  # options accordingly.
7292  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7294  (eval $ac_compile) 2>&5
7295  ac_status=$?
7296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297  test $ac_status = 0; }; then
7298    emul=elf
7299    case `/usr/bin/file conftest.$ac_objext` in
7300      *32-bit*)
7301	emul="${emul}32"
7302	;;
7303      *64-bit*)
7304	emul="${emul}64"
7305	;;
7306    esac
7307    case `/usr/bin/file conftest.$ac_objext` in
7308      *MSB*)
7309	emul="${emul}btsmip"
7310	;;
7311      *LSB*)
7312	emul="${emul}ltsmip"
7313	;;
7314    esac
7315    case `/usr/bin/file conftest.$ac_objext` in
7316      *N32*)
7317	emul="${emul}n32"
7318	;;
7319    esac
7320    LD="${LD-ld} -m $emul"
7321  fi
7322  rm -rf conftest*
7323  ;;
7324
7325x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7326s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7327  # Find out what ABI is being produced by ac_compile, and set linker
7328  # options accordingly.  Note that the listed cases only cover the
7329  # situations where additional linker options are needed (such as when
7330  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7331  # vice versa); the common cases where no linker options are needed do
7332  # not appear in the list.
7333  echo 'int i;' > conftest.$ac_ext
7334  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335  (eval $ac_compile) 2>&5
7336  ac_status=$?
7337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338  test $ac_status = 0; }; then
7339    case `/usr/bin/file conftest.o` in
7340      *32-bit*)
7341	case $host in
7342	  x86_64-*kfreebsd*-gnu)
7343	    LD="${LD-ld} -m elf_i386_fbsd"
7344	    ;;
7345	  x86_64-*linux*)
7346	    case `/usr/bin/file conftest.o` in
7347	      *x86-64*)
7348		LD="${LD-ld} -m elf32_x86_64"
7349		;;
7350	      *)
7351		LD="${LD-ld} -m elf_i386"
7352		;;
7353	    esac
7354	    ;;
7355	  powerpc64le-*linux*)
7356	    LD="${LD-ld} -m elf32lppclinux"
7357	    ;;
7358	  powerpc64-*linux*)
7359	    LD="${LD-ld} -m elf32ppclinux"
7360	    ;;
7361	  s390x-*linux*)
7362	    LD="${LD-ld} -m elf_s390"
7363	    ;;
7364	  sparc64-*linux*)
7365	    LD="${LD-ld} -m elf32_sparc"
7366	    ;;
7367	esac
7368	;;
7369      *64-bit*)
7370	case $host in
7371	  x86_64-*kfreebsd*-gnu)
7372	    LD="${LD-ld} -m elf_x86_64_fbsd"
7373	    ;;
7374	  x86_64-*linux*)
7375	    LD="${LD-ld} -m elf_x86_64"
7376	    ;;
7377	  powerpcle-*linux*)
7378	    LD="${LD-ld} -m elf64lppc"
7379	    ;;
7380	  powerpc-*linux*)
7381	    LD="${LD-ld} -m elf64ppc"
7382	    ;;
7383	  s390*-*linux*|s390*-*tpf*)
7384	    LD="${LD-ld} -m elf64_s390"
7385	    ;;
7386	  sparc*-*linux*)
7387	    LD="${LD-ld} -m elf64_sparc"
7388	    ;;
7389	esac
7390	;;
7391    esac
7392  fi
7393  rm -rf conftest*
7394  ;;
7395
7396*-*-sco3.2v5*)
7397  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7398  SAVE_CFLAGS=$CFLAGS
7399  CFLAGS="$CFLAGS -belf"
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7401$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7402if ${lt_cv_cc_needs_belf+:} false; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  ac_ext=c
7406ac_cpp='$CPP $CPPFLAGS'
7407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410
7411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413
7414int
7415main ()
7416{
7417
7418  ;
7419  return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_link "$LINENO"; then :
7423  lt_cv_cc_needs_belf=yes
7424else
7425  lt_cv_cc_needs_belf=no
7426fi
7427rm -f core conftest.err conftest.$ac_objext \
7428    conftest$ac_exeext conftest.$ac_ext
7429     ac_ext=c
7430ac_cpp='$CPP $CPPFLAGS'
7431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7437$as_echo "$lt_cv_cc_needs_belf" >&6; }
7438  if test yes != "$lt_cv_cc_needs_belf"; then
7439    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7440    CFLAGS=$SAVE_CFLAGS
7441  fi
7442  ;;
7443*-*solaris*)
7444  # Find out what ABI is being produced by ac_compile, and set linker
7445  # options accordingly.
7446  echo 'int i;' > conftest.$ac_ext
7447  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7448  (eval $ac_compile) 2>&5
7449  ac_status=$?
7450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451  test $ac_status = 0; }; then
7452    case `/usr/bin/file conftest.o` in
7453    *64-bit*)
7454      case $lt_cv_prog_gnu_ld in
7455      yes*)
7456        case $host in
7457        i?86-*-solaris*|x86_64-*-solaris*)
7458          LD="${LD-ld} -m elf_x86_64"
7459          ;;
7460        sparc*-*-solaris*)
7461          LD="${LD-ld} -m elf64_sparc"
7462          ;;
7463        esac
7464        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7465        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7466          LD=${LD-ld}_sol2
7467        fi
7468        ;;
7469      *)
7470	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7471	  LD="${LD-ld} -64"
7472	fi
7473	;;
7474      esac
7475      ;;
7476    esac
7477  fi
7478  rm -rf conftest*
7479  ;;
7480esac
7481
7482need_locks=$enable_libtool_lock
7483
7484if test -n "$ac_tool_prefix"; then
7485  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7486set dummy ${ac_tool_prefix}mt; ac_word=$2
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
7489if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  if test -n "$MANIFEST_TOOL"; then
7493  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498  IFS=$as_save_IFS
7499  test -z "$as_dir" && as_dir=.
7500    for ac_exec_ext in '' $ac_executable_extensions; do
7501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504    break 2
7505  fi
7506done
7507  done
7508IFS=$as_save_IFS
7509
7510fi
7511fi
7512MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7513if test -n "$MANIFEST_TOOL"; then
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7515$as_echo "$MANIFEST_TOOL" >&6; }
7516else
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
7519fi
7520
7521
7522fi
7523if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7524  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7525  # Extract the first word of "mt", so it can be a program name with args.
7526set dummy mt; ac_word=$2
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
7529if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  if test -n "$ac_ct_MANIFEST_TOOL"; then
7533  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538  IFS=$as_save_IFS
7539  test -z "$as_dir" && as_dir=.
7540    for ac_exec_ext in '' $ac_executable_extensions; do
7541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544    break 2
7545  fi
7546done
7547  done
7548IFS=$as_save_IFS
7549
7550fi
7551fi
7552ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7553if test -n "$ac_ct_MANIFEST_TOOL"; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7555$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
7561  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562    MANIFEST_TOOL=":"
7563  else
7564    case $cross_compiling:$ac_tool_warned in
7565yes:)
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568ac_tool_warned=yes ;;
7569esac
7570    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571  fi
7572else
7573  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574fi
7575
7576test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7578$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7579if ${lt_cv_path_mainfest_tool+:} false; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  lt_cv_path_mainfest_tool=no
7583  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7584  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7585  cat conftest.err >&5
7586  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7587    lt_cv_path_mainfest_tool=yes
7588  fi
7589  rm -f conftest*
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7592$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7593if test yes != "$lt_cv_path_mainfest_tool"; then
7594  MANIFEST_TOOL=:
7595fi
7596
7597
7598
7599
7600
7601
7602  case $host_os in
7603    rhapsody* | darwin*)
7604    if test -n "$ac_tool_prefix"; then
7605  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7606set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
7609if ${ac_cv_prog_DSYMUTIL+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  if test -n "$DSYMUTIL"; then
7613  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618  IFS=$as_save_IFS
7619  test -z "$as_dir" && as_dir=.
7620    for ac_exec_ext in '' $ac_executable_extensions; do
7621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624    break 2
7625  fi
7626done
7627  done
7628IFS=$as_save_IFS
7629
7630fi
7631fi
7632DSYMUTIL=$ac_cv_prog_DSYMUTIL
7633if test -n "$DSYMUTIL"; then
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7635$as_echo "$DSYMUTIL" >&6; }
7636else
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
7639fi
7640
7641
7642fi
7643if test -z "$ac_cv_prog_DSYMUTIL"; then
7644  ac_ct_DSYMUTIL=$DSYMUTIL
7645  # Extract the first word of "dsymutil", so it can be a program name with args.
7646set dummy dsymutil; ac_word=$2
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648$as_echo_n "checking for $ac_word... " >&6; }
7649if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652  if test -n "$ac_ct_DSYMUTIL"; then
7653  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7654else
7655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658  IFS=$as_save_IFS
7659  test -z "$as_dir" && as_dir=.
7660    for ac_exec_ext in '' $ac_executable_extensions; do
7661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664    break 2
7665  fi
7666done
7667  done
7668IFS=$as_save_IFS
7669
7670fi
7671fi
7672ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7673if test -n "$ac_ct_DSYMUTIL"; then
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7675$as_echo "$ac_ct_DSYMUTIL" >&6; }
7676else
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679fi
7680
7681  if test "x$ac_ct_DSYMUTIL" = x; then
7682    DSYMUTIL=":"
7683  else
7684    case $cross_compiling:$ac_tool_warned in
7685yes:)
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7688ac_tool_warned=yes ;;
7689esac
7690    DSYMUTIL=$ac_ct_DSYMUTIL
7691  fi
7692else
7693  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7694fi
7695
7696    if test -n "$ac_tool_prefix"; then
7697  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7698set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_NMEDIT+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  if test -n "$NMEDIT"; then
7705  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724NMEDIT=$ac_cv_prog_NMEDIT
7725if test -n "$NMEDIT"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7727$as_echo "$NMEDIT" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_NMEDIT"; then
7736  ac_ct_NMEDIT=$NMEDIT
7737  # Extract the first word of "nmedit", so it can be a program name with args.
7738set dummy nmedit; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  if test -n "$ac_ct_NMEDIT"; then
7745  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750  IFS=$as_save_IFS
7751  test -z "$as_dir" && as_dir=.
7752    for ac_exec_ext in '' $ac_executable_extensions; do
7753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759  done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7765if test -n "$ac_ct_NMEDIT"; then
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7767$as_echo "$ac_ct_NMEDIT" >&6; }
7768else
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773  if test "x$ac_ct_NMEDIT" = x; then
7774    NMEDIT=":"
7775  else
7776    case $cross_compiling:$ac_tool_warned in
7777yes:)
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780ac_tool_warned=yes ;;
7781esac
7782    NMEDIT=$ac_ct_NMEDIT
7783  fi
7784else
7785  NMEDIT="$ac_cv_prog_NMEDIT"
7786fi
7787
7788    if test -n "$ac_tool_prefix"; then
7789  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}lipo; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_LIPO+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  if test -n "$LIPO"; then
7797  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804    for ac_exec_ext in '' $ac_executable_extensions; do
7805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811  done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816LIPO=$ac_cv_prog_LIPO
7817if test -n "$LIPO"; then
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7819$as_echo "$LIPO" >&6; }
7820else
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_prog_LIPO"; then
7828  ac_ct_LIPO=$LIPO
7829  # Extract the first word of "lipo", so it can be a program name with args.
7830set dummy lipo; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  if test -n "$ac_ct_LIPO"; then
7837  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  test -z "$as_dir" && as_dir=.
7844    for ac_exec_ext in '' $ac_executable_extensions; do
7845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846    ac_cv_prog_ac_ct_LIPO="lipo"
7847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851  done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7857if test -n "$ac_ct_LIPO"; then
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7859$as_echo "$ac_ct_LIPO" >&6; }
7860else
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865  if test "x$ac_ct_LIPO" = x; then
7866    LIPO=":"
7867  else
7868    case $cross_compiling:$ac_tool_warned in
7869yes:)
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872ac_tool_warned=yes ;;
7873esac
7874    LIPO=$ac_ct_LIPO
7875  fi
7876else
7877  LIPO="$ac_cv_prog_LIPO"
7878fi
7879
7880    if test -n "$ac_tool_prefix"; then
7881  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}otool; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_OTOOL+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$OTOOL"; then
7889  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908OTOOL=$ac_cv_prog_OTOOL
7909if test -n "$OTOOL"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7911$as_echo "$OTOOL" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_OTOOL"; then
7920  ac_ct_OTOOL=$OTOOL
7921  # Extract the first word of "otool", so it can be a program name with args.
7922set dummy otool; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  if test -n "$ac_ct_OTOOL"; then
7929  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934  IFS=$as_save_IFS
7935  test -z "$as_dir" && as_dir=.
7936    for ac_exec_ext in '' $ac_executable_extensions; do
7937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938    ac_cv_prog_ac_ct_OTOOL="otool"
7939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940    break 2
7941  fi
7942done
7943  done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7949if test -n "$ac_ct_OTOOL"; then
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7951$as_echo "$ac_ct_OTOOL" >&6; }
7952else
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957  if test "x$ac_ct_OTOOL" = x; then
7958    OTOOL=":"
7959  else
7960    case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966    OTOOL=$ac_ct_OTOOL
7967  fi
7968else
7969  OTOOL="$ac_cv_prog_OTOOL"
7970fi
7971
7972    if test -n "$ac_tool_prefix"; then
7973  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}otool64; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_OTOOL64+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  if test -n "$OTOOL64"; then
7981  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000OTOOL64=$ac_cv_prog_OTOOL64
8001if test -n "$OTOOL64"; then
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8003$as_echo "$OTOOL64" >&6; }
8004else
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_OTOOL64"; then
8012  ac_ct_OTOOL64=$OTOOL64
8013  # Extract the first word of "otool64", so it can be a program name with args.
8014set dummy otool64; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  if test -n "$ac_ct_OTOOL64"; then
8021  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026  IFS=$as_save_IFS
8027  test -z "$as_dir" && as_dir=.
8028    for ac_exec_ext in '' $ac_executable_extensions; do
8029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030    ac_cv_prog_ac_ct_OTOOL64="otool64"
8031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032    break 2
8033  fi
8034done
8035  done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8041if test -n "$ac_ct_OTOOL64"; then
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8043$as_echo "$ac_ct_OTOOL64" >&6; }
8044else
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049  if test "x$ac_ct_OTOOL64" = x; then
8050    OTOOL64=":"
8051  else
8052    case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058    OTOOL64=$ac_ct_OTOOL64
8059  fi
8060else
8061  OTOOL64="$ac_cv_prog_OTOOL64"
8062fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8091$as_echo_n "checking for -single_module linker flag... " >&6; }
8092if ${lt_cv_apple_cc_single_mod+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  lt_cv_apple_cc_single_mod=no
8096      if test -z "$LT_MULTI_MODULE"; then
8097	# By default we will add the -single_module flag. You can override
8098	# by either setting the environment variable LT_MULTI_MODULE
8099	# non-empty at configure time, or by adding -multi_module to the
8100	# link flags.
8101	rm -rf libconftest.dylib*
8102	echo "int foo(void){return 1;}" > conftest.c
8103	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104-dynamiclib -Wl,-single_module conftest.c" >&5
8105	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8106	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8107        _lt_result=$?
8108	# If there is a non-empty error log, and "single_module"
8109	# appears in it, assume the flag caused a linker warning
8110        if test -s conftest.err && $GREP single_module conftest.err; then
8111	  cat conftest.err >&5
8112	# Otherwise, if the output was created with a 0 exit code from
8113	# the compiler, it worked.
8114	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8115	  lt_cv_apple_cc_single_mod=yes
8116	else
8117	  cat conftest.err >&5
8118	fi
8119	rm -rf libconftest.dylib*
8120	rm -f conftest.*
8121      fi
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8124$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8125
8126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128if ${lt_cv_ld_exported_symbols_list+:} false; then :
8129  $as_echo_n "(cached) " >&6
8130else
8131  lt_cv_ld_exported_symbols_list=no
8132      save_LDFLAGS=$LDFLAGS
8133      echo "_main" > conftest.sym
8134      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8135      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137
8138int
8139main ()
8140{
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146if ac_fn_c_try_link "$LINENO"; then :
8147  lt_cv_ld_exported_symbols_list=yes
8148else
8149  lt_cv_ld_exported_symbols_list=no
8150fi
8151rm -f core conftest.err conftest.$ac_objext \
8152    conftest$ac_exeext conftest.$ac_ext
8153	LDFLAGS=$save_LDFLAGS
8154
8155fi
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8158
8159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8160$as_echo_n "checking for -force_load linker flag... " >&6; }
8161if ${lt_cv_ld_force_load+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  lt_cv_ld_force_load=no
8165      cat > conftest.c << _LT_EOF
8166int forced_loaded() { return 2;}
8167_LT_EOF
8168      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8169      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8170      echo "$AR cru libconftest.a conftest.o" >&5
8171      $AR cru libconftest.a conftest.o 2>&5
8172      echo "$RANLIB libconftest.a" >&5
8173      $RANLIB libconftest.a 2>&5
8174      cat > conftest.c << _LT_EOF
8175int main() { return 0;}
8176_LT_EOF
8177      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179      _lt_result=$?
8180      if test -s conftest.err && $GREP force_load conftest.err; then
8181	cat conftest.err >&5
8182      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8183	lt_cv_ld_force_load=yes
8184      else
8185	cat conftest.err >&5
8186      fi
8187        rm -f conftest.err libconftest.a conftest conftest.c
8188        rm -rf conftest.dSYM
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192$as_echo "$lt_cv_ld_force_load" >&6; }
8193    case $host_os in
8194    rhapsody* | darwin1.[012])
8195      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8196    darwin1.*)
8197      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8198    darwin*) # darwin 5.x on
8199      # if running on 10.5 or later, the deployment target defaults
8200      # to the OS version, if on x86, and 10.4, the deployment
8201      # target defaults to 10.4. Don't you love it?
8202      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8205	10.[012][,.]*)
8206	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8207	10.*)
8208	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8209      esac
8210    ;;
8211  esac
8212    if test yes = "$lt_cv_apple_cc_single_mod"; then
8213      _lt_dar_single_mod='$single_module'
8214    fi
8215    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8216      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8217    else
8218      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8219    fi
8220    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8221      _lt_dsymutil='~$DSYMUTIL $lib || :'
8222    else
8223      _lt_dsymutil=
8224    fi
8225    ;;
8226  esac
8227
8228ac_ext=c
8229ac_cpp='$CPP $CPPFLAGS'
8230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8232ac_compiler_gnu=$ac_cv_c_compiler_gnu
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8234$as_echo_n "checking how to run the C preprocessor... " >&6; }
8235# On Suns, sometimes $CPP names a directory.
8236if test -n "$CPP" && test -d "$CPP"; then
8237  CPP=
8238fi
8239if test -z "$CPP"; then
8240  if ${ac_cv_prog_CPP+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243      # Double quotes because CPP needs to be expanded
8244    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8245    do
8246      ac_preproc_ok=false
8247for ac_c_preproc_warn_flag in '' yes
8248do
8249  # Use a header file that comes with gcc, so configuring glibc
8250  # with a fresh cross-compiler works.
8251  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252  # <limits.h> exists even on freestanding compilers.
8253  # On the NeXT, cc -E runs the code through the compiler's parser,
8254  # not just through cpp. "Syntax error" is here to catch this case.
8255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h.  */
8257#ifdef __STDC__
8258# include <limits.h>
8259#else
8260# include <assert.h>
8261#endif
8262		     Syntax error
8263_ACEOF
8264if ac_fn_c_try_cpp "$LINENO"; then :
8265
8266else
8267  # Broken: fails on valid input.
8268continue
8269fi
8270rm -f conftest.err conftest.i conftest.$ac_ext
8271
8272  # OK, works on sane cases.  Now check whether nonexistent headers
8273  # can be detected and how.
8274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275/* end confdefs.h.  */
8276#include <ac_nonexistent.h>
8277_ACEOF
8278if ac_fn_c_try_cpp "$LINENO"; then :
8279  # Broken: success on invalid input.
8280continue
8281else
8282  # Passes both tests.
8283ac_preproc_ok=:
8284break
8285fi
8286rm -f conftest.err conftest.i conftest.$ac_ext
8287
8288done
8289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8290rm -f conftest.i conftest.err conftest.$ac_ext
8291if $ac_preproc_ok; then :
8292  break
8293fi
8294
8295    done
8296    ac_cv_prog_CPP=$CPP
8297
8298fi
8299  CPP=$ac_cv_prog_CPP
8300else
8301  ac_cv_prog_CPP=$CPP
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8304$as_echo "$CPP" >&6; }
8305ac_preproc_ok=false
8306for ac_c_preproc_warn_flag in '' yes
8307do
8308  # Use a header file that comes with gcc, so configuring glibc
8309  # with a fresh cross-compiler works.
8310  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311  # <limits.h> exists even on freestanding compilers.
8312  # On the NeXT, cc -E runs the code through the compiler's parser,
8313  # not just through cpp. "Syntax error" is here to catch this case.
8314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316#ifdef __STDC__
8317# include <limits.h>
8318#else
8319# include <assert.h>
8320#endif
8321		     Syntax error
8322_ACEOF
8323if ac_fn_c_try_cpp "$LINENO"; then :
8324
8325else
8326  # Broken: fails on valid input.
8327continue
8328fi
8329rm -f conftest.err conftest.i conftest.$ac_ext
8330
8331  # OK, works on sane cases.  Now check whether nonexistent headers
8332  # can be detected and how.
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335#include <ac_nonexistent.h>
8336_ACEOF
8337if ac_fn_c_try_cpp "$LINENO"; then :
8338  # Broken: success on invalid input.
8339continue
8340else
8341  # Passes both tests.
8342ac_preproc_ok=:
8343break
8344fi
8345rm -f conftest.err conftest.i conftest.$ac_ext
8346
8347done
8348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8349rm -f conftest.i conftest.err conftest.$ac_ext
8350if $ac_preproc_ok; then :
8351
8352else
8353  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8355as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8356See \`config.log' for more details" "$LINENO" 5; }
8357fi
8358
8359ac_ext=c
8360ac_cpp='$CPP $CPPFLAGS'
8361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8367$as_echo_n "checking for ANSI C header files... " >&6; }
8368if ${ac_cv_header_stdc+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h.  */
8373#include <stdlib.h>
8374#include <stdarg.h>
8375#include <string.h>
8376#include <float.h>
8377
8378int
8379main ()
8380{
8381
8382  ;
8383  return 0;
8384}
8385_ACEOF
8386if ac_fn_c_try_compile "$LINENO"; then :
8387  ac_cv_header_stdc=yes
8388else
8389  ac_cv_header_stdc=no
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392
8393if test $ac_cv_header_stdc = yes; then
8394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h.  */
8397#include <string.h>
8398
8399_ACEOF
8400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8401  $EGREP "memchr" >/dev/null 2>&1; then :
8402
8403else
8404  ac_cv_header_stdc=no
8405fi
8406rm -f conftest*
8407
8408fi
8409
8410if test $ac_cv_header_stdc = yes; then
8411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414#include <stdlib.h>
8415
8416_ACEOF
8417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8418  $EGREP "free" >/dev/null 2>&1; then :
8419
8420else
8421  ac_cv_header_stdc=no
8422fi
8423rm -f conftest*
8424
8425fi
8426
8427if test $ac_cv_header_stdc = yes; then
8428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8429  if test "$cross_compiling" = yes; then :
8430  :
8431else
8432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h.  */
8434#include <ctype.h>
8435#include <stdlib.h>
8436#if ((' ' & 0x0FF) == 0x020)
8437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8439#else
8440# define ISLOWER(c) \
8441		   (('a' <= (c) && (c) <= 'i') \
8442		     || ('j' <= (c) && (c) <= 'r') \
8443		     || ('s' <= (c) && (c) <= 'z'))
8444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8445#endif
8446
8447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8448int
8449main ()
8450{
8451  int i;
8452  for (i = 0; i < 256; i++)
8453    if (XOR (islower (i), ISLOWER (i))
8454	|| toupper (i) != TOUPPER (i))
8455      return 2;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_run "$LINENO"; then :
8460
8461else
8462  ac_cv_header_stdc=no
8463fi
8464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465  conftest.$ac_objext conftest.beam conftest.$ac_ext
8466fi
8467
8468fi
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8471$as_echo "$ac_cv_header_stdc" >&6; }
8472if test $ac_cv_header_stdc = yes; then
8473
8474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8475
8476fi
8477
8478# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8479for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8480		  inttypes.h stdint.h unistd.h
8481do :
8482  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8484"
8485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8486  cat >>confdefs.h <<_ACEOF
8487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8488_ACEOF
8489
8490fi
8491
8492done
8493
8494
8495for ac_header in dlfcn.h
8496do :
8497  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8498"
8499if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8500  cat >>confdefs.h <<_ACEOF
8501#define HAVE_DLFCN_H 1
8502_ACEOF
8503
8504fi
8505
8506done
8507
8508
8509
8510
8511
8512# Set options
8513enable_win32_dll=yes
8514
8515case $host in
8516*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8517  if test -n "$ac_tool_prefix"; then
8518  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8519set dummy ${ac_tool_prefix}as; ac_word=$2
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521$as_echo_n "checking for $ac_word... " >&6; }
8522if ${ac_cv_prog_AS+:} false; then :
8523  $as_echo_n "(cached) " >&6
8524else
8525  if test -n "$AS"; then
8526  ac_cv_prog_AS="$AS" # Let the user override the test.
8527else
8528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529for as_dir in $PATH
8530do
8531  IFS=$as_save_IFS
8532  test -z "$as_dir" && as_dir=.
8533    for ac_exec_ext in '' $ac_executable_extensions; do
8534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535    ac_cv_prog_AS="${ac_tool_prefix}as"
8536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537    break 2
8538  fi
8539done
8540  done
8541IFS=$as_save_IFS
8542
8543fi
8544fi
8545AS=$ac_cv_prog_AS
8546if test -n "$AS"; then
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8548$as_echo "$AS" >&6; }
8549else
8550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
8552fi
8553
8554
8555fi
8556if test -z "$ac_cv_prog_AS"; then
8557  ac_ct_AS=$AS
8558  # Extract the first word of "as", so it can be a program name with args.
8559set dummy as; ac_word=$2
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if ${ac_cv_prog_ac_ct_AS+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  if test -n "$ac_ct_AS"; then
8566  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571  IFS=$as_save_IFS
8572  test -z "$as_dir" && as_dir=.
8573    for ac_exec_ext in '' $ac_executable_extensions; do
8574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575    ac_cv_prog_ac_ct_AS="as"
8576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577    break 2
8578  fi
8579done
8580  done
8581IFS=$as_save_IFS
8582
8583fi
8584fi
8585ac_ct_AS=$ac_cv_prog_ac_ct_AS
8586if test -n "$ac_ct_AS"; then
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8588$as_echo "$ac_ct_AS" >&6; }
8589else
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592fi
8593
8594  if test "x$ac_ct_AS" = x; then
8595    AS="false"
8596  else
8597    case $cross_compiling:$ac_tool_warned in
8598yes:)
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8601ac_tool_warned=yes ;;
8602esac
8603    AS=$ac_ct_AS
8604  fi
8605else
8606  AS="$ac_cv_prog_AS"
8607fi
8608
8609  if test -n "$ac_tool_prefix"; then
8610  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8611set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613$as_echo_n "checking for $ac_word... " >&6; }
8614if ${ac_cv_prog_DLLTOOL+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  if test -n "$DLLTOOL"; then
8618  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8619else
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625    for ac_exec_ext in '' $ac_executable_extensions; do
8626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632  done
8633IFS=$as_save_IFS
8634
8635fi
8636fi
8637DLLTOOL=$ac_cv_prog_DLLTOOL
8638if test -n "$DLLTOOL"; then
8639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8640$as_echo "$DLLTOOL" >&6; }
8641else
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
8644fi
8645
8646
8647fi
8648if test -z "$ac_cv_prog_DLLTOOL"; then
8649  ac_ct_DLLTOOL=$DLLTOOL
8650  # Extract the first word of "dlltool", so it can be a program name with args.
8651set dummy dlltool; ac_word=$2
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  if test -n "$ac_ct_DLLTOOL"; then
8658  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663  IFS=$as_save_IFS
8664  test -z "$as_dir" && as_dir=.
8665    for ac_exec_ext in '' $ac_executable_extensions; do
8666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669    break 2
8670  fi
8671done
8672  done
8673IFS=$as_save_IFS
8674
8675fi
8676fi
8677ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8678if test -n "$ac_ct_DLLTOOL"; then
8679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8680$as_echo "$ac_ct_DLLTOOL" >&6; }
8681else
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
8684fi
8685
8686  if test "x$ac_ct_DLLTOOL" = x; then
8687    DLLTOOL="false"
8688  else
8689    case $cross_compiling:$ac_tool_warned in
8690yes:)
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8693ac_tool_warned=yes ;;
8694esac
8695    DLLTOOL=$ac_ct_DLLTOOL
8696  fi
8697else
8698  DLLTOOL="$ac_cv_prog_DLLTOOL"
8699fi
8700
8701  if test -n "$ac_tool_prefix"; then
8702  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8703set dummy ${ac_tool_prefix}objdump; ac_word=$2
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if ${ac_cv_prog_OBJDUMP+:} false; then :
8707  $as_echo_n "(cached) " >&6
8708else
8709  if test -n "$OBJDUMP"; then
8710  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717    for ac_exec_ext in '' $ac_executable_extensions; do
8718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724  done
8725IFS=$as_save_IFS
8726
8727fi
8728fi
8729OBJDUMP=$ac_cv_prog_OBJDUMP
8730if test -n "$OBJDUMP"; then
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8732$as_echo "$OBJDUMP" >&6; }
8733else
8734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735$as_echo "no" >&6; }
8736fi
8737
8738
8739fi
8740if test -z "$ac_cv_prog_OBJDUMP"; then
8741  ac_ct_OBJDUMP=$OBJDUMP
8742  # Extract the first word of "objdump", so it can be a program name with args.
8743set dummy objdump; ac_word=$2
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  if test -n "$ac_ct_OBJDUMP"; then
8750  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755  IFS=$as_save_IFS
8756  test -z "$as_dir" && as_dir=.
8757    for ac_exec_ext in '' $ac_executable_extensions; do
8758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761    break 2
8762  fi
8763done
8764  done
8765IFS=$as_save_IFS
8766
8767fi
8768fi
8769ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8770if test -n "$ac_ct_OBJDUMP"; then
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8772$as_echo "$ac_ct_OBJDUMP" >&6; }
8773else
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
8776fi
8777
8778  if test "x$ac_ct_OBJDUMP" = x; then
8779    OBJDUMP="false"
8780  else
8781    case $cross_compiling:$ac_tool_warned in
8782yes:)
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8785ac_tool_warned=yes ;;
8786esac
8787    OBJDUMP=$ac_ct_OBJDUMP
8788  fi
8789else
8790  OBJDUMP="$ac_cv_prog_OBJDUMP"
8791fi
8792
8793  ;;
8794esac
8795
8796test -z "$AS" && AS=as
8797
8798
8799
8800
8801
8802test -z "$DLLTOOL" && DLLTOOL=dlltool
8803
8804
8805
8806
8807
8808test -z "$OBJDUMP" && OBJDUMP=objdump
8809
8810
8811
8812
8813
8814
8815
8816        enable_dlopen=no
8817
8818
8819
8820            # Check whether --enable-shared was given.
8821if test "${enable_shared+set}" = set; then :
8822  enableval=$enable_shared; p=${PACKAGE-default}
8823    case $enableval in
8824    yes) enable_shared=yes ;;
8825    no) enable_shared=no ;;
8826    *)
8827      enable_shared=no
8828      # Look at the argument we got.  We use all the common list separators.
8829      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8830      for pkg in $enableval; do
8831	IFS=$lt_save_ifs
8832	if test "X$pkg" = "X$p"; then
8833	  enable_shared=yes
8834	fi
8835      done
8836      IFS=$lt_save_ifs
8837      ;;
8838    esac
8839else
8840  enable_shared=yes
8841fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851  # Check whether --enable-static was given.
8852if test "${enable_static+set}" = set; then :
8853  enableval=$enable_static; p=${PACKAGE-default}
8854    case $enableval in
8855    yes) enable_static=yes ;;
8856    no) enable_static=no ;;
8857    *)
8858     enable_static=no
8859      # Look at the argument we got.  We use all the common list separators.
8860      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8861      for pkg in $enableval; do
8862	IFS=$lt_save_ifs
8863	if test "X$pkg" = "X$p"; then
8864	  enable_static=yes
8865	fi
8866      done
8867      IFS=$lt_save_ifs
8868      ;;
8869    esac
8870else
8871  enable_static=yes
8872fi
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883# Check whether --with-pic was given.
8884if test "${with_pic+set}" = set; then :
8885  withval=$with_pic; lt_p=${PACKAGE-default}
8886    case $withval in
8887    yes|no) pic_mode=$withval ;;
8888    *)
8889      pic_mode=default
8890      # Look at the argument we got.  We use all the common list separators.
8891      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8892      for lt_pkg in $withval; do
8893	IFS=$lt_save_ifs
8894	if test "X$lt_pkg" = "X$lt_p"; then
8895	  pic_mode=yes
8896	fi
8897      done
8898      IFS=$lt_save_ifs
8899      ;;
8900    esac
8901else
8902  pic_mode=default
8903fi
8904
8905
8906
8907
8908
8909
8910
8911
8912  # Check whether --enable-fast-install was given.
8913if test "${enable_fast_install+set}" = set; then :
8914  enableval=$enable_fast_install; p=${PACKAGE-default}
8915    case $enableval in
8916    yes) enable_fast_install=yes ;;
8917    no) enable_fast_install=no ;;
8918    *)
8919      enable_fast_install=no
8920      # Look at the argument we got.  We use all the common list separators.
8921      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8922      for pkg in $enableval; do
8923	IFS=$lt_save_ifs
8924	if test "X$pkg" = "X$p"; then
8925	  enable_fast_install=yes
8926	fi
8927      done
8928      IFS=$lt_save_ifs
8929      ;;
8930    esac
8931else
8932  enable_fast_install=yes
8933fi
8934
8935
8936
8937
8938
8939
8940
8941
8942  shared_archive_member_spec=
8943case $host,$enable_shared in
8944power*-*-aix[5-9]*,yes)
8945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8946$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8947
8948# Check whether --with-aix-soname was given.
8949if test "${with_aix_soname+set}" = set; then :
8950  withval=$with_aix_soname; case $withval in
8951    aix|svr4|both)
8952      ;;
8953    *)
8954      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8955      ;;
8956    esac
8957    lt_cv_with_aix_soname=$with_aix_soname
8958else
8959  if ${lt_cv_with_aix_soname+:} false; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  lt_cv_with_aix_soname=aix
8963fi
8964
8965    with_aix_soname=$lt_cv_with_aix_soname
8966fi
8967
8968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8969$as_echo "$with_aix_soname" >&6; }
8970  if test aix != "$with_aix_soname"; then
8971    # For the AIX way of multilib, we name the shared archive member
8972    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8973    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8974    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8975    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8976    if test 64 = "${OBJECT_MODE-32}"; then
8977      shared_archive_member_spec=shr_64
8978    else
8979      shared_archive_member_spec=shr
8980    fi
8981  fi
8982  ;;
8983*)
8984  with_aix_soname=aix
8985  ;;
8986esac
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997# This can be used to rebuild libtool when needed
8998LIBTOOL_DEPS=$ltmain
8999
9000# Always use our own libtool.
9001LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032test -z "$LN_S" && LN_S="ln -s"
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047if test -n "${ZSH_VERSION+set}"; then
9048   setopt NO_GLOB_SUBST
9049fi
9050
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9052$as_echo_n "checking for objdir... " >&6; }
9053if ${lt_cv_objdir+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056  rm -f .libs 2>/dev/null
9057mkdir .libs 2>/dev/null
9058if test -d .libs; then
9059  lt_cv_objdir=.libs
9060else
9061  # MS-DOS does not allow filenames that begin with a dot.
9062  lt_cv_objdir=_libs
9063fi
9064rmdir .libs 2>/dev/null
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9067$as_echo "$lt_cv_objdir" >&6; }
9068objdir=$lt_cv_objdir
9069
9070
9071
9072
9073
9074cat >>confdefs.h <<_ACEOF
9075#define LT_OBJDIR "$lt_cv_objdir/"
9076_ACEOF
9077
9078
9079
9080
9081case $host_os in
9082aix3*)
9083  # AIX sometimes has problems with the GCC collect2 program.  For some
9084  # reason, if we set the COLLECT_NAMES environment variable, the problems
9085  # vanish in a puff of smoke.
9086  if test set != "${COLLECT_NAMES+set}"; then
9087    COLLECT_NAMES=
9088    export COLLECT_NAMES
9089  fi
9090  ;;
9091esac
9092
9093# Global variables:
9094ofile=libtool
9095can_build_shared=yes
9096
9097# All known linkers require a '.a' archive for static linking (except MSVC,
9098# which needs '.lib').
9099libext=a
9100
9101with_gnu_ld=$lt_cv_prog_gnu_ld
9102
9103old_CC=$CC
9104old_CFLAGS=$CFLAGS
9105
9106# Set sane defaults for various variables
9107test -z "$CC" && CC=cc
9108test -z "$LTCC" && LTCC=$CC
9109test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9110test -z "$LD" && LD=ld
9111test -z "$ac_objext" && ac_objext=o
9112
9113for cc_temp in $compiler""; do
9114  case $cc_temp in
9115    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9116    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9117    \-*) ;;
9118    *) break;;
9119  esac
9120done
9121cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9122
9123
9124# Only perform the check for file, if the check method requires it
9125test -z "$MAGIC_CMD" && MAGIC_CMD=file
9126case $deplibs_check_method in
9127file_magic*)
9128  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9130$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9131if ${lt_cv_path_MAGIC_CMD+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  case $MAGIC_CMD in
9135[\\/*] |  ?:[\\/]*)
9136  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9137  ;;
9138*)
9139  lt_save_MAGIC_CMD=$MAGIC_CMD
9140  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9141  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9142  for ac_dir in $ac_dummy; do
9143    IFS=$lt_save_ifs
9144    test -z "$ac_dir" && ac_dir=.
9145    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9146      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9147      if test -n "$file_magic_test_file"; then
9148	case $deplibs_check_method in
9149	"file_magic "*)
9150	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9151	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9152	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9153	    $EGREP "$file_magic_regex" > /dev/null; then
9154	    :
9155	  else
9156	    cat <<_LT_EOF 1>&2
9157
9158*** Warning: the command libtool uses to detect shared libraries,
9159*** $file_magic_cmd, produces output that libtool cannot recognize.
9160*** The result is that libtool may fail to recognize shared libraries
9161*** as such.  This will affect the creation of libtool libraries that
9162*** depend on shared libraries, but programs linked with such libtool
9163*** libraries will work regardless of this problem.  Nevertheless, you
9164*** may want to report the problem to your system manager and/or to
9165*** [email protected]
9166
9167_LT_EOF
9168	  fi ;;
9169	esac
9170      fi
9171      break
9172    fi
9173  done
9174  IFS=$lt_save_ifs
9175  MAGIC_CMD=$lt_save_MAGIC_CMD
9176  ;;
9177esac
9178fi
9179
9180MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9181if test -n "$MAGIC_CMD"; then
9182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9183$as_echo "$MAGIC_CMD" >&6; }
9184else
9185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186$as_echo "no" >&6; }
9187fi
9188
9189
9190
9191
9192
9193if test -z "$lt_cv_path_MAGIC_CMD"; then
9194  if test -n "$ac_tool_prefix"; then
9195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9196$as_echo_n "checking for file... " >&6; }
9197if ${lt_cv_path_MAGIC_CMD+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  case $MAGIC_CMD in
9201[\\/*] |  ?:[\\/]*)
9202  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9203  ;;
9204*)
9205  lt_save_MAGIC_CMD=$MAGIC_CMD
9206  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9207  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9208  for ac_dir in $ac_dummy; do
9209    IFS=$lt_save_ifs
9210    test -z "$ac_dir" && ac_dir=.
9211    if test -f "$ac_dir/file"; then
9212      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9213      if test -n "$file_magic_test_file"; then
9214	case $deplibs_check_method in
9215	"file_magic "*)
9216	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9217	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9218	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9219	    $EGREP "$file_magic_regex" > /dev/null; then
9220	    :
9221	  else
9222	    cat <<_LT_EOF 1>&2
9223
9224*** Warning: the command libtool uses to detect shared libraries,
9225*** $file_magic_cmd, produces output that libtool cannot recognize.
9226*** The result is that libtool may fail to recognize shared libraries
9227*** as such.  This will affect the creation of libtool libraries that
9228*** depend on shared libraries, but programs linked with such libtool
9229*** libraries will work regardless of this problem.  Nevertheless, you
9230*** may want to report the problem to your system manager and/or to
9231*** [email protected]
9232
9233_LT_EOF
9234	  fi ;;
9235	esac
9236      fi
9237      break
9238    fi
9239  done
9240  IFS=$lt_save_ifs
9241  MAGIC_CMD=$lt_save_MAGIC_CMD
9242  ;;
9243esac
9244fi
9245
9246MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9247if test -n "$MAGIC_CMD"; then
9248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9249$as_echo "$MAGIC_CMD" >&6; }
9250else
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
9253fi
9254
9255
9256  else
9257    MAGIC_CMD=:
9258  fi
9259fi
9260
9261  fi
9262  ;;
9263esac
9264
9265# Use C for the default configuration in the libtool script
9266
9267lt_save_CC=$CC
9268ac_ext=c
9269ac_cpp='$CPP $CPPFLAGS'
9270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9272ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273
9274
9275# Source file extension for C test sources.
9276ac_ext=c
9277
9278# Object file extension for compiled C test sources.
9279objext=o
9280objext=$objext
9281
9282# Code to be used in simple compile tests
9283lt_simple_compile_test_code="int some_variable = 0;"
9284
9285# Code to be used in simple link tests
9286lt_simple_link_test_code='int main(){return(0);}'
9287
9288
9289
9290
9291
9292
9293
9294# If no C compiler was specified, use CC.
9295LTCC=${LTCC-"$CC"}
9296
9297# If no C compiler flags were specified, use CFLAGS.
9298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9299
9300# Allow CC to be a program name with arguments.
9301compiler=$CC
9302
9303# Save the default compiler, since it gets overwritten when the other
9304# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9305compiler_DEFAULT=$CC
9306
9307# save warnings/boilerplate of simple test code
9308ac_outfile=conftest.$ac_objext
9309echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9310eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9311_lt_compiler_boilerplate=`cat conftest.err`
9312$RM conftest*
9313
9314ac_outfile=conftest.$ac_objext
9315echo "$lt_simple_link_test_code" >conftest.$ac_ext
9316eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9317_lt_linker_boilerplate=`cat conftest.err`
9318$RM -r conftest*
9319
9320
9321## CAVEAT EMPTOR:
9322## There is no encapsulation within the following macros, do not change
9323## the running order or otherwise move them around unless you know exactly
9324## what you are doing...
9325if test -n "$compiler"; then
9326
9327lt_prog_compiler_no_builtin_flag=
9328
9329if test yes = "$GCC"; then
9330  case $cc_basename in
9331  nvcc*)
9332    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9333  *)
9334    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9335  esac
9336
9337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9338$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9339if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9340  $as_echo_n "(cached) " >&6
9341else
9342  lt_cv_prog_compiler_rtti_exceptions=no
9343   ac_outfile=conftest.$ac_objext
9344   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9345   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9346   # Insert the option either (1) after the last *FLAGS variable, or
9347   # (2) before a word containing "conftest.", or (3) at the end.
9348   # Note that $ac_compile itself does not contain backslashes and begins
9349   # with a dollar sign (not a hyphen), so the echo should work correctly.
9350   # The option is referenced via a variable to avoid confusing sed.
9351   lt_compile=`echo "$ac_compile" | $SED \
9352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9354   -e 's:$: $lt_compiler_flag:'`
9355   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9356   (eval "$lt_compile" 2>conftest.err)
9357   ac_status=$?
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   if (exit $ac_status) && test -s "$ac_outfile"; then
9361     # The compiler can only warn and ignore the option if not recognized
9362     # So say no if there are warnings other than the usual output.
9363     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9364     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9365     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9366       lt_cv_prog_compiler_rtti_exceptions=yes
9367     fi
9368   fi
9369   $RM conftest*
9370
9371fi
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9373$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9374
9375if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9376    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9377else
9378    :
9379fi
9380
9381fi
9382
9383
9384
9385
9386
9387
9388  lt_prog_compiler_wl=
9389lt_prog_compiler_pic=
9390lt_prog_compiler_static=
9391
9392
9393  if test yes = "$GCC"; then
9394    lt_prog_compiler_wl='-Wl,'
9395    lt_prog_compiler_static='-static'
9396
9397    case $host_os in
9398      aix*)
9399      # All AIX code is PIC.
9400      if test ia64 = "$host_cpu"; then
9401	# AIX 5 now supports IA64 processor
9402	lt_prog_compiler_static='-Bstatic'
9403      fi
9404      lt_prog_compiler_pic='-fPIC'
9405      ;;
9406
9407    amigaos*)
9408      case $host_cpu in
9409      powerpc)
9410            # see comment about AmigaOS4 .so support
9411            lt_prog_compiler_pic='-fPIC'
9412        ;;
9413      m68k)
9414            # FIXME: we need at least 68020 code to build shared libraries, but
9415            # adding the '-m68020' flag to GCC prevents building anything better,
9416            # like '-m68040'.
9417            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9418        ;;
9419      esac
9420      ;;
9421
9422    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9423      # PIC is the default for these OSes.
9424      ;;
9425
9426    mingw* | cygwin* | pw32* | os2* | cegcc*)
9427      # This hack is so that the source file can tell whether it is being
9428      # built for inclusion in a dll (and should export symbols for example).
9429      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9430      # (--disable-auto-import) libraries
9431      lt_prog_compiler_pic='-DDLL_EXPORT'
9432      case $host_os in
9433      os2*)
9434	lt_prog_compiler_static='$wl-static'
9435	;;
9436      esac
9437      ;;
9438
9439    darwin* | rhapsody*)
9440      # PIC is the default on this platform
9441      # Common symbols not allowed in MH_DYLIB files
9442      lt_prog_compiler_pic='-fno-common'
9443      ;;
9444
9445    haiku*)
9446      # PIC is the default for Haiku.
9447      # The "-static" flag exists, but is broken.
9448      lt_prog_compiler_static=
9449      ;;
9450
9451    hpux*)
9452      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9453      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9454      # sets the default TLS model and affects inlining.
9455      case $host_cpu in
9456      hppa*64*)
9457	# +Z the default
9458	;;
9459      *)
9460	lt_prog_compiler_pic='-fPIC'
9461	;;
9462      esac
9463      ;;
9464
9465    interix[3-9]*)
9466      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9467      # Instead, we relocate shared libraries at runtime.
9468      ;;
9469
9470    msdosdjgpp*)
9471      # Just because we use GCC doesn't mean we suddenly get shared libraries
9472      # on systems that don't support them.
9473      lt_prog_compiler_can_build_shared=no
9474      enable_shared=no
9475      ;;
9476
9477    *nto* | *qnx*)
9478      # QNX uses GNU C++, but need to define -shared option too, otherwise
9479      # it will coredump.
9480      lt_prog_compiler_pic='-fPIC -shared'
9481      ;;
9482
9483    sysv4*MP*)
9484      if test -d /usr/nec; then
9485	lt_prog_compiler_pic=-Kconform_pic
9486      fi
9487      ;;
9488
9489    *)
9490      lt_prog_compiler_pic='-fPIC'
9491      ;;
9492    esac
9493
9494    case $cc_basename in
9495    nvcc*) # Cuda Compiler Driver 2.2
9496      lt_prog_compiler_wl='-Xlinker '
9497      if test -n "$lt_prog_compiler_pic"; then
9498        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9499      fi
9500      ;;
9501    esac
9502  else
9503    # PORTME Check for flag to pass linker flags through the system compiler.
9504    case $host_os in
9505    aix*)
9506      lt_prog_compiler_wl='-Wl,'
9507      if test ia64 = "$host_cpu"; then
9508	# AIX 5 now supports IA64 processor
9509	lt_prog_compiler_static='-Bstatic'
9510      else
9511	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9512      fi
9513      ;;
9514
9515    darwin* | rhapsody*)
9516      # PIC is the default on this platform
9517      # Common symbols not allowed in MH_DYLIB files
9518      lt_prog_compiler_pic='-fno-common'
9519      case $cc_basename in
9520      nagfor*)
9521        # NAG Fortran compiler
9522        lt_prog_compiler_wl='-Wl,-Wl,,'
9523        lt_prog_compiler_pic='-PIC'
9524        lt_prog_compiler_static='-Bstatic'
9525        ;;
9526      esac
9527      ;;
9528
9529    mingw* | cygwin* | pw32* | os2* | cegcc*)
9530      # This hack is so that the source file can tell whether it is being
9531      # built for inclusion in a dll (and should export symbols for example).
9532      lt_prog_compiler_pic='-DDLL_EXPORT'
9533      case $host_os in
9534      os2*)
9535	lt_prog_compiler_static='$wl-static'
9536	;;
9537      esac
9538      ;;
9539
9540    hpux9* | hpux10* | hpux11*)
9541      lt_prog_compiler_wl='-Wl,'
9542      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9543      # not for PA HP-UX.
9544      case $host_cpu in
9545      hppa*64*|ia64*)
9546	# +Z the default
9547	;;
9548      *)
9549	lt_prog_compiler_pic='+Z'
9550	;;
9551      esac
9552      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9553      lt_prog_compiler_static='$wl-a ${wl}archive'
9554      ;;
9555
9556    irix5* | irix6* | nonstopux*)
9557      lt_prog_compiler_wl='-Wl,'
9558      # PIC (with -KPIC) is the default.
9559      lt_prog_compiler_static='-non_shared'
9560      ;;
9561
9562    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9563      case $cc_basename in
9564      # old Intel for x86_64, which still supported -KPIC.
9565      ecc*)
9566	lt_prog_compiler_wl='-Wl,'
9567	lt_prog_compiler_pic='-KPIC'
9568	lt_prog_compiler_static='-static'
9569        ;;
9570      # icc used to be incompatible with GCC.
9571      # ICC 10 doesn't accept -KPIC any more.
9572      icc* | ifort*)
9573	lt_prog_compiler_wl='-Wl,'
9574	lt_prog_compiler_pic='-fPIC'
9575	lt_prog_compiler_static='-static'
9576        ;;
9577      # Lahey Fortran 8.1.
9578      lf95*)
9579	lt_prog_compiler_wl='-Wl,'
9580	lt_prog_compiler_pic='--shared'
9581	lt_prog_compiler_static='--static'
9582	;;
9583      nagfor*)
9584	# NAG Fortran compiler
9585	lt_prog_compiler_wl='-Wl,-Wl,,'
9586	lt_prog_compiler_pic='-PIC'
9587	lt_prog_compiler_static='-Bstatic'
9588	;;
9589      tcc*)
9590	# Fabrice Bellard et al's Tiny C Compiler
9591	lt_prog_compiler_wl='-Wl,'
9592	lt_prog_compiler_pic='-fPIC'
9593	lt_prog_compiler_static='-static'
9594	;;
9595      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9596        # Portland Group compilers (*not* the Pentium gcc compiler,
9597	# which looks to be a dead project)
9598	lt_prog_compiler_wl='-Wl,'
9599	lt_prog_compiler_pic='-fpic'
9600	lt_prog_compiler_static='-Bstatic'
9601        ;;
9602      ccc*)
9603        lt_prog_compiler_wl='-Wl,'
9604        # All Alpha code is PIC.
9605        lt_prog_compiler_static='-non_shared'
9606        ;;
9607      xl* | bgxl* | bgf* | mpixl*)
9608	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9609	lt_prog_compiler_wl='-Wl,'
9610	lt_prog_compiler_pic='-qpic'
9611	lt_prog_compiler_static='-qstaticlink'
9612	;;
9613      *)
9614	case `$CC -V 2>&1 | sed 5q` in
9615	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9616	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9617	  lt_prog_compiler_pic='-KPIC'
9618	  lt_prog_compiler_static='-Bstatic'
9619	  lt_prog_compiler_wl=''
9620	  ;;
9621	*Sun\ F* | *Sun*Fortran*)
9622	  lt_prog_compiler_pic='-KPIC'
9623	  lt_prog_compiler_static='-Bstatic'
9624	  lt_prog_compiler_wl='-Qoption ld '
9625	  ;;
9626	*Sun\ C*)
9627	  # Sun C 5.9
9628	  lt_prog_compiler_pic='-KPIC'
9629	  lt_prog_compiler_static='-Bstatic'
9630	  lt_prog_compiler_wl='-Wl,'
9631	  ;;
9632        *Intel*\ [CF]*Compiler*)
9633	  lt_prog_compiler_wl='-Wl,'
9634	  lt_prog_compiler_pic='-fPIC'
9635	  lt_prog_compiler_static='-static'
9636	  ;;
9637	*Portland\ Group*)
9638	  lt_prog_compiler_wl='-Wl,'
9639	  lt_prog_compiler_pic='-fpic'
9640	  lt_prog_compiler_static='-Bstatic'
9641	  ;;
9642	esac
9643	;;
9644      esac
9645      ;;
9646
9647    newsos6)
9648      lt_prog_compiler_pic='-KPIC'
9649      lt_prog_compiler_static='-Bstatic'
9650      ;;
9651
9652    *nto* | *qnx*)
9653      # QNX uses GNU C++, but need to define -shared option too, otherwise
9654      # it will coredump.
9655      lt_prog_compiler_pic='-fPIC -shared'
9656      ;;
9657
9658    osf3* | osf4* | osf5*)
9659      lt_prog_compiler_wl='-Wl,'
9660      # All OSF/1 code is PIC.
9661      lt_prog_compiler_static='-non_shared'
9662      ;;
9663
9664    rdos*)
9665      lt_prog_compiler_static='-non_shared'
9666      ;;
9667
9668    solaris*)
9669      lt_prog_compiler_pic='-KPIC'
9670      lt_prog_compiler_static='-Bstatic'
9671      case $cc_basename in
9672      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9673	lt_prog_compiler_wl='-Qoption ld ';;
9674      *)
9675	lt_prog_compiler_wl='-Wl,';;
9676      esac
9677      ;;
9678
9679    sunos4*)
9680      lt_prog_compiler_wl='-Qoption ld '
9681      lt_prog_compiler_pic='-PIC'
9682      lt_prog_compiler_static='-Bstatic'
9683      ;;
9684
9685    sysv4 | sysv4.2uw2* | sysv4.3*)
9686      lt_prog_compiler_wl='-Wl,'
9687      lt_prog_compiler_pic='-KPIC'
9688      lt_prog_compiler_static='-Bstatic'
9689      ;;
9690
9691    sysv4*MP*)
9692      if test -d /usr/nec; then
9693	lt_prog_compiler_pic='-Kconform_pic'
9694	lt_prog_compiler_static='-Bstatic'
9695      fi
9696      ;;
9697
9698    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9699      lt_prog_compiler_wl='-Wl,'
9700      lt_prog_compiler_pic='-KPIC'
9701      lt_prog_compiler_static='-Bstatic'
9702      ;;
9703
9704    unicos*)
9705      lt_prog_compiler_wl='-Wl,'
9706      lt_prog_compiler_can_build_shared=no
9707      ;;
9708
9709    uts4*)
9710      lt_prog_compiler_pic='-pic'
9711      lt_prog_compiler_static='-Bstatic'
9712      ;;
9713
9714    *)
9715      lt_prog_compiler_can_build_shared=no
9716      ;;
9717    esac
9718  fi
9719
9720case $host_os in
9721  # For platforms that do not support PIC, -DPIC is meaningless:
9722  *djgpp*)
9723    lt_prog_compiler_pic=
9724    ;;
9725  *)
9726    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9727    ;;
9728esac
9729
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9731$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9732if ${lt_cv_prog_compiler_pic+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9736fi
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9738$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9739lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9740
9741#
9742# Check to make sure the PIC flag actually works.
9743#
9744if test -n "$lt_prog_compiler_pic"; then
9745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9746$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9747if ${lt_cv_prog_compiler_pic_works+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  lt_cv_prog_compiler_pic_works=no
9751   ac_outfile=conftest.$ac_objext
9752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9753   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9754   # Insert the option either (1) after the last *FLAGS variable, or
9755   # (2) before a word containing "conftest.", or (3) at the end.
9756   # Note that $ac_compile itself does not contain backslashes and begins
9757   # with a dollar sign (not a hyphen), so the echo should work correctly.
9758   # The option is referenced via a variable to avoid confusing sed.
9759   lt_compile=`echo "$ac_compile" | $SED \
9760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9762   -e 's:$: $lt_compiler_flag:'`
9763   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9764   (eval "$lt_compile" 2>conftest.err)
9765   ac_status=$?
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   if (exit $ac_status) && test -s "$ac_outfile"; then
9769     # The compiler can only warn and ignore the option if not recognized
9770     # So say no if there are warnings other than the usual output.
9771     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9774       lt_cv_prog_compiler_pic_works=yes
9775     fi
9776   fi
9777   $RM conftest*
9778
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9781$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9782
9783if test yes = "$lt_cv_prog_compiler_pic_works"; then
9784    case $lt_prog_compiler_pic in
9785     "" | " "*) ;;
9786     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9787     esac
9788else
9789    lt_prog_compiler_pic=
9790     lt_prog_compiler_can_build_shared=no
9791fi
9792
9793fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805#
9806# Check to make sure the static flag actually works.
9807#
9808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9810$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9811if ${lt_cv_prog_compiler_static_works+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  lt_cv_prog_compiler_static_works=no
9815   save_LDFLAGS=$LDFLAGS
9816   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9817   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9818   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819     # The linker can only warn and ignore the option if not recognized
9820     # So say no if there are warnings
9821     if test -s conftest.err; then
9822       # Append any errors to the config.log.
9823       cat conftest.err 1>&5
9824       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9825       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826       if diff conftest.exp conftest.er2 >/dev/null; then
9827         lt_cv_prog_compiler_static_works=yes
9828       fi
9829     else
9830       lt_cv_prog_compiler_static_works=yes
9831     fi
9832   fi
9833   $RM -r conftest*
9834   LDFLAGS=$save_LDFLAGS
9835
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9838$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9839
9840if test yes = "$lt_cv_prog_compiler_static_works"; then
9841    :
9842else
9843    lt_prog_compiler_static=
9844fi
9845
9846
9847
9848
9849
9850
9851
9852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9854if ${lt_cv_prog_compiler_c_o+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  lt_cv_prog_compiler_c_o=no
9858   $RM -r conftest 2>/dev/null
9859   mkdir conftest
9860   cd conftest
9861   mkdir out
9862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9863
9864   lt_compiler_flag="-o out/conftest2.$ac_objext"
9865   # Insert the option either (1) after the last *FLAGS variable, or
9866   # (2) before a word containing "conftest.", or (3) at the end.
9867   # Note that $ac_compile itself does not contain backslashes and begins
9868   # with a dollar sign (not a hyphen), so the echo should work correctly.
9869   lt_compile=`echo "$ac_compile" | $SED \
9870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9872   -e 's:$: $lt_compiler_flag:'`
9873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9874   (eval "$lt_compile" 2>out/conftest.err)
9875   ac_status=$?
9876   cat out/conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9879   then
9880     # The compiler can only warn and ignore the option if not recognized
9881     # So say no if there are warnings
9882     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9885       lt_cv_prog_compiler_c_o=yes
9886     fi
9887   fi
9888   chmod u+w . 2>&5
9889   $RM conftest*
9890   # SGI C++ compiler will create directory out/ii_files/ for
9891   # template instantiation
9892   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9893   $RM out/* && rmdir out
9894   cd ..
9895   $RM -r conftest
9896   $RM conftest*
9897
9898fi
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9901
9902
9903
9904
9905
9906
9907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9909if ${lt_cv_prog_compiler_c_o+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  lt_cv_prog_compiler_c_o=no
9913   $RM -r conftest 2>/dev/null
9914   mkdir conftest
9915   cd conftest
9916   mkdir out
9917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918
9919   lt_compiler_flag="-o out/conftest2.$ac_objext"
9920   # Insert the option either (1) after the last *FLAGS variable, or
9921   # (2) before a word containing "conftest.", or (3) at the end.
9922   # Note that $ac_compile itself does not contain backslashes and begins
9923   # with a dollar sign (not a hyphen), so the echo should work correctly.
9924   lt_compile=`echo "$ac_compile" | $SED \
9925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9927   -e 's:$: $lt_compiler_flag:'`
9928   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9929   (eval "$lt_compile" 2>out/conftest.err)
9930   ac_status=$?
9931   cat out/conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9934   then
9935     # The compiler can only warn and ignore the option if not recognized
9936     # So say no if there are warnings
9937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9940       lt_cv_prog_compiler_c_o=yes
9941     fi
9942   fi
9943   chmod u+w . 2>&5
9944   $RM conftest*
9945   # SGI C++ compiler will create directory out/ii_files/ for
9946   # template instantiation
9947   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9948   $RM out/* && rmdir out
9949   cd ..
9950   $RM -r conftest
9951   $RM conftest*
9952
9953fi
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9956
9957
9958
9959
9960hard_links=nottested
9961if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9962  # do not overwrite the value of need_locks provided by the user
9963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9964$as_echo_n "checking if we can lock with hard links... " >&6; }
9965  hard_links=yes
9966  $RM conftest*
9967  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9968  touch conftest.a
9969  ln conftest.a conftest.b 2>&5 || hard_links=no
9970  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9972$as_echo "$hard_links" >&6; }
9973  if test no = "$hard_links"; then
9974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9975$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9976    need_locks=warn
9977  fi
9978else
9979  need_locks=no
9980fi
9981
9982
9983
9984
9985
9986
9987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9989
9990  runpath_var=
9991  allow_undefined_flag=
9992  always_export_symbols=no
9993  archive_cmds=
9994  archive_expsym_cmds=
9995  compiler_needs_object=no
9996  enable_shared_with_static_runtimes=no
9997  export_dynamic_flag_spec=
9998  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9999  hardcode_automatic=no
10000  hardcode_direct=no
10001  hardcode_direct_absolute=no
10002  hardcode_libdir_flag_spec=
10003  hardcode_libdir_separator=
10004  hardcode_minus_L=no
10005  hardcode_shlibpath_var=unsupported
10006  inherit_rpath=no
10007  link_all_deplibs=unknown
10008  module_cmds=
10009  module_expsym_cmds=
10010  old_archive_from_new_cmds=
10011  old_archive_from_expsyms_cmds=
10012  thread_safe_flag_spec=
10013  whole_archive_flag_spec=
10014  # include_expsyms should be a list of space-separated symbols to be *always*
10015  # included in the symbol list
10016  include_expsyms=
10017  # exclude_expsyms can be an extended regexp of symbols to exclude
10018  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10019  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10020  # as well as any symbol that contains 'd'.
10021  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10022  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10023  # platforms (ab)use it in PIC code, but their linkers get confused if
10024  # the symbol is explicitly referenced.  Since portable code cannot
10025  # rely on this symbol name, it's probably fine to never include it in
10026  # preloaded symbol tables.
10027  # Exclude shared library initialization/finalization symbols.
10028  extract_expsyms_cmds=
10029
10030  case $host_os in
10031  cygwin* | mingw* | pw32* | cegcc*)
10032    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10033    # When not using gcc, we currently assume that we are using
10034    # Microsoft Visual C++.
10035    if test yes != "$GCC"; then
10036      with_gnu_ld=no
10037    fi
10038    ;;
10039  interix*)
10040    # we just hope/assume this is gcc and not c89 (= MSVC++)
10041    with_gnu_ld=yes
10042    ;;
10043  openbsd* | bitrig*)
10044    with_gnu_ld=no
10045    ;;
10046  esac
10047
10048  ld_shlibs=yes
10049
10050  # On some targets, GNU ld is compatible enough with the native linker
10051  # that we're better off using the native interface for both.
10052  lt_use_gnu_ld_interface=no
10053  if test yes = "$with_gnu_ld"; then
10054    case $host_os in
10055      aix*)
10056	# The AIX port of GNU ld has always aspired to compatibility
10057	# with the native linker.  However, as the warning in the GNU ld
10058	# block says, versions before 2.19.5* couldn't really create working
10059	# shared libraries, regardless of the interface used.
10060	case `$LD -v 2>&1` in
10061	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10062	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10063	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10064	  *)
10065	    lt_use_gnu_ld_interface=yes
10066	    ;;
10067	esac
10068	;;
10069      *)
10070	lt_use_gnu_ld_interface=yes
10071	;;
10072    esac
10073  fi
10074
10075  if test yes = "$lt_use_gnu_ld_interface"; then
10076    # If archive_cmds runs LD, not CC, wlarc should be empty
10077    wlarc='$wl'
10078
10079    # Set some defaults for GNU ld with shared library support. These
10080    # are reset later if shared libraries are not supported. Putting them
10081    # here allows them to be overridden if necessary.
10082    runpath_var=LD_RUN_PATH
10083    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10084    export_dynamic_flag_spec='$wl--export-dynamic'
10085    # ancient GNU ld didn't support --whole-archive et. al.
10086    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10087      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10088    else
10089      whole_archive_flag_spec=
10090    fi
10091    supports_anon_versioning=no
10092    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10093      *GNU\ gold*) supports_anon_versioning=yes ;;
10094      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10095      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10096      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10097      *\ 2.11.*) ;; # other 2.11 versions
10098      *) supports_anon_versioning=yes ;;
10099    esac
10100
10101    # See if GNU ld supports shared libraries.
10102    case $host_os in
10103    aix[3-9]*)
10104      # On AIX/PPC, the GNU linker is very broken
10105      if test ia64 != "$host_cpu"; then
10106	ld_shlibs=no
10107	cat <<_LT_EOF 1>&2
10108
10109*** Warning: the GNU linker, at least up to release 2.19, is reported
10110*** to be unable to reliably create shared libraries on AIX.
10111*** Therefore, libtool is disabling shared libraries support.  If you
10112*** really care for shared libraries, you may want to install binutils
10113*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10114*** You will then need to restart the configuration process.
10115
10116_LT_EOF
10117      fi
10118      ;;
10119
10120    amigaos*)
10121      case $host_cpu in
10122      powerpc)
10123            # see comment about AmigaOS4 .so support
10124            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10125            archive_expsym_cmds=''
10126        ;;
10127      m68k)
10128            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)'
10129            hardcode_libdir_flag_spec='-L$libdir'
10130            hardcode_minus_L=yes
10131        ;;
10132      esac
10133      ;;
10134
10135    beos*)
10136      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10137	allow_undefined_flag=unsupported
10138	# Joseph Beckenbach <[email protected]> says some releases of gcc
10139	# support --undefined.  This deserves some investigation.  FIXME
10140	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10141      else
10142	ld_shlibs=no
10143      fi
10144      ;;
10145
10146    cygwin* | mingw* | pw32* | cegcc*)
10147      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10148      # as there is no search path for DLLs.
10149      hardcode_libdir_flag_spec='-L$libdir'
10150      export_dynamic_flag_spec='$wl--export-all-symbols'
10151      allow_undefined_flag=unsupported
10152      always_export_symbols=no
10153      enable_shared_with_static_runtimes=yes
10154      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'
10155      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10156
10157      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10158        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10159	# If the export-symbols file already is a .def file, use it as
10160	# is; otherwise, prepend EXPORTS...
10161	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10162          cp $export_symbols $output_objdir/$soname.def;
10163        else
10164          echo EXPORTS > $output_objdir/$soname.def;
10165          cat $export_symbols >> $output_objdir/$soname.def;
10166        fi~
10167        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10168      else
10169	ld_shlibs=no
10170      fi
10171      ;;
10172
10173    haiku*)
10174      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10175      link_all_deplibs=yes
10176      ;;
10177
10178    os2*)
10179      hardcode_libdir_flag_spec='-L$libdir'
10180      hardcode_minus_L=yes
10181      allow_undefined_flag=unsupported
10182      shrext_cmds=.dll
10183      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10184	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10185	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10186	$ECHO EXPORTS >> $output_objdir/$libname.def~
10187	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10188	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10189	emximp -o $lib $output_objdir/$libname.def'
10190      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10191	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10192	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10193	$ECHO EXPORTS >> $output_objdir/$libname.def~
10194	prefix_cmds="$SED"~
10195	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10196	  prefix_cmds="$prefix_cmds -e 1d";
10197	fi~
10198	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10199	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10200	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10201	emximp -o $lib $output_objdir/$libname.def'
10202      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10203      enable_shared_with_static_runtimes=yes
10204      ;;
10205
10206    interix[3-9]*)
10207      hardcode_direct=no
10208      hardcode_shlibpath_var=no
10209      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10210      export_dynamic_flag_spec='$wl-E'
10211      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10212      # Instead, shared libraries are loaded at an image base (0x10000000 by
10213      # default) and relocated if they conflict, which is a slow very memory
10214      # consuming and fragmenting process.  To avoid this, we pick a random,
10215      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10216      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10217      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10218      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'
10219      ;;
10220
10221    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10222      tmp_diet=no
10223      if test linux-dietlibc = "$host_os"; then
10224	case $cc_basename in
10225	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10226	esac
10227      fi
10228      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10229	 && test no = "$tmp_diet"
10230      then
10231	tmp_addflag=' $pic_flag'
10232	tmp_sharedflag='-shared'
10233	case $cc_basename,$host_cpu in
10234        pgcc*)				# Portland Group C compiler
10235	  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'
10236	  tmp_addflag=' $pic_flag'
10237	  ;;
10238	pgf77* | pgf90* | pgf95* | pgfortran*)
10239					# Portland Group f77 and f90 compilers
10240	  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'
10241	  tmp_addflag=' $pic_flag -Mnomain' ;;
10242	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10243	  tmp_addflag=' -i_dynamic' ;;
10244	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10245	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10246	ifc* | ifort*)			# Intel Fortran compiler
10247	  tmp_addflag=' -nofor_main' ;;
10248	lf95*)				# Lahey Fortran 8.1
10249	  whole_archive_flag_spec=
10250	  tmp_sharedflag='--shared' ;;
10251        nagfor*)                        # NAGFOR 5.3
10252          tmp_sharedflag='-Wl,-shared' ;;
10253	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10254	  tmp_sharedflag='-qmkshrobj'
10255	  tmp_addflag= ;;
10256	nvcc*)	# Cuda Compiler Driver 2.2
10257	  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'
10258	  compiler_needs_object=yes
10259	  ;;
10260	esac
10261	case `$CC -V 2>&1 | sed 5q` in
10262	*Sun\ C*)			# Sun C 5.9
10263	  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'
10264	  compiler_needs_object=yes
10265	  tmp_sharedflag='-G' ;;
10266	*Sun\ F*)			# Sun Fortran 8.3
10267	  tmp_sharedflag='-G' ;;
10268	esac
10269	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10270
10271        if test yes = "$supports_anon_versioning"; then
10272          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10273            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10274            echo "local: *; };" >> $output_objdir/$libname.ver~
10275            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10276        fi
10277
10278	case $cc_basename in
10279	tcc*)
10280	  export_dynamic_flag_spec='-rdynamic'
10281	  ;;
10282	xlf* | bgf* | bgxlf* | mpixlf*)
10283	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10284	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10285	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10286	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10287	  if test yes = "$supports_anon_versioning"; then
10288	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10289              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10290              echo "local: *; };" >> $output_objdir/$libname.ver~
10291              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10292	  fi
10293	  ;;
10294	esac
10295      else
10296        ld_shlibs=no
10297      fi
10298      ;;
10299
10300    netbsd*)
10301      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10302	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10303	wlarc=
10304      else
10305	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10307      fi
10308      ;;
10309
10310    solaris*)
10311      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10312	ld_shlibs=no
10313	cat <<_LT_EOF 1>&2
10314
10315*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10316*** create shared libraries on Solaris systems.  Therefore, libtool
10317*** is disabling shared libraries support.  We urge you to upgrade GNU
10318*** binutils to release 2.9.1 or newer.  Another option is to modify
10319*** your PATH or compiler configuration so that the native linker is
10320*** used, and then restart.
10321
10322_LT_EOF
10323      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10324	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10325	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10326      else
10327	ld_shlibs=no
10328      fi
10329      ;;
10330
10331    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10332      case `$LD -v 2>&1` in
10333        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10334	ld_shlibs=no
10335	cat <<_LT_EOF 1>&2
10336
10337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10338*** reliably create shared libraries on SCO systems.  Therefore, libtool
10339*** is disabling shared libraries support.  We urge you to upgrade GNU
10340*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10341*** your PATH or compiler configuration so that the native linker is
10342*** used, and then restart.
10343
10344_LT_EOF
10345	;;
10346	*)
10347	  # For security reasons, it is highly recommended that you always
10348	  # use absolute paths for naming shared libraries, and exclude the
10349	  # DT_RUNPATH tag from executables and libraries.  But doing so
10350	  # requires that you compile everything twice, which is a pain.
10351	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10352	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10353	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10354	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10355	  else
10356	    ld_shlibs=no
10357	  fi
10358	;;
10359      esac
10360      ;;
10361
10362    sunos4*)
10363      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10364      wlarc=
10365      hardcode_direct=yes
10366      hardcode_shlibpath_var=no
10367      ;;
10368
10369    *)
10370      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10371	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10372	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10373      else
10374	ld_shlibs=no
10375      fi
10376      ;;
10377    esac
10378
10379    if test no = "$ld_shlibs"; then
10380      runpath_var=
10381      hardcode_libdir_flag_spec=
10382      export_dynamic_flag_spec=
10383      whole_archive_flag_spec=
10384    fi
10385  else
10386    # PORTME fill in a description of your system's linker (not GNU ld)
10387    case $host_os in
10388    aix3*)
10389      allow_undefined_flag=unsupported
10390      always_export_symbols=yes
10391      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'
10392      # Note: this linker hardcodes the directories in LIBPATH if there
10393      # are no directories specified by -L.
10394      hardcode_minus_L=yes
10395      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10396	# Neither direct hardcoding nor static linking is supported with a
10397	# broken collect2.
10398	hardcode_direct=unsupported
10399      fi
10400      ;;
10401
10402    aix[4-9]*)
10403      if test ia64 = "$host_cpu"; then
10404	# On IA64, the linker does run time linking by default, so we don't
10405	# have to do anything special.
10406	aix_use_runtimelinking=no
10407	exp_sym_flag='-Bexport'
10408	no_entry_flag=
10409      else
10410	# If we're using GNU nm, then we don't want the "-C" option.
10411	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10412	# Without the "-l" option, or with the "-B" option, AIX nm treats
10413	# weak defined symbols like other global defined symbols, whereas
10414	# GNU nm marks them as "W".
10415	# While the 'weak' keyword is ignored in the Export File, we need
10416	# it in the Import File for the 'aix-soname' feature, so we have
10417	# to replace the "-B" option with "-P" for AIX nm.
10418	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10419	  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'
10420	else
10421	  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'
10422	fi
10423	aix_use_runtimelinking=no
10424
10425	# Test if we are trying to use run time linking or normal
10426	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10427	# have runtime linking enabled, and use it for executables.
10428	# For shared libraries, we enable/disable runtime linking
10429	# depending on the kind of the shared library created -
10430	# when "with_aix_soname,aix_use_runtimelinking" is:
10431	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10432	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10433	#            lib.a           static archive
10434	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10435	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10436	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10437	#            lib.a(lib.so.V) shared, rtl:no
10438	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10439	#            lib.a           static archive
10440	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10441	  for ld_flag in $LDFLAGS; do
10442	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10443	    aix_use_runtimelinking=yes
10444	    break
10445	  fi
10446	  done
10447	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10448	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10449	    # so we don't have lib.a shared libs to link our executables.
10450	    # We have to force runtime linking in this case.
10451	    aix_use_runtimelinking=yes
10452	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10453	  fi
10454	  ;;
10455	esac
10456
10457	exp_sym_flag='-bexport'
10458	no_entry_flag='-bnoentry'
10459      fi
10460
10461      # When large executables or shared objects are built, AIX ld can
10462      # have problems creating the table of contents.  If linking a library
10463      # or program results in "error TOC overflow" add -mminimal-toc to
10464      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10465      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10466
10467      archive_cmds=''
10468      hardcode_direct=yes
10469      hardcode_direct_absolute=yes
10470      hardcode_libdir_separator=':'
10471      link_all_deplibs=yes
10472      file_list_spec='$wl-f,'
10473      case $with_aix_soname,$aix_use_runtimelinking in
10474      aix,*) ;; # traditional, no import file
10475      svr4,* | *,yes) # use import file
10476	# The Import File defines what to hardcode.
10477	hardcode_direct=no
10478	hardcode_direct_absolute=no
10479	;;
10480      esac
10481
10482      if test yes = "$GCC"; then
10483	case $host_os in aix4.[012]|aix4.[012].*)
10484	# We only want to do this on AIX 4.2 and lower, the check
10485	# below for broken collect2 doesn't work under 4.3+
10486	  collect2name=`$CC -print-prog-name=collect2`
10487	  if test -f "$collect2name" &&
10488	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10489	  then
10490	  # We have reworked collect2
10491	  :
10492	  else
10493	  # We have old collect2
10494	  hardcode_direct=unsupported
10495	  # It fails to find uninstalled libraries when the uninstalled
10496	  # path is not listed in the libpath.  Setting hardcode_minus_L
10497	  # to unsupported forces relinking
10498	  hardcode_minus_L=yes
10499	  hardcode_libdir_flag_spec='-L$libdir'
10500	  hardcode_libdir_separator=
10501	  fi
10502	  ;;
10503	esac
10504	shared_flag='-shared'
10505	if test yes = "$aix_use_runtimelinking"; then
10506	  shared_flag="$shared_flag "'$wl-G'
10507	fi
10508	# Need to ensure runtime linking is disabled for the traditional
10509	# shared library, or the linker may eventually find shared libraries
10510	# /with/ Import File - we do not want to mix them.
10511	shared_flag_aix='-shared'
10512	shared_flag_svr4='-shared $wl-G'
10513      else
10514	# not using gcc
10515	if test ia64 = "$host_cpu"; then
10516	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10517	# chokes on -Wl,-G. The following line is correct:
10518	  shared_flag='-G'
10519	else
10520	  if test yes = "$aix_use_runtimelinking"; then
10521	    shared_flag='$wl-G'
10522	  else
10523	    shared_flag='$wl-bM:SRE'
10524	  fi
10525	  shared_flag_aix='$wl-bM:SRE'
10526	  shared_flag_svr4='$wl-G'
10527	fi
10528      fi
10529
10530      export_dynamic_flag_spec='$wl-bexpall'
10531      # It seems that -bexpall does not export symbols beginning with
10532      # underscore (_), so it is better to generate a list of symbols to export.
10533      always_export_symbols=yes
10534      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10535	# Warning - without using the other runtime loading flags (-brtl),
10536	# -berok will link without error, but may produce a broken library.
10537	allow_undefined_flag='-berok'
10538        # Determine the default libpath from the value encoded in an
10539        # empty executable.
10540        if test set = "${lt_cv_aix_libpath+set}"; then
10541  aix_libpath=$lt_cv_aix_libpath
10542else
10543  if ${lt_cv_aix_libpath_+:} false; then :
10544  $as_echo_n "(cached) " >&6
10545else
10546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h.  */
10548
10549int
10550main ()
10551{
10552
10553  ;
10554  return 0;
10555}
10556_ACEOF
10557if ac_fn_c_try_link "$LINENO"; then :
10558
10559  lt_aix_libpath_sed='
10560      /Import File Strings/,/^$/ {
10561	  /^0/ {
10562	      s/^0  *\([^ ]*\) *$/\1/
10563	      p
10564	  }
10565      }'
10566  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10567  # Check for a 64-bit object if we didn't find anything.
10568  if test -z "$lt_cv_aix_libpath_"; then
10569    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10570  fi
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573    conftest$ac_exeext conftest.$ac_ext
10574  if test -z "$lt_cv_aix_libpath_"; then
10575    lt_cv_aix_libpath_=/usr/lib:/lib
10576  fi
10577
10578fi
10579
10580  aix_libpath=$lt_cv_aix_libpath_
10581fi
10582
10583        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10584        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
10585      else
10586	if test ia64 = "$host_cpu"; then
10587	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10588	  allow_undefined_flag="-z nodefs"
10589	  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"
10590	else
10591	 # Determine the default libpath from the value encoded in an
10592	 # empty executable.
10593	 if test set = "${lt_cv_aix_libpath+set}"; then
10594  aix_libpath=$lt_cv_aix_libpath
10595else
10596  if ${lt_cv_aix_libpath_+:} false; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600/* end confdefs.h.  */
10601
10602int
10603main ()
10604{
10605
10606  ;
10607  return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then :
10611
10612  lt_aix_libpath_sed='
10613      /Import File Strings/,/^$/ {
10614	  /^0/ {
10615	      s/^0  *\([^ ]*\) *$/\1/
10616	      p
10617	  }
10618      }'
10619  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10620  # Check for a 64-bit object if we didn't find anything.
10621  if test -z "$lt_cv_aix_libpath_"; then
10622    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10623  fi
10624fi
10625rm -f core conftest.err conftest.$ac_objext \
10626    conftest$ac_exeext conftest.$ac_ext
10627  if test -z "$lt_cv_aix_libpath_"; then
10628    lt_cv_aix_libpath_=/usr/lib:/lib
10629  fi
10630
10631fi
10632
10633  aix_libpath=$lt_cv_aix_libpath_
10634fi
10635
10636	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10637	  # Warning - without using the other run time loading flags,
10638	  # -berok will link without error, but may produce a broken library.
10639	  no_undefined_flag=' $wl-bernotok'
10640	  allow_undefined_flag=' $wl-berok'
10641	  if test yes = "$with_gnu_ld"; then
10642	    # We only use this code for GNU lds that support --whole-archive.
10643	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10644	  else
10645	    # Exported symbols can be pulled into shared objects from archives
10646	    whole_archive_flag_spec='$convenience'
10647	  fi
10648	  archive_cmds_need_lc=yes
10649	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10650	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10651	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10652	  if test svr4 != "$with_aix_soname"; then
10653	    # This is similar to how AIX traditionally builds its shared libraries.
10654	    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'
10655	  fi
10656	  if test aix != "$with_aix_soname"; then
10657	    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'
10658	  else
10659	    # used by -dlpreopen to get the symbols
10660	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10661	  fi
10662	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10663	fi
10664      fi
10665      ;;
10666
10667    amigaos*)
10668      case $host_cpu in
10669      powerpc)
10670            # see comment about AmigaOS4 .so support
10671            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10672            archive_expsym_cmds=''
10673        ;;
10674      m68k)
10675            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)'
10676            hardcode_libdir_flag_spec='-L$libdir'
10677            hardcode_minus_L=yes
10678        ;;
10679      esac
10680      ;;
10681
10682    bsdi[45]*)
10683      export_dynamic_flag_spec=-rdynamic
10684      ;;
10685
10686    cygwin* | mingw* | pw32* | cegcc*)
10687      # When not using gcc, we currently assume that we are using
10688      # Microsoft Visual C++.
10689      # hardcode_libdir_flag_spec is actually meaningless, as there is
10690      # no search path for DLLs.
10691      case $cc_basename in
10692      cl*)
10693	# Native MSVC
10694	hardcode_libdir_flag_spec=' '
10695	allow_undefined_flag=unsupported
10696	always_export_symbols=yes
10697	file_list_spec='@'
10698	# Tell ltmain to make .lib files, not .a files.
10699	libext=lib
10700	# Tell ltmain to make .dll files, not .so files.
10701	shrext_cmds=.dll
10702	# FIXME: Setting linknames here is a bad hack.
10703	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10704	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10705            cp "$export_symbols" "$output_objdir/$soname.def";
10706            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10707          else
10708            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10709          fi~
10710          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10711          linknames='
10712	# The linker will not automatically build a static lib if we build a DLL.
10713	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10714	enable_shared_with_static_runtimes=yes
10715	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10716	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10717	# Don't use ranlib
10718	old_postinstall_cmds='chmod 644 $oldlib'
10719	postlink_cmds='lt_outputfile="@OUTPUT@"~
10720          lt_tool_outputfile="@TOOL_OUTPUT@"~
10721          case $lt_outputfile in
10722            *.exe|*.EXE) ;;
10723            *)
10724              lt_outputfile=$lt_outputfile.exe
10725              lt_tool_outputfile=$lt_tool_outputfile.exe
10726              ;;
10727          esac~
10728          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10729            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10730            $RM "$lt_outputfile.manifest";
10731          fi'
10732	;;
10733      *)
10734	# Assume MSVC wrapper
10735	hardcode_libdir_flag_spec=' '
10736	allow_undefined_flag=unsupported
10737	# Tell ltmain to make .lib files, not .a files.
10738	libext=lib
10739	# Tell ltmain to make .dll files, not .so files.
10740	shrext_cmds=.dll
10741	# FIXME: Setting linknames here is a bad hack.
10742	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10743	# The linker will automatically build a .lib file if we build a DLL.
10744	old_archive_from_new_cmds='true'
10745	# FIXME: Should let the user specify the lib program.
10746	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10747	enable_shared_with_static_runtimes=yes
10748	;;
10749      esac
10750      ;;
10751
10752    darwin* | rhapsody*)
10753
10754
10755  archive_cmds_need_lc=no
10756  hardcode_direct=no
10757  hardcode_automatic=yes
10758  hardcode_shlibpath_var=unsupported
10759  if test yes = "$lt_cv_ld_force_load"; then
10760    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\"`'
10761
10762  else
10763    whole_archive_flag_spec=''
10764  fi
10765  link_all_deplibs=yes
10766  allow_undefined_flag=$_lt_dar_allow_undefined
10767  case $cc_basename in
10768     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10769     *) _lt_dar_can_shared=$GCC ;;
10770  esac
10771  if test yes = "$_lt_dar_can_shared"; then
10772    output_verbose_link_cmd=func_echo_all
10773    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10774    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10775    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"
10776    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"
10777
10778  else
10779  ld_shlibs=no
10780  fi
10781
10782      ;;
10783
10784    dgux*)
10785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786      hardcode_libdir_flag_spec='-L$libdir'
10787      hardcode_shlibpath_var=no
10788      ;;
10789
10790    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10791    # support.  Future versions do this automatically, but an explicit c++rt0.o
10792    # does not break anything, and helps significantly (at the cost of a little
10793    # extra space).
10794    freebsd2.2*)
10795      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10796      hardcode_libdir_flag_spec='-R$libdir'
10797      hardcode_direct=yes
10798      hardcode_shlibpath_var=no
10799      ;;
10800
10801    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10802    freebsd2.*)
10803      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804      hardcode_direct=yes
10805      hardcode_minus_L=yes
10806      hardcode_shlibpath_var=no
10807      ;;
10808
10809    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10810    freebsd* | dragonfly*)
10811      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10812      hardcode_libdir_flag_spec='-R$libdir'
10813      hardcode_direct=yes
10814      hardcode_shlibpath_var=no
10815      ;;
10816
10817    hpux9*)
10818      if test yes = "$GCC"; then
10819	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'
10820      else
10821	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'
10822      fi
10823      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10824      hardcode_libdir_separator=:
10825      hardcode_direct=yes
10826
10827      # hardcode_minus_L: Not really in the search PATH,
10828      # but as the default location of the library.
10829      hardcode_minus_L=yes
10830      export_dynamic_flag_spec='$wl-E'
10831      ;;
10832
10833    hpux10*)
10834      if test yes,no = "$GCC,$with_gnu_ld"; then
10835	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836      else
10837	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10838      fi
10839      if test no = "$with_gnu_ld"; then
10840	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10841	hardcode_libdir_separator=:
10842	hardcode_direct=yes
10843	hardcode_direct_absolute=yes
10844	export_dynamic_flag_spec='$wl-E'
10845	# hardcode_minus_L: Not really in the search PATH,
10846	# but as the default location of the library.
10847	hardcode_minus_L=yes
10848      fi
10849      ;;
10850
10851    hpux11*)
10852      if test yes,no = "$GCC,$with_gnu_ld"; then
10853	case $host_cpu in
10854	hppa*64*)
10855	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10856	  ;;
10857	ia64*)
10858	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10859	  ;;
10860	*)
10861	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10862	  ;;
10863	esac
10864      else
10865	case $host_cpu in
10866	hppa*64*)
10867	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10868	  ;;
10869	ia64*)
10870	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10871	  ;;
10872	*)
10873
10874	  # Older versions of the 11.00 compiler do not understand -b yet
10875	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10876	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10877$as_echo_n "checking if $CC understands -b... " >&6; }
10878if ${lt_cv_prog_compiler__b+:} false; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  lt_cv_prog_compiler__b=no
10882   save_LDFLAGS=$LDFLAGS
10883   LDFLAGS="$LDFLAGS -b"
10884   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10885   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10886     # The linker can only warn and ignore the option if not recognized
10887     # So say no if there are warnings
10888     if test -s conftest.err; then
10889       # Append any errors to the config.log.
10890       cat conftest.err 1>&5
10891       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10892       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10893       if diff conftest.exp conftest.er2 >/dev/null; then
10894         lt_cv_prog_compiler__b=yes
10895       fi
10896     else
10897       lt_cv_prog_compiler__b=yes
10898     fi
10899   fi
10900   $RM -r conftest*
10901   LDFLAGS=$save_LDFLAGS
10902
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10905$as_echo "$lt_cv_prog_compiler__b" >&6; }
10906
10907if test yes = "$lt_cv_prog_compiler__b"; then
10908    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10909else
10910    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10911fi
10912
10913	  ;;
10914	esac
10915      fi
10916      if test no = "$with_gnu_ld"; then
10917	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10918	hardcode_libdir_separator=:
10919
10920	case $host_cpu in
10921	hppa*64*|ia64*)
10922	  hardcode_direct=no
10923	  hardcode_shlibpath_var=no
10924	  ;;
10925	*)
10926	  hardcode_direct=yes
10927	  hardcode_direct_absolute=yes
10928	  export_dynamic_flag_spec='$wl-E'
10929
10930	  # hardcode_minus_L: Not really in the search PATH,
10931	  # but as the default location of the library.
10932	  hardcode_minus_L=yes
10933	  ;;
10934	esac
10935      fi
10936      ;;
10937
10938    irix5* | irix6* | nonstopux*)
10939      if test yes = "$GCC"; then
10940	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'
10941	# Try to use the -exported_symbol ld option, if it does not
10942	# work, assume that -exports_file does not work either and
10943	# implicitly export all symbols.
10944	# This should be the same for all languages, so no per-tag cache variable.
10945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10946$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10947if ${lt_cv_irix_exported_symbol+:} false; then :
10948  $as_echo_n "(cached) " >&6
10949else
10950  save_LDFLAGS=$LDFLAGS
10951	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10952	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h.  */
10954int foo (void) { return 0; }
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957  lt_cv_irix_exported_symbol=yes
10958else
10959  lt_cv_irix_exported_symbol=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962    conftest$ac_exeext conftest.$ac_ext
10963           LDFLAGS=$save_LDFLAGS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10966$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10967	if test yes = "$lt_cv_irix_exported_symbol"; then
10968          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'
10969	fi
10970      else
10971	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'
10972	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'
10973      fi
10974      archive_cmds_need_lc='no'
10975      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10976      hardcode_libdir_separator=:
10977      inherit_rpath=yes
10978      link_all_deplibs=yes
10979      ;;
10980
10981    linux*)
10982      case $cc_basename in
10983      tcc*)
10984	# Fabrice Bellard et al's Tiny C Compiler
10985	ld_shlibs=yes
10986	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10987	;;
10988      esac
10989      ;;
10990
10991    netbsd*)
10992      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10993	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10994      else
10995	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10996      fi
10997      hardcode_libdir_flag_spec='-R$libdir'
10998      hardcode_direct=yes
10999      hardcode_shlibpath_var=no
11000      ;;
11001
11002    newsos6)
11003      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11004      hardcode_direct=yes
11005      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11006      hardcode_libdir_separator=:
11007      hardcode_shlibpath_var=no
11008      ;;
11009
11010    *nto* | *qnx*)
11011      ;;
11012
11013    openbsd* | bitrig*)
11014      if test -f /usr/libexec/ld.so; then
11015	hardcode_direct=yes
11016	hardcode_shlibpath_var=no
11017	hardcode_direct_absolute=yes
11018	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11019	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11020	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11021	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11022	  export_dynamic_flag_spec='$wl-E'
11023	else
11024	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11025	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11026	fi
11027      else
11028	ld_shlibs=no
11029      fi
11030      ;;
11031
11032    os2*)
11033      hardcode_libdir_flag_spec='-L$libdir'
11034      hardcode_minus_L=yes
11035      allow_undefined_flag=unsupported
11036      shrext_cmds=.dll
11037      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11038	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11039	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11040	$ECHO EXPORTS >> $output_objdir/$libname.def~
11041	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11042	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11043	emximp -o $lib $output_objdir/$libname.def'
11044      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11045	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11046	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11047	$ECHO EXPORTS >> $output_objdir/$libname.def~
11048	prefix_cmds="$SED"~
11049	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11050	  prefix_cmds="$prefix_cmds -e 1d";
11051	fi~
11052	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11053	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11054	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11055	emximp -o $lib $output_objdir/$libname.def'
11056      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11057      enable_shared_with_static_runtimes=yes
11058      ;;
11059
11060    osf3*)
11061      if test yes = "$GCC"; then
11062	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11063	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'
11064      else
11065	allow_undefined_flag=' -expect_unresolved \*'
11066	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'
11067      fi
11068      archive_cmds_need_lc='no'
11069      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11070      hardcode_libdir_separator=:
11071      ;;
11072
11073    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11074      if test yes = "$GCC"; then
11075	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11076	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'
11077	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11078      else
11079	allow_undefined_flag=' -expect_unresolved \*'
11080	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'
11081	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~
11082          $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'
11083
11084	# Both c and cxx compiler support -rpath directly
11085	hardcode_libdir_flag_spec='-rpath $libdir'
11086      fi
11087      archive_cmds_need_lc='no'
11088      hardcode_libdir_separator=:
11089      ;;
11090
11091    solaris*)
11092      no_undefined_flag=' -z defs'
11093      if test yes = "$GCC"; then
11094	wlarc='$wl'
11095	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11096	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11097          $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'
11098      else
11099	case `$CC -V 2>&1` in
11100	*"Compilers 5.0"*)
11101	  wlarc=''
11102	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11104            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11105	  ;;
11106	*)
11107	  wlarc='$wl'
11108	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11109	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11110            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11111	  ;;
11112	esac
11113      fi
11114      hardcode_libdir_flag_spec='-R$libdir'
11115      hardcode_shlibpath_var=no
11116      case $host_os in
11117      solaris2.[0-5] | solaris2.[0-5].*) ;;
11118      *)
11119	# The compiler driver will combine and reorder linker options,
11120	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11121	# but is careful enough not to reorder.
11122	# Supported since Solaris 2.6 (maybe 2.5.1?)
11123	if test yes = "$GCC"; then
11124	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11125	else
11126	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11127	fi
11128	;;
11129      esac
11130      link_all_deplibs=yes
11131      ;;
11132
11133    sunos4*)
11134      if test sequent = "$host_vendor"; then
11135	# Use $CC to link under sequent, because it throws in some extra .o
11136	# files that make .init and .fini sections work.
11137	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11138      else
11139	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11140      fi
11141      hardcode_libdir_flag_spec='-L$libdir'
11142      hardcode_direct=yes
11143      hardcode_minus_L=yes
11144      hardcode_shlibpath_var=no
11145      ;;
11146
11147    sysv4)
11148      case $host_vendor in
11149	sni)
11150	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11151	  hardcode_direct=yes # is this really true???
11152	;;
11153	siemens)
11154	  ## LD is ld it makes a PLAMLIB
11155	  ## CC just makes a GrossModule.
11156	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11157	  reload_cmds='$CC -r -o $output$reload_objs'
11158	  hardcode_direct=no
11159        ;;
11160	motorola)
11161	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11162	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11163	;;
11164      esac
11165      runpath_var='LD_RUN_PATH'
11166      hardcode_shlibpath_var=no
11167      ;;
11168
11169    sysv4.3*)
11170      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171      hardcode_shlibpath_var=no
11172      export_dynamic_flag_spec='-Bexport'
11173      ;;
11174
11175    sysv4*MP*)
11176      if test -d /usr/nec; then
11177	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178	hardcode_shlibpath_var=no
11179	runpath_var=LD_RUN_PATH
11180	hardcode_runpath_var=yes
11181	ld_shlibs=yes
11182      fi
11183      ;;
11184
11185    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11186      no_undefined_flag='$wl-z,text'
11187      archive_cmds_need_lc=no
11188      hardcode_shlibpath_var=no
11189      runpath_var='LD_RUN_PATH'
11190
11191      if test yes = "$GCC"; then
11192	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194      else
11195	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11196	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197      fi
11198      ;;
11199
11200    sysv5* | sco3.2v5* | sco5v6*)
11201      # Note: We CANNOT use -z defs as we might desire, because we do not
11202      # link with -lc, and that would cause any symbols used from libc to
11203      # always be unresolved, which means just about no library would
11204      # ever link correctly.  If we're not using GNU ld we use -z text
11205      # though, which does catch some bad symbols but isn't as heavy-handed
11206      # as -z defs.
11207      no_undefined_flag='$wl-z,text'
11208      allow_undefined_flag='$wl-z,nodefs'
11209      archive_cmds_need_lc=no
11210      hardcode_shlibpath_var=no
11211      hardcode_libdir_flag_spec='$wl-R,$libdir'
11212      hardcode_libdir_separator=':'
11213      link_all_deplibs=yes
11214      export_dynamic_flag_spec='$wl-Bexport'
11215      runpath_var='LD_RUN_PATH'
11216
11217      if test yes = "$GCC"; then
11218	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220      else
11221	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11222	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11223      fi
11224      ;;
11225
11226    uts4*)
11227      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228      hardcode_libdir_flag_spec='-L$libdir'
11229      hardcode_shlibpath_var=no
11230      ;;
11231
11232    *)
11233      ld_shlibs=no
11234      ;;
11235    esac
11236
11237    if test sni = "$host_vendor"; then
11238      case $host in
11239      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11240	export_dynamic_flag_spec='$wl-Blargedynsym'
11241	;;
11242      esac
11243    fi
11244  fi
11245
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11247$as_echo "$ld_shlibs" >&6; }
11248test no = "$ld_shlibs" && can_build_shared=no
11249
11250with_gnu_ld=$with_gnu_ld
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266#
11267# Do we need to explicitly link libc?
11268#
11269case "x$archive_cmds_need_lc" in
11270x|xyes)
11271  # Assume -lc should be added
11272  archive_cmds_need_lc=yes
11273
11274  if test yes,yes = "$GCC,$enable_shared"; then
11275    case $archive_cmds in
11276    *'~'*)
11277      # FIXME: we may have to deal with multi-command sequences.
11278      ;;
11279    '$CC '*)
11280      # Test whether the compiler implicitly links with -lc since on some
11281      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11282      # to ld, don't add -lc before -lgcc.
11283      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11284$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11285if ${lt_cv_archive_cmds_need_lc+:} false; then :
11286  $as_echo_n "(cached) " >&6
11287else
11288  $RM conftest*
11289	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11290
11291	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11292  (eval $ac_compile) 2>&5
11293  ac_status=$?
11294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295  test $ac_status = 0; } 2>conftest.err; then
11296	  soname=conftest
11297	  lib=conftest
11298	  libobjs=conftest.$ac_objext
11299	  deplibs=
11300	  wl=$lt_prog_compiler_wl
11301	  pic_flag=$lt_prog_compiler_pic
11302	  compiler_flags=-v
11303	  linker_flags=-v
11304	  verstring=
11305	  output_objdir=.
11306	  libname=conftest
11307	  lt_save_allow_undefined_flag=$allow_undefined_flag
11308	  allow_undefined_flag=
11309	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11310  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11311  ac_status=$?
11312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11313  test $ac_status = 0; }
11314	  then
11315	    lt_cv_archive_cmds_need_lc=no
11316	  else
11317	    lt_cv_archive_cmds_need_lc=yes
11318	  fi
11319	  allow_undefined_flag=$lt_save_allow_undefined_flag
11320	else
11321	  cat conftest.err 1>&5
11322	fi
11323	$RM conftest*
11324
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11327$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11328      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11329      ;;
11330    esac
11331  fi
11332  ;;
11333esac
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11487$as_echo_n "checking dynamic linker characteristics... " >&6; }
11488
11489if test yes = "$GCC"; then
11490  case $host_os in
11491    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11492    *) lt_awk_arg='/^libraries:/' ;;
11493  esac
11494  case $host_os in
11495    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11496    *) lt_sed_strip_eq='s|=/|/|g' ;;
11497  esac
11498  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11499  case $lt_search_path_spec in
11500  *\;*)
11501    # if the path contains ";" then we assume it to be the separator
11502    # otherwise default to the standard path separator (i.e. ":") - it is
11503    # assumed that no part of a normal pathname contains ";" but that should
11504    # okay in the real world where ";" in dirpaths is itself problematic.
11505    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11506    ;;
11507  *)
11508    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11509    ;;
11510  esac
11511  # Ok, now we have the path, separated by spaces, we can step through it
11512  # and add multilib dir if necessary...
11513  lt_tmp_lt_search_path_spec=
11514  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11515  # ...but if some path component already ends with the multilib dir we assume
11516  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11517  case "$lt_multi_os_dir; $lt_search_path_spec " in
11518  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11519    lt_multi_os_dir=
11520    ;;
11521  esac
11522  for lt_sys_path in $lt_search_path_spec; do
11523    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11524      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11525    elif test -n "$lt_multi_os_dir"; then
11526      test -d "$lt_sys_path" && \
11527	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11528    fi
11529  done
11530  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11531BEGIN {RS = " "; FS = "/|\n";} {
11532  lt_foo = "";
11533  lt_count = 0;
11534  for (lt_i = NF; lt_i > 0; lt_i--) {
11535    if ($lt_i != "" && $lt_i != ".") {
11536      if ($lt_i == "..") {
11537        lt_count++;
11538      } else {
11539        if (lt_count == 0) {
11540          lt_foo = "/" $lt_i lt_foo;
11541        } else {
11542          lt_count--;
11543        }
11544      }
11545    }
11546  }
11547  if (lt_foo != "") { lt_freq[lt_foo]++; }
11548  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11549}'`
11550  # AWK program above erroneously prepends '/' to C:/dos/paths
11551  # for these hosts.
11552  case $host_os in
11553    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11554      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11555  esac
11556  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11557else
11558  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11559fi
11560library_names_spec=
11561libname_spec='lib$name'
11562soname_spec=
11563shrext_cmds=.so
11564postinstall_cmds=
11565postuninstall_cmds=
11566finish_cmds=
11567finish_eval=
11568shlibpath_var=
11569shlibpath_overrides_runpath=unknown
11570version_type=none
11571dynamic_linker="$host_os ld.so"
11572sys_lib_dlsearch_path_spec="/lib /usr/lib"
11573need_lib_prefix=unknown
11574hardcode_into_libs=no
11575
11576# when you set need_version to no, make sure it does not cause -set_version
11577# flags to be left without arguments
11578need_version=unknown
11579
11580case $host_os in
11581aix3*)
11582  version_type=linux # correct to gnu/linux during the next big refactor
11583  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11584  shlibpath_var=LIBPATH
11585
11586  # AIX 3 has no versioning support, so we append a major version to the name.
11587  soname_spec='$libname$release$shared_ext$major'
11588  ;;
11589
11590aix[4-9]*)
11591  version_type=linux # correct to gnu/linux during the next big refactor
11592  need_lib_prefix=no
11593  need_version=no
11594  hardcode_into_libs=yes
11595  if test ia64 = "$host_cpu"; then
11596    # AIX 5 supports IA64
11597    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11598    shlibpath_var=LD_LIBRARY_PATH
11599  else
11600    # With GCC up to 2.95.x, collect2 would create an import file
11601    # for dependence libraries.  The import file would start with
11602    # the line '#! .'.  This would cause the generated library to
11603    # depend on '.', always an invalid library.  This was fixed in
11604    # development snapshots of GCC prior to 3.0.
11605    case $host_os in
11606      aix4 | aix4.[01] | aix4.[01].*)
11607      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11608	   echo ' yes '
11609	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11610	:
11611      else
11612	can_build_shared=no
11613      fi
11614      ;;
11615    esac
11616    # Using Import Files as archive members, it is possible to support
11617    # filename-based versioning of shared library archives on AIX. While
11618    # this would work for both with and without runtime linking, it will
11619    # prevent static linking of such archives. So we do filename-based
11620    # shared library versioning with .so extension only, which is used
11621    # when both runtime linking and shared linking is enabled.
11622    # Unfortunately, runtime linking may impact performance, so we do
11623    # not want this to be the default eventually. Also, we use the
11624    # versioned .so libs for executables only if there is the -brtl
11625    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11626    # To allow for filename-based versioning support, we need to create
11627    # libNAME.so.V as an archive file, containing:
11628    # *) an Import File, referring to the versioned filename of the
11629    #    archive as well as the shared archive member, telling the
11630    #    bitwidth (32 or 64) of that shared object, and providing the
11631    #    list of exported symbols of that shared object, eventually
11632    #    decorated with the 'weak' keyword
11633    # *) the shared object with the F_LOADONLY flag set, to really avoid
11634    #    it being seen by the linker.
11635    # At run time we better use the real file rather than another symlink,
11636    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11637
11638    case $with_aix_soname,$aix_use_runtimelinking in
11639    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11640    # soname into executable. Probably we can add versioning support to
11641    # collect2, so additional links can be useful in future.
11642    aix,yes) # traditional libtool
11643      dynamic_linker='AIX unversionable lib.so'
11644      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11645      # instead of lib<name>.a to let people know that these are not
11646      # typical AIX shared libraries.
11647      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648      ;;
11649    aix,no) # traditional AIX only
11650      dynamic_linker='AIX lib.a(lib.so.V)'
11651      # We preserve .a as extension for shared libraries through AIX4.2
11652      # and later when we are not doing run time linking.
11653      library_names_spec='$libname$release.a $libname.a'
11654      soname_spec='$libname$release$shared_ext$major'
11655      ;;
11656    svr4,*) # full svr4 only
11657      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11658      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11659      # We do not specify a path in Import Files, so LIBPATH fires.
11660      shlibpath_overrides_runpath=yes
11661      ;;
11662    *,yes) # both, prefer svr4
11663      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11664      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11665      # unpreferred sharedlib libNAME.a needs extra handling
11666      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"'
11667      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"'
11668      # We do not specify a path in Import Files, so LIBPATH fires.
11669      shlibpath_overrides_runpath=yes
11670      ;;
11671    *,no) # both, prefer aix
11672      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11673      library_names_spec='$libname$release.a $libname.a'
11674      soname_spec='$libname$release$shared_ext$major'
11675      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11676      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)'
11677      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"'
11678      ;;
11679    esac
11680    shlibpath_var=LIBPATH
11681  fi
11682  ;;
11683
11684amigaos*)
11685  case $host_cpu in
11686  powerpc)
11687    # Since July 2007 AmigaOS4 officially supports .so libraries.
11688    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11689    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690    ;;
11691  m68k)
11692    library_names_spec='$libname.ixlibrary $libname.a'
11693    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11694    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'
11695    ;;
11696  esac
11697  ;;
11698
11699beos*)
11700  library_names_spec='$libname$shared_ext'
11701  dynamic_linker="$host_os ld.so"
11702  shlibpath_var=LIBRARY_PATH
11703  ;;
11704
11705bsdi[45]*)
11706  version_type=linux # correct to gnu/linux during the next big refactor
11707  need_version=no
11708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709  soname_spec='$libname$release$shared_ext$major'
11710  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11711  shlibpath_var=LD_LIBRARY_PATH
11712  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11713  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11714  # the default ld.so.conf also contains /usr/contrib/lib and
11715  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11716  # libtool to hard-code these into programs
11717  ;;
11718
11719cygwin* | mingw* | pw32* | cegcc*)
11720  version_type=windows
11721  shrext_cmds=.dll
11722  need_version=no
11723  need_lib_prefix=no
11724
11725  case $GCC,$cc_basename in
11726  yes,*)
11727    # gcc
11728    library_names_spec='$libname.dll.a'
11729    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11730    postinstall_cmds='base_file=`basename \$file`~
11731      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11732      dldir=$destdir/`dirname \$dlpath`~
11733      test -d \$dldir || mkdir -p \$dldir~
11734      $install_prog $dir/$dlname \$dldir/$dlname~
11735      chmod a+x \$dldir/$dlname~
11736      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11737        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11738      fi'
11739    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11740      dlpath=$dir/\$dldll~
11741       $RM \$dlpath'
11742    shlibpath_overrides_runpath=yes
11743
11744    case $host_os in
11745    cygwin*)
11746      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11747      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11748
11749      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11750      ;;
11751    mingw* | cegcc*)
11752      # MinGW DLLs use traditional 'lib' prefix
11753      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11754      ;;
11755    pw32*)
11756      # pw32 DLLs use 'pw' prefix rather than 'lib'
11757      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11758      ;;
11759    esac
11760    dynamic_linker='Win32 ld.exe'
11761    ;;
11762
11763  *,cl*)
11764    # Native MSVC
11765    libname_spec='$name'
11766    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11767    library_names_spec='$libname.dll.lib'
11768
11769    case $build_os in
11770    mingw*)
11771      sys_lib_search_path_spec=
11772      lt_save_ifs=$IFS
11773      IFS=';'
11774      for lt_path in $LIB
11775      do
11776        IFS=$lt_save_ifs
11777        # Let DOS variable expansion print the short 8.3 style file name.
11778        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11779        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11780      done
11781      IFS=$lt_save_ifs
11782      # Convert to MSYS style.
11783      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11784      ;;
11785    cygwin*)
11786      # Convert to unix form, then to dos form, then back to unix form
11787      # but this time dos style (no spaces!) so that the unix form looks
11788      # like /cygdrive/c/PROGRA~1:/cygdr...
11789      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11790      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11791      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11792      ;;
11793    *)
11794      sys_lib_search_path_spec=$LIB
11795      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11796        # It is most probably a Windows format PATH.
11797        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11798      else
11799        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11800      fi
11801      # FIXME: find the short name or the path components, as spaces are
11802      # common. (e.g. "Program Files" -> "PROGRA~1")
11803      ;;
11804    esac
11805
11806    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11807    postinstall_cmds='base_file=`basename \$file`~
11808      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11809      dldir=$destdir/`dirname \$dlpath`~
11810      test -d \$dldir || mkdir -p \$dldir~
11811      $install_prog $dir/$dlname \$dldir/$dlname'
11812    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11813      dlpath=$dir/\$dldll~
11814       $RM \$dlpath'
11815    shlibpath_overrides_runpath=yes
11816    dynamic_linker='Win32 link.exe'
11817    ;;
11818
11819  *)
11820    # Assume MSVC wrapper
11821    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11822    dynamic_linker='Win32 ld.exe'
11823    ;;
11824  esac
11825  # FIXME: first we should search . and the directory the executable is in
11826  shlibpath_var=PATH
11827  ;;
11828
11829darwin* | rhapsody*)
11830  dynamic_linker="$host_os dyld"
11831  version_type=darwin
11832  need_lib_prefix=no
11833  need_version=no
11834  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11835  soname_spec='$libname$release$major$shared_ext'
11836  shlibpath_overrides_runpath=yes
11837  shlibpath_var=DYLD_LIBRARY_PATH
11838  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11839
11840  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11841  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11842  ;;
11843
11844dgux*)
11845  version_type=linux # correct to gnu/linux during the next big refactor
11846  need_lib_prefix=no
11847  need_version=no
11848  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11849  soname_spec='$libname$release$shared_ext$major'
11850  shlibpath_var=LD_LIBRARY_PATH
11851  ;;
11852
11853freebsd* | dragonfly*)
11854  # DragonFly does not have aout.  When/if they implement a new
11855  # versioning mechanism, adjust this.
11856  if test -x /usr/bin/objformat; then
11857    objformat=`/usr/bin/objformat`
11858  else
11859    case $host_os in
11860    freebsd[23].*) objformat=aout ;;
11861    *) objformat=elf ;;
11862    esac
11863  fi
11864  version_type=freebsd-$objformat
11865  case $version_type in
11866    freebsd-elf*)
11867      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868      need_version=no
11869      need_lib_prefix=no
11870      ;;
11871    freebsd-*)
11872      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11873      need_version=yes
11874      ;;
11875  esac
11876  shlibpath_var=LD_LIBRARY_PATH
11877  case $host_os in
11878  freebsd2.*)
11879    shlibpath_overrides_runpath=yes
11880    ;;
11881  freebsd3.[01]* | freebsdelf3.[01]*)
11882    shlibpath_overrides_runpath=yes
11883    hardcode_into_libs=yes
11884    ;;
11885  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11886  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11887    shlibpath_overrides_runpath=no
11888    hardcode_into_libs=yes
11889    ;;
11890  *) # from 4.6 on, and DragonFly
11891    shlibpath_overrides_runpath=yes
11892    hardcode_into_libs=yes
11893    ;;
11894  esac
11895  ;;
11896
11897haiku*)
11898  version_type=linux # correct to gnu/linux during the next big refactor
11899  need_lib_prefix=no
11900  need_version=no
11901  dynamic_linker="$host_os runtime_loader"
11902  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903  soname_spec='$libname$release$shared_ext$major'
11904  shlibpath_var=LIBRARY_PATH
11905  shlibpath_overrides_runpath=no
11906  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11907  hardcode_into_libs=yes
11908  ;;
11909
11910hpux9* | hpux10* | hpux11*)
11911  # Give a soname corresponding to the major version so that dld.sl refuses to
11912  # link against other versions.
11913  version_type=sunos
11914  need_lib_prefix=no
11915  need_version=no
11916  case $host_cpu in
11917  ia64*)
11918    shrext_cmds='.so'
11919    hardcode_into_libs=yes
11920    dynamic_linker="$host_os dld.so"
11921    shlibpath_var=LD_LIBRARY_PATH
11922    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11923    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924    soname_spec='$libname$release$shared_ext$major'
11925    if test 32 = "$HPUX_IA64_MODE"; then
11926      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11927    else
11928      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11929    fi
11930    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11931    ;;
11932  hppa*64*)
11933    shrext_cmds='.sl'
11934    hardcode_into_libs=yes
11935    dynamic_linker="$host_os dld.sl"
11936    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11937    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11938    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939    soname_spec='$libname$release$shared_ext$major'
11940    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11941    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11942    ;;
11943  *)
11944    shrext_cmds='.sl'
11945    dynamic_linker="$host_os dld.sl"
11946    shlibpath_var=SHLIB_PATH
11947    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11948    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949    soname_spec='$libname$release$shared_ext$major'
11950    ;;
11951  esac
11952  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11953  postinstall_cmds='chmod 555 $lib'
11954  # or fails outright, so override atomically:
11955  install_override_mode=555
11956  ;;
11957
11958interix[3-9]*)
11959  version_type=linux # correct to gnu/linux during the next big refactor
11960  need_lib_prefix=no
11961  need_version=no
11962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11963  soname_spec='$libname$release$shared_ext$major'
11964  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11965  shlibpath_var=LD_LIBRARY_PATH
11966  shlibpath_overrides_runpath=no
11967  hardcode_into_libs=yes
11968  ;;
11969
11970irix5* | irix6* | nonstopux*)
11971  case $host_os in
11972    nonstopux*) version_type=nonstopux ;;
11973    *)
11974	if test yes = "$lt_cv_prog_gnu_ld"; then
11975		version_type=linux # correct to gnu/linux during the next big refactor
11976	else
11977		version_type=irix
11978	fi ;;
11979  esac
11980  need_lib_prefix=no
11981  need_version=no
11982  soname_spec='$libname$release$shared_ext$major'
11983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11984  case $host_os in
11985  irix5* | nonstopux*)
11986    libsuff= shlibsuff=
11987    ;;
11988  *)
11989    case $LD in # libtool.m4 will add one of these switches to LD
11990    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11991      libsuff= shlibsuff= libmagic=32-bit;;
11992    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11993      libsuff=32 shlibsuff=N32 libmagic=N32;;
11994    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11995      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11996    *) libsuff= shlibsuff= libmagic=never-match;;
11997    esac
11998    ;;
11999  esac
12000  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12001  shlibpath_overrides_runpath=no
12002  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12003  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12004  hardcode_into_libs=yes
12005  ;;
12006
12007# No shared lib support for Linux oldld, aout, or coff.
12008linux*oldld* | linux*aout* | linux*coff*)
12009  dynamic_linker=no
12010  ;;
12011
12012linux*android*)
12013  version_type=none # Android doesn't support versioned libraries.
12014  need_lib_prefix=no
12015  need_version=no
12016  library_names_spec='$libname$release$shared_ext'
12017  soname_spec='$libname$release$shared_ext'
12018  finish_cmds=
12019  shlibpath_var=LD_LIBRARY_PATH
12020  shlibpath_overrides_runpath=yes
12021
12022  # This implies no fast_install, which is unacceptable.
12023  # Some rework will be needed to allow for fast_install
12024  # before this can be enabled.
12025  hardcode_into_libs=yes
12026
12027  dynamic_linker='Android linker'
12028  # Don't embed -rpath directories since the linker doesn't support them.
12029  hardcode_libdir_flag_spec='-L$libdir'
12030  ;;
12031
12032# This must be glibc/ELF.
12033linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12034  version_type=linux # correct to gnu/linux during the next big refactor
12035  need_lib_prefix=no
12036  need_version=no
12037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038  soname_spec='$libname$release$shared_ext$major'
12039  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12040  shlibpath_var=LD_LIBRARY_PATH
12041  shlibpath_overrides_runpath=no
12042
12043  # Some binutils ld are patched to set DT_RUNPATH
12044  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12045  $as_echo_n "(cached) " >&6
12046else
12047  lt_cv_shlibpath_overrides_runpath=no
12048    save_LDFLAGS=$LDFLAGS
12049    save_libdir=$libdir
12050    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12051	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053/* end confdefs.h.  */
12054
12055int
12056main ()
12057{
12058
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12065  lt_cv_shlibpath_overrides_runpath=yes
12066fi
12067fi
12068rm -f core conftest.err conftest.$ac_objext \
12069    conftest$ac_exeext conftest.$ac_ext
12070    LDFLAGS=$save_LDFLAGS
12071    libdir=$save_libdir
12072
12073fi
12074
12075  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12076
12077  # This implies no fast_install, which is unacceptable.
12078  # Some rework will be needed to allow for fast_install
12079  # before this can be enabled.
12080  hardcode_into_libs=yes
12081
12082  # Append ld.so.conf contents to the search path
12083  if test -f /etc/ld.so.conf; then
12084    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' ' '`
12085    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12086  fi
12087
12088  # We used to test for /lib/ld.so.1 and disable shared libraries on
12089  # powerpc, because MkLinux only supported shared libraries with the
12090  # GNU dynamic linker.  Since this was broken with cross compilers,
12091  # most powerpc-linux boxes support dynamic linking these days and
12092  # people can always --disable-shared, the test was removed, and we
12093  # assume the GNU/Linux dynamic linker is in use.
12094  dynamic_linker='GNU/Linux ld.so'
12095  ;;
12096
12097netbsd*)
12098  version_type=sunos
12099  need_lib_prefix=no
12100  need_version=no
12101  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12102    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12103    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12104    dynamic_linker='NetBSD (a.out) ld.so'
12105  else
12106    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12107    soname_spec='$libname$release$shared_ext$major'
12108    dynamic_linker='NetBSD ld.elf_so'
12109  fi
12110  shlibpath_var=LD_LIBRARY_PATH
12111  shlibpath_overrides_runpath=yes
12112  hardcode_into_libs=yes
12113  ;;
12114
12115newsos6)
12116  version_type=linux # correct to gnu/linux during the next big refactor
12117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118  shlibpath_var=LD_LIBRARY_PATH
12119  shlibpath_overrides_runpath=yes
12120  ;;
12121
12122*nto* | *qnx*)
12123  version_type=qnx
12124  need_lib_prefix=no
12125  need_version=no
12126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127  soname_spec='$libname$release$shared_ext$major'
12128  shlibpath_var=LD_LIBRARY_PATH
12129  shlibpath_overrides_runpath=no
12130  hardcode_into_libs=yes
12131  dynamic_linker='ldqnx.so'
12132  ;;
12133
12134openbsd* | bitrig*)
12135  version_type=sunos
12136  sys_lib_dlsearch_path_spec=/usr/lib
12137  need_lib_prefix=no
12138  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12139    need_version=no
12140  else
12141    need_version=yes
12142  fi
12143  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12144  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12145  shlibpath_var=LD_LIBRARY_PATH
12146  shlibpath_overrides_runpath=yes
12147  ;;
12148
12149os2*)
12150  libname_spec='$name'
12151  version_type=windows
12152  shrext_cmds=.dll
12153  need_version=no
12154  need_lib_prefix=no
12155  # OS/2 can only load a DLL with a base name of 8 characters or less.
12156  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12157    v=$($ECHO $release$versuffix | tr -d .-);
12158    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12159    $ECHO $n$v`$shared_ext'
12160  library_names_spec='${libname}_dll.$libext'
12161  dynamic_linker='OS/2 ld.exe'
12162  shlibpath_var=BEGINLIBPATH
12163  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12164  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12165  postinstall_cmds='base_file=`basename \$file`~
12166    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12167    dldir=$destdir/`dirname \$dlpath`~
12168    test -d \$dldir || mkdir -p \$dldir~
12169    $install_prog $dir/$dlname \$dldir/$dlname~
12170    chmod a+x \$dldir/$dlname~
12171    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12172      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12173    fi'
12174  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12175    dlpath=$dir/\$dldll~
12176    $RM \$dlpath'
12177  ;;
12178
12179osf3* | osf4* | osf5*)
12180  version_type=osf
12181  need_lib_prefix=no
12182  need_version=no
12183  soname_spec='$libname$release$shared_ext$major'
12184  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12185  shlibpath_var=LD_LIBRARY_PATH
12186  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12187  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12188  ;;
12189
12190rdos*)
12191  dynamic_linker=no
12192  ;;
12193
12194solaris*)
12195  version_type=linux # correct to gnu/linux during the next big refactor
12196  need_lib_prefix=no
12197  need_version=no
12198  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199  soname_spec='$libname$release$shared_ext$major'
12200  shlibpath_var=LD_LIBRARY_PATH
12201  shlibpath_overrides_runpath=yes
12202  hardcode_into_libs=yes
12203  # ldd complains unless libraries are executable
12204  postinstall_cmds='chmod +x $lib'
12205  ;;
12206
12207sunos4*)
12208  version_type=sunos
12209  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12210  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12211  shlibpath_var=LD_LIBRARY_PATH
12212  shlibpath_overrides_runpath=yes
12213  if test yes = "$with_gnu_ld"; then
12214    need_lib_prefix=no
12215  fi
12216  need_version=yes
12217  ;;
12218
12219sysv4 | sysv4.3*)
12220  version_type=linux # correct to gnu/linux during the next big refactor
12221  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222  soname_spec='$libname$release$shared_ext$major'
12223  shlibpath_var=LD_LIBRARY_PATH
12224  case $host_vendor in
12225    sni)
12226      shlibpath_overrides_runpath=no
12227      need_lib_prefix=no
12228      runpath_var=LD_RUN_PATH
12229      ;;
12230    siemens)
12231      need_lib_prefix=no
12232      ;;
12233    motorola)
12234      need_lib_prefix=no
12235      need_version=no
12236      shlibpath_overrides_runpath=no
12237      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12238      ;;
12239  esac
12240  ;;
12241
12242sysv4*MP*)
12243  if test -d /usr/nec; then
12244    version_type=linux # correct to gnu/linux during the next big refactor
12245    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12246    soname_spec='$libname$shared_ext.$major'
12247    shlibpath_var=LD_LIBRARY_PATH
12248  fi
12249  ;;
12250
12251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12252  version_type=sco
12253  need_lib_prefix=no
12254  need_version=no
12255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12256  soname_spec='$libname$release$shared_ext$major'
12257  shlibpath_var=LD_LIBRARY_PATH
12258  shlibpath_overrides_runpath=yes
12259  hardcode_into_libs=yes
12260  if test yes = "$with_gnu_ld"; then
12261    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12262  else
12263    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12264    case $host_os in
12265      sco3.2v5*)
12266        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12267	;;
12268    esac
12269  fi
12270  sys_lib_dlsearch_path_spec='/usr/lib'
12271  ;;
12272
12273tpf*)
12274  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12275  version_type=linux # correct to gnu/linux during the next big refactor
12276  need_lib_prefix=no
12277  need_version=no
12278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279  shlibpath_var=LD_LIBRARY_PATH
12280  shlibpath_overrides_runpath=no
12281  hardcode_into_libs=yes
12282  ;;
12283
12284uts4*)
12285  version_type=linux # correct to gnu/linux during the next big refactor
12286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287  soname_spec='$libname$release$shared_ext$major'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  ;;
12290
12291*)
12292  dynamic_linker=no
12293  ;;
12294esac
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12296$as_echo "$dynamic_linker" >&6; }
12297test no = "$dynamic_linker" && can_build_shared=no
12298
12299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12300if test yes = "$GCC"; then
12301  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12302fi
12303
12304if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12305  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12306fi
12307if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12308  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12309fi
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12403$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12404hardcode_action=
12405if test -n "$hardcode_libdir_flag_spec" ||
12406   test -n "$runpath_var" ||
12407   test yes = "$hardcode_automatic"; then
12408
12409  # We can hardcode non-existent directories.
12410  if test no != "$hardcode_direct" &&
12411     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12412     # have to relink, otherwise we might link with an installed library
12413     # when we should be linking with a yet-to-be-installed one
12414     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12415     test no != "$hardcode_minus_L"; then
12416    # Linking always hardcodes the temporary library directory.
12417    hardcode_action=relink
12418  else
12419    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12420    hardcode_action=immediate
12421  fi
12422else
12423  # We cannot hardcode anything, or else we can only hardcode existing
12424  # directories.
12425  hardcode_action=unsupported
12426fi
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12428$as_echo "$hardcode_action" >&6; }
12429
12430if test relink = "$hardcode_action" ||
12431   test yes = "$inherit_rpath"; then
12432  # Fast installation is not supported
12433  enable_fast_install=no
12434elif test yes = "$shlibpath_overrides_runpath" ||
12435     test no = "$enable_shared"; then
12436  # Fast installation is not necessary
12437  enable_fast_install=needless
12438fi
12439
12440
12441
12442
12443
12444
12445  if test yes != "$enable_dlopen"; then
12446  enable_dlopen=unknown
12447  enable_dlopen_self=unknown
12448  enable_dlopen_self_static=unknown
12449else
12450  lt_cv_dlopen=no
12451  lt_cv_dlopen_libs=
12452
12453  case $host_os in
12454  beos*)
12455    lt_cv_dlopen=load_add_on
12456    lt_cv_dlopen_libs=
12457    lt_cv_dlopen_self=yes
12458    ;;
12459
12460  mingw* | pw32* | cegcc*)
12461    lt_cv_dlopen=LoadLibrary
12462    lt_cv_dlopen_libs=
12463    ;;
12464
12465  cygwin*)
12466    lt_cv_dlopen=dlopen
12467    lt_cv_dlopen_libs=
12468    ;;
12469
12470  darwin*)
12471    # if libdl is installed we need to link against it
12472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12473$as_echo_n "checking for dlopen in -ldl... " >&6; }
12474if ${ac_cv_lib_dl_dlopen+:} false; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  ac_check_lib_save_LIBS=$LIBS
12478LIBS="-ldl  $LIBS"
12479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481
12482/* Override any GCC internal prototype to avoid an error.
12483   Use char because int might match the return type of a GCC
12484   builtin and then its argument prototype would still apply.  */
12485#ifdef __cplusplus
12486extern "C"
12487#endif
12488char dlopen ();
12489int
12490main ()
12491{
12492return dlopen ();
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_c_try_link "$LINENO"; then :
12498  ac_cv_lib_dl_dlopen=yes
12499else
12500  ac_cv_lib_dl_dlopen=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext \
12503    conftest$ac_exeext conftest.$ac_ext
12504LIBS=$ac_check_lib_save_LIBS
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12507$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12508if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12509  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12510else
12511
12512    lt_cv_dlopen=dyld
12513    lt_cv_dlopen_libs=
12514    lt_cv_dlopen_self=yes
12515
12516fi
12517
12518    ;;
12519
12520  tpf*)
12521    # Don't try to run any link tests for TPF.  We know it's impossible
12522    # because TPF is a cross-compiler, and we know how we open DSOs.
12523    lt_cv_dlopen=dlopen
12524    lt_cv_dlopen_libs=
12525    lt_cv_dlopen_self=no
12526    ;;
12527
12528  *)
12529    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12530if test "x$ac_cv_func_shl_load" = xyes; then :
12531  lt_cv_dlopen=shl_load
12532else
12533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12534$as_echo_n "checking for shl_load in -ldld... " >&6; }
12535if ${ac_cv_lib_dld_shl_load+:} false; then :
12536  $as_echo_n "(cached) " >&6
12537else
12538  ac_check_lib_save_LIBS=$LIBS
12539LIBS="-ldld  $LIBS"
12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541/* end confdefs.h.  */
12542
12543/* Override any GCC internal prototype to avoid an error.
12544   Use char because int might match the return type of a GCC
12545   builtin and then its argument prototype would still apply.  */
12546#ifdef __cplusplus
12547extern "C"
12548#endif
12549char shl_load ();
12550int
12551main ()
12552{
12553return shl_load ();
12554  ;
12555  return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_link "$LINENO"; then :
12559  ac_cv_lib_dld_shl_load=yes
12560else
12561  ac_cv_lib_dld_shl_load=no
12562fi
12563rm -f core conftest.err conftest.$ac_objext \
12564    conftest$ac_exeext conftest.$ac_ext
12565LIBS=$ac_check_lib_save_LIBS
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12568$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12569if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12570  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12571else
12572  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12573if test "x$ac_cv_func_dlopen" = xyes; then :
12574  lt_cv_dlopen=dlopen
12575else
12576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12577$as_echo_n "checking for dlopen in -ldl... " >&6; }
12578if ${ac_cv_lib_dl_dlopen+:} false; then :
12579  $as_echo_n "(cached) " >&6
12580else
12581  ac_check_lib_save_LIBS=$LIBS
12582LIBS="-ldl  $LIBS"
12583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h.  */
12585
12586/* Override any GCC internal prototype to avoid an error.
12587   Use char because int might match the return type of a GCC
12588   builtin and then its argument prototype would still apply.  */
12589#ifdef __cplusplus
12590extern "C"
12591#endif
12592char dlopen ();
12593int
12594main ()
12595{
12596return dlopen ();
12597  ;
12598  return 0;
12599}
12600_ACEOF
12601if ac_fn_c_try_link "$LINENO"; then :
12602  ac_cv_lib_dl_dlopen=yes
12603else
12604  ac_cv_lib_dl_dlopen=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext \
12607    conftest$ac_exeext conftest.$ac_ext
12608LIBS=$ac_check_lib_save_LIBS
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12611$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12612if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12613  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12614else
12615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12616$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12617if ${ac_cv_lib_svld_dlopen+:} false; then :
12618  $as_echo_n "(cached) " >&6
12619else
12620  ac_check_lib_save_LIBS=$LIBS
12621LIBS="-lsvld  $LIBS"
12622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623/* end confdefs.h.  */
12624
12625/* Override any GCC internal prototype to avoid an error.
12626   Use char because int might match the return type of a GCC
12627   builtin and then its argument prototype would still apply.  */
12628#ifdef __cplusplus
12629extern "C"
12630#endif
12631char dlopen ();
12632int
12633main ()
12634{
12635return dlopen ();
12636  ;
12637  return 0;
12638}
12639_ACEOF
12640if ac_fn_c_try_link "$LINENO"; then :
12641  ac_cv_lib_svld_dlopen=yes
12642else
12643  ac_cv_lib_svld_dlopen=no
12644fi
12645rm -f core conftest.err conftest.$ac_objext \
12646    conftest$ac_exeext conftest.$ac_ext
12647LIBS=$ac_check_lib_save_LIBS
12648fi
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12650$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12651if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12652  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12653else
12654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12655$as_echo_n "checking for dld_link in -ldld... " >&6; }
12656if ${ac_cv_lib_dld_dld_link+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  ac_check_lib_save_LIBS=$LIBS
12660LIBS="-ldld  $LIBS"
12661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662/* end confdefs.h.  */
12663
12664/* Override any GCC internal prototype to avoid an error.
12665   Use char because int might match the return type of a GCC
12666   builtin and then its argument prototype would still apply.  */
12667#ifdef __cplusplus
12668extern "C"
12669#endif
12670char dld_link ();
12671int
12672main ()
12673{
12674return dld_link ();
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_link "$LINENO"; then :
12680  ac_cv_lib_dld_dld_link=yes
12681else
12682  ac_cv_lib_dld_dld_link=no
12683fi
12684rm -f core conftest.err conftest.$ac_objext \
12685    conftest$ac_exeext conftest.$ac_ext
12686LIBS=$ac_check_lib_save_LIBS
12687fi
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12689$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12690if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12691  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12692fi
12693
12694
12695fi
12696
12697
12698fi
12699
12700
12701fi
12702
12703
12704fi
12705
12706
12707fi
12708
12709    ;;
12710  esac
12711
12712  if test no = "$lt_cv_dlopen"; then
12713    enable_dlopen=no
12714  else
12715    enable_dlopen=yes
12716  fi
12717
12718  case $lt_cv_dlopen in
12719  dlopen)
12720    save_CPPFLAGS=$CPPFLAGS
12721    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12722
12723    save_LDFLAGS=$LDFLAGS
12724    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12725
12726    save_LIBS=$LIBS
12727    LIBS="$lt_cv_dlopen_libs $LIBS"
12728
12729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12730$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12731if ${lt_cv_dlopen_self+:} false; then :
12732  $as_echo_n "(cached) " >&6
12733else
12734  	  if test yes = "$cross_compiling"; then :
12735  lt_cv_dlopen_self=cross
12736else
12737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12738  lt_status=$lt_dlunknown
12739  cat > conftest.$ac_ext <<_LT_EOF
12740#line $LINENO "configure"
12741#include "confdefs.h"
12742
12743#if HAVE_DLFCN_H
12744#include <dlfcn.h>
12745#endif
12746
12747#include <stdio.h>
12748
12749#ifdef RTLD_GLOBAL
12750#  define LT_DLGLOBAL		RTLD_GLOBAL
12751#else
12752#  ifdef DL_GLOBAL
12753#    define LT_DLGLOBAL		DL_GLOBAL
12754#  else
12755#    define LT_DLGLOBAL		0
12756#  endif
12757#endif
12758
12759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12760   find out it does not work in some platform. */
12761#ifndef LT_DLLAZY_OR_NOW
12762#  ifdef RTLD_LAZY
12763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12764#  else
12765#    ifdef DL_LAZY
12766#      define LT_DLLAZY_OR_NOW		DL_LAZY
12767#    else
12768#      ifdef RTLD_NOW
12769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12770#      else
12771#        ifdef DL_NOW
12772#          define LT_DLLAZY_OR_NOW	DL_NOW
12773#        else
12774#          define LT_DLLAZY_OR_NOW	0
12775#        endif
12776#      endif
12777#    endif
12778#  endif
12779#endif
12780
12781/* When -fvisibility=hidden is used, assume the code has been annotated
12782   correspondingly for the symbols needed.  */
12783#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12784int fnord () __attribute__((visibility("default")));
12785#endif
12786
12787int fnord () { return 42; }
12788int main ()
12789{
12790  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12791  int status = $lt_dlunknown;
12792
12793  if (self)
12794    {
12795      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12796      else
12797        {
12798	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12799          else puts (dlerror ());
12800	}
12801      /* dlclose (self); */
12802    }
12803  else
12804    puts (dlerror ());
12805
12806  return status;
12807}
12808_LT_EOF
12809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12810  (eval $ac_link) 2>&5
12811  ac_status=$?
12812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12814    (./conftest; exit; ) >&5 2>/dev/null
12815    lt_status=$?
12816    case x$lt_status in
12817      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12818      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12819      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12820    esac
12821  else :
12822    # compilation failed
12823    lt_cv_dlopen_self=no
12824  fi
12825fi
12826rm -fr conftest*
12827
12828
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12831$as_echo "$lt_cv_dlopen_self" >&6; }
12832
12833    if test yes = "$lt_cv_dlopen_self"; then
12834      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12835      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12836$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12837if ${lt_cv_dlopen_self_static+:} false; then :
12838  $as_echo_n "(cached) " >&6
12839else
12840  	  if test yes = "$cross_compiling"; then :
12841  lt_cv_dlopen_self_static=cross
12842else
12843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844  lt_status=$lt_dlunknown
12845  cat > conftest.$ac_ext <<_LT_EOF
12846#line $LINENO "configure"
12847#include "confdefs.h"
12848
12849#if HAVE_DLFCN_H
12850#include <dlfcn.h>
12851#endif
12852
12853#include <stdio.h>
12854
12855#ifdef RTLD_GLOBAL
12856#  define LT_DLGLOBAL		RTLD_GLOBAL
12857#else
12858#  ifdef DL_GLOBAL
12859#    define LT_DLGLOBAL		DL_GLOBAL
12860#  else
12861#    define LT_DLGLOBAL		0
12862#  endif
12863#endif
12864
12865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866   find out it does not work in some platform. */
12867#ifndef LT_DLLAZY_OR_NOW
12868#  ifdef RTLD_LAZY
12869#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12870#  else
12871#    ifdef DL_LAZY
12872#      define LT_DLLAZY_OR_NOW		DL_LAZY
12873#    else
12874#      ifdef RTLD_NOW
12875#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12876#      else
12877#        ifdef DL_NOW
12878#          define LT_DLLAZY_OR_NOW	DL_NOW
12879#        else
12880#          define LT_DLLAZY_OR_NOW	0
12881#        endif
12882#      endif
12883#    endif
12884#  endif
12885#endif
12886
12887/* When -fvisibility=hidden is used, assume the code has been annotated
12888   correspondingly for the symbols needed.  */
12889#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12890int fnord () __attribute__((visibility("default")));
12891#endif
12892
12893int fnord () { return 42; }
12894int main ()
12895{
12896  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12897  int status = $lt_dlunknown;
12898
12899  if (self)
12900    {
12901      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12902      else
12903        {
12904	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12905          else puts (dlerror ());
12906	}
12907      /* dlclose (self); */
12908    }
12909  else
12910    puts (dlerror ());
12911
12912  return status;
12913}
12914_LT_EOF
12915  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916  (eval $ac_link) 2>&5
12917  ac_status=$?
12918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12920    (./conftest; exit; ) >&5 2>/dev/null
12921    lt_status=$?
12922    case x$lt_status in
12923      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12924      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12925      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12926    esac
12927  else :
12928    # compilation failed
12929    lt_cv_dlopen_self_static=no
12930  fi
12931fi
12932rm -fr conftest*
12933
12934
12935fi
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12937$as_echo "$lt_cv_dlopen_self_static" >&6; }
12938    fi
12939
12940    CPPFLAGS=$save_CPPFLAGS
12941    LDFLAGS=$save_LDFLAGS
12942    LIBS=$save_LIBS
12943    ;;
12944  esac
12945
12946  case $lt_cv_dlopen_self in
12947  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12948  *) enable_dlopen_self=unknown ;;
12949  esac
12950
12951  case $lt_cv_dlopen_self_static in
12952  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12953  *) enable_dlopen_self_static=unknown ;;
12954  esac
12955fi
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973striplib=
12974old_striplib=
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12976$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12977if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12978  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12979  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981$as_echo "yes" >&6; }
12982else
12983# FIXME - insert some real tests, host_os isn't really good enough
12984  case $host_os in
12985  darwin*)
12986    if test -n "$STRIP"; then
12987      striplib="$STRIP -x"
12988      old_striplib="$STRIP -S"
12989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990$as_echo "yes" >&6; }
12991    else
12992      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
12994    fi
12995    ;;
12996  *)
12997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998$as_echo "no" >&6; }
12999    ;;
13000  esac
13001fi
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014  # Report what library types will actually be built
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13016$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13018$as_echo "$can_build_shared" >&6; }
13019
13020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13021$as_echo_n "checking whether to build shared libraries... " >&6; }
13022  test no = "$can_build_shared" && enable_shared=no
13023
13024  # On AIX, shared libraries and static libraries use the same namespace, and
13025  # are all built from PIC.
13026  case $host_os in
13027  aix3*)
13028    test yes = "$enable_shared" && enable_static=no
13029    if test -n "$RANLIB"; then
13030      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13031      postinstall_cmds='$RANLIB $lib'
13032    fi
13033    ;;
13034
13035  aix[4-9]*)
13036    if test ia64 != "$host_cpu"; then
13037      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13038      yes,aix,yes) ;;			# shared object as lib.so file only
13039      yes,svr4,*) ;;			# shared object as lib.so archive member only
13040      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13041      esac
13042    fi
13043    ;;
13044  esac
13045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13046$as_echo "$enable_shared" >&6; }
13047
13048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13049$as_echo_n "checking whether to build static libraries... " >&6; }
13050  # Make sure either enable_shared or enable_static is yes.
13051  test yes = "$enable_shared" || enable_static=yes
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13053$as_echo "$enable_static" >&6; }
13054
13055
13056
13057
13058fi
13059ac_ext=c
13060ac_cpp='$CPP $CPPFLAGS'
13061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13063ac_compiler_gnu=$ac_cv_c_compiler_gnu
13064
13065CC=$lt_save_CC
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081        ac_config_commands="$ac_config_commands libtool"
13082
13083
13084
13085
13086# Only expand once:
13087
13088
13089ac_ext=cpp
13090ac_cpp='$CXXCPP $CPPFLAGS'
13091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13094if test -z "$CXX"; then
13095  if test -n "$CCC"; then
13096    CXX=$CCC
13097  else
13098    if test -n "$ac_tool_prefix"; then
13099  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13100  do
13101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104$as_echo_n "checking for $ac_word... " >&6; }
13105if ${ac_cv_prog_CXX+:} false; then :
13106  $as_echo_n "(cached) " >&6
13107else
13108  if test -n "$CXX"; then
13109  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13110else
13111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112for as_dir in $PATH
13113do
13114  IFS=$as_save_IFS
13115  test -z "$as_dir" && as_dir=.
13116    for ac_exec_ext in '' $ac_executable_extensions; do
13117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120    break 2
13121  fi
13122done
13123  done
13124IFS=$as_save_IFS
13125
13126fi
13127fi
13128CXX=$ac_cv_prog_CXX
13129if test -n "$CXX"; then
13130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13131$as_echo "$CXX" >&6; }
13132else
13133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137
13138    test -n "$CXX" && break
13139  done
13140fi
13141if test -z "$CXX"; then
13142  ac_ct_CXX=$CXX
13143  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13144do
13145  # Extract the first word of "$ac_prog", so it can be a program name with args.
13146set dummy $ac_prog; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13150  $as_echo_n "(cached) " >&6
13151else
13152  if test -n "$ac_ct_CXX"; then
13153  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158  IFS=$as_save_IFS
13159  test -z "$as_dir" && as_dir=.
13160    for ac_exec_ext in '' $ac_executable_extensions; do
13161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162    ac_cv_prog_ac_ct_CXX="$ac_prog"
13163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164    break 2
13165  fi
13166done
13167  done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13173if test -n "$ac_ct_CXX"; then
13174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13175$as_echo "$ac_ct_CXX" >&6; }
13176else
13177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182  test -n "$ac_ct_CXX" && break
13183done
13184
13185  if test "x$ac_ct_CXX" = x; then
13186    CXX="g++"
13187  else
13188    case $cross_compiling:$ac_tool_warned in
13189yes:)
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13192ac_tool_warned=yes ;;
13193esac
13194    CXX=$ac_ct_CXX
13195  fi
13196fi
13197
13198  fi
13199fi
13200# Provide some information about the compiler.
13201$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13202set X $ac_compile
13203ac_compiler=$2
13204for ac_option in --version -v -V -qversion; do
13205  { { ac_try="$ac_compiler $ac_option >&5"
13206case "(($ac_try" in
13207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208  *) ac_try_echo=$ac_try;;
13209esac
13210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13211$as_echo "$ac_try_echo"; } >&5
13212  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13213  ac_status=$?
13214  if test -s conftest.err; then
13215    sed '10a\
13216... rest of stderr output deleted ...
13217         10q' conftest.err >conftest.er1
13218    cat conftest.er1 >&5
13219  fi
13220  rm -f conftest.er1 conftest.err
13221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13222  test $ac_status = 0; }
13223done
13224
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13226$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13227if ${ac_cv_cxx_compiler_gnu+:} false; then :
13228  $as_echo_n "(cached) " >&6
13229else
13230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232
13233int
13234main ()
13235{
13236#ifndef __GNUC__
13237       choke me
13238#endif
13239
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244if ac_fn_cxx_try_compile "$LINENO"; then :
13245  ac_compiler_gnu=yes
13246else
13247  ac_compiler_gnu=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13251
13252fi
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13254$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13255if test $ac_compiler_gnu = yes; then
13256  GXX=yes
13257else
13258  GXX=
13259fi
13260ac_test_CXXFLAGS=${CXXFLAGS+set}
13261ac_save_CXXFLAGS=$CXXFLAGS
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13263$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13264if ${ac_cv_prog_cxx_g+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13268   ac_cxx_werror_flag=yes
13269   ac_cv_prog_cxx_g=no
13270   CXXFLAGS="-g"
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273
13274int
13275main ()
13276{
13277
13278  ;
13279  return 0;
13280}
13281_ACEOF
13282if ac_fn_cxx_try_compile "$LINENO"; then :
13283  ac_cv_prog_cxx_g=yes
13284else
13285  CXXFLAGS=""
13286      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h.  */
13288
13289int
13290main ()
13291{
13292
13293  ;
13294  return 0;
13295}
13296_ACEOF
13297if ac_fn_cxx_try_compile "$LINENO"; then :
13298
13299else
13300  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13301	 CXXFLAGS="-g"
13302	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h.  */
13304
13305int
13306main ()
13307{
13308
13309  ;
13310  return 0;
13311}
13312_ACEOF
13313if ac_fn_cxx_try_compile "$LINENO"; then :
13314  ac_cv_prog_cxx_g=yes
13315fi
13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13324$as_echo "$ac_cv_prog_cxx_g" >&6; }
13325if test "$ac_test_CXXFLAGS" = set; then
13326  CXXFLAGS=$ac_save_CXXFLAGS
13327elif test $ac_cv_prog_cxx_g = yes; then
13328  if test "$GXX" = yes; then
13329    CXXFLAGS="-g -O2"
13330  else
13331    CXXFLAGS="-g"
13332  fi
13333else
13334  if test "$GXX" = yes; then
13335    CXXFLAGS="-O2"
13336  else
13337    CXXFLAGS=
13338  fi
13339fi
13340ac_ext=c
13341ac_cpp='$CPP $CPPFLAGS'
13342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346depcc="$CXX"  am_compiler_list=
13347
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13349$as_echo_n "checking dependency style of $depcc... " >&6; }
13350if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13351  $as_echo_n "(cached) " >&6
13352else
13353  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13354  # We make a subdir and do the tests there.  Otherwise we can end up
13355  # making bogus files that we don't know about and never remove.  For
13356  # instance it was reported that on HP-UX the gcc test will end up
13357  # making a dummy file named 'D' -- because '-MD' means "put the output
13358  # in D".
13359  rm -rf conftest.dir
13360  mkdir conftest.dir
13361  # Copy depcomp to subdir because otherwise we won't find it if we're
13362  # using a relative directory.
13363  cp "$am_depcomp" conftest.dir
13364  cd conftest.dir
13365  # We will build objects and dependencies in a subdirectory because
13366  # it helps to detect inapplicable dependency modes.  For instance
13367  # both Tru64's cc and ICC support -MD to output dependencies as a
13368  # side effect of compilation, but ICC will put the dependencies in
13369  # the current directory while Tru64 will put them in the object
13370  # directory.
13371  mkdir sub
13372
13373  am_cv_CXX_dependencies_compiler_type=none
13374  if test "$am_compiler_list" = ""; then
13375     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13376  fi
13377  am__universal=false
13378  case " $depcc " in #(
13379     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13380     esac
13381
13382  for depmode in $am_compiler_list; do
13383    # Setup a source with many dependencies, because some compilers
13384    # like to wrap large dependency lists on column 80 (with \), and
13385    # we should not choose a depcomp mode which is confused by this.
13386    #
13387    # We need to recreate these files for each test, as the compiler may
13388    # overwrite some of them when testing with obscure command lines.
13389    # This happens at least with the AIX C compiler.
13390    : > sub/conftest.c
13391    for i in 1 2 3 4 5 6; do
13392      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13393      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13394      # Solaris 10 /bin/sh.
13395      echo '/* dummy */' > sub/conftst$i.h
13396    done
13397    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13398
13399    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13400    # mode.  It turns out that the SunPro C++ compiler does not properly
13401    # handle '-M -o', and we need to detect this.  Also, some Intel
13402    # versions had trouble with output in subdirs.
13403    am__obj=sub/conftest.${OBJEXT-o}
13404    am__minus_obj="-o $am__obj"
13405    case $depmode in
13406    gcc)
13407      # This depmode causes a compiler race in universal mode.
13408      test "$am__universal" = false || continue
13409      ;;
13410    nosideeffect)
13411      # After this tag, mechanisms are not by side-effect, so they'll
13412      # only be used when explicitly requested.
13413      if test "x$enable_dependency_tracking" = xyes; then
13414	continue
13415      else
13416	break
13417      fi
13418      ;;
13419    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13420      # This compiler won't grok '-c -o', but also, the minuso test has
13421      # not run yet.  These depmodes are late enough in the game, and
13422      # so weak that their functioning should not be impacted.
13423      am__obj=conftest.${OBJEXT-o}
13424      am__minus_obj=
13425      ;;
13426    none) break ;;
13427    esac
13428    if depmode=$depmode \
13429       source=sub/conftest.c object=$am__obj \
13430       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13431       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13432         >/dev/null 2>conftest.err &&
13433       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13434       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13435       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13436       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13437      # icc doesn't choke on unknown options, it will just issue warnings
13438      # or remarks (even with -Werror).  So we grep stderr for any message
13439      # that says an option was ignored or not supported.
13440      # When given -MP, icc 7.0 and 7.1 complain thusly:
13441      #   icc: Command line warning: ignoring option '-M'; no argument required
13442      # The diagnosis changed in icc 8.0:
13443      #   icc: Command line remark: option '-MP' not supported
13444      if (grep 'ignoring option' conftest.err ||
13445          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13446        am_cv_CXX_dependencies_compiler_type=$depmode
13447        break
13448      fi
13449    fi
13450  done
13451
13452  cd ..
13453  rm -rf conftest.dir
13454else
13455  am_cv_CXX_dependencies_compiler_type=none
13456fi
13457
13458fi
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13460$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13461CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13462
13463 if
13464  test "x$enable_dependency_tracking" != xno \
13465  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13466  am__fastdepCXX_TRUE=
13467  am__fastdepCXX_FALSE='#'
13468else
13469  am__fastdepCXX_TRUE='#'
13470  am__fastdepCXX_FALSE=
13471fi
13472
13473
13474
13475
13476
13477func_stripname_cnf ()
13478{
13479  case $2 in
13480  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13481  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13482  esac
13483} # func_stripname_cnf
13484
13485      if test -n "$CXX" && ( test no != "$CXX" &&
13486    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13487    (test g++ != "$CXX"))); then
13488  ac_ext=cpp
13489ac_cpp='$CXXCPP $CPPFLAGS'
13490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13494$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13495if test -z "$CXXCPP"; then
13496  if ${ac_cv_prog_CXXCPP+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499      # Double quotes because CXXCPP needs to be expanded
13500    for CXXCPP in "$CXX -E" "/lib/cpp"
13501    do
13502      ac_preproc_ok=false
13503for ac_cxx_preproc_warn_flag in '' yes
13504do
13505  # Use a header file that comes with gcc, so configuring glibc
13506  # with a fresh cross-compiler works.
13507  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508  # <limits.h> exists even on freestanding compilers.
13509  # On the NeXT, cc -E runs the code through the compiler's parser,
13510  # not just through cpp. "Syntax error" is here to catch this case.
13511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512/* end confdefs.h.  */
13513#ifdef __STDC__
13514# include <limits.h>
13515#else
13516# include <assert.h>
13517#endif
13518		     Syntax error
13519_ACEOF
13520if ac_fn_cxx_try_cpp "$LINENO"; then :
13521
13522else
13523  # Broken: fails on valid input.
13524continue
13525fi
13526rm -f conftest.err conftest.i conftest.$ac_ext
13527
13528  # OK, works on sane cases.  Now check whether nonexistent headers
13529  # can be detected and how.
13530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h.  */
13532#include <ac_nonexistent.h>
13533_ACEOF
13534if ac_fn_cxx_try_cpp "$LINENO"; then :
13535  # Broken: success on invalid input.
13536continue
13537else
13538  # Passes both tests.
13539ac_preproc_ok=:
13540break
13541fi
13542rm -f conftest.err conftest.i conftest.$ac_ext
13543
13544done
13545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13546rm -f conftest.i conftest.err conftest.$ac_ext
13547if $ac_preproc_ok; then :
13548  break
13549fi
13550
13551    done
13552    ac_cv_prog_CXXCPP=$CXXCPP
13553
13554fi
13555  CXXCPP=$ac_cv_prog_CXXCPP
13556else
13557  ac_cv_prog_CXXCPP=$CXXCPP
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13560$as_echo "$CXXCPP" >&6; }
13561ac_preproc_ok=false
13562for ac_cxx_preproc_warn_flag in '' yes
13563do
13564  # Use a header file that comes with gcc, so configuring glibc
13565  # with a fresh cross-compiler works.
13566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13567  # <limits.h> exists even on freestanding compilers.
13568  # On the NeXT, cc -E runs the code through the compiler's parser,
13569  # not just through cpp. "Syntax error" is here to catch this case.
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572#ifdef __STDC__
13573# include <limits.h>
13574#else
13575# include <assert.h>
13576#endif
13577		     Syntax error
13578_ACEOF
13579if ac_fn_cxx_try_cpp "$LINENO"; then :
13580
13581else
13582  # Broken: fails on valid input.
13583continue
13584fi
13585rm -f conftest.err conftest.i conftest.$ac_ext
13586
13587  # OK, works on sane cases.  Now check whether nonexistent headers
13588  # can be detected and how.
13589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591#include <ac_nonexistent.h>
13592_ACEOF
13593if ac_fn_cxx_try_cpp "$LINENO"; then :
13594  # Broken: success on invalid input.
13595continue
13596else
13597  # Passes both tests.
13598ac_preproc_ok=:
13599break
13600fi
13601rm -f conftest.err conftest.i conftest.$ac_ext
13602
13603done
13604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13605rm -f conftest.i conftest.err conftest.$ac_ext
13606if $ac_preproc_ok; then :
13607
13608else
13609  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13611as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13612See \`config.log' for more details" "$LINENO" 5; }
13613fi
13614
13615ac_ext=c
13616ac_cpp='$CPP $CPPFLAGS'
13617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619ac_compiler_gnu=$ac_cv_c_compiler_gnu
13620
13621else
13622  _lt_caught_CXX_error=yes
13623fi
13624
13625ac_ext=cpp
13626ac_cpp='$CXXCPP $CPPFLAGS'
13627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13630
13631archive_cmds_need_lc_CXX=no
13632allow_undefined_flag_CXX=
13633always_export_symbols_CXX=no
13634archive_expsym_cmds_CXX=
13635compiler_needs_object_CXX=no
13636export_dynamic_flag_spec_CXX=
13637hardcode_direct_CXX=no
13638hardcode_direct_absolute_CXX=no
13639hardcode_libdir_flag_spec_CXX=
13640hardcode_libdir_separator_CXX=
13641hardcode_minus_L_CXX=no
13642hardcode_shlibpath_var_CXX=unsupported
13643hardcode_automatic_CXX=no
13644inherit_rpath_CXX=no
13645module_cmds_CXX=
13646module_expsym_cmds_CXX=
13647link_all_deplibs_CXX=unknown
13648old_archive_cmds_CXX=$old_archive_cmds
13649reload_flag_CXX=$reload_flag
13650reload_cmds_CXX=$reload_cmds
13651no_undefined_flag_CXX=
13652whole_archive_flag_spec_CXX=
13653enable_shared_with_static_runtimes_CXX=no
13654
13655# Source file extension for C++ test sources.
13656ac_ext=cpp
13657
13658# Object file extension for compiled C++ test sources.
13659objext=o
13660objext_CXX=$objext
13661
13662# No sense in running all these tests if we already determined that
13663# the CXX compiler isn't working.  Some variables (like enable_shared)
13664# are currently assumed to apply to all compilers on this platform,
13665# and will be corrupted by setting them based on a non-working compiler.
13666if test yes != "$_lt_caught_CXX_error"; then
13667  # Code to be used in simple compile tests
13668  lt_simple_compile_test_code="int some_variable = 0;"
13669
13670  # Code to be used in simple link tests
13671  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13672
13673  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13674
13675
13676
13677
13678
13679
13680# If no C compiler was specified, use CC.
13681LTCC=${LTCC-"$CC"}
13682
13683# If no C compiler flags were specified, use CFLAGS.
13684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13685
13686# Allow CC to be a program name with arguments.
13687compiler=$CC
13688
13689
13690  # save warnings/boilerplate of simple test code
13691  ac_outfile=conftest.$ac_objext
13692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13694_lt_compiler_boilerplate=`cat conftest.err`
13695$RM conftest*
13696
13697  ac_outfile=conftest.$ac_objext
13698echo "$lt_simple_link_test_code" >conftest.$ac_ext
13699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13700_lt_linker_boilerplate=`cat conftest.err`
13701$RM -r conftest*
13702
13703
13704  # Allow CC to be a program name with arguments.
13705  lt_save_CC=$CC
13706  lt_save_CFLAGS=$CFLAGS
13707  lt_save_LD=$LD
13708  lt_save_GCC=$GCC
13709  GCC=$GXX
13710  lt_save_with_gnu_ld=$with_gnu_ld
13711  lt_save_path_LD=$lt_cv_path_LD
13712  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13713    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13714  else
13715    $as_unset lt_cv_prog_gnu_ld
13716  fi
13717  if test -n "${lt_cv_path_LDCXX+set}"; then
13718    lt_cv_path_LD=$lt_cv_path_LDCXX
13719  else
13720    $as_unset lt_cv_path_LD
13721  fi
13722  test -z "${LDCXX+set}" || LD=$LDCXX
13723  CC=${CXX-"c++"}
13724  CFLAGS=$CXXFLAGS
13725  compiler=$CC
13726  compiler_CXX=$CC
13727  for cc_temp in $compiler""; do
13728  case $cc_temp in
13729    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13730    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13731    \-*) ;;
13732    *) break;;
13733  esac
13734done
13735cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13736
13737
13738  if test -n "$compiler"; then
13739    # We don't want -fno-exception when compiling C++ code, so set the
13740    # no_builtin_flag separately
13741    if test yes = "$GXX"; then
13742      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13743    else
13744      lt_prog_compiler_no_builtin_flag_CXX=
13745    fi
13746
13747    if test yes = "$GXX"; then
13748      # Set up default GNU C++ configuration
13749
13750
13751
13752# Check whether --with-gnu-ld was given.
13753if test "${with_gnu_ld+set}" = set; then :
13754  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13755else
13756  with_gnu_ld=no
13757fi
13758
13759ac_prog=ld
13760if test yes = "$GCC"; then
13761  # Check if gcc -print-prog-name=ld gives a path.
13762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13763$as_echo_n "checking for ld used by $CC... " >&6; }
13764  case $host in
13765  *-*-mingw*)
13766    # gcc leaves a trailing carriage return, which upsets mingw
13767    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13768  *)
13769    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13770  esac
13771  case $ac_prog in
13772    # Accept absolute paths.
13773    [\\/]* | ?:[\\/]*)
13774      re_direlt='/[^/][^/]*/\.\./'
13775      # Canonicalize the pathname of ld
13776      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13777      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13778	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13779      done
13780      test -z "$LD" && LD=$ac_prog
13781      ;;
13782  "")
13783    # If it fails, then pretend we aren't using GCC.
13784    ac_prog=ld
13785    ;;
13786  *)
13787    # If it is relative, then search for the first ld in PATH.
13788    with_gnu_ld=unknown
13789    ;;
13790  esac
13791elif test yes = "$with_gnu_ld"; then
13792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13793$as_echo_n "checking for GNU ld... " >&6; }
13794else
13795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13796$as_echo_n "checking for non-GNU ld... " >&6; }
13797fi
13798if ${lt_cv_path_LD+:} false; then :
13799  $as_echo_n "(cached) " >&6
13800else
13801  if test -z "$LD"; then
13802  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13803  for ac_dir in $PATH; do
13804    IFS=$lt_save_ifs
13805    test -z "$ac_dir" && ac_dir=.
13806    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13807      lt_cv_path_LD=$ac_dir/$ac_prog
13808      # Check to see if the program is GNU ld.  I'd rather use --version,
13809      # but apparently some variants of GNU ld only accept -v.
13810      # Break only if it was the GNU/non-GNU ld that we prefer.
13811      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13812      *GNU* | *'with BFD'*)
13813	test no != "$with_gnu_ld" && break
13814	;;
13815      *)
13816	test yes != "$with_gnu_ld" && break
13817	;;
13818      esac
13819    fi
13820  done
13821  IFS=$lt_save_ifs
13822else
13823  lt_cv_path_LD=$LD # Let the user override the test with a path.
13824fi
13825fi
13826
13827LD=$lt_cv_path_LD
13828if test -n "$LD"; then
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13830$as_echo "$LD" >&6; }
13831else
13832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834fi
13835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13838if ${lt_cv_prog_gnu_ld+:} false; then :
13839  $as_echo_n "(cached) " >&6
13840else
13841  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13842case `$LD -v 2>&1 </dev/null` in
13843*GNU* | *'with BFD'*)
13844  lt_cv_prog_gnu_ld=yes
13845  ;;
13846*)
13847  lt_cv_prog_gnu_ld=no
13848  ;;
13849esac
13850fi
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13852$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13853with_gnu_ld=$lt_cv_prog_gnu_ld
13854
13855
13856
13857
13858
13859
13860
13861      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13862      # archiving commands below assume that GNU ld is being used.
13863      if test yes = "$with_gnu_ld"; then
13864        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13865        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13866
13867        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13868        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13869
13870        # If archive_cmds runs LD, not CC, wlarc should be empty
13871        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13872        #     investigate it a little bit more. (MM)
13873        wlarc='$wl'
13874
13875        # ancient GNU ld didn't support --whole-archive et. al.
13876        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13877	  $GREP 'no-whole-archive' > /dev/null; then
13878          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13879        else
13880          whole_archive_flag_spec_CXX=
13881        fi
13882      else
13883        with_gnu_ld=no
13884        wlarc=
13885
13886        # A generic and very simple default shared library creation
13887        # command for GNU C++ for the case where it uses the native
13888        # linker, instead of GNU ld.  If possible, this setting should
13889        # overridden to take advantage of the native linker features on
13890        # the platform it is being used on.
13891        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13892      fi
13893
13894      # Commands to make compiler produce verbose output that lists
13895      # what "hidden" libraries, object files and flags are used when
13896      # linking a shared library.
13897      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13898
13899    else
13900      GXX=no
13901      with_gnu_ld=no
13902      wlarc=
13903    fi
13904
13905    # PORTME: fill in a description of your system's C++ link characteristics
13906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13907$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13908    ld_shlibs_CXX=yes
13909    case $host_os in
13910      aix3*)
13911        # FIXME: insert proper C++ library support
13912        ld_shlibs_CXX=no
13913        ;;
13914      aix[4-9]*)
13915        if test ia64 = "$host_cpu"; then
13916          # On IA64, the linker does run time linking by default, so we don't
13917          # have to do anything special.
13918          aix_use_runtimelinking=no
13919          exp_sym_flag='-Bexport'
13920          no_entry_flag=
13921        else
13922          aix_use_runtimelinking=no
13923
13924          # Test if we are trying to use run time linking or normal
13925          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13926          # have runtime linking enabled, and use it for executables.
13927          # For shared libraries, we enable/disable runtime linking
13928          # depending on the kind of the shared library created -
13929          # when "with_aix_soname,aix_use_runtimelinking" is:
13930          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13931          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13932          #            lib.a           static archive
13933          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13934          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13935          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13936          #            lib.a(lib.so.V) shared, rtl:no
13937          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13938          #            lib.a           static archive
13939          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13940	    for ld_flag in $LDFLAGS; do
13941	      case $ld_flag in
13942	      *-brtl*)
13943	        aix_use_runtimelinking=yes
13944	        break
13945	        ;;
13946	      esac
13947	    done
13948	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13949	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13950	      # so we don't have lib.a shared libs to link our executables.
13951	      # We have to force runtime linking in this case.
13952	      aix_use_runtimelinking=yes
13953	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13954	    fi
13955	    ;;
13956          esac
13957
13958          exp_sym_flag='-bexport'
13959          no_entry_flag='-bnoentry'
13960        fi
13961
13962        # When large executables or shared objects are built, AIX ld can
13963        # have problems creating the table of contents.  If linking a library
13964        # or program results in "error TOC overflow" add -mminimal-toc to
13965        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13966        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13967
13968        archive_cmds_CXX=''
13969        hardcode_direct_CXX=yes
13970        hardcode_direct_absolute_CXX=yes
13971        hardcode_libdir_separator_CXX=':'
13972        link_all_deplibs_CXX=yes
13973        file_list_spec_CXX='$wl-f,'
13974        case $with_aix_soname,$aix_use_runtimelinking in
13975        aix,*) ;;	# no import file
13976        svr4,* | *,yes) # use import file
13977          # The Import File defines what to hardcode.
13978          hardcode_direct_CXX=no
13979          hardcode_direct_absolute_CXX=no
13980          ;;
13981        esac
13982
13983        if test yes = "$GXX"; then
13984          case $host_os in aix4.[012]|aix4.[012].*)
13985          # We only want to do this on AIX 4.2 and lower, the check
13986          # below for broken collect2 doesn't work under 4.3+
13987	  collect2name=`$CC -print-prog-name=collect2`
13988	  if test -f "$collect2name" &&
13989	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13990	  then
13991	    # We have reworked collect2
13992	    :
13993	  else
13994	    # We have old collect2
13995	    hardcode_direct_CXX=unsupported
13996	    # It fails to find uninstalled libraries when the uninstalled
13997	    # path is not listed in the libpath.  Setting hardcode_minus_L
13998	    # to unsupported forces relinking
13999	    hardcode_minus_L_CXX=yes
14000	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14001	    hardcode_libdir_separator_CXX=
14002	  fi
14003          esac
14004          shared_flag='-shared'
14005	  if test yes = "$aix_use_runtimelinking"; then
14006	    shared_flag=$shared_flag' $wl-G'
14007	  fi
14008	  # Need to ensure runtime linking is disabled for the traditional
14009	  # shared library, or the linker may eventually find shared libraries
14010	  # /with/ Import File - we do not want to mix them.
14011	  shared_flag_aix='-shared'
14012	  shared_flag_svr4='-shared $wl-G'
14013        else
14014          # not using gcc
14015          if test ia64 = "$host_cpu"; then
14016	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14017	  # chokes on -Wl,-G. The following line is correct:
14018	  shared_flag='-G'
14019          else
14020	    if test yes = "$aix_use_runtimelinking"; then
14021	      shared_flag='$wl-G'
14022	    else
14023	      shared_flag='$wl-bM:SRE'
14024	    fi
14025	    shared_flag_aix='$wl-bM:SRE'
14026	    shared_flag_svr4='$wl-G'
14027          fi
14028        fi
14029
14030        export_dynamic_flag_spec_CXX='$wl-bexpall'
14031        # It seems that -bexpall does not export symbols beginning with
14032        # underscore (_), so it is better to generate a list of symbols to
14033	# export.
14034        always_export_symbols_CXX=yes
14035	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14036          # Warning - without using the other runtime loading flags (-brtl),
14037          # -berok will link without error, but may produce a broken library.
14038          # The "-G" linker flag allows undefined symbols.
14039          no_undefined_flag_CXX='-bernotok'
14040          # Determine the default libpath from the value encoded in an empty
14041          # executable.
14042          if test set = "${lt_cv_aix_libpath+set}"; then
14043  aix_libpath=$lt_cv_aix_libpath
14044else
14045  if ${lt_cv_aix_libpath__CXX+:} false; then :
14046  $as_echo_n "(cached) " >&6
14047else
14048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050
14051int
14052main ()
14053{
14054
14055  ;
14056  return 0;
14057}
14058_ACEOF
14059if ac_fn_cxx_try_link "$LINENO"; then :
14060
14061  lt_aix_libpath_sed='
14062      /Import File Strings/,/^$/ {
14063	  /^0/ {
14064	      s/^0  *\([^ ]*\) *$/\1/
14065	      p
14066	  }
14067      }'
14068  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14069  # Check for a 64-bit object if we didn't find anything.
14070  if test -z "$lt_cv_aix_libpath__CXX"; then
14071    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14072  fi
14073fi
14074rm -f core conftest.err conftest.$ac_objext \
14075    conftest$ac_exeext conftest.$ac_ext
14076  if test -z "$lt_cv_aix_libpath__CXX"; then
14077    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14078  fi
14079
14080fi
14081
14082  aix_libpath=$lt_cv_aix_libpath__CXX
14083fi
14084
14085          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14086
14087          archive_expsym_cmds_CXX='$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
14088        else
14089          if test ia64 = "$host_cpu"; then
14090	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14091	    allow_undefined_flag_CXX="-z nodefs"
14092	    archive_expsym_cmds_CXX="\$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"
14093          else
14094	    # Determine the default libpath from the value encoded in an
14095	    # empty executable.
14096	    if test set = "${lt_cv_aix_libpath+set}"; then
14097  aix_libpath=$lt_cv_aix_libpath
14098else
14099  if ${lt_cv_aix_libpath__CXX+:} false; then :
14100  $as_echo_n "(cached) " >&6
14101else
14102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h.  */
14104
14105int
14106main ()
14107{
14108
14109  ;
14110  return 0;
14111}
14112_ACEOF
14113if ac_fn_cxx_try_link "$LINENO"; then :
14114
14115  lt_aix_libpath_sed='
14116      /Import File Strings/,/^$/ {
14117	  /^0/ {
14118	      s/^0  *\([^ ]*\) *$/\1/
14119	      p
14120	  }
14121      }'
14122  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14123  # Check for a 64-bit object if we didn't find anything.
14124  if test -z "$lt_cv_aix_libpath__CXX"; then
14125    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14126  fi
14127fi
14128rm -f core conftest.err conftest.$ac_objext \
14129    conftest$ac_exeext conftest.$ac_ext
14130  if test -z "$lt_cv_aix_libpath__CXX"; then
14131    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14132  fi
14133
14134fi
14135
14136  aix_libpath=$lt_cv_aix_libpath__CXX
14137fi
14138
14139	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14140	    # Warning - without using the other run time loading flags,
14141	    # -berok will link without error, but may produce a broken library.
14142	    no_undefined_flag_CXX=' $wl-bernotok'
14143	    allow_undefined_flag_CXX=' $wl-berok'
14144	    if test yes = "$with_gnu_ld"; then
14145	      # We only use this code for GNU lds that support --whole-archive.
14146	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14147	    else
14148	      # Exported symbols can be pulled into shared objects from archives
14149	      whole_archive_flag_spec_CXX='$convenience'
14150	    fi
14151	    archive_cmds_need_lc_CXX=yes
14152	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14153	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14154	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14155	    if test svr4 != "$with_aix_soname"; then
14156	      # This is similar to how AIX traditionally builds its shared
14157	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14158	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14159	    fi
14160	    if test aix != "$with_aix_soname"; then
14161	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14162	    else
14163	      # used by -dlpreopen to get the symbols
14164	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14165	    fi
14166	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14167          fi
14168        fi
14169        ;;
14170
14171      beos*)
14172	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14173	  allow_undefined_flag_CXX=unsupported
14174	  # Joseph Beckenbach <[email protected]> says some releases of gcc
14175	  # support --undefined.  This deserves some investigation.  FIXME
14176	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14177	else
14178	  ld_shlibs_CXX=no
14179	fi
14180	;;
14181
14182      chorus*)
14183        case $cc_basename in
14184          *)
14185	  # FIXME: insert proper C++ library support
14186	  ld_shlibs_CXX=no
14187	  ;;
14188        esac
14189        ;;
14190
14191      cygwin* | mingw* | pw32* | cegcc*)
14192	case $GXX,$cc_basename in
14193	,cl* | no,cl*)
14194	  # Native MSVC
14195	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14196	  # no search path for DLLs.
14197	  hardcode_libdir_flag_spec_CXX=' '
14198	  allow_undefined_flag_CXX=unsupported
14199	  always_export_symbols_CXX=yes
14200	  file_list_spec_CXX='@'
14201	  # Tell ltmain to make .lib files, not .a files.
14202	  libext=lib
14203	  # Tell ltmain to make .dll files, not .so files.
14204	  shrext_cmds=.dll
14205	  # FIXME: Setting linknames here is a bad hack.
14206	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14207	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14208              cp "$export_symbols" "$output_objdir/$soname.def";
14209              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14210            else
14211              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14212            fi~
14213            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14214            linknames='
14215	  # The linker will not automatically build a static lib if we build a DLL.
14216	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14217	  enable_shared_with_static_runtimes_CXX=yes
14218	  # Don't use ranlib
14219	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14220	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14221            lt_tool_outputfile="@TOOL_OUTPUT@"~
14222            case $lt_outputfile in
14223              *.exe|*.EXE) ;;
14224              *)
14225                lt_outputfile=$lt_outputfile.exe
14226                lt_tool_outputfile=$lt_tool_outputfile.exe
14227                ;;
14228            esac~
14229            func_to_tool_file "$lt_outputfile"~
14230            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14231              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14232              $RM "$lt_outputfile.manifest";
14233            fi'
14234	  ;;
14235	*)
14236	  # g++
14237	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14238	  # as there is no search path for DLLs.
14239	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14240	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14241	  allow_undefined_flag_CXX=unsupported
14242	  always_export_symbols_CXX=no
14243	  enable_shared_with_static_runtimes_CXX=yes
14244
14245	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14246	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14247	    # If the export-symbols file already is a .def file, use it as
14248	    # is; otherwise, prepend EXPORTS...
14249	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14250              cp $export_symbols $output_objdir/$soname.def;
14251            else
14252              echo EXPORTS > $output_objdir/$soname.def;
14253              cat $export_symbols >> $output_objdir/$soname.def;
14254            fi~
14255            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14256	  else
14257	    ld_shlibs_CXX=no
14258	  fi
14259	  ;;
14260	esac
14261	;;
14262      darwin* | rhapsody*)
14263
14264
14265  archive_cmds_need_lc_CXX=no
14266  hardcode_direct_CXX=no
14267  hardcode_automatic_CXX=yes
14268  hardcode_shlibpath_var_CXX=unsupported
14269  if test yes = "$lt_cv_ld_force_load"; then
14270    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14271
14272  else
14273    whole_archive_flag_spec_CXX=''
14274  fi
14275  link_all_deplibs_CXX=yes
14276  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14277  case $cc_basename in
14278     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14279     *) _lt_dar_can_shared=$GCC ;;
14280  esac
14281  if test yes = "$_lt_dar_can_shared"; then
14282    output_verbose_link_cmd=func_echo_all
14283    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14284    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14285    archive_expsym_cmds_CXX="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"
14286    module_expsym_cmds_CXX="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"
14287       if test yes != "$lt_cv_apple_cc_single_mod"; then
14288      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14289      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14290    fi
14291
14292  else
14293  ld_shlibs_CXX=no
14294  fi
14295
14296	;;
14297
14298      os2*)
14299	hardcode_libdir_flag_spec_CXX='-L$libdir'
14300	hardcode_minus_L_CXX=yes
14301	allow_undefined_flag_CXX=unsupported
14302	shrext_cmds=.dll
14303	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14304	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14305	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14306	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14307	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14308	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14309	  emximp -o $lib $output_objdir/$libname.def'
14310	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14311	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14312	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14313	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14314	  prefix_cmds="$SED"~
14315	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14316	    prefix_cmds="$prefix_cmds -e 1d";
14317	  fi~
14318	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14319	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14320	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14321	  emximp -o $lib $output_objdir/$libname.def'
14322	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14323	enable_shared_with_static_runtimes_CXX=yes
14324	;;
14325
14326      dgux*)
14327        case $cc_basename in
14328          ec++*)
14329	    # FIXME: insert proper C++ library support
14330	    ld_shlibs_CXX=no
14331	    ;;
14332          ghcx*)
14333	    # Green Hills C++ Compiler
14334	    # FIXME: insert proper C++ library support
14335	    ld_shlibs_CXX=no
14336	    ;;
14337          *)
14338	    # FIXME: insert proper C++ library support
14339	    ld_shlibs_CXX=no
14340	    ;;
14341        esac
14342        ;;
14343
14344      freebsd2.*)
14345        # C++ shared libraries reported to be fairly broken before
14346	# switch to ELF
14347        ld_shlibs_CXX=no
14348        ;;
14349
14350      freebsd-elf*)
14351        archive_cmds_need_lc_CXX=no
14352        ;;
14353
14354      freebsd* | dragonfly*)
14355        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14356        # conventions
14357        ld_shlibs_CXX=yes
14358        ;;
14359
14360      haiku*)
14361        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14362        link_all_deplibs_CXX=yes
14363        ;;
14364
14365      hpux9*)
14366        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14367        hardcode_libdir_separator_CXX=:
14368        export_dynamic_flag_spec_CXX='$wl-E'
14369        hardcode_direct_CXX=yes
14370        hardcode_minus_L_CXX=yes # Not in the search PATH,
14371				             # but as the default
14372				             # location of the library.
14373
14374        case $cc_basename in
14375          CC*)
14376            # FIXME: insert proper C++ library support
14377            ld_shlibs_CXX=no
14378            ;;
14379          aCC*)
14380            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14381            # Commands to make compiler produce verbose output that lists
14382            # what "hidden" libraries, object files and flags are used when
14383            # linking a shared library.
14384            #
14385            # There doesn't appear to be a way to prevent this compiler from
14386            # explicitly linking system object files so we need to strip them
14387            # from the output so that they don't get included in the library
14388            # dependencies.
14389            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14390            ;;
14391          *)
14392            if test yes = "$GXX"; then
14393              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14394            else
14395              # FIXME: insert proper C++ library support
14396              ld_shlibs_CXX=no
14397            fi
14398            ;;
14399        esac
14400        ;;
14401
14402      hpux10*|hpux11*)
14403        if test no = "$with_gnu_ld"; then
14404	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14405	  hardcode_libdir_separator_CXX=:
14406
14407          case $host_cpu in
14408            hppa*64*|ia64*)
14409              ;;
14410            *)
14411	      export_dynamic_flag_spec_CXX='$wl-E'
14412              ;;
14413          esac
14414        fi
14415        case $host_cpu in
14416          hppa*64*|ia64*)
14417            hardcode_direct_CXX=no
14418            hardcode_shlibpath_var_CXX=no
14419            ;;
14420          *)
14421            hardcode_direct_CXX=yes
14422            hardcode_direct_absolute_CXX=yes
14423            hardcode_minus_L_CXX=yes # Not in the search PATH,
14424					         # but as the default
14425					         # location of the library.
14426            ;;
14427        esac
14428
14429        case $cc_basename in
14430          CC*)
14431	    # FIXME: insert proper C++ library support
14432	    ld_shlibs_CXX=no
14433	    ;;
14434          aCC*)
14435	    case $host_cpu in
14436	      hppa*64*)
14437	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438	        ;;
14439	      ia64*)
14440	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14441	        ;;
14442	      *)
14443	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14444	        ;;
14445	    esac
14446	    # Commands to make compiler produce verbose output that lists
14447	    # what "hidden" libraries, object files and flags are used when
14448	    # linking a shared library.
14449	    #
14450	    # There doesn't appear to be a way to prevent this compiler from
14451	    # explicitly linking system object files so we need to strip them
14452	    # from the output so that they don't get included in the library
14453	    # dependencies.
14454	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14455	    ;;
14456          *)
14457	    if test yes = "$GXX"; then
14458	      if test no = "$with_gnu_ld"; then
14459	        case $host_cpu in
14460	          hppa*64*)
14461	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14462	            ;;
14463	          ia64*)
14464	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14465	            ;;
14466	          *)
14467	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14468	            ;;
14469	        esac
14470	      fi
14471	    else
14472	      # FIXME: insert proper C++ library support
14473	      ld_shlibs_CXX=no
14474	    fi
14475	    ;;
14476        esac
14477        ;;
14478
14479      interix[3-9]*)
14480	hardcode_direct_CXX=no
14481	hardcode_shlibpath_var_CXX=no
14482	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14483	export_dynamic_flag_spec_CXX='$wl-E'
14484	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14485	# Instead, shared libraries are loaded at an image base (0x10000000 by
14486	# default) and relocated if they conflict, which is a slow very memory
14487	# consuming and fragmenting process.  To avoid this, we pick a random,
14488	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14489	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14490	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14491	archive_expsym_cmds_CXX='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'
14492	;;
14493      irix5* | irix6*)
14494        case $cc_basename in
14495          CC*)
14496	    # SGI C++
14497	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14498
14499	    # Archives containing C++ object files must be created using
14500	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14501	    # necessary to make sure instantiated templates are included
14502	    # in the archive.
14503	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14504	    ;;
14505          *)
14506	    if test yes = "$GXX"; then
14507	      if test no = "$with_gnu_ld"; then
14508	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14509	      else
14510	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14511	      fi
14512	    fi
14513	    link_all_deplibs_CXX=yes
14514	    ;;
14515        esac
14516        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14517        hardcode_libdir_separator_CXX=:
14518        inherit_rpath_CXX=yes
14519        ;;
14520
14521      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14522        case $cc_basename in
14523          KCC*)
14524	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14525
14526	    # KCC will only create a shared library if the output file
14527	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14528	    # to its proper name (with version) after linking.
14529	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14530	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14531	    # Commands to make compiler produce verbose output that lists
14532	    # what "hidden" libraries, object files and flags are used when
14533	    # linking a shared library.
14534	    #
14535	    # There doesn't appear to be a way to prevent this compiler from
14536	    # explicitly linking system object files so we need to strip them
14537	    # from the output so that they don't get included in the library
14538	    # dependencies.
14539	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14540
14541	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14542	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14543
14544	    # Archives containing C++ object files must be created using
14545	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14546	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14547	    ;;
14548	  icpc* | ecpc* )
14549	    # Intel C++
14550	    with_gnu_ld=yes
14551	    # version 8.0 and above of icpc choke on multiply defined symbols
14552	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14553	    # earlier do not add the objects themselves.
14554	    case `$CC -V 2>&1` in
14555	      *"Version 7."*)
14556	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14557		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14558		;;
14559	      *)  # Version 8.0 or newer
14560	        tmp_idyn=
14561	        case $host_cpu in
14562		  ia64*) tmp_idyn=' -i_dynamic';;
14563		esac
14564	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14565		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14566		;;
14567	    esac
14568	    archive_cmds_need_lc_CXX=no
14569	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14570	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14571	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14572	    ;;
14573          pgCC* | pgcpp*)
14574            # Portland Group C++ compiler
14575	    case `$CC -V` in
14576	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14577	      prelink_cmds_CXX='tpldir=Template.dir~
14578               rm -rf $tpldir~
14579               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14580               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14581	      old_archive_cmds_CXX='tpldir=Template.dir~
14582                rm -rf $tpldir~
14583                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14584                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14585                $RANLIB $oldlib'
14586	      archive_cmds_CXX='tpldir=Template.dir~
14587                rm -rf $tpldir~
14588                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14589                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14590	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14591                rm -rf $tpldir~
14592                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14593                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14594	      ;;
14595	    *) # Version 6 and above use weak symbols
14596	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14597	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14598	      ;;
14599	    esac
14600
14601	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14602	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14603	    whole_archive_flag_spec_CXX='$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'
14604            ;;
14605	  cxx*)
14606	    # Compaq C++
14607	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14608	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14609
14610	    runpath_var=LD_RUN_PATH
14611	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14612	    hardcode_libdir_separator_CXX=:
14613
14614	    # Commands to make compiler produce verbose output that lists
14615	    # what "hidden" libraries, object files and flags are used when
14616	    # linking a shared library.
14617	    #
14618	    # There doesn't appear to be a way to prevent this compiler from
14619	    # explicitly linking system object files so we need to strip them
14620	    # from the output so that they don't get included in the library
14621	    # dependencies.
14622	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14623	    ;;
14624	  xl* | mpixl* | bgxl*)
14625	    # IBM XL 8.0 on PPC, with GNU ld
14626	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14627	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14628	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14629	    if test yes = "$supports_anon_versioning"; then
14630	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14631                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14632                echo "local: *; };" >> $output_objdir/$libname.ver~
14633                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14634	    fi
14635	    ;;
14636	  *)
14637	    case `$CC -V 2>&1 | sed 5q` in
14638	    *Sun\ C*)
14639	      # Sun C++ 5.9
14640	      no_undefined_flag_CXX=' -zdefs'
14641	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14642	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14643	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14644	      whole_archive_flag_spec_CXX='$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'
14645	      compiler_needs_object_CXX=yes
14646
14647	      # Not sure whether something based on
14648	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14649	      # would be better.
14650	      output_verbose_link_cmd='func_echo_all'
14651
14652	      # Archives containing C++ object files must be created using
14653	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14654	      # necessary to make sure instantiated templates are included
14655	      # in the archive.
14656	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14657	      ;;
14658	    esac
14659	    ;;
14660	esac
14661	;;
14662
14663      lynxos*)
14664        # FIXME: insert proper C++ library support
14665	ld_shlibs_CXX=no
14666	;;
14667
14668      m88k*)
14669        # FIXME: insert proper C++ library support
14670        ld_shlibs_CXX=no
14671	;;
14672
14673      mvs*)
14674        case $cc_basename in
14675          cxx*)
14676	    # FIXME: insert proper C++ library support
14677	    ld_shlibs_CXX=no
14678	    ;;
14679	  *)
14680	    # FIXME: insert proper C++ library support
14681	    ld_shlibs_CXX=no
14682	    ;;
14683	esac
14684	;;
14685
14686      netbsd*)
14687        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14688	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14689	  wlarc=
14690	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14691	  hardcode_direct_CXX=yes
14692	  hardcode_shlibpath_var_CXX=no
14693	fi
14694	# Workaround some broken pre-1.5 toolchains
14695	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14696	;;
14697
14698      *nto* | *qnx*)
14699        ld_shlibs_CXX=yes
14700	;;
14701
14702      openbsd* | bitrig*)
14703	if test -f /usr/libexec/ld.so; then
14704	  hardcode_direct_CXX=yes
14705	  hardcode_shlibpath_var_CXX=no
14706	  hardcode_direct_absolute_CXX=yes
14707	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14708	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14709	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14710	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14711	    export_dynamic_flag_spec_CXX='$wl-E'
14712	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14713	  fi
14714	  output_verbose_link_cmd=func_echo_all
14715	else
14716	  ld_shlibs_CXX=no
14717	fi
14718	;;
14719
14720      osf3* | osf4* | osf5*)
14721        case $cc_basename in
14722          KCC*)
14723	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14724
14725	    # KCC will only create a shared library if the output file
14726	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14727	    # to its proper name (with version) after linking.
14728	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14729
14730	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14731	    hardcode_libdir_separator_CXX=:
14732
14733	    # Archives containing C++ object files must be created using
14734	    # the KAI C++ compiler.
14735	    case $host in
14736	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14737	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14738	    esac
14739	    ;;
14740          RCC*)
14741	    # Rational C++ 2.4.1
14742	    # FIXME: insert proper C++ library support
14743	    ld_shlibs_CXX=no
14744	    ;;
14745          cxx*)
14746	    case $host in
14747	      osf3*)
14748	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14749	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14750	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14751		;;
14752	      *)
14753	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14754	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14755	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14756                  echo "-hidden">> $lib.exp~
14757                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14758                  $RM $lib.exp'
14759	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14760		;;
14761	    esac
14762
14763	    hardcode_libdir_separator_CXX=:
14764
14765	    # Commands to make compiler produce verbose output that lists
14766	    # what "hidden" libraries, object files and flags are used when
14767	    # linking a shared library.
14768	    #
14769	    # There doesn't appear to be a way to prevent this compiler from
14770	    # explicitly linking system object files so we need to strip them
14771	    # from the output so that they don't get included in the library
14772	    # dependencies.
14773	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14774	    ;;
14775	  *)
14776	    if test yes,no = "$GXX,$with_gnu_ld"; then
14777	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14778	      case $host in
14779	        osf3*)
14780	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14781		  ;;
14782	        *)
14783	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14784		  ;;
14785	      esac
14786
14787	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14788	      hardcode_libdir_separator_CXX=:
14789
14790	      # Commands to make compiler produce verbose output that lists
14791	      # what "hidden" libraries, object files and flags are used when
14792	      # linking a shared library.
14793	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14794
14795	    else
14796	      # FIXME: insert proper C++ library support
14797	      ld_shlibs_CXX=no
14798	    fi
14799	    ;;
14800        esac
14801        ;;
14802
14803      psos*)
14804        # FIXME: insert proper C++ library support
14805        ld_shlibs_CXX=no
14806        ;;
14807
14808      sunos4*)
14809        case $cc_basename in
14810          CC*)
14811	    # Sun C++ 4.x
14812	    # FIXME: insert proper C++ library support
14813	    ld_shlibs_CXX=no
14814	    ;;
14815          lcc*)
14816	    # Lucid
14817	    # FIXME: insert proper C++ library support
14818	    ld_shlibs_CXX=no
14819	    ;;
14820          *)
14821	    # FIXME: insert proper C++ library support
14822	    ld_shlibs_CXX=no
14823	    ;;
14824        esac
14825        ;;
14826
14827      solaris*)
14828        case $cc_basename in
14829          CC* | sunCC*)
14830	    # Sun C++ 4.2, 5.x and Centerline C++
14831            archive_cmds_need_lc_CXX=yes
14832	    no_undefined_flag_CXX=' -zdefs'
14833	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14834	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14835              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14836
14837	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14838	    hardcode_shlibpath_var_CXX=no
14839	    case $host_os in
14840	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14841	      *)
14842		# The compiler driver will combine and reorder linker options,
14843		# but understands '-z linker_flag'.
14844	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14845		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14846	        ;;
14847	    esac
14848	    link_all_deplibs_CXX=yes
14849
14850	    output_verbose_link_cmd='func_echo_all'
14851
14852	    # Archives containing C++ object files must be created using
14853	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14854	    # necessary to make sure instantiated templates are included
14855	    # in the archive.
14856	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14857	    ;;
14858          gcx*)
14859	    # Green Hills C++ Compiler
14860	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14861
14862	    # The C++ compiler must be used to create the archive.
14863	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14864	    ;;
14865          *)
14866	    # GNU C++ compiler with Solaris linker
14867	    if test yes,no = "$GXX,$with_gnu_ld"; then
14868	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14869	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14870	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14871	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14872                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14873
14874	        # Commands to make compiler produce verbose output that lists
14875	        # what "hidden" libraries, object files and flags are used when
14876	        # linking a shared library.
14877	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14878	      else
14879	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14880	        # platform.
14881	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14882	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14883                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14884
14885	        # Commands to make compiler produce verbose output that lists
14886	        # what "hidden" libraries, object files and flags are used when
14887	        # linking a shared library.
14888	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14889	      fi
14890
14891	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14892	      case $host_os in
14893		solaris2.[0-5] | solaris2.[0-5].*) ;;
14894		*)
14895		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14896		  ;;
14897	      esac
14898	    fi
14899	    ;;
14900        esac
14901        ;;
14902
14903    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14904      no_undefined_flag_CXX='$wl-z,text'
14905      archive_cmds_need_lc_CXX=no
14906      hardcode_shlibpath_var_CXX=no
14907      runpath_var='LD_RUN_PATH'
14908
14909      case $cc_basename in
14910        CC*)
14911	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14912	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913	  ;;
14914	*)
14915	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917	  ;;
14918      esac
14919      ;;
14920
14921      sysv5* | sco3.2v5* | sco5v6*)
14922	# Note: We CANNOT use -z defs as we might desire, because we do not
14923	# link with -lc, and that would cause any symbols used from libc to
14924	# always be unresolved, which means just about no library would
14925	# ever link correctly.  If we're not using GNU ld we use -z text
14926	# though, which does catch some bad symbols but isn't as heavy-handed
14927	# as -z defs.
14928	no_undefined_flag_CXX='$wl-z,text'
14929	allow_undefined_flag_CXX='$wl-z,nodefs'
14930	archive_cmds_need_lc_CXX=no
14931	hardcode_shlibpath_var_CXX=no
14932	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14933	hardcode_libdir_separator_CXX=':'
14934	link_all_deplibs_CXX=yes
14935	export_dynamic_flag_spec_CXX='$wl-Bexport'
14936	runpath_var='LD_RUN_PATH'
14937
14938	case $cc_basename in
14939          CC*)
14940	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14943              '"$old_archive_cmds_CXX"
14944	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14945              '"$reload_cmds_CXX"
14946	    ;;
14947	  *)
14948	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14949	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14950	    ;;
14951	esac
14952      ;;
14953
14954      tandem*)
14955        case $cc_basename in
14956          NCC*)
14957	    # NonStop-UX NCC 3.20
14958	    # FIXME: insert proper C++ library support
14959	    ld_shlibs_CXX=no
14960	    ;;
14961          *)
14962	    # FIXME: insert proper C++ library support
14963	    ld_shlibs_CXX=no
14964	    ;;
14965        esac
14966        ;;
14967
14968      vxworks*)
14969        # FIXME: insert proper C++ library support
14970        ld_shlibs_CXX=no
14971        ;;
14972
14973      *)
14974        # FIXME: insert proper C++ library support
14975        ld_shlibs_CXX=no
14976        ;;
14977    esac
14978
14979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14980$as_echo "$ld_shlibs_CXX" >&6; }
14981    test no = "$ld_shlibs_CXX" && can_build_shared=no
14982
14983    GCC_CXX=$GXX
14984    LD_CXX=$LD
14985
14986    ## CAVEAT EMPTOR:
14987    ## There is no encapsulation within the following macros, do not change
14988    ## the running order or otherwise move them around unless you know exactly
14989    ## what you are doing...
14990    # Dependencies to place before and after the object being linked:
14991predep_objects_CXX=
14992postdep_objects_CXX=
14993predeps_CXX=
14994postdeps_CXX=
14995compiler_lib_search_path_CXX=
14996
14997cat > conftest.$ac_ext <<_LT_EOF
14998class Foo
14999{
15000public:
15001  Foo (void) { a = 0; }
15002private:
15003  int a;
15004};
15005_LT_EOF
15006
15007
15008_lt_libdeps_save_CFLAGS=$CFLAGS
15009case "$CC $CFLAGS " in #(
15010*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15011*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15012*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15013esac
15014
15015if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15016  (eval $ac_compile) 2>&5
15017  ac_status=$?
15018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019  test $ac_status = 0; }; then
15020  # Parse the compiler output and extract the necessary
15021  # objects, libraries and library flags.
15022
15023  # Sentinel used to keep track of whether or not we are before
15024  # the conftest object file.
15025  pre_test_object_deps_done=no
15026
15027  for p in `eval "$output_verbose_link_cmd"`; do
15028    case $prev$p in
15029
15030    -L* | -R* | -l*)
15031       # Some compilers place space between "-{L,R}" and the path.
15032       # Remove the space.
15033       if test x-L = "$p" ||
15034          test x-R = "$p"; then
15035	 prev=$p
15036	 continue
15037       fi
15038
15039       # Expand the sysroot to ease extracting the directories later.
15040       if test -z "$prev"; then
15041         case $p in
15042         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15043         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15044         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15045         esac
15046       fi
15047       case $p in
15048       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15049       esac
15050       if test no = "$pre_test_object_deps_done"; then
15051	 case $prev in
15052	 -L | -R)
15053	   # Internal compiler library paths should come after those
15054	   # provided the user.  The postdeps already come after the
15055	   # user supplied libs so there is no need to process them.
15056	   if test -z "$compiler_lib_search_path_CXX"; then
15057	     compiler_lib_search_path_CXX=$prev$p
15058	   else
15059	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15060	   fi
15061	   ;;
15062	 # The "-l" case would never come before the object being
15063	 # linked, so don't bother handling this case.
15064	 esac
15065       else
15066	 if test -z "$postdeps_CXX"; then
15067	   postdeps_CXX=$prev$p
15068	 else
15069	   postdeps_CXX="${postdeps_CXX} $prev$p"
15070	 fi
15071       fi
15072       prev=
15073       ;;
15074
15075    *.lto.$objext) ;; # Ignore GCC LTO objects
15076    *.$objext)
15077       # This assumes that the test object file only shows up
15078       # once in the compiler output.
15079       if test "$p" = "conftest.$objext"; then
15080	 pre_test_object_deps_done=yes
15081	 continue
15082       fi
15083
15084       if test no = "$pre_test_object_deps_done"; then
15085	 if test -z "$predep_objects_CXX"; then
15086	   predep_objects_CXX=$p
15087	 else
15088	   predep_objects_CXX="$predep_objects_CXX $p"
15089	 fi
15090       else
15091	 if test -z "$postdep_objects_CXX"; then
15092	   postdep_objects_CXX=$p
15093	 else
15094	   postdep_objects_CXX="$postdep_objects_CXX $p"
15095	 fi
15096       fi
15097       ;;
15098
15099    *) ;; # Ignore the rest.
15100
15101    esac
15102  done
15103
15104  # Clean up.
15105  rm -f a.out a.exe
15106else
15107  echo "libtool.m4: error: problem compiling CXX test program"
15108fi
15109
15110$RM -f confest.$objext
15111CFLAGS=$_lt_libdeps_save_CFLAGS
15112
15113# PORTME: override above test on systems where it is broken
15114case $host_os in
15115interix[3-9]*)
15116  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15117  # hack all around it, let's just trust "g++" to DTRT.
15118  predep_objects_CXX=
15119  postdep_objects_CXX=
15120  postdeps_CXX=
15121  ;;
15122
15123linux*)
15124  case `$CC -V 2>&1 | sed 5q` in
15125  *Sun\ C*)
15126    # Sun C++ 5.9
15127
15128    # The more standards-conforming stlport4 library is
15129    # incompatible with the Cstd library. Avoid specifying
15130    # it if it's in CXXFLAGS. Ignore libCrun as
15131    # -library=stlport4 depends on it.
15132    case " $CXX $CXXFLAGS " in
15133    *" -library=stlport4 "*)
15134      solaris_use_stlport4=yes
15135      ;;
15136    esac
15137
15138    if test yes != "$solaris_use_stlport4"; then
15139      postdeps_CXX='-library=Cstd -library=Crun'
15140    fi
15141    ;;
15142  esac
15143  ;;
15144
15145solaris*)
15146  case $cc_basename in
15147  CC* | sunCC*)
15148    # The more standards-conforming stlport4 library is
15149    # incompatible with the Cstd library. Avoid specifying
15150    # it if it's in CXXFLAGS. Ignore libCrun as
15151    # -library=stlport4 depends on it.
15152    case " $CXX $CXXFLAGS " in
15153    *" -library=stlport4 "*)
15154      solaris_use_stlport4=yes
15155      ;;
15156    esac
15157
15158    # Adding this requires a known-good setup of shared libraries for
15159    # Sun compiler versions before 5.6, else PIC objects from an old
15160    # archive will be linked into the output, leading to subtle bugs.
15161    if test yes != "$solaris_use_stlport4"; then
15162      postdeps_CXX='-library=Cstd -library=Crun'
15163    fi
15164    ;;
15165  esac
15166  ;;
15167esac
15168
15169
15170case " $postdeps_CXX " in
15171*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15172esac
15173 compiler_lib_search_dirs_CXX=
15174if test -n "${compiler_lib_search_path_CXX}"; then
15175 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15176fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208    lt_prog_compiler_wl_CXX=
15209lt_prog_compiler_pic_CXX=
15210lt_prog_compiler_static_CXX=
15211
15212
15213  # C++ specific cases for pic, static, wl, etc.
15214  if test yes = "$GXX"; then
15215    lt_prog_compiler_wl_CXX='-Wl,'
15216    lt_prog_compiler_static_CXX='-static'
15217
15218    case $host_os in
15219    aix*)
15220      # All AIX code is PIC.
15221      if test ia64 = "$host_cpu"; then
15222	# AIX 5 now supports IA64 processor
15223	lt_prog_compiler_static_CXX='-Bstatic'
15224      fi
15225      lt_prog_compiler_pic_CXX='-fPIC'
15226      ;;
15227
15228    amigaos*)
15229      case $host_cpu in
15230      powerpc)
15231            # see comment about AmigaOS4 .so support
15232            lt_prog_compiler_pic_CXX='-fPIC'
15233        ;;
15234      m68k)
15235            # FIXME: we need at least 68020 code to build shared libraries, but
15236            # adding the '-m68020' flag to GCC prevents building anything better,
15237            # like '-m68040'.
15238            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15239        ;;
15240      esac
15241      ;;
15242
15243    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15244      # PIC is the default for these OSes.
15245      ;;
15246    mingw* | cygwin* | os2* | pw32* | cegcc*)
15247      # This hack is so that the source file can tell whether it is being
15248      # built for inclusion in a dll (and should export symbols for example).
15249      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15250      # (--disable-auto-import) libraries
15251      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15252      case $host_os in
15253      os2*)
15254	lt_prog_compiler_static_CXX='$wl-static'
15255	;;
15256      esac
15257      ;;
15258    darwin* | rhapsody*)
15259      # PIC is the default on this platform
15260      # Common symbols not allowed in MH_DYLIB files
15261      lt_prog_compiler_pic_CXX='-fno-common'
15262      ;;
15263    *djgpp*)
15264      # DJGPP does not support shared libraries at all
15265      lt_prog_compiler_pic_CXX=
15266      ;;
15267    haiku*)
15268      # PIC is the default for Haiku.
15269      # The "-static" flag exists, but is broken.
15270      lt_prog_compiler_static_CXX=
15271      ;;
15272    interix[3-9]*)
15273      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15274      # Instead, we relocate shared libraries at runtime.
15275      ;;
15276    sysv4*MP*)
15277      if test -d /usr/nec; then
15278	lt_prog_compiler_pic_CXX=-Kconform_pic
15279      fi
15280      ;;
15281    hpux*)
15282      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15283      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15284      # sets the default TLS model and affects inlining.
15285      case $host_cpu in
15286      hppa*64*)
15287	;;
15288      *)
15289	lt_prog_compiler_pic_CXX='-fPIC'
15290	;;
15291      esac
15292      ;;
15293    *qnx* | *nto*)
15294      # QNX uses GNU C++, but need to define -shared option too, otherwise
15295      # it will coredump.
15296      lt_prog_compiler_pic_CXX='-fPIC -shared'
15297      ;;
15298    *)
15299      lt_prog_compiler_pic_CXX='-fPIC'
15300      ;;
15301    esac
15302  else
15303    case $host_os in
15304      aix[4-9]*)
15305	# All AIX code is PIC.
15306	if test ia64 = "$host_cpu"; then
15307	  # AIX 5 now supports IA64 processor
15308	  lt_prog_compiler_static_CXX='-Bstatic'
15309	else
15310	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15311	fi
15312	;;
15313      chorus*)
15314	case $cc_basename in
15315	cxch68*)
15316	  # Green Hills C++ Compiler
15317	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15318	  ;;
15319	esac
15320	;;
15321      mingw* | cygwin* | os2* | pw32* | cegcc*)
15322	# This hack is so that the source file can tell whether it is being
15323	# built for inclusion in a dll (and should export symbols for example).
15324	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15325	;;
15326      dgux*)
15327	case $cc_basename in
15328	  ec++*)
15329	    lt_prog_compiler_pic_CXX='-KPIC'
15330	    ;;
15331	  ghcx*)
15332	    # Green Hills C++ Compiler
15333	    lt_prog_compiler_pic_CXX='-pic'
15334	    ;;
15335	  *)
15336	    ;;
15337	esac
15338	;;
15339      freebsd* | dragonfly*)
15340	# FreeBSD uses GNU C++
15341	;;
15342      hpux9* | hpux10* | hpux11*)
15343	case $cc_basename in
15344	  CC*)
15345	    lt_prog_compiler_wl_CXX='-Wl,'
15346	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15347	    if test ia64 != "$host_cpu"; then
15348	      lt_prog_compiler_pic_CXX='+Z'
15349	    fi
15350	    ;;
15351	  aCC*)
15352	    lt_prog_compiler_wl_CXX='-Wl,'
15353	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15354	    case $host_cpu in
15355	    hppa*64*|ia64*)
15356	      # +Z the default
15357	      ;;
15358	    *)
15359	      lt_prog_compiler_pic_CXX='+Z'
15360	      ;;
15361	    esac
15362	    ;;
15363	  *)
15364	    ;;
15365	esac
15366	;;
15367      interix*)
15368	# This is c89, which is MS Visual C++ (no shared libs)
15369	# Anyone wants to do a port?
15370	;;
15371      irix5* | irix6* | nonstopux*)
15372	case $cc_basename in
15373	  CC*)
15374	    lt_prog_compiler_wl_CXX='-Wl,'
15375	    lt_prog_compiler_static_CXX='-non_shared'
15376	    # CC pic flag -KPIC is the default.
15377	    ;;
15378	  *)
15379	    ;;
15380	esac
15381	;;
15382      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15383	case $cc_basename in
15384	  KCC*)
15385	    # KAI C++ Compiler
15386	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15387	    lt_prog_compiler_pic_CXX='-fPIC'
15388	    ;;
15389	  ecpc* )
15390	    # old Intel C++ for x86_64, which still supported -KPIC.
15391	    lt_prog_compiler_wl_CXX='-Wl,'
15392	    lt_prog_compiler_pic_CXX='-KPIC'
15393	    lt_prog_compiler_static_CXX='-static'
15394	    ;;
15395	  icpc* )
15396	    # Intel C++, used to be incompatible with GCC.
15397	    # ICC 10 doesn't accept -KPIC any more.
15398	    lt_prog_compiler_wl_CXX='-Wl,'
15399	    lt_prog_compiler_pic_CXX='-fPIC'
15400	    lt_prog_compiler_static_CXX='-static'
15401	    ;;
15402	  pgCC* | pgcpp*)
15403	    # Portland Group C++ compiler
15404	    lt_prog_compiler_wl_CXX='-Wl,'
15405	    lt_prog_compiler_pic_CXX='-fpic'
15406	    lt_prog_compiler_static_CXX='-Bstatic'
15407	    ;;
15408	  cxx*)
15409	    # Compaq C++
15410	    # Make sure the PIC flag is empty.  It appears that all Alpha
15411	    # Linux and Compaq Tru64 Unix objects are PIC.
15412	    lt_prog_compiler_pic_CXX=
15413	    lt_prog_compiler_static_CXX='-non_shared'
15414	    ;;
15415	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15416	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15417	    lt_prog_compiler_wl_CXX='-Wl,'
15418	    lt_prog_compiler_pic_CXX='-qpic'
15419	    lt_prog_compiler_static_CXX='-qstaticlink'
15420	    ;;
15421	  *)
15422	    case `$CC -V 2>&1 | sed 5q` in
15423	    *Sun\ C*)
15424	      # Sun C++ 5.9
15425	      lt_prog_compiler_pic_CXX='-KPIC'
15426	      lt_prog_compiler_static_CXX='-Bstatic'
15427	      lt_prog_compiler_wl_CXX='-Qoption ld '
15428	      ;;
15429	    esac
15430	    ;;
15431	esac
15432	;;
15433      lynxos*)
15434	;;
15435      m88k*)
15436	;;
15437      mvs*)
15438	case $cc_basename in
15439	  cxx*)
15440	    lt_prog_compiler_pic_CXX='-W c,exportall'
15441	    ;;
15442	  *)
15443	    ;;
15444	esac
15445	;;
15446      netbsd*)
15447	;;
15448      *qnx* | *nto*)
15449        # QNX uses GNU C++, but need to define -shared option too, otherwise
15450        # it will coredump.
15451        lt_prog_compiler_pic_CXX='-fPIC -shared'
15452        ;;
15453      osf3* | osf4* | osf5*)
15454	case $cc_basename in
15455	  KCC*)
15456	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15457	    ;;
15458	  RCC*)
15459	    # Rational C++ 2.4.1
15460	    lt_prog_compiler_pic_CXX='-pic'
15461	    ;;
15462	  cxx*)
15463	    # Digital/Compaq C++
15464	    lt_prog_compiler_wl_CXX='-Wl,'
15465	    # Make sure the PIC flag is empty.  It appears that all Alpha
15466	    # Linux and Compaq Tru64 Unix objects are PIC.
15467	    lt_prog_compiler_pic_CXX=
15468	    lt_prog_compiler_static_CXX='-non_shared'
15469	    ;;
15470	  *)
15471	    ;;
15472	esac
15473	;;
15474      psos*)
15475	;;
15476      solaris*)
15477	case $cc_basename in
15478	  CC* | sunCC*)
15479	    # Sun C++ 4.2, 5.x and Centerline C++
15480	    lt_prog_compiler_pic_CXX='-KPIC'
15481	    lt_prog_compiler_static_CXX='-Bstatic'
15482	    lt_prog_compiler_wl_CXX='-Qoption ld '
15483	    ;;
15484	  gcx*)
15485	    # Green Hills C++ Compiler
15486	    lt_prog_compiler_pic_CXX='-PIC'
15487	    ;;
15488	  *)
15489	    ;;
15490	esac
15491	;;
15492      sunos4*)
15493	case $cc_basename in
15494	  CC*)
15495	    # Sun C++ 4.x
15496	    lt_prog_compiler_pic_CXX='-pic'
15497	    lt_prog_compiler_static_CXX='-Bstatic'
15498	    ;;
15499	  lcc*)
15500	    # Lucid
15501	    lt_prog_compiler_pic_CXX='-pic'
15502	    ;;
15503	  *)
15504	    ;;
15505	esac
15506	;;
15507      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15508	case $cc_basename in
15509	  CC*)
15510	    lt_prog_compiler_wl_CXX='-Wl,'
15511	    lt_prog_compiler_pic_CXX='-KPIC'
15512	    lt_prog_compiler_static_CXX='-Bstatic'
15513	    ;;
15514	esac
15515	;;
15516      tandem*)
15517	case $cc_basename in
15518	  NCC*)
15519	    # NonStop-UX NCC 3.20
15520	    lt_prog_compiler_pic_CXX='-KPIC'
15521	    ;;
15522	  *)
15523	    ;;
15524	esac
15525	;;
15526      vxworks*)
15527	;;
15528      *)
15529	lt_prog_compiler_can_build_shared_CXX=no
15530	;;
15531    esac
15532  fi
15533
15534case $host_os in
15535  # For platforms that do not support PIC, -DPIC is meaningless:
15536  *djgpp*)
15537    lt_prog_compiler_pic_CXX=
15538    ;;
15539  *)
15540    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15541    ;;
15542esac
15543
15544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15545$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15546if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15547  $as_echo_n "(cached) " >&6
15548else
15549  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15550fi
15551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15552$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15553lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15554
15555#
15556# Check to make sure the PIC flag actually works.
15557#
15558if test -n "$lt_prog_compiler_pic_CXX"; then
15559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15560$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15561if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15562  $as_echo_n "(cached) " >&6
15563else
15564  lt_cv_prog_compiler_pic_works_CXX=no
15565   ac_outfile=conftest.$ac_objext
15566   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15568   # Insert the option either (1) after the last *FLAGS variable, or
15569   # (2) before a word containing "conftest.", or (3) at the end.
15570   # Note that $ac_compile itself does not contain backslashes and begins
15571   # with a dollar sign (not a hyphen), so the echo should work correctly.
15572   # The option is referenced via a variable to avoid confusing sed.
15573   lt_compile=`echo "$ac_compile" | $SED \
15574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576   -e 's:$: $lt_compiler_flag:'`
15577   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15578   (eval "$lt_compile" 2>conftest.err)
15579   ac_status=$?
15580   cat conftest.err >&5
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   if (exit $ac_status) && test -s "$ac_outfile"; then
15583     # The compiler can only warn and ignore the option if not recognized
15584     # So say no if there are warnings other than the usual output.
15585     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15586     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15587     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15588       lt_cv_prog_compiler_pic_works_CXX=yes
15589     fi
15590   fi
15591   $RM conftest*
15592
15593fi
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15595$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15596
15597if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15598    case $lt_prog_compiler_pic_CXX in
15599     "" | " "*) ;;
15600     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15601     esac
15602else
15603    lt_prog_compiler_pic_CXX=
15604     lt_prog_compiler_can_build_shared_CXX=no
15605fi
15606
15607fi
15608
15609
15610
15611
15612
15613#
15614# Check to make sure the static flag actually works.
15615#
15616wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15618$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15619if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15620  $as_echo_n "(cached) " >&6
15621else
15622  lt_cv_prog_compiler_static_works_CXX=no
15623   save_LDFLAGS=$LDFLAGS
15624   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15627     # The linker can only warn and ignore the option if not recognized
15628     # So say no if there are warnings
15629     if test -s conftest.err; then
15630       # Append any errors to the config.log.
15631       cat conftest.err 1>&5
15632       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15634       if diff conftest.exp conftest.er2 >/dev/null; then
15635         lt_cv_prog_compiler_static_works_CXX=yes
15636       fi
15637     else
15638       lt_cv_prog_compiler_static_works_CXX=yes
15639     fi
15640   fi
15641   $RM -r conftest*
15642   LDFLAGS=$save_LDFLAGS
15643
15644fi
15645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15646$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15647
15648if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15649    :
15650else
15651    lt_prog_compiler_static_CXX=
15652fi
15653
15654
15655
15656
15657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15659if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15660  $as_echo_n "(cached) " >&6
15661else
15662  lt_cv_prog_compiler_c_o_CXX=no
15663   $RM -r conftest 2>/dev/null
15664   mkdir conftest
15665   cd conftest
15666   mkdir out
15667   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15668
15669   lt_compiler_flag="-o out/conftest2.$ac_objext"
15670   # Insert the option either (1) after the last *FLAGS variable, or
15671   # (2) before a word containing "conftest.", or (3) at the end.
15672   # Note that $ac_compile itself does not contain backslashes and begins
15673   # with a dollar sign (not a hyphen), so the echo should work correctly.
15674   lt_compile=`echo "$ac_compile" | $SED \
15675   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15676   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15677   -e 's:$: $lt_compiler_flag:'`
15678   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15679   (eval "$lt_compile" 2>out/conftest.err)
15680   ac_status=$?
15681   cat out/conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15684   then
15685     # The compiler can only warn and ignore the option if not recognized
15686     # So say no if there are warnings
15687     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15688     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15689     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15690       lt_cv_prog_compiler_c_o_CXX=yes
15691     fi
15692   fi
15693   chmod u+w . 2>&5
15694   $RM conftest*
15695   # SGI C++ compiler will create directory out/ii_files/ for
15696   # template instantiation
15697   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15698   $RM out/* && rmdir out
15699   cd ..
15700   $RM -r conftest
15701   $RM conftest*
15702
15703fi
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15705$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15706
15707
15708
15709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15710$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15711if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714  lt_cv_prog_compiler_c_o_CXX=no
15715   $RM -r conftest 2>/dev/null
15716   mkdir conftest
15717   cd conftest
15718   mkdir out
15719   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15720
15721   lt_compiler_flag="-o out/conftest2.$ac_objext"
15722   # Insert the option either (1) after the last *FLAGS variable, or
15723   # (2) before a word containing "conftest.", or (3) at the end.
15724   # Note that $ac_compile itself does not contain backslashes and begins
15725   # with a dollar sign (not a hyphen), so the echo should work correctly.
15726   lt_compile=`echo "$ac_compile" | $SED \
15727   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15728   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15729   -e 's:$: $lt_compiler_flag:'`
15730   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15731   (eval "$lt_compile" 2>out/conftest.err)
15732   ac_status=$?
15733   cat out/conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15736   then
15737     # The compiler can only warn and ignore the option if not recognized
15738     # So say no if there are warnings
15739     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15740     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15741     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15742       lt_cv_prog_compiler_c_o_CXX=yes
15743     fi
15744   fi
15745   chmod u+w . 2>&5
15746   $RM conftest*
15747   # SGI C++ compiler will create directory out/ii_files/ for
15748   # template instantiation
15749   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15750   $RM out/* && rmdir out
15751   cd ..
15752   $RM -r conftest
15753   $RM conftest*
15754
15755fi
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15757$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15758
15759
15760
15761
15762hard_links=nottested
15763if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15764  # do not overwrite the value of need_locks provided by the user
15765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15766$as_echo_n "checking if we can lock with hard links... " >&6; }
15767  hard_links=yes
15768  $RM conftest*
15769  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15770  touch conftest.a
15771  ln conftest.a conftest.b 2>&5 || hard_links=no
15772  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15774$as_echo "$hard_links" >&6; }
15775  if test no = "$hard_links"; then
15776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15777$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15778    need_locks=warn
15779  fi
15780else
15781  need_locks=no
15782fi
15783
15784
15785
15786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15787$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15788
15789  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15790  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15791  case $host_os in
15792  aix[4-9]*)
15793    # If we're using GNU nm, then we don't want the "-C" option.
15794    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15795    # Without the "-l" option, or with the "-B" option, AIX nm treats
15796    # weak defined symbols like other global defined symbols, whereas
15797    # GNU nm marks them as "W".
15798    # While the 'weak' keyword is ignored in the Export File, we need
15799    # it in the Import File for the 'aix-soname' feature, so we have
15800    # to replace the "-B" option with "-P" for AIX nm.
15801    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15802      export_symbols_cmds_CXX='$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'
15803    else
15804      export_symbols_cmds_CXX='`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'
15805    fi
15806    ;;
15807  pw32*)
15808    export_symbols_cmds_CXX=$ltdll_cmds
15809    ;;
15810  cygwin* | mingw* | cegcc*)
15811    case $cc_basename in
15812    cl*)
15813      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15814      ;;
15815    *)
15816      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15817      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15818      ;;
15819    esac
15820    ;;
15821  *)
15822    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15823    ;;
15824  esac
15825
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15827$as_echo "$ld_shlibs_CXX" >&6; }
15828test no = "$ld_shlibs_CXX" && can_build_shared=no
15829
15830with_gnu_ld_CXX=$with_gnu_ld
15831
15832
15833
15834
15835
15836
15837#
15838# Do we need to explicitly link libc?
15839#
15840case "x$archive_cmds_need_lc_CXX" in
15841x|xyes)
15842  # Assume -lc should be added
15843  archive_cmds_need_lc_CXX=yes
15844
15845  if test yes,yes = "$GCC,$enable_shared"; then
15846    case $archive_cmds_CXX in
15847    *'~'*)
15848      # FIXME: we may have to deal with multi-command sequences.
15849      ;;
15850    '$CC '*)
15851      # Test whether the compiler implicitly links with -lc since on some
15852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15853      # to ld, don't add -lc before -lgcc.
15854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15856if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15857  $as_echo_n "(cached) " >&6
15858else
15859  $RM conftest*
15860	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15861
15862	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15863  (eval $ac_compile) 2>&5
15864  ac_status=$?
15865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866  test $ac_status = 0; } 2>conftest.err; then
15867	  soname=conftest
15868	  lib=conftest
15869	  libobjs=conftest.$ac_objext
15870	  deplibs=
15871	  wl=$lt_prog_compiler_wl_CXX
15872	  pic_flag=$lt_prog_compiler_pic_CXX
15873	  compiler_flags=-v
15874	  linker_flags=-v
15875	  verstring=
15876	  output_objdir=.
15877	  libname=conftest
15878	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15879	  allow_undefined_flag_CXX=
15880	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15881  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15882  ac_status=$?
15883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15884  test $ac_status = 0; }
15885	  then
15886	    lt_cv_archive_cmds_need_lc_CXX=no
15887	  else
15888	    lt_cv_archive_cmds_need_lc_CXX=yes
15889	  fi
15890	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15891	else
15892	  cat conftest.err 1>&5
15893	fi
15894	$RM conftest*
15895
15896fi
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15898$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15899      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15900      ;;
15901    esac
15902  fi
15903  ;;
15904esac
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15968$as_echo_n "checking dynamic linker characteristics... " >&6; }
15969
15970library_names_spec=
15971libname_spec='lib$name'
15972soname_spec=
15973shrext_cmds=.so
15974postinstall_cmds=
15975postuninstall_cmds=
15976finish_cmds=
15977finish_eval=
15978shlibpath_var=
15979shlibpath_overrides_runpath=unknown
15980version_type=none
15981dynamic_linker="$host_os ld.so"
15982sys_lib_dlsearch_path_spec="/lib /usr/lib"
15983need_lib_prefix=unknown
15984hardcode_into_libs=no
15985
15986# when you set need_version to no, make sure it does not cause -set_version
15987# flags to be left without arguments
15988need_version=unknown
15989
15990case $host_os in
15991aix3*)
15992  version_type=linux # correct to gnu/linux during the next big refactor
15993  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15994  shlibpath_var=LIBPATH
15995
15996  # AIX 3 has no versioning support, so we append a major version to the name.
15997  soname_spec='$libname$release$shared_ext$major'
15998  ;;
15999
16000aix[4-9]*)
16001  version_type=linux # correct to gnu/linux during the next big refactor
16002  need_lib_prefix=no
16003  need_version=no
16004  hardcode_into_libs=yes
16005  if test ia64 = "$host_cpu"; then
16006    # AIX 5 supports IA64
16007    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16008    shlibpath_var=LD_LIBRARY_PATH
16009  else
16010    # With GCC up to 2.95.x, collect2 would create an import file
16011    # for dependence libraries.  The import file would start with
16012    # the line '#! .'.  This would cause the generated library to
16013    # depend on '.', always an invalid library.  This was fixed in
16014    # development snapshots of GCC prior to 3.0.
16015    case $host_os in
16016      aix4 | aix4.[01] | aix4.[01].*)
16017      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16018	   echo ' yes '
16019	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16020	:
16021      else
16022	can_build_shared=no
16023      fi
16024      ;;
16025    esac
16026    # Using Import Files as archive members, it is possible to support
16027    # filename-based versioning of shared library archives on AIX. While
16028    # this would work for both with and without runtime linking, it will
16029    # prevent static linking of such archives. So we do filename-based
16030    # shared library versioning with .so extension only, which is used
16031    # when both runtime linking and shared linking is enabled.
16032    # Unfortunately, runtime linking may impact performance, so we do
16033    # not want this to be the default eventually. Also, we use the
16034    # versioned .so libs for executables only if there is the -brtl
16035    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16036    # To allow for filename-based versioning support, we need to create
16037    # libNAME.so.V as an archive file, containing:
16038    # *) an Import File, referring to the versioned filename of the
16039    #    archive as well as the shared archive member, telling the
16040    #    bitwidth (32 or 64) of that shared object, and providing the
16041    #    list of exported symbols of that shared object, eventually
16042    #    decorated with the 'weak' keyword
16043    # *) the shared object with the F_LOADONLY flag set, to really avoid
16044    #    it being seen by the linker.
16045    # At run time we better use the real file rather than another symlink,
16046    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16047
16048    case $with_aix_soname,$aix_use_runtimelinking in
16049    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16050    # soname into executable. Probably we can add versioning support to
16051    # collect2, so additional links can be useful in future.
16052    aix,yes) # traditional libtool
16053      dynamic_linker='AIX unversionable lib.so'
16054      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16055      # instead of lib<name>.a to let people know that these are not
16056      # typical AIX shared libraries.
16057      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16058      ;;
16059    aix,no) # traditional AIX only
16060      dynamic_linker='AIX lib.a(lib.so.V)'
16061      # We preserve .a as extension for shared libraries through AIX4.2
16062      # and later when we are not doing run time linking.
16063      library_names_spec='$libname$release.a $libname.a'
16064      soname_spec='$libname$release$shared_ext$major'
16065      ;;
16066    svr4,*) # full svr4 only
16067      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16068      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16069      # We do not specify a path in Import Files, so LIBPATH fires.
16070      shlibpath_overrides_runpath=yes
16071      ;;
16072    *,yes) # both, prefer svr4
16073      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16074      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16075      # unpreferred sharedlib libNAME.a needs extra handling
16076      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"'
16077      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"'
16078      # We do not specify a path in Import Files, so LIBPATH fires.
16079      shlibpath_overrides_runpath=yes
16080      ;;
16081    *,no) # both, prefer aix
16082      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16083      library_names_spec='$libname$release.a $libname.a'
16084      soname_spec='$libname$release$shared_ext$major'
16085      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16086      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)'
16087      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"'
16088      ;;
16089    esac
16090    shlibpath_var=LIBPATH
16091  fi
16092  ;;
16093
16094amigaos*)
16095  case $host_cpu in
16096  powerpc)
16097    # Since July 2007 AmigaOS4 officially supports .so libraries.
16098    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16099    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16100    ;;
16101  m68k)
16102    library_names_spec='$libname.ixlibrary $libname.a'
16103    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16104    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'
16105    ;;
16106  esac
16107  ;;
16108
16109beos*)
16110  library_names_spec='$libname$shared_ext'
16111  dynamic_linker="$host_os ld.so"
16112  shlibpath_var=LIBRARY_PATH
16113  ;;
16114
16115bsdi[45]*)
16116  version_type=linux # correct to gnu/linux during the next big refactor
16117  need_version=no
16118  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16119  soname_spec='$libname$release$shared_ext$major'
16120  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121  shlibpath_var=LD_LIBRARY_PATH
16122  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124  # the default ld.so.conf also contains /usr/contrib/lib and
16125  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126  # libtool to hard-code these into programs
16127  ;;
16128
16129cygwin* | mingw* | pw32* | cegcc*)
16130  version_type=windows
16131  shrext_cmds=.dll
16132  need_version=no
16133  need_lib_prefix=no
16134
16135  case $GCC,$cc_basename in
16136  yes,*)
16137    # gcc
16138    library_names_spec='$libname.dll.a'
16139    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16140    postinstall_cmds='base_file=`basename \$file`~
16141      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16142      dldir=$destdir/`dirname \$dlpath`~
16143      test -d \$dldir || mkdir -p \$dldir~
16144      $install_prog $dir/$dlname \$dldir/$dlname~
16145      chmod a+x \$dldir/$dlname~
16146      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16147        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16148      fi'
16149    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16150      dlpath=$dir/\$dldll~
16151       $RM \$dlpath'
16152    shlibpath_overrides_runpath=yes
16153
16154    case $host_os in
16155    cygwin*)
16156      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16157      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16158
16159      ;;
16160    mingw* | cegcc*)
16161      # MinGW DLLs use traditional 'lib' prefix
16162      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16163      ;;
16164    pw32*)
16165      # pw32 DLLs use 'pw' prefix rather than 'lib'
16166      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16167      ;;
16168    esac
16169    dynamic_linker='Win32 ld.exe'
16170    ;;
16171
16172  *,cl*)
16173    # Native MSVC
16174    libname_spec='$name'
16175    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16176    library_names_spec='$libname.dll.lib'
16177
16178    case $build_os in
16179    mingw*)
16180      sys_lib_search_path_spec=
16181      lt_save_ifs=$IFS
16182      IFS=';'
16183      for lt_path in $LIB
16184      do
16185        IFS=$lt_save_ifs
16186        # Let DOS variable expansion print the short 8.3 style file name.
16187        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16188        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16189      done
16190      IFS=$lt_save_ifs
16191      # Convert to MSYS style.
16192      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16193      ;;
16194    cygwin*)
16195      # Convert to unix form, then to dos form, then back to unix form
16196      # but this time dos style (no spaces!) so that the unix form looks
16197      # like /cygdrive/c/PROGRA~1:/cygdr...
16198      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16199      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16200      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16201      ;;
16202    *)
16203      sys_lib_search_path_spec=$LIB
16204      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16205        # It is most probably a Windows format PATH.
16206        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16207      else
16208        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16209      fi
16210      # FIXME: find the short name or the path components, as spaces are
16211      # common. (e.g. "Program Files" -> "PROGRA~1")
16212      ;;
16213    esac
16214
16215    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16216    postinstall_cmds='base_file=`basename \$file`~
16217      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16218      dldir=$destdir/`dirname \$dlpath`~
16219      test -d \$dldir || mkdir -p \$dldir~
16220      $install_prog $dir/$dlname \$dldir/$dlname'
16221    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16222      dlpath=$dir/\$dldll~
16223       $RM \$dlpath'
16224    shlibpath_overrides_runpath=yes
16225    dynamic_linker='Win32 link.exe'
16226    ;;
16227
16228  *)
16229    # Assume MSVC wrapper
16230    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16231    dynamic_linker='Win32 ld.exe'
16232    ;;
16233  esac
16234  # FIXME: first we should search . and the directory the executable is in
16235  shlibpath_var=PATH
16236  ;;
16237
16238darwin* | rhapsody*)
16239  dynamic_linker="$host_os dyld"
16240  version_type=darwin
16241  need_lib_prefix=no
16242  need_version=no
16243  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16244  soname_spec='$libname$release$major$shared_ext'
16245  shlibpath_overrides_runpath=yes
16246  shlibpath_var=DYLD_LIBRARY_PATH
16247  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16248
16249  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16250  ;;
16251
16252dgux*)
16253  version_type=linux # correct to gnu/linux during the next big refactor
16254  need_lib_prefix=no
16255  need_version=no
16256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16257  soname_spec='$libname$release$shared_ext$major'
16258  shlibpath_var=LD_LIBRARY_PATH
16259  ;;
16260
16261freebsd* | dragonfly*)
16262  # DragonFly does not have aout.  When/if they implement a new
16263  # versioning mechanism, adjust this.
16264  if test -x /usr/bin/objformat; then
16265    objformat=`/usr/bin/objformat`
16266  else
16267    case $host_os in
16268    freebsd[23].*) objformat=aout ;;
16269    *) objformat=elf ;;
16270    esac
16271  fi
16272  version_type=freebsd-$objformat
16273  case $version_type in
16274    freebsd-elf*)
16275      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16276      need_version=no
16277      need_lib_prefix=no
16278      ;;
16279    freebsd-*)
16280      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16281      need_version=yes
16282      ;;
16283  esac
16284  shlibpath_var=LD_LIBRARY_PATH
16285  case $host_os in
16286  freebsd2.*)
16287    shlibpath_overrides_runpath=yes
16288    ;;
16289  freebsd3.[01]* | freebsdelf3.[01]*)
16290    shlibpath_overrides_runpath=yes
16291    hardcode_into_libs=yes
16292    ;;
16293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16295    shlibpath_overrides_runpath=no
16296    hardcode_into_libs=yes
16297    ;;
16298  *) # from 4.6 on, and DragonFly
16299    shlibpath_overrides_runpath=yes
16300    hardcode_into_libs=yes
16301    ;;
16302  esac
16303  ;;
16304
16305haiku*)
16306  version_type=linux # correct to gnu/linux during the next big refactor
16307  need_lib_prefix=no
16308  need_version=no
16309  dynamic_linker="$host_os runtime_loader"
16310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16311  soname_spec='$libname$release$shared_ext$major'
16312  shlibpath_var=LIBRARY_PATH
16313  shlibpath_overrides_runpath=no
16314  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16315  hardcode_into_libs=yes
16316  ;;
16317
16318hpux9* | hpux10* | hpux11*)
16319  # Give a soname corresponding to the major version so that dld.sl refuses to
16320  # link against other versions.
16321  version_type=sunos
16322  need_lib_prefix=no
16323  need_version=no
16324  case $host_cpu in
16325  ia64*)
16326    shrext_cmds='.so'
16327    hardcode_into_libs=yes
16328    dynamic_linker="$host_os dld.so"
16329    shlibpath_var=LD_LIBRARY_PATH
16330    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16332    soname_spec='$libname$release$shared_ext$major'
16333    if test 32 = "$HPUX_IA64_MODE"; then
16334      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16335    else
16336      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16337    fi
16338    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16339    ;;
16340  hppa*64*)
16341    shrext_cmds='.sl'
16342    hardcode_into_libs=yes
16343    dynamic_linker="$host_os dld.sl"
16344    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16347    soname_spec='$libname$release$shared_ext$major'
16348    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16350    ;;
16351  *)
16352    shrext_cmds='.sl'
16353    dynamic_linker="$host_os dld.sl"
16354    shlibpath_var=SHLIB_PATH
16355    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16357    soname_spec='$libname$release$shared_ext$major'
16358    ;;
16359  esac
16360  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16361  postinstall_cmds='chmod 555 $lib'
16362  # or fails outright, so override atomically:
16363  install_override_mode=555
16364  ;;
16365
16366interix[3-9]*)
16367  version_type=linux # correct to gnu/linux during the next big refactor
16368  need_lib_prefix=no
16369  need_version=no
16370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371  soname_spec='$libname$release$shared_ext$major'
16372  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16373  shlibpath_var=LD_LIBRARY_PATH
16374  shlibpath_overrides_runpath=no
16375  hardcode_into_libs=yes
16376  ;;
16377
16378irix5* | irix6* | nonstopux*)
16379  case $host_os in
16380    nonstopux*) version_type=nonstopux ;;
16381    *)
16382	if test yes = "$lt_cv_prog_gnu_ld"; then
16383		version_type=linux # correct to gnu/linux during the next big refactor
16384	else
16385		version_type=irix
16386	fi ;;
16387  esac
16388  need_lib_prefix=no
16389  need_version=no
16390  soname_spec='$libname$release$shared_ext$major'
16391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16392  case $host_os in
16393  irix5* | nonstopux*)
16394    libsuff= shlibsuff=
16395    ;;
16396  *)
16397    case $LD in # libtool.m4 will add one of these switches to LD
16398    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16399      libsuff= shlibsuff= libmagic=32-bit;;
16400    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16401      libsuff=32 shlibsuff=N32 libmagic=N32;;
16402    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16403      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16404    *) libsuff= shlibsuff= libmagic=never-match;;
16405    esac
16406    ;;
16407  esac
16408  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16409  shlibpath_overrides_runpath=no
16410  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16411  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16412  hardcode_into_libs=yes
16413  ;;
16414
16415# No shared lib support for Linux oldld, aout, or coff.
16416linux*oldld* | linux*aout* | linux*coff*)
16417  dynamic_linker=no
16418  ;;
16419
16420linux*android*)
16421  version_type=none # Android doesn't support versioned libraries.
16422  need_lib_prefix=no
16423  need_version=no
16424  library_names_spec='$libname$release$shared_ext'
16425  soname_spec='$libname$release$shared_ext'
16426  finish_cmds=
16427  shlibpath_var=LD_LIBRARY_PATH
16428  shlibpath_overrides_runpath=yes
16429
16430  # This implies no fast_install, which is unacceptable.
16431  # Some rework will be needed to allow for fast_install
16432  # before this can be enabled.
16433  hardcode_into_libs=yes
16434
16435  dynamic_linker='Android linker'
16436  # Don't embed -rpath directories since the linker doesn't support them.
16437  hardcode_libdir_flag_spec_CXX='-L$libdir'
16438  ;;
16439
16440# This must be glibc/ELF.
16441linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16442  version_type=linux # correct to gnu/linux during the next big refactor
16443  need_lib_prefix=no
16444  need_version=no
16445  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16446  soname_spec='$libname$release$shared_ext$major'
16447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16448  shlibpath_var=LD_LIBRARY_PATH
16449  shlibpath_overrides_runpath=no
16450
16451  # Some binutils ld are patched to set DT_RUNPATH
16452  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16453  $as_echo_n "(cached) " >&6
16454else
16455  lt_cv_shlibpath_overrides_runpath=no
16456    save_LDFLAGS=$LDFLAGS
16457    save_libdir=$libdir
16458    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16459	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461/* end confdefs.h.  */
16462
16463int
16464main ()
16465{
16466
16467  ;
16468  return 0;
16469}
16470_ACEOF
16471if ac_fn_cxx_try_link "$LINENO"; then :
16472  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16473  lt_cv_shlibpath_overrides_runpath=yes
16474fi
16475fi
16476rm -f core conftest.err conftest.$ac_objext \
16477    conftest$ac_exeext conftest.$ac_ext
16478    LDFLAGS=$save_LDFLAGS
16479    libdir=$save_libdir
16480
16481fi
16482
16483  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16484
16485  # This implies no fast_install, which is unacceptable.
16486  # Some rework will be needed to allow for fast_install
16487  # before this can be enabled.
16488  hardcode_into_libs=yes
16489
16490  # Append ld.so.conf contents to the search path
16491  if test -f /etc/ld.so.conf; then
16492    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' ' '`
16493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16494  fi
16495
16496  # We used to test for /lib/ld.so.1 and disable shared libraries on
16497  # powerpc, because MkLinux only supported shared libraries with the
16498  # GNU dynamic linker.  Since this was broken with cross compilers,
16499  # most powerpc-linux boxes support dynamic linking these days and
16500  # people can always --disable-shared, the test was removed, and we
16501  # assume the GNU/Linux dynamic linker is in use.
16502  dynamic_linker='GNU/Linux ld.so'
16503  ;;
16504
16505netbsd*)
16506  version_type=sunos
16507  need_lib_prefix=no
16508  need_version=no
16509  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16510    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16511    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16512    dynamic_linker='NetBSD (a.out) ld.so'
16513  else
16514    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16515    soname_spec='$libname$release$shared_ext$major'
16516    dynamic_linker='NetBSD ld.elf_so'
16517  fi
16518  shlibpath_var=LD_LIBRARY_PATH
16519  shlibpath_overrides_runpath=yes
16520  hardcode_into_libs=yes
16521  ;;
16522
16523newsos6)
16524  version_type=linux # correct to gnu/linux during the next big refactor
16525  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16526  shlibpath_var=LD_LIBRARY_PATH
16527  shlibpath_overrides_runpath=yes
16528  ;;
16529
16530*nto* | *qnx*)
16531  version_type=qnx
16532  need_lib_prefix=no
16533  need_version=no
16534  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16535  soname_spec='$libname$release$shared_ext$major'
16536  shlibpath_var=LD_LIBRARY_PATH
16537  shlibpath_overrides_runpath=no
16538  hardcode_into_libs=yes
16539  dynamic_linker='ldqnx.so'
16540  ;;
16541
16542openbsd* | bitrig*)
16543  version_type=sunos
16544  sys_lib_dlsearch_path_spec=/usr/lib
16545  need_lib_prefix=no
16546  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16547    need_version=no
16548  else
16549    need_version=yes
16550  fi
16551  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16553  shlibpath_var=LD_LIBRARY_PATH
16554  shlibpath_overrides_runpath=yes
16555  ;;
16556
16557os2*)
16558  libname_spec='$name'
16559  version_type=windows
16560  shrext_cmds=.dll
16561  need_version=no
16562  need_lib_prefix=no
16563  # OS/2 can only load a DLL with a base name of 8 characters or less.
16564  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16565    v=$($ECHO $release$versuffix | tr -d .-);
16566    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16567    $ECHO $n$v`$shared_ext'
16568  library_names_spec='${libname}_dll.$libext'
16569  dynamic_linker='OS/2 ld.exe'
16570  shlibpath_var=BEGINLIBPATH
16571  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16572  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16573  postinstall_cmds='base_file=`basename \$file`~
16574    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16575    dldir=$destdir/`dirname \$dlpath`~
16576    test -d \$dldir || mkdir -p \$dldir~
16577    $install_prog $dir/$dlname \$dldir/$dlname~
16578    chmod a+x \$dldir/$dlname~
16579    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16580      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16581    fi'
16582  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16583    dlpath=$dir/\$dldll~
16584    $RM \$dlpath'
16585  ;;
16586
16587osf3* | osf4* | osf5*)
16588  version_type=osf
16589  need_lib_prefix=no
16590  need_version=no
16591  soname_spec='$libname$release$shared_ext$major'
16592  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16593  shlibpath_var=LD_LIBRARY_PATH
16594  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16595  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16596  ;;
16597
16598rdos*)
16599  dynamic_linker=no
16600  ;;
16601
16602solaris*)
16603  version_type=linux # correct to gnu/linux during the next big refactor
16604  need_lib_prefix=no
16605  need_version=no
16606  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16607  soname_spec='$libname$release$shared_ext$major'
16608  shlibpath_var=LD_LIBRARY_PATH
16609  shlibpath_overrides_runpath=yes
16610  hardcode_into_libs=yes
16611  # ldd complains unless libraries are executable
16612  postinstall_cmds='chmod +x $lib'
16613  ;;
16614
16615sunos4*)
16616  version_type=sunos
16617  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16618  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16619  shlibpath_var=LD_LIBRARY_PATH
16620  shlibpath_overrides_runpath=yes
16621  if test yes = "$with_gnu_ld"; then
16622    need_lib_prefix=no
16623  fi
16624  need_version=yes
16625  ;;
16626
16627sysv4 | sysv4.3*)
16628  version_type=linux # correct to gnu/linux during the next big refactor
16629  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16630  soname_spec='$libname$release$shared_ext$major'
16631  shlibpath_var=LD_LIBRARY_PATH
16632  case $host_vendor in
16633    sni)
16634      shlibpath_overrides_runpath=no
16635      need_lib_prefix=no
16636      runpath_var=LD_RUN_PATH
16637      ;;
16638    siemens)
16639      need_lib_prefix=no
16640      ;;
16641    motorola)
16642      need_lib_prefix=no
16643      need_version=no
16644      shlibpath_overrides_runpath=no
16645      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16646      ;;
16647  esac
16648  ;;
16649
16650sysv4*MP*)
16651  if test -d /usr/nec; then
16652    version_type=linux # correct to gnu/linux during the next big refactor
16653    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16654    soname_spec='$libname$shared_ext.$major'
16655    shlibpath_var=LD_LIBRARY_PATH
16656  fi
16657  ;;
16658
16659sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16660  version_type=sco
16661  need_lib_prefix=no
16662  need_version=no
16663  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16664  soname_spec='$libname$release$shared_ext$major'
16665  shlibpath_var=LD_LIBRARY_PATH
16666  shlibpath_overrides_runpath=yes
16667  hardcode_into_libs=yes
16668  if test yes = "$with_gnu_ld"; then
16669    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16670  else
16671    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16672    case $host_os in
16673      sco3.2v5*)
16674        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16675	;;
16676    esac
16677  fi
16678  sys_lib_dlsearch_path_spec='/usr/lib'
16679  ;;
16680
16681tpf*)
16682  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16683  version_type=linux # correct to gnu/linux during the next big refactor
16684  need_lib_prefix=no
16685  need_version=no
16686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16687  shlibpath_var=LD_LIBRARY_PATH
16688  shlibpath_overrides_runpath=no
16689  hardcode_into_libs=yes
16690  ;;
16691
16692uts4*)
16693  version_type=linux # correct to gnu/linux during the next big refactor
16694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16695  soname_spec='$libname$release$shared_ext$major'
16696  shlibpath_var=LD_LIBRARY_PATH
16697  ;;
16698
16699*)
16700  dynamic_linker=no
16701  ;;
16702esac
16703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16704$as_echo "$dynamic_linker" >&6; }
16705test no = "$dynamic_linker" && can_build_shared=no
16706
16707variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16708if test yes = "$GCC"; then
16709  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16710fi
16711
16712if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16713  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16714fi
16715if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16716  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16717fi
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16757$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16758hardcode_action_CXX=
16759if test -n "$hardcode_libdir_flag_spec_CXX" ||
16760   test -n "$runpath_var_CXX" ||
16761   test yes = "$hardcode_automatic_CXX"; then
16762
16763  # We can hardcode non-existent directories.
16764  if test no != "$hardcode_direct_CXX" &&
16765     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16766     # have to relink, otherwise we might link with an installed library
16767     # when we should be linking with a yet-to-be-installed one
16768     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16769     test no != "$hardcode_minus_L_CXX"; then
16770    # Linking always hardcodes the temporary library directory.
16771    hardcode_action_CXX=relink
16772  else
16773    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16774    hardcode_action_CXX=immediate
16775  fi
16776else
16777  # We cannot hardcode anything, or else we can only hardcode existing
16778  # directories.
16779  hardcode_action_CXX=unsupported
16780fi
16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16782$as_echo "$hardcode_action_CXX" >&6; }
16783
16784if test relink = "$hardcode_action_CXX" ||
16785   test yes = "$inherit_rpath_CXX"; then
16786  # Fast installation is not supported
16787  enable_fast_install=no
16788elif test yes = "$shlibpath_overrides_runpath" ||
16789     test no = "$enable_shared"; then
16790  # Fast installation is not necessary
16791  enable_fast_install=needless
16792fi
16793
16794
16795
16796
16797
16798
16799
16800  fi # test -n "$compiler"
16801
16802  CC=$lt_save_CC
16803  CFLAGS=$lt_save_CFLAGS
16804  LDCXX=$LD
16805  LD=$lt_save_LD
16806  GCC=$lt_save_GCC
16807  with_gnu_ld=$lt_save_with_gnu_ld
16808  lt_cv_path_LDCXX=$lt_cv_path_LD
16809  lt_cv_path_LD=$lt_save_path_LD
16810  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16811  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16812fi # test yes != "$_lt_caught_CXX_error"
16813
16814ac_ext=c
16815ac_cpp='$CPP $CPPFLAGS'
16816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16818ac_compiler_gnu=$ac_cv_c_compiler_gnu
16819
16820
16821
16822# Enable support for silent build rules
16823# Check whether --enable-silent-rules was given.
16824if test "${enable_silent_rules+set}" = set; then :
16825  enableval=$enable_silent_rules;
16826fi
16827
16828case $enable_silent_rules in # (((
16829  yes) AM_DEFAULT_VERBOSITY=0;;
16830   no) AM_DEFAULT_VERBOSITY=1;;
16831    *) AM_DEFAULT_VERBOSITY=1;;
16832esac
16833am_make=${MAKE-make}
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16835$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16836if ${am_cv_make_support_nested_variables+:} false; then :
16837  $as_echo_n "(cached) " >&6
16838else
16839  if $as_echo 'TRUE=$(BAR$(V))
16840BAR0=false
16841BAR1=true
16842V=1
16843am__doit:
16844	@$(TRUE)
16845.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16846  am_cv_make_support_nested_variables=yes
16847else
16848  am_cv_make_support_nested_variables=no
16849fi
16850fi
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16852$as_echo "$am_cv_make_support_nested_variables" >&6; }
16853if test $am_cv_make_support_nested_variables = yes; then
16854    AM_V='$(V)'
16855  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16856else
16857  AM_V=$AM_DEFAULT_VERBOSITY
16858  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16859fi
16860AM_BACKSLASH='\'
16861
16862
16863tiff_libs_private=
16864
16865
16866case "${host_os}" in
16867    cygwin* | mingw32* | beos* | darwin*)
16868        ;;
16869    *)
16870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16871$as_echo_n "checking for sin in -lm... " >&6; }
16872if ${ac_cv_lib_m_sin+:} false; then :
16873  $as_echo_n "(cached) " >&6
16874else
16875  ac_check_lib_save_LIBS=$LIBS
16876LIBS="-lm  $LIBS"
16877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878/* end confdefs.h.  */
16879
16880/* Override any GCC internal prototype to avoid an error.
16881   Use char because int might match the return type of a GCC
16882   builtin and then its argument prototype would still apply.  */
16883#ifdef __cplusplus
16884extern "C"
16885#endif
16886char sin ();
16887int
16888main ()
16889{
16890return sin ();
16891  ;
16892  return 0;
16893}
16894_ACEOF
16895if ac_fn_c_try_link "$LINENO"; then :
16896  ac_cv_lib_m_sin=yes
16897else
16898  ac_cv_lib_m_sin=no
16899fi
16900rm -f core conftest.err conftest.$ac_objext \
16901    conftest$ac_exeext conftest.$ac_ext
16902LIBS=$ac_check_lib_save_LIBS
16903fi
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16905$as_echo "$ac_cv_lib_m_sin" >&6; }
16906if test "x$ac_cv_lib_m_sin" = xyes; then :
16907  libm_lib=yes
16908else
16909  libm_lib=no
16910fi
16911
16912	if test "x$libm_lib" = "xyes" ; then
16913	  LIBS="-lm $LIBS"
16914	  tiff_libs_private="-lm ${tiff_libs_private}"
16915	fi
16916        ;;
16917esac
16918
16919for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16920do :
16921  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16924  cat >>confdefs.h <<_ACEOF
16925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16926_ACEOF
16927
16928fi
16929
16930done
16931
16932
16933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16934$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16935if ${ac_cv_c_const+:} false; then :
16936  $as_echo_n "(cached) " >&6
16937else
16938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940
16941int
16942main ()
16943{
16944
16945#ifndef __cplusplus
16946  /* Ultrix mips cc rejects this sort of thing.  */
16947  typedef int charset[2];
16948  const charset cs = { 0, 0 };
16949  /* SunOS 4.1.1 cc rejects this.  */
16950  char const *const *pcpcc;
16951  char **ppc;
16952  /* NEC SVR4.0.2 mips cc rejects this.  */
16953  struct point {int x, y;};
16954  static struct point const zero = {0,0};
16955  /* AIX XL C 1.02.0.0 rejects this.
16956     It does not let you subtract one const X* pointer from another in
16957     an arm of an if-expression whose if-part is not a constant
16958     expression */
16959  const char *g = "string";
16960  pcpcc = &g + (g ? g-g : 0);
16961  /* HPUX 7.0 cc rejects these. */
16962  ++pcpcc;
16963  ppc = (char**) pcpcc;
16964  pcpcc = (char const *const *) ppc;
16965  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16966    char tx;
16967    char *t = &tx;
16968    char const *s = 0 ? (char *) 0 : (char const *) 0;
16969
16970    *t++ = 0;
16971    if (s) return 0;
16972  }
16973  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16974    int x[] = {25, 17};
16975    const int *foo = &x[0];
16976    ++foo;
16977  }
16978  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16979    typedef const int *iptr;
16980    iptr p = 0;
16981    ++p;
16982  }
16983  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16984       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16985    struct s { int j; const int *ap[3]; } bx;
16986    struct s *b = &bx; b->j = 5;
16987  }
16988  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16989    const int foo = 10;
16990    if (!foo) return 0;
16991  }
16992  return !cs[0] && !zero.x;
16993#endif
16994
16995  ;
16996  return 0;
16997}
16998_ACEOF
16999if ac_fn_c_try_compile "$LINENO"; then :
17000  ac_cv_c_const=yes
17001else
17002  ac_cv_c_const=no
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005fi
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17007$as_echo "$ac_cv_c_const" >&6; }
17008if test $ac_cv_c_const = no; then
17009
17010$as_echo "#define const /**/" >>confdefs.h
17011
17012fi
17013
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17015$as_echo_n "checking for inline... " >&6; }
17016if ${ac_cv_c_inline+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  ac_cv_c_inline=no
17020for ac_kw in inline __inline__ __inline; do
17021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022/* end confdefs.h.  */
17023#ifndef __cplusplus
17024typedef int foo_t;
17025static $ac_kw foo_t static_foo () {return 0; }
17026$ac_kw foo_t foo () {return 0; }
17027#endif
17028
17029_ACEOF
17030if ac_fn_c_try_compile "$LINENO"; then :
17031  ac_cv_c_inline=$ac_kw
17032fi
17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034  test "$ac_cv_c_inline" != no && break
17035done
17036
17037fi
17038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17039$as_echo "$ac_cv_c_inline" >&6; }
17040
17041case $ac_cv_c_inline in
17042  inline | yes) ;;
17043  *)
17044    case $ac_cv_c_inline in
17045      no) ac_val=;;
17046      *) ac_val=$ac_cv_c_inline;;
17047    esac
17048    cat >>confdefs.h <<_ACEOF
17049#ifndef __cplusplus
17050#define inline $ac_val
17051#endif
17052_ACEOF
17053    ;;
17054esac
17055
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17057$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17058if ${ac_cv_c_bigendian+:} false; then :
17059  $as_echo_n "(cached) " >&6
17060else
17061  ac_cv_c_bigendian=unknown
17062    # See if we're dealing with a universal compiler.
17063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064/* end confdefs.h.  */
17065#ifndef __APPLE_CC__
17066	       not a universal capable compiler
17067	     #endif
17068	     typedef int dummy;
17069
17070_ACEOF
17071if ac_fn_c_try_compile "$LINENO"; then :
17072
17073	# Check for potential -arch flags.  It is not universal unless
17074	# there are at least two -arch flags with different values.
17075	ac_arch=
17076	ac_prev=
17077	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17078	 if test -n "$ac_prev"; then
17079	   case $ac_word in
17080	     i?86 | x86_64 | ppc | ppc64)
17081	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17082		 ac_arch=$ac_word
17083	       else
17084		 ac_cv_c_bigendian=universal
17085		 break
17086	       fi
17087	       ;;
17088	   esac
17089	   ac_prev=
17090	 elif test "x$ac_word" = "x-arch"; then
17091	   ac_prev=arch
17092	 fi
17093       done
17094fi
17095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096    if test $ac_cv_c_bigendian = unknown; then
17097      # See if sys/param.h defines the BYTE_ORDER macro.
17098      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h.  */
17100#include <sys/types.h>
17101	     #include <sys/param.h>
17102
17103int
17104main ()
17105{
17106#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17107		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17108		     && LITTLE_ENDIAN)
17109	      bogus endian macros
17110	     #endif
17111
17112  ;
17113  return 0;
17114}
17115_ACEOF
17116if ac_fn_c_try_compile "$LINENO"; then :
17117  # It does; now see whether it defined to BIG_ENDIAN or not.
17118	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120#include <sys/types.h>
17121		#include <sys/param.h>
17122
17123int
17124main ()
17125{
17126#if BYTE_ORDER != BIG_ENDIAN
17127		 not big endian
17128		#endif
17129
17130  ;
17131  return 0;
17132}
17133_ACEOF
17134if ac_fn_c_try_compile "$LINENO"; then :
17135  ac_cv_c_bigendian=yes
17136else
17137  ac_cv_c_bigendian=no
17138fi
17139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140fi
17141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17142    fi
17143    if test $ac_cv_c_bigendian = unknown; then
17144      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146/* end confdefs.h.  */
17147#include <limits.h>
17148
17149int
17150main ()
17151{
17152#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17153	      bogus endian macros
17154	     #endif
17155
17156  ;
17157  return 0;
17158}
17159_ACEOF
17160if ac_fn_c_try_compile "$LINENO"; then :
17161  # It does; now see whether it defined to _BIG_ENDIAN or not.
17162	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h.  */
17164#include <limits.h>
17165
17166int
17167main ()
17168{
17169#ifndef _BIG_ENDIAN
17170		 not big endian
17171		#endif
17172
17173  ;
17174  return 0;
17175}
17176_ACEOF
17177if ac_fn_c_try_compile "$LINENO"; then :
17178  ac_cv_c_bigendian=yes
17179else
17180  ac_cv_c_bigendian=no
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183fi
17184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185    fi
17186    if test $ac_cv_c_bigendian = unknown; then
17187      # Compile a test program.
17188      if test "$cross_compiling" = yes; then :
17189  # Try to guess by grepping values from an object file.
17190	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h.  */
17192short int ascii_mm[] =
17193		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17194		short int ascii_ii[] =
17195		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17196		int use_ascii (int i) {
17197		  return ascii_mm[i] + ascii_ii[i];
17198		}
17199		short int ebcdic_ii[] =
17200		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17201		short int ebcdic_mm[] =
17202		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17203		int use_ebcdic (int i) {
17204		  return ebcdic_mm[i] + ebcdic_ii[i];
17205		}
17206		extern int foo;
17207
17208int
17209main ()
17210{
17211return use_ascii (foo) == use_ebcdic (foo);
17212  ;
17213  return 0;
17214}
17215_ACEOF
17216if ac_fn_c_try_compile "$LINENO"; then :
17217  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17218	      ac_cv_c_bigendian=yes
17219	    fi
17220	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17221	      if test "$ac_cv_c_bigendian" = unknown; then
17222		ac_cv_c_bigendian=no
17223	      else
17224		# finding both strings is unlikely to happen, but who knows?
17225		ac_cv_c_bigendian=unknown
17226	      fi
17227	    fi
17228fi
17229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230else
17231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232/* end confdefs.h.  */
17233$ac_includes_default
17234int
17235main ()
17236{
17237
17238	     /* Are we little or big endian?  From Harbison&Steele.  */
17239	     union
17240	     {
17241	       long int l;
17242	       char c[sizeof (long int)];
17243	     } u;
17244	     u.l = 1;
17245	     return u.c[sizeof (long int) - 1] == 1;
17246
17247  ;
17248  return 0;
17249}
17250_ACEOF
17251if ac_fn_c_try_run "$LINENO"; then :
17252  ac_cv_c_bigendian=no
17253else
17254  ac_cv_c_bigendian=yes
17255fi
17256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17257  conftest.$ac_objext conftest.beam conftest.$ac_ext
17258fi
17259
17260    fi
17261fi
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17263$as_echo "$ac_cv_c_bigendian" >&6; }
17264 case $ac_cv_c_bigendian in #(
17265   yes)
17266     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17267;; #(
17268   no)
17269      ;; #(
17270   universal)
17271
17272$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17273
17274     ;; #(
17275   *)
17276     as_fn_error $? "unknown endianness
17277 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17278 esac
17279
17280ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17281if test "x$ac_cv_type_off_t" = xyes; then :
17282
17283else
17284
17285cat >>confdefs.h <<_ACEOF
17286#define off_t long int
17287_ACEOF
17288
17289fi
17290
17291ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17292if test "x$ac_cv_type_size_t" = xyes; then :
17293
17294else
17295
17296cat >>confdefs.h <<_ACEOF
17297#define size_t unsigned int
17298_ACEOF
17299
17300fi
17301
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17303$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17304if ${ac_cv_header_time+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308/* end confdefs.h.  */
17309#include <sys/types.h>
17310#include <sys/time.h>
17311#include <time.h>
17312
17313int
17314main ()
17315{
17316if ((struct tm *) 0)
17317return 0;
17318  ;
17319  return 0;
17320}
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"; then :
17323  ac_cv_header_time=yes
17324else
17325  ac_cv_header_time=no
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328fi
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17330$as_echo "$ac_cv_header_time" >&6; }
17331if test $ac_cv_header_time = yes; then
17332
17333$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17334
17335fi
17336
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17338$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17339if ${ac_cv_struct_tm+:} false; then :
17340  $as_echo_n "(cached) " >&6
17341else
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344#include <sys/types.h>
17345#include <time.h>
17346
17347int
17348main ()
17349{
17350struct tm tm;
17351				     int *p = &tm.tm_sec;
17352				     return !p;
17353  ;
17354  return 0;
17355}
17356_ACEOF
17357if ac_fn_c_try_compile "$LINENO"; then :
17358  ac_cv_struct_tm=time.h
17359else
17360  ac_cv_struct_tm=sys/time.h
17361fi
17362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363fi
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17365$as_echo "$ac_cv_struct_tm" >&6; }
17366if test $ac_cv_struct_tm = sys/time.h; then
17367
17368$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17369
17370fi
17371
17372
17373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17374$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17375if ${ac_cv_sys_largefile_source+:} false; then :
17376  $as_echo_n "(cached) " >&6
17377else
17378  while :; do
17379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380/* end confdefs.h.  */
17381#include <sys/types.h> /* for off_t */
17382     #include <stdio.h>
17383int
17384main ()
17385{
17386int (*fp) (FILE *, off_t, int) = fseeko;
17387     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393  ac_cv_sys_largefile_source=no; break
17394fi
17395rm -f core conftest.err conftest.$ac_objext \
17396    conftest$ac_exeext conftest.$ac_ext
17397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398/* end confdefs.h.  */
17399#define _LARGEFILE_SOURCE 1
17400#include <sys/types.h> /* for off_t */
17401     #include <stdio.h>
17402int
17403main ()
17404{
17405int (*fp) (FILE *, off_t, int) = fseeko;
17406     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17407  ;
17408  return 0;
17409}
17410_ACEOF
17411if ac_fn_c_try_link "$LINENO"; then :
17412  ac_cv_sys_largefile_source=1; break
17413fi
17414rm -f core conftest.err conftest.$ac_objext \
17415    conftest$ac_exeext conftest.$ac_ext
17416  ac_cv_sys_largefile_source=unknown
17417  break
17418done
17419fi
17420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17421$as_echo "$ac_cv_sys_largefile_source" >&6; }
17422case $ac_cv_sys_largefile_source in #(
17423  no | unknown) ;;
17424  *)
17425cat >>confdefs.h <<_ACEOF
17426#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17427_ACEOF
17428;;
17429esac
17430rm -rf conftest*
17431
17432# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17433# in glibc 2.1.3, but that breaks too many other things.
17434# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17435if test $ac_cv_sys_largefile_source != unknown; then
17436
17437$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17438
17439fi
17440
17441
17442ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
17443if test "x$ac_cv_have_decl_optarg" = xyes; then :
17444  ac_have_decl=1
17445else
17446  ac_have_decl=0
17447fi
17448
17449cat >>confdefs.h <<_ACEOF
17450#define HAVE_DECL_OPTARG $ac_have_decl
17451_ACEOF
17452
17453
17454
17455# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
17456# The cast to long int works around a bug in the HP C Compiler
17457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17459# This bug is HP SR number 8606223364.
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
17461$as_echo_n "checking size of signed short... " >&6; }
17462if ${ac_cv_sizeof_signed_short+:} false; then :
17463  $as_echo_n "(cached) " >&6
17464else
17465  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
17466
17467else
17468  if test "$ac_cv_type_signed_short" = yes; then
17469     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17471as_fn_error 77 "cannot compute sizeof (signed short)
17472See \`config.log' for more details" "$LINENO" 5; }
17473   else
17474     ac_cv_sizeof_signed_short=0
17475   fi
17476fi
17477
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
17480$as_echo "$ac_cv_sizeof_signed_short" >&6; }
17481
17482
17483
17484cat >>confdefs.h <<_ACEOF
17485#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
17486_ACEOF
17487
17488
17489
17490# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
17491# The cast to long int works around a bug in the HP C Compiler
17492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17494# This bug is HP SR number 8606223364.
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
17496$as_echo_n "checking size of unsigned short... " >&6; }
17497if ${ac_cv_sizeof_unsigned_short+:} false; then :
17498  $as_echo_n "(cached) " >&6
17499else
17500  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
17501
17502else
17503  if test "$ac_cv_type_unsigned_short" = yes; then
17504     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17506as_fn_error 77 "cannot compute sizeof (unsigned short)
17507See \`config.log' for more details" "$LINENO" 5; }
17508   else
17509     ac_cv_sizeof_unsigned_short=0
17510   fi
17511fi
17512
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
17515$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
17516
17517
17518
17519cat >>confdefs.h <<_ACEOF
17520#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
17521_ACEOF
17522
17523
17524
17525# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
17526# The cast to long int works around a bug in the HP C Compiler
17527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17529# This bug is HP SR number 8606223364.
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
17531$as_echo_n "checking size of signed int... " >&6; }
17532if ${ac_cv_sizeof_signed_int+:} false; then :
17533  $as_echo_n "(cached) " >&6
17534else
17535  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
17536
17537else
17538  if test "$ac_cv_type_signed_int" = yes; then
17539     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17541as_fn_error 77 "cannot compute sizeof (signed int)
17542See \`config.log' for more details" "$LINENO" 5; }
17543   else
17544     ac_cv_sizeof_signed_int=0
17545   fi
17546fi
17547
17548fi
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
17550$as_echo "$ac_cv_sizeof_signed_int" >&6; }
17551
17552
17553
17554cat >>confdefs.h <<_ACEOF
17555#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
17556_ACEOF
17557
17558
17559
17560# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
17561# The cast to long int works around a bug in the HP C Compiler
17562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17564# This bug is HP SR number 8606223364.
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17566$as_echo_n "checking size of unsigned int... " >&6; }
17567if ${ac_cv_sizeof_unsigned_int+:} false; then :
17568  $as_echo_n "(cached) " >&6
17569else
17570  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17571
17572else
17573  if test "$ac_cv_type_unsigned_int" = yes; then
17574     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17576as_fn_error 77 "cannot compute sizeof (unsigned int)
17577See \`config.log' for more details" "$LINENO" 5; }
17578   else
17579     ac_cv_sizeof_unsigned_int=0
17580   fi
17581fi
17582
17583fi
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17585$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17586
17587
17588
17589cat >>confdefs.h <<_ACEOF
17590#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17591_ACEOF
17592
17593
17594
17595# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
17596# The cast to long int works around a bug in the HP C Compiler
17597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17599# This bug is HP SR number 8606223364.
17600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
17601$as_echo_n "checking size of signed long... " >&6; }
17602if ${ac_cv_sizeof_signed_long+:} false; then :
17603  $as_echo_n "(cached) " >&6
17604else
17605  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
17606
17607else
17608  if test "$ac_cv_type_signed_long" = yes; then
17609     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17611as_fn_error 77 "cannot compute sizeof (signed long)
17612See \`config.log' for more details" "$LINENO" 5; }
17613   else
17614     ac_cv_sizeof_signed_long=0
17615   fi
17616fi
17617
17618fi
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
17620$as_echo "$ac_cv_sizeof_signed_long" >&6; }
17621
17622
17623
17624cat >>confdefs.h <<_ACEOF
17625#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
17626_ACEOF
17627
17628
17629
17630# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
17631# The cast to long int works around a bug in the HP C Compiler
17632# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17633# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17634# This bug is HP SR number 8606223364.
17635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17636$as_echo_n "checking size of unsigned long... " >&6; }
17637if ${ac_cv_sizeof_unsigned_long+:} false; then :
17638  $as_echo_n "(cached) " >&6
17639else
17640  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
17641
17642else
17643  if test "$ac_cv_type_unsigned_long" = yes; then
17644     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17646as_fn_error 77 "cannot compute sizeof (unsigned long)
17647See \`config.log' for more details" "$LINENO" 5; }
17648   else
17649     ac_cv_sizeof_unsigned_long=0
17650   fi
17651fi
17652
17653fi
17654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17655$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17656
17657
17658
17659cat >>confdefs.h <<_ACEOF
17660#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17661_ACEOF
17662
17663
17664
17665# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
17666# If 'long long' is not supported then the value defined is zero.
17667# The cast to long int works around a bug in the HP C Compiler
17668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17670# This bug is HP SR number 8606223364.
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
17672$as_echo_n "checking size of signed long long... " >&6; }
17673if ${ac_cv_sizeof_signed_long_long+:} false; then :
17674  $as_echo_n "(cached) " >&6
17675else
17676  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
17677
17678else
17679  if test "$ac_cv_type_signed_long_long" = yes; then
17680     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17682as_fn_error 77 "cannot compute sizeof (signed long long)
17683See \`config.log' for more details" "$LINENO" 5; }
17684   else
17685     ac_cv_sizeof_signed_long_long=0
17686   fi
17687fi
17688
17689fi
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
17691$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
17692
17693
17694
17695cat >>confdefs.h <<_ACEOF
17696#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
17697_ACEOF
17698
17699
17700
17701# Obtain size of a 'unsigned long long' and define as
17702# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
17703# supported then the value defined is zero.
17704# The cast to long int works around a bug in the HP C Compiler
17705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17707# This bug is HP SR number 8606223364.
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
17709$as_echo_n "checking size of unsigned long long... " >&6; }
17710if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
17711  $as_echo_n "(cached) " >&6
17712else
17713  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
17714
17715else
17716  if test "$ac_cv_type_unsigned_long_long" = yes; then
17717     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17719as_fn_error 77 "cannot compute sizeof (unsigned long long)
17720See \`config.log' for more details" "$LINENO" 5; }
17721   else
17722     ac_cv_sizeof_unsigned_long_long=0
17723   fi
17724fi
17725
17726fi
17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
17728$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
17729
17730
17731
17732cat >>confdefs.h <<_ACEOF
17733#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17734_ACEOF
17735
17736
17737
17738# Obtain the size of an 'unsigned char *' and define as
17739# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
17740# ac_cv_sizeof_unsigned_char_p.
17741# The cast to long int works around a bug in the HP C Compiler
17742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17744# This bug is HP SR number 8606223364.
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
17746$as_echo_n "checking size of unsigned char *... " >&6; }
17747if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
17748  $as_echo_n "(cached) " >&6
17749else
17750  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
17751
17752else
17753  if test "$ac_cv_type_unsigned_char_p" = yes; then
17754     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17756as_fn_error 77 "cannot compute sizeof (unsigned char *)
17757See \`config.log' for more details" "$LINENO" 5; }
17758   else
17759     ac_cv_sizeof_unsigned_char_p=0
17760   fi
17761fi
17762
17763fi
17764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
17765$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
17766
17767
17768
17769cat >>confdefs.h <<_ACEOF
17770#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
17771_ACEOF
17772
17773
17774
17775# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T.  Result is
17776# available in ac_cv_sizeof_size_t
17777# The cast to long int works around a bug in the HP C Compiler
17778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17780# This bug is HP SR number 8606223364.
17781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17782$as_echo_n "checking size of size_t... " >&6; }
17783if ${ac_cv_sizeof_size_t+:} false; then :
17784  $as_echo_n "(cached) " >&6
17785else
17786  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17787
17788else
17789  if test "$ac_cv_type_size_t" = yes; then
17790     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17792as_fn_error 77 "cannot compute sizeof (size_t)
17793See \`config.log' for more details" "$LINENO" 5; }
17794   else
17795     ac_cv_sizeof_size_t=0
17796   fi
17797fi
17798
17799fi
17800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17801$as_echo "$ac_cv_sizeof_size_t" >&6; }
17802
17803
17804
17805cat >>confdefs.h <<_ACEOF
17806#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17807_ACEOF
17808
17809
17810
17811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
17812$as_echo_n "checking for signed 8-bit type... " >&6; }
17813INT8_T='signed char'
17814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
17815$as_echo "$INT8_T" >&6; }
17816
17817cat >>confdefs.h <<_ACEOF
17818#define TIFF_INT8_T $INT8_T
17819_ACEOF
17820
17821
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
17823$as_echo_n "checking for unsigned 8-bit type... " >&6; }
17824UINT8_T='unsigned char'
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
17826$as_echo "$UINT8_T" >&6; }
17827
17828cat >>confdefs.h <<_ACEOF
17829#define TIFF_UINT8_T $UINT8_T
17830_ACEOF
17831
17832
17833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
17834$as_echo_n "checking for signed 16-bit type... " >&6; }
17835INT16_T='signed short'
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
17837$as_echo "$INT16_T" >&6; }
17838
17839cat >>confdefs.h <<_ACEOF
17840#define TIFF_INT16_T $INT16_T
17841_ACEOF
17842
17843
17844
17845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
17846$as_echo_n "checking for unsigned 16-bit type... " >&6; }
17847UINT16_T='unsigned short'
17848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
17849$as_echo "$UINT16_T" >&6; }
17850
17851cat >>confdefs.h <<_ACEOF
17852#define TIFF_UINT16_T $UINT16_T
17853_ACEOF
17854
17855
17856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
17857$as_echo_n "checking for signed 32-bit type... " >&6; }
17858INT32_T='none'
17859INT32_FORMAT='none'
17860if test $ac_cv_sizeof_signed_int -eq 4
17861then
17862  INT32_T='signed int'
17863  INT32_FORMAT='"%d"'
17864elif test $ac_cv_sizeof_signed_long -eq 4
17865then
17866  INT32_T='signed long'
17867  INT32_FORMAT='"%ld"'
17868fi
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
17870$as_echo "$INT32_T" >&6; }
17871
17872cat >>confdefs.h <<_ACEOF
17873#define TIFF_INT32_T $INT32_T
17874_ACEOF
17875
17876
17877cat >>confdefs.h <<_ACEOF
17878#define TIFF_INT32_FORMAT $INT32_FORMAT
17879_ACEOF
17880
17881
17882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
17883$as_echo_n "checking for unsigned 32-bit type... " >&6; }
17884UINT32_T='none'
17885UINT32_FORMAT='none'
17886if test $ac_cv_sizeof_unsigned_int -eq 4
17887then
17888  UINT32_T='unsigned int'
17889  UINT32_FORMAT='"%u"'
17890elif test $ac_cv_sizeof_unsigned_long -eq 4
17891then
17892  UINT32_T='unsigned long'
17893  UINT32_FORMAT='"%lu"'
17894fi
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17896$as_echo "$UINT32_T" >&6; }
17897
17898cat >>confdefs.h <<_ACEOF
17899#define TIFF_UINT32_T $UINT32_T
17900_ACEOF
17901
17902
17903cat >>confdefs.h <<_ACEOF
17904#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17905_ACEOF
17906
17907
17908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17909$as_echo_n "checking for signed 64-bit type... " >&6; }
17910INT64_T='none'
17911INT64_FORMAT='none'
17912if test $ac_cv_sizeof_signed_long -eq 8
17913then
17914  INT64_T='signed long'
17915  INT64_FORMAT='"%ld"'
17916elif test $ac_cv_sizeof_signed_long_long -eq 8
17917then
17918  INT64_T='signed long long'
17919  case "${host_os}" in
17920    mingw32*)
17921      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17922      INT64_FORMAT='"%I64d"'
17923      ;;
17924    *)
17925      INT64_FORMAT='"%lld"'
17926      ;;
17927  esac
17928fi
17929
17930
17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17932$as_echo "$INT64_T" >&6; }
17933
17934cat >>confdefs.h <<_ACEOF
17935#define TIFF_INT64_T $INT64_T
17936_ACEOF
17937
17938
17939cat >>confdefs.h <<_ACEOF
17940#define TIFF_INT64_FORMAT $INT64_FORMAT
17941_ACEOF
17942
17943
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17945$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17946UINT64_T='none'
17947UINT64_FORMAT='none'
17948if test $ac_cv_sizeof_unsigned_long -eq 8
17949then
17950  UINT64_T='unsigned long'
17951  UINT64_FORMAT='"%lu"'
17952elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17953then
17954  UINT64_T='unsigned long long'
17955  case "${host_os}" in
17956    mingw32*)
17957      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17958      UINT64_FORMAT='"%I64u"'
17959      ;;
17960    *)
17961      UINT64_FORMAT='"%llu"'
17962      ;;
17963  esac
17964fi
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17966$as_echo "$UINT64_T" >&6; }
17967
17968cat >>confdefs.h <<_ACEOF
17969#define TIFF_UINT64_T $UINT64_T
17970_ACEOF
17971
17972
17973cat >>confdefs.h <<_ACEOF
17974#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17975_ACEOF
17976
17977
17978# Determine formatting specifier for 'size_t'.  While the size should
17979# be precise, the type determined may not match the system definition.
17980# A named type is provided to allow casting to the type we determined
17981# without changing the actual size.
17982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'size_t' format specifier" >&5
17983$as_echo_n "checking for 'size_t' format specifier... " >&6; }
17984SIZE_T='unknown'
17985SIZE_FORMAT='unknown'
17986if test $ac_cv_sizeof_unsigned_int -eq $ac_cv_sizeof_size_t
17987then
17988  SIZE_T='unsigned int'
17989  SIZE_FORMAT='"%u"'
17990elif test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_size_t
17991then
17992  SIZE_T='unsigned long'
17993  SIZE_FORMAT='"%lu"'
17994elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_size_t
17995then
17996  SIZE_T='unsigned long long'
17997  case "${host_os}" in
17998    mingw32*)
17999      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
18000      SIZE_FORMAT='"%I64u"'
18001      ;;
18002    *)
18003      SIZE_FORMAT='"%llu"'
18004      ;;
18005  esac
18006fi
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIZE_FORMAT" >&5
18008$as_echo "$SIZE_FORMAT" >&6; }
18009
18010cat >>confdefs.h <<_ACEOF
18011#define TIFF_SIZE_T $SIZE_T
18012_ACEOF
18013
18014
18015cat >>confdefs.h <<_ACEOF
18016#define TIFF_SIZE_FORMAT $SIZE_FORMAT
18017_ACEOF
18018
18019
18020# Determine TIFF equivalent of ssize_t
18021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
18022$as_echo_n "checking for signed size type... " >&6; }
18023SSIZE_T='unknown'
18024SSIZE_FORMAT='unknown'
18025if test $ac_cv_sizeof_signed_int -eq $ac_cv_sizeof_unsigned_char_p
18026then
18027  SSIZE_T='signed int'
18028  SSIZE_FORMAT='"%d"'
18029elif test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
18030then
18031  SSIZE_T='signed long'
18032  SSIZE_FORMAT='"%ld"'
18033elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
18034then
18035  SSIZE_T='signed long long'
18036  case "${host_os}" in
18037    mingw32*)
18038      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
18039      SSIZE_FORMAT='"%I64d"'
18040      ;;
18041    *)
18042      SSIZE_FORMAT='"%lld"'
18043      ;;
18044  esac
18045fi
18046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
18047$as_echo "$SSIZE_T" >&6; }
18048
18049cat >>confdefs.h <<_ACEOF
18050#define TIFF_SSIZE_T $SSIZE_T
18051_ACEOF
18052
18053
18054cat >>confdefs.h <<_ACEOF
18055#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
18056_ACEOF
18057
18058
18059# Determine the type to use for the difference between two pointers.
18060# We will default to the POSIX ptrdiff_t if it is available, but will
18061# be prepared for the case when it is not.
18062PTRDIFF_T='unknown'
18063PTRDIFF_FORMAT='"%ld"'
18064ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18065if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18066  PTRDIFF_T=ptrdiff_t
18067fi
18068
18069if test $PTRDIFF_T = unknown
18070then
18071  PTRDIFF_T=$SSIZE_T
18072  PTRDIFF_FORMAT=$SSIZE_FORMAT
18073fi
18074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
18075$as_echo_n "checking for pointer difference type... " >&6; }
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
18077$as_echo "$PTRDIFF_T" >&6; }
18078
18079cat >>confdefs.h <<_ACEOF
18080#define TIFF_PTRDIFF_T $PTRDIFF_T
18081_ACEOF
18082
18083
18084cat >>confdefs.h <<_ACEOF
18085#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
18086_ACEOF
18087
18088
18089ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
18090#if HAVE_INTTYPES_H
18091# include <inttypes.h>
18092#endif
18093
18094"
18095if test "x$ac_cv_type_int8" = xyes; then :
18096
18097cat >>confdefs.h <<_ACEOF
18098#define HAVE_INT8 1
18099_ACEOF
18100
18101
18102fi
18103ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
18104#if HAVE_INTTYPES_H
18105# include <inttypes.h>
18106#endif
18107
18108"
18109if test "x$ac_cv_type_int16" = xyes; then :
18110
18111cat >>confdefs.h <<_ACEOF
18112#define HAVE_INT16 1
18113_ACEOF
18114
18115
18116fi
18117ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
18118#if HAVE_INTTYPES_H
18119# include <inttypes.h>
18120#endif
18121
18122"
18123if test "x$ac_cv_type_int32" = xyes; then :
18124
18125cat >>confdefs.h <<_ACEOF
18126#define HAVE_INT32 1
18127_ACEOF
18128
18129
18130fi
18131
18132
18133for ac_func in floor isascii memmove memset mmap pow setmode snprintf sqrt \
18134strchr strrchr strstr strtol strtoul strtoull
18135do :
18136  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18137ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18138if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18139  cat >>confdefs.h <<_ACEOF
18140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18141_ACEOF
18142
18143fi
18144done
18145
18146
18147ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18148if test "x$ac_cv_func_getopt" = xyes; then :
18149  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
18150
18151else
18152  case " $LIBOBJS " in
18153  *" getopt.$ac_objext "* ) ;;
18154  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18155 ;;
18156esac
18157
18158fi
18159
18160
18161ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18162if test "x$ac_cv_func_snprintf" = xyes; then :
18163  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18164
18165else
18166  case " $LIBOBJS " in
18167  *" snprintf.$ac_objext "* ) ;;
18168  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18169 ;;
18170esac
18171
18172fi
18173
18174
18175ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18176if test "x$ac_cv_func_strcasecmp" = xyes; then :
18177  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
18178
18179else
18180  case " $LIBOBJS " in
18181  *" strcasecmp.$ac_objext "* ) ;;
18182  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
18183 ;;
18184esac
18185
18186fi
18187
18188
18189ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18190if test "x$ac_cv_func_strtoul" = xyes; then :
18191  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
18192
18193else
18194  case " $LIBOBJS " in
18195  *" strtoul.$ac_objext "* ) ;;
18196  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
18197 ;;
18198esac
18199
18200fi
18201
18202
18203ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18204if test "x$ac_cv_func_strtoull" = xyes; then :
18205  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
18206
18207else
18208  case " $LIBOBJS " in
18209  *" strtoull.$ac_objext "* ) ;;
18210  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
18211 ;;
18212esac
18213
18214fi
18215
18216
18217ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
18218if test "x$ac_cv_func_lfind" = xyes; then :
18219  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
18220
18221else
18222  case " $LIBOBJS " in
18223  *" lfind.$ac_objext "* ) ;;
18224  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
18225 ;;
18226esac
18227
18228fi
18229
18230
18231
18232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
18233$as_echo_n "checking native cpu bit order... " >&6; }
18234case "$host_cpu" in
18235    i*86*|x86_64*)
18236        HOST_FILLORDER=FILLORDER_LSB2MSB
18237	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
18238$as_echo "lsb2msb" >&6; }
18239	;;
18240    *)
18241	HOST_FILLORDER=FILLORDER_MSB2LSB
18242	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
18243$as_echo "msb2lsb" >&6; }
18244        ;;
18245esac
18246
18247cat >>confdefs.h <<_ACEOF
18248#define HOST_FILLORDER $HOST_FILLORDER
18249_ACEOF
18250
18251
18252if test "$ac_cv_c_bigendian" = yes ; then
18253    HOST_BIGENDIAN=1
18254else
18255    HOST_BIGENDIAN=0
18256fi
18257
18258cat >>confdefs.h <<_ACEOF
18259#define HOST_BIGENDIAN $HOST_BIGENDIAN
18260_ACEOF
18261
18262
18263#_POSIX_C_SOURCE=2
18264#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
18265
18266HAVE_IEEEFP=1
18267
18268cat >>confdefs.h <<_ACEOF
18269#define HAVE_IEEEFP $HAVE_IEEEFP
18270_ACEOF
18271
18272
18273
18274# Check whether --enable-rpath was given.
18275if test "${enable_rpath+set}" = set; then :
18276  enableval=$enable_rpath; HAVE_RPATH=$enableval
18277else
18278  HAVE_RPATH=no
18279fi
18280
18281 if test "$HAVE_RPATH" = "yes"; then
18282  HAVE_RPATH_TRUE=
18283  HAVE_RPATH_FALSE='#'
18284else
18285  HAVE_RPATH_TRUE='#'
18286  HAVE_RPATH_FALSE=
18287fi
18288
18289
18290
18291# Check whether --enable-largefile was given.
18292if test "${enable_largefile+set}" = set; then :
18293  enableval=$enable_largefile;
18294fi
18295
18296if test "$enable_largefile" != no; then
18297
18298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18299$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18300if ${ac_cv_sys_largefile_CC+:} false; then :
18301  $as_echo_n "(cached) " >&6
18302else
18303  ac_cv_sys_largefile_CC=no
18304     if test "$GCC" != yes; then
18305       ac_save_CC=$CC
18306       while :; do
18307	 # IRIX 6.2 and later do not support large files by default,
18308	 # so use the C compiler's -n32 option if that helps.
18309	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310/* end confdefs.h.  */
18311#include <sys/types.h>
18312 /* Check that off_t can represent 2**63 - 1 correctly.
18313    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18314    since some C++ compilers masquerading as C compilers
18315    incorrectly reject 9223372036854775807.  */
18316#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18317  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18318		       && LARGE_OFF_T % 2147483647 == 1)
18319		      ? 1 : -1];
18320int
18321main ()
18322{
18323
18324  ;
18325  return 0;
18326}
18327_ACEOF
18328	 if ac_fn_c_try_compile "$LINENO"; then :
18329  break
18330fi
18331rm -f core conftest.err conftest.$ac_objext
18332	 CC="$CC -n32"
18333	 if ac_fn_c_try_compile "$LINENO"; then :
18334  ac_cv_sys_largefile_CC=' -n32'; break
18335fi
18336rm -f core conftest.err conftest.$ac_objext
18337	 break
18338       done
18339       CC=$ac_save_CC
18340       rm -f conftest.$ac_ext
18341    fi
18342fi
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18344$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18345  if test "$ac_cv_sys_largefile_CC" != no; then
18346    CC=$CC$ac_cv_sys_largefile_CC
18347  fi
18348
18349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18350$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18351if ${ac_cv_sys_file_offset_bits+:} false; then :
18352  $as_echo_n "(cached) " >&6
18353else
18354  while :; do
18355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357#include <sys/types.h>
18358 /* Check that off_t can represent 2**63 - 1 correctly.
18359    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18360    since some C++ compilers masquerading as C compilers
18361    incorrectly reject 9223372036854775807.  */
18362#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18363  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18364		       && LARGE_OFF_T % 2147483647 == 1)
18365		      ? 1 : -1];
18366int
18367main ()
18368{
18369
18370  ;
18371  return 0;
18372}
18373_ACEOF
18374if ac_fn_c_try_compile "$LINENO"; then :
18375  ac_cv_sys_file_offset_bits=no; break
18376fi
18377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379/* end confdefs.h.  */
18380#define _FILE_OFFSET_BITS 64
18381#include <sys/types.h>
18382 /* Check that off_t can represent 2**63 - 1 correctly.
18383    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18384    since some C++ compilers masquerading as C compilers
18385    incorrectly reject 9223372036854775807.  */
18386#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18387  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18388		       && LARGE_OFF_T % 2147483647 == 1)
18389		      ? 1 : -1];
18390int
18391main ()
18392{
18393
18394  ;
18395  return 0;
18396}
18397_ACEOF
18398if ac_fn_c_try_compile "$LINENO"; then :
18399  ac_cv_sys_file_offset_bits=64; break
18400fi
18401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402  ac_cv_sys_file_offset_bits=unknown
18403  break
18404done
18405fi
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18407$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18408case $ac_cv_sys_file_offset_bits in #(
18409  no | unknown) ;;
18410  *)
18411cat >>confdefs.h <<_ACEOF
18412#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18413_ACEOF
18414;;
18415esac
18416rm -rf conftest*
18417  if test $ac_cv_sys_file_offset_bits = unknown; then
18418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18419$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18420if ${ac_cv_sys_large_files+:} false; then :
18421  $as_echo_n "(cached) " >&6
18422else
18423  while :; do
18424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425/* end confdefs.h.  */
18426#include <sys/types.h>
18427 /* Check that off_t can represent 2**63 - 1 correctly.
18428    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18429    since some C++ compilers masquerading as C compilers
18430    incorrectly reject 9223372036854775807.  */
18431#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18432  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18433		       && LARGE_OFF_T % 2147483647 == 1)
18434		      ? 1 : -1];
18435int
18436main ()
18437{
18438
18439  ;
18440  return 0;
18441}
18442_ACEOF
18443if ac_fn_c_try_compile "$LINENO"; then :
18444  ac_cv_sys_large_files=no; break
18445fi
18446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448/* end confdefs.h.  */
18449#define _LARGE_FILES 1
18450#include <sys/types.h>
18451 /* Check that off_t can represent 2**63 - 1 correctly.
18452    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18453    since some C++ compilers masquerading as C compilers
18454    incorrectly reject 9223372036854775807.  */
18455#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18456  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18457		       && LARGE_OFF_T % 2147483647 == 1)
18458		      ? 1 : -1];
18459int
18460main ()
18461{
18462
18463  ;
18464  return 0;
18465}
18466_ACEOF
18467if ac_fn_c_try_compile "$LINENO"; then :
18468  ac_cv_sys_large_files=1; break
18469fi
18470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471  ac_cv_sys_large_files=unknown
18472  break
18473done
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18476$as_echo "$ac_cv_sys_large_files" >&6; }
18477case $ac_cv_sys_large_files in #(
18478  no | unknown) ;;
18479  *)
18480cat >>confdefs.h <<_ACEOF
18481#define _LARGE_FILES $ac_cv_sys_large_files
18482_ACEOF
18483;;
18484esac
18485rm -rf conftest*
18486  fi
18487
18488
18489fi
18490
18491
18492
18493LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
18494
18495
18496# Check whether --with-docdir was given.
18497if test "${with_docdir+set}" = set; then :
18498  withval=$with_docdir;
18499fi
18500
18501if test "x$with_docdir" != "x" ; then
18502  LIBTIFF_DOCDIR=$with_docdir
18503fi
18504
18505
18506
18507
18508# Check whether --enable-ccitt was given.
18509if test "${enable_ccitt+set}" = set; then :
18510  enableval=$enable_ccitt; HAVE_CCITT=$enableval
18511else
18512  HAVE_CCITT=yes
18513fi
18514
18515
18516if test "$HAVE_CCITT" = "yes" ; then
18517
18518$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
18519
18520fi
18521
18522# Check whether --enable-packbits was given.
18523if test "${enable_packbits+set}" = set; then :
18524  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
18525else
18526  HAVE_PACKBITS=yes
18527fi
18528
18529
18530if test "$HAVE_PACKBITS" = "yes" ; then
18531
18532$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
18533
18534fi
18535
18536# Check whether --enable-lzw was given.
18537if test "${enable_lzw+set}" = set; then :
18538  enableval=$enable_lzw; HAVE_LZW=$enableval
18539else
18540  HAVE_LZW=yes
18541fi
18542
18543
18544if test "$HAVE_LZW" = "yes" ; then
18545
18546$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
18547
18548fi
18549
18550# Check whether --enable-thunder was given.
18551if test "${enable_thunder+set}" = set; then :
18552  enableval=$enable_thunder; HAVE_THUNDER=$enableval
18553else
18554  HAVE_THUNDER=yes
18555fi
18556
18557
18558if test "$HAVE_THUNDER" = "yes" ; then
18559
18560$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
18561
18562fi
18563
18564HAVE_NEXT=yes
18565
18566# Check whether --enable-next was given.
18567if test "${enable_next+set}" = set; then :
18568  enableval=$enable_next; HAVE_NEXT=$enableval
18569else
18570  HAVE_NEXT=yes
18571fi
18572
18573
18574if test "$HAVE_NEXT" = "yes" ; then
18575
18576$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
18577
18578fi
18579
18580# Check whether --enable-logluv was given.
18581if test "${enable_logluv+set}" = set; then :
18582  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
18583else
18584  HAVE_LOGLUV=yes
18585fi
18586
18587
18588if test "$HAVE_LOGLUV" = "yes" ; then
18589
18590$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
18591
18592fi
18593
18594
18595# Check whether --enable-mdi was given.
18596if test "${enable_mdi+set}" = set; then :
18597  enableval=$enable_mdi; HAVE_MDI=$enableval
18598else
18599  HAVE_MDI=yes
18600fi
18601
18602
18603if test "$HAVE_MDI" = "yes" ; then
18604
18605$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
18606
18607fi
18608
18609
18610HAVE_ZLIB=no
18611
18612# Check whether --enable-zlib was given.
18613if test "${enable_zlib+set}" = set; then :
18614  enableval=$enable_zlib;
18615fi
18616
18617
18618# Check whether --with-zlib-include-dir was given.
18619if test "${with_zlib_include_dir+set}" = set; then :
18620  withval=$with_zlib_include_dir;
18621fi
18622
18623
18624# Check whether --with-zlib-lib-dir was given.
18625if test "${with_zlib_lib_dir+set}" = set; then :
18626  withval=$with_zlib_lib_dir;
18627fi
18628
18629
18630if test "x$enable_zlib" != "xno" ; then
18631
18632  if test "x$with_zlib_lib_dir" != "x" ; then
18633    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
18634  fi
18635
18636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
18637$as_echo_n "checking for inflateEnd in -lz... " >&6; }
18638if ${ac_cv_lib_z_inflateEnd+:} false; then :
18639  $as_echo_n "(cached) " >&6
18640else
18641  ac_check_lib_save_LIBS=$LIBS
18642LIBS="-lz  $LIBS"
18643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18644/* end confdefs.h.  */
18645
18646/* Override any GCC internal prototype to avoid an error.
18647   Use char because int might match the return type of a GCC
18648   builtin and then its argument prototype would still apply.  */
18649#ifdef __cplusplus
18650extern "C"
18651#endif
18652char inflateEnd ();
18653int
18654main ()
18655{
18656return inflateEnd ();
18657  ;
18658  return 0;
18659}
18660_ACEOF
18661if ac_fn_c_try_link "$LINENO"; then :
18662  ac_cv_lib_z_inflateEnd=yes
18663else
18664  ac_cv_lib_z_inflateEnd=no
18665fi
18666rm -f core conftest.err conftest.$ac_objext \
18667    conftest$ac_exeext conftest.$ac_ext
18668LIBS=$ac_check_lib_save_LIBS
18669fi
18670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
18671$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
18672if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
18673  zlib_lib=yes
18674else
18675  zlib_lib=no
18676fi
18677
18678  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
18679    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
18680  fi
18681
18682  if test "x$with_zlib_include_dir" != "x" ; then
18683    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
18684  fi
18685  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18686if test "x$ac_cv_header_zlib_h" = xyes; then :
18687  zlib_h=yes
18688else
18689  zlib_h=no
18690fi
18691
18692
18693  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
18694    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
18695  fi
18696
18697  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
18698    HAVE_ZLIB=yes
18699  fi
18700
18701fi
18702
18703if test "$HAVE_ZLIB" = "yes" ; then
18704
18705$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
18706
18707  LIBS="-lz $LIBS"
18708  tiff_libs_private="-lz ${tiff_libs_private}"
18709
18710  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
18711    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
18712  fi
18713
18714fi
18715
18716
18717# Check whether --enable-pixarlog was given.
18718if test "${enable_pixarlog+set}" = set; then :
18719  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
18720else
18721  HAVE_PIXARLOG=yes
18722fi
18723
18724
18725if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
18726
18727$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
18728
18729else
18730  HAVE_PIXARLOG=no
18731fi
18732
18733
18734HAVE_JPEG=no
18735
18736# Check whether --enable-jpeg was given.
18737if test "${enable_jpeg+set}" = set; then :
18738  enableval=$enable_jpeg;
18739fi
18740
18741
18742# Check whether --with-jpeg-include-dir was given.
18743if test "${with_jpeg_include_dir+set}" = set; then :
18744  withval=$with_jpeg_include_dir;
18745fi
18746
18747
18748# Check whether --with-jpeg-lib-dir was given.
18749if test "${with_jpeg_lib_dir+set}" = set; then :
18750  withval=$with_jpeg_lib_dir;
18751fi
18752
18753
18754if test "x$enable_jpeg" != "xno" ; then
18755
18756  if test "x$with_jpeg_lib_dir" != "x" ; then
18757    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
18758
18759  fi
18760
18761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
18762$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
18763if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
18764  $as_echo_n "(cached) " >&6
18765else
18766  ac_check_lib_save_LIBS=$LIBS
18767LIBS="-ljpeg  $LIBS"
18768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769/* end confdefs.h.  */
18770
18771/* Override any GCC internal prototype to avoid an error.
18772   Use char because int might match the return type of a GCC
18773   builtin and then its argument prototype would still apply.  */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777char jpeg_read_scanlines ();
18778int
18779main ()
18780{
18781return jpeg_read_scanlines ();
18782  ;
18783  return 0;
18784}
18785_ACEOF
18786if ac_fn_c_try_link "$LINENO"; then :
18787  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
18788else
18789  ac_cv_lib_jpeg_jpeg_read_scanlines=no
18790fi
18791rm -f core conftest.err conftest.$ac_objext \
18792    conftest$ac_exeext conftest.$ac_ext
18793LIBS=$ac_check_lib_save_LIBS
18794fi
18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
18796$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18797if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18798  jpeg_lib=yes
18799else
18800  jpeg_lib=no
18801fi
18802
18803  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
18804    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
18805  fi
18806
18807  if test "x$with_jpeg_include_dir" != "x" ; then
18808    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
18809  fi
18810  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18811if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18812  jpeg_h=yes
18813else
18814  jpeg_h=no
18815fi
18816
18817
18818  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
18819    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
18820  fi
18821
18822  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
18823    HAVE_JPEG=yes
18824  fi
18825
18826fi
18827
18828if test "$HAVE_JPEG" = "yes" ; then
18829
18830$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
18831
18832  LIBS="-ljpeg $LIBS"
18833  tiff_libs_private="-ljpeg ${tiff_libs_private}"
18834
18835  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
18836    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
18837  fi
18838
18839fi
18840
18841 if test "$HAVE_JPEG" = 'yes'; then
18842  HAVE_JPEG_TRUE=
18843  HAVE_JPEG_FALSE='#'
18844else
18845  HAVE_JPEG_TRUE='#'
18846  HAVE_JPEG_FALSE=
18847fi
18848
18849
18850
18851# Check whether --enable-old-jpeg was given.
18852if test "${enable_old_jpeg+set}" = set; then :
18853  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
18854else
18855  HAVE_OJPEG=yes
18856fi
18857
18858
18859if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
18860
18861$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
18862
18863else
18864  HAVE_OJPEG=no
18865fi
18866
18867
18868HAVE_JBIG=no
18869
18870# Check whether --enable-jbig was given.
18871if test "${enable_jbig+set}" = set; then :
18872  enableval=$enable_jbig;
18873fi
18874
18875
18876# Check whether --with-jbig-include-dir was given.
18877if test "${with_jbig_include_dir+set}" = set; then :
18878  withval=$with_jbig_include_dir;
18879fi
18880
18881
18882# Check whether --with-jbig-lib-dir was given.
18883if test "${with_jbig_lib_dir+set}" = set; then :
18884  withval=$with_jbig_lib_dir;
18885fi
18886
18887
18888if test "x$enable_jbig" != "xno" ; then
18889
18890  if test "x$with_jbig_lib_dir" != "x" ; then
18891    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
18892
18893  fi
18894
18895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
18896$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
18897if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
18898  $as_echo_n "(cached) " >&6
18899else
18900  ac_check_lib_save_LIBS=$LIBS
18901LIBS="-ljbig  $LIBS"
18902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903/* end confdefs.h.  */
18904
18905/* Override any GCC internal prototype to avoid an error.
18906   Use char because int might match the return type of a GCC
18907   builtin and then its argument prototype would still apply.  */
18908#ifdef __cplusplus
18909extern "C"
18910#endif
18911char jbg_dec_init ();
18912int
18913main ()
18914{
18915return jbg_dec_init ();
18916  ;
18917  return 0;
18918}
18919_ACEOF
18920if ac_fn_c_try_link "$LINENO"; then :
18921  ac_cv_lib_jbig_jbg_dec_init=yes
18922else
18923  ac_cv_lib_jbig_jbg_dec_init=no
18924fi
18925rm -f core conftest.err conftest.$ac_objext \
18926    conftest$ac_exeext conftest.$ac_ext
18927LIBS=$ac_check_lib_save_LIBS
18928fi
18929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
18930$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
18931if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
18932  jbig_lib=yes
18933else
18934  jbig_lib=no
18935fi
18936
18937  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
18938    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
18939  fi
18940
18941  if test "x$with_jbig_include_dir" != "x" ; then
18942    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
18943  fi
18944  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
18945if test "x$ac_cv_header_jbig_h" = xyes; then :
18946  jbig_h=yes
18947else
18948  jbig_h=no
18949fi
18950
18951
18952  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
18953    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
18954  fi
18955
18956  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
18957    HAVE_JBIG=yes
18958  fi
18959
18960fi
18961
18962if test "$HAVE_JBIG" = "yes" ; then
18963
18964$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
18965
18966  LIBS="-ljbig $LIBS"
18967  tiff_libs_private="-ljbig ${tiff_libs_private}"
18968
18969  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18970    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18971  fi
18972
18973  # Older versions of jbigkit lack jbg_newlen
18974  for ac_func in jbg_newlen
18975do :
18976  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18977if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18978  cat >>confdefs.h <<_ACEOF
18979#define HAVE_JBG_NEWLEN 1
18980_ACEOF
18981
18982fi
18983done
18984
18985
18986fi
18987
18988 if test "$HAVE_JBIG" = 'yes'; then
18989  HAVE_JBIG_TRUE=
18990  HAVE_JBIG_FALSE='#'
18991else
18992  HAVE_JBIG_TRUE='#'
18993  HAVE_JBIG_FALSE=
18994fi
18995
18996
18997
18998HAVE_LZMA=no
18999
19000# Check whether --enable-lzma was given.
19001if test "${enable_lzma+set}" = set; then :
19002  enableval=$enable_lzma;
19003fi
19004
19005
19006# Check whether --with-lzma-include-dir was given.
19007if test "${with_lzma_include_dir+set}" = set; then :
19008  withval=$with_lzma_include_dir;
19009fi
19010
19011
19012# Check whether --with-lzma-lib-dir was given.
19013if test "${with_lzma_lib_dir+set}" = set; then :
19014  withval=$with_lzma_lib_dir;
19015fi
19016
19017
19018if test "x$enable_lzma" != "xno" ; then
19019
19020  if test "x$with_lzma_lib_dir" != "x" ; then
19021    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
19022  fi
19023
19024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
19025$as_echo_n "checking for lzma_code in -llzma... " >&6; }
19026if ${ac_cv_lib_lzma_lzma_code+:} false; then :
19027  $as_echo_n "(cached) " >&6
19028else
19029  ac_check_lib_save_LIBS=$LIBS
19030LIBS="-llzma  $LIBS"
19031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032/* end confdefs.h.  */
19033
19034/* Override any GCC internal prototype to avoid an error.
19035   Use char because int might match the return type of a GCC
19036   builtin and then its argument prototype would still apply.  */
19037#ifdef __cplusplus
19038extern "C"
19039#endif
19040char lzma_code ();
19041int
19042main ()
19043{
19044return lzma_code ();
19045  ;
19046  return 0;
19047}
19048_ACEOF
19049if ac_fn_c_try_link "$LINENO"; then :
19050  ac_cv_lib_lzma_lzma_code=yes
19051else
19052  ac_cv_lib_lzma_lzma_code=no
19053fi
19054rm -f core conftest.err conftest.$ac_objext \
19055    conftest$ac_exeext conftest.$ac_ext
19056LIBS=$ac_check_lib_save_LIBS
19057fi
19058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
19059$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
19060if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
19061  lzma_lib=yes
19062else
19063  lzma_lib=no
19064fi
19065
19066  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
19067    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
19068  fi
19069
19070  if test "x$with_lzma_include_dir" != "x" ; then
19071    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
19072  fi
19073  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
19074if test "x$ac_cv_header_lzma_h" = xyes; then :
19075  lzma_h=yes
19076else
19077  lzma_h=no
19078fi
19079
19080
19081  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
19082    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
19083  fi
19084
19085  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
19086    HAVE_LZMA=yes
19087  fi
19088
19089fi
19090
19091if test "$HAVE_LZMA" = "yes" ; then
19092
19093$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
19094
19095  LIBS="-llzma $LIBS"
19096  tiff_libs_private="-llzma ${tiff_libs_private}"
19097
19098  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
19099    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
19100  fi
19101
19102fi
19103
19104 if test "$HAVE_LZMA" = 'yes'; then
19105  HAVE_LZMA_TRUE=
19106  HAVE_LZMA_FALSE='#'
19107else
19108  HAVE_LZMA_TRUE='#'
19109  HAVE_LZMA_FALSE=
19110fi
19111
19112
19113
19114HAVE_JPEG12=no
19115
19116# Check whether --enable-jpeg12 was given.
19117if test "${enable_jpeg12+set}" = set; then :
19118  enableval=$enable_jpeg12;
19119fi
19120
19121
19122# Check whether --with-jpeg12-include-dir was given.
19123if test "${with_jpeg12_include_dir+set}" = set; then :
19124  withval=$with_jpeg12_include_dir;
19125fi
19126
19127
19128# Check whether --with-jpeg12-lib was given.
19129if test "${with_jpeg12_lib+set}" = set; then :
19130  withval=$with_jpeg12_lib;
19131fi
19132
19133
19134if test "x$enable_jpeg12" = "xyes" ; then
19135
19136  if test "x$with_jpeg12_lib" != "x" ; then
19137    LIBS="$with_jpeg12_lib $LIBS"
19138  fi
19139
19140  HAVE_JPEG12=yes
19141
19142
19143$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
19144
19145  if test "x$with_jpeg12_include_dir" != "x" ; then
19146
19147cat >>confdefs.h <<_ACEOF
19148#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
19149_ACEOF
19150
19151  fi
19152fi
19153
19154
19155
19156# Check whether --enable-cxx was given.
19157if test "${enable_cxx+set}" = set; then :
19158  enableval=$enable_cxx; HAVE_CXX=$enableval
19159else
19160  HAVE_CXX=yes
19161fi
19162
19163
19164if test "$HAVE_CXX" = "yes" ; then
19165
19166$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
19167
19168else
19169  HAVE_CXX=no
19170fi
19171
19172 if test "$HAVE_CXX" = "yes"; then
19173  HAVE_CXX_TRUE=
19174  HAVE_CXX_FALSE='#'
19175else
19176  HAVE_CXX_TRUE='#'
19177  HAVE_CXX_FALSE=
19178fi
19179
19180
19181
19182HAVE_OPENGL=no
19183
19184
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19186$as_echo_n "checking for X... " >&6; }
19187
19188
19189# Check whether --with-x was given.
19190if test "${with_x+set}" = set; then :
19191  withval=$with_x;
19192fi
19193
19194# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19195if test "x$with_x" = xno; then
19196  # The user explicitly disabled X.
19197  have_x=disabled
19198else
19199  case $x_includes,$x_libraries in #(
19200    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19201    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19202  $as_echo_n "(cached) " >&6
19203else
19204  # One or both of the vars are not set, and there is no cached value.
19205ac_x_includes=no ac_x_libraries=no
19206rm -f -r conftest.dir
19207if mkdir conftest.dir; then
19208  cd conftest.dir
19209  cat >Imakefile <<'_ACEOF'
19210incroot:
19211	@echo incroot='${INCROOT}'
19212usrlibdir:
19213	@echo usrlibdir='${USRLIBDIR}'
19214libdir:
19215	@echo libdir='${LIBDIR}'
19216_ACEOF
19217  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19218    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19219    for ac_var in incroot usrlibdir libdir; do
19220      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19221    done
19222    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19223    for ac_extension in a so sl dylib la dll; do
19224      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19225	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19226	ac_im_usrlibdir=$ac_im_libdir; break
19227      fi
19228    done
19229    # Screen out bogus values from the imake configuration.  They are
19230    # bogus both because they are the default anyway, and because
19231    # using them would break gcc on systems where it needs fixed includes.
19232    case $ac_im_incroot in
19233	/usr/include) ac_x_includes= ;;
19234	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19235    esac
19236    case $ac_im_usrlibdir in
19237	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
19238	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19239    esac
19240  fi
19241  cd ..
19242  rm -f -r conftest.dir
19243fi
19244
19245# Standard set of common directories for X headers.
19246# Check X11 before X11Rn because it is often a symlink to the current release.
19247ac_x_header_dirs='
19248/usr/X11/include
19249/usr/X11R7/include
19250/usr/X11R6/include
19251/usr/X11R5/include
19252/usr/X11R4/include
19253
19254/usr/include/X11
19255/usr/include/X11R7
19256/usr/include/X11R6
19257/usr/include/X11R5
19258/usr/include/X11R4
19259
19260/usr/local/X11/include
19261/usr/local/X11R7/include
19262/usr/local/X11R6/include
19263/usr/local/X11R5/include
19264/usr/local/X11R4/include
19265
19266/usr/local/include/X11
19267/usr/local/include/X11R7
19268/usr/local/include/X11R6
19269/usr/local/include/X11R5
19270/usr/local/include/X11R4
19271
19272/usr/X386/include
19273/usr/x386/include
19274/usr/XFree86/include/X11
19275
19276/usr/include
19277/usr/local/include
19278/usr/unsupported/include
19279/usr/athena/include
19280/usr/local/x11r5/include
19281/usr/lpp/Xamples/include
19282
19283/usr/openwin/include
19284/usr/openwin/share/include'
19285
19286if test "$ac_x_includes" = no; then
19287  # Guess where to find include files, by looking for Xlib.h.
19288  # First, try using that file with no special directory specified.
19289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290/* end confdefs.h.  */
19291#include <X11/Xlib.h>
19292_ACEOF
19293if ac_fn_c_try_cpp "$LINENO"; then :
19294  # We can compile using X headers with no special include directory.
19295ac_x_includes=
19296else
19297  for ac_dir in $ac_x_header_dirs; do
19298  if test -r "$ac_dir/X11/Xlib.h"; then
19299    ac_x_includes=$ac_dir
19300    break
19301  fi
19302done
19303fi
19304rm -f conftest.err conftest.i conftest.$ac_ext
19305fi # $ac_x_includes = no
19306
19307if test "$ac_x_libraries" = no; then
19308  # Check for the libraries.
19309  # See if we find them without any special options.
19310  # Don't add to $LIBS permanently.
19311  ac_save_LIBS=$LIBS
19312  LIBS="-lX11 $LIBS"
19313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h.  */
19315#include <X11/Xlib.h>
19316int
19317main ()
19318{
19319XrmInitialize ()
19320  ;
19321  return 0;
19322}
19323_ACEOF
19324if ac_fn_c_try_link "$LINENO"; then :
19325  LIBS=$ac_save_LIBS
19326# We can link X programs with no special library path.
19327ac_x_libraries=
19328else
19329  LIBS=$ac_save_LIBS
19330for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19331do
19332  # Don't even attempt the hair of trying to link an X program!
19333  for ac_extension in a so sl dylib la dll; do
19334    if test -r "$ac_dir/libX11.$ac_extension"; then
19335      ac_x_libraries=$ac_dir
19336      break 2
19337    fi
19338  done
19339done
19340fi
19341rm -f core conftest.err conftest.$ac_objext \
19342    conftest$ac_exeext conftest.$ac_ext
19343fi # $ac_x_libraries = no
19344
19345case $ac_x_includes,$ac_x_libraries in #(
19346  no,* | *,no | *\'*)
19347    # Didn't find X, or a directory has "'" in its name.
19348    ac_cv_have_x="have_x=no";; #(
19349  *)
19350    # Record where we found X for the cache.
19351    ac_cv_have_x="have_x=yes\
19352	ac_x_includes='$ac_x_includes'\
19353	ac_x_libraries='$ac_x_libraries'"
19354esac
19355fi
19356;; #(
19357    *) have_x=yes;;
19358  esac
19359  eval "$ac_cv_have_x"
19360fi # $with_x != no
19361
19362if test "$have_x" != yes; then
19363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19364$as_echo "$have_x" >&6; }
19365  no_x=yes
19366else
19367  # If each of the values was on the command line, it overrides each guess.
19368  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19369  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19370  # Update the cache value to reflect the command line values.
19371  ac_cv_have_x="have_x=yes\
19372	ac_x_includes='$x_includes'\
19373	ac_x_libraries='$x_libraries'"
19374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19375$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19376fi
19377
19378if test "$no_x" = yes; then
19379  # Not all programs may use this symbol, but it does not hurt to define it.
19380
19381$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19382
19383  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19384else
19385  if test -n "$x_includes"; then
19386    X_CFLAGS="$X_CFLAGS -I$x_includes"
19387  fi
19388
19389  # It would also be nice to do this for all -L options, not just this one.
19390  if test -n "$x_libraries"; then
19391    X_LIBS="$X_LIBS -L$x_libraries"
19392    # For Solaris; some versions of Sun CC require a space after -R and
19393    # others require no space.  Words are not sufficient . . . .
19394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19395$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19396    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19397    ac_xsave_c_werror_flag=$ac_c_werror_flag
19398    ac_c_werror_flag=yes
19399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400/* end confdefs.h.  */
19401
19402int
19403main ()
19404{
19405
19406  ;
19407  return 0;
19408}
19409_ACEOF
19410if ac_fn_c_try_link "$LINENO"; then :
19411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19412$as_echo "no" >&6; }
19413       X_LIBS="$X_LIBS -R$x_libraries"
19414else
19415  LIBS="$ac_xsave_LIBS -R $x_libraries"
19416       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417/* end confdefs.h.  */
19418
19419int
19420main ()
19421{
19422
19423  ;
19424  return 0;
19425}
19426_ACEOF
19427if ac_fn_c_try_link "$LINENO"; then :
19428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19429$as_echo "yes" >&6; }
19430	  X_LIBS="$X_LIBS -R $x_libraries"
19431else
19432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19433$as_echo "neither works" >&6; }
19434fi
19435rm -f core conftest.err conftest.$ac_objext \
19436    conftest$ac_exeext conftest.$ac_ext
19437fi
19438rm -f core conftest.err conftest.$ac_objext \
19439    conftest$ac_exeext conftest.$ac_ext
19440    ac_c_werror_flag=$ac_xsave_c_werror_flag
19441    LIBS=$ac_xsave_LIBS
19442  fi
19443
19444  # Check for system-dependent libraries X programs must link with.
19445  # Do this before checking for the system-independent R6 libraries
19446  # (-lICE), since we may need -lsocket or whatever for X linking.
19447
19448  if test "$ISC" = yes; then
19449    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19450  else
19451    # Martyn Johnson says this is needed for Ultrix, if the X
19452    # libraries were built with DECnet support.  And Karl Berry says
19453    # the Alpha needs dnet_stub (dnet does not exist).
19454    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456/* end confdefs.h.  */
19457
19458/* Override any GCC internal prototype to avoid an error.
19459   Use char because int might match the return type of a GCC
19460   builtin and then its argument prototype would still apply.  */
19461#ifdef __cplusplus
19462extern "C"
19463#endif
19464char XOpenDisplay ();
19465int
19466main ()
19467{
19468return XOpenDisplay ();
19469  ;
19470  return 0;
19471}
19472_ACEOF
19473if ac_fn_c_try_link "$LINENO"; then :
19474
19475else
19476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19477$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19478if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19479  $as_echo_n "(cached) " >&6
19480else
19481  ac_check_lib_save_LIBS=$LIBS
19482LIBS="-ldnet  $LIBS"
19483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h.  */
19485
19486/* Override any GCC internal prototype to avoid an error.
19487   Use char because int might match the return type of a GCC
19488   builtin and then its argument prototype would still apply.  */
19489#ifdef __cplusplus
19490extern "C"
19491#endif
19492char dnet_ntoa ();
19493int
19494main ()
19495{
19496return dnet_ntoa ();
19497  ;
19498  return 0;
19499}
19500_ACEOF
19501if ac_fn_c_try_link "$LINENO"; then :
19502  ac_cv_lib_dnet_dnet_ntoa=yes
19503else
19504  ac_cv_lib_dnet_dnet_ntoa=no
19505fi
19506rm -f core conftest.err conftest.$ac_objext \
19507    conftest$ac_exeext conftest.$ac_ext
19508LIBS=$ac_check_lib_save_LIBS
19509fi
19510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19511$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19512if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19513  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19514fi
19515
19516    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19517      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19518$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19519if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19520  $as_echo_n "(cached) " >&6
19521else
19522  ac_check_lib_save_LIBS=$LIBS
19523LIBS="-ldnet_stub  $LIBS"
19524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19525/* end confdefs.h.  */
19526
19527/* Override any GCC internal prototype to avoid an error.
19528   Use char because int might match the return type of a GCC
19529   builtin and then its argument prototype would still apply.  */
19530#ifdef __cplusplus
19531extern "C"
19532#endif
19533char dnet_ntoa ();
19534int
19535main ()
19536{
19537return dnet_ntoa ();
19538  ;
19539  return 0;
19540}
19541_ACEOF
19542if ac_fn_c_try_link "$LINENO"; then :
19543  ac_cv_lib_dnet_stub_dnet_ntoa=yes
19544else
19545  ac_cv_lib_dnet_stub_dnet_ntoa=no
19546fi
19547rm -f core conftest.err conftest.$ac_objext \
19548    conftest$ac_exeext conftest.$ac_ext
19549LIBS=$ac_check_lib_save_LIBS
19550fi
19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19552$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19553if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19554  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19555fi
19556
19557    fi
19558fi
19559rm -f core conftest.err conftest.$ac_objext \
19560    conftest$ac_exeext conftest.$ac_ext
19561    LIBS="$ac_xsave_LIBS"
19562
19563    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
19564    # to get the SysV transport functions.
19565    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19566    # needs -lnsl.
19567    # The nsl library prevents programs from opening the X display
19568    # on Irix 5.2, according to T.E. Dickey.
19569    # The functions gethostbyname, getservbyname, and inet_addr are
19570    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19571    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19572if test "x$ac_cv_func_gethostbyname" = xyes; then :
19573
19574fi
19575
19576    if test $ac_cv_func_gethostbyname = no; then
19577      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19578$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19579if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19580  $as_echo_n "(cached) " >&6
19581else
19582  ac_check_lib_save_LIBS=$LIBS
19583LIBS="-lnsl  $LIBS"
19584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19585/* end confdefs.h.  */
19586
19587/* Override any GCC internal prototype to avoid an error.
19588   Use char because int might match the return type of a GCC
19589   builtin and then its argument prototype would still apply.  */
19590#ifdef __cplusplus
19591extern "C"
19592#endif
19593char gethostbyname ();
19594int
19595main ()
19596{
19597return gethostbyname ();
19598  ;
19599  return 0;
19600}
19601_ACEOF
19602if ac_fn_c_try_link "$LINENO"; then :
19603  ac_cv_lib_nsl_gethostbyname=yes
19604else
19605  ac_cv_lib_nsl_gethostbyname=no
19606fi
19607rm -f core conftest.err conftest.$ac_objext \
19608    conftest$ac_exeext conftest.$ac_ext
19609LIBS=$ac_check_lib_save_LIBS
19610fi
19611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19612$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19613if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19614  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19615fi
19616
19617      if test $ac_cv_lib_nsl_gethostbyname = no; then
19618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19619$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19620if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19621  $as_echo_n "(cached) " >&6
19622else
19623  ac_check_lib_save_LIBS=$LIBS
19624LIBS="-lbsd  $LIBS"
19625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626/* end confdefs.h.  */
19627
19628/* Override any GCC internal prototype to avoid an error.
19629   Use char because int might match the return type of a GCC
19630   builtin and then its argument prototype would still apply.  */
19631#ifdef __cplusplus
19632extern "C"
19633#endif
19634char gethostbyname ();
19635int
19636main ()
19637{
19638return gethostbyname ();
19639  ;
19640  return 0;
19641}
19642_ACEOF
19643if ac_fn_c_try_link "$LINENO"; then :
19644  ac_cv_lib_bsd_gethostbyname=yes
19645else
19646  ac_cv_lib_bsd_gethostbyname=no
19647fi
19648rm -f core conftest.err conftest.$ac_objext \
19649    conftest$ac_exeext conftest.$ac_ext
19650LIBS=$ac_check_lib_save_LIBS
19651fi
19652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19653$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19654if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19655  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19656fi
19657
19658      fi
19659    fi
19660
19661    # [email protected] says without -lsocket,
19662    # socket/setsockopt and other routines are undefined under SCO ODT
19663    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19664    # on later versions), says Simon Leinen: it contains gethostby*
19665    # variants that don't use the name server (or something).  -lsocket
19666    # must be given before -lnsl if both are needed.  We assume that
19667    # if connect needs -lnsl, so does gethostbyname.
19668    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19669if test "x$ac_cv_func_connect" = xyes; then :
19670
19671fi
19672
19673    if test $ac_cv_func_connect = no; then
19674      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19675$as_echo_n "checking for connect in -lsocket... " >&6; }
19676if ${ac_cv_lib_socket_connect+:} false; then :
19677  $as_echo_n "(cached) " >&6
19678else
19679  ac_check_lib_save_LIBS=$LIBS
19680LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682/* end confdefs.h.  */
19683
19684/* Override any GCC internal prototype to avoid an error.
19685   Use char because int might match the return type of a GCC
19686   builtin and then its argument prototype would still apply.  */
19687#ifdef __cplusplus
19688extern "C"
19689#endif
19690char connect ();
19691int
19692main ()
19693{
19694return connect ();
19695  ;
19696  return 0;
19697}
19698_ACEOF
19699if ac_fn_c_try_link "$LINENO"; then :
19700  ac_cv_lib_socket_connect=yes
19701else
19702  ac_cv_lib_socket_connect=no
19703fi
19704rm -f core conftest.err conftest.$ac_objext \
19705    conftest$ac_exeext conftest.$ac_ext
19706LIBS=$ac_check_lib_save_LIBS
19707fi
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19709$as_echo "$ac_cv_lib_socket_connect" >&6; }
19710if test "x$ac_cv_lib_socket_connect" = xyes; then :
19711  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19712fi
19713
19714    fi
19715
19716    # Guillermo Gomez says -lposix is necessary on A/UX.
19717    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19718if test "x$ac_cv_func_remove" = xyes; then :
19719
19720fi
19721
19722    if test $ac_cv_func_remove = no; then
19723      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19724$as_echo_n "checking for remove in -lposix... " >&6; }
19725if ${ac_cv_lib_posix_remove+:} false; then :
19726  $as_echo_n "(cached) " >&6
19727else
19728  ac_check_lib_save_LIBS=$LIBS
19729LIBS="-lposix  $LIBS"
19730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731/* end confdefs.h.  */
19732
19733/* Override any GCC internal prototype to avoid an error.
19734   Use char because int might match the return type of a GCC
19735   builtin and then its argument prototype would still apply.  */
19736#ifdef __cplusplus
19737extern "C"
19738#endif
19739char remove ();
19740int
19741main ()
19742{
19743return remove ();
19744  ;
19745  return 0;
19746}
19747_ACEOF
19748if ac_fn_c_try_link "$LINENO"; then :
19749  ac_cv_lib_posix_remove=yes
19750else
19751  ac_cv_lib_posix_remove=no
19752fi
19753rm -f core conftest.err conftest.$ac_objext \
19754    conftest$ac_exeext conftest.$ac_ext
19755LIBS=$ac_check_lib_save_LIBS
19756fi
19757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19758$as_echo "$ac_cv_lib_posix_remove" >&6; }
19759if test "x$ac_cv_lib_posix_remove" = xyes; then :
19760  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19761fi
19762
19763    fi
19764
19765    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19766    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19767if test "x$ac_cv_func_shmat" = xyes; then :
19768
19769fi
19770
19771    if test $ac_cv_func_shmat = no; then
19772      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19773$as_echo_n "checking for shmat in -lipc... " >&6; }
19774if ${ac_cv_lib_ipc_shmat+:} false; then :
19775  $as_echo_n "(cached) " >&6
19776else
19777  ac_check_lib_save_LIBS=$LIBS
19778LIBS="-lipc  $LIBS"
19779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19780/* end confdefs.h.  */
19781
19782/* Override any GCC internal prototype to avoid an error.
19783   Use char because int might match the return type of a GCC
19784   builtin and then its argument prototype would still apply.  */
19785#ifdef __cplusplus
19786extern "C"
19787#endif
19788char shmat ();
19789int
19790main ()
19791{
19792return shmat ();
19793  ;
19794  return 0;
19795}
19796_ACEOF
19797if ac_fn_c_try_link "$LINENO"; then :
19798  ac_cv_lib_ipc_shmat=yes
19799else
19800  ac_cv_lib_ipc_shmat=no
19801fi
19802rm -f core conftest.err conftest.$ac_objext \
19803    conftest$ac_exeext conftest.$ac_ext
19804LIBS=$ac_check_lib_save_LIBS
19805fi
19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19807$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19808if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19809  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19810fi
19811
19812    fi
19813  fi
19814
19815  # Check for libraries that X11R6 Xt/Xaw programs need.
19816  ac_save_LDFLAGS=$LDFLAGS
19817  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19818  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19819  # check for ICE first), but we must link in the order -lSM -lICE or
19820  # we get undefined symbols.  So assume we have SM if we have ICE.
19821  # These have to be linked with before -lX11, unlike the other
19822  # libraries we check for below, so use a different variable.
19823  # John Interrante, Karl Berry
19824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19825$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19826if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19827  $as_echo_n "(cached) " >&6
19828else
19829  ac_check_lib_save_LIBS=$LIBS
19830LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833
19834/* Override any GCC internal prototype to avoid an error.
19835   Use char because int might match the return type of a GCC
19836   builtin and then its argument prototype would still apply.  */
19837#ifdef __cplusplus
19838extern "C"
19839#endif
19840char IceConnectionNumber ();
19841int
19842main ()
19843{
19844return IceConnectionNumber ();
19845  ;
19846  return 0;
19847}
19848_ACEOF
19849if ac_fn_c_try_link "$LINENO"; then :
19850  ac_cv_lib_ICE_IceConnectionNumber=yes
19851else
19852  ac_cv_lib_ICE_IceConnectionNumber=no
19853fi
19854rm -f core conftest.err conftest.$ac_objext \
19855    conftest$ac_exeext conftest.$ac_ext
19856LIBS=$ac_check_lib_save_LIBS
19857fi
19858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19859$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19860if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19861  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19862fi
19863
19864  LDFLAGS=$ac_save_LDFLAGS
19865
19866fi
19867
19868
19869
19870
19871
19872ac_ext=c
19873ac_cpp='$CPP $CPPFLAGS'
19874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19876ac_compiler_gnu=$ac_cv_c_compiler_gnu
19877
19878ax_pthread_ok=no
19879
19880
19881if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19882        save_CFLAGS="$CFLAGS"
19883        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19884        save_LIBS="$LIBS"
19885        LIBS="$PTHREAD_LIBS $LIBS"
19886        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19887$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19888        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889/* end confdefs.h.  */
19890
19891/* Override any GCC internal prototype to avoid an error.
19892   Use char because int might match the return type of a GCC
19893   builtin and then its argument prototype would still apply.  */
19894#ifdef __cplusplus
19895extern "C"
19896#endif
19897char pthread_join ();
19898int
19899main ()
19900{
19901return pthread_join ();
19902  ;
19903  return 0;
19904}
19905_ACEOF
19906if ac_fn_c_try_link "$LINENO"; then :
19907  ax_pthread_ok=yes
19908fi
19909rm -f core conftest.err conftest.$ac_objext \
19910    conftest$ac_exeext conftest.$ac_ext
19911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19912$as_echo "$ax_pthread_ok" >&6; }
19913        if test x"$ax_pthread_ok" = xno; then
19914                PTHREAD_LIBS=""
19915                PTHREAD_CFLAGS=""
19916        fi
19917        LIBS="$save_LIBS"
19918        CFLAGS="$save_CFLAGS"
19919fi
19920
19921
19922
19923ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19924
19925
19926
19927case "${host_cpu}-${host_os}" in
19928        *solaris*)
19929
19930
19931        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19932        ;;
19933
19934	*-darwin*)
19935	ax_pthread_flags="-pthread $ax_pthread_flags"
19936	;;
19937esac
19938
19939if test x"$ax_pthread_ok" = xno; then
19940for flag in $ax_pthread_flags; do
19941
19942        case $flag in
19943                none)
19944                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19945$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19946                ;;
19947
19948                -*)
19949                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19950$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19951                PTHREAD_CFLAGS="$flag"
19952                ;;
19953
19954		pthread-config)
19955		# Extract the first word of "pthread-config", so it can be a program name with args.
19956set dummy pthread-config; ac_word=$2
19957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19958$as_echo_n "checking for $ac_word... " >&6; }
19959if ${ac_cv_prog_ax_pthread_config+:} false; then :
19960  $as_echo_n "(cached) " >&6
19961else
19962  if test -n "$ax_pthread_config"; then
19963  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19964else
19965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19966for as_dir in $PATH
19967do
19968  IFS=$as_save_IFS
19969  test -z "$as_dir" && as_dir=.
19970    for ac_exec_ext in '' $ac_executable_extensions; do
19971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19972    ac_cv_prog_ax_pthread_config="yes"
19973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19974    break 2
19975  fi
19976done
19977  done
19978IFS=$as_save_IFS
19979
19980  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19981fi
19982fi
19983ax_pthread_config=$ac_cv_prog_ax_pthread_config
19984if test -n "$ax_pthread_config"; then
19985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19986$as_echo "$ax_pthread_config" >&6; }
19987else
19988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19989$as_echo "no" >&6; }
19990fi
19991
19992
19993		if test x"$ax_pthread_config" = xno; then continue; fi
19994		PTHREAD_CFLAGS="`pthread-config --cflags`"
19995		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19996		;;
19997
19998                *)
19999                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20000$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20001                PTHREAD_LIBS="-l$flag"
20002                ;;
20003        esac
20004
20005        save_LIBS="$LIBS"
20006        save_CFLAGS="$CFLAGS"
20007        LIBS="$PTHREAD_LIBS $LIBS"
20008        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20009
20010                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011/* end confdefs.h.  */
20012#include <pthread.h>
20013	             static void routine(void* a) {a=0;}
20014	             static void* start_routine(void* a) {return a;}
20015int
20016main ()
20017{
20018pthread_t th; pthread_attr_t attr;
20019                     pthread_create(&th,0,start_routine,0);
20020                     pthread_join(th, 0);
20021                     pthread_attr_init(&attr);
20022                     pthread_cleanup_push(routine, 0);
20023                     pthread_cleanup_pop(0);
20024  ;
20025  return 0;
20026}
20027_ACEOF
20028if ac_fn_c_try_link "$LINENO"; then :
20029  ax_pthread_ok=yes
20030fi
20031rm -f core conftest.err conftest.$ac_objext \
20032    conftest$ac_exeext conftest.$ac_ext
20033
20034        LIBS="$save_LIBS"
20035        CFLAGS="$save_CFLAGS"
20036
20037        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20038$as_echo "$ax_pthread_ok" >&6; }
20039        if test "x$ax_pthread_ok" = xyes; then
20040                break;
20041        fi
20042
20043        PTHREAD_LIBS=""
20044        PTHREAD_CFLAGS=""
20045done
20046fi
20047
20048if test "x$ax_pthread_ok" = xyes; then
20049        save_LIBS="$LIBS"
20050        LIBS="$PTHREAD_LIBS $LIBS"
20051        save_CFLAGS="$CFLAGS"
20052        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20053
20054        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20055$as_echo_n "checking for joinable pthread attribute... " >&6; }
20056	attr_name=unknown
20057	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20058	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059/* end confdefs.h.  */
20060#include <pthread.h>
20061int
20062main ()
20063{
20064int attr=$attr; return attr;
20065  ;
20066  return 0;
20067}
20068_ACEOF
20069if ac_fn_c_try_link "$LINENO"; then :
20070  attr_name=$attr; break
20071fi
20072rm -f core conftest.err conftest.$ac_objext \
20073    conftest$ac_exeext conftest.$ac_ext
20074	done
20075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20076$as_echo "$attr_name" >&6; }
20077        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20078
20079cat >>confdefs.h <<_ACEOF
20080#define PTHREAD_CREATE_JOINABLE $attr_name
20081_ACEOF
20082
20083        fi
20084
20085        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20086$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20087        flag=no
20088        case "${host_cpu}-${host_os}" in
20089            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20090            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20091        esac
20092        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20093$as_echo "${flag}" >&6; }
20094        if test "x$flag" != xno; then
20095            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20096        fi
20097
20098        LIBS="$save_LIBS"
20099        CFLAGS="$save_CFLAGS"
20100
20101        	if test x"$GCC" != xyes; then
20102          for ac_prog in xlc_r cc_r
20103do
20104  # Extract the first word of "$ac_prog", so it can be a program name with args.
20105set dummy $ac_prog; ac_word=$2
20106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20107$as_echo_n "checking for $ac_word... " >&6; }
20108if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20109  $as_echo_n "(cached) " >&6
20110else
20111  if test -n "$PTHREAD_CC"; then
20112  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20113else
20114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20115for as_dir in $PATH
20116do
20117  IFS=$as_save_IFS
20118  test -z "$as_dir" && as_dir=.
20119    for ac_exec_ext in '' $ac_executable_extensions; do
20120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20121    ac_cv_prog_PTHREAD_CC="$ac_prog"
20122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20123    break 2
20124  fi
20125done
20126  done
20127IFS=$as_save_IFS
20128
20129fi
20130fi
20131PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20132if test -n "$PTHREAD_CC"; then
20133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20134$as_echo "$PTHREAD_CC" >&6; }
20135else
20136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20137$as_echo "no" >&6; }
20138fi
20139
20140
20141  test -n "$PTHREAD_CC" && break
20142done
20143test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20144
20145        else
20146          PTHREAD_CC=$CC
20147	fi
20148else
20149        PTHREAD_CC="$CC"
20150fi
20151
20152
20153
20154
20155
20156if test x"$ax_pthread_ok" = xyes; then
20157
20158$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20159
20160        :
20161else
20162        ax_pthread_ok=no
20163
20164fi
20165ac_ext=c
20166ac_cpp='$CPP $CPPFLAGS'
20167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20169ac_compiler_gnu=$ac_cv_c_compiler_gnu
20170
20171
20172
20173
20174ac_ext=c
20175ac_cpp='$CPP $CPPFLAGS'
20176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20178ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179
20180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
20181$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
20182if ${ax_cv_c_compiler_ms+:} false; then :
20183  $as_echo_n "(cached) " >&6
20184else
20185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186/* end confdefs.h.  */
20187
20188int
20189main ()
20190{
20191#ifndef _MSC_VER
20192       choke me
20193#endif
20194
20195  ;
20196  return 0;
20197}
20198_ACEOF
20199if ac_fn_c_try_compile "$LINENO"; then :
20200  ax_compiler_ms=yes
20201else
20202  ax_compiler_ms=no
20203fi
20204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205ax_cv_c_compiler_ms=$ax_compiler_ms
20206
20207fi
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
20209$as_echo "$ax_cv_c_compiler_ms" >&6; }
20210if test X$ax_compiler_ms = Xno; then :
20211  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
20212fi
20213
20214if test "X$no_x" != "Xyes"; then :
20215  if test -n "$x_includes"; then :
20216  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
20217fi
20218       if test -n "$x_libraries"; then :
20219  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
20220fi
20221fi
20222
20223ax_save_CPPFLAGS="${CPPFLAGS}"
20224CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20225for ac_header in GL/gl.h OpenGL/gl.h
20226do :
20227  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20229if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20230  cat >>confdefs.h <<_ACEOF
20231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232_ACEOF
20233
20234fi
20235
20236done
20237
20238CPPFLAGS="${ax_save_CPPFLAGS}"
20239
20240for ac_header in windows.h
20241do :
20242  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
20243if test "x$ac_cv_header_windows_h" = xyes; then :
20244  cat >>confdefs.h <<_ACEOF
20245#define HAVE_WINDOWS_H 1
20246_ACEOF
20247
20248fi
20249
20250done
20251
20252
20253
20254
20255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
20256$as_echo_n "checking for OpenGL library... " >&6; }
20257if ${ax_cv_check_gl_libgl+:} false; then :
20258  $as_echo_n "(cached) " >&6
20259else
20260  ax_cv_check_gl_libgl="no"
20261case $host_cpu in
20262  x86_64) ax_check_gl_libdir=lib64 ;;
20263  *)      ax_check_gl_libdir=lib ;;
20264esac
20265ax_save_CPPFLAGS="${CPPFLAGS}"
20266CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20267ax_save_LIBS="${LIBS}"
20268LIBS=""
20269ax_check_libs="-lopengl32 -lGL"
20270for ax_lib in ${ax_check_libs}; do
20271  if test X$ax_compiler_ms = Xyes; then :
20272  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20273else
20274  ax_try_lib="${ax_lib}"
20275fi
20276  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278/* end confdefs.h.  */
20279
20280# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20281#   include <windows.h>
20282# endif
20283# ifdef HAVE_GL_GL_H
20284#   include <GL/gl.h>
20285# elif defined(HAVE_OPENGL_GL_H)
20286#   include <OpenGL/gl.h>
20287# else
20288#   error no gl.h
20289# endif
20290int
20291main ()
20292{
20293glBegin(0)
20294  ;
20295  return 0;
20296}
20297_ACEOF
20298if ac_fn_c_try_link "$LINENO"; then :
20299  ax_cv_check_gl_libgl="${ax_try_lib}"; break
20300else
20301  ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}"
20302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303/* end confdefs.h.  */
20304
20305# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20306#   include <windows.h>
20307# endif
20308# ifdef HAVE_GL_GL_H
20309#   include <GL/gl.h>
20310# elif defined(HAVE_OPENGL_GL_H)
20311#   include <OpenGL/gl.h>
20312# else
20313#   error no gl.h
20314# endif
20315int
20316main ()
20317{
20318glBegin(0)
20319  ;
20320  return 0;
20321}
20322_ACEOF
20323if ac_fn_c_try_link "$LINENO"; then :
20324  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
20325else
20326  ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}"
20327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328/* end confdefs.h.  */
20329
20330# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20331#   include <windows.h>
20332# endif
20333# ifdef HAVE_GL_GL_H
20334#   include <GL/gl.h>
20335# elif defined(HAVE_OPENGL_GL_H)
20336#   include <OpenGL/gl.h>
20337# else
20338#   error no gl.h
20339# endif
20340int
20341main ()
20342{
20343glBegin(0)
20344  ;
20345  return 0;
20346}
20347_ACEOF
20348if ac_fn_c_try_link "$LINENO"; then :
20349  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
20350fi
20351rm -f core conftest.err conftest.$ac_objext \
20352    conftest$ac_exeext conftest.$ac_ext
20353fi
20354rm -f core conftest.err conftest.$ac_objext \
20355    conftest$ac_exeext conftest.$ac_ext
20356fi
20357rm -f core conftest.err conftest.$ac_objext \
20358    conftest$ac_exeext conftest.$ac_ext
20359done
20360
20361if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
20362  LIBS='-framework OpenGL'
20363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364/* end confdefs.h.  */
20365
20366# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20367#   include <windows.h>
20368# endif
20369# ifdef HAVE_GL_GL_H
20370#   include <GL/gl.h>
20371# elif defined(HAVE_OPENGL_GL_H)
20372#   include <OpenGL/gl.h>
20373# else
20374#   error no gl.h
20375# endif
20376int
20377main ()
20378{
20379glBegin(0)
20380  ;
20381  return 0;
20382}
20383_ACEOF
20384if ac_fn_c_try_link "$LINENO"; then :
20385  ax_cv_check_gl_libgl="$LIBS"
20386fi
20387rm -f core conftest.err conftest.$ac_objext \
20388    conftest$ac_exeext conftest.$ac_ext
20389fi
20390
20391LIBS=${ax_save_LIBS}
20392CPPFLAGS=${ax_save_CPPFLAGS}
20393fi
20394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
20395$as_echo "$ax_cv_check_gl_libgl" >&6; }
20396
20397if test "X$ax_cv_check_gl_libgl" = Xno; then :
20398  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
20399else
20400  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
20401fi
20402ac_ext=c
20403ac_cpp='$CPP $CPPFLAGS'
20404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408
20409
20410
20411
20412
20413GLU_CFLAGS="${GL_CFLAGS}"
20414
20415ax_save_CPPFLAGS="${CPPFLAGS}"
20416CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20417for ac_header in GL/glu.h OpenGL/glu.h
20418do :
20419  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20420ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20422  cat >>confdefs.h <<_ACEOF
20423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20424_ACEOF
20425
20426fi
20427
20428done
20429
20430CPPFLAGS="${ax_save_CPPFLAGS}"
20431
20432
20433
20434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
20435$as_echo_n "checking for OpenGL Utility library... " >&6; }
20436if ${ax_cv_check_glu_libglu+:} false; then :
20437  $as_echo_n "(cached) " >&6
20438else
20439  ax_cv_check_glu_libglu="no"
20440ax_save_CPPFLAGS="${CPPFLAGS}"
20441CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20442ax_save_LIBS="${LIBS}"
20443
20444LIBS="${GL_LIBS} ${ax_save_LIBS}"
20445ac_ext=cpp
20446ac_cpp='$CXXCPP $CPPFLAGS'
20447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20450
20451if test X$ax_compiler_ms = Xyes; then :
20452  ac_ext=c
20453ac_cpp='$CPP $CPPFLAGS'
20454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456ac_compiler_gnu=$ac_cv_c_compiler_gnu
20457
20458fi
20459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460/* end confdefs.h.  */
20461
20462# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20463#   include <windows.h>
20464# endif
20465# ifdef HAVE_GL_GLU_H
20466#   include <GL/glu.h>
20467# elif defined(HAVE_OPENGL_GLU_H)
20468#   include <OpenGL/glu.h>
20469# else
20470#   error no glu.h
20471# endif
20472int
20473main ()
20474{
20475gluBeginCurve(0)
20476  ;
20477  return 0;
20478}
20479_ACEOF
20480if ac_fn_c_try_link "$LINENO"; then :
20481  ax_cv_check_glu_libglu=yes
20482else
20483  LIBS=""
20484ax_check_libs="-lglu32 -lGLU"
20485for ax_lib in ${ax_check_libs}; do
20486  if test X$ax_compiler_ms = Xyes; then :
20487  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20488else
20489  ax_try_lib="${ax_lib}"
20490fi
20491  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493/* end confdefs.h.  */
20494
20495# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20496#   include <windows.h>
20497# endif
20498# ifdef HAVE_GL_GLU_H
20499#   include <GL/glu.h>
20500# elif defined(HAVE_OPENGL_GLU_H)
20501#   include <OpenGL/glu.h>
20502# else
20503#   error no glu.h
20504# endif
20505int
20506main ()
20507{
20508gluBeginCurve(0)
20509  ;
20510  return 0;
20511}
20512_ACEOF
20513if ac_fn_c_try_link "$LINENO"; then :
20514  ax_cv_check_glu_libglu="${ax_try_lib}"; break
20515fi
20516rm -f core conftest.err conftest.$ac_objext \
20517    conftest$ac_exeext conftest.$ac_ext
20518done
20519
20520fi
20521rm -f core conftest.err conftest.$ac_objext \
20522    conftest$ac_exeext conftest.$ac_ext
20523if test X$ax_compiler_ms = Xyes; then :
20524  ac_ext=cpp
20525ac_cpp='$CXXCPP $CPPFLAGS'
20526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20529
20530fi
20531ac_ext=c
20532ac_cpp='$CPP $CPPFLAGS'
20533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20535ac_compiler_gnu=$ac_cv_c_compiler_gnu
20536
20537
20538LIBS=${ax_save_LIBS}
20539CPPFLAGS=${ax_save_CPPFLAGS}
20540fi
20541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
20542$as_echo "$ax_cv_check_glu_libglu" >&6; }
20543if test "X$ax_cv_check_glu_libglu" = Xno; then :
20544  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
20545else
20546  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
20547  GLU_LIBS="$GL_LIBS"
20548else
20549  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
20550fi
20551fi
20552
20553
20554
20555if test "X$ax_cv_check_glu_libglu" != Xno; then :
20556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
20557$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
20558if ${ax_cv_varargs_glu_tesscb+:} false; then :
20559  $as_echo_n "(cached) " >&6
20560else
20561  ax_cv_varargs_glu_tesscb=no
20562ax_save_CFLAGS="$CFLAGS"
20563CFLAGS="$GL_CFLAGS $CFLAGS"
20564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565/* end confdefs.h.  */
20566
20567# ifdef HAVE_GL_GLU_H
20568#   include <GL/glu.h>
20569# else
20570#   include <OpenGL/glu.h>
20571# endif
20572int
20573main ()
20574{
20575GLvoid (*func)(...); gluTessCallback(0, 0, func)
20576  ;
20577  return 0;
20578}
20579_ACEOF
20580if ac_fn_c_try_compile "$LINENO"; then :
20581  ax_cv_varargs_glu_tesscb=yes
20582fi
20583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584CFLAGS="$ax_save_CFLAGS"
20585fi
20586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
20587$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
20588if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
20589
20590$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
20591
20592fi
20593fi
20594
20595
20596
20597ax_save_CPPFLAGS="${CPPFLAGS}"
20598CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
20599for ac_header in GL/glut.h GLUT/glut.h
20600do :
20601  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20604  cat >>confdefs.h <<_ACEOF
20605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20606_ACEOF
20607
20608fi
20609
20610done
20611
20612CPPFLAGS="${ax_save_CPPFLAGS}"
20613
20614GLUT_CFLAGS=${GLU_CFLAGS}
20615GLUT_LIBS=${GLU_LIBS}
20616
20617
20618
20619if test X$no_x != Xyes; then :
20620  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
20621fi
20622
20623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
20624$as_echo_n "checking for GLUT library... " >&6; }
20625if ${ax_cv_check_glut_libglut+:} false; then :
20626  $as_echo_n "(cached) " >&6
20627else
20628  ax_cv_check_glut_libglut="no"
20629ac_ext=c
20630ac_cpp='$CPP $CPPFLAGS'
20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
20635ax_save_CPPFLAGS="${CPPFLAGS}"
20636CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
20637ax_save_LIBS="${LIBS}"
20638LIBS=""
20639ax_check_libs="-lglut32 -lglut"
20640for ax_lib in ${ax_check_libs}; do
20641  if test X$ax_compiler_ms = Xyes; then :
20642  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20643else
20644  ax_try_lib="${ax_lib}"
20645fi
20646  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
20647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648/* end confdefs.h.  */
20649
20650# if HAVE_WINDOWS_H && defined(_WIN32)
20651#   include <windows.h>
20652# endif
20653# ifdef HAVE_GL_GLUT_H
20654#   include <GL/glut.h>
20655# elif defined(HAVE_GLUT_GLUT_H)
20656#   include <GLUT/glut.h>
20657# else
20658#   error no glut.h
20659# endif
20660int
20661main ()
20662{
20663glutMainLoop()
20664  ;
20665  return 0;
20666}
20667_ACEOF
20668if ac_fn_c_try_link "$LINENO"; then :
20669  ax_cv_check_glut_libglut="${ax_try_lib}"; break
20670fi
20671rm -f core conftest.err conftest.$ac_objext \
20672    conftest$ac_exeext conftest.$ac_ext
20673done
20674
20675if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
20676  LIBS='-framework GLUT'
20677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678/* end confdefs.h.  */
20679
20680# if HAVE_WINDOWS_H && defined(_WIN32)
20681#   include <windows.h>
20682# endif
20683# ifdef HAVE_GL_GLUT_H
20684#   include <GL/glut.h>
20685# elif defined(HAVE_GLUT_GLUT_H)
20686#   include <GLUT/glut.h>
20687# else
20688#   error no glut.h
20689# endif
20690int
20691main ()
20692{
20693glutMainLoop()
20694  ;
20695  return 0;
20696}
20697_ACEOF
20698if ac_fn_c_try_link "$LINENO"; then :
20699  ax_cv_check_glut_libglut="$LIBS"
20700fi
20701rm -f core conftest.err conftest.$ac_objext \
20702    conftest$ac_exeext conftest.$ac_ext
20703fi
20704
20705CPPFLAGS="${ax_save_CPPFLAGS}"
20706LIBS="${ax_save_LIBS}"
20707ac_ext=c
20708ac_cpp='$CPP $CPPFLAGS'
20709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712
20713fi
20714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
20715$as_echo "$ax_cv_check_glut_libglut" >&6; }
20716
20717if test "X$ax_cv_check_glut_libglut" = Xno; then :
20718  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
20719else
20720  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
20721fi
20722
20723
20724
20725
20726
20727if test "$no_x" != "yes" -a "$no_gl" != "yes" \
20728	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
20729  HAVE_OPENGL=yes
20730fi
20731
20732 if test "$HAVE_OPENGL" = "yes"; then
20733  HAVE_OPENGL_TRUE=
20734  HAVE_OPENGL_FALSE='#'
20735else
20736  HAVE_OPENGL_TRUE='#'
20737  HAVE_OPENGL_FALSE=
20738fi
20739
20740
20741
20742# Check whether --enable-win32-io was given.
20743if test "${enable_win32_io+set}" = set; then :
20744  enableval=$enable_win32_io;
20745fi
20746
20747
20748win32_io_ok=no
20749case "${host_os}" in
20750    cygwin*)
20751        if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then
20752            win32_io_ok=yes
20753	fi
20754        ;;
20755    *)
20756        if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then
20757            win32_io_ok=yes
20758	fi
20759        ;;
20760esac
20761
20762if test "$win32_io_ok" = "yes" ; then
20763
20764$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
20765
20766fi
20767
20768 if test "$win32_io_ok" = yes; then
20769  WIN32_IO_TRUE=
20770  WIN32_IO_FALSE='#'
20771else
20772  WIN32_IO_TRUE='#'
20773  WIN32_IO_FALSE=
20774fi
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784# Check whether --enable-strip-chopping was given.
20785if test "${enable_strip_chopping+set}" = set; then :
20786  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
20787else
20788  HAVE_STRIPCHOP=yes
20789fi
20790
20791
20792# Check whether --with-default-strip-size was given.
20793if test "${with_default_strip_size+set}" = set; then :
20794  withval=$with_default_strip_size;
20795fi
20796
20797
20798if test "$HAVE_STRIPCHOP" = "yes" \
20799	-a "x$with_default_strip_size" != "xno"; then
20800
20801$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
20802
20803
20804  if test "x$with_default_strip_size" = "x" \
20805	  -o "x$with_default_strip_size" = "xyes"; then
20806    with_default_strip_size="8192"
20807  fi
20808
20809
20810cat >>confdefs.h <<_ACEOF
20811#define STRIP_SIZE_DEFAULT $with_default_strip_size
20812_ACEOF
20813
20814
20815fi
20816
20817
20818# Check whether --enable-defer-strile-load was given.
20819if test "${enable_defer_strile_load+set}" = set; then :
20820  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
20821else
20822  HAVE_DEFER_STRILE_LOAD=no
20823fi
20824
20825
20826if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
20827
20828$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
20829
20830
20831fi
20832
20833
20834# Check whether --enable-chunky-strip-read was given.
20835if test "${enable_chunky_strip_read+set}" = set; then :
20836  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
20837else
20838  HAVE_CHUNKY_STRIP_READ=no
20839fi
20840
20841
20842if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
20843
20844$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
20845
20846
20847fi
20848
20849
20850$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
20851
20852
20853
20854# Check whether --enable-extrasample-as-alpha was given.
20855if test "${enable_extrasample_as_alpha+set}" = set; then :
20856  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20857else
20858  HAVE_EXTRASAMPLE_AS_ALPHA=yes
20859fi
20860
20861
20862if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20863
20864$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
20865
20866fi
20867
20868
20869# Check whether --enable-check-ycbcr-subsampling was given.
20870if test "${enable_check_ycbcr_subsampling+set}" = set; then :
20871  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20872else
20873  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20874fi
20875
20876
20877if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20878
20879$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
20880
20881fi
20882
20883
20884
20885
20886ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20887
20888
20889ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff-4.pc libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile"
20890
20891cat >confcache <<\_ACEOF
20892# This file is a shell script that caches the results of configure
20893# tests run on this system so they can be shared between configure
20894# scripts and configure runs, see configure's option --config-cache.
20895# It is not useful on other systems.  If it contains results you don't
20896# want to keep, you may remove or edit it.
20897#
20898# config.status only pays attention to the cache file if you give it
20899# the --recheck option to rerun configure.
20900#
20901# `ac_cv_env_foo' variables (set or unset) will be overridden when
20902# loading this file, other *unset* `ac_cv_foo' will be assigned the
20903# following values.
20904
20905_ACEOF
20906
20907# The following way of writing the cache mishandles newlines in values,
20908# but we know of no workaround that is simple, portable, and efficient.
20909# So, we kill variables containing newlines.
20910# Ultrix sh set writes to stderr and can't be redirected directly,
20911# and sets the high bit in the cache file unless we assign to the vars.
20912(
20913  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20914    eval ac_val=\$$ac_var
20915    case $ac_val in #(
20916    *${as_nl}*)
20917      case $ac_var in #(
20918      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20919$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20920      esac
20921      case $ac_var in #(
20922      _ | IFS | as_nl) ;; #(
20923      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20924      *) { eval $ac_var=; unset $ac_var;} ;;
20925      esac ;;
20926    esac
20927  done
20928
20929  (set) 2>&1 |
20930    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20931    *${as_nl}ac_space=\ *)
20932      # `set' does not quote correctly, so add quotes: double-quote
20933      # substitution turns \\\\ into \\, and sed turns \\ into \.
20934      sed -n \
20935	"s/'/'\\\\''/g;
20936	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20937      ;; #(
20938    *)
20939      # `set' quotes correctly as required by POSIX, so do not add quotes.
20940      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20941      ;;
20942    esac |
20943    sort
20944) |
20945  sed '
20946     /^ac_cv_env_/b end
20947     t clear
20948     :clear
20949     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20950     t end
20951     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20952     :end' >>confcache
20953if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20954  if test -w "$cache_file"; then
20955    if test "x$cache_file" != "x/dev/null"; then
20956      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20957$as_echo "$as_me: updating cache $cache_file" >&6;}
20958      if test ! -f "$cache_file" || test -h "$cache_file"; then
20959	cat confcache >"$cache_file"
20960      else
20961        case $cache_file in #(
20962        */* | ?:*)
20963	  mv -f confcache "$cache_file"$$ &&
20964	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20965        *)
20966	  mv -f confcache "$cache_file" ;;
20967	esac
20968      fi
20969    fi
20970  else
20971    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20972$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20973  fi
20974fi
20975rm -f confcache
20976
20977test "x$prefix" = xNONE && prefix=$ac_default_prefix
20978# Let make expand exec_prefix.
20979test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20980
20981DEFS=-DHAVE_CONFIG_H
20982
20983ac_libobjs=
20984ac_ltlibobjs=
20985U=
20986for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20987  # 1. Remove the extension, and $U if already installed.
20988  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20989  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20990  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20991  #    will be set to the directory where LIBOBJS objects are built.
20992  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20993  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20994done
20995LIBOBJS=$ac_libobjs
20996
20997LTLIBOBJS=$ac_ltlibobjs
20998
20999
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21001$as_echo_n "checking that generated files are newer than configure... " >&6; }
21002   if test -n "$am_sleep_pid"; then
21003     # Hide warnings about reused PIDs.
21004     wait $am_sleep_pid 2>/dev/null
21005   fi
21006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21007$as_echo "done" >&6; }
21008 if test -n "$EXEEXT"; then
21009  am__EXEEXT_TRUE=
21010  am__EXEEXT_FALSE='#'
21011else
21012  am__EXEEXT_TRUE='#'
21013  am__EXEEXT_FALSE=
21014fi
21015
21016if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21017  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21018Usually this means the macro was only invoked conditionally." "$LINENO" 5
21019fi
21020if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21021  as_fn_error $? "conditional \"AMDEP\" was never defined.
21022Usually this means the macro was only invoked conditionally." "$LINENO" 5
21023fi
21024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21025  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21026Usually this means the macro was only invoked conditionally." "$LINENO" 5
21027fi
21028if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21029  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21030Usually this means the macro was only invoked conditionally." "$LINENO" 5
21031fi
21032if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21033  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21034Usually this means the macro was only invoked conditionally." "$LINENO" 5
21035fi
21036
21037if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
21038  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
21039Usually this means the macro was only invoked conditionally." "$LINENO" 5
21040fi
21041if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
21042  as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
21043Usually this means the macro was only invoked conditionally." "$LINENO" 5
21044fi
21045if test -z "${HAVE_JBIG_TRUE}" && test -z "${HAVE_JBIG_FALSE}"; then
21046  as_fn_error $? "conditional \"HAVE_JBIG\" was never defined.
21047Usually this means the macro was only invoked conditionally." "$LINENO" 5
21048fi
21049if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
21050  as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
21051Usually this means the macro was only invoked conditionally." "$LINENO" 5
21052fi
21053if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
21054  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
21055Usually this means the macro was only invoked conditionally." "$LINENO" 5
21056fi
21057if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
21058  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
21059Usually this means the macro was only invoked conditionally." "$LINENO" 5
21060fi
21061if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
21062  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
21063Usually this means the macro was only invoked conditionally." "$LINENO" 5
21064fi
21065
21066: "${CONFIG_STATUS=./config.status}"
21067ac_write_fail=0
21068ac_clean_files_save=$ac_clean_files
21069ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21070{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21071$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21072as_write_fail=0
21073cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21074#! $SHELL
21075# Generated by $as_me.
21076# Run this file to recreate the current configuration.
21077# Compiler output produced by configure, useful for debugging
21078# configure, is in config.log if it exists.
21079
21080debug=false
21081ac_cs_recheck=false
21082ac_cs_silent=false
21083
21084SHELL=\${CONFIG_SHELL-$SHELL}
21085export SHELL
21086_ASEOF
21087cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21088## -------------------- ##
21089## M4sh Initialization. ##
21090## -------------------- ##
21091
21092# Be more Bourne compatible
21093DUALCASE=1; export DUALCASE # for MKS sh
21094if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21095  emulate sh
21096  NULLCMD=:
21097  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21098  # is contrary to our usage.  Disable this feature.
21099  alias -g '${1+"$@"}'='"$@"'
21100  setopt NO_GLOB_SUBST
21101else
21102  case `(set -o) 2>/dev/null` in #(
21103  *posix*) :
21104    set -o posix ;; #(
21105  *) :
21106     ;;
21107esac
21108fi
21109
21110
21111as_nl='
21112'
21113export as_nl
21114# Printing a long string crashes Solaris 7 /usr/bin/printf.
21115as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21117as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21118# Prefer a ksh shell builtin over an external printf program on Solaris,
21119# but without wasting forks for bash or zsh.
21120if test -z "$BASH_VERSION$ZSH_VERSION" \
21121    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21122  as_echo='print -r --'
21123  as_echo_n='print -rn --'
21124elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21125  as_echo='printf %s\n'
21126  as_echo_n='printf %s'
21127else
21128  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21129    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21130    as_echo_n='/usr/ucb/echo -n'
21131  else
21132    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21133    as_echo_n_body='eval
21134      arg=$1;
21135      case $arg in #(
21136      *"$as_nl"*)
21137	expr "X$arg" : "X\\(.*\\)$as_nl";
21138	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21139      esac;
21140      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21141    '
21142    export as_echo_n_body
21143    as_echo_n='sh -c $as_echo_n_body as_echo'
21144  fi
21145  export as_echo_body
21146  as_echo='sh -c $as_echo_body as_echo'
21147fi
21148
21149# The user is always right.
21150if test "${PATH_SEPARATOR+set}" != set; then
21151  PATH_SEPARATOR=:
21152  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21153    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21154      PATH_SEPARATOR=';'
21155  }
21156fi
21157
21158
21159# IFS
21160# We need space, tab and new line, in precisely that order.  Quoting is
21161# there to prevent editors from complaining about space-tab.
21162# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21163# splitting by setting IFS to empty value.)
21164IFS=" ""	$as_nl"
21165
21166# Find who we are.  Look in the path if we contain no directory separator.
21167as_myself=
21168case $0 in #((
21169  *[\\/]* ) as_myself=$0 ;;
21170  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21171for as_dir in $PATH
21172do
21173  IFS=$as_save_IFS
21174  test -z "$as_dir" && as_dir=.
21175    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21176  done
21177IFS=$as_save_IFS
21178
21179     ;;
21180esac
21181# We did not find ourselves, most probably we were run as `sh COMMAND'
21182# in which case we are not to be found in the path.
21183if test "x$as_myself" = x; then
21184  as_myself=$0
21185fi
21186if test ! -f "$as_myself"; then
21187  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21188  exit 1
21189fi
21190
21191# Unset variables that we do not need and which cause bugs (e.g. in
21192# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21193# suppresses any "Segmentation fault" message there.  '((' could
21194# trigger a bug in pdksh 5.2.14.
21195for as_var in BASH_ENV ENV MAIL MAILPATH
21196do eval test x\${$as_var+set} = xset \
21197  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21198done
21199PS1='$ '
21200PS2='> '
21201PS4='+ '
21202
21203# NLS nuisances.
21204LC_ALL=C
21205export LC_ALL
21206LANGUAGE=C
21207export LANGUAGE
21208
21209# CDPATH.
21210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21211
21212
21213# as_fn_error STATUS ERROR [LINENO LOG_FD]
21214# ----------------------------------------
21215# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21216# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21217# script with STATUS, using 1 if that was 0.
21218as_fn_error ()
21219{
21220  as_status=$1; test $as_status -eq 0 && as_status=1
21221  if test "$4"; then
21222    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21223    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21224  fi
21225  $as_echo "$as_me: error: $2" >&2
21226  as_fn_exit $as_status
21227} # as_fn_error
21228
21229
21230# as_fn_set_status STATUS
21231# -----------------------
21232# Set $? to STATUS, without forking.
21233as_fn_set_status ()
21234{
21235  return $1
21236} # as_fn_set_status
21237
21238# as_fn_exit STATUS
21239# -----------------
21240# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21241as_fn_exit ()
21242{
21243  set +e
21244  as_fn_set_status $1
21245  exit $1
21246} # as_fn_exit
21247
21248# as_fn_unset VAR
21249# ---------------
21250# Portably unset VAR.
21251as_fn_unset ()
21252{
21253  { eval $1=; unset $1;}
21254}
21255as_unset=as_fn_unset
21256# as_fn_append VAR VALUE
21257# ----------------------
21258# Append the text in VALUE to the end of the definition contained in VAR. Take
21259# advantage of any shell optimizations that allow amortized linear growth over
21260# repeated appends, instead of the typical quadratic growth present in naive
21261# implementations.
21262if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21263  eval 'as_fn_append ()
21264  {
21265    eval $1+=\$2
21266  }'
21267else
21268  as_fn_append ()
21269  {
21270    eval $1=\$$1\$2
21271  }
21272fi # as_fn_append
21273
21274# as_fn_arith ARG...
21275# ------------------
21276# Perform arithmetic evaluation on the ARGs, and store the result in the
21277# global $as_val. Take advantage of shells that can avoid forks. The arguments
21278# must be portable across $(()) and expr.
21279if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21280  eval 'as_fn_arith ()
21281  {
21282    as_val=$(( $* ))
21283  }'
21284else
21285  as_fn_arith ()
21286  {
21287    as_val=`expr "$@" || test $? -eq 1`
21288  }
21289fi # as_fn_arith
21290
21291
21292if expr a : '\(a\)' >/dev/null 2>&1 &&
21293   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21294  as_expr=expr
21295else
21296  as_expr=false
21297fi
21298
21299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21300  as_basename=basename
21301else
21302  as_basename=false
21303fi
21304
21305if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21306  as_dirname=dirname
21307else
21308  as_dirname=false
21309fi
21310
21311as_me=`$as_basename -- "$0" ||
21312$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21313	 X"$0" : 'X\(//\)$' \| \
21314	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21315$as_echo X/"$0" |
21316    sed '/^.*\/\([^/][^/]*\)\/*$/{
21317	    s//\1/
21318	    q
21319	  }
21320	  /^X\/\(\/\/\)$/{
21321	    s//\1/
21322	    q
21323	  }
21324	  /^X\/\(\/\).*/{
21325	    s//\1/
21326	    q
21327	  }
21328	  s/.*/./; q'`
21329
21330# Avoid depending upon Character Ranges.
21331as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21332as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21333as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21334as_cr_digits='0123456789'
21335as_cr_alnum=$as_cr_Letters$as_cr_digits
21336
21337ECHO_C= ECHO_N= ECHO_T=
21338case `echo -n x` in #(((((
21339-n*)
21340  case `echo 'xy\c'` in
21341  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21342  xy)  ECHO_C='\c';;
21343  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21344       ECHO_T='	';;
21345  esac;;
21346*)
21347  ECHO_N='-n';;
21348esac
21349
21350rm -f conf$$ conf$$.exe conf$$.file
21351if test -d conf$$.dir; then
21352  rm -f conf$$.dir/conf$$.file
21353else
21354  rm -f conf$$.dir
21355  mkdir conf$$.dir 2>/dev/null
21356fi
21357if (echo >conf$$.file) 2>/dev/null; then
21358  if ln -s conf$$.file conf$$ 2>/dev/null; then
21359    as_ln_s='ln -s'
21360    # ... but there are two gotchas:
21361    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21362    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21363    # In both cases, we have to default to `cp -pR'.
21364    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21365      as_ln_s='cp -pR'
21366  elif ln conf$$.file conf$$ 2>/dev/null; then
21367    as_ln_s=ln
21368  else
21369    as_ln_s='cp -pR'
21370  fi
21371else
21372  as_ln_s='cp -pR'
21373fi
21374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21375rmdir conf$$.dir 2>/dev/null
21376
21377
21378# as_fn_mkdir_p
21379# -------------
21380# Create "$as_dir" as a directory, including parents if necessary.
21381as_fn_mkdir_p ()
21382{
21383
21384  case $as_dir in #(
21385  -*) as_dir=./$as_dir;;
21386  esac
21387  test -d "$as_dir" || eval $as_mkdir_p || {
21388    as_dirs=
21389    while :; do
21390      case $as_dir in #(
21391      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21392      *) as_qdir=$as_dir;;
21393      esac
21394      as_dirs="'$as_qdir' $as_dirs"
21395      as_dir=`$as_dirname -- "$as_dir" ||
21396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21397	 X"$as_dir" : 'X\(//\)[^/]' \| \
21398	 X"$as_dir" : 'X\(//\)$' \| \
21399	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21400$as_echo X"$as_dir" |
21401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21402	    s//\1/
21403	    q
21404	  }
21405	  /^X\(\/\/\)[^/].*/{
21406	    s//\1/
21407	    q
21408	  }
21409	  /^X\(\/\/\)$/{
21410	    s//\1/
21411	    q
21412	  }
21413	  /^X\(\/\).*/{
21414	    s//\1/
21415	    q
21416	  }
21417	  s/.*/./; q'`
21418      test -d "$as_dir" && break
21419    done
21420    test -z "$as_dirs" || eval "mkdir $as_dirs"
21421  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21422
21423
21424} # as_fn_mkdir_p
21425if mkdir -p . 2>/dev/null; then
21426  as_mkdir_p='mkdir -p "$as_dir"'
21427else
21428  test -d ./-p && rmdir ./-p
21429  as_mkdir_p=false
21430fi
21431
21432
21433# as_fn_executable_p FILE
21434# -----------------------
21435# Test if FILE is an executable regular file.
21436as_fn_executable_p ()
21437{
21438  test -f "$1" && test -x "$1"
21439} # as_fn_executable_p
21440as_test_x='test -x'
21441as_executable_p=as_fn_executable_p
21442
21443# Sed expression to map a string onto a valid CPP name.
21444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21445
21446# Sed expression to map a string onto a valid variable name.
21447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21448
21449
21450exec 6>&1
21451## ----------------------------------- ##
21452## Main body of $CONFIG_STATUS script. ##
21453## ----------------------------------- ##
21454_ASEOF
21455test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21456
21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458# Save the log message, to keep $0 and so on meaningful, and to
21459# report actual input values of CONFIG_FILES etc. instead of their
21460# values after options handling.
21461ac_log="
21462This file was extended by LibTIFF Software $as_me 4.0.6, which was
21463generated by GNU Autoconf 2.69.  Invocation command line was
21464
21465  CONFIG_FILES    = $CONFIG_FILES
21466  CONFIG_HEADERS  = $CONFIG_HEADERS
21467  CONFIG_LINKS    = $CONFIG_LINKS
21468  CONFIG_COMMANDS = $CONFIG_COMMANDS
21469  $ $0 $@
21470
21471on `(hostname || uname -n) 2>/dev/null | sed 1q`
21472"
21473
21474_ACEOF
21475
21476case $ac_config_files in *"
21477"*) set x $ac_config_files; shift; ac_config_files=$*;;
21478esac
21479
21480case $ac_config_headers in *"
21481"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21482esac
21483
21484
21485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486# Files that config.status was made for.
21487config_files="$ac_config_files"
21488config_headers="$ac_config_headers"
21489config_commands="$ac_config_commands"
21490
21491_ACEOF
21492
21493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21494ac_cs_usage="\
21495\`$as_me' instantiates files and other configuration actions
21496from templates according to the current configuration.  Unless the files
21497and actions are specified as TAGs, all are instantiated by default.
21498
21499Usage: $0 [OPTION]... [TAG]...
21500
21501  -h, --help       print this help, then exit
21502  -V, --version    print version number and configuration settings, then exit
21503      --config     print configuration, then exit
21504  -q, --quiet, --silent
21505                   do not print progress messages
21506  -d, --debug      don't remove temporary files
21507      --recheck    update $as_me by reconfiguring in the same conditions
21508      --file=FILE[:TEMPLATE]
21509                   instantiate the configuration file FILE
21510      --header=FILE[:TEMPLATE]
21511                   instantiate the configuration header FILE
21512
21513Configuration files:
21514$config_files
21515
21516Configuration headers:
21517$config_headers
21518
21519Configuration commands:
21520$config_commands
21521
21522Report bugs to <[email protected]>."
21523
21524_ACEOF
21525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21526ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21527ac_cs_version="\\
21528LibTIFF Software config.status 4.0.6
21529configured by $0, generated by GNU Autoconf 2.69,
21530  with options \\"\$ac_cs_config\\"
21531
21532Copyright (C) 2012 Free Software Foundation, Inc.
21533This config.status script is free software; the Free Software Foundation
21534gives unlimited permission to copy, distribute and modify it."
21535
21536ac_pwd='$ac_pwd'
21537srcdir='$srcdir'
21538INSTALL='$INSTALL'
21539MKDIR_P='$MKDIR_P'
21540AWK='$AWK'
21541test -n "\$AWK" || AWK=awk
21542_ACEOF
21543
21544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21545# The default lists apply if the user does not specify any file.
21546ac_need_defaults=:
21547while test $# != 0
21548do
21549  case $1 in
21550  --*=?*)
21551    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21552    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21553    ac_shift=:
21554    ;;
21555  --*=)
21556    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21557    ac_optarg=
21558    ac_shift=:
21559    ;;
21560  *)
21561    ac_option=$1
21562    ac_optarg=$2
21563    ac_shift=shift
21564    ;;
21565  esac
21566
21567  case $ac_option in
21568  # Handling of the options.
21569  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21570    ac_cs_recheck=: ;;
21571  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21572    $as_echo "$ac_cs_version"; exit ;;
21573  --config | --confi | --conf | --con | --co | --c )
21574    $as_echo "$ac_cs_config"; exit ;;
21575  --debug | --debu | --deb | --de | --d | -d )
21576    debug=: ;;
21577  --file | --fil | --fi | --f )
21578    $ac_shift
21579    case $ac_optarg in
21580    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21581    '') as_fn_error $? "missing file argument" ;;
21582    esac
21583    as_fn_append CONFIG_FILES " '$ac_optarg'"
21584    ac_need_defaults=false;;
21585  --header | --heade | --head | --hea )
21586    $ac_shift
21587    case $ac_optarg in
21588    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21589    esac
21590    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21591    ac_need_defaults=false;;
21592  --he | --h)
21593    # Conflict between --help and --header
21594    as_fn_error $? "ambiguous option: \`$1'
21595Try \`$0 --help' for more information.";;
21596  --help | --hel | -h )
21597    $as_echo "$ac_cs_usage"; exit ;;
21598  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21599  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21600    ac_cs_silent=: ;;
21601
21602  # This is an error.
21603  -*) as_fn_error $? "unrecognized option: \`$1'
21604Try \`$0 --help' for more information." ;;
21605
21606  *) as_fn_append ac_config_targets " $1"
21607     ac_need_defaults=false ;;
21608
21609  esac
21610  shift
21611done
21612
21613ac_configure_extra_args=
21614
21615if $ac_cs_silent; then
21616  exec 6>/dev/null
21617  ac_configure_extra_args="$ac_configure_extra_args --silent"
21618fi
21619
21620_ACEOF
21621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21622if \$ac_cs_recheck; then
21623  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21624  shift
21625  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21626  CONFIG_SHELL='$SHELL'
21627  export CONFIG_SHELL
21628  exec "\$@"
21629fi
21630
21631_ACEOF
21632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21633exec 5>>config.log
21634{
21635  echo
21636  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21637## Running $as_me. ##
21638_ASBOX
21639  $as_echo "$ac_log"
21640} >&5
21641
21642_ACEOF
21643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21644#
21645# INIT-COMMANDS
21646#
21647AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21648
21649
21650# The HP-UX ksh and POSIX shell print the target directory to stdout
21651# if CDPATH is set.
21652(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21653
21654sed_quote_subst='$sed_quote_subst'
21655double_quote_subst='$double_quote_subst'
21656delay_variable_subst='$delay_variable_subst'
21657macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21658macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21659AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21660DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21661OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21662enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21663enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21664pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21665enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21666shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21667SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21668ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21669PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21670host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21671host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21672host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21673build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21674build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21675build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21676SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21677Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21678GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21679EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21680FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21681LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21682NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21683LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21684max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21685ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21686exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21687lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21688lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21689lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21690lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21691lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21692reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21693reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21694deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21695file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21696file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21697want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21698sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21699AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21700AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21701archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21702STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21703RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21704old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21705old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21706old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21707lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21708CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21709CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21710compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21711GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21712lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21713lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21714lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21715lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21716lt_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"`'
21717lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21718nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21719lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21720lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21721objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21722MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21723lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21724lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21725lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21726lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21727lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21728need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21729MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21730DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21731NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21732LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21733OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21734OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21735libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21736shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21737extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21738archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21739enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21740export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21741whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21742compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21743old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21744old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21745archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21746archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21747module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21748module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21749with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21750allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21751no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21752hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21753hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21754hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21755hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21756hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21757hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21758hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21759inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21760link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21761always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21762export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21763exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21764include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21765prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21766postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21767file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21768variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21769need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21770need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21771version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21772runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21773shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21774shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21775libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21776library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21777soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21778install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21779postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21780postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21781finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21782finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21783hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21784sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21785sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21786hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21787enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21788enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21789enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21790old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21791striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21792compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21793predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21794postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21795predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21796postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21797compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21798LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21799reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21800reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21801old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21802compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21803GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21804lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21805lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21806lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21807lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21808lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21809archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21810enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21811export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21812whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21813compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21814old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21815old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21816archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21817archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21818module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21819module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21820with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21821allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21822no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21823hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21824hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21825hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21826hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21827hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21828hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21829hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21830inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21831link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21832always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21833export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21834exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21835include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21836prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21837postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21838file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21839hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21840compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21841predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21842postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21843predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21844postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21845compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21846
21847LTCC='$LTCC'
21848LTCFLAGS='$LTCFLAGS'
21849compiler='$compiler_DEFAULT'
21850
21851# A function that is used when there is no print builtin or printf.
21852func_fallback_echo ()
21853{
21854  eval 'cat <<_LTECHO_EOF
21855\$1
21856_LTECHO_EOF'
21857}
21858
21859# Quote evaled strings.
21860for var in AS \
21861DLLTOOL \
21862OBJDUMP \
21863SHELL \
21864ECHO \
21865PATH_SEPARATOR \
21866SED \
21867GREP \
21868EGREP \
21869FGREP \
21870LD \
21871NM \
21872LN_S \
21873lt_SP2NL \
21874lt_NL2SP \
21875reload_flag \
21876deplibs_check_method \
21877file_magic_cmd \
21878file_magic_glob \
21879want_nocaseglob \
21880sharedlib_from_linklib_cmd \
21881AR \
21882AR_FLAGS \
21883archiver_list_spec \
21884STRIP \
21885RANLIB \
21886CC \
21887CFLAGS \
21888compiler \
21889lt_cv_sys_global_symbol_pipe \
21890lt_cv_sys_global_symbol_to_cdecl \
21891lt_cv_sys_global_symbol_to_import \
21892lt_cv_sys_global_symbol_to_c_name_address \
21893lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21894lt_cv_nm_interface \
21895nm_file_list_spec \
21896lt_cv_truncate_bin \
21897lt_prog_compiler_no_builtin_flag \
21898lt_prog_compiler_pic \
21899lt_prog_compiler_wl \
21900lt_prog_compiler_static \
21901lt_cv_prog_compiler_c_o \
21902need_locks \
21903MANIFEST_TOOL \
21904DSYMUTIL \
21905NMEDIT \
21906LIPO \
21907OTOOL \
21908OTOOL64 \
21909shrext_cmds \
21910export_dynamic_flag_spec \
21911whole_archive_flag_spec \
21912compiler_needs_object \
21913with_gnu_ld \
21914allow_undefined_flag \
21915no_undefined_flag \
21916hardcode_libdir_flag_spec \
21917hardcode_libdir_separator \
21918exclude_expsyms \
21919include_expsyms \
21920file_list_spec \
21921variables_saved_for_relink \
21922libname_spec \
21923library_names_spec \
21924soname_spec \
21925install_override_mode \
21926finish_eval \
21927old_striplib \
21928striplib \
21929compiler_lib_search_dirs \
21930predep_objects \
21931postdep_objects \
21932predeps \
21933postdeps \
21934compiler_lib_search_path \
21935LD_CXX \
21936reload_flag_CXX \
21937compiler_CXX \
21938lt_prog_compiler_no_builtin_flag_CXX \
21939lt_prog_compiler_pic_CXX \
21940lt_prog_compiler_wl_CXX \
21941lt_prog_compiler_static_CXX \
21942lt_cv_prog_compiler_c_o_CXX \
21943export_dynamic_flag_spec_CXX \
21944whole_archive_flag_spec_CXX \
21945compiler_needs_object_CXX \
21946with_gnu_ld_CXX \
21947allow_undefined_flag_CXX \
21948no_undefined_flag_CXX \
21949hardcode_libdir_flag_spec_CXX \
21950hardcode_libdir_separator_CXX \
21951exclude_expsyms_CXX \
21952include_expsyms_CXX \
21953file_list_spec_CXX \
21954compiler_lib_search_dirs_CXX \
21955predep_objects_CXX \
21956postdep_objects_CXX \
21957predeps_CXX \
21958postdeps_CXX \
21959compiler_lib_search_path_CXX; do
21960    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21961    *[\\\\\\\`\\"\\\$]*)
21962      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21963      ;;
21964    *)
21965      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21966      ;;
21967    esac
21968done
21969
21970# Double-quote double-evaled strings.
21971for var in reload_cmds \
21972old_postinstall_cmds \
21973old_postuninstall_cmds \
21974old_archive_cmds \
21975extract_expsyms_cmds \
21976old_archive_from_new_cmds \
21977old_archive_from_expsyms_cmds \
21978archive_cmds \
21979archive_expsym_cmds \
21980module_cmds \
21981module_expsym_cmds \
21982export_symbols_cmds \
21983prelink_cmds \
21984postlink_cmds \
21985postinstall_cmds \
21986postuninstall_cmds \
21987finish_cmds \
21988sys_lib_search_path_spec \
21989sys_lib_dlsearch_path_spec \
21990reload_cmds_CXX \
21991old_archive_cmds_CXX \
21992old_archive_from_new_cmds_CXX \
21993old_archive_from_expsyms_cmds_CXX \
21994archive_cmds_CXX \
21995archive_expsym_cmds_CXX \
21996module_cmds_CXX \
21997module_expsym_cmds_CXX \
21998export_symbols_cmds_CXX \
21999prelink_cmds_CXX \
22000postlink_cmds_CXX; do
22001    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22002    *[\\\\\\\`\\"\\\$]*)
22003      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22004      ;;
22005    *)
22006      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22007      ;;
22008    esac
22009done
22010
22011ac_aux_dir='$ac_aux_dir'
22012
22013# See if we are running on zsh, and set the options that allow our
22014# commands through without removal of \ escapes INIT.
22015if test -n "\${ZSH_VERSION+set}"; then
22016   setopt NO_GLOB_SUBST
22017fi
22018
22019
22020    PACKAGE='$PACKAGE'
22021    VERSION='$VERSION'
22022    RM='$RM'
22023    ofile='$ofile'
22024
22025
22026
22027
22028
22029
22030_ACEOF
22031
22032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033
22034# Handling of arguments.
22035for ac_config_target in $ac_config_targets
22036do
22037  case $ac_config_target in
22038    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22039    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22040    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
22041    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
22042    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22043    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
22044    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
22045    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
22046    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
22047    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
22048    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
22049    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
22050    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
22051    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
22052    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
22053    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
22054    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
22055    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
22056    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
22057    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
22058    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
22059    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
22060    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22061    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
22062    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22063    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22064
22065  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22066  esac
22067done
22068
22069
22070# If the user did not use the arguments to specify the items to instantiate,
22071# then the envvar interface is used.  Set only those that are not.
22072# We use the long form for the default assignment because of an extremely
22073# bizarre bug on SunOS 4.1.3.
22074if $ac_need_defaults; then
22075  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22076  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22077  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22078fi
22079
22080# Have a temporary directory for convenience.  Make it in the build tree
22081# simply because there is no reason against having it here, and in addition,
22082# creating and moving files from /tmp can sometimes cause problems.
22083# Hook for its removal unless debugging.
22084# Note that there is a small window in which the directory will not be cleaned:
22085# after its creation but before its name has been assigned to `$tmp'.
22086$debug ||
22087{
22088  tmp= ac_tmp=
22089  trap 'exit_status=$?
22090  : "${ac_tmp:=$tmp}"
22091  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22092' 0
22093  trap 'as_fn_exit 1' 1 2 13 15
22094}
22095# Create a (secure) tmp directory for tmp files.
22096
22097{
22098  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22099  test -d "$tmp"
22100}  ||
22101{
22102  tmp=./conf$$-$RANDOM
22103  (umask 077 && mkdir "$tmp")
22104} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22105ac_tmp=$tmp
22106
22107# Set up the scripts for CONFIG_FILES section.
22108# No need to generate them if there are no CONFIG_FILES.
22109# This happens for instance with `./config.status config.h'.
22110if test -n "$CONFIG_FILES"; then
22111
22112
22113ac_cr=`echo X | tr X '\015'`
22114# On cygwin, bash can eat \r inside `` if the user requested igncr.
22115# But we know of no other shell where ac_cr would be empty at this
22116# point, so we can use a bashism as a fallback.
22117if test "x$ac_cr" = x; then
22118  eval ac_cr=\$\'\\r\'
22119fi
22120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22122  ac_cs_awk_cr='\\r'
22123else
22124  ac_cs_awk_cr=$ac_cr
22125fi
22126
22127echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22128_ACEOF
22129
22130
22131{
22132  echo "cat >conf$$subs.awk <<_ACEOF" &&
22133  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22134  echo "_ACEOF"
22135} >conf$$subs.sh ||
22136  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22137ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22138ac_delim='%!_!# '
22139for ac_last_try in false false false false false :; do
22140  . ./conf$$subs.sh ||
22141    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22142
22143  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22144  if test $ac_delim_n = $ac_delim_num; then
22145    break
22146  elif $ac_last_try; then
22147    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22148  else
22149    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22150  fi
22151done
22152rm -f conf$$subs.sh
22153
22154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22155cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22156_ACEOF
22157sed -n '
22158h
22159s/^/S["/; s/!.*/"]=/
22160p
22161g
22162s/^[^!]*!//
22163:repl
22164t repl
22165s/'"$ac_delim"'$//
22166t delim
22167:nl
22168h
22169s/\(.\{148\}\)..*/\1/
22170t more1
22171s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22172p
22173n
22174b repl
22175:more1
22176s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22177p
22178g
22179s/.\{148\}//
22180t nl
22181:delim
22182h
22183s/\(.\{148\}\)..*/\1/
22184t more2
22185s/["\\]/\\&/g; s/^/"/; s/$/"/
22186p
22187b
22188:more2
22189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22190p
22191g
22192s/.\{148\}//
22193t delim
22194' <conf$$subs.awk | sed '
22195/^[^""]/{
22196  N
22197  s/\n//
22198}
22199' >>$CONFIG_STATUS || ac_write_fail=1
22200rm -f conf$$subs.awk
22201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22202_ACAWK
22203cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22204  for (key in S) S_is_set[key] = 1
22205  FS = ""
22206
22207}
22208{
22209  line = $ 0
22210  nfields = split(line, field, "@")
22211  substed = 0
22212  len = length(field[1])
22213  for (i = 2; i < nfields; i++) {
22214    key = field[i]
22215    keylen = length(key)
22216    if (S_is_set[key]) {
22217      value = S[key]
22218      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22219      len += length(value) + length(field[++i])
22220      substed = 1
22221    } else
22222      len += 1 + keylen
22223  }
22224
22225  print line
22226}
22227
22228_ACAWK
22229_ACEOF
22230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22232  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22233else
22234  cat
22235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22236  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22237_ACEOF
22238
22239# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22241# trailing colons and then remove the whole line if VPATH becomes empty
22242# (actually we leave an empty line to preserve line numbers).
22243if test "x$srcdir" = x.; then
22244  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22245h
22246s///
22247s/^/:/
22248s/[	 ]*$/:/
22249s/:\$(srcdir):/:/g
22250s/:\${srcdir}:/:/g
22251s/:@srcdir@:/:/g
22252s/^:*//
22253s/:*$//
22254x
22255s/\(=[	 ]*\).*/\1/
22256G
22257s/\n//
22258s/^[^=]*=[	 ]*$//
22259}'
22260fi
22261
22262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22263fi # test -n "$CONFIG_FILES"
22264
22265# Set up the scripts for CONFIG_HEADERS section.
22266# No need to generate them if there are no CONFIG_HEADERS.
22267# This happens for instance with `./config.status Makefile'.
22268if test -n "$CONFIG_HEADERS"; then
22269cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22270BEGIN {
22271_ACEOF
22272
22273# Transform confdefs.h into an awk script `defines.awk', embedded as
22274# here-document in config.status, that substitutes the proper values into
22275# config.h.in to produce config.h.
22276
22277# Create a delimiter string that does not exist in confdefs.h, to ease
22278# handling of long lines.
22279ac_delim='%!_!# '
22280for ac_last_try in false false :; do
22281  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22282  if test -z "$ac_tt"; then
22283    break
22284  elif $ac_last_try; then
22285    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22286  else
22287    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22288  fi
22289done
22290
22291# For the awk script, D is an array of macro values keyed by name,
22292# likewise P contains macro parameters if any.  Preserve backslash
22293# newline sequences.
22294
22295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22296sed -n '
22297s/.\{148\}/&'"$ac_delim"'/g
22298t rset
22299:rset
22300s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22301t def
22302d
22303:def
22304s/\\$//
22305t bsnl
22306s/["\\]/\\&/g
22307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22308D["\1"]=" \3"/p
22309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22310d
22311:bsnl
22312s/["\\]/\\&/g
22313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22314D["\1"]=" \3\\\\\\n"\\/p
22315t cont
22316s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22317t cont
22318d
22319:cont
22320n
22321s/.\{148\}/&'"$ac_delim"'/g
22322t clear
22323:clear
22324s/\\$//
22325t bsnlc
22326s/["\\]/\\&/g; s/^/"/; s/$/"/p
22327d
22328:bsnlc
22329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22330b cont
22331' <confdefs.h | sed '
22332s/'"$ac_delim"'/"\\\
22333"/g' >>$CONFIG_STATUS || ac_write_fail=1
22334
22335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22336  for (key in D) D_is_set[key] = 1
22337  FS = ""
22338}
22339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22340  line = \$ 0
22341  split(line, arg, " ")
22342  if (arg[1] == "#") {
22343    defundef = arg[2]
22344    mac1 = arg[3]
22345  } else {
22346    defundef = substr(arg[1], 2)
22347    mac1 = arg[2]
22348  }
22349  split(mac1, mac2, "(") #)
22350  macro = mac2[1]
22351  prefix = substr(line, 1, index(line, defundef) - 1)
22352  if (D_is_set[macro]) {
22353    # Preserve the white space surrounding the "#".
22354    print prefix "define", macro P[macro] D[macro]
22355    next
22356  } else {
22357    # Replace #undef with comments.  This is necessary, for example,
22358    # in the case of _POSIX_SOURCE, which is predefined and required
22359    # on some systems where configure will not decide to define it.
22360    if (defundef == "undef") {
22361      print "/*", prefix defundef, macro, "*/"
22362      next
22363    }
22364  }
22365}
22366{ print }
22367_ACAWK
22368_ACEOF
22369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22370  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22371fi # test -n "$CONFIG_HEADERS"
22372
22373
22374eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22375shift
22376for ac_tag
22377do
22378  case $ac_tag in
22379  :[FHLC]) ac_mode=$ac_tag; continue;;
22380  esac
22381  case $ac_mode$ac_tag in
22382  :[FHL]*:*);;
22383  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22384  :[FH]-) ac_tag=-:-;;
22385  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22386  esac
22387  ac_save_IFS=$IFS
22388  IFS=:
22389  set x $ac_tag
22390  IFS=$ac_save_IFS
22391  shift
22392  ac_file=$1
22393  shift
22394
22395  case $ac_mode in
22396  :L) ac_source=$1;;
22397  :[FH])
22398    ac_file_inputs=
22399    for ac_f
22400    do
22401      case $ac_f in
22402      -) ac_f="$ac_tmp/stdin";;
22403      *) # Look for the file first in the build tree, then in the source tree
22404	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22405	 # because $ac_f cannot contain `:'.
22406	 test -f "$ac_f" ||
22407	   case $ac_f in
22408	   [\\/$]*) false;;
22409	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22410	   esac ||
22411	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22412      esac
22413      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22414      as_fn_append ac_file_inputs " '$ac_f'"
22415    done
22416
22417    # Let's still pretend it is `configure' which instantiates (i.e., don't
22418    # use $as_me), people would be surprised to read:
22419    #    /* config.h.  Generated by config.status.  */
22420    configure_input='Generated from '`
22421	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22422	`' by configure.'
22423    if test x"$ac_file" != x-; then
22424      configure_input="$ac_file.  $configure_input"
22425      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22426$as_echo "$as_me: creating $ac_file" >&6;}
22427    fi
22428    # Neutralize special characters interpreted by sed in replacement strings.
22429    case $configure_input in #(
22430    *\&* | *\|* | *\\* )
22431       ac_sed_conf_input=`$as_echo "$configure_input" |
22432       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22433    *) ac_sed_conf_input=$configure_input;;
22434    esac
22435
22436    case $ac_tag in
22437    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22438      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22439    esac
22440    ;;
22441  esac
22442
22443  ac_dir=`$as_dirname -- "$ac_file" ||
22444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22445	 X"$ac_file" : 'X\(//\)[^/]' \| \
22446	 X"$ac_file" : 'X\(//\)$' \| \
22447	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22448$as_echo X"$ac_file" |
22449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22450	    s//\1/
22451	    q
22452	  }
22453	  /^X\(\/\/\)[^/].*/{
22454	    s//\1/
22455	    q
22456	  }
22457	  /^X\(\/\/\)$/{
22458	    s//\1/
22459	    q
22460	  }
22461	  /^X\(\/\).*/{
22462	    s//\1/
22463	    q
22464	  }
22465	  s/.*/./; q'`
22466  as_dir="$ac_dir"; as_fn_mkdir_p
22467  ac_builddir=.
22468
22469case "$ac_dir" in
22470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22471*)
22472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22473  # A ".." for each directory in $ac_dir_suffix.
22474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22475  case $ac_top_builddir_sub in
22476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22478  esac ;;
22479esac
22480ac_abs_top_builddir=$ac_pwd
22481ac_abs_builddir=$ac_pwd$ac_dir_suffix
22482# for backward compatibility:
22483ac_top_builddir=$ac_top_build_prefix
22484
22485case $srcdir in
22486  .)  # We are building in place.
22487    ac_srcdir=.
22488    ac_top_srcdir=$ac_top_builddir_sub
22489    ac_abs_top_srcdir=$ac_pwd ;;
22490  [\\/]* | ?:[\\/]* )  # Absolute name.
22491    ac_srcdir=$srcdir$ac_dir_suffix;
22492    ac_top_srcdir=$srcdir
22493    ac_abs_top_srcdir=$srcdir ;;
22494  *) # Relative name.
22495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22496    ac_top_srcdir=$ac_top_build_prefix$srcdir
22497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22498esac
22499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22500
22501
22502  case $ac_mode in
22503  :F)
22504  #
22505  # CONFIG_FILE
22506  #
22507
22508  case $INSTALL in
22509  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22510  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22511  esac
22512  ac_MKDIR_P=$MKDIR_P
22513  case $MKDIR_P in
22514  [\\/$]* | ?:[\\/]* ) ;;
22515  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22516  esac
22517_ACEOF
22518
22519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22520# If the template does not know about datarootdir, expand it.
22521# FIXME: This hack should be removed a few years after 2.60.
22522ac_datarootdir_hack=; ac_datarootdir_seen=
22523ac_sed_dataroot='
22524/datarootdir/ {
22525  p
22526  q
22527}
22528/@datadir@/p
22529/@docdir@/p
22530/@infodir@/p
22531/@localedir@/p
22532/@mandir@/p'
22533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22534*datarootdir*) ac_datarootdir_seen=yes;;
22535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22536  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22538_ACEOF
22539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22540  ac_datarootdir_hack='
22541  s&@datadir@&$datadir&g
22542  s&@docdir@&$docdir&g
22543  s&@infodir@&$infodir&g
22544  s&@localedir@&$localedir&g
22545  s&@mandir@&$mandir&g
22546  s&\\\${datarootdir}&$datarootdir&g' ;;
22547esac
22548_ACEOF
22549
22550# Neutralize VPATH when `$srcdir' = `.'.
22551# Shell code in configure.ac might set extrasub.
22552# FIXME: do we really want to maintain this feature?
22553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22554ac_sed_extra="$ac_vpsub
22555$extrasub
22556_ACEOF
22557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22558:t
22559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22560s|@configure_input@|$ac_sed_conf_input|;t t
22561s&@top_builddir@&$ac_top_builddir_sub&;t t
22562s&@top_build_prefix@&$ac_top_build_prefix&;t t
22563s&@srcdir@&$ac_srcdir&;t t
22564s&@abs_srcdir@&$ac_abs_srcdir&;t t
22565s&@top_srcdir@&$ac_top_srcdir&;t t
22566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22567s&@builddir@&$ac_builddir&;t t
22568s&@abs_builddir@&$ac_abs_builddir&;t t
22569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22570s&@INSTALL@&$ac_INSTALL&;t t
22571s&@MKDIR_P@&$ac_MKDIR_P&;t t
22572$ac_datarootdir_hack
22573"
22574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22575  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22576
22577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22578  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22579  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22580      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22582which seems to be undefined.  Please make sure it is defined" >&5
22583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22584which seems to be undefined.  Please make sure it is defined" >&2;}
22585
22586  rm -f "$ac_tmp/stdin"
22587  case $ac_file in
22588  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22589  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22590  esac \
22591  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22592 ;;
22593  :H)
22594  #
22595  # CONFIG_HEADER
22596  #
22597  if test x"$ac_file" != x-; then
22598    {
22599      $as_echo "/* $configure_input  */" \
22600      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22601    } >"$ac_tmp/config.h" \
22602      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22603    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22604      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22605$as_echo "$as_me: $ac_file is unchanged" >&6;}
22606    else
22607      rm -f "$ac_file"
22608      mv "$ac_tmp/config.h" "$ac_file" \
22609	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22610    fi
22611  else
22612    $as_echo "/* $configure_input  */" \
22613      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22614      || as_fn_error $? "could not create -" "$LINENO" 5
22615  fi
22616# Compute "$ac_file"'s index in $config_headers.
22617_am_arg="$ac_file"
22618_am_stamp_count=1
22619for _am_header in $config_headers :; do
22620  case $_am_header in
22621    $_am_arg | $_am_arg:* )
22622      break ;;
22623    * )
22624      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22625  esac
22626done
22627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22629	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22630	 X"$_am_arg" : 'X\(//\)$' \| \
22631	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22632$as_echo X"$_am_arg" |
22633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22634	    s//\1/
22635	    q
22636	  }
22637	  /^X\(\/\/\)[^/].*/{
22638	    s//\1/
22639	    q
22640	  }
22641	  /^X\(\/\/\)$/{
22642	    s//\1/
22643	    q
22644	  }
22645	  /^X\(\/\).*/{
22646	    s//\1/
22647	    q
22648	  }
22649	  s/.*/./; q'`/stamp-h$_am_stamp_count
22650 ;;
22651
22652  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22653$as_echo "$as_me: executing $ac_file commands" >&6;}
22654 ;;
22655  esac
22656
22657
22658  case $ac_file$ac_mode in
22659    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22660  # Older Autoconf quotes --file arguments for eval, but not when files
22661  # are listed without --file.  Let's play safe and only enable the eval
22662  # if we detect the quoting.
22663  case $CONFIG_FILES in
22664  *\'*) eval set x "$CONFIG_FILES" ;;
22665  *)   set x $CONFIG_FILES ;;
22666  esac
22667  shift
22668  for mf
22669  do
22670    # Strip MF so we end up with the name of the file.
22671    mf=`echo "$mf" | sed -e 's/:.*$//'`
22672    # Check whether this is an Automake generated Makefile or not.
22673    # We used to match only the files named 'Makefile.in', but
22674    # some people rename them; so instead we look at the file content.
22675    # Grep'ing the first line is not enough: some people post-process
22676    # each Makefile.in and add a new line on top of each file to say so.
22677    # Grep'ing the whole file is not good either: AIX grep has a line
22678    # limit of 2048, but all sed's we know have understand at least 4000.
22679    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22680      dirpart=`$as_dirname -- "$mf" ||
22681$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22682	 X"$mf" : 'X\(//\)[^/]' \| \
22683	 X"$mf" : 'X\(//\)$' \| \
22684	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22685$as_echo X"$mf" |
22686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22687	    s//\1/
22688	    q
22689	  }
22690	  /^X\(\/\/\)[^/].*/{
22691	    s//\1/
22692	    q
22693	  }
22694	  /^X\(\/\/\)$/{
22695	    s//\1/
22696	    q
22697	  }
22698	  /^X\(\/\).*/{
22699	    s//\1/
22700	    q
22701	  }
22702	  s/.*/./; q'`
22703    else
22704      continue
22705    fi
22706    # Extract the definition of DEPDIR, am__include, and am__quote
22707    # from the Makefile without running 'make'.
22708    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22709    test -z "$DEPDIR" && continue
22710    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22711    test -z "$am__include" && continue
22712    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22713    # Find all dependency output files, they are included files with
22714    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22715    # simplest approach to changing $(DEPDIR) to its actual value in the
22716    # expansion.
22717    for file in `sed -n "
22718      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22719	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22720      # Make sure the directory exists.
22721      test -f "$dirpart/$file" && continue
22722      fdir=`$as_dirname -- "$file" ||
22723$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22724	 X"$file" : 'X\(//\)[^/]' \| \
22725	 X"$file" : 'X\(//\)$' \| \
22726	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22727$as_echo X"$file" |
22728    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22729	    s//\1/
22730	    q
22731	  }
22732	  /^X\(\/\/\)[^/].*/{
22733	    s//\1/
22734	    q
22735	  }
22736	  /^X\(\/\/\)$/{
22737	    s//\1/
22738	    q
22739	  }
22740	  /^X\(\/\).*/{
22741	    s//\1/
22742	    q
22743	  }
22744	  s/.*/./; q'`
22745      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22746      # echo "creating $dirpart/$file"
22747      echo '# dummy' > "$dirpart/$file"
22748    done
22749  done
22750}
22751 ;;
22752    "libtool":C)
22753
22754    # See if we are running on zsh, and set the options that allow our
22755    # commands through without removal of \ escapes.
22756    if test -n "${ZSH_VERSION+set}"; then
22757      setopt NO_GLOB_SUBST
22758    fi
22759
22760    cfgfile=${ofile}T
22761    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22762    $RM "$cfgfile"
22763
22764    cat <<_LT_EOF >> "$cfgfile"
22765#! $SHELL
22766# Generated automatically by $as_me ($PACKAGE) $VERSION
22767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22768# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22769
22770# Provide generalized library-building support services.
22771# Written by Gordon Matzigkeit, 1996
22772
22773# Copyright (C) 2014 Free Software Foundation, Inc.
22774# This is free software; see the source for copying conditions.  There is NO
22775# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22776
22777# GNU Libtool is free software; you can redistribute it and/or modify
22778# it under the terms of the GNU General Public License as published by
22779# the Free Software Foundation; either version 2 of of the License, or
22780# (at your option) any later version.
22781#
22782# As a special exception to the GNU General Public License, if you
22783# distribute this file as part of a program or library that is built
22784# using GNU Libtool, you may include this file under the  same
22785# distribution terms that you use for the rest of that program.
22786#
22787# GNU Libtool is distributed in the hope that it will be useful, but
22788# WITHOUT ANY WARRANTY; without even the implied warranty of
22789# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22790# GNU General Public License for more details.
22791#
22792# You should have received a copy of the GNU General Public License
22793# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22794
22795
22796# The names of the tagged configurations supported by this script.
22797available_tags='CXX '
22798
22799# ### BEGIN LIBTOOL CONFIG
22800
22801# Which release of libtool.m4 was used?
22802macro_version=$macro_version
22803macro_revision=$macro_revision
22804
22805# Assembler program.
22806AS=$lt_AS
22807
22808# DLL creation program.
22809DLLTOOL=$lt_DLLTOOL
22810
22811# Object dumper program.
22812OBJDUMP=$lt_OBJDUMP
22813
22814# Whether or not to build shared libraries.
22815build_libtool_libs=$enable_shared
22816
22817# Whether or not to build static libraries.
22818build_old_libs=$enable_static
22819
22820# What type of objects to build.
22821pic_mode=$pic_mode
22822
22823# Whether or not to optimize for fast installation.
22824fast_install=$enable_fast_install
22825
22826# Shared archive member basename,for filename based shared library versioning on AIX.
22827shared_archive_member_spec=$shared_archive_member_spec
22828
22829# Shell to use when invoking shell scripts.
22830SHELL=$lt_SHELL
22831
22832# An echo program that protects backslashes.
22833ECHO=$lt_ECHO
22834
22835# The PATH separator for the build system.
22836PATH_SEPARATOR=$lt_PATH_SEPARATOR
22837
22838# The host system.
22839host_alias=$host_alias
22840host=$host
22841host_os=$host_os
22842
22843# The build system.
22844build_alias=$build_alias
22845build=$build
22846build_os=$build_os
22847
22848# A sed program that does not truncate output.
22849SED=$lt_SED
22850
22851# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22852Xsed="\$SED -e 1s/^X//"
22853
22854# A grep program that handles long lines.
22855GREP=$lt_GREP
22856
22857# An ERE matcher.
22858EGREP=$lt_EGREP
22859
22860# A literal string matcher.
22861FGREP=$lt_FGREP
22862
22863# A BSD- or MS-compatible name lister.
22864NM=$lt_NM
22865
22866# Whether we need soft or hard links.
22867LN_S=$lt_LN_S
22868
22869# What is the maximum length of a command?
22870max_cmd_len=$max_cmd_len
22871
22872# Object file suffix (normally "o").
22873objext=$ac_objext
22874
22875# Executable file suffix (normally "").
22876exeext=$exeext
22877
22878# whether the shell understands "unset".
22879lt_unset=$lt_unset
22880
22881# turn spaces into newlines.
22882SP2NL=$lt_lt_SP2NL
22883
22884# turn newlines into spaces.
22885NL2SP=$lt_lt_NL2SP
22886
22887# convert \$build file names to \$host format.
22888to_host_file_cmd=$lt_cv_to_host_file_cmd
22889
22890# convert \$build files to toolchain format.
22891to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22892
22893# Method to check whether dependent libraries are shared objects.
22894deplibs_check_method=$lt_deplibs_check_method
22895
22896# Command to use when deplibs_check_method = "file_magic".
22897file_magic_cmd=$lt_file_magic_cmd
22898
22899# How to find potential files when deplibs_check_method = "file_magic".
22900file_magic_glob=$lt_file_magic_glob
22901
22902# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22903want_nocaseglob=$lt_want_nocaseglob
22904
22905# Command to associate shared and link libraries.
22906sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22907
22908# The archiver.
22909AR=$lt_AR
22910
22911# Flags to create an archive.
22912AR_FLAGS=$lt_AR_FLAGS
22913
22914# How to feed a file listing to the archiver.
22915archiver_list_spec=$lt_archiver_list_spec
22916
22917# A symbol stripping program.
22918STRIP=$lt_STRIP
22919
22920# Commands used to install an old-style archive.
22921RANLIB=$lt_RANLIB
22922old_postinstall_cmds=$lt_old_postinstall_cmds
22923old_postuninstall_cmds=$lt_old_postuninstall_cmds
22924
22925# Whether to use a lock for old archive extraction.
22926lock_old_archive_extraction=$lock_old_archive_extraction
22927
22928# A C compiler.
22929LTCC=$lt_CC
22930
22931# LTCC compiler flags.
22932LTCFLAGS=$lt_CFLAGS
22933
22934# Take the output of nm and produce a listing of raw symbols and C names.
22935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22936
22937# Transform the output of nm in a proper C declaration.
22938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22939
22940# Transform the output of nm into a list of symbols to manually relocate.
22941global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22942
22943# Transform the output of nm in a C name address pair.
22944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22945
22946# Transform the output of nm in a C name address pair when lib prefix is needed.
22947global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22948
22949# The name lister interface.
22950nm_interface=$lt_lt_cv_nm_interface
22951
22952# Specify filename containing input files for \$NM.
22953nm_file_list_spec=$lt_nm_file_list_spec
22954
22955# The root where to search for dependent libraries,and where our libraries should be installed.
22956lt_sysroot=$lt_sysroot
22957
22958# Command to truncate a binary pipe.
22959lt_truncate_bin=$lt_lt_cv_truncate_bin
22960
22961# The name of the directory that contains temporary libtool files.
22962objdir=$objdir
22963
22964# Used to examine libraries when file_magic_cmd begins with "file".
22965MAGIC_CMD=$MAGIC_CMD
22966
22967# Must we lock files when doing compilation?
22968need_locks=$lt_need_locks
22969
22970# Manifest tool.
22971MANIFEST_TOOL=$lt_MANIFEST_TOOL
22972
22973# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22974DSYMUTIL=$lt_DSYMUTIL
22975
22976# Tool to change global to local symbols on Mac OS X.
22977NMEDIT=$lt_NMEDIT
22978
22979# Tool to manipulate fat objects and archives on Mac OS X.
22980LIPO=$lt_LIPO
22981
22982# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22983OTOOL=$lt_OTOOL
22984
22985# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22986OTOOL64=$lt_OTOOL64
22987
22988# Old archive suffix (normally "a").
22989libext=$libext
22990
22991# Shared library suffix (normally ".so").
22992shrext_cmds=$lt_shrext_cmds
22993
22994# The commands to extract the exported symbol list from a shared archive.
22995extract_expsyms_cmds=$lt_extract_expsyms_cmds
22996
22997# Variables whose values should be saved in libtool wrapper scripts and
22998# restored at link time.
22999variables_saved_for_relink=$lt_variables_saved_for_relink
23000
23001# Do we need the "lib" prefix for modules?
23002need_lib_prefix=$need_lib_prefix
23003
23004# Do we need a version for libraries?
23005need_version=$need_version
23006
23007# Library versioning type.
23008version_type=$version_type
23009
23010# Shared library runtime path variable.
23011runpath_var=$runpath_var
23012
23013# Shared library path variable.
23014shlibpath_var=$shlibpath_var
23015
23016# Is shlibpath searched before the hard-coded library search path?
23017shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23018
23019# Format of library name prefix.
23020libname_spec=$lt_libname_spec
23021
23022# List of archive names.  First name is the real one, the rest are links.
23023# The last name is the one that the linker finds with -lNAME
23024library_names_spec=$lt_library_names_spec
23025
23026# The coded name of the library, if different from the real name.
23027soname_spec=$lt_soname_spec
23028
23029# Permission mode override for installation of shared libraries.
23030install_override_mode=$lt_install_override_mode
23031
23032# Command to use after installation of a shared archive.
23033postinstall_cmds=$lt_postinstall_cmds
23034
23035# Command to use after uninstallation of a shared archive.
23036postuninstall_cmds=$lt_postuninstall_cmds
23037
23038# Commands used to finish a libtool library installation in a directory.
23039finish_cmds=$lt_finish_cmds
23040
23041# As "finish_cmds", except a single script fragment to be evaled but
23042# not shown.
23043finish_eval=$lt_finish_eval
23044
23045# Whether we should hardcode library paths into libraries.
23046hardcode_into_libs=$hardcode_into_libs
23047
23048# Compile-time system search path for libraries.
23049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23050
23051# Run-time system search path for libraries.
23052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23053
23054# Whether dlopen is supported.
23055dlopen_support=$enable_dlopen
23056
23057# Whether dlopen of programs is supported.
23058dlopen_self=$enable_dlopen_self
23059
23060# Whether dlopen of statically linked programs is supported.
23061dlopen_self_static=$enable_dlopen_self_static
23062
23063# Commands to strip libraries.
23064old_striplib=$lt_old_striplib
23065striplib=$lt_striplib
23066
23067
23068# The linker used to build libraries.
23069LD=$lt_LD
23070
23071# How to create reloadable object files.
23072reload_flag=$lt_reload_flag
23073reload_cmds=$lt_reload_cmds
23074
23075# Commands used to build an old-style archive.
23076old_archive_cmds=$lt_old_archive_cmds
23077
23078# A language specific compiler.
23079CC=$lt_compiler
23080
23081# Is the compiler the GNU compiler?
23082with_gcc=$GCC
23083
23084# Compiler flag to turn off builtin functions.
23085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23086
23087# Additional compiler flags for building library objects.
23088pic_flag=$lt_lt_prog_compiler_pic
23089
23090# How to pass a linker flag through the compiler.
23091wl=$lt_lt_prog_compiler_wl
23092
23093# Compiler flag to prevent dynamic linking.
23094link_static_flag=$lt_lt_prog_compiler_static
23095
23096# Does compiler simultaneously support -c and -o options?
23097compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23098
23099# Whether or not to add -lc for building shared libraries.
23100build_libtool_need_lc=$archive_cmds_need_lc
23101
23102# Whether or not to disallow shared libs when runtime libs are static.
23103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23104
23105# Compiler flag to allow reflexive dlopens.
23106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23107
23108# Compiler flag to generate shared objects directly from archives.
23109whole_archive_flag_spec=$lt_whole_archive_flag_spec
23110
23111# Whether the compiler copes with passing no objects directly.
23112compiler_needs_object=$lt_compiler_needs_object
23113
23114# Create an old-style archive from a shared archive.
23115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23116
23117# Create a temporary old-style archive to link instead of a shared archive.
23118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23119
23120# Commands used to build a shared archive.
23121archive_cmds=$lt_archive_cmds
23122archive_expsym_cmds=$lt_archive_expsym_cmds
23123
23124# Commands used to build a loadable module if different from building
23125# a shared archive.
23126module_cmds=$lt_module_cmds
23127module_expsym_cmds=$lt_module_expsym_cmds
23128
23129# Whether we are building with GNU ld or not.
23130with_gnu_ld=$lt_with_gnu_ld
23131
23132# Flag that allows shared libraries with undefined symbols to be built.
23133allow_undefined_flag=$lt_allow_undefined_flag
23134
23135# Flag that enforces no undefined symbols.
23136no_undefined_flag=$lt_no_undefined_flag
23137
23138# Flag to hardcode \$libdir into a binary during linking.
23139# This must work even if \$libdir does not exist
23140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23141
23142# Whether we need a single "-rpath" flag with a separated argument.
23143hardcode_libdir_separator=$lt_hardcode_libdir_separator
23144
23145# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23146# DIR into the resulting binary.
23147hardcode_direct=$hardcode_direct
23148
23149# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23150# DIR into the resulting binary and the resulting library dependency is
23151# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23152# library is relocated.
23153hardcode_direct_absolute=$hardcode_direct_absolute
23154
23155# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23156# into the resulting binary.
23157hardcode_minus_L=$hardcode_minus_L
23158
23159# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23160# into the resulting binary.
23161hardcode_shlibpath_var=$hardcode_shlibpath_var
23162
23163# Set to "yes" if building a shared library automatically hardcodes DIR
23164# into the library and all subsequent libraries and executables linked
23165# against it.
23166hardcode_automatic=$hardcode_automatic
23167
23168# Set to yes if linker adds runtime paths of dependent libraries
23169# to runtime path list.
23170inherit_rpath=$inherit_rpath
23171
23172# Whether libtool must link a program against all its dependency libraries.
23173link_all_deplibs=$link_all_deplibs
23174
23175# Set to "yes" if exported symbols are required.
23176always_export_symbols=$always_export_symbols
23177
23178# The commands to list exported symbols.
23179export_symbols_cmds=$lt_export_symbols_cmds
23180
23181# Symbols that should not be listed in the preloaded symbols.
23182exclude_expsyms=$lt_exclude_expsyms
23183
23184# Symbols that must always be exported.
23185include_expsyms=$lt_include_expsyms
23186
23187# Commands necessary for linking programs (against libraries) with templates.
23188prelink_cmds=$lt_prelink_cmds
23189
23190# Commands necessary for finishing linking programs.
23191postlink_cmds=$lt_postlink_cmds
23192
23193# Specify filename containing input files.
23194file_list_spec=$lt_file_list_spec
23195
23196# How to hardcode a shared library path into an executable.
23197hardcode_action=$hardcode_action
23198
23199# The directories searched by this compiler when creating a shared library.
23200compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23201
23202# Dependencies to place before and after the objects being linked to
23203# create a shared library.
23204predep_objects=$lt_predep_objects
23205postdep_objects=$lt_postdep_objects
23206predeps=$lt_predeps
23207postdeps=$lt_postdeps
23208
23209# The library search path used internally by the compiler when linking
23210# a shared library.
23211compiler_lib_search_path=$lt_compiler_lib_search_path
23212
23213# ### END LIBTOOL CONFIG
23214
23215_LT_EOF
23216
23217  case $host_os in
23218  aix3*)
23219    cat <<\_LT_EOF >> "$cfgfile"
23220# AIX sometimes has problems with the GCC collect2 program.  For some
23221# reason, if we set the COLLECT_NAMES environment variable, the problems
23222# vanish in a puff of smoke.
23223if test set != "${COLLECT_NAMES+set}"; then
23224  COLLECT_NAMES=
23225  export COLLECT_NAMES
23226fi
23227_LT_EOF
23228    ;;
23229  esac
23230
23231
23232ltmain=$ac_aux_dir/ltmain.sh
23233
23234
23235  # We use sed instead of cat because bash on DJGPP gets confused if
23236  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23237  # text mode, it properly converts lines to CR/LF.  This bash problem
23238  # is reportedly fixed, but why not run on old versions too?
23239  sed '$q' "$ltmain" >> "$cfgfile" \
23240     || (rm -f "$cfgfile"; exit 1)
23241
23242   mv -f "$cfgfile" "$ofile" ||
23243    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23244  chmod +x "$ofile"
23245
23246
23247    cat <<_LT_EOF >> "$ofile"
23248
23249# ### BEGIN LIBTOOL TAG CONFIG: CXX
23250
23251# The linker used to build libraries.
23252LD=$lt_LD_CXX
23253
23254# How to create reloadable object files.
23255reload_flag=$lt_reload_flag_CXX
23256reload_cmds=$lt_reload_cmds_CXX
23257
23258# Commands used to build an old-style archive.
23259old_archive_cmds=$lt_old_archive_cmds_CXX
23260
23261# A language specific compiler.
23262CC=$lt_compiler_CXX
23263
23264# Is the compiler the GNU compiler?
23265with_gcc=$GCC_CXX
23266
23267# Compiler flag to turn off builtin functions.
23268no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23269
23270# Additional compiler flags for building library objects.
23271pic_flag=$lt_lt_prog_compiler_pic_CXX
23272
23273# How to pass a linker flag through the compiler.
23274wl=$lt_lt_prog_compiler_wl_CXX
23275
23276# Compiler flag to prevent dynamic linking.
23277link_static_flag=$lt_lt_prog_compiler_static_CXX
23278
23279# Does compiler simultaneously support -c and -o options?
23280compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23281
23282# Whether or not to add -lc for building shared libraries.
23283build_libtool_need_lc=$archive_cmds_need_lc_CXX
23284
23285# Whether or not to disallow shared libs when runtime libs are static.
23286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23287
23288# Compiler flag to allow reflexive dlopens.
23289export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23290
23291# Compiler flag to generate shared objects directly from archives.
23292whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23293
23294# Whether the compiler copes with passing no objects directly.
23295compiler_needs_object=$lt_compiler_needs_object_CXX
23296
23297# Create an old-style archive from a shared archive.
23298old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23299
23300# Create a temporary old-style archive to link instead of a shared archive.
23301old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23302
23303# Commands used to build a shared archive.
23304archive_cmds=$lt_archive_cmds_CXX
23305archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23306
23307# Commands used to build a loadable module if different from building
23308# a shared archive.
23309module_cmds=$lt_module_cmds_CXX
23310module_expsym_cmds=$lt_module_expsym_cmds_CXX
23311
23312# Whether we are building with GNU ld or not.
23313with_gnu_ld=$lt_with_gnu_ld_CXX
23314
23315# Flag that allows shared libraries with undefined symbols to be built.
23316allow_undefined_flag=$lt_allow_undefined_flag_CXX
23317
23318# Flag that enforces no undefined symbols.
23319no_undefined_flag=$lt_no_undefined_flag_CXX
23320
23321# Flag to hardcode \$libdir into a binary during linking.
23322# This must work even if \$libdir does not exist
23323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23324
23325# Whether we need a single "-rpath" flag with a separated argument.
23326hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23327
23328# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23329# DIR into the resulting binary.
23330hardcode_direct=$hardcode_direct_CXX
23331
23332# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23333# DIR into the resulting binary and the resulting library dependency is
23334# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23335# library is relocated.
23336hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23337
23338# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23339# into the resulting binary.
23340hardcode_minus_L=$hardcode_minus_L_CXX
23341
23342# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23343# into the resulting binary.
23344hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23345
23346# Set to "yes" if building a shared library automatically hardcodes DIR
23347# into the library and all subsequent libraries and executables linked
23348# against it.
23349hardcode_automatic=$hardcode_automatic_CXX
23350
23351# Set to yes if linker adds runtime paths of dependent libraries
23352# to runtime path list.
23353inherit_rpath=$inherit_rpath_CXX
23354
23355# Whether libtool must link a program against all its dependency libraries.
23356link_all_deplibs=$link_all_deplibs_CXX
23357
23358# Set to "yes" if exported symbols are required.
23359always_export_symbols=$always_export_symbols_CXX
23360
23361# The commands to list exported symbols.
23362export_symbols_cmds=$lt_export_symbols_cmds_CXX
23363
23364# Symbols that should not be listed in the preloaded symbols.
23365exclude_expsyms=$lt_exclude_expsyms_CXX
23366
23367# Symbols that must always be exported.
23368include_expsyms=$lt_include_expsyms_CXX
23369
23370# Commands necessary for linking programs (against libraries) with templates.
23371prelink_cmds=$lt_prelink_cmds_CXX
23372
23373# Commands necessary for finishing linking programs.
23374postlink_cmds=$lt_postlink_cmds_CXX
23375
23376# Specify filename containing input files.
23377file_list_spec=$lt_file_list_spec_CXX
23378
23379# How to hardcode a shared library path into an executable.
23380hardcode_action=$hardcode_action_CXX
23381
23382# The directories searched by this compiler when creating a shared library.
23383compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23384
23385# Dependencies to place before and after the objects being linked to
23386# create a shared library.
23387predep_objects=$lt_predep_objects_CXX
23388postdep_objects=$lt_postdep_objects_CXX
23389predeps=$lt_predeps_CXX
23390postdeps=$lt_postdeps_CXX
23391
23392# The library search path used internally by the compiler when linking
23393# a shared library.
23394compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23395
23396# ### END LIBTOOL TAG CONFIG: CXX
23397_LT_EOF
23398
23399 ;;
23400
23401  esac
23402done # for ac_tag
23403
23404
23405as_fn_exit 0
23406_ACEOF
23407ac_clean_files=$ac_clean_files_save
23408
23409test $ac_write_fail = 0 ||
23410  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23411
23412
23413# configure is writing to config.log, and then calls config.status.
23414# config.status does its own redirection, appending to config.log.
23415# Unfortunately, on DOS this fails, as config.log is still kept open
23416# by configure, so config.status won't be able to write to it; its
23417# output is simply discarded.  So we exec the FD to /dev/null,
23418# effectively closing config.log, so it can be properly (re)opened and
23419# appended to by config.status.  When coming back to configure, we
23420# need to make the FD available again.
23421if test "$no_create" != yes; then
23422  ac_cs_success=:
23423  ac_config_status_args=
23424  test "$silent" = yes &&
23425    ac_config_status_args="$ac_config_status_args --quiet"
23426  exec 5>/dev/null
23427  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23428  exec 5>>config.log
23429  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23430  # would make configure fail if this is the last instruction.
23431  $ac_cs_success || as_fn_exit 1
23432fi
23433if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23435$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23436fi
23437
23438
23439
23440echo ""
23441echo "Libtiff is now configured for ${host}"
23442echo ""
23443echo "  Installation directory:             ${prefix}"
23444echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
23445echo "  C compiler:                         ${CC} ${CFLAGS}"
23446echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
23447echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
23448echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
23449echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
23450echo "  Use win32 IO:                       ${win32_io_ok}"
23451echo ""
23452echo " Support for internal codecs:"
23453echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
23454echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
23455echo "  LZW algorithm:                      ${HAVE_LZW}"
23456echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
23457echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
23458echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
23459echo ""
23460echo " Support for external codecs:"
23461echo "  ZLIB support:                       ${HAVE_ZLIB}"
23462echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
23463echo "  JPEG support:                       ${HAVE_JPEG}"
23464echo "  Old JPEG support:                   ${HAVE_OJPEG}"
23465echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
23466echo "  ISO JBIG support:                   ${HAVE_JBIG}"
23467echo "  LZMA2 support:                      ${HAVE_LZMA}"
23468echo ""
23469echo "  C++ support:                        ${HAVE_CXX}"
23470echo ""
23471echo "  OpenGL support:                     ${HAVE_OPENGL}"
23472echo ""
23473
23474