xref: /libtiff-4.0.7/configure (revision 3c92b0ef)
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.3.
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.3'
594PACKAGE_STRING='LibTIFF Software 4.0.3'
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
659LIBTIFF_DOCDIR
660HAVE_RPATH_FALSE
661HAVE_RPATH_TRUE
662LIBOBJS
663tiff_libs_private
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
668CXXCPP
669am__fastdepCXX_FALSE
670am__fastdepCXX_TRUE
671CXXDEPMODE
672ac_ct_CXX
673CXXFLAGS
674CXX
675CPP
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692SED
693LIBTOOL
694OBJDUMP
695DLLTOOL
696AS
697HAVE_LD_VERSION_SCRIPT_FALSE
698HAVE_LD_VERSION_SCRIPT_TRUE
699LN_S
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717LIBTIFF_RELEASE_DATE
718LIBTIFF_VERSION_INFO
719LIBTIFF_VERSION
720LIBTIFF_ALPHA_VERSION
721LIBTIFF_MICRO_VERSION
722LIBTIFF_MINOR_VERSION
723LIBTIFF_MAJOR_VERSION
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799enable_maintainer_mode
800enable_dependency_tracking
801enable_ld_version_script
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809enable_silent_rules
810enable_rpath
811enable_largefile
812with_docdir
813enable_ccitt
814enable_packbits
815enable_lzw
816enable_thunder
817enable_next
818enable_logluv
819enable_mdi
820enable_zlib
821with_zlib_include_dir
822with_zlib_lib_dir
823enable_pixarlog
824enable_jpeg
825with_jpeg_include_dir
826with_jpeg_lib_dir
827enable_old_jpeg
828enable_jbig
829with_jbig_include_dir
830with_jbig_lib_dir
831enable_lzma
832with_lzma_include_dir
833with_lzma_lib_dir
834enable_jpeg12
835with_jpeg12_include_dir
836with_jpeg12_lib
837enable_cxx
838with_x
839enable_strip_chopping
840with_default_strip_size
841enable_defer_strile_load
842enable_chunky_strip_read
843enable_extrasample_as_alpha
844enable_check_ycbcr_subsampling
845'
846      ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP
855CXX
856CXXFLAGS
857CCC
858CXXCPP
859XMKMF'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
909
910ac_prev=
911ac_dashdash=
912for ac_option
913do
914  # If the previous option needs an argument, assign it.
915  if test -n "$ac_prev"; then
916    eval $ac_prev=\$ac_option
917    ac_prev=
918    continue
919  fi
920
921  case $ac_option in
922  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923  *=)   ac_optarg= ;;
924  *)    ac_optarg=yes ;;
925  esac
926
927  # Accept the important Cygnus configure options, so we can diagnose typos.
928
929  case $ac_dashdash$ac_option in
930  --)
931    ac_dashdash=yes ;;
932
933  -bindir | --bindir | --bindi | --bind | --bin | --bi)
934    ac_prev=bindir ;;
935  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936    bindir=$ac_optarg ;;
937
938  -build | --build | --buil | --bui | --bu)
939    ac_prev=build_alias ;;
940  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941    build_alias=$ac_optarg ;;
942
943  -cache-file | --cache-file | --cache-fil | --cache-fi \
944  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945    ac_prev=cache_file ;;
946  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948    cache_file=$ac_optarg ;;
949
950  --config-cache | -C)
951    cache_file=config.cache ;;
952
953  -datadir | --datadir | --datadi | --datad)
954    ac_prev=datadir ;;
955  -datadir=* | --datadir=* | --datadi=* | --datad=*)
956    datadir=$ac_optarg ;;
957
958  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959  | --dataroo | --dataro | --datar)
960    ac_prev=datarootdir ;;
961  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963    datarootdir=$ac_optarg ;;
964
965  -disable-* | --disable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=no ;;
980
981  -docdir | --docdir | --docdi | --doc | --do)
982    ac_prev=docdir ;;
983  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984    docdir=$ac_optarg ;;
985
986  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987    ac_prev=dvidir ;;
988  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989    dvidir=$ac_optarg ;;
990
991  -enable-* | --enable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009  | --exec | --exe | --ex)
1010    ac_prev=exec_prefix ;;
1011  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013  | --exec=* | --exe=* | --ex=*)
1014    exec_prefix=$ac_optarg ;;
1015
1016  -gas | --gas | --ga | --g)
1017    # Obsolete; use --with-gas.
1018    with_gas=yes ;;
1019
1020  -help | --help | --hel | --he | -h)
1021    ac_init_help=long ;;
1022  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023    ac_init_help=recursive ;;
1024  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025    ac_init_help=short ;;
1026
1027  -host | --host | --hos | --ho)
1028    ac_prev=host_alias ;;
1029  -host=* | --host=* | --hos=* | --ho=*)
1030    host_alias=$ac_optarg ;;
1031
1032  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033    ac_prev=htmldir ;;
1034  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035  | --ht=*)
1036    htmldir=$ac_optarg ;;
1037
1038  -includedir | --includedir | --includedi | --included | --include \
1039  | --includ | --inclu | --incl | --inc)
1040    ac_prev=includedir ;;
1041  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042  | --includ=* | --inclu=* | --incl=* | --inc=*)
1043    includedir=$ac_optarg ;;
1044
1045  -infodir | --infodir | --infodi | --infod | --info | --inf)
1046    ac_prev=infodir ;;
1047  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048    infodir=$ac_optarg ;;
1049
1050  -libdir | --libdir | --libdi | --libd)
1051    ac_prev=libdir ;;
1052  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053    libdir=$ac_optarg ;;
1054
1055  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056  | --libexe | --libex | --libe)
1057    ac_prev=libexecdir ;;
1058  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059  | --libexe=* | --libex=* | --libe=*)
1060    libexecdir=$ac_optarg ;;
1061
1062  -localedir | --localedir | --localedi | --localed | --locale)
1063    ac_prev=localedir ;;
1064  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065    localedir=$ac_optarg ;;
1066
1067  -localstatedir | --localstatedir | --localstatedi | --localstated \
1068  | --localstate | --localstat | --localsta | --localst | --locals)
1069    ac_prev=localstatedir ;;
1070  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072    localstatedir=$ac_optarg ;;
1073
1074  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075    ac_prev=mandir ;;
1076  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077    mandir=$ac_optarg ;;
1078
1079  -nfp | --nfp | --nf)
1080    # Obsolete; use --without-fp.
1081    with_fp=no ;;
1082
1083  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084  | --no-cr | --no-c | -n)
1085    no_create=yes ;;
1086
1087  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089    no_recursion=yes ;;
1090
1091  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093  | --oldin | --oldi | --old | --ol | --o)
1094    ac_prev=oldincludedir ;;
1095  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098    oldincludedir=$ac_optarg ;;
1099
1100  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101    ac_prev=prefix ;;
1102  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103    prefix=$ac_optarg ;;
1104
1105  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106  | --program-pre | --program-pr | --program-p)
1107    ac_prev=program_prefix ;;
1108  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110    program_prefix=$ac_optarg ;;
1111
1112  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113  | --program-suf | --program-su | --program-s)
1114    ac_prev=program_suffix ;;
1115  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117    program_suffix=$ac_optarg ;;
1118
1119  -program-transform-name | --program-transform-name \
1120  | --program-transform-nam | --program-transform-na \
1121  | --program-transform-n | --program-transform- \
1122  | --program-transform | --program-transfor \
1123  | --program-transfo | --program-transf \
1124  | --program-trans | --program-tran \
1125  | --progr-tra | --program-tr | --program-t)
1126    ac_prev=program_transform_name ;;
1127  -program-transform-name=* | --program-transform-name=* \
1128  | --program-transform-nam=* | --program-transform-na=* \
1129  | --program-transform-n=* | --program-transform-=* \
1130  | --program-transform=* | --program-transfor=* \
1131  | --program-transfo=* | --program-transf=* \
1132  | --program-trans=* | --program-tran=* \
1133  | --progr-tra=* | --program-tr=* | --program-t=*)
1134    program_transform_name=$ac_optarg ;;
1135
1136  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137    ac_prev=pdfdir ;;
1138  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139    pdfdir=$ac_optarg ;;
1140
1141  -psdir | --psdir | --psdi | --psd | --ps)
1142    ac_prev=psdir ;;
1143  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144    psdir=$ac_optarg ;;
1145
1146  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147  | -silent | --silent | --silen | --sile | --sil)
1148    silent=yes ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --libdir=DIR            object code libraries [EPREFIX/lib]
1441  --includedir=DIR        C header files [PREFIX/include]
1442  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445  --infodir=DIR           info documentation [DATAROOTDIR/info]
1446  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447  --mandir=DIR            man documentation [DATAROOTDIR/man]
1448  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1449  --htmldir=DIR           html documentation [DOCDIR]
1450  --dvidir=DIR            dvi documentation [DOCDIR]
1451  --pdfdir=DIR            pdf documentation [DOCDIR]
1452  --psdir=DIR             ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462X features:
1463  --x-includes=DIR    X include files are in DIR
1464  --x-libraries=DIR   X library files are in DIR
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-maintainer-mode
1483                          enable make rules and dependencies not useful (and
1484                          sometimes confusing) to the casual installer
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --enable-ld-version-script
1490                          enable linker version script (default is disabled)
1491  --enable-shared[=PKGS]  build shared libraries [default=yes]
1492  --enable-static[=PKGS]  build static libraries [default=yes]
1493  --enable-fast-install[=PKGS]
1494                          optimize for fast installation [default=yes]
1495  --disable-libtool-lock  avoid locking (might break parallel builds)
1496  --enable-silent-rules   less verbose build output (undo: "make V=1")
1497  --disable-silent-rules  verbose build output (undo: "make V=0")
1498  --enable-rpath          Enable runtime linker paths (-R libtool option)
1499  --disable-largefile     omit support for large files
1500  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1501  --disable-packbits      disable support for Macintosh PackBits algorithm
1502  --disable-lzw           disable support for LZW algorithm
1503  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1504  --disable-next          disable support for NeXT 2-bit RLE algorithm
1505  --disable-logluv        disable support for LogLuv high dynamic range
1506                          encoding
1507  --disable-mdi           disable support for Microsoft Document Imaging
1508  --disable-zlib          disable Zlib usage (required for Deflate
1509                          compression, enabled by default)
1510  --disable-pixarlog      disable support for Pixar log-format algorithm
1511                          (requires Zlib)
1512  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1513                          compression, enabled by default)
1514  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1515                          enabled by default)
1516  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1517                          compression, enabled by default)
1518  --disable-lzma          disable liblzma usage (required for LZMA2
1519                          compression, enabled by default)
1520  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1521  --enable-cxx            enable C++ stream API building (requires C++
1522                          compiler)
1523  --disable-strip-chopping
1524                          disable support for strip chopping (whether or not
1525                          to convert single-strip uncompressed images to
1526                          mutiple strips of specified size to reduce memory
1527                          usage)
1528  --enable-defer-strile-load
1529                          enable deferred strip/tile offset/size loading
1530                          (experimental)
1531  --enable-chunky-strip-read
1532                          enable reading large strips in chunks for
1533                          TIFFReadScanline() (experimental)
1534  --disable-extrasample-as-alpha
1535                          the RGBA interface will treat a fourth sample with
1536                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1537                          packages produce RGBA files but don't mark the alpha
1538                          properly
1539  --disable-check-ycbcr-subsampling
1540                          disable picking up YCbCr subsampling info from the
1541                          JPEG data stream to support files lacking the tag
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1547                          both]
1548  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1550                          compiler's sysroot if not specified).
1551  --with-docdir=DIR       directory where documentation should be installed
1552  --with-zlib-include-dir=DIR
1553                          location of Zlib headers
1554  --with-zlib-lib-dir=DIR location of Zlib library binary
1555  --with-jpeg-include-dir=DIR
1556                          location of IJG JPEG library headers
1557  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1558  --with-jbig-include-dir=DIR
1559                          location of JBIG-KIT headers
1560  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1561  --with-lzma-include-dir=DIR
1562                          location of liblzma headers
1563  --with-lzma-lib-dir=DIR location of liblzma library binary
1564  --with-jpeg12-include-dir=DIR
1565                          location of libjpeg 12bit headers
1566  --with-jpeg12-lib=LIBRARY
1567                          path to libjpeg 12bit library
1568  --with-x                use the X Window System
1569  --with-default-strip-size=SIZE
1570                          default size of the strip in bytes (when strip
1571                          chopping enabled) [[default=8192]]
1572
1573Some influential environment variables:
1574  CC          C compiler command
1575  CFLAGS      C compiler flags
1576  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577              nonstandard directory <lib dir>
1578  LIBS        libraries to pass to the linker, e.g. -l<library>
1579  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580              you have headers in a nonstandard directory <include dir>
1581  CPP         C preprocessor
1582  CXX         C++ compiler command
1583  CXXFLAGS    C++ compiler flags
1584  CXXCPP      C++ preprocessor
1585  XMKMF       Path to xmkmf, Makefile generator for X Window System
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <[email protected]>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596  # If there are subdirs, report their specific --help.
1597  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598    test -d "$ac_dir" ||
1599      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600      continue
1601    ac_builddir=.
1602
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
1606  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607  # A ".." for each directory in $ac_dir_suffix.
1608  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609  case $ac_top_builddir_sub in
1610  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612  esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
1618
1619case $srcdir in
1620  .)  # We are building in place.
1621    ac_srcdir=.
1622    ac_top_srcdir=$ac_top_builddir_sub
1623    ac_abs_top_srcdir=$ac_pwd ;;
1624  [\\/]* | ?:[\\/]* )  # Absolute name.
1625    ac_srcdir=$srcdir$ac_dir_suffix;
1626    ac_top_srcdir=$srcdir
1627    ac_abs_top_srcdir=$srcdir ;;
1628  *) # Relative name.
1629    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630    ac_top_srcdir=$ac_top_build_prefix$srcdir
1631    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632esac
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635    cd "$ac_dir" || { ac_status=$?; continue; }
1636    # Check for guested configure.
1637    if test -f "$ac_srcdir/configure.gnu"; then
1638      echo &&
1639      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640    elif test -f "$ac_srcdir/configure"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure" --help=recursive
1643    else
1644      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645    fi || ac_status=$?
1646    cd "$ac_pwd" || { ac_status=$?; break; }
1647  done
1648fi
1649
1650test -n "$ac_init_help" && exit $ac_status
1651if $ac_init_version; then
1652  cat <<\_ACEOF
1653LibTIFF Software configure 4.0.3
1654generated by GNU Autoconf 2.69
1655
1656Copyright (C) 2012 Free Software Foundation, Inc.
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
1660  exit
1661fi
1662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  rm -f conftest.$ac_objext
1674  if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677  *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681  (eval "$ac_compile") 2>conftest.err
1682  ac_status=$?
1683  if test -s conftest.err; then
1684    grep -v '^ *+' conftest.err >conftest.er1
1685    cat conftest.er1 >&5
1686    mv -f conftest.er1 conftest.err
1687  fi
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && {
1690	 test -z "$ac_c_werror_flag" ||
1691	 test ! -s conftest.err
1692       } && test -s conftest.$ac_objext; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  rm -f conftest.$ac_objext conftest$ac_exeext
1712  if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_link") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && {
1728	 test -z "$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       } && test -s conftest$ac_exeext && {
1731	 test "$cross_compiling" = yes ||
1732	 test -x conftest$ac_exeext
1733       }; then :
1734  ac_retval=0
1735else
1736  $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739	ac_retval=1
1740fi
1741  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743  # interfere with the next link command; also delete a directory that is
1744  # left behind by Apple's compiler.  We do this before executing the actions.
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_link
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_cpp LINENO
1783# ----------------------
1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_cpp ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  if { { ac_try="$ac_cpp conftest.$ac_ext"
1789case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796  ac_status=$?
1797  if test -s conftest.err; then
1798    grep -v '^ *+' conftest.err >conftest.er1
1799    cat conftest.er1 >&5
1800    mv -f conftest.er1 conftest.err
1801  fi
1802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803  test $ac_status = 0; } > conftest.i && {
1804	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805	 test ! -s conftest.err
1806       }; then :
1807  ac_retval=0
1808else
1809  $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812    ac_retval=1
1813fi
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815  as_fn_set_status $ac_retval
1816
1817} # ac_fn_c_try_cpp
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>&5
1834  ac_status=$?
1835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837  { { case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_try") 2>&5
1844  ac_status=$?
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; }; }; then :
1847  ac_retval=0
1848else
1849  $as_echo "$as_me: program exited with status $ac_status" >&5
1850       $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853       ac_retval=$ac_status
1854fi
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_cxx_try_compile LINENO
1929# ----------------------------
1930# Try to compile conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_cxx_try_compile ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  rm -f conftest.$ac_objext
1935  if { { ac_try="$ac_compile"
1936case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_compile") 2>conftest.err
1943  ac_status=$?
1944  if test -s conftest.err; then
1945    grep -v '^ *+' conftest.err >conftest.er1
1946    cat conftest.er1 >&5
1947    mv -f conftest.er1 conftest.err
1948  fi
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && {
1951	 test -z "$ac_cxx_werror_flag" ||
1952	 test ! -s conftest.err
1953       } && test -s conftest.$ac_objext; then :
1954  ac_retval=0
1955else
1956  $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959	ac_retval=1
1960fi
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_cxx_try_compile
1965
1966# ac_fn_cxx_try_cpp LINENO
1967# ------------------------
1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969ac_fn_cxx_try_cpp ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if { { ac_try="$ac_cpp conftest.$ac_ext"
1973case "(($ac_try" in
1974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975  *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980  ac_status=$?
1981  if test -s conftest.err; then
1982    grep -v '^ *+' conftest.err >conftest.er1
1983    cat conftest.er1 >&5
1984    mv -f conftest.er1 conftest.err
1985  fi
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; } > conftest.i && {
1988	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1989	 test ! -s conftest.err
1990       }; then :
1991  ac_retval=0
1992else
1993  $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996    ac_retval=1
1997fi
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999  as_fn_set_status $ac_retval
2000
2001} # ac_fn_cxx_try_cpp
2002
2003# ac_fn_cxx_try_link LINENO
2004# -------------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_cxx_try_link ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  rm -f conftest.$ac_objext conftest$ac_exeext
2010  if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013  *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017  (eval "$ac_link") 2>conftest.err
2018  ac_status=$?
2019  if test -s conftest.err; then
2020    grep -v '^ *+' conftest.err >conftest.er1
2021    cat conftest.er1 >&5
2022    mv -f conftest.er1 conftest.err
2023  fi
2024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025  test $ac_status = 0; } && {
2026	 test -z "$ac_cxx_werror_flag" ||
2027	 test ! -s conftest.err
2028       } && test -s conftest$ac_exeext && {
2029	 test "$cross_compiling" = yes ||
2030	 test -x conftest$ac_exeext
2031       }; then :
2032  ac_retval=0
2033else
2034  $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037	ac_retval=1
2038fi
2039  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041  # interfere with the next link command; also delete a directory that is
2042  # left behind by Apple's compiler.  We do this before executing the actions.
2043  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_cxx_try_link
2048
2049# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2050# -------------------------------------------------------
2051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2052# the include files in INCLUDES and setting the cache variable VAR
2053# accordingly.
2054ac_fn_c_check_header_mongrel ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  if eval \${$3+:} false; then :
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061  $as_echo_n "(cached) " >&6
2062fi
2063eval ac_res=\$$3
2064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066else
2067  # Is the header compilable?
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2069$as_echo_n "checking $2 usability... " >&6; }
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$4
2073#include <$2>
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  ac_header_compiler=yes
2077else
2078  ac_header_compiler=no
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2082$as_echo "$ac_header_compiler" >&6; }
2083
2084# Is the header present?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2086$as_echo_n "checking $2 presence... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h.  */
2089#include <$2>
2090_ACEOF
2091if ac_fn_c_try_cpp "$LINENO"; then :
2092  ac_header_preproc=yes
2093else
2094  ac_header_preproc=no
2095fi
2096rm -f conftest.err conftest.i conftest.$ac_ext
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2098$as_echo "$ac_header_preproc" >&6; }
2099
2100# So?  What about this header?
2101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2102  yes:no: )
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107    ;;
2108  no:yes:* )
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2112$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2116$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119( $as_echo "## -------------------------------------- ##
2120## Report this to [email protected] ##
2121## -------------------------------------- ##"
2122     ) | sed "s/^/$as_me: WARNING:     /" >&2
2123    ;;
2124esac
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
2127if eval \${$3+:} false; then :
2128  $as_echo_n "(cached) " >&6
2129else
2130  eval "$3=\$ac_header_compiler"
2131fi
2132eval ac_res=\$$3
2133	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135fi
2136  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138} # ac_fn_c_check_header_mongrel
2139
2140# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2141# -------------------------------------------
2142# Tests whether TYPE exists after having included INCLUDES, setting cache
2143# variable VAR accordingly.
2144ac_fn_c_check_type ()
2145{
2146  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148$as_echo_n "checking for $2... " >&6; }
2149if eval \${$3+:} false; then :
2150  $as_echo_n "(cached) " >&6
2151else
2152  eval "$3=no"
2153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156int
2157main ()
2158{
2159if (sizeof ($2))
2160	 return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169int
2170main ()
2171{
2172if (sizeof (($2)))
2173	    return 0;
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179
2180else
2181  eval "$3=yes"
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187eval ac_res=\$$3
2188	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189$as_echo "$ac_res" >&6; }
2190  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192} # ac_fn_c_check_type
2193
2194# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2195# --------------------------------------------
2196# Tries to find the compile-time value of EXPR in a program that includes
2197# INCLUDES, setting VAR accordingly. Returns whether the value could be
2198# computed
2199ac_fn_c_compute_int ()
2200{
2201  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202  if test "$cross_compiling" = yes; then
2203    # Depending upon the size, compute the lo and hi bounds.
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) >= 0)];
2211test_array [0] = 0;
2212return test_array [0];
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219  ac_lo=0 ac_mid=0
2220  while :; do
2221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h.  */
2223$4
2224int
2225main ()
2226{
2227static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228test_array [0] = 0;
2229return test_array [0];
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236  ac_hi=$ac_mid; break
2237else
2238  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2239			if test $ac_lo -le $ac_mid; then
2240			  ac_lo= ac_hi=
2241			  break
2242			fi
2243			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246  done
2247else
2248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h.  */
2250$4
2251int
2252main ()
2253{
2254static int test_array [1 - 2 * !(($2) < 0)];
2255test_array [0] = 0;
2256return test_array [0];
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  ac_hi=-1 ac_mid=-1
2264  while :; do
2265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272test_array [0] = 0;
2273return test_array [0];
2274
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280  ac_lo=$ac_mid; break
2281else
2282  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2283			if test $ac_mid -le $ac_hi; then
2284			  ac_lo= ac_hi=
2285			  break
2286			fi
2287			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290  done
2291else
2292  ac_lo= ac_hi=
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297# Binary search between lo and hi bounds.
2298while test "x$ac_lo" != "x$ac_hi"; do
2299  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303int
2304main ()
2305{
2306static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307test_array [0] = 0;
2308return test_array [0];
2309
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314if ac_fn_c_try_compile "$LINENO"; then :
2315  ac_hi=$ac_mid
2316else
2317  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318fi
2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320done
2321case $ac_lo in #((
2322?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323'') ac_retval=1 ;;
2324esac
2325  else
2326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h.  */
2328$4
2329static long int longval () { return $2; }
2330static unsigned long int ulongval () { return $2; }
2331#include <stdio.h>
2332#include <stdlib.h>
2333int
2334main ()
2335{
2336
2337  FILE *f = fopen ("conftest.val", "w");
2338  if (! f)
2339    return 1;
2340  if (($2) < 0)
2341    {
2342      long int i = longval ();
2343      if (i != ($2))
2344	return 1;
2345      fprintf (f, "%ld", i);
2346    }
2347  else
2348    {
2349      unsigned long int i = ulongval ();
2350      if (i != ($2))
2351	return 1;
2352      fprintf (f, "%lu", i);
2353    }
2354  /* Do not output a trailing newline, as this causes \r\n confusion
2355     on some platforms.  */
2356  return ferror (f) || fclose (f) != 0;
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_run "$LINENO"; then :
2363  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364else
2365  ac_retval=1
2366fi
2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368  conftest.$ac_objext conftest.beam conftest.$ac_ext
2369rm -f conftest.val
2370
2371  fi
2372  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373  as_fn_set_status $ac_retval
2374
2375} # ac_fn_c_compute_int
2376cat >config.log <<_ACEOF
2377This file contains any messages produced by compilers while
2378running configure, to aid debugging if configure makes a mistake.
2379
2380It was created by LibTIFF Software $as_me 4.0.3, which was
2381generated by GNU Autoconf 2.69.  Invocation command line was
2382
2383  $ $0 $@
2384
2385_ACEOF
2386exec 5>>config.log
2387{
2388cat <<_ASUNAME
2389## --------- ##
2390## Platform. ##
2391## --------- ##
2392
2393hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
2399/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2401
2402/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2403/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2406/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2407/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2408/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2409
2410_ASUNAME
2411
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417    $as_echo "PATH: $as_dir"
2418  done
2419IFS=$as_save_IFS
2420
2421} >&5
2422
2423cat >&5 <<_ACEOF
2424
2425
2426## ----------- ##
2427## Core tests. ##
2428## ----------- ##
2429
2430_ACEOF
2431
2432
2433# Keep a trace of the command line.
2434# Strip out --no-create and --no-recursion so they do not pile up.
2435# Strip out --silent because we don't want to record it for future runs.
2436# Also quote any args containing shell meta-characters.
2437# Make two passes to allow for proper duplicate-argument suppression.
2438ac_configure_args=
2439ac_configure_args0=
2440ac_configure_args1=
2441ac_must_keep_next=false
2442for ac_pass in 1 2
2443do
2444  for ac_arg
2445  do
2446    case $ac_arg in
2447    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449    | -silent | --silent | --silen | --sile | --sil)
2450      continue ;;
2451    *\'*)
2452      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453    esac
2454    case $ac_pass in
2455    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456    2)
2457      as_fn_append ac_configure_args1 " '$ac_arg'"
2458      if test $ac_must_keep_next = true; then
2459	ac_must_keep_next=false # Got value, back to normal.
2460      else
2461	case $ac_arg in
2462	  *=* | --config-cache | -C | -disable-* | --disable-* \
2463	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465	  | -with-* | --with-* | -without-* | --without-* | --x)
2466	    case "$ac_configure_args0 " in
2467	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468	    esac
2469	    ;;
2470	  -* ) ac_must_keep_next=true ;;
2471	esac
2472      fi
2473      as_fn_append ac_configure_args " '$ac_arg'"
2474      ;;
2475    esac
2476  done
2477done
2478{ ac_configure_args0=; unset ac_configure_args0;}
2479{ ac_configure_args1=; unset ac_configure_args1;}
2480
2481# When interrupted or exit'd, cleanup temporary files, and complete
2482# config.log.  We remove comments because anyway the quotes in there
2483# would cause problems or look ugly.
2484# WARNING: Use '\'' to represent an apostrophe within the trap.
2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486trap 'exit_status=$?
2487  # Save into config.log some information that might help in debugging.
2488  {
2489    echo
2490
2491    $as_echo "## ---------------- ##
2492## Cache variables. ##
2493## ---------------- ##"
2494    echo
2495    # The following way of writing the cache mishandles newlines in values,
2496(
2497  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498    eval ac_val=\$$ac_var
2499    case $ac_val in #(
2500    *${as_nl}*)
2501      case $ac_var in #(
2502      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504      esac
2505      case $ac_var in #(
2506      _ | IFS | as_nl) ;; #(
2507      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508      *) { eval $ac_var=; unset $ac_var;} ;;
2509      esac ;;
2510    esac
2511  done
2512  (set) 2>&1 |
2513    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2514    *${as_nl}ac_space=\ *)
2515      sed -n \
2516	"s/'\''/'\''\\\\'\'''\''/g;
2517	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518      ;; #(
2519    *)
2520      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521      ;;
2522    esac |
2523    sort
2524)
2525    echo
2526
2527    $as_echo "## ----------------- ##
2528## Output variables. ##
2529## ----------------- ##"
2530    echo
2531    for ac_var in $ac_subst_vars
2532    do
2533      eval ac_val=\$$ac_var
2534      case $ac_val in
2535      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536      esac
2537      $as_echo "$ac_var='\''$ac_val'\''"
2538    done | sort
2539    echo
2540
2541    if test -n "$ac_subst_files"; then
2542      $as_echo "## ------------------- ##
2543## File substitutions. ##
2544## ------------------- ##"
2545      echo
2546      for ac_var in $ac_subst_files
2547      do
2548	eval ac_val=\$$ac_var
2549	case $ac_val in
2550	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551	esac
2552	$as_echo "$ac_var='\''$ac_val'\''"
2553      done | sort
2554      echo
2555    fi
2556
2557    if test -s confdefs.h; then
2558      $as_echo "## ----------- ##
2559## confdefs.h. ##
2560## ----------- ##"
2561      echo
2562      cat confdefs.h
2563      echo
2564    fi
2565    test "$ac_signal" != 0 &&
2566      $as_echo "$as_me: caught signal $ac_signal"
2567    $as_echo "$as_me: exit $exit_status"
2568  } >&5
2569  rm -f core *.core core.conftest.* &&
2570    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571    exit $exit_status
2572' 0
2573for ac_signal in 1 2 13 15; do
2574  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575done
2576ac_signal=0
2577
2578# confdefs.h avoids OS command line length limits that DEFS can exceed.
2579rm -f -r conftest* confdefs.h
2580
2581$as_echo "/* confdefs.h */" > confdefs.h
2582
2583# Predefined preprocessor variables.
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_NAME "$PACKAGE_NAME"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_STRING "$PACKAGE_STRING"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608
2609
2610# Let the site file select an alternate cache file if it wants to.
2611# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
2614if test -n "$CONFIG_SITE"; then
2615  # We do not want a PATH search for config.site.
2616  case $CONFIG_SITE in #((
2617    -*)  ac_site_file1=./$CONFIG_SITE;;
2618    */*) ac_site_file1=$CONFIG_SITE;;
2619    *)   ac_site_file1=./$CONFIG_SITE;;
2620  esac
2621elif test "x$prefix" != xNONE; then
2622  ac_site_file1=$prefix/share/config.site
2623  ac_site_file2=$prefix/etc/config.site
2624else
2625  ac_site_file1=$ac_default_prefix/share/config.site
2626  ac_site_file2=$ac_default_prefix/etc/config.site
2627fi
2628for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629do
2630  test "x$ac_site_file" = xNONE && continue
2631  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2632    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2633$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2634    sed 's/^/| /' "$ac_site_file" >&5
2635    . "$ac_site_file" \
2636      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; }
2640  fi
2641done
2642
2643if test -r "$cache_file"; then
2644  # Some versions of bash will fail to source /dev/null (special files
2645  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2646  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2647    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648$as_echo "$as_me: loading cache $cache_file" >&6;}
2649    case $cache_file in
2650      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651      *)                      . "./$cache_file";;
2652    esac
2653  fi
2654else
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656$as_echo "$as_me: creating cache $cache_file" >&6;}
2657  >$cache_file
2658fi
2659
2660# Check that the precious variables saved in the cache have kept the same
2661# value.
2662ac_cache_corrupted=false
2663for ac_var in $ac_precious_vars; do
2664  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665  eval ac_new_set=\$ac_env_${ac_var}_set
2666  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667  eval ac_new_val=\$ac_env_${ac_var}_value
2668  case $ac_old_set,$ac_new_set in
2669    set,)
2670      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672      ac_cache_corrupted=: ;;
2673    ,set)
2674      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2676      ac_cache_corrupted=: ;;
2677    ,);;
2678    *)
2679      if test "x$ac_old_val" != "x$ac_new_val"; then
2680	# differences in whitespace do not lead to failure.
2681	ac_old_val_w=`echo x $ac_old_val`
2682	ac_new_val_w=`echo x $ac_new_val`
2683	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2686	  ac_cache_corrupted=:
2687	else
2688	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690	  eval $ac_var=\$ac_old_val
2691	fi
2692	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2693$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2694	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2696      fi;;
2697  esac
2698  # Pass precious variables to config.status.
2699  if test "$ac_new_set" = set; then
2700    case $ac_new_val in
2701    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702    *) ac_arg=$ac_var=$ac_new_val ;;
2703    esac
2704    case " $ac_configure_args " in
2705      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2706      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707    esac
2708  fi
2709done
2710if $ac_cache_corrupted; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2715  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728ac_aux_dir=
2729for ac_dir in config "$srcdir"/config; do
2730  if test -f "$ac_dir/install-sh"; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/install-sh -c"
2733    break
2734  elif test -f "$ac_dir/install.sh"; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install.sh -c"
2737    break
2738  elif test -f "$ac_dir/shtool"; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/shtool install -c"
2741    break
2742  fi
2743done
2744if test -z "$ac_aux_dir"; then
2745  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2746fi
2747
2748# These three variables are undocumented and unsupported,
2749# and are intended to be withdrawn in a future Autoconf release.
2750# They can cause serious problems if a builder's source tree is in a directory
2751# whose full name contains unusual characters.
2752ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2753ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2754ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2755
2756
2757
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765# Make sure we can run config.sub.
2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770$as_echo_n "checking build system type... " >&6; }
2771if ${ac_cv_build+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  ac_build_alias=$build_alias
2775test "x$ac_build_alias" = x &&
2776  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777test "x$ac_build_alias" = x &&
2778  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782fi
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784$as_echo "$ac_cv_build" >&6; }
2785case $ac_cv_build in
2786*-*-*) ;;
2787*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788esac
2789build=$ac_cv_build
2790ac_save_IFS=$IFS; IFS='-'
2791set x $ac_cv_build
2792shift
2793build_cpu=$1
2794build_vendor=$2
2795shift; shift
2796# Remember, the first character of IFS is used to create $*,
2797# except with old shells:
2798build_os=$*
2799IFS=$ac_save_IFS
2800case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804$as_echo_n "checking host system type... " >&6; }
2805if ${ac_cv_host+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test "x$host_alias" = x; then
2809  ac_cv_host=$ac_cv_build
2810else
2811  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813fi
2814
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817$as_echo "$ac_cv_host" >&6; }
2818case $ac_cv_host in
2819*-*-*) ;;
2820*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821esac
2822host=$ac_cv_host
2823ac_save_IFS=$IFS; IFS='-'
2824set x $ac_cv_host
2825shift
2826host_cpu=$1
2827host_vendor=$2
2828shift; shift
2829# Remember, the first character of IFS is used to create $*,
2830# except with old shells:
2831host_os=$*
2832IFS=$ac_save_IFS
2833case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834
2835
2836
2837am__api_version='1.12'
2838
2839# Find a good install program.  We prefer a C program (faster),
2840# so one script is as good as another.  But avoid the broken or
2841# incompatible versions:
2842# SysV /etc/install, /usr/sbin/install
2843# SunOS /usr/etc/install
2844# IRIX /sbin/install
2845# AIX /bin/install
2846# AmigaOS /C/install, which installs bootblocks on floppy discs
2847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2848# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2850# OS/2's system install, which has a completely different semantic
2851# ./install, which can be erroneously created by make from ./install.sh.
2852# Reject install programs that cannot install multiple files.
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2854$as_echo_n "checking for a BSD-compatible install... " >&6; }
2855if test -z "$INSTALL"; then
2856if ${ac_cv_path_install+:} false; then :
2857  $as_echo_n "(cached) " >&6
2858else
2859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864    # Account for people who put trailing slashes in PATH elements.
2865case $as_dir/ in #((
2866  ./ | .// | /[cC]/* | \
2867  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2868  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2869  /usr/ucb/* ) ;;
2870  *)
2871    # OSF1 and SCO ODT 3.0 have their own names for install.
2872    # Don't use installbsd from OSF since it installs stuff as root
2873    # by default.
2874    for ac_prog in ginstall scoinst install; do
2875      for ac_exec_ext in '' $ac_executable_extensions; do
2876	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2877	  if test $ac_prog = install &&
2878	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879	    # AIX install.  It has an incompatible calling convention.
2880	    :
2881	  elif test $ac_prog = install &&
2882	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883	    # program-specific install script used by HP pwplus--don't use.
2884	    :
2885	  else
2886	    rm -rf conftest.one conftest.two conftest.dir
2887	    echo one > conftest.one
2888	    echo two > conftest.two
2889	    mkdir conftest.dir
2890	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2891	      test -s conftest.one && test -s conftest.two &&
2892	      test -s conftest.dir/conftest.one &&
2893	      test -s conftest.dir/conftest.two
2894	    then
2895	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2896	      break 3
2897	    fi
2898	  fi
2899	fi
2900      done
2901    done
2902    ;;
2903esac
2904
2905  done
2906IFS=$as_save_IFS
2907
2908rm -rf conftest.one conftest.two conftest.dir
2909
2910fi
2911  if test "${ac_cv_path_install+set}" = set; then
2912    INSTALL=$ac_cv_path_install
2913  else
2914    # As a last resort, use the slow shell script.  Don't cache a
2915    # value for INSTALL within a source directory, because that will
2916    # break other packages using the cache if that directory is
2917    # removed, or if the value is a relative name.
2918    INSTALL=$ac_install_sh
2919  fi
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2922$as_echo "$INSTALL" >&6; }
2923
2924# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2925# It thinks the first close brace ends the variable substitution.
2926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2927
2928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929
2930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2933$as_echo_n "checking whether build environment is sane... " >&6; }
2934# Reject unsafe characters in $srcdir or the absolute working directory
2935# name.  Accept space and tab only in the latter.
2936am_lf='
2937'
2938case `pwd` in
2939  *[\\\"\#\$\&\'\`$am_lf]*)
2940    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2941esac
2942case $srcdir in
2943  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2944    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2945esac
2946
2947# Do 'set' in a subshell so we don't clobber the current shell's
2948# arguments.  Must try -L first in case configure is actually a
2949# symlink; some systems play weird games with the mod time of symlinks
2950# (eg FreeBSD returns the mod time of the symlink's containing
2951# directory).
2952if (
2953   am_has_slept=no
2954   for am_try in 1 2; do
2955     echo "timestamp, slept: $am_has_slept" > conftest.file
2956     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2957     if test "$*" = "X"; then
2958	# -L didn't work.
2959	set X `ls -t "$srcdir/configure" conftest.file`
2960     fi
2961     if test "$*" != "X $srcdir/configure conftest.file" \
2962	&& test "$*" != "X conftest.file $srcdir/configure"; then
2963
2964	# If neither matched, then we have a broken ls.  This can happen
2965	# if, for instance, CONFIG_SHELL is bash and it inherits a
2966	# broken ls alias from the environment.  This has actually
2967	# happened.  Such a system could not be considered "sane".
2968	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2969  alias in your environment" "$LINENO" 5
2970     fi
2971     if test "$2" = conftest.file || test $am_try -eq 2; then
2972       break
2973     fi
2974     # Just in case.
2975     sleep 1
2976     am_has_slept=yes
2977   done
2978   test "$2" = conftest.file
2979   )
2980then
2981   # Ok.
2982   :
2983else
2984   as_fn_error $? "newly created file is older than distributed files!
2985Check your system clock" "$LINENO" 5
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988$as_echo "yes" >&6; }
2989# If we didn't sleep, we still need to ensure time stamps of config.status and
2990# generated files are strictly newer.
2991am_sleep_pid=
2992if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2993  ( sleep 1 ) &
2994  am_sleep_pid=$!
2995fi
2996
2997rm -f conftest.file
2998
2999test "$program_prefix" != NONE &&
3000  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3001# Use a double $ so make ignores it.
3002test "$program_suffix" != NONE &&
3003  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004# Double any \ or $.
3005# By default was `s,x,x', remove it if useless.
3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3008
3009# expand $ac_aux_dir to an absolute path
3010am_aux_dir=`cd $ac_aux_dir && pwd`
3011
3012if test x"${MISSING+set}" != xset; then
3013  case $am_aux_dir in
3014  *\ * | *\	*)
3015    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016  *)
3017    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018  esac
3019fi
3020# Use eval to expand $SHELL
3021if eval "$MISSING --run true"; then
3022  am_missing_run="$MISSING --run "
3023else
3024  am_missing_run=
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3026$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3027fi
3028
3029if test x"${install_sh}" != xset; then
3030  case $am_aux_dir in
3031  *\ * | *\	*)
3032    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033  *)
3034    install_sh="\${SHELL} $am_aux_dir/install-sh"
3035  esac
3036fi
3037
3038# Installed binaries are usually stripped using 'strip' when the user
3039# run "make install-strip".  However 'strip' might not be the right
3040# tool to use in cross-compilation environments, therefore Automake
3041# will honor the 'STRIP' environment variable to overrule this program.
3042if test "$cross_compiling" != no; then
3043  if test -n "$ac_tool_prefix"; then
3044  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}strip; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_STRIP+:} false; then :
3049  $as_echo_n "(cached) " >&6
3050else
3051  if test -n "$STRIP"; then
3052  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  test -z "$as_dir" && as_dir=.
3059    for ac_exec_ext in '' $ac_executable_extensions; do
3060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063    break 2
3064  fi
3065done
3066  done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074$as_echo "$STRIP" >&6; }
3075else
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$ac_cv_prog_STRIP"; then
3083  ac_ct_STRIP=$STRIP
3084  # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$ac_ct_STRIP"; then
3092  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097  IFS=$as_save_IFS
3098  test -z "$as_dir" && as_dir=.
3099    for ac_exec_ext in '' $ac_executable_extensions; do
3100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101    ac_cv_prog_ac_ct_STRIP="strip"
3102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103    break 2
3104  fi
3105done
3106  done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114$as_echo "$ac_ct_STRIP" >&6; }
3115else
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120  if test "x$ac_ct_STRIP" = x; then
3121    STRIP=":"
3122  else
3123    case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129    STRIP=$ac_ct_STRIP
3130  fi
3131else
3132  STRIP="$ac_cv_prog_STRIP"
3133fi
3134
3135fi
3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140if test -z "$MKDIR_P"; then
3141  if ${ac_cv_path_mkdir+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_prog in mkdir gmkdir; do
3150	 for ac_exec_ext in '' $ac_executable_extensions; do
3151	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3152	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153	     'mkdir (GNU coreutils) '* | \
3154	     'mkdir (coreutils) '* | \
3155	     'mkdir (fileutils) '4.1*)
3156	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157	       break 3;;
3158	   esac
3159	 done
3160       done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165
3166  test -d ./--version && rmdir ./--version
3167  if test "${ac_cv_path_mkdir+set}" = set; then
3168    MKDIR_P="$ac_cv_path_mkdir -p"
3169  else
3170    # As a last resort, use the slow shell script.  Don't cache a
3171    # value for MKDIR_P within a source directory, because that will
3172    # break other packages using the cache if that directory is
3173    # removed, or if the value is a relative name.
3174    MKDIR_P="$ac_install_sh -d"
3175  fi
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178$as_echo "$MKDIR_P" >&6; }
3179
3180for ac_prog in gawk mawk nawk awk
3181do
3182  # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_AWK+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if test -n "$AWK"; then
3190  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_AWK="$ac_prog"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204  done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209AWK=$ac_cv_prog_AWK
3210if test -n "$AWK"; then
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3212$as_echo "$AWK" >&6; }
3213else
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218
3219  test -n "$AWK" && break
3220done
3221
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3223$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3224set x ${MAKE-make}
3225ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3226if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  cat >conftest.make <<\_ACEOF
3230SHELL = /bin/sh
3231all:
3232	@echo '@@@%%%=$(MAKE)=@@@%%%'
3233_ACEOF
3234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3235case `${MAKE-make} -f conftest.make 2>/dev/null` in
3236  *@@@%%%=?*=@@@%%%*)
3237    eval ac_cv_prog_make_${ac_make}_set=yes;;
3238  *)
3239    eval ac_cv_prog_make_${ac_make}_set=no;;
3240esac
3241rm -f conftest.make
3242fi
3243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245$as_echo "yes" >&6; }
3246  SET_MAKE=
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250  SET_MAKE="MAKE=${MAKE-make}"
3251fi
3252
3253rm -rf .tst 2>/dev/null
3254mkdir .tst 2>/dev/null
3255if test -d .tst; then
3256  am__leading_dot=.
3257else
3258  am__leading_dot=_
3259fi
3260rmdir .tst 2>/dev/null
3261
3262if test "`cd $srcdir && pwd`" != "`pwd`"; then
3263  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3264  # is not polluted with repeated "-I."
3265  am__isrc=' -I$(srcdir)'
3266  # test to see if srcdir already configured
3267  if test -f $srcdir/config.status; then
3268    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3269  fi
3270fi
3271
3272# test whether we have cygpath
3273if test -z "$CYGPATH_W"; then
3274  if (cygpath --version) >/dev/null 2>/dev/null; then
3275    CYGPATH_W='cygpath -w'
3276  else
3277    CYGPATH_W=echo
3278  fi
3279fi
3280
3281
3282# Define the identity of the package.
3283 PACKAGE='tiff'
3284 VERSION='4.0.3'
3285
3286
3287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE "$PACKAGE"
3289_ACEOF
3290
3291
3292cat >>confdefs.h <<_ACEOF
3293#define VERSION "$VERSION"
3294_ACEOF
3295
3296# Some tools Automake needs.
3297
3298ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
3312# For better backward compatibility.  To be removed once Automake 1.9.x
3313# dies out for good.  For more background, see:
3314# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3315# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3316mkdir_p='$(MKDIR_P)'
3317
3318# We need awk for the "check" target.  The system "awk" is bad on
3319# some platforms.
3320# Always define AMTAR for backward compatibility.  Yes, it's still used
3321# in the wild :-(  We should find a proper way to deprecate it ...
3322AMTAR='$${TAR-tar}'
3323
3324am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3325
3326
3327
3328
3329
3330
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3332$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3333    # Check whether --enable-maintainer-mode was given.
3334if test "${enable_maintainer_mode+set}" = set; then :
3335  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3336else
3337  USE_MAINTAINER_MODE=no
3338fi
3339
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3341$as_echo "$USE_MAINTAINER_MODE" >&6; }
3342   if test $USE_MAINTAINER_MODE = yes; then
3343  MAINTAINER_MODE_TRUE=
3344  MAINTAINER_MODE_FALSE='#'
3345else
3346  MAINTAINER_MODE_TRUE='#'
3347  MAINTAINER_MODE_FALSE=
3348fi
3349
3350  MAINT=$MAINTAINER_MODE_TRUE
3351
3352
3353
3354LIBTIFF_MAJOR_VERSION=4
3355LIBTIFF_MINOR_VERSION=0
3356LIBTIFF_MICRO_VERSION=3
3357LIBTIFF_ALPHA_VERSION=
3358LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3359LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3360
3361LIBTIFF_CURRENT=7
3362LIBTIFF_REVISION=0
3363LIBTIFF_AGE=2
3364LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3365
3366# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3367# in OpenBSD uses some special semantics for shared libraries. Their soname
3368# contains only two numbers, major and minor.
3369# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3370#case "$host_os" in
3371#    openbsd* | mirbsd*)
3372#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3373#	;;
3374#    *)
3375#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3376#	;;
3377#esac
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392if test -n "$ac_tool_prefix"; then
3393  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if ${ac_cv_prog_CC+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  if test -n "$CC"; then
3401  ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415  done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423$as_echo "$CC" >&6; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
3427fi
3428
3429
3430fi
3431if test -z "$ac_cv_prog_CC"; then
3432  ac_ct_CC=$CC
3433  # Extract the first word of "gcc", so it can be a program name with args.
3434set dummy gcc; ac_word=$2
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  if test -n "$ac_ct_CC"; then
3441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448    for ac_exec_ext in '' $ac_executable_extensions; do
3449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450    ac_cv_prog_ac_ct_CC="gcc"
3451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455  done
3456IFS=$as_save_IFS
3457
3458fi
3459fi
3460ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461if test -n "$ac_ct_CC"; then
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463$as_echo "$ac_ct_CC" >&6; }
3464else
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467fi
3468
3469  if test "x$ac_ct_CC" = x; then
3470    CC=""
3471  else
3472    case $cross_compiling:$ac_tool_warned in
3473yes:)
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476ac_tool_warned=yes ;;
3477esac
3478    CC=$ac_ct_CC
3479  fi
3480else
3481  CC="$ac_cv_prog_CC"
3482fi
3483
3484if test -z "$CC"; then
3485          if test -n "$ac_tool_prefix"; then
3486    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3487set dummy ${ac_tool_prefix}cc; ac_word=$2
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489$as_echo_n "checking for $ac_word... " >&6; }
3490if ${ac_cv_prog_CC+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  if test -n "$CC"; then
3494  ac_cv_prog_CC="$CC" # Let the user override the test.
3495else
3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499  IFS=$as_save_IFS
3500  test -z "$as_dir" && as_dir=.
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503    ac_cv_prog_CC="${ac_tool_prefix}cc"
3504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516$as_echo "$CC" >&6; }
3517else
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519$as_echo "no" >&6; }
3520fi
3521
3522
3523  fi
3524fi
3525if test -z "$CC"; then
3526  # Extract the first word of "cc", so it can be a program name with args.
3527set dummy cc; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_CC+:} false; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  if test -n "$CC"; then
3534  ac_cv_prog_CC="$CC" # Let the user override the test.
3535else
3536  ac_prog_rejected=no
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540  IFS=$as_save_IFS
3541  test -z "$as_dir" && as_dir=.
3542    for ac_exec_ext in '' $ac_executable_extensions; do
3543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3545       ac_prog_rejected=yes
3546       continue
3547     fi
3548    ac_cv_prog_CC="cc"
3549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556if test $ac_prog_rejected = yes; then
3557  # We found a bogon in the path, so make sure we never use it.
3558  set dummy $ac_cv_prog_CC
3559  shift
3560  if test $# != 0; then
3561    # We chose a different compiler from the bogus one.
3562    # However, it has the same basename, so the bogon will be chosen
3563    # first if we set CC to just the basename; use the full file name.
3564    shift
3565    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3566  fi
3567fi
3568fi
3569fi
3570CC=$ac_cv_prog_CC
3571if test -n "$CC"; then
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573$as_echo "$CC" >&6; }
3574else
3575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576$as_echo "no" >&6; }
3577fi
3578
3579
3580fi
3581if test -z "$CC"; then
3582  if test -n "$ac_tool_prefix"; then
3583  for ac_prog in cl.exe
3584  do
3585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588$as_echo_n "checking for $ac_word... " >&6; }
3589if ${ac_cv_prog_CC+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if test -n "$CC"; then
3593  ac_cv_prog_CC="$CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  test -z "$as_dir" && as_dir=.
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607  done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615$as_echo "$CC" >&6; }
3616else
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
3619fi
3620
3621
3622    test -n "$CC" && break
3623  done
3624fi
3625if test -z "$CC"; then
3626  ac_ct_CC=$CC
3627  for ac_prog in cl.exe
3628do
3629  # Extract the first word of "$ac_prog", so it can be a program name with args.
3630set dummy $ac_prog; ac_word=$2
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_ac_ct_CC+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  if test -n "$ac_ct_CC"; then
3637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  test -z "$as_dir" && as_dir=.
3644    for ac_exec_ext in '' $ac_executable_extensions; do
3645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646    ac_cv_prog_ac_ct_CC="$ac_prog"
3647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648    break 2
3649  fi
3650done
3651  done
3652IFS=$as_save_IFS
3653
3654fi
3655fi
3656ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657if test -n "$ac_ct_CC"; then
3658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659$as_echo "$ac_ct_CC" >&6; }
3660else
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663fi
3664
3665
3666  test -n "$ac_ct_CC" && break
3667done
3668
3669  if test "x$ac_ct_CC" = x; then
3670    CC=""
3671  else
3672    case $cross_compiling:$ac_tool_warned in
3673yes:)
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676ac_tool_warned=yes ;;
3677esac
3678    CC=$ac_ct_CC
3679  fi
3680fi
3681
3682fi
3683
3684
3685test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687as_fn_error $? "no acceptable C compiler found in \$PATH
3688See \`config.log' for more details" "$LINENO" 5; }
3689
3690# Provide some information about the compiler.
3691$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3692set X $ac_compile
3693ac_compiler=$2
3694for ac_option in --version -v -V -qversion; do
3695  { { ac_try="$ac_compiler $ac_option >&5"
3696case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703  ac_status=$?
3704  if test -s conftest.err; then
3705    sed '10a\
3706... rest of stderr output deleted ...
3707         10q' conftest.err >conftest.er1
3708    cat conftest.er1 >&5
3709  fi
3710  rm -f conftest.er1 conftest.err
3711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }
3713done
3714
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726ac_clean_files_save=$ac_clean_files
3727ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3728# Try to create an executable without -o first, disregard a.out.
3729# It will help us diagnose broken compilers, and finding out an intuition
3730# of exeext.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3732$as_echo_n "checking whether the C compiler works... " >&6; }
3733ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734
3735# The possible output files:
3736ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737
3738ac_rmfiles=
3739for ac_file in $ac_files
3740do
3741  case $ac_file in
3742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744  esac
3745done
3746rm -f $ac_rmfiles
3747
3748if { { ac_try="$ac_link_default"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755  (eval "$ac_link_default") 2>&5
3756  ac_status=$?
3757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758  test $ac_status = 0; }; then :
3759  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3762# so that the user can short-circuit this test for compilers unknown to
3763# Autoconf.
3764for ac_file in $ac_files ''
3765do
3766  test -f "$ac_file" || continue
3767  case $ac_file in
3768    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769	;;
3770    [ab].out )
3771	# We found the default executable, but exeext='' is most
3772	# certainly right.
3773	break;;
3774    *.* )
3775	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776	then :; else
3777	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778	fi
3779	# We set ac_cv_exeext here because the later test for it is not
3780	# safe: cross compilers may not add the suffix if given an `-o'
3781	# argument, so we may need to know it at that point already.
3782	# Even if this section looks crufty: it has the advantage of
3783	# actually working.
3784	break;;
3785    * )
3786	break;;
3787  esac
3788done
3789test "$ac_cv_exeext" = no && ac_cv_exeext=
3790
3791else
3792  ac_file=''
3793fi
3794if test -z "$ac_file"; then :
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797$as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error 77 "C compiler cannot create executables
3803See \`config.log' for more details" "$LINENO" 5; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806$as_echo "yes" >&6; }
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3809$as_echo_n "checking for C compiler default output file name... " >&6; }
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811$as_echo "$ac_file" >&6; }
3812ac_exeext=$ac_cv_exeext
3813
3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815ac_clean_files=$ac_clean_files_save
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817$as_echo_n "checking for suffix of executables... " >&6; }
3818if { { ac_try="$ac_link"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_link") 2>&5
3826  ac_status=$?
3827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828  test $ac_status = 0; }; then :
3829  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3831# work properly (i.e., refer to `conftest.exe'), while it won't with
3832# `rm'.
3833for ac_file in conftest.exe conftest conftest.*; do
3834  test -f "$ac_file" || continue
3835  case $ac_file in
3836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838	  break;;
3839    * ) break;;
3840  esac
3841done
3842else
3843  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846See \`config.log' for more details" "$LINENO" 5; }
3847fi
3848rm -f conftest conftest$ac_cv_exeext
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850$as_echo "$ac_cv_exeext" >&6; }
3851
3852rm -f conftest.$ac_ext
3853EXEEXT=$ac_cv_exeext
3854ac_exeext=$EXEEXT
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857#include <stdio.h>
3858int
3859main ()
3860{
3861FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files="$ac_clean_files conftest.out"
3869# Check that the compiler produces executables we can run.  If not, either
3870# the compiler is broken, or we cross compile.
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872$as_echo_n "checking whether we are cross compiling... " >&6; }
3873if test "$cross_compiling" != yes; then
3874  { { ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885  if { ac_try='./conftest$ac_cv_exeext'
3886  { { case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892  (eval "$ac_try") 2>&5
3893  ac_status=$?
3894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; }; then
3896    cross_compiling=no
3897  else
3898    if test "$cross_compiling" = maybe; then
3899	cross_compiling=yes
3900    else
3901	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error $? "cannot run C compiled programs.
3904If you meant to cross compile, use \`--host'.
3905See \`config.log' for more details" "$LINENO" 5; }
3906    fi
3907  fi
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910$as_echo "$cross_compiling" >&6; }
3911
3912rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915$as_echo_n "checking for suffix of object files... " >&6; }
3916if ${ac_cv_objext+:} false; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.o conftest.obj
3931if { { ac_try="$ac_compile"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938  (eval "$ac_compile") 2>&5
3939  ac_status=$?
3940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }; then :
3942  for ac_file in conftest.o conftest.obj conftest.*; do
3943  test -f "$ac_file" || continue;
3944  case $ac_file in
3945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947       break;;
3948  esac
3949done
3950else
3951  $as_echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error $? "cannot compute suffix of object files: cannot compile
3957See \`config.log' for more details" "$LINENO" 5; }
3958fi
3959rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962$as_echo "$ac_cv_objext" >&6; }
3963OBJEXT=$ac_cv_objext
3964ac_objext=$OBJEXT
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3966$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3967if ${ac_cv_c_compiler_gnu+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976#ifndef __GNUC__
3977       choke me
3978#endif
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984if ac_fn_c_try_compile "$LINENO"; then :
3985  ac_compiler_gnu=yes
3986else
3987  ac_compiler_gnu=no
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995if test $ac_compiler_gnu = yes; then
3996  GCC=yes
3997else
3998  GCC=
3999fi
4000ac_test_CFLAGS=${CFLAGS+set}
4001ac_save_CFLAGS=$CFLAGS
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003$as_echo_n "checking whether $CC accepts -g... " >&6; }
4004if ${ac_cv_prog_cc_g+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  ac_save_c_werror_flag=$ac_c_werror_flag
4008   ac_c_werror_flag=yes
4009   ac_cv_prog_cc_g=no
4010   CFLAGS="-g"
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023  ac_cv_prog_cc_g=yes
4024else
4025  CFLAGS=""
4026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"; then :
4038
4039else
4040  ac_c_werror_flag=$ac_save_c_werror_flag
4041	 CFLAGS="-g"
4042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053if ac_fn_c_try_compile "$LINENO"; then :
4054  ac_cv_prog_cc_g=yes
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061   ac_c_werror_flag=$ac_save_c_werror_flag
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064$as_echo "$ac_cv_prog_cc_g" >&6; }
4065if test "$ac_test_CFLAGS" = set; then
4066  CFLAGS=$ac_save_CFLAGS
4067elif test $ac_cv_prog_cc_g = yes; then
4068  if test "$GCC" = yes; then
4069    CFLAGS="-g -O2"
4070  else
4071    CFLAGS="-g"
4072  fi
4073else
4074  if test "$GCC" = yes; then
4075    CFLAGS="-O2"
4076  else
4077    CFLAGS=
4078  fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4081$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4082if ${ac_cv_prog_cc_c89+:} false; then :
4083  $as_echo_n "(cached) " >&6
4084else
4085  ac_cv_prog_cc_c89=no
4086ac_save_CC=$CC
4087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#include <stdarg.h>
4090#include <stdio.h>
4091struct stat;
4092/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4093struct buf { int x; };
4094FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095static char *e (p, i)
4096     char **p;
4097     int i;
4098{
4099  return p[i];
4100}
4101static char *f (char * (*g) (char **, int), char **p, ...)
4102{
4103  char *s;
4104  va_list v;
4105  va_start (v,p);
4106  s = g (p, va_arg (v,int));
4107  va_end (v);
4108  return s;
4109}
4110
4111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4112   function prototypes and stuff, but not '\xHH' hex character constants.
4113   These don't provoke an error unfortunately, instead are silently treated
4114   as 'x'.  The following induces an error, until -std is added to get
4115   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4116   array size at least.  It's necessary to write '\x00'==0 to get something
4117   that's true only with -std.  */
4118int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119
4120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121   inside strings and character constants.  */
4122#define FOO(x) 'x'
4123int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124
4125int test (int i, double x);
4126struct s1 {int (*f) (int a);};
4127struct s2 {int (*f) (double a);};
4128int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129int argc;
4130char **argv;
4131int
4132main ()
4133{
4134return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141do
4142  CC="$ac_save_CC $ac_arg"
4143  if ac_fn_c_try_compile "$LINENO"; then :
4144  ac_cv_prog_cc_c89=$ac_arg
4145fi
4146rm -f core conftest.err conftest.$ac_objext
4147  test "x$ac_cv_prog_cc_c89" != "xno" && break
4148done
4149rm -f conftest.$ac_ext
4150CC=$ac_save_CC
4151
4152fi
4153# AC_CACHE_VAL
4154case "x$ac_cv_prog_cc_c89" in
4155  x)
4156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157$as_echo "none needed" >&6; } ;;
4158  xno)
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160$as_echo "unsupported" >&6; } ;;
4161  *)
4162    CC="$CC $ac_cv_prog_cc_c89"
4163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4165esac
4166if test "x$ac_cv_prog_cc_c89" != xno; then :
4167
4168fi
4169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175DEPDIR="${am__leading_dot}deps"
4176
4177ac_config_commands="$ac_config_commands depfiles"
4178
4179
4180am_make=${MAKE-make}
4181cat > confinc << 'END'
4182am__doit:
4183	@echo this is the am__doit target
4184.PHONY: am__doit
4185END
4186# If we don't find an include directive, just comment out the code.
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4188$as_echo_n "checking for style of include used by $am_make... " >&6; }
4189am__include="#"
4190am__quote=
4191_am_result=none
4192# First try GNU make style include.
4193echo "include confinc" > confmf
4194# Ignore all kinds of additional output from 'make'.
4195case `$am_make -s -f confmf 2> /dev/null` in #(
4196*the\ am__doit\ target*)
4197  am__include=include
4198  am__quote=
4199  _am_result=GNU
4200  ;;
4201esac
4202# Now try BSD make style include.
4203if test "$am__include" = "#"; then
4204   echo '.include "confinc"' > confmf
4205   case `$am_make -s -f confmf 2> /dev/null` in #(
4206   *the\ am__doit\ target*)
4207     am__include=.include
4208     am__quote="\""
4209     _am_result=BSD
4210     ;;
4211   esac
4212fi
4213
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4216$as_echo "$_am_result" >&6; }
4217rm -f confinc confmf
4218
4219# Check whether --enable-dependency-tracking was given.
4220if test "${enable_dependency_tracking+set}" = set; then :
4221  enableval=$enable_dependency_tracking;
4222fi
4223
4224if test "x$enable_dependency_tracking" != xno; then
4225  am_depcomp="$ac_aux_dir/depcomp"
4226  AMDEPBACKSLASH='\'
4227  am__nodep='_no'
4228fi
4229 if test "x$enable_dependency_tracking" != xno; then
4230  AMDEP_TRUE=
4231  AMDEP_FALSE='#'
4232else
4233  AMDEP_TRUE='#'
4234  AMDEP_FALSE=
4235fi
4236
4237
4238
4239depcc="$CC"   am_compiler_list=
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242$as_echo_n "checking dependency style of $depcc... " >&6; }
4243if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4247  # We make a subdir and do the tests there.  Otherwise we can end up
4248  # making bogus files that we don't know about and never remove.  For
4249  # instance it was reported that on HP-UX the gcc test will end up
4250  # making a dummy file named 'D' -- because '-MD' means "put the output
4251  # in D".
4252  rm -rf conftest.dir
4253  mkdir conftest.dir
4254  # Copy depcomp to subdir because otherwise we won't find it if we're
4255  # using a relative directory.
4256  cp "$am_depcomp" conftest.dir
4257  cd conftest.dir
4258  # We will build objects and dependencies in a subdirectory because
4259  # it helps to detect inapplicable dependency modes.  For instance
4260  # both Tru64's cc and ICC support -MD to output dependencies as a
4261  # side effect of compilation, but ICC will put the dependencies in
4262  # the current directory while Tru64 will put them in the object
4263  # directory.
4264  mkdir sub
4265
4266  am_cv_CC_dependencies_compiler_type=none
4267  if test "$am_compiler_list" = ""; then
4268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269  fi
4270  am__universal=false
4271  case " $depcc " in #(
4272     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273     esac
4274
4275  for depmode in $am_compiler_list; do
4276    # Setup a source with many dependencies, because some compilers
4277    # like to wrap large dependency lists on column 80 (with \), and
4278    # we should not choose a depcomp mode which is confused by this.
4279    #
4280    # We need to recreate these files for each test, as the compiler may
4281    # overwrite some of them when testing with obscure command lines.
4282    # This happens at least with the AIX C compiler.
4283    : > sub/conftest.c
4284    for i in 1 2 3 4 5 6; do
4285      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287      # Solaris 10 /bin/sh.
4288      echo '/* dummy */' > sub/conftst$i.h
4289    done
4290    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
4292    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4293    # mode.  It turns out that the SunPro C++ compiler does not properly
4294    # handle '-M -o', and we need to detect this.  Also, some Intel
4295    # versions had trouble with output in subdirs.
4296    am__obj=sub/conftest.${OBJEXT-o}
4297    am__minus_obj="-o $am__obj"
4298    case $depmode in
4299    gcc)
4300      # This depmode causes a compiler race in universal mode.
4301      test "$am__universal" = false || continue
4302      ;;
4303    nosideeffect)
4304      # After this tag, mechanisms are not by side-effect, so they'll
4305      # only be used when explicitly requested.
4306      if test "x$enable_dependency_tracking" = xyes; then
4307	continue
4308      else
4309	break
4310      fi
4311      ;;
4312    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4313      # This compiler won't grok '-c -o', but also, the minuso test has
4314      # not run yet.  These depmodes are late enough in the game, and
4315      # so weak that their functioning should not be impacted.
4316      am__obj=conftest.${OBJEXT-o}
4317      am__minus_obj=
4318      ;;
4319    none) break ;;
4320    esac
4321    if depmode=$depmode \
4322       source=sub/conftest.c object=$am__obj \
4323       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325         >/dev/null 2>conftest.err &&
4326       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330      # icc doesn't choke on unknown options, it will just issue warnings
4331      # or remarks (even with -Werror).  So we grep stderr for any message
4332      # that says an option was ignored or not supported.
4333      # When given -MP, icc 7.0 and 7.1 complain thusly:
4334      #   icc: Command line warning: ignoring option '-M'; no argument required
4335      # The diagnosis changed in icc 8.0:
4336      #   icc: Command line remark: option '-MP' not supported
4337      if (grep 'ignoring option' conftest.err ||
4338          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339        am_cv_CC_dependencies_compiler_type=$depmode
4340        break
4341      fi
4342    fi
4343  done
4344
4345  cd ..
4346  rm -rf conftest.dir
4347else
4348  am_cv_CC_dependencies_compiler_type=none
4349fi
4350
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4353$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
4356 if
4357  test "x$enable_dependency_tracking" != xno \
4358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359  am__fastdepCC_TRUE=
4360  am__fastdepCC_FALSE='#'
4361else
4362  am__fastdepCC_TRUE='#'
4363  am__fastdepCC_FALSE=
4364fi
4365
4366
4367if test "x$CC" != xcc; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4369$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4372$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4373fi
4374set dummy $CC; ac_cc=`$as_echo "$2" |
4375		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4376if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381
4382int
4383main ()
4384{
4385
4386  ;
4387  return 0;
4388}
4389_ACEOF
4390# Make sure it works both with $CC and with simple cc.
4391# We do the test twice because some compilers refuse to overwrite an
4392# existing .o file with -o, though they will create one.
4393ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394rm -f conftest2.*
4395if { { case "(($ac_try" in
4396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397  *) ac_try_echo=$ac_try;;
4398esac
4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400$as_echo "$ac_try_echo"; } >&5
4401  (eval "$ac_try") 2>&5
4402  ac_status=$?
4403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404  test $ac_status = 0; } &&
4405   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407  *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411  (eval "$ac_try") 2>&5
4412  ac_status=$?
4413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414  test $ac_status = 0; };
4415then
4416  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4417  if test "x$CC" != xcc; then
4418    # Test first that cc exists at all.
4419    if { ac_try='cc -c conftest.$ac_ext >&5'
4420  { { case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426  (eval "$ac_try") 2>&5
4427  ac_status=$?
4428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429  test $ac_status = 0; }; }; then
4430      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4431      rm -f conftest2.*
4432      if { { case "(($ac_try" in
4433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434  *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438  (eval "$ac_try") 2>&5
4439  ac_status=$?
4440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441  test $ac_status = 0; } &&
4442	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444  *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
4448  (eval "$ac_try") 2>&5
4449  ac_status=$?
4450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451  test $ac_status = 0; };
4452      then
4453	# cc works too.
4454	:
4455      else
4456	# cc exists but doesn't like -o.
4457	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4458      fi
4459    fi
4460  fi
4461else
4462  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463fi
4464rm -f core conftest*
4465
4466fi
4467if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469$as_echo "yes" >&6; }
4470else
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473
4474$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4475
4476fi
4477
4478# FIXME: we rely on the cache variable name because
4479# there is no other way.
4480set dummy $CC
4481am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4483if test "$am_t" != yes; then
4484   # Losing compiler, so override with the script.
4485   # FIXME: It is wrong to rewrite CC.
4486   # But if we don't then we get into trouble of one sort or another.
4487   # A longer-term fix would be to have automake use am__CC in this case,
4488   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4489   CC="$am_aux_dir/compile $CC"
4490fi
4491
4492
4493
4494
4495  ansi=
4496  if test -z "$ansi"; then
4497    msg="for C compiler warning flags"
4498  else
4499    msg="for C compiler warning and ANSI conformance flags"
4500  fi
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4502$as_echo_n "checking $msg... " >&6; }
4503if ${vl_cv_prog_cc_warnings+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506
4507    if test -n "$CC"; then
4508      cat > conftest.c <<EOF
4509int main(int argc, char **argv) { return 0; }
4510EOF
4511
4512            if test "$GCC" = "yes"; then
4513        if test -z "$ansi"; then
4514          vl_cv_prog_cc_warnings="-Wall -W"
4515        else
4516          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4517        fi
4518
4519
4520            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4521           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4522           test -f conftest.o; then
4523        if test -z "$ansi"; then
4524          vl_cv_prog_cc_warnings="-v"
4525        else
4526          vl_cv_prog_cc_warnings="-v -Xc"
4527        fi
4528
4529            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4530           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4531           test -f conftest.o; then
4532        if test -z "$ansi"; then
4533          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4534        else
4535          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4536        fi
4537
4538            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4539           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4540           test -f conftest.o; then
4541        if test -z "$ansi"; then
4542          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4543        else
4544          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4545        fi
4546
4547            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4548           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4549           test -f conftest.o; then
4550        if test -z "$ansi"; then
4551          vl_cv_prog_cc_warnings="-fullwarn"
4552        else
4553          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4554        fi
4555
4556            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4557           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4558           test -f conftest.o; then
4559        if test -z "$ansi"; then
4560          vl_cv_prog_cc_warnings="+w1"
4561        else
4562          vl_cv_prog_cc_warnings="+w1 -Aa"
4563        fi
4564
4565            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4566           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4567           test -f conftest.o; then
4568        if test -z "$ansi"; then
4569          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4570        else
4571          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4572        fi
4573
4574            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4575           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4576           test -f conftest.o; then
4577        if test -z "$ansi"; then
4578          vl_cv_prog_cc_warnings="-h msglevel 2"
4579        else
4580          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4581        fi
4582
4583      fi
4584      rm -f conftest.*
4585    fi
4586    if test -n "$vl_cv_prog_cc_warnings"; then
4587      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4588    else
4589      vl_cv_prog_cc_warnings="unknown"
4590    fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4594$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4595
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4599$as_echo_n "checking whether ln -s works... " >&6; }
4600LN_S=$as_ln_s
4601if test "$LN_S" = "ln -s"; then
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603$as_echo "yes" >&6; }
4604else
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606$as_echo "no, using $LN_S" >&6; }
4607fi
4608
4609
4610
4611# Check if LD supports linker scripts, and define automake conditional
4612# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4613# constrained to compilers using GNU ld on ELF systems or systems
4614# which provide an adequate emulation thereof.
4615# Check whether --enable-ld-version-script was given.
4616if test "${enable_ld_version_script+set}" = set; then :
4617  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4618else
4619  have_ld_version_script=no
4620fi
4621
4622if test "$have_ld_version_script" != no; then
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4624$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4625  save_LDFLAGS="$LDFLAGS"
4626  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4627  cat > conftest.map <<EOF
4628VERS_1 {
4629        global: sym;
4630};
4631
4632VERS_2 {
4633        global: sym;
4634} VERS_1;
4635EOF
4636
4637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h.  */
4639
4640int
4641main ()
4642{
4643
4644  ;
4645  return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_link "$LINENO"; then :
4649  have_ld_version_script=yes
4650else
4651  have_ld_version_script=no
4652fi
4653rm -f core conftest.err conftest.$ac_objext \
4654    conftest$ac_exeext conftest.$ac_ext
4655  rm -f conftest.map
4656  LDFLAGS="$save_LDFLAGS"
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4658$as_echo "$have_ld_version_script" >&6; }
4659fi
4660 if test "$have_ld_version_script" = "yes"; then
4661  HAVE_LD_VERSION_SCRIPT_TRUE=
4662  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4663else
4664  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4665  HAVE_LD_VERSION_SCRIPT_FALSE=
4666fi
4667
4668
4669
4670
4671
4672
4673case `pwd` in
4674  *\ * | *\	*)
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4676$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4677esac
4678
4679
4680
4681macro_version='2.4.2.458.26-92994'
4682macro_revision='2.4.3'
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696ltmain=$ac_aux_dir/ltmain.sh
4697
4698# Backslashify metacharacters that are still active within
4699# double-quoted strings.
4700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4701
4702# Same as above, but do not quote variable references.
4703double_quote_subst='s/\(["`\\]\)/\\\1/g'
4704
4705# Sed substitution to delay expansion of an escaped shell variable in a
4706# double_quote_subst'ed string.
4707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4708
4709# Sed substitution to delay expansion of an escaped single quote.
4710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4711
4712# Sed substitution to avoid accidental globbing in evaled expressions
4713no_glob_subst='s/\*/\\\*/g'
4714
4715ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4717ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4720$as_echo_n "checking how to print strings... " >&6; }
4721# Test print first, because it will be a builtin if present.
4722if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4723   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4724  ECHO='print -r --'
4725elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4726  ECHO='printf %s\n'
4727else
4728  # Use this function as a fallback that always works.
4729  func_fallback_echo ()
4730  {
4731    eval 'cat <<_LTECHO_EOF
4732$1
4733_LTECHO_EOF'
4734  }
4735  ECHO='func_fallback_echo'
4736fi
4737
4738# func_echo_all arg...
4739# Invoke $ECHO with all args, space-separated.
4740func_echo_all ()
4741{
4742    $ECHO ""
4743}
4744
4745case $ECHO in
4746  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4747$as_echo "printf" >&6; } ;;
4748  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4749$as_echo "print -r" >&6; } ;;
4750  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4751$as_echo "cat" >&6; } ;;
4752esac
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773     for ac_i in 1 2 3 4 5 6 7; do
4774       ac_script="$ac_script$as_nl$ac_script"
4775     done
4776     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777     { ac_script=; unset ac_script;}
4778     if test -z "$SED"; then
4779  ac_path_SED_found=false
4780  # Loop through the user's path and test for each of PROGNAME-LIST
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_prog in sed gsed; do
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789      as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
4791  # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796  ac_count=0
4797  $as_echo_n 0123456789 >"conftest.in"
4798  while :
4799  do
4800    cat "conftest.in" "conftest.in" >"conftest.tmp"
4801    mv "conftest.tmp" "conftest.in"
4802    cp "conftest.in" "conftest.nl"
4803    $as_echo '' >> "conftest.nl"
4804    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806    as_fn_arith $ac_count + 1 && ac_count=$as_val
4807    if test $ac_count -gt ${ac_path_SED_max-0}; then
4808      # Best one so far, save it but keep looking for a better one
4809      ac_cv_path_SED="$ac_path_SED"
4810      ac_path_SED_max=$ac_count
4811    fi
4812    # 10*(2^10) chars as input seems more than enough
4813    test $ac_count -gt 10 && break
4814  done
4815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818      $ac_path_SED_found && break 3
4819    done
4820  done
4821  done
4822IFS=$as_save_IFS
4823  if test -z "$ac_cv_path_SED"; then
4824    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825  fi
4826else
4827  ac_cv_path_SED=$SED
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834  rm -f conftest.sed
4835
4836test -z "$SED" && SED=sed
4837Xsed="$SED -e 1s/^X//"
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851if ${ac_cv_path_GREP+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -z "$GREP"; then
4855  ac_path_GREP_found=false
4856  # Loop through the user's path and test for each of PROGNAME-LIST
4857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_prog in grep ggrep; do
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865      as_fn_executable_p "$ac_path_GREP" || continue
4866# Check for GNU ac_path_GREP and select it if it is found.
4867  # Check for GNU $ac_path_GREP
4868case `"$ac_path_GREP" --version 2>&1` in
4869*GNU*)
4870  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4871*)
4872  ac_count=0
4873  $as_echo_n 0123456789 >"conftest.in"
4874  while :
4875  do
4876    cat "conftest.in" "conftest.in" >"conftest.tmp"
4877    mv "conftest.tmp" "conftest.in"
4878    cp "conftest.in" "conftest.nl"
4879    $as_echo 'GREP' >> "conftest.nl"
4880    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882    as_fn_arith $ac_count + 1 && ac_count=$as_val
4883    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884      # Best one so far, save it but keep looking for a better one
4885      ac_cv_path_GREP="$ac_path_GREP"
4886      ac_path_GREP_max=$ac_count
4887    fi
4888    # 10*(2^10) chars as input seems more than enough
4889    test $ac_count -gt 10 && break
4890  done
4891  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892esac
4893
4894      $ac_path_GREP_found && break 3
4895    done
4896  done
4897  done
4898IFS=$as_save_IFS
4899  if test -z "$ac_cv_path_GREP"; then
4900    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901  fi
4902else
4903  ac_cv_path_GREP=$GREP
4904fi
4905
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908$as_echo "$ac_cv_path_GREP" >&6; }
4909 GREP="$ac_cv_path_GREP"
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913$as_echo_n "checking for egrep... " >&6; }
4914if ${ac_cv_path_EGREP+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918   then ac_cv_path_EGREP="$GREP -E"
4919   else
4920     if test -z "$EGREP"; then
4921  ac_path_EGREP_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in egrep; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931      as_fn_executable_p "$ac_path_EGREP" || continue
4932# Check for GNU ac_path_EGREP and select it if it is found.
4933  # Check for GNU $ac_path_EGREP
4934case `"$ac_path_EGREP" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo 'EGREP' >> "conftest.nl"
4946    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_EGREP="$ac_path_EGREP"
4952      ac_path_EGREP_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_EGREP_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_EGREP"; then
4966    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_EGREP=$EGREP
4970fi
4971
4972   fi
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975$as_echo "$ac_cv_path_EGREP" >&6; }
4976 EGREP="$ac_cv_path_EGREP"
4977
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4980$as_echo_n "checking for fgrep... " >&6; }
4981if ${ac_cv_path_FGREP+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985   then ac_cv_path_FGREP="$GREP -F"
4986   else
4987     if test -z "$FGREP"; then
4988  ac_path_FGREP_found=false
4989  # Loop through the user's path and test for each of PROGNAME-LIST
4990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992do
4993  IFS=$as_save_IFS
4994  test -z "$as_dir" && as_dir=.
4995    for ac_prog in fgrep; do
4996    for ac_exec_ext in '' $ac_executable_extensions; do
4997      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4998      as_fn_executable_p "$ac_path_FGREP" || continue
4999# Check for GNU ac_path_FGREP and select it if it is found.
5000  # Check for GNU $ac_path_FGREP
5001case `"$ac_path_FGREP" --version 2>&1` in
5002*GNU*)
5003  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5004*)
5005  ac_count=0
5006  $as_echo_n 0123456789 >"conftest.in"
5007  while :
5008  do
5009    cat "conftest.in" "conftest.in" >"conftest.tmp"
5010    mv "conftest.tmp" "conftest.in"
5011    cp "conftest.in" "conftest.nl"
5012    $as_echo 'FGREP' >> "conftest.nl"
5013    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015    as_fn_arith $ac_count + 1 && ac_count=$as_val
5016    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5017      # Best one so far, save it but keep looking for a better one
5018      ac_cv_path_FGREP="$ac_path_FGREP"
5019      ac_path_FGREP_max=$ac_count
5020    fi
5021    # 10*(2^10) chars as input seems more than enough
5022    test $ac_count -gt 10 && break
5023  done
5024  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025esac
5026
5027      $ac_path_FGREP_found && break 3
5028    done
5029  done
5030  done
5031IFS=$as_save_IFS
5032  if test -z "$ac_cv_path_FGREP"; then
5033    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034  fi
5035else
5036  ac_cv_path_FGREP=$FGREP
5037fi
5038
5039   fi
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042$as_echo "$ac_cv_path_FGREP" >&6; }
5043 FGREP="$ac_cv_path_FGREP"
5044
5045
5046test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066# Check whether --with-gnu-ld was given.
5067if test "${with_gnu_ld+set}" = set; then :
5068  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5069else
5070  with_gnu_ld=no
5071fi
5072
5073ac_prog=ld
5074if test yes = "$GCC"; then
5075  # Check if gcc -print-prog-name=ld gives a path.
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5077$as_echo_n "checking for ld used by $CC... " >&6; }
5078  case $host in
5079  *-*-mingw*)
5080    # gcc leaves a trailing carriage return, which upsets mingw
5081    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5082  *)
5083    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5084  esac
5085  case $ac_prog in
5086    # Accept absolute paths.
5087    [\\/]* | ?:[\\/]*)
5088      re_direlt='/[^/][^/]*/\.\./'
5089      # Canonicalize the pathname of ld
5090      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5091      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5092	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5093      done
5094      test -z "$LD" && LD=$ac_prog
5095      ;;
5096  "")
5097    # If it fails, then pretend we aren't using GCC.
5098    ac_prog=ld
5099    ;;
5100  *)
5101    # If it is relative, then search for the first ld in PATH.
5102    with_gnu_ld=unknown
5103    ;;
5104  esac
5105elif test yes = "$with_gnu_ld"; then
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5107$as_echo_n "checking for GNU ld... " >&6; }
5108else
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5110$as_echo_n "checking for non-GNU ld... " >&6; }
5111fi
5112if ${lt_cv_path_LD+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  if test -z "$LD"; then
5116  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5117  for ac_dir in $PATH; do
5118    IFS=$lt_save_ifs
5119    test -z "$ac_dir" && ac_dir=.
5120    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5121      lt_cv_path_LD=$ac_dir/$ac_prog
5122      # Check to see if the program is GNU ld.  I'd rather use --version,
5123      # but apparently some variants of GNU ld only accept -v.
5124      # Break only if it was the GNU/non-GNU ld that we prefer.
5125      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5126      *GNU* | *'with BFD'*)
5127	test no != "$with_gnu_ld" && break
5128	;;
5129      *)
5130	test yes != "$with_gnu_ld" && break
5131	;;
5132      esac
5133    fi
5134  done
5135  IFS=$lt_save_ifs
5136else
5137  lt_cv_path_LD=$LD # Let the user override the test with a path.
5138fi
5139fi
5140
5141LD=$lt_cv_path_LD
5142if test -n "$LD"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144$as_echo "$LD" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5152if ${lt_cv_prog_gnu_ld+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156case `$LD -v 2>&1 </dev/null` in
5157*GNU* | *'with BFD'*)
5158  lt_cv_prog_gnu_ld=yes
5159  ;;
5160*)
5161  lt_cv_prog_gnu_ld=no
5162  ;;
5163esac
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5167with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5178$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5179if ${lt_cv_path_NM+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$NM"; then
5183  # Let the user override the test.
5184  lt_cv_path_NM=$NM
5185else
5186  lt_nm_to_check=${ac_tool_prefix}nm
5187  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188    lt_nm_to_check="$lt_nm_to_check nm"
5189  fi
5190  for lt_tmp_nm in $lt_nm_to_check; do
5191    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5192    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193      IFS=$lt_save_ifs
5194      test -z "$ac_dir" && ac_dir=.
5195      tmp_nm=$ac_dir/$lt_tmp_nm
5196      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5197	# Check to see if the nm accepts a BSD-compat flag.
5198	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5199	#   nm: unknown option "B" ignored
5200	# Tru64's nm complains that /dev/null is an invalid object file
5201	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5202	case $build_os in
5203	mingw*) lt_bad_file=conftest.nm/nofile ;;
5204	*) lt_bad_file=/dev/null ;;
5205	esac
5206	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5207	*$lt_bad_file* | *'Invalid file or object type'*)
5208	  lt_cv_path_NM="$tmp_nm -B"
5209	  break 2
5210	  ;;
5211	*)
5212	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5213	  */dev/null*)
5214	    lt_cv_path_NM="$tmp_nm -p"
5215	    break 2
5216	    ;;
5217	  *)
5218	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5219	    continue # so that we can try to find one that supports BSD flags
5220	    ;;
5221	  esac
5222	  ;;
5223	esac
5224      fi
5225    done
5226    IFS=$lt_save_ifs
5227  done
5228  : ${lt_cv_path_NM=no}
5229fi
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5232$as_echo "$lt_cv_path_NM" >&6; }
5233if test no != "$lt_cv_path_NM"; then
5234  NM=$lt_cv_path_NM
5235else
5236  # Didn't find any BSD compatible name lister, look for dumpbin.
5237  if test -n "$DUMPBIN"; then :
5238    # Let the user override the test.
5239  else
5240    if test -n "$ac_tool_prefix"; then
5241  for ac_prog in dumpbin "link -dump"
5242  do
5243    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5244set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246$as_echo_n "checking for $ac_word... " >&6; }
5247if ${ac_cv_prog_DUMPBIN+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  if test -n "$DUMPBIN"; then
5251  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258    for ac_exec_ext in '' $ac_executable_extensions; do
5259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265  done
5266IFS=$as_save_IFS
5267
5268fi
5269fi
5270DUMPBIN=$ac_cv_prog_DUMPBIN
5271if test -n "$DUMPBIN"; then
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5273$as_echo "$DUMPBIN" >&6; }
5274else
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
5277fi
5278
5279
5280    test -n "$DUMPBIN" && break
5281  done
5282fi
5283if test -z "$DUMPBIN"; then
5284  ac_ct_DUMPBIN=$DUMPBIN
5285  for ac_prog in dumpbin "link -dump"
5286do
5287  # Extract the first word of "$ac_prog", so it can be a program name with args.
5288set dummy $ac_prog; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  if test -n "$ac_ct_DUMPBIN"; then
5295  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300  IFS=$as_save_IFS
5301  test -z "$as_dir" && as_dir=.
5302    for ac_exec_ext in '' $ac_executable_extensions; do
5303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306    break 2
5307  fi
5308done
5309  done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5315if test -n "$ac_ct_DUMPBIN"; then
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5317$as_echo "$ac_ct_DUMPBIN" >&6; }
5318else
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324  test -n "$ac_ct_DUMPBIN" && break
5325done
5326
5327  if test "x$ac_ct_DUMPBIN" = x; then
5328    DUMPBIN=":"
5329  else
5330    case $cross_compiling:$ac_tool_warned in
5331yes:)
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334ac_tool_warned=yes ;;
5335esac
5336    DUMPBIN=$ac_ct_DUMPBIN
5337  fi
5338fi
5339
5340    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5341    *COFF*)
5342      DUMPBIN="$DUMPBIN -symbols -headers"
5343      ;;
5344    *)
5345      DUMPBIN=:
5346      ;;
5347    esac
5348  fi
5349
5350  if test : != "$DUMPBIN"; then
5351    NM=$DUMPBIN
5352  fi
5353fi
5354test -z "$NM" && NM=nm
5355
5356
5357
5358
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5362$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5363if ${lt_cv_nm_interface+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  lt_cv_nm_interface="BSD nm"
5367  echo "int some_variable = 0;" > conftest.$ac_ext
5368  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5369  (eval "$ac_compile" 2>conftest.err)
5370  cat conftest.err >&5
5371  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5372  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5373  cat conftest.err >&5
5374  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5375  cat conftest.out >&5
5376  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5377    lt_cv_nm_interface="MS dumpbin"
5378  fi
5379  rm -f conftest*
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5382$as_echo "$lt_cv_nm_interface" >&6; }
5383
5384# find the maximum length of command line arguments
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5386$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5387if ${lt_cv_sys_max_cmd_len+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390    i=0
5391  teststring=ABCD
5392
5393  case $build_os in
5394  msdosdjgpp*)
5395    # On DJGPP, this test can blow up pretty badly due to problems in libc
5396    # (any single argument exceeding 2000 bytes causes a buffer overrun
5397    # during glob expansion).  Even if it were fixed, the result of this
5398    # check would be larger than it should be.
5399    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5400    ;;
5401
5402  gnu*)
5403    # Under GNU Hurd, this test is not required because there is
5404    # no limit to the length of command line arguments.
5405    # Libtool will interpret -1 as no limit whatsoever
5406    lt_cv_sys_max_cmd_len=-1;
5407    ;;
5408
5409  cygwin* | mingw* | cegcc*)
5410    # On Win9x/ME, this test blows up -- it succeeds, but takes
5411    # about 5 minutes as the teststring grows exponentially.
5412    # Worse, since 9x/ME are not pre-emptively multitasking,
5413    # you end up with a "frozen" computer, even though with patience
5414    # the test eventually succeeds (with a max line length of 256k).
5415    # Instead, let's just punt: use the minimum linelength reported by
5416    # all of the supported platforms: 8192 (on NT/2K/XP).
5417    lt_cv_sys_max_cmd_len=8192;
5418    ;;
5419
5420  mint*)
5421    # On MiNT this can take a long time and run out of memory.
5422    lt_cv_sys_max_cmd_len=8192;
5423    ;;
5424
5425  amigaos*)
5426    # On AmigaOS with pdksh, this test takes hours, literally.
5427    # So we just punt and use a minimum line length of 8192.
5428    lt_cv_sys_max_cmd_len=8192;
5429    ;;
5430
5431  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5432    # This has been around since 386BSD, at least.  Likely further.
5433    if test -x /sbin/sysctl; then
5434      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5435    elif test -x /usr/sbin/sysctl; then
5436      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5437    else
5438      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5439    fi
5440    # And add a safety zone
5441    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5442    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5443    ;;
5444
5445  interix*)
5446    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5447    lt_cv_sys_max_cmd_len=196608
5448    ;;
5449
5450  os2*)
5451    # The test takes a long time on OS/2.
5452    lt_cv_sys_max_cmd_len=8192
5453    ;;
5454
5455  osf*)
5456    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5457    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5458    # nice to cause kernel panics so lets avoid the loop below.
5459    # First set a reasonable default.
5460    lt_cv_sys_max_cmd_len=16384
5461    #
5462    if test -x /sbin/sysconfig; then
5463      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5464        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5465      esac
5466    fi
5467    ;;
5468  sco3.2v5*)
5469    lt_cv_sys_max_cmd_len=102400
5470    ;;
5471  sysv5* | sco5v6* | sysv4.2uw2*)
5472    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5473    if test -n "$kargmax"; then
5474      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5475    else
5476      lt_cv_sys_max_cmd_len=32768
5477    fi
5478    ;;
5479  *)
5480    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5481    if test -n "$lt_cv_sys_max_cmd_len" && \
5482       test undefined != "$lt_cv_sys_max_cmd_len"; then
5483      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5484      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5485    else
5486      # Make teststring a little bigger before we do anything with it.
5487      # a 1K string should be a reasonable start.
5488      for i in 1 2 3 4 5 6 7 8; do
5489        teststring=$teststring$teststring
5490      done
5491      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5492      # If test is not a shell built-in, we'll probably end up computing a
5493      # maximum length that is only half of the actual maximum length, but
5494      # we can't tell.
5495      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5496	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5497	      test 17 != "$i" # 1/2 MB should be enough
5498      do
5499        i=`expr $i + 1`
5500        teststring=$teststring$teststring
5501      done
5502      # Only check the string length outside the loop.
5503      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5504      teststring=
5505      # Add a significant safety factor because C++ compilers can tack on
5506      # massive amounts of additional arguments before passing them to the
5507      # linker.  It appears as though 1/2 is a usable value.
5508      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5509    fi
5510    ;;
5511  esac
5512
5513fi
5514
5515if test -n "$lt_cv_sys_max_cmd_len"; then
5516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5517$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5518else
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5520$as_echo "none" >&6; }
5521fi
5522max_cmd_len=$lt_cv_sys_max_cmd_len
5523
5524
5525
5526
5527
5528
5529: ${CP="cp -f"}
5530: ${MV="mv -f"}
5531: ${RM="rm -f"}
5532
5533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534  lt_unset=unset
5535else
5536  lt_unset=false
5537fi
5538
5539
5540
5541
5542
5543# test EBCDIC or ASCII
5544case `echo X|tr X '\101'` in
5545 A) # ASCII based system
5546    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5547  lt_SP2NL='tr \040 \012'
5548  lt_NL2SP='tr \015\012 \040\040'
5549  ;;
5550 *) # EBCDIC based system
5551  lt_SP2NL='tr \100 \n'
5552  lt_NL2SP='tr \r\n \100\100'
5553  ;;
5554esac
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5565$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5566if ${lt_cv_to_host_file_cmd+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  case $host in
5570  *-*-mingw* )
5571    case $build in
5572      *-*-mingw* ) # actually msys
5573        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5574        ;;
5575      *-*-cygwin* )
5576        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5577        ;;
5578      * ) # otherwise, assume *nix
5579        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5580        ;;
5581    esac
5582    ;;
5583  *-*-cygwin* )
5584    case $build in
5585      *-*-mingw* ) # actually msys
5586        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5587        ;;
5588      *-*-cygwin* )
5589        lt_cv_to_host_file_cmd=func_convert_file_noop
5590        ;;
5591      * ) # otherwise, assume *nix
5592        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5593        ;;
5594    esac
5595    ;;
5596  * ) # unhandled hosts (and "normal" native builds)
5597    lt_cv_to_host_file_cmd=func_convert_file_noop
5598    ;;
5599esac
5600
5601fi
5602
5603to_host_file_cmd=$lt_cv_to_host_file_cmd
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5605$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5606
5607
5608
5609
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5612$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5613if ${lt_cv_to_tool_file_cmd+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  #assume ordinary cross tools, or native build.
5617lt_cv_to_tool_file_cmd=func_convert_file_noop
5618case $host in
5619  *-*-mingw* )
5620    case $build in
5621      *-*-mingw* ) # actually msys
5622        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5623        ;;
5624    esac
5625    ;;
5626esac
5627
5628fi
5629
5630to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5632$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5633
5634
5635
5636
5637
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5639$as_echo_n "checking for $LD option to reload object files... " >&6; }
5640if ${lt_cv_ld_reload_flag+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  lt_cv_ld_reload_flag='-r'
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5646$as_echo "$lt_cv_ld_reload_flag" >&6; }
5647reload_flag=$lt_cv_ld_reload_flag
5648case $reload_flag in
5649"" | " "*) ;;
5650*) reload_flag=" $reload_flag" ;;
5651esac
5652reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653case $host_os in
5654  cygwin* | mingw* | pw32* | cegcc*)
5655    if test yes != "$GCC"; then
5656      reload_cmds=false
5657    fi
5658    ;;
5659  darwin*)
5660    if test yes = "$GCC"; then
5661      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5662    else
5663      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5664    fi
5665    ;;
5666esac
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676if test -n "$ac_tool_prefix"; then
5677  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}objdump; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if ${ac_cv_prog_OBJDUMP+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  if test -n "$OBJDUMP"; then
5685  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692    for ac_exec_ext in '' $ac_executable_extensions; do
5693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699  done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704OBJDUMP=$ac_cv_prog_OBJDUMP
5705if test -n "$OBJDUMP"; then
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5707$as_echo "$OBJDUMP" >&6; }
5708else
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713
5714fi
5715if test -z "$ac_cv_prog_OBJDUMP"; then
5716  ac_ct_OBJDUMP=$OBJDUMP
5717  # Extract the first word of "objdump", so it can be a program name with args.
5718set dummy objdump; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  if test -n "$ac_ct_OBJDUMP"; then
5725  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5745if test -n "$ac_ct_OBJDUMP"; then
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5747$as_echo "$ac_ct_OBJDUMP" >&6; }
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753  if test "x$ac_ct_OBJDUMP" = x; then
5754    OBJDUMP="false"
5755  else
5756    case $cross_compiling:$ac_tool_warned in
5757yes:)
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762    OBJDUMP=$ac_ct_OBJDUMP
5763  fi
5764else
5765  OBJDUMP="$ac_cv_prog_OBJDUMP"
5766fi
5767
5768test -z "$OBJDUMP" && OBJDUMP=objdump
5769
5770
5771
5772
5773
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5776$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5777if ${lt_cv_deplibs_check_method+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  lt_cv_file_magic_cmd='$MAGIC_CMD'
5781lt_cv_file_magic_test_file=
5782lt_cv_deplibs_check_method='unknown'
5783# Need to set the preceding variable on all platforms that support
5784# interlibrary dependencies.
5785# 'none' -- dependencies not supported.
5786# 'unknown' -- same as none, but documents that we really don't know.
5787# 'pass_all' -- all dependencies passed with no checks.
5788# 'test_compile' -- check by making test program.
5789# 'file_magic [[regex]]' -- check by looking for files in library path
5790# that responds to the $file_magic_cmd with a given extended regex.
5791# If you have 'file' or equivalent on your system and you're not sure
5792# whether 'pass_all' will *always* work, you probably want this one.
5793
5794case $host_os in
5795aix[4-9]*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799beos*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803bsdi[45]*)
5804  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5805  lt_cv_file_magic_cmd='/usr/bin/file -L'
5806  lt_cv_file_magic_test_file=/shlib/libc.so
5807  ;;
5808
5809cygwin*)
5810  # func_win32_libid is a shell function defined in ltmain.sh
5811  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812  lt_cv_file_magic_cmd='func_win32_libid'
5813  ;;
5814
5815mingw* | pw32*)
5816  # Base MSYS/MinGW do not provide the 'file' command needed by
5817  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5818  # unless we find 'file', for example because we are cross-compiling.
5819  if ( file / ) >/dev/null 2>&1; then
5820    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5821    lt_cv_file_magic_cmd='func_win32_libid'
5822  else
5823    # Keep this pattern in sync with the one in func_win32_libid.
5824    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5825    lt_cv_file_magic_cmd='$OBJDUMP -f'
5826  fi
5827  ;;
5828
5829cegcc*)
5830  # use the weaker test based on 'objdump'. See mingw*.
5831  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5832  lt_cv_file_magic_cmd='$OBJDUMP -f'
5833  ;;
5834
5835darwin* | rhapsody*)
5836  lt_cv_deplibs_check_method=pass_all
5837  ;;
5838
5839freebsd* | dragonfly*)
5840  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5841    case $host_cpu in
5842    i*86 )
5843      # Not sure whether the presence of OpenBSD here was a mistake.
5844      # Let's accept both of them until this is cleared up.
5845      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5846      lt_cv_file_magic_cmd=/usr/bin/file
5847      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5848      ;;
5849    esac
5850  else
5851    lt_cv_deplibs_check_method=pass_all
5852  fi
5853  ;;
5854
5855haiku*)
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858
5859hpux10.20* | hpux11*)
5860  lt_cv_file_magic_cmd=/usr/bin/file
5861  case $host_cpu in
5862  ia64*)
5863    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5864    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5865    ;;
5866  hppa*64*)
5867    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]'
5868    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5869    ;;
5870  *)
5871    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5872    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5873    ;;
5874  esac
5875  ;;
5876
5877interix[3-9]*)
5878  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5879  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5880  ;;
5881
5882irix5* | irix6* | nonstopux*)
5883  case $LD in
5884  *-32|*"-32 ") libmagic=32-bit;;
5885  *-n32|*"-n32 ") libmagic=N32;;
5886  *-64|*"-64 ") libmagic=64-bit;;
5887  *) libmagic=never-match;;
5888  esac
5889  lt_cv_deplibs_check_method=pass_all
5890  ;;
5891
5892# This must be glibc/ELF.
5893linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5894  lt_cv_deplibs_check_method=pass_all
5895  ;;
5896
5897netbsd*)
5898  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5900  else
5901    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5902  fi
5903  ;;
5904
5905newos6*)
5906  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5907  lt_cv_file_magic_cmd=/usr/bin/file
5908  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5909  ;;
5910
5911*nto* | *qnx*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915openbsd* | bitrig*)
5916  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5918  else
5919    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5920  fi
5921  ;;
5922
5923osf3* | osf4* | osf5*)
5924  lt_cv_deplibs_check_method=pass_all
5925  ;;
5926
5927rdos*)
5928  lt_cv_deplibs_check_method=pass_all
5929  ;;
5930
5931solaris*)
5932  lt_cv_deplibs_check_method=pass_all
5933  ;;
5934
5935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5936  lt_cv_deplibs_check_method=pass_all
5937  ;;
5938
5939sysv4 | sysv4.3*)
5940  case $host_vendor in
5941  motorola)
5942    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]'
5943    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5944    ;;
5945  ncr)
5946    lt_cv_deplibs_check_method=pass_all
5947    ;;
5948  sequent)
5949    lt_cv_file_magic_cmd='/bin/file'
5950    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5951    ;;
5952  sni)
5953    lt_cv_file_magic_cmd='/bin/file'
5954    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5955    lt_cv_file_magic_test_file=/lib/libc.so
5956    ;;
5957  siemens)
5958    lt_cv_deplibs_check_method=pass_all
5959    ;;
5960  pc)
5961    lt_cv_deplibs_check_method=pass_all
5962    ;;
5963  esac
5964  ;;
5965
5966tpf*)
5967  lt_cv_deplibs_check_method=pass_all
5968  ;;
5969esac
5970
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5973$as_echo "$lt_cv_deplibs_check_method" >&6; }
5974
5975file_magic_glob=
5976want_nocaseglob=no
5977if test "$build" = "$host"; then
5978  case $host_os in
5979  mingw* | pw32*)
5980    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5981      want_nocaseglob=yes
5982    else
5983      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5984    fi
5985    ;;
5986  esac
5987fi
5988
5989file_magic_cmd=$lt_cv_file_magic_cmd
5990deplibs_check_method=$lt_cv_deplibs_check_method
5991test -z "$deplibs_check_method" && deplibs_check_method=unknown
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014if test -n "$ac_tool_prefix"; then
6015  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6016set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
6019if ${ac_cv_prog_DLLTOOL+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  if test -n "$DLLTOOL"; then
6023  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028  IFS=$as_save_IFS
6029  test -z "$as_dir" && as_dir=.
6030    for ac_exec_ext in '' $ac_executable_extensions; do
6031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034    break 2
6035  fi
6036done
6037  done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042DLLTOOL=$ac_cv_prog_DLLTOOL
6043if test -n "$DLLTOOL"; then
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6045$as_echo "$DLLTOOL" >&6; }
6046else
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051
6052fi
6053if test -z "$ac_cv_prog_DLLTOOL"; then
6054  ac_ct_DLLTOOL=$DLLTOOL
6055  # Extract the first word of "dlltool", so it can be a program name with args.
6056set dummy dlltool; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  if test -n "$ac_ct_DLLTOOL"; then
6063  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070    for ac_exec_ext in '' $ac_executable_extensions; do
6071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077  done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6083if test -n "$ac_ct_DLLTOOL"; then
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6085$as_echo "$ac_ct_DLLTOOL" >&6; }
6086else
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091  if test "x$ac_ct_DLLTOOL" = x; then
6092    DLLTOOL="false"
6093  else
6094    case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100    DLLTOOL=$ac_ct_DLLTOOL
6101  fi
6102else
6103  DLLTOOL="$ac_cv_prog_DLLTOOL"
6104fi
6105
6106test -z "$DLLTOOL" && DLLTOOL=dlltool
6107
6108
6109
6110
6111
6112
6113
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6115$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6116if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  lt_cv_sharedlib_from_linklib_cmd='unknown'
6120
6121case $host_os in
6122cygwin* | mingw* | pw32* | cegcc*)
6123  # two different shell functions defined in ltmain.sh;
6124  # decide which one to use based on capabilities of $DLLTOOL
6125  case `$DLLTOOL --help 2>&1` in
6126  *--identify-strict*)
6127    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6128    ;;
6129  *)
6130    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6131    ;;
6132  esac
6133  ;;
6134*)
6135  # fallback: assume linklib IS sharedlib
6136  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6137  ;;
6138esac
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6142$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6143sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6144test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6145
6146
6147
6148
6149
6150
6151
6152if test -n "$ac_tool_prefix"; then
6153  for ac_prog in ar
6154  do
6155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if ${ac_cv_prog_AR+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  if test -n "$AR"; then
6163  ac_cv_prog_AR="$AR" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168  IFS=$as_save_IFS
6169  test -z "$as_dir" && as_dir=.
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174    break 2
6175  fi
6176done
6177  done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182AR=$ac_cv_prog_AR
6183if test -n "$AR"; then
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6185$as_echo "$AR" >&6; }
6186else
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192    test -n "$AR" && break
6193  done
6194fi
6195if test -z "$AR"; then
6196  ac_ct_AR=$AR
6197  for ac_prog in ar
6198do
6199  # Extract the first word of "$ac_prog", so it can be a program name with args.
6200set dummy $ac_prog; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_ac_ct_AR+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$ac_ct_AR"; then
6207  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_ac_ct_AR="$ac_prog"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226ac_ct_AR=$ac_cv_prog_ac_ct_AR
6227if test -n "$ac_ct_AR"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6229$as_echo "$ac_ct_AR" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236  test -n "$ac_ct_AR" && break
6237done
6238
6239  if test "x$ac_ct_AR" = x; then
6240    AR="false"
6241  else
6242    case $cross_compiling:$ac_tool_warned in
6243yes:)
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246ac_tool_warned=yes ;;
6247esac
6248    AR=$ac_ct_AR
6249  fi
6250fi
6251
6252: ${AR=ar}
6253: ${AR_FLAGS=cru}
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6266$as_echo_n "checking for archiver @FILE support... " >&6; }
6267if ${lt_cv_ar_at_file+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  lt_cv_ar_at_file=no
6271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273
6274int
6275main ()
6276{
6277
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_compile "$LINENO"; then :
6283  echo conftest.$ac_objext > conftest.lst
6284      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6285      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6286  (eval $lt_ar_try) 2>&5
6287  ac_status=$?
6288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289  test $ac_status = 0; }
6290      if test 0 -eq "$ac_status"; then
6291	# Ensure the archiver fails upon bogus file names.
6292	rm -f conftest.$ac_objext libconftest.a
6293	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294  (eval $lt_ar_try) 2>&5
6295  ac_status=$?
6296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297  test $ac_status = 0; }
6298	if test 0 -ne "$ac_status"; then
6299          lt_cv_ar_at_file=@
6300        fi
6301      fi
6302      rm -f conftest.* libconftest.a
6303
6304fi
6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6309$as_echo "$lt_cv_ar_at_file" >&6; }
6310
6311if test no = "$lt_cv_ar_at_file"; then
6312  archiver_list_spec=
6313else
6314  archiver_list_spec=$lt_cv_ar_at_file
6315fi
6316
6317
6318
6319
6320
6321
6322
6323if test -n "$ac_tool_prefix"; then
6324  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6325set dummy ${ac_tool_prefix}strip; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if ${ac_cv_prog_STRIP+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  if test -n "$STRIP"; then
6332  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339    for ac_exec_ext in '' $ac_executable_extensions; do
6340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343    break 2
6344  fi
6345done
6346  done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351STRIP=$ac_cv_prog_STRIP
6352if test -n "$STRIP"; then
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6354$as_echo "$STRIP" >&6; }
6355else
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360
6361fi
6362if test -z "$ac_cv_prog_STRIP"; then
6363  ac_ct_STRIP=$STRIP
6364  # Extract the first word of "strip", so it can be a program name with args.
6365set dummy strip; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
6368if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  if test -n "$ac_ct_STRIP"; then
6372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381    ac_cv_prog_ac_ct_STRIP="strip"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6392if test -n "$ac_ct_STRIP"; then
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6394$as_echo "$ac_ct_STRIP" >&6; }
6395else
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400  if test "x$ac_ct_STRIP" = x; then
6401    STRIP=":"
6402  else
6403    case $cross_compiling:$ac_tool_warned in
6404yes:)
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407ac_tool_warned=yes ;;
6408esac
6409    STRIP=$ac_ct_STRIP
6410  fi
6411else
6412  STRIP="$ac_cv_prog_STRIP"
6413fi
6414
6415test -z "$STRIP" && STRIP=:
6416
6417
6418
6419
6420
6421
6422if test -n "$ac_tool_prefix"; then
6423  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6424set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_RANLIB+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$RANLIB"; then
6431  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450RANLIB=$ac_cv_prog_RANLIB
6451if test -n "$RANLIB"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6453$as_echo "$RANLIB" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460fi
6461if test -z "$ac_cv_prog_RANLIB"; then
6462  ac_ct_RANLIB=$RANLIB
6463  # Extract the first word of "ranlib", so it can be a program name with args.
6464set dummy ranlib; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$ac_ct_RANLIB"; then
6471  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_ac_ct_RANLIB="ranlib"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6491if test -n "$ac_ct_RANLIB"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6493$as_echo "$ac_ct_RANLIB" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499  if test "x$ac_ct_RANLIB" = x; then
6500    RANLIB=":"
6501  else
6502    case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508    RANLIB=$ac_ct_RANLIB
6509  fi
6510else
6511  RANLIB="$ac_cv_prog_RANLIB"
6512fi
6513
6514test -z "$RANLIB" && RANLIB=:
6515
6516
6517
6518
6519
6520
6521# Determine commands to create old-style static archives.
6522old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6523old_postinstall_cmds='chmod 644 $oldlib'
6524old_postuninstall_cmds=
6525
6526if test -n "$RANLIB"; then
6527  case $host_os in
6528  bitrig* | openbsd*)
6529    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6530    ;;
6531  *)
6532    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6533    ;;
6534  esac
6535  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6536fi
6537
6538case $host_os in
6539  darwin*)
6540    lock_old_archive_extraction=yes ;;
6541  *)
6542    lock_old_archive_extraction=no ;;
6543esac
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583# If no C compiler was specified, use CC.
6584LTCC=${LTCC-"$CC"}
6585
6586# If no C compiler flags were specified, use CFLAGS.
6587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6588
6589# Allow CC to be a program name with arguments.
6590compiler=$CC
6591
6592
6593# Check for command to grab the raw symbol name followed by C symbol from nm.
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6595$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6596if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599
6600# These are sane defaults that work on at least a few old systems.
6601# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6602
6603# Character class describing NM global symbol codes.
6604symcode='[BCDEGRST]'
6605
6606# Regexp to match symbols that can be accessed directly from C.
6607sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6608
6609# Define system-specific variables.
6610case $host_os in
6611aix*)
6612  symcode='[BCDT]'
6613  ;;
6614cygwin* | mingw* | pw32* | cegcc*)
6615  symcode='[ABCDGISTW]'
6616  ;;
6617hpux*)
6618  if test ia64 = "$host_cpu"; then
6619    symcode='[ABCDEGRST]'
6620  fi
6621  ;;
6622irix* | nonstopux*)
6623  symcode='[BCDEGRST]'
6624  ;;
6625osf*)
6626  symcode='[BCDEGQRST]'
6627  ;;
6628solaris*)
6629  symcode='[BDRT]'
6630  ;;
6631sco3.2v5*)
6632  symcode='[DT]'
6633  ;;
6634sysv4.2uw2*)
6635  symcode='[DT]'
6636  ;;
6637sysv5* | sco5v6* | unixware* | OpenUNIX*)
6638  symcode='[ABDT]'
6639  ;;
6640sysv4)
6641  symcode='[DFNSTU]'
6642  ;;
6643esac
6644
6645# If we're using GNU nm, then use its standard symbol codes.
6646case `$NM -V 2>&1` in
6647*GNU* | *'with BFD'*)
6648  symcode='[ABCDGIRSTW]' ;;
6649esac
6650
6651if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652  # Gets list of data symbols to import.
6653  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6654  # Adjust the below global symbol transforms to fixup imported variables.
6655  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6656  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6657  lt_c_name_lib_hook="\
6658  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6659  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6660else
6661  # Disable hooks by default.
6662  lt_cv_sys_global_symbol_to_import=
6663  lt_cdecl_hook=
6664  lt_c_name_hook=
6665  lt_c_name_lib_hook=
6666fi
6667
6668# Transform an extracted symbol line into a proper C declaration.
6669# Some systems (esp. on ia64) link data and code symbols differently,
6670# so use this general approach.
6671lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6672$lt_cdecl_hook\
6673" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6674" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6675
6676# Transform an extracted symbol line into symbol name and symbol address
6677lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6678$lt_c_name_hook\
6679" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6680" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6681
6682# Transform an extracted symbol line into symbol name with lib prefix and
6683# symbol address.
6684lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6685$lt_c_name_lib_hook\
6686" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6687" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6688" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6689
6690# Handle CRLF in mingw tool chain
6691opt_cr=
6692case $build_os in
6693mingw*)
6694  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6695  ;;
6696esac
6697
6698# Try without a prefix underscore, then with it.
6699for ac_symprfx in "" "_"; do
6700
6701  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6702  symxfrm="\\1 $ac_symprfx\\2 \\2"
6703
6704  # Write the raw and C identifiers.
6705  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6706    # Fake it for dumpbin and say T for any non-static function,
6707    # D for any global variable and I for any imported variable.
6708    # Also find C++ and __fastcall symbols from MSVC++,
6709    # which start with @ or ?.
6710    lt_cv_sys_global_symbol_pipe="$AWK '"\
6711"     {last_section=section; section=\$ 3};"\
6712"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6713"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6714"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6715"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6716"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6717"     \$ 0!~/External *\|/{next};"\
6718"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6719"     {if(hide[section]) next};"\
6720"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6721"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6722"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6723"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6724"     ' prfx=^$ac_symprfx"
6725  else
6726    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6727  fi
6728  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6729
6730  # Check to see that the pipe works correctly.
6731  pipe_works=no
6732
6733  rm -f conftest*
6734  cat > conftest.$ac_ext <<_LT_EOF
6735#ifdef __cplusplus
6736extern "C" {
6737#endif
6738char nm_test_var;
6739void nm_test_func(void);
6740void nm_test_func(void){}
6741#ifdef __cplusplus
6742}
6743#endif
6744int main(){nm_test_var='a';nm_test_func();return(0);}
6745_LT_EOF
6746
6747  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6748  (eval $ac_compile) 2>&5
6749  ac_status=$?
6750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6751  test $ac_status = 0; }; then
6752    # Now try to grab the symbols.
6753    nlist=conftest.nm
6754    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6755  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6756  ac_status=$?
6757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758  test $ac_status = 0; } && test -s "$nlist"; then
6759      # Try sorting and uniquifying the output.
6760      if sort "$nlist" | uniq > "$nlist"T; then
6761	mv -f "$nlist"T "$nlist"
6762      else
6763	rm -f "$nlist"T
6764      fi
6765
6766      # Make sure that we snagged all the symbols we need.
6767      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6768	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6769	  cat <<_LT_EOF > conftest.$ac_ext
6770/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6771#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6772/* DATA imports from DLLs on WIN32 can't be const, because runtime
6773   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6774# define LT_DLSYM_CONST
6775#elif defined __osf__
6776/* This system does not cope well with relocations in const data.  */
6777# define LT_DLSYM_CONST
6778#else
6779# define LT_DLSYM_CONST const
6780#endif
6781
6782#ifdef __cplusplus
6783extern "C" {
6784#endif
6785
6786_LT_EOF
6787	  # Now generate the symbol file.
6788	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6789
6790	  cat <<_LT_EOF >> conftest.$ac_ext
6791
6792/* The mapping between symbol names and symbols.  */
6793LT_DLSYM_CONST struct {
6794  const char *name;
6795  void       *address;
6796}
6797lt__PROGRAM__LTX_preloaded_symbols[] =
6798{
6799  { "@PROGRAM@", (void *) 0 },
6800_LT_EOF
6801	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6802	  cat <<\_LT_EOF >> conftest.$ac_ext
6803  {0, (void *) 0}
6804};
6805
6806/* This works around a problem in FreeBSD linker */
6807#ifdef FREEBSD_WORKAROUND
6808static const void *lt_preloaded_setup() {
6809  return lt__PROGRAM__LTX_preloaded_symbols;
6810}
6811#endif
6812
6813#ifdef __cplusplus
6814}
6815#endif
6816_LT_EOF
6817	  # Now try linking the two files.
6818	  mv conftest.$ac_objext conftstm.$ac_objext
6819	  lt_globsym_save_LIBS=$LIBS
6820	  lt_globsym_save_CFLAGS=$CFLAGS
6821	  LIBS=conftstm.$ac_objext
6822	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6823	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6824  (eval $ac_link) 2>&5
6825  ac_status=$?
6826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6828	    pipe_works=yes
6829	  fi
6830	  LIBS=$lt_globsym_save_LIBS
6831	  CFLAGS=$lt_globsym_save_CFLAGS
6832	else
6833	  echo "cannot find nm_test_func in $nlist" >&5
6834	fi
6835      else
6836	echo "cannot find nm_test_var in $nlist" >&5
6837      fi
6838    else
6839      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6840    fi
6841  else
6842    echo "$progname: failed program was:" >&5
6843    cat conftest.$ac_ext >&5
6844  fi
6845  rm -rf conftest* conftst*
6846
6847  # Do not use the global_symbol_pipe unless it works.
6848  if test yes = "$pipe_works"; then
6849    break
6850  else
6851    lt_cv_sys_global_symbol_pipe=
6852  fi
6853done
6854
6855fi
6856
6857if test -z "$lt_cv_sys_global_symbol_pipe"; then
6858  lt_cv_sys_global_symbol_to_cdecl=
6859fi
6860if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6862$as_echo "failed" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6865$as_echo "ok" >&6; }
6866fi
6867
6868# Response file support.
6869if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6870  nm_file_list_spec='@'
6871elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6872  nm_file_list_spec='@'
6873fi
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6912$as_echo_n "checking for sysroot... " >&6; }
6913
6914# Check whether --with-sysroot was given.
6915if test "${with_sysroot+set}" = set; then :
6916  withval=$with_sysroot;
6917else
6918  with_sysroot=no
6919fi
6920
6921
6922lt_sysroot=
6923case $with_sysroot in #(
6924 yes)
6925   if test yes = "$GCC"; then
6926     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6927   fi
6928   ;; #(
6929 /*)
6930   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6931   ;; #(
6932 no|'')
6933   ;; #(
6934 *)
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6936$as_echo "$with_sysroot" >&6; }
6937   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6938   ;;
6939esac
6940
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6942$as_echo "${lt_sysroot:-no}" >&6; }
6943
6944
6945
6946
6947
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6949$as_echo_n "checking for a working dd... " >&6; }
6950if ${ac_cv_path_lt_DD+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  printf 0123456789abcdef0123456789abcdef >conftest.i
6954cat conftest.i conftest.i >conftest2.i
6955: ${lt_DD:=$DD}
6956if test -z "$lt_DD"; then
6957  ac_path_lt_DD_found=false
6958  # Loop through the user's path and test for each of PROGNAME-LIST
6959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964    for ac_prog in dd; do
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6967      as_fn_executable_p "$ac_path_lt_DD" || continue
6968if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6969  cmp -s conftest.i conftest.out \
6970  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6971fi
6972      $ac_path_lt_DD_found && break 3
6973    done
6974  done
6975  done
6976IFS=$as_save_IFS
6977  if test -z "$ac_cv_path_lt_DD"; then
6978    :
6979  fi
6980else
6981  ac_cv_path_lt_DD=$lt_DD
6982fi
6983
6984rm -f conftest.i conftest2.i conftest.out
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6987$as_echo "$ac_cv_path_lt_DD" >&6; }
6988
6989
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6991$as_echo_n "checking how to truncate binary pipes... " >&6; }
6992if ${lt_cv_truncate_bin+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  printf 0123456789abcdef0123456789abcdef >conftest.i
6996cat conftest.i conftest.i >conftest2.i
6997lt_cv_truncate_bin=
6998if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6999  cmp -s conftest.i conftest.out \
7000  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7001fi
7002rm -f conftest.i conftest2.i conftest.out
7003test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7006$as_echo "$lt_cv_truncate_bin" >&6; }
7007
7008
7009
7010
7011
7012
7013# Check whether --enable-libtool-lock was given.
7014if test "${enable_libtool_lock+set}" = set; then :
7015  enableval=$enable_libtool_lock;
7016fi
7017
7018test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7019
7020# Some flags need to be propagated to the compiler or linker for good
7021# libtool support.
7022case $host in
7023ia64-*-hpux*)
7024  # Find out what ABI is being produced by ac_compile, and set mode
7025  # options accordingly.
7026  echo 'int i;' > conftest.$ac_ext
7027  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028  (eval $ac_compile) 2>&5
7029  ac_status=$?
7030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031  test $ac_status = 0; }; then
7032    case `/usr/bin/file conftest.$ac_objext` in
7033      *ELF-32*)
7034	HPUX_IA64_MODE=32
7035	;;
7036      *ELF-64*)
7037	HPUX_IA64_MODE=64
7038	;;
7039    esac
7040  fi
7041  rm -rf conftest*
7042  ;;
7043*-*-irix6*)
7044  # Find out what ABI is being produced by ac_compile, and set linker
7045  # options accordingly.
7046  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7047  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048  (eval $ac_compile) 2>&5
7049  ac_status=$?
7050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051  test $ac_status = 0; }; then
7052    if test yes = "$lt_cv_prog_gnu_ld"; then
7053      case `/usr/bin/file conftest.$ac_objext` in
7054	*32-bit*)
7055	  LD="${LD-ld} -melf32bsmip"
7056	  ;;
7057	*N32*)
7058	  LD="${LD-ld} -melf32bmipn32"
7059	  ;;
7060	*64-bit*)
7061	  LD="${LD-ld} -melf64bmip"
7062	;;
7063      esac
7064    else
7065      case `/usr/bin/file conftest.$ac_objext` in
7066	*32-bit*)
7067	  LD="${LD-ld} -32"
7068	  ;;
7069	*N32*)
7070	  LD="${LD-ld} -n32"
7071	  ;;
7072	*64-bit*)
7073	  LD="${LD-ld} -64"
7074	  ;;
7075      esac
7076    fi
7077  fi
7078  rm -rf conftest*
7079  ;;
7080
7081mips64*-*linux*)
7082  # Find out what ABI is being produced by ac_compile, and set linker
7083  # options accordingly.
7084  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7085  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7086  (eval $ac_compile) 2>&5
7087  ac_status=$?
7088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089  test $ac_status = 0; }; then
7090    emul=elf
7091    case `/usr/bin/file conftest.$ac_objext` in
7092      *32-bit*)
7093	emul="${emul}32"
7094	;;
7095      *64-bit*)
7096	emul="${emul}64"
7097	;;
7098    esac
7099    case `/usr/bin/file conftest.$ac_objext` in
7100      *MSB*)
7101	emul="${emul}btsmip"
7102	;;
7103      *LSB*)
7104	emul="${emul}ltsmip"
7105	;;
7106    esac
7107    case `/usr/bin/file conftest.$ac_objext` in
7108      *N32*)
7109	emul="${emul}n32"
7110	;;
7111    esac
7112    LD="${LD-ld} -m $emul"
7113  fi
7114  rm -rf conftest*
7115  ;;
7116
7117x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7118s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7119  # Find out what ABI is being produced by ac_compile, and set linker
7120  # options accordingly.  Note that the listed cases only cover the
7121  # situations where additional linker options are needed (such as when
7122  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7123  # vice versa); the common cases where no linker options are needed do
7124  # not appear in the list.
7125  echo 'int i;' > conftest.$ac_ext
7126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7127  (eval $ac_compile) 2>&5
7128  ac_status=$?
7129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130  test $ac_status = 0; }; then
7131    case `/usr/bin/file conftest.o` in
7132      *32-bit*)
7133	case $host in
7134	  x86_64-*kfreebsd*-gnu)
7135	    LD="${LD-ld} -m elf_i386_fbsd"
7136	    ;;
7137	  x86_64-*linux*)
7138	    case `/usr/bin/file conftest.o` in
7139	      *x86-64*)
7140		LD="${LD-ld} -m elf32_x86_64"
7141		;;
7142	      *)
7143		LD="${LD-ld} -m elf_i386"
7144		;;
7145	    esac
7146	    ;;
7147	  powerpc64le-*linux*)
7148	    LD="${LD-ld} -m elf32lppclinux"
7149	    ;;
7150	  powerpc64-*linux*)
7151	    LD="${LD-ld} -m elf32ppclinux"
7152	    ;;
7153	  s390x-*linux*)
7154	    LD="${LD-ld} -m elf_s390"
7155	    ;;
7156	  sparc64-*linux*)
7157	    LD="${LD-ld} -m elf32_sparc"
7158	    ;;
7159	esac
7160	;;
7161      *64-bit*)
7162	case $host in
7163	  x86_64-*kfreebsd*-gnu)
7164	    LD="${LD-ld} -m elf_x86_64_fbsd"
7165	    ;;
7166	  x86_64-*linux*)
7167	    LD="${LD-ld} -m elf_x86_64"
7168	    ;;
7169	  powerpcle-*linux*)
7170	    LD="${LD-ld} -m elf64lppc"
7171	    ;;
7172	  powerpc-*linux*)
7173	    LD="${LD-ld} -m elf64ppc"
7174	    ;;
7175	  s390*-*linux*|s390*-*tpf*)
7176	    LD="${LD-ld} -m elf64_s390"
7177	    ;;
7178	  sparc*-*linux*)
7179	    LD="${LD-ld} -m elf64_sparc"
7180	    ;;
7181	esac
7182	;;
7183    esac
7184  fi
7185  rm -rf conftest*
7186  ;;
7187
7188*-*-sco3.2v5*)
7189  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7190  SAVE_CFLAGS=$CFLAGS
7191  CFLAGS="$CFLAGS -belf"
7192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7193$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7194if ${lt_cv_cc_needs_belf+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  ac_ext=c
7198ac_cpp='$CPP $CPPFLAGS'
7199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202
7203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205
7206int
7207main ()
7208{
7209
7210  ;
7211  return 0;
7212}
7213_ACEOF
7214if ac_fn_c_try_link "$LINENO"; then :
7215  lt_cv_cc_needs_belf=yes
7216else
7217  lt_cv_cc_needs_belf=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext \
7220    conftest$ac_exeext conftest.$ac_ext
7221     ac_ext=c
7222ac_cpp='$CPP $CPPFLAGS'
7223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7229$as_echo "$lt_cv_cc_needs_belf" >&6; }
7230  if test yes != "$lt_cv_cc_needs_belf"; then
7231    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7232    CFLAGS=$SAVE_CFLAGS
7233  fi
7234  ;;
7235*-*solaris*)
7236  # Find out what ABI is being produced by ac_compile, and set linker
7237  # options accordingly.
7238  echo 'int i;' > conftest.$ac_ext
7239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240  (eval $ac_compile) 2>&5
7241  ac_status=$?
7242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243  test $ac_status = 0; }; then
7244    case `/usr/bin/file conftest.o` in
7245    *64-bit*)
7246      case $lt_cv_prog_gnu_ld in
7247      yes*)
7248        case $host in
7249        i?86-*-solaris*|x86_64-*-solaris*)
7250          LD="${LD-ld} -m elf_x86_64"
7251          ;;
7252        sparc*-*-solaris*)
7253          LD="${LD-ld} -m elf64_sparc"
7254          ;;
7255        esac
7256        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7257        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7258          LD=${LD-ld}_sol2
7259        fi
7260        ;;
7261      *)
7262	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7263	  LD="${LD-ld} -64"
7264	fi
7265	;;
7266      esac
7267      ;;
7268    esac
7269  fi
7270  rm -rf conftest*
7271  ;;
7272esac
7273
7274need_locks=$enable_libtool_lock
7275
7276if test -n "$ac_tool_prefix"; then
7277  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7278set dummy ${ac_tool_prefix}mt; ac_word=$2
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  if test -n "$MANIFEST_TOOL"; then
7285  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290  IFS=$as_save_IFS
7291  test -z "$as_dir" && as_dir=.
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299  done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7305if test -n "$MANIFEST_TOOL"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7307$as_echo "$MANIFEST_TOOL" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313
7314fi
7315if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7316  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7317  # Extract the first word of "mt", so it can be a program name with args.
7318set dummy mt; ac_word=$2
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320$as_echo_n "checking for $ac_word... " >&6; }
7321if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  if test -n "$ac_ct_MANIFEST_TOOL"; then
7325  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330  IFS=$as_save_IFS
7331  test -z "$as_dir" && as_dir=.
7332    for ac_exec_ext in '' $ac_executable_extensions; do
7333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336    break 2
7337  fi
7338done
7339  done
7340IFS=$as_save_IFS
7341
7342fi
7343fi
7344ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7345if test -n "$ac_ct_MANIFEST_TOOL"; then
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7347$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7348else
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7354    MANIFEST_TOOL=":"
7355  else
7356    case $cross_compiling:$ac_tool_warned in
7357yes:)
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360ac_tool_warned=yes ;;
7361esac
7362    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7363  fi
7364else
7365  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7366fi
7367
7368test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7370$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7371if ${lt_cv_path_mainfest_tool+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  lt_cv_path_mainfest_tool=no
7375  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7376  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7377  cat conftest.err >&5
7378  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7379    lt_cv_path_mainfest_tool=yes
7380  fi
7381  rm -f conftest*
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7384$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7385if test yes != "$lt_cv_path_mainfest_tool"; then
7386  MANIFEST_TOOL=:
7387fi
7388
7389
7390
7391
7392
7393
7394  case $host_os in
7395    rhapsody* | darwin*)
7396    if test -n "$ac_tool_prefix"; then
7397  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7398set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if ${ac_cv_prog_DSYMUTIL+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  if test -n "$DSYMUTIL"; then
7405  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7406else
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410  IFS=$as_save_IFS
7411  test -z "$as_dir" && as_dir=.
7412    for ac_exec_ext in '' $ac_executable_extensions; do
7413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416    break 2
7417  fi
7418done
7419  done
7420IFS=$as_save_IFS
7421
7422fi
7423fi
7424DSYMUTIL=$ac_cv_prog_DSYMUTIL
7425if test -n "$DSYMUTIL"; then
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7427$as_echo "$DSYMUTIL" >&6; }
7428else
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
7431fi
7432
7433
7434fi
7435if test -z "$ac_cv_prog_DSYMUTIL"; then
7436  ac_ct_DSYMUTIL=$DSYMUTIL
7437  # Extract the first word of "dsymutil", so it can be a program name with args.
7438set dummy dsymutil; ac_word=$2
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440$as_echo_n "checking for $ac_word... " >&6; }
7441if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  if test -n "$ac_ct_DSYMUTIL"; then
7445  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452    for ac_exec_ext in '' $ac_executable_extensions; do
7453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459  done
7460IFS=$as_save_IFS
7461
7462fi
7463fi
7464ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7465if test -n "$ac_ct_DSYMUTIL"; then
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7467$as_echo "$ac_ct_DSYMUTIL" >&6; }
7468else
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470$as_echo "no" >&6; }
7471fi
7472
7473  if test "x$ac_ct_DSYMUTIL" = x; then
7474    DSYMUTIL=":"
7475  else
7476    case $cross_compiling:$ac_tool_warned in
7477yes:)
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480ac_tool_warned=yes ;;
7481esac
7482    DSYMUTIL=$ac_ct_DSYMUTIL
7483  fi
7484else
7485  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7486fi
7487
7488    if test -n "$ac_tool_prefix"; then
7489  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7490set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492$as_echo_n "checking for $ac_word... " >&6; }
7493if ${ac_cv_prog_NMEDIT+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496  if test -n "$NMEDIT"; then
7497  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502  IFS=$as_save_IFS
7503  test -z "$as_dir" && as_dir=.
7504    for ac_exec_ext in '' $ac_executable_extensions; do
7505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508    break 2
7509  fi
7510done
7511  done
7512IFS=$as_save_IFS
7513
7514fi
7515fi
7516NMEDIT=$ac_cv_prog_NMEDIT
7517if test -n "$NMEDIT"; then
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7519$as_echo "$NMEDIT" >&6; }
7520else
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523fi
7524
7525
7526fi
7527if test -z "$ac_cv_prog_NMEDIT"; then
7528  ac_ct_NMEDIT=$NMEDIT
7529  # Extract the first word of "nmedit", so it can be a program name with args.
7530set dummy nmedit; ac_word=$2
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532$as_echo_n "checking for $ac_word... " >&6; }
7533if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  if test -n "$ac_ct_NMEDIT"; then
7537  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7538else
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542  IFS=$as_save_IFS
7543  test -z "$as_dir" && as_dir=.
7544    for ac_exec_ext in '' $ac_executable_extensions; do
7545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548    break 2
7549  fi
7550done
7551  done
7552IFS=$as_save_IFS
7553
7554fi
7555fi
7556ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7557if test -n "$ac_ct_NMEDIT"; then
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7559$as_echo "$ac_ct_NMEDIT" >&6; }
7560else
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563fi
7564
7565  if test "x$ac_ct_NMEDIT" = x; then
7566    NMEDIT=":"
7567  else
7568    case $cross_compiling:$ac_tool_warned in
7569yes:)
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572ac_tool_warned=yes ;;
7573esac
7574    NMEDIT=$ac_ct_NMEDIT
7575  fi
7576else
7577  NMEDIT="$ac_cv_prog_NMEDIT"
7578fi
7579
7580    if test -n "$ac_tool_prefix"; then
7581  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7582set dummy ${ac_tool_prefix}lipo; ac_word=$2
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584$as_echo_n "checking for $ac_word... " >&6; }
7585if ${ac_cv_prog_LIPO+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  if test -n "$LIPO"; then
7589  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594  IFS=$as_save_IFS
7595  test -z "$as_dir" && as_dir=.
7596    for ac_exec_ext in '' $ac_executable_extensions; do
7597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600    break 2
7601  fi
7602done
7603  done
7604IFS=$as_save_IFS
7605
7606fi
7607fi
7608LIPO=$ac_cv_prog_LIPO
7609if test -n "$LIPO"; then
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7611$as_echo "$LIPO" >&6; }
7612else
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
7617
7618fi
7619if test -z "$ac_cv_prog_LIPO"; then
7620  ac_ct_LIPO=$LIPO
7621  # Extract the first word of "lipo", so it can be a program name with args.
7622set dummy lipo; ac_word=$2
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624$as_echo_n "checking for $ac_word... " >&6; }
7625if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  if test -n "$ac_ct_LIPO"; then
7629  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634  IFS=$as_save_IFS
7635  test -z "$as_dir" && as_dir=.
7636    for ac_exec_ext in '' $ac_executable_extensions; do
7637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638    ac_cv_prog_ac_ct_LIPO="lipo"
7639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640    break 2
7641  fi
7642done
7643  done
7644IFS=$as_save_IFS
7645
7646fi
7647fi
7648ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7649if test -n "$ac_ct_LIPO"; then
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7651$as_echo "$ac_ct_LIPO" >&6; }
7652else
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
7655fi
7656
7657  if test "x$ac_ct_LIPO" = x; then
7658    LIPO=":"
7659  else
7660    case $cross_compiling:$ac_tool_warned in
7661yes:)
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664ac_tool_warned=yes ;;
7665esac
7666    LIPO=$ac_ct_LIPO
7667  fi
7668else
7669  LIPO="$ac_cv_prog_LIPO"
7670fi
7671
7672    if test -n "$ac_tool_prefix"; then
7673  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7674set dummy ${ac_tool_prefix}otool; ac_word=$2
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676$as_echo_n "checking for $ac_word... " >&6; }
7677if ${ac_cv_prog_OTOOL+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  if test -n "$OTOOL"; then
7681  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686  IFS=$as_save_IFS
7687  test -z "$as_dir" && as_dir=.
7688    for ac_exec_ext in '' $ac_executable_extensions; do
7689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695  done
7696IFS=$as_save_IFS
7697
7698fi
7699fi
7700OTOOL=$ac_cv_prog_OTOOL
7701if test -n "$OTOOL"; then
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7703$as_echo "$OTOOL" >&6; }
7704else
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706$as_echo "no" >&6; }
7707fi
7708
7709
7710fi
7711if test -z "$ac_cv_prog_OTOOL"; then
7712  ac_ct_OTOOL=$OTOOL
7713  # Extract the first word of "otool", so it can be a program name with args.
7714set dummy otool; ac_word=$2
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  if test -n "$ac_ct_OTOOL"; then
7721  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_ac_ct_OTOOL="otool"
7731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7741if test -n "$ac_ct_OTOOL"; then
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7743$as_echo "$ac_ct_OTOOL" >&6; }
7744else
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
7747fi
7748
7749  if test "x$ac_ct_OTOOL" = x; then
7750    OTOOL=":"
7751  else
7752    case $cross_compiling:$ac_tool_warned in
7753yes:)
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756ac_tool_warned=yes ;;
7757esac
7758    OTOOL=$ac_ct_OTOOL
7759  fi
7760else
7761  OTOOL="$ac_cv_prog_OTOOL"
7762fi
7763
7764    if test -n "$ac_tool_prefix"; then
7765  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7766set dummy ${ac_tool_prefix}otool64; ac_word=$2
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if ${ac_cv_prog_OTOOL64+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  if test -n "$OTOOL64"; then
7773  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778  IFS=$as_save_IFS
7779  test -z "$as_dir" && as_dir=.
7780    for ac_exec_ext in '' $ac_executable_extensions; do
7781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784    break 2
7785  fi
7786done
7787  done
7788IFS=$as_save_IFS
7789
7790fi
7791fi
7792OTOOL64=$ac_cv_prog_OTOOL64
7793if test -n "$OTOOL64"; then
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7795$as_echo "$OTOOL64" >&6; }
7796else
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
7799fi
7800
7801
7802fi
7803if test -z "$ac_cv_prog_OTOOL64"; then
7804  ac_ct_OTOOL64=$OTOOL64
7805  # Extract the first word of "otool64", so it can be a program name with args.
7806set dummy otool64; ac_word=$2
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  if test -n "$ac_ct_OTOOL64"; then
7813  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_ac_ct_OTOOL64="otool64"
7823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827  done
7828IFS=$as_save_IFS
7829
7830fi
7831fi
7832ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7833if test -n "$ac_ct_OTOOL64"; then
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7835$as_echo "$ac_ct_OTOOL64" >&6; }
7836else
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
7839fi
7840
7841  if test "x$ac_ct_OTOOL64" = x; then
7842    OTOOL64=":"
7843  else
7844    case $cross_compiling:$ac_tool_warned in
7845yes:)
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848ac_tool_warned=yes ;;
7849esac
7850    OTOOL64=$ac_ct_OTOOL64
7851  fi
7852else
7853  OTOOL64="$ac_cv_prog_OTOOL64"
7854fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7883$as_echo_n "checking for -single_module linker flag... " >&6; }
7884if ${lt_cv_apple_cc_single_mod+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  lt_cv_apple_cc_single_mod=no
7888      if test -z "$LT_MULTI_MODULE"; then
7889	# By default we will add the -single_module flag. You can override
7890	# by either setting the environment variable LT_MULTI_MODULE
7891	# non-empty at configure time, or by adding -multi_module to the
7892	# link flags.
7893	rm -rf libconftest.dylib*
7894	echo "int foo(void){return 1;}" > conftest.c
7895	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7896-dynamiclib -Wl,-single_module conftest.c" >&5
7897	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7898	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7899        _lt_result=$?
7900	# If there is a non-empty error log, and "single_module"
7901	# appears in it, assume the flag caused a linker warning
7902        if test -s conftest.err && $GREP single_module conftest.err; then
7903	  cat conftest.err >&5
7904	# Otherwise, if the output was created with a 0 exit code from
7905	# the compiler, it worked.
7906	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7907	  lt_cv_apple_cc_single_mod=yes
7908	else
7909	  cat conftest.err >&5
7910	fi
7911	rm -rf libconftest.dylib*
7912	rm -f conftest.*
7913      fi
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7916$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7917
7918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7919$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7920if ${lt_cv_ld_exported_symbols_list+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  lt_cv_ld_exported_symbols_list=no
7924      save_LDFLAGS=$LDFLAGS
7925      echo "_main" > conftest.sym
7926      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929
7930int
7931main ()
7932{
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then :
7939  lt_cv_ld_exported_symbols_list=yes
7940else
7941  lt_cv_ld_exported_symbols_list=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext \
7944    conftest$ac_exeext conftest.$ac_ext
7945	LDFLAGS=$save_LDFLAGS
7946
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7949$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7950
7951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7952$as_echo_n "checking for -force_load linker flag... " >&6; }
7953if ${lt_cv_ld_force_load+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  lt_cv_ld_force_load=no
7957      cat > conftest.c << _LT_EOF
7958int forced_loaded() { return 2;}
7959_LT_EOF
7960      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7961      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7962      echo "$AR cru libconftest.a conftest.o" >&5
7963      $AR cru libconftest.a conftest.o 2>&5
7964      echo "$RANLIB libconftest.a" >&5
7965      $RANLIB libconftest.a 2>&5
7966      cat > conftest.c << _LT_EOF
7967int main() { return 0;}
7968_LT_EOF
7969      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7970      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7971      _lt_result=$?
7972      if test -s conftest.err && $GREP force_load conftest.err; then
7973	cat conftest.err >&5
7974      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7975	lt_cv_ld_force_load=yes
7976      else
7977	cat conftest.err >&5
7978      fi
7979        rm -f conftest.err libconftest.a conftest conftest.c
7980        rm -rf conftest.dSYM
7981
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7984$as_echo "$lt_cv_ld_force_load" >&6; }
7985    case $host_os in
7986    rhapsody* | darwin1.[012])
7987      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7988    darwin1.*)
7989      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7990    darwin*) # darwin 5.x on
7991      # if running on 10.5 or later, the deployment target defaults
7992      # to the OS version, if on x86, and 10.4, the deployment
7993      # target defaults to 10.4. Don't you love it?
7994      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7995	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7996	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7997	10.[012][,.]*)
7998	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7999	10.*)
8000	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8001      esac
8002    ;;
8003  esac
8004    if test yes = "$lt_cv_apple_cc_single_mod"; then
8005      _lt_dar_single_mod='$single_module'
8006    fi
8007    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8008      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8009    else
8010      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8011    fi
8012    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8013      _lt_dsymutil='~$DSYMUTIL $lib || :'
8014    else
8015      _lt_dsymutil=
8016    fi
8017    ;;
8018  esac
8019
8020ac_ext=c
8021ac_cpp='$CPP $CPPFLAGS'
8022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8026$as_echo_n "checking how to run the C preprocessor... " >&6; }
8027# On Suns, sometimes $CPP names a directory.
8028if test -n "$CPP" && test -d "$CPP"; then
8029  CPP=
8030fi
8031if test -z "$CPP"; then
8032  if ${ac_cv_prog_CPP+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035      # Double quotes because CPP needs to be expanded
8036    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8037    do
8038      ac_preproc_ok=false
8039for ac_c_preproc_warn_flag in '' yes
8040do
8041  # Use a header file that comes with gcc, so configuring glibc
8042  # with a fresh cross-compiler works.
8043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8044  # <limits.h> exists even on freestanding compilers.
8045  # On the NeXT, cc -E runs the code through the compiler's parser,
8046  # not just through cpp. "Syntax error" is here to catch this case.
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049#ifdef __STDC__
8050# include <limits.h>
8051#else
8052# include <assert.h>
8053#endif
8054		     Syntax error
8055_ACEOF
8056if ac_fn_c_try_cpp "$LINENO"; then :
8057
8058else
8059  # Broken: fails on valid input.
8060continue
8061fi
8062rm -f conftest.err conftest.i conftest.$ac_ext
8063
8064  # OK, works on sane cases.  Now check whether nonexistent headers
8065  # can be detected and how.
8066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067/* end confdefs.h.  */
8068#include <ac_nonexistent.h>
8069_ACEOF
8070if ac_fn_c_try_cpp "$LINENO"; then :
8071  # Broken: success on invalid input.
8072continue
8073else
8074  # Passes both tests.
8075ac_preproc_ok=:
8076break
8077fi
8078rm -f conftest.err conftest.i conftest.$ac_ext
8079
8080done
8081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8082rm -f conftest.i conftest.err conftest.$ac_ext
8083if $ac_preproc_ok; then :
8084  break
8085fi
8086
8087    done
8088    ac_cv_prog_CPP=$CPP
8089
8090fi
8091  CPP=$ac_cv_prog_CPP
8092else
8093  ac_cv_prog_CPP=$CPP
8094fi
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8096$as_echo "$CPP" >&6; }
8097ac_preproc_ok=false
8098for ac_c_preproc_warn_flag in '' yes
8099do
8100  # Use a header file that comes with gcc, so configuring glibc
8101  # with a fresh cross-compiler works.
8102  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103  # <limits.h> exists even on freestanding compilers.
8104  # On the NeXT, cc -E runs the code through the compiler's parser,
8105  # not just through cpp. "Syntax error" is here to catch this case.
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108#ifdef __STDC__
8109# include <limits.h>
8110#else
8111# include <assert.h>
8112#endif
8113		     Syntax error
8114_ACEOF
8115if ac_fn_c_try_cpp "$LINENO"; then :
8116
8117else
8118  # Broken: fails on valid input.
8119continue
8120fi
8121rm -f conftest.err conftest.i conftest.$ac_ext
8122
8123  # OK, works on sane cases.  Now check whether nonexistent headers
8124  # can be detected and how.
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127#include <ac_nonexistent.h>
8128_ACEOF
8129if ac_fn_c_try_cpp "$LINENO"; then :
8130  # Broken: success on invalid input.
8131continue
8132else
8133  # Passes both tests.
8134ac_preproc_ok=:
8135break
8136fi
8137rm -f conftest.err conftest.i conftest.$ac_ext
8138
8139done
8140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8141rm -f conftest.i conftest.err conftest.$ac_ext
8142if $ac_preproc_ok; then :
8143
8144else
8145  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8147as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8148See \`config.log' for more details" "$LINENO" 5; }
8149fi
8150
8151ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8159$as_echo_n "checking for ANSI C header files... " >&6; }
8160if ${ac_cv_header_stdc+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165#include <stdlib.h>
8166#include <stdarg.h>
8167#include <string.h>
8168#include <float.h>
8169
8170int
8171main ()
8172{
8173
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178if ac_fn_c_try_compile "$LINENO"; then :
8179  ac_cv_header_stdc=yes
8180else
8181  ac_cv_header_stdc=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184
8185if test $ac_cv_header_stdc = yes; then
8186  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188/* end confdefs.h.  */
8189#include <string.h>
8190
8191_ACEOF
8192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8193  $EGREP "memchr" >/dev/null 2>&1; then :
8194
8195else
8196  ac_cv_header_stdc=no
8197fi
8198rm -f conftest*
8199
8200fi
8201
8202if test $ac_cv_header_stdc = yes; then
8203  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206#include <stdlib.h>
8207
8208_ACEOF
8209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210  $EGREP "free" >/dev/null 2>&1; then :
8211
8212else
8213  ac_cv_header_stdc=no
8214fi
8215rm -f conftest*
8216
8217fi
8218
8219if test $ac_cv_header_stdc = yes; then
8220  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8221  if test "$cross_compiling" = yes; then :
8222  :
8223else
8224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226#include <ctype.h>
8227#include <stdlib.h>
8228#if ((' ' & 0x0FF) == 0x020)
8229# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8230# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8231#else
8232# define ISLOWER(c) \
8233		   (('a' <= (c) && (c) <= 'i') \
8234		     || ('j' <= (c) && (c) <= 'r') \
8235		     || ('s' <= (c) && (c) <= 'z'))
8236# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8237#endif
8238
8239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8240int
8241main ()
8242{
8243  int i;
8244  for (i = 0; i < 256; i++)
8245    if (XOR (islower (i), ISLOWER (i))
8246	|| toupper (i) != TOUPPER (i))
8247      return 2;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_run "$LINENO"; then :
8252
8253else
8254  ac_cv_header_stdc=no
8255fi
8256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8257  conftest.$ac_objext conftest.beam conftest.$ac_ext
8258fi
8259
8260fi
8261fi
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8263$as_echo "$ac_cv_header_stdc" >&6; }
8264if test $ac_cv_header_stdc = yes; then
8265
8266$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8267
8268fi
8269
8270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8272		  inttypes.h stdint.h unistd.h
8273do :
8274  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8276"
8277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8278  cat >>confdefs.h <<_ACEOF
8279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8280_ACEOF
8281
8282fi
8283
8284done
8285
8286
8287for ac_header in dlfcn.h
8288do :
8289  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8290"
8291if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8292  cat >>confdefs.h <<_ACEOF
8293#define HAVE_DLFCN_H 1
8294_ACEOF
8295
8296fi
8297
8298done
8299
8300
8301
8302
8303
8304# Set options
8305enable_win32_dll=yes
8306
8307case $host in
8308*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8309  if test -n "$ac_tool_prefix"; then
8310  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8311set dummy ${ac_tool_prefix}as; ac_word=$2
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if ${ac_cv_prog_AS+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  if test -n "$AS"; then
8318  ac_cv_prog_AS="$AS" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323  IFS=$as_save_IFS
8324  test -z "$as_dir" && as_dir=.
8325    for ac_exec_ext in '' $ac_executable_extensions; do
8326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327    ac_cv_prog_AS="${ac_tool_prefix}as"
8328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329    break 2
8330  fi
8331done
8332  done
8333IFS=$as_save_IFS
8334
8335fi
8336fi
8337AS=$ac_cv_prog_AS
8338if test -n "$AS"; then
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340$as_echo "$AS" >&6; }
8341else
8342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
8344fi
8345
8346
8347fi
8348if test -z "$ac_cv_prog_AS"; then
8349  ac_ct_AS=$AS
8350  # Extract the first word of "as", so it can be a program name with args.
8351set dummy as; ac_word=$2
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353$as_echo_n "checking for $ac_word... " >&6; }
8354if ${ac_cv_prog_ac_ct_AS+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  if test -n "$ac_ct_AS"; then
8358  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8359else
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363  IFS=$as_save_IFS
8364  test -z "$as_dir" && as_dir=.
8365    for ac_exec_ext in '' $ac_executable_extensions; do
8366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367    ac_cv_prog_ac_ct_AS="as"
8368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369    break 2
8370  fi
8371done
8372  done
8373IFS=$as_save_IFS
8374
8375fi
8376fi
8377ac_ct_AS=$ac_cv_prog_ac_ct_AS
8378if test -n "$ac_ct_AS"; then
8379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8380$as_echo "$ac_ct_AS" >&6; }
8381else
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383$as_echo "no" >&6; }
8384fi
8385
8386  if test "x$ac_ct_AS" = x; then
8387    AS="false"
8388  else
8389    case $cross_compiling:$ac_tool_warned in
8390yes:)
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393ac_tool_warned=yes ;;
8394esac
8395    AS=$ac_ct_AS
8396  fi
8397else
8398  AS="$ac_cv_prog_AS"
8399fi
8400
8401  if test -n "$ac_tool_prefix"; then
8402  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8403set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if ${ac_cv_prog_DLLTOOL+:} false; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  if test -n "$DLLTOOL"; then
8410  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415  IFS=$as_save_IFS
8416  test -z "$as_dir" && as_dir=.
8417    for ac_exec_ext in '' $ac_executable_extensions; do
8418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421    break 2
8422  fi
8423done
8424  done
8425IFS=$as_save_IFS
8426
8427fi
8428fi
8429DLLTOOL=$ac_cv_prog_DLLTOOL
8430if test -n "$DLLTOOL"; then
8431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8432$as_echo "$DLLTOOL" >&6; }
8433else
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
8436fi
8437
8438
8439fi
8440if test -z "$ac_cv_prog_DLLTOOL"; then
8441  ac_ct_DLLTOOL=$DLLTOOL
8442  # Extract the first word of "dlltool", so it can be a program name with args.
8443set dummy dlltool; ac_word=$2
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
8446if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  if test -n "$ac_ct_DLLTOOL"; then
8450  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455  IFS=$as_save_IFS
8456  test -z "$as_dir" && as_dir=.
8457    for ac_exec_ext in '' $ac_executable_extensions; do
8458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461    break 2
8462  fi
8463done
8464  done
8465IFS=$as_save_IFS
8466
8467fi
8468fi
8469ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8470if test -n "$ac_ct_DLLTOOL"; then
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8472$as_echo "$ac_ct_DLLTOOL" >&6; }
8473else
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478  if test "x$ac_ct_DLLTOOL" = x; then
8479    DLLTOOL="false"
8480  else
8481    case $cross_compiling:$ac_tool_warned in
8482yes:)
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8485ac_tool_warned=yes ;;
8486esac
8487    DLLTOOL=$ac_ct_DLLTOOL
8488  fi
8489else
8490  DLLTOOL="$ac_cv_prog_DLLTOOL"
8491fi
8492
8493  if test -n "$ac_tool_prefix"; then
8494  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8495set dummy ${ac_tool_prefix}objdump; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if ${ac_cv_prog_OBJDUMP+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  if test -n "$OBJDUMP"; then
8502  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507  IFS=$as_save_IFS
8508  test -z "$as_dir" && as_dir=.
8509    for ac_exec_ext in '' $ac_executable_extensions; do
8510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513    break 2
8514  fi
8515done
8516  done
8517IFS=$as_save_IFS
8518
8519fi
8520fi
8521OBJDUMP=$ac_cv_prog_OBJDUMP
8522if test -n "$OBJDUMP"; then
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8524$as_echo "$OBJDUMP" >&6; }
8525else
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
8531fi
8532if test -z "$ac_cv_prog_OBJDUMP"; then
8533  ac_ct_OBJDUMP=$OBJDUMP
8534  # Extract the first word of "objdump", so it can be a program name with args.
8535set dummy objdump; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$ac_ct_OBJDUMP"; then
8542  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8562if test -n "$ac_ct_OBJDUMP"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8564$as_echo "$ac_ct_OBJDUMP" >&6; }
8565else
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570  if test "x$ac_ct_OBJDUMP" = x; then
8571    OBJDUMP="false"
8572  else
8573    case $cross_compiling:$ac_tool_warned in
8574yes:)
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8577ac_tool_warned=yes ;;
8578esac
8579    OBJDUMP=$ac_ct_OBJDUMP
8580  fi
8581else
8582  OBJDUMP="$ac_cv_prog_OBJDUMP"
8583fi
8584
8585  ;;
8586esac
8587
8588test -z "$AS" && AS=as
8589
8590
8591
8592
8593
8594test -z "$DLLTOOL" && DLLTOOL=dlltool
8595
8596
8597
8598
8599
8600test -z "$OBJDUMP" && OBJDUMP=objdump
8601
8602
8603
8604
8605
8606
8607
8608        enable_dlopen=no
8609
8610
8611
8612            # Check whether --enable-shared was given.
8613if test "${enable_shared+set}" = set; then :
8614  enableval=$enable_shared; p=${PACKAGE-default}
8615    case $enableval in
8616    yes) enable_shared=yes ;;
8617    no) enable_shared=no ;;
8618    *)
8619      enable_shared=no
8620      # Look at the argument we got.  We use all the common list separators.
8621      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8622      for pkg in $enableval; do
8623	IFS=$lt_save_ifs
8624	if test "X$pkg" = "X$p"; then
8625	  enable_shared=yes
8626	fi
8627      done
8628      IFS=$lt_save_ifs
8629      ;;
8630    esac
8631else
8632  enable_shared=yes
8633fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643  # Check whether --enable-static was given.
8644if test "${enable_static+set}" = set; then :
8645  enableval=$enable_static; p=${PACKAGE-default}
8646    case $enableval in
8647    yes) enable_static=yes ;;
8648    no) enable_static=no ;;
8649    *)
8650     enable_static=no
8651      # Look at the argument we got.  We use all the common list separators.
8652      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8653      for pkg in $enableval; do
8654	IFS=$lt_save_ifs
8655	if test "X$pkg" = "X$p"; then
8656	  enable_static=yes
8657	fi
8658      done
8659      IFS=$lt_save_ifs
8660      ;;
8661    esac
8662else
8663  enable_static=yes
8664fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675# Check whether --with-pic was given.
8676if test "${with_pic+set}" = set; then :
8677  withval=$with_pic; lt_p=${PACKAGE-default}
8678    case $withval in
8679    yes|no) pic_mode=$withval ;;
8680    *)
8681      pic_mode=default
8682      # Look at the argument we got.  We use all the common list separators.
8683      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8684      for lt_pkg in $withval; do
8685	IFS=$lt_save_ifs
8686	if test "X$lt_pkg" = "X$lt_p"; then
8687	  pic_mode=yes
8688	fi
8689      done
8690      IFS=$lt_save_ifs
8691      ;;
8692    esac
8693else
8694  pic_mode=default
8695fi
8696
8697
8698
8699
8700
8701
8702
8703
8704  # Check whether --enable-fast-install was given.
8705if test "${enable_fast_install+set}" = set; then :
8706  enableval=$enable_fast_install; p=${PACKAGE-default}
8707    case $enableval in
8708    yes) enable_fast_install=yes ;;
8709    no) enable_fast_install=no ;;
8710    *)
8711      enable_fast_install=no
8712      # Look at the argument we got.  We use all the common list separators.
8713      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8714      for pkg in $enableval; do
8715	IFS=$lt_save_ifs
8716	if test "X$pkg" = "X$p"; then
8717	  enable_fast_install=yes
8718	fi
8719      done
8720      IFS=$lt_save_ifs
8721      ;;
8722    esac
8723else
8724  enable_fast_install=yes
8725fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737# This can be used to rebuild libtool when needed
8738LIBTOOL_DEPS=$ltmain
8739
8740# Always use our own libtool.
8741LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772test -z "$LN_S" && LN_S="ln -s"
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787if test -n "${ZSH_VERSION+set}"; then
8788   setopt NO_GLOB_SUBST
8789fi
8790
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8792$as_echo_n "checking for objdir... " >&6; }
8793if ${lt_cv_objdir+:} false; then :
8794  $as_echo_n "(cached) " >&6
8795else
8796  rm -f .libs 2>/dev/null
8797mkdir .libs 2>/dev/null
8798if test -d .libs; then
8799  lt_cv_objdir=.libs
8800else
8801  # MS-DOS does not allow filenames that begin with a dot.
8802  lt_cv_objdir=_libs
8803fi
8804rmdir .libs 2>/dev/null
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8807$as_echo "$lt_cv_objdir" >&6; }
8808objdir=$lt_cv_objdir
8809
8810
8811
8812
8813
8814cat >>confdefs.h <<_ACEOF
8815#define LT_OBJDIR "$lt_cv_objdir/"
8816_ACEOF
8817
8818
8819
8820
8821case $host_os in
8822aix3*)
8823  # AIX sometimes has problems with the GCC collect2 program.  For some
8824  # reason, if we set the COLLECT_NAMES environment variable, the problems
8825  # vanish in a puff of smoke.
8826  if test set != "${COLLECT_NAMES+set}"; then
8827    COLLECT_NAMES=
8828    export COLLECT_NAMES
8829  fi
8830  ;;
8831esac
8832
8833# Global variables:
8834ofile=libtool
8835can_build_shared=yes
8836
8837# All known linkers require a '.a' archive for static linking (except MSVC,
8838# which needs '.lib').
8839libext=a
8840
8841with_gnu_ld=$lt_cv_prog_gnu_ld
8842
8843old_CC=$CC
8844old_CFLAGS=$CFLAGS
8845
8846# Set sane defaults for various variables
8847test -z "$CC" && CC=cc
8848test -z "$LTCC" && LTCC=$CC
8849test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8850test -z "$LD" && LD=ld
8851test -z "$ac_objext" && ac_objext=o
8852
8853for cc_temp in $compiler""; do
8854  case $cc_temp in
8855    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8856    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8857    \-*) ;;
8858    *) break;;
8859  esac
8860done
8861cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8862
8863
8864# Only perform the check for file, if the check method requires it
8865test -z "$MAGIC_CMD" && MAGIC_CMD=file
8866case $deplibs_check_method in
8867file_magic*)
8868  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8870$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8871if ${lt_cv_path_MAGIC_CMD+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  case $MAGIC_CMD in
8875[\\/*] |  ?:[\\/]*)
8876  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8877  ;;
8878*)
8879  lt_save_MAGIC_CMD=$MAGIC_CMD
8880  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8881  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8882  for ac_dir in $ac_dummy; do
8883    IFS=$lt_save_ifs
8884    test -z "$ac_dir" && ac_dir=.
8885    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8886      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8887      if test -n "$file_magic_test_file"; then
8888	case $deplibs_check_method in
8889	"file_magic "*)
8890	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8891	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8892	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8893	    $EGREP "$file_magic_regex" > /dev/null; then
8894	    :
8895	  else
8896	    cat <<_LT_EOF 1>&2
8897
8898*** Warning: the command libtool uses to detect shared libraries,
8899*** $file_magic_cmd, produces output that libtool cannot recognize.
8900*** The result is that libtool may fail to recognize shared libraries
8901*** as such.  This will affect the creation of libtool libraries that
8902*** depend on shared libraries, but programs linked with such libtool
8903*** libraries will work regardless of this problem.  Nevertheless, you
8904*** may want to report the problem to your system manager and/or to
8905*** [email protected]
8906
8907_LT_EOF
8908	  fi ;;
8909	esac
8910      fi
8911      break
8912    fi
8913  done
8914  IFS=$lt_save_ifs
8915  MAGIC_CMD=$lt_save_MAGIC_CMD
8916  ;;
8917esac
8918fi
8919
8920MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8921if test -n "$MAGIC_CMD"; then
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8923$as_echo "$MAGIC_CMD" >&6; }
8924else
8925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926$as_echo "no" >&6; }
8927fi
8928
8929
8930
8931
8932
8933if test -z "$lt_cv_path_MAGIC_CMD"; then
8934  if test -n "$ac_tool_prefix"; then
8935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8936$as_echo_n "checking for file... " >&6; }
8937if ${lt_cv_path_MAGIC_CMD+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  case $MAGIC_CMD in
8941[\\/*] |  ?:[\\/]*)
8942  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8943  ;;
8944*)
8945  lt_save_MAGIC_CMD=$MAGIC_CMD
8946  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8947  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8948  for ac_dir in $ac_dummy; do
8949    IFS=$lt_save_ifs
8950    test -z "$ac_dir" && ac_dir=.
8951    if test -f "$ac_dir/file"; then
8952      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8953      if test -n "$file_magic_test_file"; then
8954	case $deplibs_check_method in
8955	"file_magic "*)
8956	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8957	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8958	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8959	    $EGREP "$file_magic_regex" > /dev/null; then
8960	    :
8961	  else
8962	    cat <<_LT_EOF 1>&2
8963
8964*** Warning: the command libtool uses to detect shared libraries,
8965*** $file_magic_cmd, produces output that libtool cannot recognize.
8966*** The result is that libtool may fail to recognize shared libraries
8967*** as such.  This will affect the creation of libtool libraries that
8968*** depend on shared libraries, but programs linked with such libtool
8969*** libraries will work regardless of this problem.  Nevertheless, you
8970*** may want to report the problem to your system manager and/or to
8971*** [email protected]
8972
8973_LT_EOF
8974	  fi ;;
8975	esac
8976      fi
8977      break
8978    fi
8979  done
8980  IFS=$lt_save_ifs
8981  MAGIC_CMD=$lt_save_MAGIC_CMD
8982  ;;
8983esac
8984fi
8985
8986MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8987if test -n "$MAGIC_CMD"; then
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8989$as_echo "$MAGIC_CMD" >&6; }
8990else
8991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
8993fi
8994
8995
8996  else
8997    MAGIC_CMD=:
8998  fi
8999fi
9000
9001  fi
9002  ;;
9003esac
9004
9005# Use C for the default configuration in the libtool script
9006
9007lt_save_CC=$CC
9008ac_ext=c
9009ac_cpp='$CPP $CPPFLAGS'
9010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014
9015# Source file extension for C test sources.
9016ac_ext=c
9017
9018# Object file extension for compiled C test sources.
9019objext=o
9020objext=$objext
9021
9022# Code to be used in simple compile tests
9023lt_simple_compile_test_code="int some_variable = 0;"
9024
9025# Code to be used in simple link tests
9026lt_simple_link_test_code='int main(){return(0);}'
9027
9028
9029
9030
9031
9032
9033
9034# If no C compiler was specified, use CC.
9035LTCC=${LTCC-"$CC"}
9036
9037# If no C compiler flags were specified, use CFLAGS.
9038LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9039
9040# Allow CC to be a program name with arguments.
9041compiler=$CC
9042
9043# Save the default compiler, since it gets overwritten when the other
9044# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9045compiler_DEFAULT=$CC
9046
9047# save warnings/boilerplate of simple test code
9048ac_outfile=conftest.$ac_objext
9049echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051_lt_compiler_boilerplate=`cat conftest.err`
9052$RM conftest*
9053
9054ac_outfile=conftest.$ac_objext
9055echo "$lt_simple_link_test_code" >conftest.$ac_ext
9056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057_lt_linker_boilerplate=`cat conftest.err`
9058$RM -r conftest*
9059
9060
9061## CAVEAT EMPTOR:
9062## There is no encapsulation within the following macros, do not change
9063## the running order or otherwise move them around unless you know exactly
9064## what you are doing...
9065if test -n "$compiler"; then
9066
9067lt_prog_compiler_no_builtin_flag=
9068
9069if test yes = "$GCC"; then
9070  case $cc_basename in
9071  nvcc*)
9072    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9073  *)
9074    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9075  esac
9076
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9078$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9079if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  lt_cv_prog_compiler_rtti_exceptions=no
9083   ac_outfile=conftest.$ac_objext
9084   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9086   # Insert the option either (1) after the last *FLAGS variable, or
9087   # (2) before a word containing "conftest.", or (3) at the end.
9088   # Note that $ac_compile itself does not contain backslashes and begins
9089   # with a dollar sign (not a hyphen), so the echo should work correctly.
9090   # The option is referenced via a variable to avoid confusing sed.
9091   lt_compile=`echo "$ac_compile" | $SED \
9092   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9094   -e 's:$: $lt_compiler_flag:'`
9095   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9096   (eval "$lt_compile" 2>conftest.err)
9097   ac_status=$?
9098   cat conftest.err >&5
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   if (exit $ac_status) && test -s "$ac_outfile"; then
9101     # The compiler can only warn and ignore the option if not recognized
9102     # So say no if there are warnings other than the usual output.
9103     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9104     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9106       lt_cv_prog_compiler_rtti_exceptions=yes
9107     fi
9108   fi
9109   $RM conftest*
9110
9111fi
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9113$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9114
9115if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9116    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9117else
9118    :
9119fi
9120
9121fi
9122
9123
9124
9125
9126
9127
9128  lt_prog_compiler_wl=
9129lt_prog_compiler_pic=
9130lt_prog_compiler_static=
9131
9132
9133  if test yes = "$GCC"; then
9134    lt_prog_compiler_wl='-Wl,'
9135    lt_prog_compiler_static='-static'
9136
9137    case $host_os in
9138      aix*)
9139      # All AIX code is PIC.
9140      if test ia64 = "$host_cpu"; then
9141	# AIX 5 now supports IA64 processor
9142	lt_prog_compiler_static='-Bstatic'
9143      fi
9144      lt_prog_compiler_pic='-fPIC'
9145      ;;
9146
9147    amigaos*)
9148      case $host_cpu in
9149      powerpc)
9150            # see comment about AmigaOS4 .so support
9151            lt_prog_compiler_pic='-fPIC'
9152        ;;
9153      m68k)
9154            # FIXME: we need at least 68020 code to build shared libraries, but
9155            # adding the '-m68020' flag to GCC prevents building anything better,
9156            # like '-m68040'.
9157            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9158        ;;
9159      esac
9160      ;;
9161
9162    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9163      # PIC is the default for these OSes.
9164      ;;
9165
9166    mingw* | cygwin* | pw32* | os2* | cegcc*)
9167      # This hack is so that the source file can tell whether it is being
9168      # built for inclusion in a dll (and should export symbols for example).
9169      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9170      # (--disable-auto-import) libraries
9171      lt_prog_compiler_pic='-DDLL_EXPORT'
9172      ;;
9173
9174    darwin* | rhapsody*)
9175      # PIC is the default on this platform
9176      # Common symbols not allowed in MH_DYLIB files
9177      lt_prog_compiler_pic='-fno-common'
9178      ;;
9179
9180    haiku*)
9181      # PIC is the default for Haiku.
9182      # The "-static" flag exists, but is broken.
9183      lt_prog_compiler_static=
9184      ;;
9185
9186    hpux*)
9187      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9188      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9189      # sets the default TLS model and affects inlining.
9190      case $host_cpu in
9191      hppa*64*)
9192	# +Z the default
9193	;;
9194      *)
9195	lt_prog_compiler_pic='-fPIC'
9196	;;
9197      esac
9198      ;;
9199
9200    interix[3-9]*)
9201      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9202      # Instead, we relocate shared libraries at runtime.
9203      ;;
9204
9205    msdosdjgpp*)
9206      # Just because we use GCC doesn't mean we suddenly get shared libraries
9207      # on systems that don't support them.
9208      lt_prog_compiler_can_build_shared=no
9209      enable_shared=no
9210      ;;
9211
9212    *nto* | *qnx*)
9213      # QNX uses GNU C++, but need to define -shared option too, otherwise
9214      # it will coredump.
9215      lt_prog_compiler_pic='-fPIC -shared'
9216      ;;
9217
9218    sysv4*MP*)
9219      if test -d /usr/nec; then
9220	lt_prog_compiler_pic=-Kconform_pic
9221      fi
9222      ;;
9223
9224    *)
9225      lt_prog_compiler_pic='-fPIC'
9226      ;;
9227    esac
9228
9229    case $cc_basename in
9230    nvcc*) # Cuda Compiler Driver 2.2
9231      lt_prog_compiler_wl='-Xlinker '
9232      if test -n "$lt_prog_compiler_pic"; then
9233        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9234      fi
9235      ;;
9236    esac
9237  else
9238    # PORTME Check for flag to pass linker flags through the system compiler.
9239    case $host_os in
9240    aix*)
9241      lt_prog_compiler_wl='-Wl,'
9242      if test ia64 = "$host_cpu"; then
9243	# AIX 5 now supports IA64 processor
9244	lt_prog_compiler_static='-Bstatic'
9245      else
9246	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9247      fi
9248      ;;
9249
9250    darwin* | rhapsody*)
9251      # PIC is the default on this platform
9252      # Common symbols not allowed in MH_DYLIB files
9253      lt_prog_compiler_pic='-fno-common'
9254      case $cc_basename in
9255      nagfor*)
9256        # NAG Fortran compiler
9257        lt_prog_compiler_wl='-Wl,-Wl,,'
9258        lt_prog_compiler_pic='-PIC'
9259        lt_prog_compiler_static='-Bstatic'
9260        ;;
9261      esac
9262      ;;
9263
9264    mingw* | cygwin* | pw32* | os2* | cegcc*)
9265      # This hack is so that the source file can tell whether it is being
9266      # built for inclusion in a dll (and should export symbols for example).
9267      lt_prog_compiler_pic='-DDLL_EXPORT'
9268      ;;
9269
9270    hpux9* | hpux10* | hpux11*)
9271      lt_prog_compiler_wl='-Wl,'
9272      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9273      # not for PA HP-UX.
9274      case $host_cpu in
9275      hppa*64*|ia64*)
9276	# +Z the default
9277	;;
9278      *)
9279	lt_prog_compiler_pic='+Z'
9280	;;
9281      esac
9282      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9283      lt_prog_compiler_static='$wl-a ${wl}archive'
9284      ;;
9285
9286    irix5* | irix6* | nonstopux*)
9287      lt_prog_compiler_wl='-Wl,'
9288      # PIC (with -KPIC) is the default.
9289      lt_prog_compiler_static='-non_shared'
9290      ;;
9291
9292    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9293      case $cc_basename in
9294      # old Intel for x86_64, which still supported -KPIC.
9295      ecc*)
9296	lt_prog_compiler_wl='-Wl,'
9297	lt_prog_compiler_pic='-KPIC'
9298	lt_prog_compiler_static='-static'
9299        ;;
9300      # icc used to be incompatible with GCC.
9301      # ICC 10 doesn't accept -KPIC any more.
9302      icc* | ifort*)
9303	lt_prog_compiler_wl='-Wl,'
9304	lt_prog_compiler_pic='-fPIC'
9305	lt_prog_compiler_static='-static'
9306        ;;
9307      # Lahey Fortran 8.1.
9308      lf95*)
9309	lt_prog_compiler_wl='-Wl,'
9310	lt_prog_compiler_pic='--shared'
9311	lt_prog_compiler_static='--static'
9312	;;
9313      nagfor*)
9314	# NAG Fortran compiler
9315	lt_prog_compiler_wl='-Wl,-Wl,,'
9316	lt_prog_compiler_pic='-PIC'
9317	lt_prog_compiler_static='-Bstatic'
9318	;;
9319      tcc*)
9320	# Fabrice Bellard et al's Tiny C Compiler
9321	lt_prog_compiler_wl='-Wl,'
9322	lt_prog_compiler_pic='-fPIC'
9323	lt_prog_compiler_static='-static'
9324	;;
9325      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9326        # Portland Group compilers (*not* the Pentium gcc compiler,
9327	# which looks to be a dead project)
9328	lt_prog_compiler_wl='-Wl,'
9329	lt_prog_compiler_pic='-fpic'
9330	lt_prog_compiler_static='-Bstatic'
9331        ;;
9332      ccc*)
9333        lt_prog_compiler_wl='-Wl,'
9334        # All Alpha code is PIC.
9335        lt_prog_compiler_static='-non_shared'
9336        ;;
9337      xl* | bgxl* | bgf* | mpixl*)
9338	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9339	lt_prog_compiler_wl='-Wl,'
9340	lt_prog_compiler_pic='-qpic'
9341	lt_prog_compiler_static='-qstaticlink'
9342	;;
9343      *)
9344	case `$CC -V 2>&1 | sed 5q` in
9345	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9346	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9347	  lt_prog_compiler_pic='-KPIC'
9348	  lt_prog_compiler_static='-Bstatic'
9349	  lt_prog_compiler_wl=''
9350	  ;;
9351	*Sun\ F* | *Sun*Fortran*)
9352	  lt_prog_compiler_pic='-KPIC'
9353	  lt_prog_compiler_static='-Bstatic'
9354	  lt_prog_compiler_wl='-Qoption ld '
9355	  ;;
9356	*Sun\ C*)
9357	  # Sun C 5.9
9358	  lt_prog_compiler_pic='-KPIC'
9359	  lt_prog_compiler_static='-Bstatic'
9360	  lt_prog_compiler_wl='-Wl,'
9361	  ;;
9362        *Intel*\ [CF]*Compiler*)
9363	  lt_prog_compiler_wl='-Wl,'
9364	  lt_prog_compiler_pic='-fPIC'
9365	  lt_prog_compiler_static='-static'
9366	  ;;
9367	*Portland\ Group*)
9368	  lt_prog_compiler_wl='-Wl,'
9369	  lt_prog_compiler_pic='-fpic'
9370	  lt_prog_compiler_static='-Bstatic'
9371	  ;;
9372	esac
9373	;;
9374      esac
9375      ;;
9376
9377    newsos6)
9378      lt_prog_compiler_pic='-KPIC'
9379      lt_prog_compiler_static='-Bstatic'
9380      ;;
9381
9382    *nto* | *qnx*)
9383      # QNX uses GNU C++, but need to define -shared option too, otherwise
9384      # it will coredump.
9385      lt_prog_compiler_pic='-fPIC -shared'
9386      ;;
9387
9388    osf3* | osf4* | osf5*)
9389      lt_prog_compiler_wl='-Wl,'
9390      # All OSF/1 code is PIC.
9391      lt_prog_compiler_static='-non_shared'
9392      ;;
9393
9394    rdos*)
9395      lt_prog_compiler_static='-non_shared'
9396      ;;
9397
9398    solaris*)
9399      lt_prog_compiler_pic='-KPIC'
9400      lt_prog_compiler_static='-Bstatic'
9401      case $cc_basename in
9402      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9403	lt_prog_compiler_wl='-Qoption ld ';;
9404      *)
9405	lt_prog_compiler_wl='-Wl,';;
9406      esac
9407      ;;
9408
9409    sunos4*)
9410      lt_prog_compiler_wl='-Qoption ld '
9411      lt_prog_compiler_pic='-PIC'
9412      lt_prog_compiler_static='-Bstatic'
9413      ;;
9414
9415    sysv4 | sysv4.2uw2* | sysv4.3*)
9416      lt_prog_compiler_wl='-Wl,'
9417      lt_prog_compiler_pic='-KPIC'
9418      lt_prog_compiler_static='-Bstatic'
9419      ;;
9420
9421    sysv4*MP*)
9422      if test -d /usr/nec; then
9423	lt_prog_compiler_pic='-Kconform_pic'
9424	lt_prog_compiler_static='-Bstatic'
9425      fi
9426      ;;
9427
9428    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9429      lt_prog_compiler_wl='-Wl,'
9430      lt_prog_compiler_pic='-KPIC'
9431      lt_prog_compiler_static='-Bstatic'
9432      ;;
9433
9434    unicos*)
9435      lt_prog_compiler_wl='-Wl,'
9436      lt_prog_compiler_can_build_shared=no
9437      ;;
9438
9439    uts4*)
9440      lt_prog_compiler_pic='-pic'
9441      lt_prog_compiler_static='-Bstatic'
9442      ;;
9443
9444    *)
9445      lt_prog_compiler_can_build_shared=no
9446      ;;
9447    esac
9448  fi
9449
9450case $host_os in
9451  # For platforms that do not support PIC, -DPIC is meaningless:
9452  *djgpp*)
9453    lt_prog_compiler_pic=
9454    ;;
9455  *)
9456    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9457    ;;
9458esac
9459
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9461$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9462if ${lt_cv_prog_compiler_pic+:} false; then :
9463  $as_echo_n "(cached) " >&6
9464else
9465  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9468$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9469lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9470
9471#
9472# Check to make sure the PIC flag actually works.
9473#
9474if test -n "$lt_prog_compiler_pic"; then
9475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9476$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9477if ${lt_cv_prog_compiler_pic_works+:} false; then :
9478  $as_echo_n "(cached) " >&6
9479else
9480  lt_cv_prog_compiler_pic_works=no
9481   ac_outfile=conftest.$ac_objext
9482   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9484   # Insert the option either (1) after the last *FLAGS variable, or
9485   # (2) before a word containing "conftest.", or (3) at the end.
9486   # Note that $ac_compile itself does not contain backslashes and begins
9487   # with a dollar sign (not a hyphen), so the echo should work correctly.
9488   # The option is referenced via a variable to avoid confusing sed.
9489   lt_compile=`echo "$ac_compile" | $SED \
9490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9492   -e 's:$: $lt_compiler_flag:'`
9493   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9494   (eval "$lt_compile" 2>conftest.err)
9495   ac_status=$?
9496   cat conftest.err >&5
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   if (exit $ac_status) && test -s "$ac_outfile"; then
9499     # The compiler can only warn and ignore the option if not recognized
9500     # So say no if there are warnings other than the usual output.
9501     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9504       lt_cv_prog_compiler_pic_works=yes
9505     fi
9506   fi
9507   $RM conftest*
9508
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9511$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9512
9513if test yes = "$lt_cv_prog_compiler_pic_works"; then
9514    case $lt_prog_compiler_pic in
9515     "" | " "*) ;;
9516     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9517     esac
9518else
9519    lt_prog_compiler_pic=
9520     lt_prog_compiler_can_build_shared=no
9521fi
9522
9523fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535#
9536# Check to make sure the static flag actually works.
9537#
9538wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9540$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9541if ${lt_cv_prog_compiler_static_works+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  lt_cv_prog_compiler_static_works=no
9545   save_LDFLAGS=$LDFLAGS
9546   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9547   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9548   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9549     # The linker can only warn and ignore the option if not recognized
9550     # So say no if there are warnings
9551     if test -s conftest.err; then
9552       # Append any errors to the config.log.
9553       cat conftest.err 1>&5
9554       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9555       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556       if diff conftest.exp conftest.er2 >/dev/null; then
9557         lt_cv_prog_compiler_static_works=yes
9558       fi
9559     else
9560       lt_cv_prog_compiler_static_works=yes
9561     fi
9562   fi
9563   $RM -r conftest*
9564   LDFLAGS=$save_LDFLAGS
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9568$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9569
9570if test yes = "$lt_cv_prog_compiler_static_works"; then
9571    :
9572else
9573    lt_prog_compiler_static=
9574fi
9575
9576
9577
9578
9579
9580
9581
9582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9583$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9584if ${lt_cv_prog_compiler_c_o+:} false; then :
9585  $as_echo_n "(cached) " >&6
9586else
9587  lt_cv_prog_compiler_c_o=no
9588   $RM -r conftest 2>/dev/null
9589   mkdir conftest
9590   cd conftest
9591   mkdir out
9592   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594   lt_compiler_flag="-o out/conftest2.$ac_objext"
9595   # Insert the option either (1) after the last *FLAGS variable, or
9596   # (2) before a word containing "conftest.", or (3) at the end.
9597   # Note that $ac_compile itself does not contain backslashes and begins
9598   # with a dollar sign (not a hyphen), so the echo should work correctly.
9599   lt_compile=`echo "$ac_compile" | $SED \
9600   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602   -e 's:$: $lt_compiler_flag:'`
9603   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9604   (eval "$lt_compile" 2>out/conftest.err)
9605   ac_status=$?
9606   cat out/conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609   then
9610     # The compiler can only warn and ignore the option if not recognized
9611     # So say no if there are warnings
9612     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9613     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615       lt_cv_prog_compiler_c_o=yes
9616     fi
9617   fi
9618   chmod u+w . 2>&5
9619   $RM conftest*
9620   # SGI C++ compiler will create directory out/ii_files/ for
9621   # template instantiation
9622   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9623   $RM out/* && rmdir out
9624   cd ..
9625   $RM -r conftest
9626   $RM conftest*
9627
9628fi
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9630$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9631
9632
9633
9634
9635
9636
9637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9639if ${lt_cv_prog_compiler_c_o+:} false; then :
9640  $as_echo_n "(cached) " >&6
9641else
9642  lt_cv_prog_compiler_c_o=no
9643   $RM -r conftest 2>/dev/null
9644   mkdir conftest
9645   cd conftest
9646   mkdir out
9647   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9648
9649   lt_compiler_flag="-o out/conftest2.$ac_objext"
9650   # Insert the option either (1) after the last *FLAGS variable, or
9651   # (2) before a word containing "conftest.", or (3) at the end.
9652   # Note that $ac_compile itself does not contain backslashes and begins
9653   # with a dollar sign (not a hyphen), so the echo should work correctly.
9654   lt_compile=`echo "$ac_compile" | $SED \
9655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9657   -e 's:$: $lt_compiler_flag:'`
9658   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9659   (eval "$lt_compile" 2>out/conftest.err)
9660   ac_status=$?
9661   cat out/conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9664   then
9665     # The compiler can only warn and ignore the option if not recognized
9666     # So say no if there are warnings
9667     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9668     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9669     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9670       lt_cv_prog_compiler_c_o=yes
9671     fi
9672   fi
9673   chmod u+w . 2>&5
9674   $RM conftest*
9675   # SGI C++ compiler will create directory out/ii_files/ for
9676   # template instantiation
9677   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9678   $RM out/* && rmdir out
9679   cd ..
9680   $RM -r conftest
9681   $RM conftest*
9682
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9685$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9686
9687
9688
9689
9690hard_links=nottested
9691if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9692  # do not overwrite the value of need_locks provided by the user
9693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9694$as_echo_n "checking if we can lock with hard links... " >&6; }
9695  hard_links=yes
9696  $RM conftest*
9697  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9698  touch conftest.a
9699  ln conftest.a conftest.b 2>&5 || hard_links=no
9700  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9702$as_echo "$hard_links" >&6; }
9703  if test no = "$hard_links"; then
9704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9705$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9706    need_locks=warn
9707  fi
9708else
9709  need_locks=no
9710fi
9711
9712
9713
9714
9715
9716
9717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9718$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9719
9720  runpath_var=
9721  allow_undefined_flag=
9722  always_export_symbols=no
9723  archive_cmds=
9724  archive_expsym_cmds=
9725  compiler_needs_object=no
9726  enable_shared_with_static_runtimes=no
9727  export_dynamic_flag_spec=
9728  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9729  hardcode_automatic=no
9730  hardcode_direct=no
9731  hardcode_direct_absolute=no
9732  hardcode_libdir_flag_spec=
9733  hardcode_libdir_separator=
9734  hardcode_minus_L=no
9735  hardcode_shlibpath_var=unsupported
9736  inherit_rpath=no
9737  link_all_deplibs=unknown
9738  module_cmds=
9739  module_expsym_cmds=
9740  old_archive_from_new_cmds=
9741  old_archive_from_expsyms_cmds=
9742  thread_safe_flag_spec=
9743  whole_archive_flag_spec=
9744  # include_expsyms should be a list of space-separated symbols to be *always*
9745  # included in the symbol list
9746  include_expsyms=
9747  # exclude_expsyms can be an extended regexp of symbols to exclude
9748  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9749  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9750  # as well as any symbol that contains 'd'.
9751  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9752  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9753  # platforms (ab)use it in PIC code, but their linkers get confused if
9754  # the symbol is explicitly referenced.  Since portable code cannot
9755  # rely on this symbol name, it's probably fine to never include it in
9756  # preloaded symbol tables.
9757  # Exclude shared library initialization/finalization symbols.
9758  extract_expsyms_cmds=
9759
9760  case $host_os in
9761  cygwin* | mingw* | pw32* | cegcc*)
9762    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9763    # When not using gcc, we currently assume that we are using
9764    # Microsoft Visual C++.
9765    if test yes != "$GCC"; then
9766      with_gnu_ld=no
9767    fi
9768    ;;
9769  interix*)
9770    # we just hope/assume this is gcc and not c89 (= MSVC++)
9771    with_gnu_ld=yes
9772    ;;
9773  openbsd* | bitrig*)
9774    with_gnu_ld=no
9775    ;;
9776  esac
9777
9778  ld_shlibs=yes
9779
9780  # On some targets, GNU ld is compatible enough with the native linker
9781  # that we're better off using the native interface for both.
9782  lt_use_gnu_ld_interface=no
9783  if test yes = "$with_gnu_ld"; then
9784    case $host_os in
9785      aix*)
9786	# The AIX port of GNU ld has always aspired to compatibility
9787	# with the native linker.  However, as the warning in the GNU ld
9788	# block says, versions before 2.19.5* couldn't really create working
9789	# shared libraries, regardless of the interface used.
9790	case `$LD -v 2>&1` in
9791	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9792	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9793	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9794	  *)
9795	    lt_use_gnu_ld_interface=yes
9796	    ;;
9797	esac
9798	;;
9799      *)
9800	lt_use_gnu_ld_interface=yes
9801	;;
9802    esac
9803  fi
9804
9805  if test yes = "$lt_use_gnu_ld_interface"; then
9806    # If archive_cmds runs LD, not CC, wlarc should be empty
9807    wlarc='$wl'
9808
9809    # Set some defaults for GNU ld with shared library support. These
9810    # are reset later if shared libraries are not supported. Putting them
9811    # here allows them to be overridden if necessary.
9812    runpath_var=LD_RUN_PATH
9813    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9814    export_dynamic_flag_spec='$wl--export-dynamic'
9815    # ancient GNU ld didn't support --whole-archive et. al.
9816    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9817      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9818    else
9819      whole_archive_flag_spec=
9820    fi
9821    supports_anon_versioning=no
9822    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9823      *GNU\ gold*) supports_anon_versioning=yes ;;
9824      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9825      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9826      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9827      *\ 2.11.*) ;; # other 2.11 versions
9828      *) supports_anon_versioning=yes ;;
9829    esac
9830
9831    # See if GNU ld supports shared libraries.
9832    case $host_os in
9833    aix[3-9]*)
9834      # On AIX/PPC, the GNU linker is very broken
9835      if test ia64 != "$host_cpu"; then
9836	ld_shlibs=no
9837	cat <<_LT_EOF 1>&2
9838
9839*** Warning: the GNU linker, at least up to release 2.19, is reported
9840*** to be unable to reliably create shared libraries on AIX.
9841*** Therefore, libtool is disabling shared libraries support.  If you
9842*** really care for shared libraries, you may want to install binutils
9843*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9844*** You will then need to restart the configuration process.
9845
9846_LT_EOF
9847      fi
9848      ;;
9849
9850    amigaos*)
9851      case $host_cpu in
9852      powerpc)
9853            # see comment about AmigaOS4 .so support
9854            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9855            archive_expsym_cmds=''
9856        ;;
9857      m68k)
9858            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)'
9859            hardcode_libdir_flag_spec='-L$libdir'
9860            hardcode_minus_L=yes
9861        ;;
9862      esac
9863      ;;
9864
9865    beos*)
9866      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9867	allow_undefined_flag=unsupported
9868	# Joseph Beckenbach <[email protected]> says some releases of gcc
9869	# support --undefined.  This deserves some investigation.  FIXME
9870	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9871      else
9872	ld_shlibs=no
9873      fi
9874      ;;
9875
9876    cygwin* | mingw* | pw32* | cegcc*)
9877      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9878      # as there is no search path for DLLs.
9879      hardcode_libdir_flag_spec='-L$libdir'
9880      export_dynamic_flag_spec='$wl--export-all-symbols'
9881      allow_undefined_flag=unsupported
9882      always_export_symbols=no
9883      enable_shared_with_static_runtimes=yes
9884      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'
9885      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9886
9887      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9888        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9889	# If the export-symbols file already is a .def file, use it as
9890	# is; otherwise, prepend EXPORTS...
9891	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9892          cp $export_symbols $output_objdir/$soname.def;
9893        else
9894          echo EXPORTS > $output_objdir/$soname.def;
9895          cat $export_symbols >> $output_objdir/$soname.def;
9896        fi~
9897        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9898      else
9899	ld_shlibs=no
9900      fi
9901      ;;
9902
9903    haiku*)
9904      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9905      link_all_deplibs=yes
9906      ;;
9907
9908    interix[3-9]*)
9909      hardcode_direct=no
9910      hardcode_shlibpath_var=no
9911      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9912      export_dynamic_flag_spec='$wl-E'
9913      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9914      # Instead, shared libraries are loaded at an image base (0x10000000 by
9915      # default) and relocated if they conflict, which is a slow very memory
9916      # consuming and fragmenting process.  To avoid this, we pick a random,
9917      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9918      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9919      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9920      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'
9921      ;;
9922
9923    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9924      tmp_diet=no
9925      if test linux-dietlibc = "$host_os"; then
9926	case $cc_basename in
9927	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9928	esac
9929      fi
9930      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9931	 && test no = "$tmp_diet"
9932      then
9933	tmp_addflag=' $pic_flag'
9934	tmp_sharedflag='-shared'
9935	case $cc_basename,$host_cpu in
9936        pgcc*)				# Portland Group C compiler
9937	  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'
9938	  tmp_addflag=' $pic_flag'
9939	  ;;
9940	pgf77* | pgf90* | pgf95* | pgfortran*)
9941					# Portland Group f77 and f90 compilers
9942	  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'
9943	  tmp_addflag=' $pic_flag -Mnomain' ;;
9944	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9945	  tmp_addflag=' -i_dynamic' ;;
9946	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9947	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9948	ifc* | ifort*)			# Intel Fortran compiler
9949	  tmp_addflag=' -nofor_main' ;;
9950	lf95*)				# Lahey Fortran 8.1
9951	  whole_archive_flag_spec=
9952	  tmp_sharedflag='--shared' ;;
9953        nagfor*)                        # NAGFOR 5.3
9954          tmp_sharedflag='-Wl,-shared' ;;
9955	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9956	  tmp_sharedflag='-qmkshrobj'
9957	  tmp_addflag= ;;
9958	nvcc*)	# Cuda Compiler Driver 2.2
9959	  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'
9960	  compiler_needs_object=yes
9961	  ;;
9962	esac
9963	case `$CC -V 2>&1 | sed 5q` in
9964	*Sun\ C*)			# Sun C 5.9
9965	  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'
9966	  compiler_needs_object=yes
9967	  tmp_sharedflag='-G' ;;
9968	*Sun\ F*)			# Sun Fortran 8.3
9969	  tmp_sharedflag='-G' ;;
9970	esac
9971	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9972
9973        if test yes = "$supports_anon_versioning"; then
9974          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9975            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9976            echo "local: *; };" >> $output_objdir/$libname.ver~
9977            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9978        fi
9979
9980	case $cc_basename in
9981	xlf* | bgf* | bgxlf* | mpixlf*)
9982	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9983	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9984	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9985	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9986	  if test yes = "$supports_anon_versioning"; then
9987	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9988              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9989              echo "local: *; };" >> $output_objdir/$libname.ver~
9990              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9991	  fi
9992	  ;;
9993	esac
9994      else
9995        ld_shlibs=no
9996      fi
9997      ;;
9998
9999    netbsd*)
10000      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10001	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10002	wlarc=
10003      else
10004	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10005	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10006      fi
10007      ;;
10008
10009    solaris*)
10010      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10011	ld_shlibs=no
10012	cat <<_LT_EOF 1>&2
10013
10014*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10015*** create shared libraries on Solaris systems.  Therefore, libtool
10016*** is disabling shared libraries support.  We urge you to upgrade GNU
10017*** binutils to release 2.9.1 or newer.  Another option is to modify
10018*** your PATH or compiler configuration so that the native linker is
10019*** used, and then restart.
10020
10021_LT_EOF
10022      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10023	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10024	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10025      else
10026	ld_shlibs=no
10027      fi
10028      ;;
10029
10030    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10031      case `$LD -v 2>&1` in
10032        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10033	ld_shlibs=no
10034	cat <<_LT_EOF 1>&2
10035
10036*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10037*** reliably create shared libraries on SCO systems.  Therefore, libtool
10038*** is disabling shared libraries support.  We urge you to upgrade GNU
10039*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10040*** your PATH or compiler configuration so that the native linker is
10041*** used, and then restart.
10042
10043_LT_EOF
10044	;;
10045	*)
10046	  # For security reasons, it is highly recommended that you always
10047	  # use absolute paths for naming shared libraries, and exclude the
10048	  # DT_RUNPATH tag from executables and libraries.  But doing so
10049	  # requires that you compile everything twice, which is a pain.
10050	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10051	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10052	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10053	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10054	  else
10055	    ld_shlibs=no
10056	  fi
10057	;;
10058      esac
10059      ;;
10060
10061    sunos4*)
10062      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063      wlarc=
10064      hardcode_direct=yes
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    *)
10069      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10070	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10071	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10072      else
10073	ld_shlibs=no
10074      fi
10075      ;;
10076    esac
10077
10078    if test no = "$ld_shlibs"; then
10079      runpath_var=
10080      hardcode_libdir_flag_spec=
10081      export_dynamic_flag_spec=
10082      whole_archive_flag_spec=
10083    fi
10084  else
10085    # PORTME fill in a description of your system's linker (not GNU ld)
10086    case $host_os in
10087    aix3*)
10088      allow_undefined_flag=unsupported
10089      always_export_symbols=yes
10090      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'
10091      # Note: this linker hardcodes the directories in LIBPATH if there
10092      # are no directories specified by -L.
10093      hardcode_minus_L=yes
10094      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10095	# Neither direct hardcoding nor static linking is supported with a
10096	# broken collect2.
10097	hardcode_direct=unsupported
10098      fi
10099      ;;
10100
10101    aix[4-9]*)
10102      if test ia64 = "$host_cpu"; then
10103	# On IA64, the linker does run time linking by default, so we don't
10104	# have to do anything special.
10105	aix_use_runtimelinking=no
10106	exp_sym_flag='-Bexport'
10107	no_entry_flag=
10108      else
10109	# If we're using GNU nm, then we don't want the "-C" option.
10110	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10111	# Also, AIX nm treats weak defined symbols like other global
10112	# defined symbols, whereas GNU nm marks them as "W".
10113	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10114	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10115	else
10116	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10117	fi
10118	aix_use_runtimelinking=no
10119
10120	# Test if we are trying to use run time linking or normal
10121	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10122	# need to do runtime linking.
10123	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10124	  for ld_flag in $LDFLAGS; do
10125	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10126	    aix_use_runtimelinking=yes
10127	    break
10128	  fi
10129	  done
10130	  ;;
10131	esac
10132
10133	exp_sym_flag='-bexport'
10134	no_entry_flag='-bnoentry'
10135      fi
10136
10137      # When large executables or shared objects are built, AIX ld can
10138      # have problems creating the table of contents.  If linking a library
10139      # or program results in "error TOC overflow" add -mminimal-toc to
10140      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10141      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10142
10143      archive_cmds=''
10144      hardcode_direct=yes
10145      hardcode_direct_absolute=yes
10146      hardcode_libdir_separator=':'
10147      link_all_deplibs=yes
10148      file_list_spec='$wl-f,'
10149
10150      if test yes = "$GCC"; then
10151	case $host_os in aix4.[012]|aix4.[012].*)
10152	# We only want to do this on AIX 4.2 and lower, the check
10153	# below for broken collect2 doesn't work under 4.3+
10154	  collect2name=`$CC -print-prog-name=collect2`
10155	  if test -f "$collect2name" &&
10156	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10157	  then
10158	  # We have reworked collect2
10159	  :
10160	  else
10161	  # We have old collect2
10162	  hardcode_direct=unsupported
10163	  # It fails to find uninstalled libraries when the uninstalled
10164	  # path is not listed in the libpath.  Setting hardcode_minus_L
10165	  # to unsupported forces relinking
10166	  hardcode_minus_L=yes
10167	  hardcode_libdir_flag_spec='-L$libdir'
10168	  hardcode_libdir_separator=
10169	  fi
10170	  ;;
10171	esac
10172	shared_flag='-shared'
10173	if test yes = "$aix_use_runtimelinking"; then
10174	  shared_flag="$shared_flag "'$wl-G'
10175	fi
10176      else
10177	# not using gcc
10178	if test ia64 = "$host_cpu"; then
10179	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180	# chokes on -Wl,-G. The following line is correct:
10181	  shared_flag='-G'
10182	else
10183	  if test yes = "$aix_use_runtimelinking"; then
10184	    shared_flag='$wl-G'
10185	  else
10186	    shared_flag='$wl-bM:SRE'
10187	  fi
10188	fi
10189      fi
10190
10191      export_dynamic_flag_spec='$wl-bexpall'
10192      # It seems that -bexpall does not export symbols beginning with
10193      # underscore (_), so it is better to generate a list of symbols to export.
10194      always_export_symbols=yes
10195      if test yes = "$aix_use_runtimelinking"; then
10196	# Warning - without using the other runtime loading flags (-brtl),
10197	# -berok will link without error, but may produce a broken library.
10198	allow_undefined_flag='-berok'
10199        # Determine the default libpath from the value encoded in an
10200        # empty executable.
10201        if test set = "${lt_cv_aix_libpath+set}"; then
10202  aix_libpath=$lt_cv_aix_libpath
10203else
10204  if ${lt_cv_aix_libpath_+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209
10210int
10211main ()
10212{
10213
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219
10220  lt_aix_libpath_sed='
10221      /Import File Strings/,/^$/ {
10222	  /^0/ {
10223	      s/^0  *\([^ ]*\) *$/\1/
10224	      p
10225	  }
10226      }'
10227  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228  # Check for a 64-bit object if we didn't find anything.
10229  if test -z "$lt_cv_aix_libpath_"; then
10230    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231  fi
10232fi
10233rm -f core conftest.err conftest.$ac_objext \
10234    conftest$ac_exeext conftest.$ac_ext
10235  if test -z "$lt_cv_aix_libpath_"; then
10236    lt_cv_aix_libpath_=/usr/lib:/lib
10237  fi
10238
10239fi
10240
10241  aix_libpath=$lt_cv_aix_libpath_
10242fi
10243
10244        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10245        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
10246      else
10247	if test ia64 = "$host_cpu"; then
10248	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10249	  allow_undefined_flag="-z nodefs"
10250	  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"
10251	else
10252	 # Determine the default libpath from the value encoded in an
10253	 # empty executable.
10254	 if test set = "${lt_cv_aix_libpath+set}"; then
10255  aix_libpath=$lt_cv_aix_libpath
10256else
10257  if ${lt_cv_aix_libpath_+:} false; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262
10263int
10264main ()
10265{
10266
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272
10273  lt_aix_libpath_sed='
10274      /Import File Strings/,/^$/ {
10275	  /^0/ {
10276	      s/^0  *\([^ ]*\) *$/\1/
10277	      p
10278	  }
10279      }'
10280  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281  # Check for a 64-bit object if we didn't find anything.
10282  if test -z "$lt_cv_aix_libpath_"; then
10283    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10284  fi
10285fi
10286rm -f core conftest.err conftest.$ac_objext \
10287    conftest$ac_exeext conftest.$ac_ext
10288  if test -z "$lt_cv_aix_libpath_"; then
10289    lt_cv_aix_libpath_=/usr/lib:/lib
10290  fi
10291
10292fi
10293
10294  aix_libpath=$lt_cv_aix_libpath_
10295fi
10296
10297	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10298	  # Warning - without using the other run time loading flags,
10299	  # -berok will link without error, but may produce a broken library.
10300	  no_undefined_flag=' $wl-bernotok'
10301	  allow_undefined_flag=' $wl-berok'
10302	  if test yes = "$with_gnu_ld"; then
10303	    # We only use this code for GNU lds that support --whole-archive.
10304	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10305	  else
10306	    # Exported symbols can be pulled into shared objects from archives
10307	    whole_archive_flag_spec='$convenience'
10308	  fi
10309	  archive_cmds_need_lc=yes
10310	  # This is similar to how AIX traditionally builds its shared libraries.
10311	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10312	fi
10313      fi
10314      ;;
10315
10316    amigaos*)
10317      case $host_cpu in
10318      powerpc)
10319            # see comment about AmigaOS4 .so support
10320            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10321            archive_expsym_cmds=''
10322        ;;
10323      m68k)
10324            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)'
10325            hardcode_libdir_flag_spec='-L$libdir'
10326            hardcode_minus_L=yes
10327        ;;
10328      esac
10329      ;;
10330
10331    bsdi[45]*)
10332      export_dynamic_flag_spec=-rdynamic
10333      ;;
10334
10335    cygwin* | mingw* | pw32* | cegcc*)
10336      # When not using gcc, we currently assume that we are using
10337      # Microsoft Visual C++.
10338      # hardcode_libdir_flag_spec is actually meaningless, as there is
10339      # no search path for DLLs.
10340      case $cc_basename in
10341      cl*)
10342	# Native MSVC
10343	hardcode_libdir_flag_spec=' '
10344	allow_undefined_flag=unsupported
10345	always_export_symbols=yes
10346	file_list_spec='@'
10347	# Tell ltmain to make .lib files, not .a files.
10348	libext=lib
10349	# Tell ltmain to make .dll files, not .so files.
10350	shrext_cmds=.dll
10351	# FIXME: Setting linknames here is a bad hack.
10352	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10353	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10354            cp "$export_symbols" "$output_objdir/$soname.def";
10355            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10356          else
10357            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10358          fi~
10359          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10360          linknames='
10361	# The linker will not automatically build a static lib if we build a DLL.
10362	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10363	enable_shared_with_static_runtimes=yes
10364	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10365	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10366	# Don't use ranlib
10367	old_postinstall_cmds='chmod 644 $oldlib'
10368	postlink_cmds='lt_outputfile="@OUTPUT@"~
10369          lt_tool_outputfile="@TOOL_OUTPUT@"~
10370          case $lt_outputfile in
10371            *.exe|*.EXE) ;;
10372            *)
10373              lt_outputfile=$lt_outputfile.exe
10374              lt_tool_outputfile=$lt_tool_outputfile.exe
10375              ;;
10376          esac~
10377          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10378            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10379            $RM "$lt_outputfile.manifest";
10380          fi'
10381	;;
10382      *)
10383	# Assume MSVC wrapper
10384	hardcode_libdir_flag_spec=' '
10385	allow_undefined_flag=unsupported
10386	# Tell ltmain to make .lib files, not .a files.
10387	libext=lib
10388	# Tell ltmain to make .dll files, not .so files.
10389	shrext_cmds=.dll
10390	# FIXME: Setting linknames here is a bad hack.
10391	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10392	# The linker will automatically build a .lib file if we build a DLL.
10393	old_archive_from_new_cmds='true'
10394	# FIXME: Should let the user specify the lib program.
10395	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10396	enable_shared_with_static_runtimes=yes
10397	;;
10398      esac
10399      ;;
10400
10401    darwin* | rhapsody*)
10402
10403
10404  archive_cmds_need_lc=no
10405  hardcode_direct=no
10406  hardcode_automatic=yes
10407  hardcode_shlibpath_var=unsupported
10408  if test yes = "$lt_cv_ld_force_load"; then
10409    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\"`'
10410
10411  else
10412    whole_archive_flag_spec=''
10413  fi
10414  link_all_deplibs=yes
10415  allow_undefined_flag=$_lt_dar_allow_undefined
10416  case $cc_basename in
10417     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10418     *) _lt_dar_can_shared=$GCC ;;
10419  esac
10420  if test yes = "$_lt_dar_can_shared"; then
10421    output_verbose_link_cmd=func_echo_all
10422    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10423    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10424    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"
10425    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"
10426
10427  else
10428  ld_shlibs=no
10429  fi
10430
10431      ;;
10432
10433    dgux*)
10434      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10435      hardcode_libdir_flag_spec='-L$libdir'
10436      hardcode_shlibpath_var=no
10437      ;;
10438
10439    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10440    # support.  Future versions do this automatically, but an explicit c++rt0.o
10441    # does not break anything, and helps significantly (at the cost of a little
10442    # extra space).
10443    freebsd2.2*)
10444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10445      hardcode_libdir_flag_spec='-R$libdir'
10446      hardcode_direct=yes
10447      hardcode_shlibpath_var=no
10448      ;;
10449
10450    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10451    freebsd2.*)
10452      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10453      hardcode_direct=yes
10454      hardcode_minus_L=yes
10455      hardcode_shlibpath_var=no
10456      ;;
10457
10458    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10459    freebsd* | dragonfly*)
10460      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10461      hardcode_libdir_flag_spec='-R$libdir'
10462      hardcode_direct=yes
10463      hardcode_shlibpath_var=no
10464      ;;
10465
10466    hpux9*)
10467      if test yes = "$GCC"; then
10468	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'
10469      else
10470	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'
10471      fi
10472      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10473      hardcode_libdir_separator=:
10474      hardcode_direct=yes
10475
10476      # hardcode_minus_L: Not really in the search PATH,
10477      # but as the default location of the library.
10478      hardcode_minus_L=yes
10479      export_dynamic_flag_spec='$wl-E'
10480      ;;
10481
10482    hpux10*)
10483      if test yes,no = "$GCC,$with_gnu_ld"; then
10484	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485      else
10486	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10487      fi
10488      if test no = "$with_gnu_ld"; then
10489	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10490	hardcode_libdir_separator=:
10491	hardcode_direct=yes
10492	hardcode_direct_absolute=yes
10493	export_dynamic_flag_spec='$wl-E'
10494	# hardcode_minus_L: Not really in the search PATH,
10495	# but as the default location of the library.
10496	hardcode_minus_L=yes
10497      fi
10498      ;;
10499
10500    hpux11*)
10501      if test yes,no = "$GCC,$with_gnu_ld"; then
10502	case $host_cpu in
10503	hppa*64*)
10504	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10505	  ;;
10506	ia64*)
10507	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10508	  ;;
10509	*)
10510	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10511	  ;;
10512	esac
10513      else
10514	case $host_cpu in
10515	hppa*64*)
10516	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10517	  ;;
10518	ia64*)
10519	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10520	  ;;
10521	*)
10522
10523	  # Older versions of the 11.00 compiler do not understand -b yet
10524	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10525	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10526$as_echo_n "checking if $CC understands -b... " >&6; }
10527if ${lt_cv_prog_compiler__b+:} false; then :
10528  $as_echo_n "(cached) " >&6
10529else
10530  lt_cv_prog_compiler__b=no
10531   save_LDFLAGS=$LDFLAGS
10532   LDFLAGS="$LDFLAGS -b"
10533   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10534   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10535     # The linker can only warn and ignore the option if not recognized
10536     # So say no if there are warnings
10537     if test -s conftest.err; then
10538       # Append any errors to the config.log.
10539       cat conftest.err 1>&5
10540       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10541       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10542       if diff conftest.exp conftest.er2 >/dev/null; then
10543         lt_cv_prog_compiler__b=yes
10544       fi
10545     else
10546       lt_cv_prog_compiler__b=yes
10547     fi
10548   fi
10549   $RM -r conftest*
10550   LDFLAGS=$save_LDFLAGS
10551
10552fi
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10554$as_echo "$lt_cv_prog_compiler__b" >&6; }
10555
10556if test yes = "$lt_cv_prog_compiler__b"; then
10557    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10558else
10559    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10560fi
10561
10562	  ;;
10563	esac
10564      fi
10565      if test no = "$with_gnu_ld"; then
10566	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10567	hardcode_libdir_separator=:
10568
10569	case $host_cpu in
10570	hppa*64*|ia64*)
10571	  hardcode_direct=no
10572	  hardcode_shlibpath_var=no
10573	  ;;
10574	*)
10575	  hardcode_direct=yes
10576	  hardcode_direct_absolute=yes
10577	  export_dynamic_flag_spec='$wl-E'
10578
10579	  # hardcode_minus_L: Not really in the search PATH,
10580	  # but as the default location of the library.
10581	  hardcode_minus_L=yes
10582	  ;;
10583	esac
10584      fi
10585      ;;
10586
10587    irix5* | irix6* | nonstopux*)
10588      if test yes = "$GCC"; then
10589	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'
10590	# Try to use the -exported_symbol ld option, if it does not
10591	# work, assume that -exports_file does not work either and
10592	# implicitly export all symbols.
10593	# This should be the same for all languages, so no per-tag cache variable.
10594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10595$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10596if ${lt_cv_irix_exported_symbol+:} false; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  save_LDFLAGS=$LDFLAGS
10600	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10601	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h.  */
10603int foo (void) { return 0; }
10604_ACEOF
10605if ac_fn_c_try_link "$LINENO"; then :
10606  lt_cv_irix_exported_symbol=yes
10607else
10608  lt_cv_irix_exported_symbol=no
10609fi
10610rm -f core conftest.err conftest.$ac_objext \
10611    conftest$ac_exeext conftest.$ac_ext
10612           LDFLAGS=$save_LDFLAGS
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10615$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10616	if test yes = "$lt_cv_irix_exported_symbol"; then
10617          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'
10618	fi
10619      else
10620	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'
10621	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'
10622      fi
10623      archive_cmds_need_lc='no'
10624      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10625      hardcode_libdir_separator=:
10626      inherit_rpath=yes
10627      link_all_deplibs=yes
10628      ;;
10629
10630    netbsd*)
10631      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10632	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10633      else
10634	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10635      fi
10636      hardcode_libdir_flag_spec='-R$libdir'
10637      hardcode_direct=yes
10638      hardcode_shlibpath_var=no
10639      ;;
10640
10641    newsos6)
10642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643      hardcode_direct=yes
10644      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10645      hardcode_libdir_separator=:
10646      hardcode_shlibpath_var=no
10647      ;;
10648
10649    *nto* | *qnx*)
10650      ;;
10651
10652    openbsd* | bitrig*)
10653      if test -f /usr/libexec/ld.so; then
10654	hardcode_direct=yes
10655	hardcode_shlibpath_var=no
10656	hardcode_direct_absolute=yes
10657	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10658	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10659	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10660	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10661	  export_dynamic_flag_spec='$wl-E'
10662	else
10663	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10665	fi
10666      else
10667	ld_shlibs=no
10668      fi
10669      ;;
10670
10671    os2*)
10672      hardcode_libdir_flag_spec='-L$libdir'
10673      hardcode_minus_L=yes
10674      allow_undefined_flag=unsupported
10675      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10676      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10677      ;;
10678
10679    osf3*)
10680      if test yes = "$GCC"; then
10681	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10682	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'
10683      else
10684	allow_undefined_flag=' -expect_unresolved \*'
10685	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'
10686      fi
10687      archive_cmds_need_lc='no'
10688      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689      hardcode_libdir_separator=:
10690      ;;
10691
10692    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10693      if test yes = "$GCC"; then
10694	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10695	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'
10696	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10697      else
10698	allow_undefined_flag=' -expect_unresolved \*'
10699	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'
10700	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~
10701          $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'
10702
10703	# Both c and cxx compiler support -rpath directly
10704	hardcode_libdir_flag_spec='-rpath $libdir'
10705      fi
10706      archive_cmds_need_lc='no'
10707      hardcode_libdir_separator=:
10708      ;;
10709
10710    solaris*)
10711      no_undefined_flag=' -z defs'
10712      if test yes = "$GCC"; then
10713	wlarc='$wl'
10714	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10715	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10716          $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'
10717      else
10718	case `$CC -V 2>&1` in
10719	*"Compilers 5.0"*)
10720	  wlarc=''
10721	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10723            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10724	  ;;
10725	*)
10726	  wlarc='$wl'
10727	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10728	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10729            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10730	  ;;
10731	esac
10732      fi
10733      hardcode_libdir_flag_spec='-R$libdir'
10734      hardcode_shlibpath_var=no
10735      case $host_os in
10736      solaris2.[0-5] | solaris2.[0-5].*) ;;
10737      *)
10738	# The compiler driver will combine and reorder linker options,
10739	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10740	# but is careful enough not to reorder.
10741	# Supported since Solaris 2.6 (maybe 2.5.1?)
10742	if test yes = "$GCC"; then
10743	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10744	else
10745	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10746	fi
10747	;;
10748      esac
10749      link_all_deplibs=yes
10750      ;;
10751
10752    sunos4*)
10753      if test sequent = "$host_vendor"; then
10754	# Use $CC to link under sequent, because it throws in some extra .o
10755	# files that make .init and .fini sections work.
10756	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10757      else
10758	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10759      fi
10760      hardcode_libdir_flag_spec='-L$libdir'
10761      hardcode_direct=yes
10762      hardcode_minus_L=yes
10763      hardcode_shlibpath_var=no
10764      ;;
10765
10766    sysv4)
10767      case $host_vendor in
10768	sni)
10769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770	  hardcode_direct=yes # is this really true???
10771	;;
10772	siemens)
10773	  ## LD is ld it makes a PLAMLIB
10774	  ## CC just makes a GrossModule.
10775	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10776	  reload_cmds='$CC -r -o $output$reload_objs'
10777	  hardcode_direct=no
10778        ;;
10779	motorola)
10780	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10782	;;
10783      esac
10784      runpath_var='LD_RUN_PATH'
10785      hardcode_shlibpath_var=no
10786      ;;
10787
10788    sysv4.3*)
10789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10790      hardcode_shlibpath_var=no
10791      export_dynamic_flag_spec='-Bexport'
10792      ;;
10793
10794    sysv4*MP*)
10795      if test -d /usr/nec; then
10796	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797	hardcode_shlibpath_var=no
10798	runpath_var=LD_RUN_PATH
10799	hardcode_runpath_var=yes
10800	ld_shlibs=yes
10801      fi
10802      ;;
10803
10804    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10805      no_undefined_flag='$wl-z,text'
10806      archive_cmds_need_lc=no
10807      hardcode_shlibpath_var=no
10808      runpath_var='LD_RUN_PATH'
10809
10810      if test yes = "$GCC"; then
10811	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813      else
10814	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816      fi
10817      ;;
10818
10819    sysv5* | sco3.2v5* | sco5v6*)
10820      # Note: We CANNOT use -z defs as we might desire, because we do not
10821      # link with -lc, and that would cause any symbols used from libc to
10822      # always be unresolved, which means just about no library would
10823      # ever link correctly.  If we're not using GNU ld we use -z text
10824      # though, which does catch some bad symbols but isn't as heavy-handed
10825      # as -z defs.
10826      no_undefined_flag='$wl-z,text'
10827      allow_undefined_flag='$wl-z,nodefs'
10828      archive_cmds_need_lc=no
10829      hardcode_shlibpath_var=no
10830      hardcode_libdir_flag_spec='$wl-R,$libdir'
10831      hardcode_libdir_separator=':'
10832      link_all_deplibs=yes
10833      export_dynamic_flag_spec='$wl-Bexport'
10834      runpath_var='LD_RUN_PATH'
10835
10836      if test yes = "$GCC"; then
10837	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10838	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10839      else
10840	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10841	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10842      fi
10843      ;;
10844
10845    uts4*)
10846      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847      hardcode_libdir_flag_spec='-L$libdir'
10848      hardcode_shlibpath_var=no
10849      ;;
10850
10851    *)
10852      ld_shlibs=no
10853      ;;
10854    esac
10855
10856    if test sni = "$host_vendor"; then
10857      case $host in
10858      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10859	export_dynamic_flag_spec='$wl-Blargedynsym'
10860	;;
10861      esac
10862    fi
10863  fi
10864
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10866$as_echo "$ld_shlibs" >&6; }
10867test no = "$ld_shlibs" && can_build_shared=no
10868
10869with_gnu_ld=$with_gnu_ld
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885#
10886# Do we need to explicitly link libc?
10887#
10888case "x$archive_cmds_need_lc" in
10889x|xyes)
10890  # Assume -lc should be added
10891  archive_cmds_need_lc=yes
10892
10893  if test yes,yes = "$GCC,$enable_shared"; then
10894    case $archive_cmds in
10895    *'~'*)
10896      # FIXME: we may have to deal with multi-command sequences.
10897      ;;
10898    '$CC '*)
10899      # Test whether the compiler implicitly links with -lc since on some
10900      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10901      # to ld, don't add -lc before -lgcc.
10902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10903$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10904if ${lt_cv_archive_cmds_need_lc+:} false; then :
10905  $as_echo_n "(cached) " >&6
10906else
10907  $RM conftest*
10908	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10909
10910	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10911  (eval $ac_compile) 2>&5
10912  ac_status=$?
10913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914  test $ac_status = 0; } 2>conftest.err; then
10915	  soname=conftest
10916	  lib=conftest
10917	  libobjs=conftest.$ac_objext
10918	  deplibs=
10919	  wl=$lt_prog_compiler_wl
10920	  pic_flag=$lt_prog_compiler_pic
10921	  compiler_flags=-v
10922	  linker_flags=-v
10923	  verstring=
10924	  output_objdir=.
10925	  libname=conftest
10926	  lt_save_allow_undefined_flag=$allow_undefined_flag
10927	  allow_undefined_flag=
10928	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10929  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10930  ac_status=$?
10931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932  test $ac_status = 0; }
10933	  then
10934	    lt_cv_archive_cmds_need_lc=no
10935	  else
10936	    lt_cv_archive_cmds_need_lc=yes
10937	  fi
10938	  allow_undefined_flag=$lt_save_allow_undefined_flag
10939	else
10940	  cat conftest.err 1>&5
10941	fi
10942	$RM conftest*
10943
10944fi
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10946$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10947      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10948      ;;
10949    esac
10950  fi
10951  ;;
10952esac
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11106$as_echo_n "checking dynamic linker characteristics... " >&6; }
11107
11108if test yes = "$GCC"; then
11109  case $host_os in
11110    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11111    *) lt_awk_arg='/^libraries:/' ;;
11112  esac
11113  case $host_os in
11114    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11115    *) lt_sed_strip_eq='s|=/|/|g' ;;
11116  esac
11117  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11118  case $lt_search_path_spec in
11119  *\;*)
11120    # if the path contains ";" then we assume it to be the separator
11121    # otherwise default to the standard path separator (i.e. ":") - it is
11122    # assumed that no part of a normal pathname contains ";" but that should
11123    # okay in the real world where ";" in dirpaths is itself problematic.
11124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11125    ;;
11126  *)
11127    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11128    ;;
11129  esac
11130  # Ok, now we have the path, separated by spaces, we can step through it
11131  # and add multilib dir if necessary...
11132  lt_tmp_lt_search_path_spec=
11133  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11134  # ...but if some path component already ends with the multilib dir we assume
11135  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11136  case "$lt_multi_os_dir; $lt_search_path_spec " in
11137  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11138    lt_multi_os_dir=
11139    ;;
11140  esac
11141  for lt_sys_path in $lt_search_path_spec; do
11142    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11143      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11144    elif test -n "$lt_multi_os_dir"; then
11145      test -d "$lt_sys_path" && \
11146	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11147    fi
11148  done
11149  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11150BEGIN {RS = " "; FS = "/|\n";} {
11151  lt_foo = "";
11152  lt_count = 0;
11153  for (lt_i = NF; lt_i > 0; lt_i--) {
11154    if ($lt_i != "" && $lt_i != ".") {
11155      if ($lt_i == "..") {
11156        lt_count++;
11157      } else {
11158        if (lt_count == 0) {
11159          lt_foo = "/" $lt_i lt_foo;
11160        } else {
11161          lt_count--;
11162        }
11163      }
11164    }
11165  }
11166  if (lt_foo != "") { lt_freq[lt_foo]++; }
11167  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11168}'`
11169  # AWK program above erroneously prepends '/' to C:/dos/paths
11170  # for these hosts.
11171  case $host_os in
11172    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11173      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11174  esac
11175  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11176else
11177  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11178fi
11179library_names_spec=
11180libname_spec='lib$name'
11181soname_spec=
11182shrext_cmds=.so
11183postinstall_cmds=
11184postuninstall_cmds=
11185finish_cmds=
11186finish_eval=
11187shlibpath_var=
11188shlibpath_overrides_runpath=unknown
11189version_type=none
11190dynamic_linker="$host_os ld.so"
11191sys_lib_dlsearch_path_spec="/lib /usr/lib"
11192need_lib_prefix=unknown
11193hardcode_into_libs=no
11194
11195# when you set need_version to no, make sure it does not cause -set_version
11196# flags to be left without arguments
11197need_version=unknown
11198
11199case $host_os in
11200aix3*)
11201  version_type=linux # correct to gnu/linux during the next big refactor
11202  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11203  shlibpath_var=LIBPATH
11204
11205  # AIX 3 has no versioning support, so we append a major version to the name.
11206  soname_spec='$libname$release$shared_ext$major'
11207  ;;
11208
11209aix[4-9]*)
11210  version_type=linux # correct to gnu/linux during the next big refactor
11211  need_lib_prefix=no
11212  need_version=no
11213  hardcode_into_libs=yes
11214  if test ia64 = "$host_cpu"; then
11215    # AIX 5 supports IA64
11216    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11217    shlibpath_var=LD_LIBRARY_PATH
11218  else
11219    # With GCC up to 2.95.x, collect2 would create an import file
11220    # for dependence libraries.  The import file would start with
11221    # the line '#! .'.  This would cause the generated library to
11222    # depend on '.', always an invalid library.  This was fixed in
11223    # development snapshots of GCC prior to 3.0.
11224    case $host_os in
11225      aix4 | aix4.[01] | aix4.[01].*)
11226      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11227	   echo ' yes '
11228	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11229	:
11230      else
11231	can_build_shared=no
11232      fi
11233      ;;
11234    esac
11235    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11236    # soname into executable. Probably we can add versioning support to
11237    # collect2, so additional links can be useful in future.
11238    if test yes = "$aix_use_runtimelinking"; then
11239      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11240      # instead of lib<name>.a to let people know that these are not
11241      # typical AIX shared libraries.
11242      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243    else
11244      # We preserve .a as extension for shared libraries through AIX4.2
11245      # and later when we are not doing run time linking.
11246      library_names_spec='$libname$release.a $libname.a'
11247      soname_spec='$libname$release$shared_ext$major'
11248    fi
11249    shlibpath_var=LIBPATH
11250  fi
11251  ;;
11252
11253amigaos*)
11254  case $host_cpu in
11255  powerpc)
11256    # Since July 2007 AmigaOS4 officially supports .so libraries.
11257    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11258    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11259    ;;
11260  m68k)
11261    library_names_spec='$libname.ixlibrary $libname.a'
11262    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11263    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'
11264    ;;
11265  esac
11266  ;;
11267
11268beos*)
11269  library_names_spec='$libname$shared_ext'
11270  dynamic_linker="$host_os ld.so"
11271  shlibpath_var=LIBRARY_PATH
11272  ;;
11273
11274bsdi[45]*)
11275  version_type=linux # correct to gnu/linux during the next big refactor
11276  need_version=no
11277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278  soname_spec='$libname$release$shared_ext$major'
11279  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11280  shlibpath_var=LD_LIBRARY_PATH
11281  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11282  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11283  # the default ld.so.conf also contains /usr/contrib/lib and
11284  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11285  # libtool to hard-code these into programs
11286  ;;
11287
11288cygwin* | mingw* | pw32* | cegcc*)
11289  version_type=windows
11290  shrext_cmds=.dll
11291  need_version=no
11292  need_lib_prefix=no
11293
11294  case $GCC,$cc_basename in
11295  yes,*)
11296    # gcc
11297    library_names_spec='$libname.dll.a'
11298    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11299    postinstall_cmds='base_file=`basename \$file`~
11300      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11301      dldir=$destdir/`dirname \$dlpath`~
11302      test -d \$dldir || mkdir -p \$dldir~
11303      $install_prog $dir/$dlname \$dldir/$dlname~
11304      chmod a+x \$dldir/$dlname~
11305      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11306        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11307      fi'
11308    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11309      dlpath=$dir/\$dldll~
11310       $RM \$dlpath'
11311    shlibpath_overrides_runpath=yes
11312
11313    case $host_os in
11314    cygwin*)
11315      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11316      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11317
11318      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11319      ;;
11320    mingw* | cegcc*)
11321      # MinGW DLLs use traditional 'lib' prefix
11322      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11323      ;;
11324    pw32*)
11325      # pw32 DLLs use 'pw' prefix rather than 'lib'
11326      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11327      ;;
11328    esac
11329    dynamic_linker='Win32 ld.exe'
11330    ;;
11331
11332  *,cl*)
11333    # Native MSVC
11334    libname_spec='$name'
11335    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11336    library_names_spec='$libname.dll.lib'
11337
11338    case $build_os in
11339    mingw*)
11340      sys_lib_search_path_spec=
11341      lt_save_ifs=$IFS
11342      IFS=';'
11343      for lt_path in $LIB
11344      do
11345        IFS=$lt_save_ifs
11346        # Let DOS variable expansion print the short 8.3 style file name.
11347        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11348        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11349      done
11350      IFS=$lt_save_ifs
11351      # Convert to MSYS style.
11352      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11353      ;;
11354    cygwin*)
11355      # Convert to unix form, then to dos form, then back to unix form
11356      # but this time dos style (no spaces!) so that the unix form looks
11357      # like /cygdrive/c/PROGRA~1:/cygdr...
11358      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11359      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11360      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11361      ;;
11362    *)
11363      sys_lib_search_path_spec=$LIB
11364      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11365        # It is most probably a Windows format PATH.
11366        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11367      else
11368        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11369      fi
11370      # FIXME: find the short name or the path components, as spaces are
11371      # common. (e.g. "Program Files" -> "PROGRA~1")
11372      ;;
11373    esac
11374
11375    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11376    postinstall_cmds='base_file=`basename \$file`~
11377      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11378      dldir=$destdir/`dirname \$dlpath`~
11379      test -d \$dldir || mkdir -p \$dldir~
11380      $install_prog $dir/$dlname \$dldir/$dlname'
11381    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11382      dlpath=$dir/\$dldll~
11383       $RM \$dlpath'
11384    shlibpath_overrides_runpath=yes
11385    dynamic_linker='Win32 link.exe'
11386    ;;
11387
11388  *)
11389    # Assume MSVC wrapper
11390    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11391    dynamic_linker='Win32 ld.exe'
11392    ;;
11393  esac
11394  # FIXME: first we should search . and the directory the executable is in
11395  shlibpath_var=PATH
11396  ;;
11397
11398darwin* | rhapsody*)
11399  dynamic_linker="$host_os dyld"
11400  version_type=darwin
11401  need_lib_prefix=no
11402  need_version=no
11403  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11404  soname_spec='$libname$release$major$shared_ext'
11405  shlibpath_overrides_runpath=yes
11406  shlibpath_var=DYLD_LIBRARY_PATH
11407  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11408
11409  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11410  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11411  ;;
11412
11413dgux*)
11414  version_type=linux # correct to gnu/linux during the next big refactor
11415  need_lib_prefix=no
11416  need_version=no
11417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418  soname_spec='$libname$release$shared_ext$major'
11419  shlibpath_var=LD_LIBRARY_PATH
11420  ;;
11421
11422freebsd* | dragonfly*)
11423  # DragonFly does not have aout.  When/if they implement a new
11424  # versioning mechanism, adjust this.
11425  if test -x /usr/bin/objformat; then
11426    objformat=`/usr/bin/objformat`
11427  else
11428    case $host_os in
11429    freebsd[23].*) objformat=aout ;;
11430    *) objformat=elf ;;
11431    esac
11432  fi
11433  version_type=freebsd-$objformat
11434  case $version_type in
11435    freebsd-elf*)
11436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11437      need_version=no
11438      need_lib_prefix=no
11439      ;;
11440    freebsd-*)
11441      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11442      need_version=yes
11443      ;;
11444  esac
11445  shlibpath_var=LD_LIBRARY_PATH
11446  case $host_os in
11447  freebsd2.*)
11448    shlibpath_overrides_runpath=yes
11449    ;;
11450  freebsd3.[01]* | freebsdelf3.[01]*)
11451    shlibpath_overrides_runpath=yes
11452    hardcode_into_libs=yes
11453    ;;
11454  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11455  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11456    shlibpath_overrides_runpath=no
11457    hardcode_into_libs=yes
11458    ;;
11459  *) # from 4.6 on, and DragonFly
11460    shlibpath_overrides_runpath=yes
11461    hardcode_into_libs=yes
11462    ;;
11463  esac
11464  ;;
11465
11466haiku*)
11467  version_type=linux # correct to gnu/linux during the next big refactor
11468  need_lib_prefix=no
11469  need_version=no
11470  dynamic_linker="$host_os runtime_loader"
11471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472  soname_spec='$libname$release$shared_ext$major'
11473  shlibpath_var=LIBRARY_PATH
11474  shlibpath_overrides_runpath=no
11475  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11476  hardcode_into_libs=yes
11477  ;;
11478
11479hpux9* | hpux10* | hpux11*)
11480  # Give a soname corresponding to the major version so that dld.sl refuses to
11481  # link against other versions.
11482  version_type=sunos
11483  need_lib_prefix=no
11484  need_version=no
11485  case $host_cpu in
11486  ia64*)
11487    shrext_cmds='.so'
11488    hardcode_into_libs=yes
11489    dynamic_linker="$host_os dld.so"
11490    shlibpath_var=LD_LIBRARY_PATH
11491    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11492    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11493    soname_spec='$libname$release$shared_ext$major'
11494    if test 32 = "$HPUX_IA64_MODE"; then
11495      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11496    else
11497      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11498    fi
11499    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500    ;;
11501  hppa*64*)
11502    shrext_cmds='.sl'
11503    hardcode_into_libs=yes
11504    dynamic_linker="$host_os dld.sl"
11505    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11506    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11507    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508    soname_spec='$libname$release$shared_ext$major'
11509    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11510    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11511    ;;
11512  *)
11513    shrext_cmds='.sl'
11514    dynamic_linker="$host_os dld.sl"
11515    shlibpath_var=SHLIB_PATH
11516    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11517    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518    soname_spec='$libname$release$shared_ext$major'
11519    ;;
11520  esac
11521  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11522  postinstall_cmds='chmod 555 $lib'
11523  # or fails outright, so override atomically:
11524  install_override_mode=555
11525  ;;
11526
11527interix[3-9]*)
11528  version_type=linux # correct to gnu/linux during the next big refactor
11529  need_lib_prefix=no
11530  need_version=no
11531  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532  soname_spec='$libname$release$shared_ext$major'
11533  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11534  shlibpath_var=LD_LIBRARY_PATH
11535  shlibpath_overrides_runpath=no
11536  hardcode_into_libs=yes
11537  ;;
11538
11539irix5* | irix6* | nonstopux*)
11540  case $host_os in
11541    nonstopux*) version_type=nonstopux ;;
11542    *)
11543	if test yes = "$lt_cv_prog_gnu_ld"; then
11544		version_type=linux # correct to gnu/linux during the next big refactor
11545	else
11546		version_type=irix
11547	fi ;;
11548  esac
11549  need_lib_prefix=no
11550  need_version=no
11551  soname_spec='$libname$release$shared_ext$major'
11552  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11553  case $host_os in
11554  irix5* | nonstopux*)
11555    libsuff= shlibsuff=
11556    ;;
11557  *)
11558    case $LD in # libtool.m4 will add one of these switches to LD
11559    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11560      libsuff= shlibsuff= libmagic=32-bit;;
11561    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11562      libsuff=32 shlibsuff=N32 libmagic=N32;;
11563    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11564      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11565    *) libsuff= shlibsuff= libmagic=never-match;;
11566    esac
11567    ;;
11568  esac
11569  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11570  shlibpath_overrides_runpath=no
11571  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11572  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11573  hardcode_into_libs=yes
11574  ;;
11575
11576# No shared lib support for Linux oldld, aout, or coff.
11577linux*oldld* | linux*aout* | linux*coff*)
11578  dynamic_linker=no
11579  ;;
11580
11581linux*android*)
11582  version_type=none # Android doesn't support versioned libraries.
11583  need_lib_prefix=no
11584  need_version=no
11585  library_names_spec='$libname$release$shared_ext'
11586  soname_spec='$libname$release$shared_ext'
11587  finish_cmds=
11588  shlibpath_var=LD_LIBRARY_PATH
11589  shlibpath_overrides_runpath=yes
11590
11591  # This implies no fast_install, which is unacceptable.
11592  # Some rework will be needed to allow for fast_install
11593  # before this can be enabled.
11594  hardcode_into_libs=yes
11595
11596  dynamic_linker='Android linker'
11597  # Don't embed -rpath directories since the linker doesn't support them.
11598  hardcode_libdir_flag_spec='-L$libdir'
11599  ;;
11600
11601# This must be glibc/ELF.
11602linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11603  version_type=linux # correct to gnu/linux during the next big refactor
11604  need_lib_prefix=no
11605  need_version=no
11606  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607  soname_spec='$libname$release$shared_ext$major'
11608  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11609  shlibpath_var=LD_LIBRARY_PATH
11610  shlibpath_overrides_runpath=no
11611
11612  # Some binutils ld are patched to set DT_RUNPATH
11613  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  lt_cv_shlibpath_overrides_runpath=no
11617    save_LDFLAGS=$LDFLAGS
11618    save_libdir=$libdir
11619    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11620	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623
11624int
11625main ()
11626{
11627
11628  ;
11629  return 0;
11630}
11631_ACEOF
11632if ac_fn_c_try_link "$LINENO"; then :
11633  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11634  lt_cv_shlibpath_overrides_runpath=yes
11635fi
11636fi
11637rm -f core conftest.err conftest.$ac_objext \
11638    conftest$ac_exeext conftest.$ac_ext
11639    LDFLAGS=$save_LDFLAGS
11640    libdir=$save_libdir
11641
11642fi
11643
11644  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11645
11646  # This implies no fast_install, which is unacceptable.
11647  # Some rework will be needed to allow for fast_install
11648  # before this can be enabled.
11649  hardcode_into_libs=yes
11650
11651  # Append ld.so.conf contents to the search path
11652  if test -f /etc/ld.so.conf; then
11653    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' ' '`
11654    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11655  fi
11656
11657  # We used to test for /lib/ld.so.1 and disable shared libraries on
11658  # powerpc, because MkLinux only supported shared libraries with the
11659  # GNU dynamic linker.  Since this was broken with cross compilers,
11660  # most powerpc-linux boxes support dynamic linking these days and
11661  # people can always --disable-shared, the test was removed, and we
11662  # assume the GNU/Linux dynamic linker is in use.
11663  dynamic_linker='GNU/Linux ld.so'
11664  ;;
11665
11666netbsd*)
11667  version_type=sunos
11668  need_lib_prefix=no
11669  need_version=no
11670  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11671    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673    dynamic_linker='NetBSD (a.out) ld.so'
11674  else
11675    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676    soname_spec='$libname$release$shared_ext$major'
11677    dynamic_linker='NetBSD ld.elf_so'
11678  fi
11679  shlibpath_var=LD_LIBRARY_PATH
11680  shlibpath_overrides_runpath=yes
11681  hardcode_into_libs=yes
11682  ;;
11683
11684newsos6)
11685  version_type=linux # correct to gnu/linux during the next big refactor
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  shlibpath_var=LD_LIBRARY_PATH
11688  shlibpath_overrides_runpath=yes
11689  ;;
11690
11691*nto* | *qnx*)
11692  version_type=qnx
11693  need_lib_prefix=no
11694  need_version=no
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  soname_spec='$libname$release$shared_ext$major'
11697  shlibpath_var=LD_LIBRARY_PATH
11698  shlibpath_overrides_runpath=no
11699  hardcode_into_libs=yes
11700  dynamic_linker='ldqnx.so'
11701  ;;
11702
11703openbsd* | bitrig*)
11704  version_type=sunos
11705  sys_lib_dlsearch_path_spec=/usr/lib
11706  need_lib_prefix=no
11707  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11708    need_version=no
11709  else
11710    need_version=yes
11711  fi
11712  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11713  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714  shlibpath_var=LD_LIBRARY_PATH
11715  shlibpath_overrides_runpath=yes
11716  ;;
11717
11718os2*)
11719  libname_spec='$name'
11720  shrext_cmds=.dll
11721  need_lib_prefix=no
11722  library_names_spec='$libname$shared_ext $libname.a'
11723  dynamic_linker='OS/2 ld.exe'
11724  shlibpath_var=LIBPATH
11725  ;;
11726
11727osf3* | osf4* | osf5*)
11728  version_type=osf
11729  need_lib_prefix=no
11730  need_version=no
11731  soname_spec='$libname$release$shared_ext$major'
11732  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11733  shlibpath_var=LD_LIBRARY_PATH
11734  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11735  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11736  ;;
11737
11738rdos*)
11739  dynamic_linker=no
11740  ;;
11741
11742solaris*)
11743  version_type=linux # correct to gnu/linux during the next big refactor
11744  need_lib_prefix=no
11745  need_version=no
11746  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747  soname_spec='$libname$release$shared_ext$major'
11748  shlibpath_var=LD_LIBRARY_PATH
11749  shlibpath_overrides_runpath=yes
11750  hardcode_into_libs=yes
11751  # ldd complains unless libraries are executable
11752  postinstall_cmds='chmod +x $lib'
11753  ;;
11754
11755sunos4*)
11756  version_type=sunos
11757  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11758  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11759  shlibpath_var=LD_LIBRARY_PATH
11760  shlibpath_overrides_runpath=yes
11761  if test yes = "$with_gnu_ld"; then
11762    need_lib_prefix=no
11763  fi
11764  need_version=yes
11765  ;;
11766
11767sysv4 | sysv4.3*)
11768  version_type=linux # correct to gnu/linux during the next big refactor
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770  soname_spec='$libname$release$shared_ext$major'
11771  shlibpath_var=LD_LIBRARY_PATH
11772  case $host_vendor in
11773    sni)
11774      shlibpath_overrides_runpath=no
11775      need_lib_prefix=no
11776      runpath_var=LD_RUN_PATH
11777      ;;
11778    siemens)
11779      need_lib_prefix=no
11780      ;;
11781    motorola)
11782      need_lib_prefix=no
11783      need_version=no
11784      shlibpath_overrides_runpath=no
11785      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11786      ;;
11787  esac
11788  ;;
11789
11790sysv4*MP*)
11791  if test -d /usr/nec; then
11792    version_type=linux # correct to gnu/linux during the next big refactor
11793    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11794    soname_spec='$libname$shared_ext.$major'
11795    shlibpath_var=LD_LIBRARY_PATH
11796  fi
11797  ;;
11798
11799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11800  version_type=freebsd-elf
11801  need_lib_prefix=no
11802  need_version=no
11803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11804  soname_spec='$libname$release$shared_ext$major'
11805  shlibpath_var=LD_LIBRARY_PATH
11806  shlibpath_overrides_runpath=yes
11807  hardcode_into_libs=yes
11808  if test yes = "$with_gnu_ld"; then
11809    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11810  else
11811    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11812    case $host_os in
11813      sco3.2v5*)
11814        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11815	;;
11816    esac
11817  fi
11818  sys_lib_dlsearch_path_spec='/usr/lib'
11819  ;;
11820
11821tpf*)
11822  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11823  version_type=linux # correct to gnu/linux during the next big refactor
11824  need_lib_prefix=no
11825  need_version=no
11826  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827  shlibpath_var=LD_LIBRARY_PATH
11828  shlibpath_overrides_runpath=no
11829  hardcode_into_libs=yes
11830  ;;
11831
11832uts4*)
11833  version_type=linux # correct to gnu/linux during the next big refactor
11834  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835  soname_spec='$libname$release$shared_ext$major'
11836  shlibpath_var=LD_LIBRARY_PATH
11837  ;;
11838
11839*)
11840  dynamic_linker=no
11841  ;;
11842esac
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11844$as_echo "$dynamic_linker" >&6; }
11845test no = "$dynamic_linker" && can_build_shared=no
11846
11847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11848if test yes = "$GCC"; then
11849  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11850fi
11851
11852if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11853  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11854fi
11855if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11856  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11857fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11951$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11952hardcode_action=
11953if test -n "$hardcode_libdir_flag_spec" ||
11954   test -n "$runpath_var" ||
11955   test yes = "$hardcode_automatic"; then
11956
11957  # We can hardcode non-existent directories.
11958  if test no != "$hardcode_direct" &&
11959     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11960     # have to relink, otherwise we might link with an installed library
11961     # when we should be linking with a yet-to-be-installed one
11962     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11963     test no != "$hardcode_minus_L"; then
11964    # Linking always hardcodes the temporary library directory.
11965    hardcode_action=relink
11966  else
11967    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11968    hardcode_action=immediate
11969  fi
11970else
11971  # We cannot hardcode anything, or else we can only hardcode existing
11972  # directories.
11973  hardcode_action=unsupported
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11976$as_echo "$hardcode_action" >&6; }
11977
11978if test relink = "$hardcode_action" ||
11979   test yes = "$inherit_rpath"; then
11980  # Fast installation is not supported
11981  enable_fast_install=no
11982elif test yes = "$shlibpath_overrides_runpath" ||
11983     test no = "$enable_shared"; then
11984  # Fast installation is not necessary
11985  enable_fast_install=needless
11986fi
11987
11988
11989
11990
11991
11992
11993  if test yes != "$enable_dlopen"; then
11994  enable_dlopen=unknown
11995  enable_dlopen_self=unknown
11996  enable_dlopen_self_static=unknown
11997else
11998  lt_cv_dlopen=no
11999  lt_cv_dlopen_libs=
12000
12001  case $host_os in
12002  beos*)
12003    lt_cv_dlopen=load_add_on
12004    lt_cv_dlopen_libs=
12005    lt_cv_dlopen_self=yes
12006    ;;
12007
12008  mingw* | pw32* | cegcc*)
12009    lt_cv_dlopen=LoadLibrary
12010    lt_cv_dlopen_libs=
12011    ;;
12012
12013  cygwin*)
12014    lt_cv_dlopen=dlopen
12015    lt_cv_dlopen_libs=
12016    ;;
12017
12018  darwin*)
12019    # if libdl is installed we need to link against it
12020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12021$as_echo_n "checking for dlopen in -ldl... " >&6; }
12022if ${ac_cv_lib_dl_dlopen+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  ac_check_lib_save_LIBS=$LIBS
12026LIBS="-ldl  $LIBS"
12027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h.  */
12029
12030/* Override any GCC internal prototype to avoid an error.
12031   Use char because int might match the return type of a GCC
12032   builtin and then its argument prototype would still apply.  */
12033#ifdef __cplusplus
12034extern "C"
12035#endif
12036char dlopen ();
12037int
12038main ()
12039{
12040return dlopen ();
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046  ac_cv_lib_dl_dlopen=yes
12047else
12048  ac_cv_lib_dl_dlopen=no
12049fi
12050rm -f core conftest.err conftest.$ac_objext \
12051    conftest$ac_exeext conftest.$ac_ext
12052LIBS=$ac_check_lib_save_LIBS
12053fi
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12055$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12056if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12057  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12058else
12059
12060    lt_cv_dlopen=dyld
12061    lt_cv_dlopen_libs=
12062    lt_cv_dlopen_self=yes
12063
12064fi
12065
12066    ;;
12067
12068  tpf*)
12069    # Don't try to run any link tests for TPF.  We know it's impossible
12070    # because TPF is a cross-compiler, and we know how we open DSOs.
12071    lt_cv_dlopen=dlopen
12072    lt_cv_dlopen_libs=
12073    lt_cv_dlopen_self=no
12074    ;;
12075
12076  *)
12077    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12078if test "x$ac_cv_func_shl_load" = xyes; then :
12079  lt_cv_dlopen=shl_load
12080else
12081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12082$as_echo_n "checking for shl_load in -ldld... " >&6; }
12083if ${ac_cv_lib_dld_shl_load+:} false; then :
12084  $as_echo_n "(cached) " >&6
12085else
12086  ac_check_lib_save_LIBS=$LIBS
12087LIBS="-ldld  $LIBS"
12088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h.  */
12090
12091/* Override any GCC internal prototype to avoid an error.
12092   Use char because int might match the return type of a GCC
12093   builtin and then its argument prototype would still apply.  */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097char shl_load ();
12098int
12099main ()
12100{
12101return shl_load ();
12102  ;
12103  return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_link "$LINENO"; then :
12107  ac_cv_lib_dld_shl_load=yes
12108else
12109  ac_cv_lib_dld_shl_load=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext \
12112    conftest$ac_exeext conftest.$ac_ext
12113LIBS=$ac_check_lib_save_LIBS
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12116$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12117if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12118  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12119else
12120  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12121if test "x$ac_cv_func_dlopen" = xyes; then :
12122  lt_cv_dlopen=dlopen
12123else
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12125$as_echo_n "checking for dlopen in -ldl... " >&6; }
12126if ${ac_cv_lib_dl_dlopen+:} false; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129  ac_check_lib_save_LIBS=$LIBS
12130LIBS="-ldl  $LIBS"
12131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132/* end confdefs.h.  */
12133
12134/* Override any GCC internal prototype to avoid an error.
12135   Use char because int might match the return type of a GCC
12136   builtin and then its argument prototype would still apply.  */
12137#ifdef __cplusplus
12138extern "C"
12139#endif
12140char dlopen ();
12141int
12142main ()
12143{
12144return dlopen ();
12145  ;
12146  return 0;
12147}
12148_ACEOF
12149if ac_fn_c_try_link "$LINENO"; then :
12150  ac_cv_lib_dl_dlopen=yes
12151else
12152  ac_cv_lib_dl_dlopen=no
12153fi
12154rm -f core conftest.err conftest.$ac_objext \
12155    conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
12157fi
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12159$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12160if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12161  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12162else
12163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12164$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12165if ${ac_cv_lib_svld_dlopen+:} false; then :
12166  $as_echo_n "(cached) " >&6
12167else
12168  ac_check_lib_save_LIBS=$LIBS
12169LIBS="-lsvld  $LIBS"
12170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173/* Override any GCC internal prototype to avoid an error.
12174   Use char because int might match the return type of a GCC
12175   builtin and then its argument prototype would still apply.  */
12176#ifdef __cplusplus
12177extern "C"
12178#endif
12179char dlopen ();
12180int
12181main ()
12182{
12183return dlopen ();
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188if ac_fn_c_try_link "$LINENO"; then :
12189  ac_cv_lib_svld_dlopen=yes
12190else
12191  ac_cv_lib_svld_dlopen=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12198$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12199if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12200  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12201else
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12203$as_echo_n "checking for dld_link in -ldld... " >&6; }
12204if ${ac_cv_lib_dld_dld_link+:} false; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  ac_check_lib_save_LIBS=$LIBS
12208LIBS="-ldld  $LIBS"
12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h.  */
12211
12212/* Override any GCC internal prototype to avoid an error.
12213   Use char because int might match the return type of a GCC
12214   builtin and then its argument prototype would still apply.  */
12215#ifdef __cplusplus
12216extern "C"
12217#endif
12218char dld_link ();
12219int
12220main ()
12221{
12222return dld_link ();
12223  ;
12224  return 0;
12225}
12226_ACEOF
12227if ac_fn_c_try_link "$LINENO"; then :
12228  ac_cv_lib_dld_dld_link=yes
12229else
12230  ac_cv_lib_dld_dld_link=no
12231fi
12232rm -f core conftest.err conftest.$ac_objext \
12233    conftest$ac_exeext conftest.$ac_ext
12234LIBS=$ac_check_lib_save_LIBS
12235fi
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12237$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12238if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12239  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12240fi
12241
12242
12243fi
12244
12245
12246fi
12247
12248
12249fi
12250
12251
12252fi
12253
12254
12255fi
12256
12257    ;;
12258  esac
12259
12260  if test no = "$lt_cv_dlopen"; then
12261    enable_dlopen=no
12262  else
12263    enable_dlopen=yes
12264  fi
12265
12266  case $lt_cv_dlopen in
12267  dlopen)
12268    save_CPPFLAGS=$CPPFLAGS
12269    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12270
12271    save_LDFLAGS=$LDFLAGS
12272    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12273
12274    save_LIBS=$LIBS
12275    LIBS="$lt_cv_dlopen_libs $LIBS"
12276
12277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12278$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12279if ${lt_cv_dlopen_self+:} false; then :
12280  $as_echo_n "(cached) " >&6
12281else
12282  	  if test yes = "$cross_compiling"; then :
12283  lt_cv_dlopen_self=cross
12284else
12285  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12286  lt_status=$lt_dlunknown
12287  cat > conftest.$ac_ext <<_LT_EOF
12288#line $LINENO "configure"
12289#include "confdefs.h"
12290
12291#if HAVE_DLFCN_H
12292#include <dlfcn.h>
12293#endif
12294
12295#include <stdio.h>
12296
12297#ifdef RTLD_GLOBAL
12298#  define LT_DLGLOBAL		RTLD_GLOBAL
12299#else
12300#  ifdef DL_GLOBAL
12301#    define LT_DLGLOBAL		DL_GLOBAL
12302#  else
12303#    define LT_DLGLOBAL		0
12304#  endif
12305#endif
12306
12307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12308   find out it does not work in some platform. */
12309#ifndef LT_DLLAZY_OR_NOW
12310#  ifdef RTLD_LAZY
12311#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12312#  else
12313#    ifdef DL_LAZY
12314#      define LT_DLLAZY_OR_NOW		DL_LAZY
12315#    else
12316#      ifdef RTLD_NOW
12317#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12318#      else
12319#        ifdef DL_NOW
12320#          define LT_DLLAZY_OR_NOW	DL_NOW
12321#        else
12322#          define LT_DLLAZY_OR_NOW	0
12323#        endif
12324#      endif
12325#    endif
12326#  endif
12327#endif
12328
12329/* When -fvisbility=hidden is used, assume the code has been annotated
12330   correspondingly for the symbols needed.  */
12331#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12332int fnord () __attribute__((visibility("default")));
12333#endif
12334
12335int fnord () { return 42; }
12336int main ()
12337{
12338  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12339  int status = $lt_dlunknown;
12340
12341  if (self)
12342    {
12343      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12344      else
12345        {
12346	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12347          else puts (dlerror ());
12348	}
12349      /* dlclose (self); */
12350    }
12351  else
12352    puts (dlerror ());
12353
12354  return status;
12355}
12356_LT_EOF
12357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12358  (eval $ac_link) 2>&5
12359  ac_status=$?
12360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12362    (./conftest; exit; ) >&5 2>/dev/null
12363    lt_status=$?
12364    case x$lt_status in
12365      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12366      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12367      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12368    esac
12369  else :
12370    # compilation failed
12371    lt_cv_dlopen_self=no
12372  fi
12373fi
12374rm -fr conftest*
12375
12376
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12379$as_echo "$lt_cv_dlopen_self" >&6; }
12380
12381    if test yes = "$lt_cv_dlopen_self"; then
12382      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12384$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12385if ${lt_cv_dlopen_self_static+:} false; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  	  if test yes = "$cross_compiling"; then :
12389  lt_cv_dlopen_self_static=cross
12390else
12391  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392  lt_status=$lt_dlunknown
12393  cat > conftest.$ac_ext <<_LT_EOF
12394#line $LINENO "configure"
12395#include "confdefs.h"
12396
12397#if HAVE_DLFCN_H
12398#include <dlfcn.h>
12399#endif
12400
12401#include <stdio.h>
12402
12403#ifdef RTLD_GLOBAL
12404#  define LT_DLGLOBAL		RTLD_GLOBAL
12405#else
12406#  ifdef DL_GLOBAL
12407#    define LT_DLGLOBAL		DL_GLOBAL
12408#  else
12409#    define LT_DLGLOBAL		0
12410#  endif
12411#endif
12412
12413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414   find out it does not work in some platform. */
12415#ifndef LT_DLLAZY_OR_NOW
12416#  ifdef RTLD_LAZY
12417#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12418#  else
12419#    ifdef DL_LAZY
12420#      define LT_DLLAZY_OR_NOW		DL_LAZY
12421#    else
12422#      ifdef RTLD_NOW
12423#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12424#      else
12425#        ifdef DL_NOW
12426#          define LT_DLLAZY_OR_NOW	DL_NOW
12427#        else
12428#          define LT_DLLAZY_OR_NOW	0
12429#        endif
12430#      endif
12431#    endif
12432#  endif
12433#endif
12434
12435/* When -fvisbility=hidden is used, assume the code has been annotated
12436   correspondingly for the symbols needed.  */
12437#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12438int fnord () __attribute__((visibility("default")));
12439#endif
12440
12441int fnord () { return 42; }
12442int main ()
12443{
12444  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445  int status = $lt_dlunknown;
12446
12447  if (self)
12448    {
12449      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12450      else
12451        {
12452	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12453          else puts (dlerror ());
12454	}
12455      /* dlclose (self); */
12456    }
12457  else
12458    puts (dlerror ());
12459
12460  return status;
12461}
12462_LT_EOF
12463  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12464  (eval $ac_link) 2>&5
12465  ac_status=$?
12466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12468    (./conftest; exit; ) >&5 2>/dev/null
12469    lt_status=$?
12470    case x$lt_status in
12471      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12472      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12473      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12474    esac
12475  else :
12476    # compilation failed
12477    lt_cv_dlopen_self_static=no
12478  fi
12479fi
12480rm -fr conftest*
12481
12482
12483fi
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12485$as_echo "$lt_cv_dlopen_self_static" >&6; }
12486    fi
12487
12488    CPPFLAGS=$save_CPPFLAGS
12489    LDFLAGS=$save_LDFLAGS
12490    LIBS=$save_LIBS
12491    ;;
12492  esac
12493
12494  case $lt_cv_dlopen_self in
12495  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12496  *) enable_dlopen_self=unknown ;;
12497  esac
12498
12499  case $lt_cv_dlopen_self_static in
12500  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12501  *) enable_dlopen_self_static=unknown ;;
12502  esac
12503fi
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521striplib=
12522old_striplib=
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12524$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12525if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12526  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12527  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529$as_echo "yes" >&6; }
12530else
12531# FIXME - insert some real tests, host_os isn't really good enough
12532  case $host_os in
12533  darwin*)
12534    if test -n "$STRIP"; then
12535      striplib="$STRIP -x"
12536      old_striplib="$STRIP -S"
12537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538$as_echo "yes" >&6; }
12539    else
12540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
12542    fi
12543    ;;
12544  *)
12545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547    ;;
12548  esac
12549fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562  # Report what library types will actually be built
12563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12564$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12566$as_echo "$can_build_shared" >&6; }
12567
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12569$as_echo_n "checking whether to build shared libraries... " >&6; }
12570  test no = "$can_build_shared" && enable_shared=no
12571
12572  # On AIX, shared libraries and static libraries use the same namespace, and
12573  # are all built from PIC.
12574  case $host_os in
12575  aix3*)
12576    test yes = "$enable_shared" && enable_static=no
12577    if test -n "$RANLIB"; then
12578      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12579      postinstall_cmds='$RANLIB $lib'
12580    fi
12581    ;;
12582
12583  aix[4-9]*)
12584    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
12585      test yes = "$enable_shared" && enable_static=no
12586    fi
12587    ;;
12588  esac
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12590$as_echo "$enable_shared" >&6; }
12591
12592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12593$as_echo_n "checking whether to build static libraries... " >&6; }
12594  # Make sure either enable_shared or enable_static is yes.
12595  test yes = "$enable_shared" || enable_static=yes
12596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12597$as_echo "$enable_static" >&6; }
12598
12599
12600
12601
12602fi
12603ac_ext=c
12604ac_cpp='$CPP $CPPFLAGS'
12605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608
12609CC=$lt_save_CC
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625        ac_config_commands="$ac_config_commands libtool"
12626
12627
12628
12629
12630# Only expand once:
12631
12632
12633ac_ext=cpp
12634ac_cpp='$CXXCPP $CPPFLAGS'
12635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12638if test -z "$CXX"; then
12639  if test -n "$CCC"; then
12640    CXX=$CCC
12641  else
12642    if test -n "$ac_tool_prefix"; then
12643  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12644  do
12645    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12646set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
12649if ${ac_cv_prog_CXX+:} false; then :
12650  $as_echo_n "(cached) " >&6
12651else
12652  if test -n "$CXX"; then
12653  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658  IFS=$as_save_IFS
12659  test -z "$as_dir" && as_dir=.
12660    for ac_exec_ext in '' $ac_executable_extensions; do
12661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664    break 2
12665  fi
12666done
12667  done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672CXX=$ac_cv_prog_CXX
12673if test -n "$CXX"; then
12674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12675$as_echo "$CXX" >&6; }
12676else
12677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681
12682    test -n "$CXX" && break
12683  done
12684fi
12685if test -z "$CXX"; then
12686  ac_ct_CXX=$CXX
12687  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12688do
12689  # Extract the first word of "$ac_prog", so it can be a program name with args.
12690set dummy $ac_prog; ac_word=$2
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
12693if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12694  $as_echo_n "(cached) " >&6
12695else
12696  if test -n "$ac_ct_CXX"; then
12697  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12698else
12699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700for as_dir in $PATH
12701do
12702  IFS=$as_save_IFS
12703  test -z "$as_dir" && as_dir=.
12704    for ac_exec_ext in '' $ac_executable_extensions; do
12705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12706    ac_cv_prog_ac_ct_CXX="$ac_prog"
12707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708    break 2
12709  fi
12710done
12711  done
12712IFS=$as_save_IFS
12713
12714fi
12715fi
12716ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12717if test -n "$ac_ct_CXX"; then
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12719$as_echo "$ac_ct_CXX" >&6; }
12720else
12721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
12723fi
12724
12725
12726  test -n "$ac_ct_CXX" && break
12727done
12728
12729  if test "x$ac_ct_CXX" = x; then
12730    CXX="g++"
12731  else
12732    case $cross_compiling:$ac_tool_warned in
12733yes:)
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12736ac_tool_warned=yes ;;
12737esac
12738    CXX=$ac_ct_CXX
12739  fi
12740fi
12741
12742  fi
12743fi
12744# Provide some information about the compiler.
12745$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12746set X $ac_compile
12747ac_compiler=$2
12748for ac_option in --version -v -V -qversion; do
12749  { { ac_try="$ac_compiler $ac_option >&5"
12750case "(($ac_try" in
12751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752  *) ac_try_echo=$ac_try;;
12753esac
12754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12755$as_echo "$ac_try_echo"; } >&5
12756  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12757  ac_status=$?
12758  if test -s conftest.err; then
12759    sed '10a\
12760... rest of stderr output deleted ...
12761         10q' conftest.err >conftest.er1
12762    cat conftest.er1 >&5
12763  fi
12764  rm -f conftest.er1 conftest.err
12765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766  test $ac_status = 0; }
12767done
12768
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12770$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12771if ${ac_cv_cxx_compiler_gnu+:} false; then :
12772  $as_echo_n "(cached) " >&6
12773else
12774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775/* end confdefs.h.  */
12776
12777int
12778main ()
12779{
12780#ifndef __GNUC__
12781       choke me
12782#endif
12783
12784  ;
12785  return 0;
12786}
12787_ACEOF
12788if ac_fn_cxx_try_compile "$LINENO"; then :
12789  ac_compiler_gnu=yes
12790else
12791  ac_compiler_gnu=no
12792fi
12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12795
12796fi
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12798$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12799if test $ac_compiler_gnu = yes; then
12800  GXX=yes
12801else
12802  GXX=
12803fi
12804ac_test_CXXFLAGS=${CXXFLAGS+set}
12805ac_save_CXXFLAGS=$CXXFLAGS
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12807$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12808if ${ac_cv_prog_cxx_g+:} false; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12812   ac_cxx_werror_flag=yes
12813   ac_cv_prog_cxx_g=no
12814   CXXFLAGS="-g"
12815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816/* end confdefs.h.  */
12817
12818int
12819main ()
12820{
12821
12822  ;
12823  return 0;
12824}
12825_ACEOF
12826if ac_fn_cxx_try_compile "$LINENO"; then :
12827  ac_cv_prog_cxx_g=yes
12828else
12829  CXXFLAGS=""
12830      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831/* end confdefs.h.  */
12832
12833int
12834main ()
12835{
12836
12837  ;
12838  return 0;
12839}
12840_ACEOF
12841if ac_fn_cxx_try_compile "$LINENO"; then :
12842
12843else
12844  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12845	 CXXFLAGS="-g"
12846	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848
12849int
12850main ()
12851{
12852
12853  ;
12854  return 0;
12855}
12856_ACEOF
12857if ac_fn_cxx_try_compile "$LINENO"; then :
12858  ac_cv_prog_cxx_g=yes
12859fi
12860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861fi
12862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863fi
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12866fi
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12868$as_echo "$ac_cv_prog_cxx_g" >&6; }
12869if test "$ac_test_CXXFLAGS" = set; then
12870  CXXFLAGS=$ac_save_CXXFLAGS
12871elif test $ac_cv_prog_cxx_g = yes; then
12872  if test "$GXX" = yes; then
12873    CXXFLAGS="-g -O2"
12874  else
12875    CXXFLAGS="-g"
12876  fi
12877else
12878  if test "$GXX" = yes; then
12879    CXXFLAGS="-O2"
12880  else
12881    CXXFLAGS=
12882  fi
12883fi
12884ac_ext=c
12885ac_cpp='$CPP $CPPFLAGS'
12886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889
12890depcc="$CXX"  am_compiler_list=
12891
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12893$as_echo_n "checking dependency style of $depcc... " >&6; }
12894if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12898  # We make a subdir and do the tests there.  Otherwise we can end up
12899  # making bogus files that we don't know about and never remove.  For
12900  # instance it was reported that on HP-UX the gcc test will end up
12901  # making a dummy file named 'D' -- because '-MD' means "put the output
12902  # in D".
12903  rm -rf conftest.dir
12904  mkdir conftest.dir
12905  # Copy depcomp to subdir because otherwise we won't find it if we're
12906  # using a relative directory.
12907  cp "$am_depcomp" conftest.dir
12908  cd conftest.dir
12909  # We will build objects and dependencies in a subdirectory because
12910  # it helps to detect inapplicable dependency modes.  For instance
12911  # both Tru64's cc and ICC support -MD to output dependencies as a
12912  # side effect of compilation, but ICC will put the dependencies in
12913  # the current directory while Tru64 will put them in the object
12914  # directory.
12915  mkdir sub
12916
12917  am_cv_CXX_dependencies_compiler_type=none
12918  if test "$am_compiler_list" = ""; then
12919     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12920  fi
12921  am__universal=false
12922  case " $depcc " in #(
12923     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12924     esac
12925
12926  for depmode in $am_compiler_list; do
12927    # Setup a source with many dependencies, because some compilers
12928    # like to wrap large dependency lists on column 80 (with \), and
12929    # we should not choose a depcomp mode which is confused by this.
12930    #
12931    # We need to recreate these files for each test, as the compiler may
12932    # overwrite some of them when testing with obscure command lines.
12933    # This happens at least with the AIX C compiler.
12934    : > sub/conftest.c
12935    for i in 1 2 3 4 5 6; do
12936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12937      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12938      # Solaris 10 /bin/sh.
12939      echo '/* dummy */' > sub/conftst$i.h
12940    done
12941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12942
12943    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12944    # mode.  It turns out that the SunPro C++ compiler does not properly
12945    # handle '-M -o', and we need to detect this.  Also, some Intel
12946    # versions had trouble with output in subdirs.
12947    am__obj=sub/conftest.${OBJEXT-o}
12948    am__minus_obj="-o $am__obj"
12949    case $depmode in
12950    gcc)
12951      # This depmode causes a compiler race in universal mode.
12952      test "$am__universal" = false || continue
12953      ;;
12954    nosideeffect)
12955      # After this tag, mechanisms are not by side-effect, so they'll
12956      # only be used when explicitly requested.
12957      if test "x$enable_dependency_tracking" = xyes; then
12958	continue
12959      else
12960	break
12961      fi
12962      ;;
12963    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12964      # This compiler won't grok '-c -o', but also, the minuso test has
12965      # not run yet.  These depmodes are late enough in the game, and
12966      # so weak that their functioning should not be impacted.
12967      am__obj=conftest.${OBJEXT-o}
12968      am__minus_obj=
12969      ;;
12970    none) break ;;
12971    esac
12972    if depmode=$depmode \
12973       source=sub/conftest.c object=$am__obj \
12974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12975       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12976         >/dev/null 2>conftest.err &&
12977       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12979       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12981      # icc doesn't choke on unknown options, it will just issue warnings
12982      # or remarks (even with -Werror).  So we grep stderr for any message
12983      # that says an option was ignored or not supported.
12984      # When given -MP, icc 7.0 and 7.1 complain thusly:
12985      #   icc: Command line warning: ignoring option '-M'; no argument required
12986      # The diagnosis changed in icc 8.0:
12987      #   icc: Command line remark: option '-MP' not supported
12988      if (grep 'ignoring option' conftest.err ||
12989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12990        am_cv_CXX_dependencies_compiler_type=$depmode
12991        break
12992      fi
12993    fi
12994  done
12995
12996  cd ..
12997  rm -rf conftest.dir
12998else
12999  am_cv_CXX_dependencies_compiler_type=none
13000fi
13001
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13004$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13005CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13006
13007 if
13008  test "x$enable_dependency_tracking" != xno \
13009  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13010  am__fastdepCXX_TRUE=
13011  am__fastdepCXX_FALSE='#'
13012else
13013  am__fastdepCXX_TRUE='#'
13014  am__fastdepCXX_FALSE=
13015fi
13016
13017
13018
13019
13020
13021func_stripname_cnf ()
13022{
13023  case $2 in
13024  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13025  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13026  esac
13027} # func_stripname_cnf
13028
13029      if test -n "$CXX" && ( test no != "$CXX" &&
13030    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13031    (test g++ != "$CXX"))); then
13032  ac_ext=cpp
13033ac_cpp='$CXXCPP $CPPFLAGS'
13034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13038$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13039if test -z "$CXXCPP"; then
13040  if ${ac_cv_prog_CXXCPP+:} false; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043      # Double quotes because CXXCPP needs to be expanded
13044    for CXXCPP in "$CXX -E" "/lib/cpp"
13045    do
13046      ac_preproc_ok=false
13047for ac_cxx_preproc_warn_flag in '' yes
13048do
13049  # Use a header file that comes with gcc, so configuring glibc
13050  # with a fresh cross-compiler works.
13051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13052  # <limits.h> exists even on freestanding compilers.
13053  # On the NeXT, cc -E runs the code through the compiler's parser,
13054  # not just through cpp. "Syntax error" is here to catch this case.
13055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056/* end confdefs.h.  */
13057#ifdef __STDC__
13058# include <limits.h>
13059#else
13060# include <assert.h>
13061#endif
13062		     Syntax error
13063_ACEOF
13064if ac_fn_cxx_try_cpp "$LINENO"; then :
13065
13066else
13067  # Broken: fails on valid input.
13068continue
13069fi
13070rm -f conftest.err conftest.i conftest.$ac_ext
13071
13072  # OK, works on sane cases.  Now check whether nonexistent headers
13073  # can be detected and how.
13074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076#include <ac_nonexistent.h>
13077_ACEOF
13078if ac_fn_cxx_try_cpp "$LINENO"; then :
13079  # Broken: success on invalid input.
13080continue
13081else
13082  # Passes both tests.
13083ac_preproc_ok=:
13084break
13085fi
13086rm -f conftest.err conftest.i conftest.$ac_ext
13087
13088done
13089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13090rm -f conftest.i conftest.err conftest.$ac_ext
13091if $ac_preproc_ok; then :
13092  break
13093fi
13094
13095    done
13096    ac_cv_prog_CXXCPP=$CXXCPP
13097
13098fi
13099  CXXCPP=$ac_cv_prog_CXXCPP
13100else
13101  ac_cv_prog_CXXCPP=$CXXCPP
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13104$as_echo "$CXXCPP" >&6; }
13105ac_preproc_ok=false
13106for ac_cxx_preproc_warn_flag in '' yes
13107do
13108  # Use a header file that comes with gcc, so configuring glibc
13109  # with a fresh cross-compiler works.
13110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13111  # <limits.h> exists even on freestanding compilers.
13112  # On the NeXT, cc -E runs the code through the compiler's parser,
13113  # not just through cpp. "Syntax error" is here to catch this case.
13114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115/* end confdefs.h.  */
13116#ifdef __STDC__
13117# include <limits.h>
13118#else
13119# include <assert.h>
13120#endif
13121		     Syntax error
13122_ACEOF
13123if ac_fn_cxx_try_cpp "$LINENO"; then :
13124
13125else
13126  # Broken: fails on valid input.
13127continue
13128fi
13129rm -f conftest.err conftest.i conftest.$ac_ext
13130
13131  # OK, works on sane cases.  Now check whether nonexistent headers
13132  # can be detected and how.
13133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h.  */
13135#include <ac_nonexistent.h>
13136_ACEOF
13137if ac_fn_cxx_try_cpp "$LINENO"; then :
13138  # Broken: success on invalid input.
13139continue
13140else
13141  # Passes both tests.
13142ac_preproc_ok=:
13143break
13144fi
13145rm -f conftest.err conftest.i conftest.$ac_ext
13146
13147done
13148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13149rm -f conftest.i conftest.err conftest.$ac_ext
13150if $ac_preproc_ok; then :
13151
13152else
13153  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13155as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13156See \`config.log' for more details" "$LINENO" 5; }
13157fi
13158
13159ac_ext=c
13160ac_cpp='$CPP $CPPFLAGS'
13161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164
13165else
13166  _lt_caught_CXX_error=yes
13167fi
13168
13169ac_ext=cpp
13170ac_cpp='$CXXCPP $CPPFLAGS'
13171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13174
13175archive_cmds_need_lc_CXX=no
13176allow_undefined_flag_CXX=
13177always_export_symbols_CXX=no
13178archive_expsym_cmds_CXX=
13179compiler_needs_object_CXX=no
13180export_dynamic_flag_spec_CXX=
13181hardcode_direct_CXX=no
13182hardcode_direct_absolute_CXX=no
13183hardcode_libdir_flag_spec_CXX=
13184hardcode_libdir_separator_CXX=
13185hardcode_minus_L_CXX=no
13186hardcode_shlibpath_var_CXX=unsupported
13187hardcode_automatic_CXX=no
13188inherit_rpath_CXX=no
13189module_cmds_CXX=
13190module_expsym_cmds_CXX=
13191link_all_deplibs_CXX=unknown
13192old_archive_cmds_CXX=$old_archive_cmds
13193reload_flag_CXX=$reload_flag
13194reload_cmds_CXX=$reload_cmds
13195no_undefined_flag_CXX=
13196whole_archive_flag_spec_CXX=
13197enable_shared_with_static_runtimes_CXX=no
13198
13199# Source file extension for C++ test sources.
13200ac_ext=cpp
13201
13202# Object file extension for compiled C++ test sources.
13203objext=o
13204objext_CXX=$objext
13205
13206# No sense in running all these tests if we already determined that
13207# the CXX compiler isn't working.  Some variables (like enable_shared)
13208# are currently assumed to apply to all compilers on this platform,
13209# and will be corrupted by setting them based on a non-working compiler.
13210if test yes != "$_lt_caught_CXX_error"; then
13211  # Code to be used in simple compile tests
13212  lt_simple_compile_test_code="int some_variable = 0;"
13213
13214  # Code to be used in simple link tests
13215  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13216
13217  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13218
13219
13220
13221
13222
13223
13224# If no C compiler was specified, use CC.
13225LTCC=${LTCC-"$CC"}
13226
13227# If no C compiler flags were specified, use CFLAGS.
13228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13229
13230# Allow CC to be a program name with arguments.
13231compiler=$CC
13232
13233
13234  # save warnings/boilerplate of simple test code
13235  ac_outfile=conftest.$ac_objext
13236echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13238_lt_compiler_boilerplate=`cat conftest.err`
13239$RM conftest*
13240
13241  ac_outfile=conftest.$ac_objext
13242echo "$lt_simple_link_test_code" >conftest.$ac_ext
13243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13244_lt_linker_boilerplate=`cat conftest.err`
13245$RM -r conftest*
13246
13247
13248  # Allow CC to be a program name with arguments.
13249  lt_save_CC=$CC
13250  lt_save_CFLAGS=$CFLAGS
13251  lt_save_LD=$LD
13252  lt_save_GCC=$GCC
13253  GCC=$GXX
13254  lt_save_with_gnu_ld=$with_gnu_ld
13255  lt_save_path_LD=$lt_cv_path_LD
13256  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13257    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13258  else
13259    $as_unset lt_cv_prog_gnu_ld
13260  fi
13261  if test -n "${lt_cv_path_LDCXX+set}"; then
13262    lt_cv_path_LD=$lt_cv_path_LDCXX
13263  else
13264    $as_unset lt_cv_path_LD
13265  fi
13266  test -z "${LDCXX+set}" || LD=$LDCXX
13267  CC=${CXX-"c++"}
13268  CFLAGS=$CXXFLAGS
13269  compiler=$CC
13270  compiler_CXX=$CC
13271  for cc_temp in $compiler""; do
13272  case $cc_temp in
13273    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13274    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13275    \-*) ;;
13276    *) break;;
13277  esac
13278done
13279cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13280
13281
13282  if test -n "$compiler"; then
13283    # We don't want -fno-exception when compiling C++ code, so set the
13284    # no_builtin_flag separately
13285    if test yes = "$GXX"; then
13286      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13287    else
13288      lt_prog_compiler_no_builtin_flag_CXX=
13289    fi
13290
13291    if test yes = "$GXX"; then
13292      # Set up default GNU C++ configuration
13293
13294
13295
13296# Check whether --with-gnu-ld was given.
13297if test "${with_gnu_ld+set}" = set; then :
13298  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13299else
13300  with_gnu_ld=no
13301fi
13302
13303ac_prog=ld
13304if test yes = "$GCC"; then
13305  # Check if gcc -print-prog-name=ld gives a path.
13306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13307$as_echo_n "checking for ld used by $CC... " >&6; }
13308  case $host in
13309  *-*-mingw*)
13310    # gcc leaves a trailing carriage return, which upsets mingw
13311    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13312  *)
13313    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13314  esac
13315  case $ac_prog in
13316    # Accept absolute paths.
13317    [\\/]* | ?:[\\/]*)
13318      re_direlt='/[^/][^/]*/\.\./'
13319      # Canonicalize the pathname of ld
13320      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13321      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13322	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13323      done
13324      test -z "$LD" && LD=$ac_prog
13325      ;;
13326  "")
13327    # If it fails, then pretend we aren't using GCC.
13328    ac_prog=ld
13329    ;;
13330  *)
13331    # If it is relative, then search for the first ld in PATH.
13332    with_gnu_ld=unknown
13333    ;;
13334  esac
13335elif test yes = "$with_gnu_ld"; then
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13337$as_echo_n "checking for GNU ld... " >&6; }
13338else
13339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13340$as_echo_n "checking for non-GNU ld... " >&6; }
13341fi
13342if ${lt_cv_path_LD+:} false; then :
13343  $as_echo_n "(cached) " >&6
13344else
13345  if test -z "$LD"; then
13346  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13347  for ac_dir in $PATH; do
13348    IFS=$lt_save_ifs
13349    test -z "$ac_dir" && ac_dir=.
13350    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13351      lt_cv_path_LD=$ac_dir/$ac_prog
13352      # Check to see if the program is GNU ld.  I'd rather use --version,
13353      # but apparently some variants of GNU ld only accept -v.
13354      # Break only if it was the GNU/non-GNU ld that we prefer.
13355      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13356      *GNU* | *'with BFD'*)
13357	test no != "$with_gnu_ld" && break
13358	;;
13359      *)
13360	test yes != "$with_gnu_ld" && break
13361	;;
13362      esac
13363    fi
13364  done
13365  IFS=$lt_save_ifs
13366else
13367  lt_cv_path_LD=$LD # Let the user override the test with a path.
13368fi
13369fi
13370
13371LD=$lt_cv_path_LD
13372if test -n "$LD"; then
13373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13374$as_echo "$LD" >&6; }
13375else
13376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
13378fi
13379test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13381$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13382if ${lt_cv_prog_gnu_ld+:} false; then :
13383  $as_echo_n "(cached) " >&6
13384else
13385  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13386case `$LD -v 2>&1 </dev/null` in
13387*GNU* | *'with BFD'*)
13388  lt_cv_prog_gnu_ld=yes
13389  ;;
13390*)
13391  lt_cv_prog_gnu_ld=no
13392  ;;
13393esac
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13396$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13397with_gnu_ld=$lt_cv_prog_gnu_ld
13398
13399
13400
13401
13402
13403
13404
13405      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13406      # archiving commands below assume that GNU ld is being used.
13407      if test yes = "$with_gnu_ld"; then
13408        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13409        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'
13410
13411        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13412        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13413
13414        # If archive_cmds runs LD, not CC, wlarc should be empty
13415        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13416        #     investigate it a little bit more. (MM)
13417        wlarc='$wl'
13418
13419        # ancient GNU ld didn't support --whole-archive et. al.
13420        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13421	  $GREP 'no-whole-archive' > /dev/null; then
13422          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13423        else
13424          whole_archive_flag_spec_CXX=
13425        fi
13426      else
13427        with_gnu_ld=no
13428        wlarc=
13429
13430        # A generic and very simple default shared library creation
13431        # command for GNU C++ for the case where it uses the native
13432        # linker, instead of GNU ld.  If possible, this setting should
13433        # overridden to take advantage of the native linker features on
13434        # the platform it is being used on.
13435        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13436      fi
13437
13438      # Commands to make compiler produce verbose output that lists
13439      # what "hidden" libraries, object files and flags are used when
13440      # linking a shared library.
13441      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13442
13443    else
13444      GXX=no
13445      with_gnu_ld=no
13446      wlarc=
13447    fi
13448
13449    # PORTME: fill in a description of your system's C++ link characteristics
13450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13451$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13452    ld_shlibs_CXX=yes
13453    case $host_os in
13454      aix3*)
13455        # FIXME: insert proper C++ library support
13456        ld_shlibs_CXX=no
13457        ;;
13458      aix[4-9]*)
13459        if test ia64 = "$host_cpu"; then
13460          # On IA64, the linker does run time linking by default, so we don't
13461          # have to do anything special.
13462          aix_use_runtimelinking=no
13463          exp_sym_flag='-Bexport'
13464          no_entry_flag=
13465        else
13466          aix_use_runtimelinking=no
13467
13468          # Test if we are trying to use run time linking or normal
13469          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13470          # need to do runtime linking.
13471          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13472	    for ld_flag in $LDFLAGS; do
13473	      case $ld_flag in
13474	      *-brtl*)
13475	        aix_use_runtimelinking=yes
13476	        break
13477	        ;;
13478	      esac
13479	    done
13480	    ;;
13481          esac
13482
13483          exp_sym_flag='-bexport'
13484          no_entry_flag='-bnoentry'
13485        fi
13486
13487        # When large executables or shared objects are built, AIX ld can
13488        # have problems creating the table of contents.  If linking a library
13489        # or program results in "error TOC overflow" add -mminimal-toc to
13490        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13491        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13492
13493        archive_cmds_CXX=''
13494        hardcode_direct_CXX=yes
13495        hardcode_direct_absolute_CXX=yes
13496        hardcode_libdir_separator_CXX=':'
13497        link_all_deplibs_CXX=yes
13498        file_list_spec_CXX='$wl-f,'
13499
13500        if test yes = "$GXX"; then
13501          case $host_os in aix4.[012]|aix4.[012].*)
13502          # We only want to do this on AIX 4.2 and lower, the check
13503          # below for broken collect2 doesn't work under 4.3+
13504	  collect2name=`$CC -print-prog-name=collect2`
13505	  if test -f "$collect2name" &&
13506	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13507	  then
13508	    # We have reworked collect2
13509	    :
13510	  else
13511	    # We have old collect2
13512	    hardcode_direct_CXX=unsupported
13513	    # It fails to find uninstalled libraries when the uninstalled
13514	    # path is not listed in the libpath.  Setting hardcode_minus_L
13515	    # to unsupported forces relinking
13516	    hardcode_minus_L_CXX=yes
13517	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13518	    hardcode_libdir_separator_CXX=
13519	  fi
13520          esac
13521          shared_flag='-shared'
13522	  if test yes = "$aix_use_runtimelinking"; then
13523	    shared_flag=$shared_flag' $wl-G'
13524	  fi
13525        else
13526          # not using gcc
13527          if test ia64 = "$host_cpu"; then
13528	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13529	  # chokes on -Wl,-G. The following line is correct:
13530	  shared_flag='-G'
13531          else
13532	    if test yes = "$aix_use_runtimelinking"; then
13533	      shared_flag='$wl-G'
13534	    else
13535	      shared_flag='$wl-bM:SRE'
13536	    fi
13537          fi
13538        fi
13539
13540        export_dynamic_flag_spec_CXX='$wl-bexpall'
13541        # It seems that -bexpall does not export symbols beginning with
13542        # underscore (_), so it is better to generate a list of symbols to
13543	# export.
13544        always_export_symbols_CXX=yes
13545        if test yes = "$aix_use_runtimelinking"; then
13546          # Warning - without using the other runtime loading flags (-brtl),
13547          # -berok will link without error, but may produce a broken library.
13548          allow_undefined_flag_CXX='-berok'
13549          # Determine the default libpath from the value encoded in an empty
13550          # executable.
13551          if test set = "${lt_cv_aix_libpath+set}"; then
13552  aix_libpath=$lt_cv_aix_libpath
13553else
13554  if ${lt_cv_aix_libpath__CXX+:} false; then :
13555  $as_echo_n "(cached) " >&6
13556else
13557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558/* end confdefs.h.  */
13559
13560int
13561main ()
13562{
13563
13564  ;
13565  return 0;
13566}
13567_ACEOF
13568if ac_fn_cxx_try_link "$LINENO"; then :
13569
13570  lt_aix_libpath_sed='
13571      /Import File Strings/,/^$/ {
13572	  /^0/ {
13573	      s/^0  *\([^ ]*\) *$/\1/
13574	      p
13575	  }
13576      }'
13577  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578  # Check for a 64-bit object if we didn't find anything.
13579  if test -z "$lt_cv_aix_libpath__CXX"; then
13580    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13581  fi
13582fi
13583rm -f core conftest.err conftest.$ac_objext \
13584    conftest$ac_exeext conftest.$ac_ext
13585  if test -z "$lt_cv_aix_libpath__CXX"; then
13586    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13587  fi
13588
13589fi
13590
13591  aix_libpath=$lt_cv_aix_libpath__CXX
13592fi
13593
13594          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13595
13596          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
13597        else
13598          if test ia64 = "$host_cpu"; then
13599	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13600	    allow_undefined_flag_CXX="-z nodefs"
13601	    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"
13602          else
13603	    # Determine the default libpath from the value encoded in an
13604	    # empty executable.
13605	    if test set = "${lt_cv_aix_libpath+set}"; then
13606  aix_libpath=$lt_cv_aix_libpath
13607else
13608  if ${lt_cv_aix_libpath__CXX+:} false; then :
13609  $as_echo_n "(cached) " >&6
13610else
13611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612/* end confdefs.h.  */
13613
13614int
13615main ()
13616{
13617
13618  ;
13619  return 0;
13620}
13621_ACEOF
13622if ac_fn_cxx_try_link "$LINENO"; then :
13623
13624  lt_aix_libpath_sed='
13625      /Import File Strings/,/^$/ {
13626	  /^0/ {
13627	      s/^0  *\([^ ]*\) *$/\1/
13628	      p
13629	  }
13630      }'
13631  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13632  # Check for a 64-bit object if we didn't find anything.
13633  if test -z "$lt_cv_aix_libpath__CXX"; then
13634    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13635  fi
13636fi
13637rm -f core conftest.err conftest.$ac_objext \
13638    conftest$ac_exeext conftest.$ac_ext
13639  if test -z "$lt_cv_aix_libpath__CXX"; then
13640    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13641  fi
13642
13643fi
13644
13645  aix_libpath=$lt_cv_aix_libpath__CXX
13646fi
13647
13648	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13649	    # Warning - without using the other run time loading flags,
13650	    # -berok will link without error, but may produce a broken library.
13651	    no_undefined_flag_CXX=' $wl-bernotok'
13652	    allow_undefined_flag_CXX=' $wl-berok'
13653	    if test yes = "$with_gnu_ld"; then
13654	      # We only use this code for GNU lds that support --whole-archive.
13655	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13656	    else
13657	      # Exported symbols can be pulled into shared objects from archives
13658	      whole_archive_flag_spec_CXX='$convenience'
13659	    fi
13660	    archive_cmds_need_lc_CXX=yes
13661	    # This is similar to how AIX traditionally builds its shared
13662	    # libraries.
13663	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13664          fi
13665        fi
13666        ;;
13667
13668      beos*)
13669	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13670	  allow_undefined_flag_CXX=unsupported
13671	  # Joseph Beckenbach <[email protected]> says some releases of gcc
13672	  # support --undefined.  This deserves some investigation.  FIXME
13673	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13674	else
13675	  ld_shlibs_CXX=no
13676	fi
13677	;;
13678
13679      chorus*)
13680        case $cc_basename in
13681          *)
13682	  # FIXME: insert proper C++ library support
13683	  ld_shlibs_CXX=no
13684	  ;;
13685        esac
13686        ;;
13687
13688      cygwin* | mingw* | pw32* | cegcc*)
13689	case $GXX,$cc_basename in
13690	,cl* | no,cl*)
13691	  # Native MSVC
13692	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13693	  # no search path for DLLs.
13694	  hardcode_libdir_flag_spec_CXX=' '
13695	  allow_undefined_flag_CXX=unsupported
13696	  always_export_symbols_CXX=yes
13697	  file_list_spec_CXX='@'
13698	  # Tell ltmain to make .lib files, not .a files.
13699	  libext=lib
13700	  # Tell ltmain to make .dll files, not .so files.
13701	  shrext_cmds=.dll
13702	  # FIXME: Setting linknames here is a bad hack.
13703	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13704	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13705              cp "$export_symbols" "$output_objdir/$soname.def";
13706              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13707            else
13708              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13709            fi~
13710            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13711            linknames='
13712	  # The linker will not automatically build a static lib if we build a DLL.
13713	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13714	  enable_shared_with_static_runtimes_CXX=yes
13715	  # Don't use ranlib
13716	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13717	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13718            lt_tool_outputfile="@TOOL_OUTPUT@"~
13719            case $lt_outputfile in
13720              *.exe|*.EXE) ;;
13721              *)
13722                lt_outputfile=$lt_outputfile.exe
13723                lt_tool_outputfile=$lt_tool_outputfile.exe
13724                ;;
13725            esac~
13726            func_to_tool_file "$lt_outputfile"~
13727            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13728              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13729              $RM "$lt_outputfile.manifest";
13730            fi'
13731	  ;;
13732	*)
13733	  # g++
13734	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13735	  # as there is no search path for DLLs.
13736	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13737	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13738	  allow_undefined_flag_CXX=unsupported
13739	  always_export_symbols_CXX=no
13740	  enable_shared_with_static_runtimes_CXX=yes
13741
13742	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13743	    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'
13744	    # If the export-symbols file already is a .def file, use it as
13745	    # is; otherwise, prepend EXPORTS...
13746	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13747              cp $export_symbols $output_objdir/$soname.def;
13748            else
13749              echo EXPORTS > $output_objdir/$soname.def;
13750              cat $export_symbols >> $output_objdir/$soname.def;
13751            fi~
13752            $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'
13753	  else
13754	    ld_shlibs_CXX=no
13755	  fi
13756	  ;;
13757	esac
13758	;;
13759      darwin* | rhapsody*)
13760
13761
13762  archive_cmds_need_lc_CXX=no
13763  hardcode_direct_CXX=no
13764  hardcode_automatic_CXX=yes
13765  hardcode_shlibpath_var_CXX=unsupported
13766  if test yes = "$lt_cv_ld_force_load"; then
13767    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\"`'
13768
13769  else
13770    whole_archive_flag_spec_CXX=''
13771  fi
13772  link_all_deplibs_CXX=yes
13773  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13774  case $cc_basename in
13775     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13776     *) _lt_dar_can_shared=$GCC ;;
13777  esac
13778  if test yes = "$_lt_dar_can_shared"; then
13779    output_verbose_link_cmd=func_echo_all
13780    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"
13781    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13782    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"
13783    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"
13784       if test yes != "$lt_cv_apple_cc_single_mod"; then
13785      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"
13786      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"
13787    fi
13788
13789  else
13790  ld_shlibs_CXX=no
13791  fi
13792
13793	;;
13794
13795      dgux*)
13796        case $cc_basename in
13797          ec++*)
13798	    # FIXME: insert proper C++ library support
13799	    ld_shlibs_CXX=no
13800	    ;;
13801          ghcx*)
13802	    # Green Hills C++ Compiler
13803	    # FIXME: insert proper C++ library support
13804	    ld_shlibs_CXX=no
13805	    ;;
13806          *)
13807	    # FIXME: insert proper C++ library support
13808	    ld_shlibs_CXX=no
13809	    ;;
13810        esac
13811        ;;
13812
13813      freebsd2.*)
13814        # C++ shared libraries reported to be fairly broken before
13815	# switch to ELF
13816        ld_shlibs_CXX=no
13817        ;;
13818
13819      freebsd-elf*)
13820        archive_cmds_need_lc_CXX=no
13821        ;;
13822
13823      freebsd* | dragonfly*)
13824        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13825        # conventions
13826        ld_shlibs_CXX=yes
13827        ;;
13828
13829      haiku*)
13830        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13831        link_all_deplibs_CXX=yes
13832        ;;
13833
13834      hpux9*)
13835        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13836        hardcode_libdir_separator_CXX=:
13837        export_dynamic_flag_spec_CXX='$wl-E'
13838        hardcode_direct_CXX=yes
13839        hardcode_minus_L_CXX=yes # Not in the search PATH,
13840				             # but as the default
13841				             # location of the library.
13842
13843        case $cc_basename in
13844          CC*)
13845            # FIXME: insert proper C++ library support
13846            ld_shlibs_CXX=no
13847            ;;
13848          aCC*)
13849            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'
13850            # Commands to make compiler produce verbose output that lists
13851            # what "hidden" libraries, object files and flags are used when
13852            # linking a shared library.
13853            #
13854            # There doesn't appear to be a way to prevent this compiler from
13855            # explicitly linking system object files so we need to strip them
13856            # from the output so that they don't get included in the library
13857            # dependencies.
13858            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"'
13859            ;;
13860          *)
13861            if test yes = "$GXX"; then
13862              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'
13863            else
13864              # FIXME: insert proper C++ library support
13865              ld_shlibs_CXX=no
13866            fi
13867            ;;
13868        esac
13869        ;;
13870
13871      hpux10*|hpux11*)
13872        if test no = "$with_gnu_ld"; then
13873	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13874	  hardcode_libdir_separator_CXX=:
13875
13876          case $host_cpu in
13877            hppa*64*|ia64*)
13878              ;;
13879            *)
13880	      export_dynamic_flag_spec_CXX='$wl-E'
13881              ;;
13882          esac
13883        fi
13884        case $host_cpu in
13885          hppa*64*|ia64*)
13886            hardcode_direct_CXX=no
13887            hardcode_shlibpath_var_CXX=no
13888            ;;
13889          *)
13890            hardcode_direct_CXX=yes
13891            hardcode_direct_absolute_CXX=yes
13892            hardcode_minus_L_CXX=yes # Not in the search PATH,
13893					         # but as the default
13894					         # location of the library.
13895            ;;
13896        esac
13897
13898        case $cc_basename in
13899          CC*)
13900	    # FIXME: insert proper C++ library support
13901	    ld_shlibs_CXX=no
13902	    ;;
13903          aCC*)
13904	    case $host_cpu in
13905	      hppa*64*)
13906	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907	        ;;
13908	      ia64*)
13909	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13910	        ;;
13911	      *)
13912	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13913	        ;;
13914	    esac
13915	    # Commands to make compiler produce verbose output that lists
13916	    # what "hidden" libraries, object files and flags are used when
13917	    # linking a shared library.
13918	    #
13919	    # There doesn't appear to be a way to prevent this compiler from
13920	    # explicitly linking system object files so we need to strip them
13921	    # from the output so that they don't get included in the library
13922	    # dependencies.
13923	    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"'
13924	    ;;
13925          *)
13926	    if test yes = "$GXX"; then
13927	      if test no = "$with_gnu_ld"; then
13928	        case $host_cpu in
13929	          hppa*64*)
13930	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13931	            ;;
13932	          ia64*)
13933	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13934	            ;;
13935	          *)
13936	            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'
13937	            ;;
13938	        esac
13939	      fi
13940	    else
13941	      # FIXME: insert proper C++ library support
13942	      ld_shlibs_CXX=no
13943	    fi
13944	    ;;
13945        esac
13946        ;;
13947
13948      interix[3-9]*)
13949	hardcode_direct_CXX=no
13950	hardcode_shlibpath_var_CXX=no
13951	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13952	export_dynamic_flag_spec_CXX='$wl-E'
13953	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13954	# Instead, shared libraries are loaded at an image base (0x10000000 by
13955	# default) and relocated if they conflict, which is a slow very memory
13956	# consuming and fragmenting process.  To avoid this, we pick a random,
13957	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13958	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13959	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'
13960	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'
13961	;;
13962      irix5* | irix6*)
13963        case $cc_basename in
13964          CC*)
13965	    # SGI C++
13966	    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'
13967
13968	    # Archives containing C++ object files must be created using
13969	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13970	    # necessary to make sure instantiated templates are included
13971	    # in the archive.
13972	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13973	    ;;
13974          *)
13975	    if test yes = "$GXX"; then
13976	      if test no = "$with_gnu_ld"; then
13977	        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'
13978	      else
13979	        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'
13980	      fi
13981	    fi
13982	    link_all_deplibs_CXX=yes
13983	    ;;
13984        esac
13985        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13986        hardcode_libdir_separator_CXX=:
13987        inherit_rpath_CXX=yes
13988        ;;
13989
13990      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13991        case $cc_basename in
13992          KCC*)
13993	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13994
13995	    # KCC will only create a shared library if the output file
13996	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13997	    # to its proper name (with version) after linking.
13998	    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'
13999	    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'
14000	    # Commands to make compiler produce verbose output that lists
14001	    # what "hidden" libraries, object files and flags are used when
14002	    # linking a shared library.
14003	    #
14004	    # There doesn't appear to be a way to prevent this compiler from
14005	    # explicitly linking system object files so we need to strip them
14006	    # from the output so that they don't get included in the library
14007	    # dependencies.
14008	    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"'
14009
14010	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14011	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14012
14013	    # Archives containing C++ object files must be created using
14014	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14015	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14016	    ;;
14017	  icpc* | ecpc* )
14018	    # Intel C++
14019	    with_gnu_ld=yes
14020	    # version 8.0 and above of icpc choke on multiply defined symbols
14021	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14022	    # earlier do not add the objects themselves.
14023	    case `$CC -V 2>&1` in
14024	      *"Version 7."*)
14025	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14026		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'
14027		;;
14028	      *)  # Version 8.0 or newer
14029	        tmp_idyn=
14030	        case $host_cpu in
14031		  ia64*) tmp_idyn=' -i_dynamic';;
14032		esac
14033	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14034		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'
14035		;;
14036	    esac
14037	    archive_cmds_need_lc_CXX=no
14038	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14039	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14040	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14041	    ;;
14042          pgCC* | pgcpp*)
14043            # Portland Group C++ compiler
14044	    case `$CC -V` in
14045	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14046	      prelink_cmds_CXX='tpldir=Template.dir~
14047               rm -rf $tpldir~
14048               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14049               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14050	      old_archive_cmds_CXX='tpldir=Template.dir~
14051                rm -rf $tpldir~
14052                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14053                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14054                $RANLIB $oldlib'
14055	      archive_cmds_CXX='tpldir=Template.dir~
14056                rm -rf $tpldir~
14057                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14058                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14059	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14060                rm -rf $tpldir~
14061                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14062                $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'
14063	      ;;
14064	    *) # Version 6 and above use weak symbols
14065	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14066	      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'
14067	      ;;
14068	    esac
14069
14070	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14071	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14072	    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'
14073            ;;
14074	  cxx*)
14075	    # Compaq C++
14076	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14077	    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'
14078
14079	    runpath_var=LD_RUN_PATH
14080	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14081	    hardcode_libdir_separator_CXX=:
14082
14083	    # Commands to make compiler produce verbose output that lists
14084	    # what "hidden" libraries, object files and flags are used when
14085	    # linking a shared library.
14086	    #
14087	    # There doesn't appear to be a way to prevent this compiler from
14088	    # explicitly linking system object files so we need to strip them
14089	    # from the output so that they don't get included in the library
14090	    # dependencies.
14091	    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'
14092	    ;;
14093	  xl* | mpixl* | bgxl*)
14094	    # IBM XL 8.0 on PPC, with GNU ld
14095	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14096	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14097	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14098	    if test yes = "$supports_anon_versioning"; then
14099	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14100                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14101                echo "local: *; };" >> $output_objdir/$libname.ver~
14102                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14103	    fi
14104	    ;;
14105	  *)
14106	    case `$CC -V 2>&1 | sed 5q` in
14107	    *Sun\ C*)
14108	      # Sun C++ 5.9
14109	      no_undefined_flag_CXX=' -zdefs'
14110	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14111	      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'
14112	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14113	      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'
14114	      compiler_needs_object_CXX=yes
14115
14116	      # Not sure whether something based on
14117	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14118	      # would be better.
14119	      output_verbose_link_cmd='func_echo_all'
14120
14121	      # Archives containing C++ object files must be created using
14122	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14123	      # necessary to make sure instantiated templates are included
14124	      # in the archive.
14125	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14126	      ;;
14127	    esac
14128	    ;;
14129	esac
14130	;;
14131
14132      lynxos*)
14133        # FIXME: insert proper C++ library support
14134	ld_shlibs_CXX=no
14135	;;
14136
14137      m88k*)
14138        # FIXME: insert proper C++ library support
14139        ld_shlibs_CXX=no
14140	;;
14141
14142      mvs*)
14143        case $cc_basename in
14144          cxx*)
14145	    # FIXME: insert proper C++ library support
14146	    ld_shlibs_CXX=no
14147	    ;;
14148	  *)
14149	    # FIXME: insert proper C++ library support
14150	    ld_shlibs_CXX=no
14151	    ;;
14152	esac
14153	;;
14154
14155      netbsd*)
14156        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14157	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14158	  wlarc=
14159	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14160	  hardcode_direct_CXX=yes
14161	  hardcode_shlibpath_var_CXX=no
14162	fi
14163	# Workaround some broken pre-1.5 toolchains
14164	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14165	;;
14166
14167      *nto* | *qnx*)
14168        ld_shlibs_CXX=yes
14169	;;
14170
14171      openbsd* | bitrig*)
14172	if test -f /usr/libexec/ld.so; then
14173	  hardcode_direct_CXX=yes
14174	  hardcode_shlibpath_var_CXX=no
14175	  hardcode_direct_absolute_CXX=yes
14176	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14177	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14178	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14179	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14180	    export_dynamic_flag_spec_CXX='$wl-E'
14181	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14182	  fi
14183	  output_verbose_link_cmd=func_echo_all
14184	else
14185	  ld_shlibs_CXX=no
14186	fi
14187	;;
14188
14189      osf3* | osf4* | osf5*)
14190        case $cc_basename in
14191          KCC*)
14192	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14193
14194	    # KCC will only create a shared library if the output file
14195	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14196	    # to its proper name (with version) after linking.
14197	    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'
14198
14199	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14200	    hardcode_libdir_separator_CXX=:
14201
14202	    # Archives containing C++ object files must be created using
14203	    # the KAI C++ compiler.
14204	    case $host in
14205	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14206	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14207	    esac
14208	    ;;
14209          RCC*)
14210	    # Rational C++ 2.4.1
14211	    # FIXME: insert proper C++ library support
14212	    ld_shlibs_CXX=no
14213	    ;;
14214          cxx*)
14215	    case $host in
14216	      osf3*)
14217	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14218	        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'
14219	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14220		;;
14221	      *)
14222	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14223	        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'
14224	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14225                  echo "-hidden">> $lib.exp~
14226                  $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~
14227                  $RM $lib.exp'
14228	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14229		;;
14230	    esac
14231
14232	    hardcode_libdir_separator_CXX=:
14233
14234	    # Commands to make compiler produce verbose output that lists
14235	    # what "hidden" libraries, object files and flags are used when
14236	    # linking a shared library.
14237	    #
14238	    # There doesn't appear to be a way to prevent this compiler from
14239	    # explicitly linking system object files so we need to strip them
14240	    # from the output so that they don't get included in the library
14241	    # dependencies.
14242	    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"'
14243	    ;;
14244	  *)
14245	    if test yes,no = "$GXX,$with_gnu_ld"; then
14246	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14247	      case $host in
14248	        osf3*)
14249	          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'
14250		  ;;
14251	        *)
14252	          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'
14253		  ;;
14254	      esac
14255
14256	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14257	      hardcode_libdir_separator_CXX=:
14258
14259	      # Commands to make compiler produce verbose output that lists
14260	      # what "hidden" libraries, object files and flags are used when
14261	      # linking a shared library.
14262	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14263
14264	    else
14265	      # FIXME: insert proper C++ library support
14266	      ld_shlibs_CXX=no
14267	    fi
14268	    ;;
14269        esac
14270        ;;
14271
14272      psos*)
14273        # FIXME: insert proper C++ library support
14274        ld_shlibs_CXX=no
14275        ;;
14276
14277      sunos4*)
14278        case $cc_basename in
14279          CC*)
14280	    # Sun C++ 4.x
14281	    # FIXME: insert proper C++ library support
14282	    ld_shlibs_CXX=no
14283	    ;;
14284          lcc*)
14285	    # Lucid
14286	    # FIXME: insert proper C++ library support
14287	    ld_shlibs_CXX=no
14288	    ;;
14289          *)
14290	    # FIXME: insert proper C++ library support
14291	    ld_shlibs_CXX=no
14292	    ;;
14293        esac
14294        ;;
14295
14296      solaris*)
14297        case $cc_basename in
14298          CC* | sunCC*)
14299	    # Sun C++ 4.2, 5.x and Centerline C++
14300            archive_cmds_need_lc_CXX=yes
14301	    no_undefined_flag_CXX=' -zdefs'
14302	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14303	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14304              $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'
14305
14306	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14307	    hardcode_shlibpath_var_CXX=no
14308	    case $host_os in
14309	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14310	      *)
14311		# The compiler driver will combine and reorder linker options,
14312		# but understands '-z linker_flag'.
14313	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14314		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14315	        ;;
14316	    esac
14317	    link_all_deplibs_CXX=yes
14318
14319	    output_verbose_link_cmd='func_echo_all'
14320
14321	    # Archives containing C++ object files must be created using
14322	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14323	    # necessary to make sure instantiated templates are included
14324	    # in the archive.
14325	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14326	    ;;
14327          gcx*)
14328	    # Green Hills C++ Compiler
14329	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14330
14331	    # The C++ compiler must be used to create the archive.
14332	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14333	    ;;
14334          *)
14335	    # GNU C++ compiler with Solaris linker
14336	    if test yes,no = "$GXX,$with_gnu_ld"; then
14337	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14338	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14339	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14340	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14341                  $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'
14342
14343	        # Commands to make compiler produce verbose output that lists
14344	        # what "hidden" libraries, object files and flags are used when
14345	        # linking a shared library.
14346	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14347	      else
14348	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14349	        # platform.
14350	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14351	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14352                  $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'
14353
14354	        # Commands to make compiler produce verbose output that lists
14355	        # what "hidden" libraries, object files and flags are used when
14356	        # linking a shared library.
14357	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14358	      fi
14359
14360	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14361	      case $host_os in
14362		solaris2.[0-5] | solaris2.[0-5].*) ;;
14363		*)
14364		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14365		  ;;
14366	      esac
14367	    fi
14368	    ;;
14369        esac
14370        ;;
14371
14372    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14373      no_undefined_flag_CXX='$wl-z,text'
14374      archive_cmds_need_lc_CXX=no
14375      hardcode_shlibpath_var_CXX=no
14376      runpath_var='LD_RUN_PATH'
14377
14378      case $cc_basename in
14379        CC*)
14380	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14381	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382	  ;;
14383	*)
14384	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14385	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14386	  ;;
14387      esac
14388      ;;
14389
14390      sysv5* | sco3.2v5* | sco5v6*)
14391	# Note: We CANNOT use -z defs as we might desire, because we do not
14392	# link with -lc, and that would cause any symbols used from libc to
14393	# always be unresolved, which means just about no library would
14394	# ever link correctly.  If we're not using GNU ld we use -z text
14395	# though, which does catch some bad symbols but isn't as heavy-handed
14396	# as -z defs.
14397	no_undefined_flag_CXX='$wl-z,text'
14398	allow_undefined_flag_CXX='$wl-z,nodefs'
14399	archive_cmds_need_lc_CXX=no
14400	hardcode_shlibpath_var_CXX=no
14401	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14402	hardcode_libdir_separator_CXX=':'
14403	link_all_deplibs_CXX=yes
14404	export_dynamic_flag_spec_CXX='$wl-Bexport'
14405	runpath_var='LD_RUN_PATH'
14406
14407	case $cc_basename in
14408          CC*)
14409	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14410	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14411	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14412              '"$old_archive_cmds_CXX"
14413	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14414              '"$reload_cmds_CXX"
14415	    ;;
14416	  *)
14417	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14418	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14419	    ;;
14420	esac
14421      ;;
14422
14423      tandem*)
14424        case $cc_basename in
14425          NCC*)
14426	    # NonStop-UX NCC 3.20
14427	    # FIXME: insert proper C++ library support
14428	    ld_shlibs_CXX=no
14429	    ;;
14430          *)
14431	    # FIXME: insert proper C++ library support
14432	    ld_shlibs_CXX=no
14433	    ;;
14434        esac
14435        ;;
14436
14437      vxworks*)
14438        # FIXME: insert proper C++ library support
14439        ld_shlibs_CXX=no
14440        ;;
14441
14442      *)
14443        # FIXME: insert proper C++ library support
14444        ld_shlibs_CXX=no
14445        ;;
14446    esac
14447
14448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14449$as_echo "$ld_shlibs_CXX" >&6; }
14450    test no = "$ld_shlibs_CXX" && can_build_shared=no
14451
14452    GCC_CXX=$GXX
14453    LD_CXX=$LD
14454
14455    ## CAVEAT EMPTOR:
14456    ## There is no encapsulation within the following macros, do not change
14457    ## the running order or otherwise move them around unless you know exactly
14458    ## what you are doing...
14459    # Dependencies to place before and after the object being linked:
14460predep_objects_CXX=
14461postdep_objects_CXX=
14462predeps_CXX=
14463postdeps_CXX=
14464compiler_lib_search_path_CXX=
14465
14466cat > conftest.$ac_ext <<_LT_EOF
14467class Foo
14468{
14469public:
14470  Foo (void) { a = 0; }
14471private:
14472  int a;
14473};
14474_LT_EOF
14475
14476
14477_lt_libdeps_save_CFLAGS=$CFLAGS
14478case "$CC $CFLAGS " in #(
14479*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14480*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14481*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14482esac
14483
14484if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14485  (eval $ac_compile) 2>&5
14486  ac_status=$?
14487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488  test $ac_status = 0; }; then
14489  # Parse the compiler output and extract the necessary
14490  # objects, libraries and library flags.
14491
14492  # Sentinel used to keep track of whether or not we are before
14493  # the conftest object file.
14494  pre_test_object_deps_done=no
14495
14496  for p in `eval "$output_verbose_link_cmd"`; do
14497    case $prev$p in
14498
14499    -L* | -R* | -l*)
14500       # Some compilers place space between "-{L,R}" and the path.
14501       # Remove the space.
14502       if test x-L = "$p" ||
14503          test x-R = "$p"; then
14504	 prev=$p
14505	 continue
14506       fi
14507
14508       # Expand the sysroot to ease extracting the directories later.
14509       if test -z "$prev"; then
14510         case $p in
14511         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14512         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14513         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14514         esac
14515       fi
14516       case $p in
14517       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14518       esac
14519       if test no = "$pre_test_object_deps_done"; then
14520	 case $prev in
14521	 -L | -R)
14522	   # Internal compiler library paths should come after those
14523	   # provided the user.  The postdeps already come after the
14524	   # user supplied libs so there is no need to process them.
14525	   if test -z "$compiler_lib_search_path_CXX"; then
14526	     compiler_lib_search_path_CXX=$prev$p
14527	   else
14528	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14529	   fi
14530	   ;;
14531	 # The "-l" case would never come before the object being
14532	 # linked, so don't bother handling this case.
14533	 esac
14534       else
14535	 if test -z "$postdeps_CXX"; then
14536	   postdeps_CXX=$prev$p
14537	 else
14538	   postdeps_CXX="${postdeps_CXX} $prev$p"
14539	 fi
14540       fi
14541       prev=
14542       ;;
14543
14544    *.lto.$objext) ;; # Ignore GCC LTO objects
14545    *.$objext)
14546       # This assumes that the test object file only shows up
14547       # once in the compiler output.
14548       if test "$p" = "conftest.$objext"; then
14549	 pre_test_object_deps_done=yes
14550	 continue
14551       fi
14552
14553       if test no = "$pre_test_object_deps_done"; then
14554	 if test -z "$predep_objects_CXX"; then
14555	   predep_objects_CXX=$p
14556	 else
14557	   predep_objects_CXX="$predep_objects_CXX $p"
14558	 fi
14559       else
14560	 if test -z "$postdep_objects_CXX"; then
14561	   postdep_objects_CXX=$p
14562	 else
14563	   postdep_objects_CXX="$postdep_objects_CXX $p"
14564	 fi
14565       fi
14566       ;;
14567
14568    *) ;; # Ignore the rest.
14569
14570    esac
14571  done
14572
14573  # Clean up.
14574  rm -f a.out a.exe
14575else
14576  echo "libtool.m4: error: problem compiling CXX test program"
14577fi
14578
14579$RM -f confest.$objext
14580CFLAGS=$_lt_libdeps_save_CFLAGS
14581
14582# PORTME: override above test on systems where it is broken
14583case $host_os in
14584interix[3-9]*)
14585  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14586  # hack all around it, let's just trust "g++" to DTRT.
14587  predep_objects_CXX=
14588  postdep_objects_CXX=
14589  postdeps_CXX=
14590  ;;
14591
14592linux*)
14593  case `$CC -V 2>&1 | sed 5q` in
14594  *Sun\ C*)
14595    # Sun C++ 5.9
14596
14597    # The more standards-conforming stlport4 library is
14598    # incompatible with the Cstd library. Avoid specifying
14599    # it if it's in CXXFLAGS. Ignore libCrun as
14600    # -library=stlport4 depends on it.
14601    case " $CXX $CXXFLAGS " in
14602    *" -library=stlport4 "*)
14603      solaris_use_stlport4=yes
14604      ;;
14605    esac
14606
14607    if test yes != "$solaris_use_stlport4"; then
14608      postdeps_CXX='-library=Cstd -library=Crun'
14609    fi
14610    ;;
14611  esac
14612  ;;
14613
14614solaris*)
14615  case $cc_basename in
14616  CC* | sunCC*)
14617    # The more standards-conforming stlport4 library is
14618    # incompatible with the Cstd library. Avoid specifying
14619    # it if it's in CXXFLAGS. Ignore libCrun as
14620    # -library=stlport4 depends on it.
14621    case " $CXX $CXXFLAGS " in
14622    *" -library=stlport4 "*)
14623      solaris_use_stlport4=yes
14624      ;;
14625    esac
14626
14627    # Adding this requires a known-good setup of shared libraries for
14628    # Sun compiler versions before 5.6, else PIC objects from an old
14629    # archive will be linked into the output, leading to subtle bugs.
14630    if test yes != "$solaris_use_stlport4"; then
14631      postdeps_CXX='-library=Cstd -library=Crun'
14632    fi
14633    ;;
14634  esac
14635  ;;
14636esac
14637
14638
14639case " $postdeps_CXX " in
14640*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14641esac
14642 compiler_lib_search_dirs_CXX=
14643if test -n "${compiler_lib_search_path_CXX}"; then
14644 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14645fi
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677    lt_prog_compiler_wl_CXX=
14678lt_prog_compiler_pic_CXX=
14679lt_prog_compiler_static_CXX=
14680
14681
14682  # C++ specific cases for pic, static, wl, etc.
14683  if test yes = "$GXX"; then
14684    lt_prog_compiler_wl_CXX='-Wl,'
14685    lt_prog_compiler_static_CXX='-static'
14686
14687    case $host_os in
14688    aix*)
14689      # All AIX code is PIC.
14690      if test ia64 = "$host_cpu"; then
14691	# AIX 5 now supports IA64 processor
14692	lt_prog_compiler_static_CXX='-Bstatic'
14693      fi
14694      lt_prog_compiler_pic_CXX='-fPIC'
14695      ;;
14696
14697    amigaos*)
14698      case $host_cpu in
14699      powerpc)
14700            # see comment about AmigaOS4 .so support
14701            lt_prog_compiler_pic_CXX='-fPIC'
14702        ;;
14703      m68k)
14704            # FIXME: we need at least 68020 code to build shared libraries, but
14705            # adding the '-m68020' flag to GCC prevents building anything better,
14706            # like '-m68040'.
14707            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14708        ;;
14709      esac
14710      ;;
14711
14712    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14713      # PIC is the default for these OSes.
14714      ;;
14715    mingw* | cygwin* | os2* | pw32* | cegcc*)
14716      # This hack is so that the source file can tell whether it is being
14717      # built for inclusion in a dll (and should export symbols for example).
14718      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14719      # (--disable-auto-import) libraries
14720      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14721      ;;
14722    darwin* | rhapsody*)
14723      # PIC is the default on this platform
14724      # Common symbols not allowed in MH_DYLIB files
14725      lt_prog_compiler_pic_CXX='-fno-common'
14726      ;;
14727    *djgpp*)
14728      # DJGPP does not support shared libraries at all
14729      lt_prog_compiler_pic_CXX=
14730      ;;
14731    haiku*)
14732      # PIC is the default for Haiku.
14733      # The "-static" flag exists, but is broken.
14734      lt_prog_compiler_static_CXX=
14735      ;;
14736    interix[3-9]*)
14737      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14738      # Instead, we relocate shared libraries at runtime.
14739      ;;
14740    sysv4*MP*)
14741      if test -d /usr/nec; then
14742	lt_prog_compiler_pic_CXX=-Kconform_pic
14743      fi
14744      ;;
14745    hpux*)
14746      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14747      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14748      # sets the default TLS model and affects inlining.
14749      case $host_cpu in
14750      hppa*64*)
14751	;;
14752      *)
14753	lt_prog_compiler_pic_CXX='-fPIC'
14754	;;
14755      esac
14756      ;;
14757    *qnx* | *nto*)
14758      # QNX uses GNU C++, but need to define -shared option too, otherwise
14759      # it will coredump.
14760      lt_prog_compiler_pic_CXX='-fPIC -shared'
14761      ;;
14762    *)
14763      lt_prog_compiler_pic_CXX='-fPIC'
14764      ;;
14765    esac
14766  else
14767    case $host_os in
14768      aix[4-9]*)
14769	# All AIX code is PIC.
14770	if test ia64 = "$host_cpu"; then
14771	  # AIX 5 now supports IA64 processor
14772	  lt_prog_compiler_static_CXX='-Bstatic'
14773	else
14774	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14775	fi
14776	;;
14777      chorus*)
14778	case $cc_basename in
14779	cxch68*)
14780	  # Green Hills C++ Compiler
14781	  # _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"
14782	  ;;
14783	esac
14784	;;
14785      mingw* | cygwin* | os2* | pw32* | cegcc*)
14786	# This hack is so that the source file can tell whether it is being
14787	# built for inclusion in a dll (and should export symbols for example).
14788	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14789	;;
14790      dgux*)
14791	case $cc_basename in
14792	  ec++*)
14793	    lt_prog_compiler_pic_CXX='-KPIC'
14794	    ;;
14795	  ghcx*)
14796	    # Green Hills C++ Compiler
14797	    lt_prog_compiler_pic_CXX='-pic'
14798	    ;;
14799	  *)
14800	    ;;
14801	esac
14802	;;
14803      freebsd* | dragonfly*)
14804	# FreeBSD uses GNU C++
14805	;;
14806      hpux9* | hpux10* | hpux11*)
14807	case $cc_basename in
14808	  CC*)
14809	    lt_prog_compiler_wl_CXX='-Wl,'
14810	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14811	    if test ia64 != "$host_cpu"; then
14812	      lt_prog_compiler_pic_CXX='+Z'
14813	    fi
14814	    ;;
14815	  aCC*)
14816	    lt_prog_compiler_wl_CXX='-Wl,'
14817	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14818	    case $host_cpu in
14819	    hppa*64*|ia64*)
14820	      # +Z the default
14821	      ;;
14822	    *)
14823	      lt_prog_compiler_pic_CXX='+Z'
14824	      ;;
14825	    esac
14826	    ;;
14827	  *)
14828	    ;;
14829	esac
14830	;;
14831      interix*)
14832	# This is c89, which is MS Visual C++ (no shared libs)
14833	# Anyone wants to do a port?
14834	;;
14835      irix5* | irix6* | nonstopux*)
14836	case $cc_basename in
14837	  CC*)
14838	    lt_prog_compiler_wl_CXX='-Wl,'
14839	    lt_prog_compiler_static_CXX='-non_shared'
14840	    # CC pic flag -KPIC is the default.
14841	    ;;
14842	  *)
14843	    ;;
14844	esac
14845	;;
14846      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14847	case $cc_basename in
14848	  KCC*)
14849	    # KAI C++ Compiler
14850	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14851	    lt_prog_compiler_pic_CXX='-fPIC'
14852	    ;;
14853	  ecpc* )
14854	    # old Intel C++ for x86_64, which still supported -KPIC.
14855	    lt_prog_compiler_wl_CXX='-Wl,'
14856	    lt_prog_compiler_pic_CXX='-KPIC'
14857	    lt_prog_compiler_static_CXX='-static'
14858	    ;;
14859	  icpc* )
14860	    # Intel C++, used to be incompatible with GCC.
14861	    # ICC 10 doesn't accept -KPIC any more.
14862	    lt_prog_compiler_wl_CXX='-Wl,'
14863	    lt_prog_compiler_pic_CXX='-fPIC'
14864	    lt_prog_compiler_static_CXX='-static'
14865	    ;;
14866	  pgCC* | pgcpp*)
14867	    # Portland Group C++ compiler
14868	    lt_prog_compiler_wl_CXX='-Wl,'
14869	    lt_prog_compiler_pic_CXX='-fpic'
14870	    lt_prog_compiler_static_CXX='-Bstatic'
14871	    ;;
14872	  cxx*)
14873	    # Compaq C++
14874	    # Make sure the PIC flag is empty.  It appears that all Alpha
14875	    # Linux and Compaq Tru64 Unix objects are PIC.
14876	    lt_prog_compiler_pic_CXX=
14877	    lt_prog_compiler_static_CXX='-non_shared'
14878	    ;;
14879	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14880	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14881	    lt_prog_compiler_wl_CXX='-Wl,'
14882	    lt_prog_compiler_pic_CXX='-qpic'
14883	    lt_prog_compiler_static_CXX='-qstaticlink'
14884	    ;;
14885	  *)
14886	    case `$CC -V 2>&1 | sed 5q` in
14887	    *Sun\ C*)
14888	      # Sun C++ 5.9
14889	      lt_prog_compiler_pic_CXX='-KPIC'
14890	      lt_prog_compiler_static_CXX='-Bstatic'
14891	      lt_prog_compiler_wl_CXX='-Qoption ld '
14892	      ;;
14893	    esac
14894	    ;;
14895	esac
14896	;;
14897      lynxos*)
14898	;;
14899      m88k*)
14900	;;
14901      mvs*)
14902	case $cc_basename in
14903	  cxx*)
14904	    lt_prog_compiler_pic_CXX='-W c,exportall'
14905	    ;;
14906	  *)
14907	    ;;
14908	esac
14909	;;
14910      netbsd*)
14911	;;
14912      *qnx* | *nto*)
14913        # QNX uses GNU C++, but need to define -shared option too, otherwise
14914        # it will coredump.
14915        lt_prog_compiler_pic_CXX='-fPIC -shared'
14916        ;;
14917      osf3* | osf4* | osf5*)
14918	case $cc_basename in
14919	  KCC*)
14920	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14921	    ;;
14922	  RCC*)
14923	    # Rational C++ 2.4.1
14924	    lt_prog_compiler_pic_CXX='-pic'
14925	    ;;
14926	  cxx*)
14927	    # Digital/Compaq C++
14928	    lt_prog_compiler_wl_CXX='-Wl,'
14929	    # Make sure the PIC flag is empty.  It appears that all Alpha
14930	    # Linux and Compaq Tru64 Unix objects are PIC.
14931	    lt_prog_compiler_pic_CXX=
14932	    lt_prog_compiler_static_CXX='-non_shared'
14933	    ;;
14934	  *)
14935	    ;;
14936	esac
14937	;;
14938      psos*)
14939	;;
14940      solaris*)
14941	case $cc_basename in
14942	  CC* | sunCC*)
14943	    # Sun C++ 4.2, 5.x and Centerline C++
14944	    lt_prog_compiler_pic_CXX='-KPIC'
14945	    lt_prog_compiler_static_CXX='-Bstatic'
14946	    lt_prog_compiler_wl_CXX='-Qoption ld '
14947	    ;;
14948	  gcx*)
14949	    # Green Hills C++ Compiler
14950	    lt_prog_compiler_pic_CXX='-PIC'
14951	    ;;
14952	  *)
14953	    ;;
14954	esac
14955	;;
14956      sunos4*)
14957	case $cc_basename in
14958	  CC*)
14959	    # Sun C++ 4.x
14960	    lt_prog_compiler_pic_CXX='-pic'
14961	    lt_prog_compiler_static_CXX='-Bstatic'
14962	    ;;
14963	  lcc*)
14964	    # Lucid
14965	    lt_prog_compiler_pic_CXX='-pic'
14966	    ;;
14967	  *)
14968	    ;;
14969	esac
14970	;;
14971      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14972	case $cc_basename in
14973	  CC*)
14974	    lt_prog_compiler_wl_CXX='-Wl,'
14975	    lt_prog_compiler_pic_CXX='-KPIC'
14976	    lt_prog_compiler_static_CXX='-Bstatic'
14977	    ;;
14978	esac
14979	;;
14980      tandem*)
14981	case $cc_basename in
14982	  NCC*)
14983	    # NonStop-UX NCC 3.20
14984	    lt_prog_compiler_pic_CXX='-KPIC'
14985	    ;;
14986	  *)
14987	    ;;
14988	esac
14989	;;
14990      vxworks*)
14991	;;
14992      *)
14993	lt_prog_compiler_can_build_shared_CXX=no
14994	;;
14995    esac
14996  fi
14997
14998case $host_os in
14999  # For platforms that do not support PIC, -DPIC is meaningless:
15000  *djgpp*)
15001    lt_prog_compiler_pic_CXX=
15002    ;;
15003  *)
15004    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15005    ;;
15006esac
15007
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15009$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15010if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15011  $as_echo_n "(cached) " >&6
15012else
15013  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15014fi
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15016$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15017lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15018
15019#
15020# Check to make sure the PIC flag actually works.
15021#
15022if test -n "$lt_prog_compiler_pic_CXX"; then
15023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15024$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15025if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028  lt_cv_prog_compiler_pic_works_CXX=no
15029   ac_outfile=conftest.$ac_objext
15030   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15031   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15032   # Insert the option either (1) after the last *FLAGS variable, or
15033   # (2) before a word containing "conftest.", or (3) at the end.
15034   # Note that $ac_compile itself does not contain backslashes and begins
15035   # with a dollar sign (not a hyphen), so the echo should work correctly.
15036   # The option is referenced via a variable to avoid confusing sed.
15037   lt_compile=`echo "$ac_compile" | $SED \
15038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040   -e 's:$: $lt_compiler_flag:'`
15041   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15042   (eval "$lt_compile" 2>conftest.err)
15043   ac_status=$?
15044   cat conftest.err >&5
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   if (exit $ac_status) && test -s "$ac_outfile"; then
15047     # The compiler can only warn and ignore the option if not recognized
15048     # So say no if there are warnings other than the usual output.
15049     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15050     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15051     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15052       lt_cv_prog_compiler_pic_works_CXX=yes
15053     fi
15054   fi
15055   $RM conftest*
15056
15057fi
15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15059$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15060
15061if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15062    case $lt_prog_compiler_pic_CXX in
15063     "" | " "*) ;;
15064     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15065     esac
15066else
15067    lt_prog_compiler_pic_CXX=
15068     lt_prog_compiler_can_build_shared_CXX=no
15069fi
15070
15071fi
15072
15073
15074
15075
15076
15077#
15078# Check to make sure the static flag actually works.
15079#
15080wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15082$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15083if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15084  $as_echo_n "(cached) " >&6
15085else
15086  lt_cv_prog_compiler_static_works_CXX=no
15087   save_LDFLAGS=$LDFLAGS
15088   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15089   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15090   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15091     # The linker can only warn and ignore the option if not recognized
15092     # So say no if there are warnings
15093     if test -s conftest.err; then
15094       # Append any errors to the config.log.
15095       cat conftest.err 1>&5
15096       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15097       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15098       if diff conftest.exp conftest.er2 >/dev/null; then
15099         lt_cv_prog_compiler_static_works_CXX=yes
15100       fi
15101     else
15102       lt_cv_prog_compiler_static_works_CXX=yes
15103     fi
15104   fi
15105   $RM -r conftest*
15106   LDFLAGS=$save_LDFLAGS
15107
15108fi
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15110$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15111
15112if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15113    :
15114else
15115    lt_prog_compiler_static_CXX=
15116fi
15117
15118
15119
15120
15121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15122$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15123if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15124  $as_echo_n "(cached) " >&6
15125else
15126  lt_cv_prog_compiler_c_o_CXX=no
15127   $RM -r conftest 2>/dev/null
15128   mkdir conftest
15129   cd conftest
15130   mkdir out
15131   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15132
15133   lt_compiler_flag="-o out/conftest2.$ac_objext"
15134   # Insert the option either (1) after the last *FLAGS variable, or
15135   # (2) before a word containing "conftest.", or (3) at the end.
15136   # Note that $ac_compile itself does not contain backslashes and begins
15137   # with a dollar sign (not a hyphen), so the echo should work correctly.
15138   lt_compile=`echo "$ac_compile" | $SED \
15139   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15141   -e 's:$: $lt_compiler_flag:'`
15142   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15143   (eval "$lt_compile" 2>out/conftest.err)
15144   ac_status=$?
15145   cat out/conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15148   then
15149     # The compiler can only warn and ignore the option if not recognized
15150     # So say no if there are warnings
15151     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15152     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15153     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15154       lt_cv_prog_compiler_c_o_CXX=yes
15155     fi
15156   fi
15157   chmod u+w . 2>&5
15158   $RM conftest*
15159   # SGI C++ compiler will create directory out/ii_files/ for
15160   # template instantiation
15161   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15162   $RM out/* && rmdir out
15163   cd ..
15164   $RM -r conftest
15165   $RM conftest*
15166
15167fi
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15169$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15170
15171
15172
15173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15175if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  lt_cv_prog_compiler_c_o_CXX=no
15179   $RM -r conftest 2>/dev/null
15180   mkdir conftest
15181   cd conftest
15182   mkdir out
15183   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184
15185   lt_compiler_flag="-o out/conftest2.$ac_objext"
15186   # Insert the option either (1) after the last *FLAGS variable, or
15187   # (2) before a word containing "conftest.", or (3) at the end.
15188   # Note that $ac_compile itself does not contain backslashes and begins
15189   # with a dollar sign (not a hyphen), so the echo should work correctly.
15190   lt_compile=`echo "$ac_compile" | $SED \
15191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15193   -e 's:$: $lt_compiler_flag:'`
15194   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15195   (eval "$lt_compile" 2>out/conftest.err)
15196   ac_status=$?
15197   cat out/conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15200   then
15201     # The compiler can only warn and ignore the option if not recognized
15202     # So say no if there are warnings
15203     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15204     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15205     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15206       lt_cv_prog_compiler_c_o_CXX=yes
15207     fi
15208   fi
15209   chmod u+w . 2>&5
15210   $RM conftest*
15211   # SGI C++ compiler will create directory out/ii_files/ for
15212   # template instantiation
15213   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15214   $RM out/* && rmdir out
15215   cd ..
15216   $RM -r conftest
15217   $RM conftest*
15218
15219fi
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15221$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15222
15223
15224
15225
15226hard_links=nottested
15227if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15228  # do not overwrite the value of need_locks provided by the user
15229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15230$as_echo_n "checking if we can lock with hard links... " >&6; }
15231  hard_links=yes
15232  $RM conftest*
15233  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15234  touch conftest.a
15235  ln conftest.a conftest.b 2>&5 || hard_links=no
15236  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15238$as_echo "$hard_links" >&6; }
15239  if test no = "$hard_links"; then
15240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15241$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15242    need_locks=warn
15243  fi
15244else
15245  need_locks=no
15246fi
15247
15248
15249
15250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15252
15253  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15254  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15255  case $host_os in
15256  aix[4-9]*)
15257    # If we're using GNU nm, then we don't want the "-C" option.
15258    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15259    # Also, AIX nm treats weak defined symbols like other global defined
15260    # symbols, whereas GNU nm marks them as "W".
15261    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15262      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15263    else
15264      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15265    fi
15266    ;;
15267  pw32*)
15268    export_symbols_cmds_CXX=$ltdll_cmds
15269    ;;
15270  cygwin* | mingw* | cegcc*)
15271    case $cc_basename in
15272    cl*)
15273      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15274      ;;
15275    *)
15276      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'
15277      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15278      ;;
15279    esac
15280    ;;
15281  *)
15282    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15283    ;;
15284  esac
15285
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15287$as_echo "$ld_shlibs_CXX" >&6; }
15288test no = "$ld_shlibs_CXX" && can_build_shared=no
15289
15290with_gnu_ld_CXX=$with_gnu_ld
15291
15292
15293
15294
15295
15296
15297#
15298# Do we need to explicitly link libc?
15299#
15300case "x$archive_cmds_need_lc_CXX" in
15301x|xyes)
15302  # Assume -lc should be added
15303  archive_cmds_need_lc_CXX=yes
15304
15305  if test yes,yes = "$GCC,$enable_shared"; then
15306    case $archive_cmds_CXX in
15307    *'~'*)
15308      # FIXME: we may have to deal with multi-command sequences.
15309      ;;
15310    '$CC '*)
15311      # Test whether the compiler implicitly links with -lc since on some
15312      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15313      # to ld, don't add -lc before -lgcc.
15314      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15315$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15316if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15317  $as_echo_n "(cached) " >&6
15318else
15319  $RM conftest*
15320	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15321
15322	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15323  (eval $ac_compile) 2>&5
15324  ac_status=$?
15325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326  test $ac_status = 0; } 2>conftest.err; then
15327	  soname=conftest
15328	  lib=conftest
15329	  libobjs=conftest.$ac_objext
15330	  deplibs=
15331	  wl=$lt_prog_compiler_wl_CXX
15332	  pic_flag=$lt_prog_compiler_pic_CXX
15333	  compiler_flags=-v
15334	  linker_flags=-v
15335	  verstring=
15336	  output_objdir=.
15337	  libname=conftest
15338	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15339	  allow_undefined_flag_CXX=
15340	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15341  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15342  ac_status=$?
15343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15344  test $ac_status = 0; }
15345	  then
15346	    lt_cv_archive_cmds_need_lc_CXX=no
15347	  else
15348	    lt_cv_archive_cmds_need_lc_CXX=yes
15349	  fi
15350	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15351	else
15352	  cat conftest.err 1>&5
15353	fi
15354	$RM conftest*
15355
15356fi
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15358$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15359      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15360      ;;
15361    esac
15362  fi
15363  ;;
15364esac
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15428$as_echo_n "checking dynamic linker characteristics... " >&6; }
15429
15430library_names_spec=
15431libname_spec='lib$name'
15432soname_spec=
15433shrext_cmds=.so
15434postinstall_cmds=
15435postuninstall_cmds=
15436finish_cmds=
15437finish_eval=
15438shlibpath_var=
15439shlibpath_overrides_runpath=unknown
15440version_type=none
15441dynamic_linker="$host_os ld.so"
15442sys_lib_dlsearch_path_spec="/lib /usr/lib"
15443need_lib_prefix=unknown
15444hardcode_into_libs=no
15445
15446# when you set need_version to no, make sure it does not cause -set_version
15447# flags to be left without arguments
15448need_version=unknown
15449
15450case $host_os in
15451aix3*)
15452  version_type=linux # correct to gnu/linux during the next big refactor
15453  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15454  shlibpath_var=LIBPATH
15455
15456  # AIX 3 has no versioning support, so we append a major version to the name.
15457  soname_spec='$libname$release$shared_ext$major'
15458  ;;
15459
15460aix[4-9]*)
15461  version_type=linux # correct to gnu/linux during the next big refactor
15462  need_lib_prefix=no
15463  need_version=no
15464  hardcode_into_libs=yes
15465  if test ia64 = "$host_cpu"; then
15466    # AIX 5 supports IA64
15467    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15468    shlibpath_var=LD_LIBRARY_PATH
15469  else
15470    # With GCC up to 2.95.x, collect2 would create an import file
15471    # for dependence libraries.  The import file would start with
15472    # the line '#! .'.  This would cause the generated library to
15473    # depend on '.', always an invalid library.  This was fixed in
15474    # development snapshots of GCC prior to 3.0.
15475    case $host_os in
15476      aix4 | aix4.[01] | aix4.[01].*)
15477      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15478	   echo ' yes '
15479	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15480	:
15481      else
15482	can_build_shared=no
15483      fi
15484      ;;
15485    esac
15486    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15487    # soname into executable. Probably we can add versioning support to
15488    # collect2, so additional links can be useful in future.
15489    if test yes = "$aix_use_runtimelinking"; then
15490      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15491      # instead of lib<name>.a to let people know that these are not
15492      # typical AIX shared libraries.
15493      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15494    else
15495      # We preserve .a as extension for shared libraries through AIX4.2
15496      # and later when we are not doing run time linking.
15497      library_names_spec='$libname$release.a $libname.a'
15498      soname_spec='$libname$release$shared_ext$major'
15499    fi
15500    shlibpath_var=LIBPATH
15501  fi
15502  ;;
15503
15504amigaos*)
15505  case $host_cpu in
15506  powerpc)
15507    # Since July 2007 AmigaOS4 officially supports .so libraries.
15508    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15509    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15510    ;;
15511  m68k)
15512    library_names_spec='$libname.ixlibrary $libname.a'
15513    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15514    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'
15515    ;;
15516  esac
15517  ;;
15518
15519beos*)
15520  library_names_spec='$libname$shared_ext'
15521  dynamic_linker="$host_os ld.so"
15522  shlibpath_var=LIBRARY_PATH
15523  ;;
15524
15525bsdi[45]*)
15526  version_type=linux # correct to gnu/linux during the next big refactor
15527  need_version=no
15528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15529  soname_spec='$libname$release$shared_ext$major'
15530  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15531  shlibpath_var=LD_LIBRARY_PATH
15532  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15533  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15534  # the default ld.so.conf also contains /usr/contrib/lib and
15535  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15536  # libtool to hard-code these into programs
15537  ;;
15538
15539cygwin* | mingw* | pw32* | cegcc*)
15540  version_type=windows
15541  shrext_cmds=.dll
15542  need_version=no
15543  need_lib_prefix=no
15544
15545  case $GCC,$cc_basename in
15546  yes,*)
15547    # gcc
15548    library_names_spec='$libname.dll.a'
15549    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15550    postinstall_cmds='base_file=`basename \$file`~
15551      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15552      dldir=$destdir/`dirname \$dlpath`~
15553      test -d \$dldir || mkdir -p \$dldir~
15554      $install_prog $dir/$dlname \$dldir/$dlname~
15555      chmod a+x \$dldir/$dlname~
15556      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15557        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15558      fi'
15559    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15560      dlpath=$dir/\$dldll~
15561       $RM \$dlpath'
15562    shlibpath_overrides_runpath=yes
15563
15564    case $host_os in
15565    cygwin*)
15566      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15567      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15568
15569      ;;
15570    mingw* | cegcc*)
15571      # MinGW DLLs use traditional 'lib' prefix
15572      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15573      ;;
15574    pw32*)
15575      # pw32 DLLs use 'pw' prefix rather than 'lib'
15576      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15577      ;;
15578    esac
15579    dynamic_linker='Win32 ld.exe'
15580    ;;
15581
15582  *,cl*)
15583    # Native MSVC
15584    libname_spec='$name'
15585    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15586    library_names_spec='$libname.dll.lib'
15587
15588    case $build_os in
15589    mingw*)
15590      sys_lib_search_path_spec=
15591      lt_save_ifs=$IFS
15592      IFS=';'
15593      for lt_path in $LIB
15594      do
15595        IFS=$lt_save_ifs
15596        # Let DOS variable expansion print the short 8.3 style file name.
15597        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15598        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15599      done
15600      IFS=$lt_save_ifs
15601      # Convert to MSYS style.
15602      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15603      ;;
15604    cygwin*)
15605      # Convert to unix form, then to dos form, then back to unix form
15606      # but this time dos style (no spaces!) so that the unix form looks
15607      # like /cygdrive/c/PROGRA~1:/cygdr...
15608      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15609      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15610      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15611      ;;
15612    *)
15613      sys_lib_search_path_spec=$LIB
15614      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15615        # It is most probably a Windows format PATH.
15616        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15617      else
15618        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15619      fi
15620      # FIXME: find the short name or the path components, as spaces are
15621      # common. (e.g. "Program Files" -> "PROGRA~1")
15622      ;;
15623    esac
15624
15625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15626    postinstall_cmds='base_file=`basename \$file`~
15627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15628      dldir=$destdir/`dirname \$dlpath`~
15629      test -d \$dldir || mkdir -p \$dldir~
15630      $install_prog $dir/$dlname \$dldir/$dlname'
15631    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15632      dlpath=$dir/\$dldll~
15633       $RM \$dlpath'
15634    shlibpath_overrides_runpath=yes
15635    dynamic_linker='Win32 link.exe'
15636    ;;
15637
15638  *)
15639    # Assume MSVC wrapper
15640    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15641    dynamic_linker='Win32 ld.exe'
15642    ;;
15643  esac
15644  # FIXME: first we should search . and the directory the executable is in
15645  shlibpath_var=PATH
15646  ;;
15647
15648darwin* | rhapsody*)
15649  dynamic_linker="$host_os dyld"
15650  version_type=darwin
15651  need_lib_prefix=no
15652  need_version=no
15653  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15654  soname_spec='$libname$release$major$shared_ext'
15655  shlibpath_overrides_runpath=yes
15656  shlibpath_var=DYLD_LIBRARY_PATH
15657  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15658
15659  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15660  ;;
15661
15662dgux*)
15663  version_type=linux # correct to gnu/linux during the next big refactor
15664  need_lib_prefix=no
15665  need_version=no
15666  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15667  soname_spec='$libname$release$shared_ext$major'
15668  shlibpath_var=LD_LIBRARY_PATH
15669  ;;
15670
15671freebsd* | dragonfly*)
15672  # DragonFly does not have aout.  When/if they implement a new
15673  # versioning mechanism, adjust this.
15674  if test -x /usr/bin/objformat; then
15675    objformat=`/usr/bin/objformat`
15676  else
15677    case $host_os in
15678    freebsd[23].*) objformat=aout ;;
15679    *) objformat=elf ;;
15680    esac
15681  fi
15682  version_type=freebsd-$objformat
15683  case $version_type in
15684    freebsd-elf*)
15685      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15686      need_version=no
15687      need_lib_prefix=no
15688      ;;
15689    freebsd-*)
15690      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15691      need_version=yes
15692      ;;
15693  esac
15694  shlibpath_var=LD_LIBRARY_PATH
15695  case $host_os in
15696  freebsd2.*)
15697    shlibpath_overrides_runpath=yes
15698    ;;
15699  freebsd3.[01]* | freebsdelf3.[01]*)
15700    shlibpath_overrides_runpath=yes
15701    hardcode_into_libs=yes
15702    ;;
15703  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15704  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15705    shlibpath_overrides_runpath=no
15706    hardcode_into_libs=yes
15707    ;;
15708  *) # from 4.6 on, and DragonFly
15709    shlibpath_overrides_runpath=yes
15710    hardcode_into_libs=yes
15711    ;;
15712  esac
15713  ;;
15714
15715haiku*)
15716  version_type=linux # correct to gnu/linux during the next big refactor
15717  need_lib_prefix=no
15718  need_version=no
15719  dynamic_linker="$host_os runtime_loader"
15720  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15721  soname_spec='$libname$release$shared_ext$major'
15722  shlibpath_var=LIBRARY_PATH
15723  shlibpath_overrides_runpath=no
15724  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15725  hardcode_into_libs=yes
15726  ;;
15727
15728hpux9* | hpux10* | hpux11*)
15729  # Give a soname corresponding to the major version so that dld.sl refuses to
15730  # link against other versions.
15731  version_type=sunos
15732  need_lib_prefix=no
15733  need_version=no
15734  case $host_cpu in
15735  ia64*)
15736    shrext_cmds='.so'
15737    hardcode_into_libs=yes
15738    dynamic_linker="$host_os dld.so"
15739    shlibpath_var=LD_LIBRARY_PATH
15740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15741    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15742    soname_spec='$libname$release$shared_ext$major'
15743    if test 32 = "$HPUX_IA64_MODE"; then
15744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15745    else
15746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15747    fi
15748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15749    ;;
15750  hppa*64*)
15751    shrext_cmds='.sl'
15752    hardcode_into_libs=yes
15753    dynamic_linker="$host_os dld.sl"
15754    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15756    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15757    soname_spec='$libname$release$shared_ext$major'
15758    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15760    ;;
15761  *)
15762    shrext_cmds='.sl'
15763    dynamic_linker="$host_os dld.sl"
15764    shlibpath_var=SHLIB_PATH
15765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15766    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15767    soname_spec='$libname$release$shared_ext$major'
15768    ;;
15769  esac
15770  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15771  postinstall_cmds='chmod 555 $lib'
15772  # or fails outright, so override atomically:
15773  install_override_mode=555
15774  ;;
15775
15776interix[3-9]*)
15777  version_type=linux # correct to gnu/linux during the next big refactor
15778  need_lib_prefix=no
15779  need_version=no
15780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15781  soname_spec='$libname$release$shared_ext$major'
15782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15783  shlibpath_var=LD_LIBRARY_PATH
15784  shlibpath_overrides_runpath=no
15785  hardcode_into_libs=yes
15786  ;;
15787
15788irix5* | irix6* | nonstopux*)
15789  case $host_os in
15790    nonstopux*) version_type=nonstopux ;;
15791    *)
15792	if test yes = "$lt_cv_prog_gnu_ld"; then
15793		version_type=linux # correct to gnu/linux during the next big refactor
15794	else
15795		version_type=irix
15796	fi ;;
15797  esac
15798  need_lib_prefix=no
15799  need_version=no
15800  soname_spec='$libname$release$shared_ext$major'
15801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15802  case $host_os in
15803  irix5* | nonstopux*)
15804    libsuff= shlibsuff=
15805    ;;
15806  *)
15807    case $LD in # libtool.m4 will add one of these switches to LD
15808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15809      libsuff= shlibsuff= libmagic=32-bit;;
15810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15811      libsuff=32 shlibsuff=N32 libmagic=N32;;
15812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15814    *) libsuff= shlibsuff= libmagic=never-match;;
15815    esac
15816    ;;
15817  esac
15818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15819  shlibpath_overrides_runpath=no
15820  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15821  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15822  hardcode_into_libs=yes
15823  ;;
15824
15825# No shared lib support for Linux oldld, aout, or coff.
15826linux*oldld* | linux*aout* | linux*coff*)
15827  dynamic_linker=no
15828  ;;
15829
15830linux*android*)
15831  version_type=none # Android doesn't support versioned libraries.
15832  need_lib_prefix=no
15833  need_version=no
15834  library_names_spec='$libname$release$shared_ext'
15835  soname_spec='$libname$release$shared_ext'
15836  finish_cmds=
15837  shlibpath_var=LD_LIBRARY_PATH
15838  shlibpath_overrides_runpath=yes
15839
15840  # This implies no fast_install, which is unacceptable.
15841  # Some rework will be needed to allow for fast_install
15842  # before this can be enabled.
15843  hardcode_into_libs=yes
15844
15845  dynamic_linker='Android linker'
15846  # Don't embed -rpath directories since the linker doesn't support them.
15847  hardcode_libdir_flag_spec_CXX='-L$libdir'
15848  ;;
15849
15850# This must be glibc/ELF.
15851linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15852  version_type=linux # correct to gnu/linux during the next big refactor
15853  need_lib_prefix=no
15854  need_version=no
15855  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15856  soname_spec='$libname$release$shared_ext$major'
15857  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15858  shlibpath_var=LD_LIBRARY_PATH
15859  shlibpath_overrides_runpath=no
15860
15861  # Some binutils ld are patched to set DT_RUNPATH
15862  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15863  $as_echo_n "(cached) " >&6
15864else
15865  lt_cv_shlibpath_overrides_runpath=no
15866    save_LDFLAGS=$LDFLAGS
15867    save_libdir=$libdir
15868    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15869	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871/* end confdefs.h.  */
15872
15873int
15874main ()
15875{
15876
15877  ;
15878  return 0;
15879}
15880_ACEOF
15881if ac_fn_cxx_try_link "$LINENO"; then :
15882  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15883  lt_cv_shlibpath_overrides_runpath=yes
15884fi
15885fi
15886rm -f core conftest.err conftest.$ac_objext \
15887    conftest$ac_exeext conftest.$ac_ext
15888    LDFLAGS=$save_LDFLAGS
15889    libdir=$save_libdir
15890
15891fi
15892
15893  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15894
15895  # This implies no fast_install, which is unacceptable.
15896  # Some rework will be needed to allow for fast_install
15897  # before this can be enabled.
15898  hardcode_into_libs=yes
15899
15900  # Append ld.so.conf contents to the search path
15901  if test -f /etc/ld.so.conf; then
15902    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' ' '`
15903    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15904  fi
15905
15906  # We used to test for /lib/ld.so.1 and disable shared libraries on
15907  # powerpc, because MkLinux only supported shared libraries with the
15908  # GNU dynamic linker.  Since this was broken with cross compilers,
15909  # most powerpc-linux boxes support dynamic linking these days and
15910  # people can always --disable-shared, the test was removed, and we
15911  # assume the GNU/Linux dynamic linker is in use.
15912  dynamic_linker='GNU/Linux ld.so'
15913  ;;
15914
15915netbsd*)
15916  version_type=sunos
15917  need_lib_prefix=no
15918  need_version=no
15919  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15920    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15921    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15922    dynamic_linker='NetBSD (a.out) ld.so'
15923  else
15924    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15925    soname_spec='$libname$release$shared_ext$major'
15926    dynamic_linker='NetBSD ld.elf_so'
15927  fi
15928  shlibpath_var=LD_LIBRARY_PATH
15929  shlibpath_overrides_runpath=yes
15930  hardcode_into_libs=yes
15931  ;;
15932
15933newsos6)
15934  version_type=linux # correct to gnu/linux during the next big refactor
15935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15936  shlibpath_var=LD_LIBRARY_PATH
15937  shlibpath_overrides_runpath=yes
15938  ;;
15939
15940*nto* | *qnx*)
15941  version_type=qnx
15942  need_lib_prefix=no
15943  need_version=no
15944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15945  soname_spec='$libname$release$shared_ext$major'
15946  shlibpath_var=LD_LIBRARY_PATH
15947  shlibpath_overrides_runpath=no
15948  hardcode_into_libs=yes
15949  dynamic_linker='ldqnx.so'
15950  ;;
15951
15952openbsd* | bitrig*)
15953  version_type=sunos
15954  sys_lib_dlsearch_path_spec=/usr/lib
15955  need_lib_prefix=no
15956  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15957    need_version=no
15958  else
15959    need_version=yes
15960  fi
15961  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15962  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15963  shlibpath_var=LD_LIBRARY_PATH
15964  shlibpath_overrides_runpath=yes
15965  ;;
15966
15967os2*)
15968  libname_spec='$name'
15969  shrext_cmds=.dll
15970  need_lib_prefix=no
15971  library_names_spec='$libname$shared_ext $libname.a'
15972  dynamic_linker='OS/2 ld.exe'
15973  shlibpath_var=LIBPATH
15974  ;;
15975
15976osf3* | osf4* | osf5*)
15977  version_type=osf
15978  need_lib_prefix=no
15979  need_version=no
15980  soname_spec='$libname$release$shared_ext$major'
15981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15984  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15985  ;;
15986
15987rdos*)
15988  dynamic_linker=no
15989  ;;
15990
15991solaris*)
15992  version_type=linux # correct to gnu/linux during the next big refactor
15993  need_lib_prefix=no
15994  need_version=no
15995  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15996  soname_spec='$libname$release$shared_ext$major'
15997  shlibpath_var=LD_LIBRARY_PATH
15998  shlibpath_overrides_runpath=yes
15999  hardcode_into_libs=yes
16000  # ldd complains unless libraries are executable
16001  postinstall_cmds='chmod +x $lib'
16002  ;;
16003
16004sunos4*)
16005  version_type=sunos
16006  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16007  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16008  shlibpath_var=LD_LIBRARY_PATH
16009  shlibpath_overrides_runpath=yes
16010  if test yes = "$with_gnu_ld"; then
16011    need_lib_prefix=no
16012  fi
16013  need_version=yes
16014  ;;
16015
16016sysv4 | sysv4.3*)
16017  version_type=linux # correct to gnu/linux during the next big refactor
16018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019  soname_spec='$libname$release$shared_ext$major'
16020  shlibpath_var=LD_LIBRARY_PATH
16021  case $host_vendor in
16022    sni)
16023      shlibpath_overrides_runpath=no
16024      need_lib_prefix=no
16025      runpath_var=LD_RUN_PATH
16026      ;;
16027    siemens)
16028      need_lib_prefix=no
16029      ;;
16030    motorola)
16031      need_lib_prefix=no
16032      need_version=no
16033      shlibpath_overrides_runpath=no
16034      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16035      ;;
16036  esac
16037  ;;
16038
16039sysv4*MP*)
16040  if test -d /usr/nec; then
16041    version_type=linux # correct to gnu/linux during the next big refactor
16042    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16043    soname_spec='$libname$shared_ext.$major'
16044    shlibpath_var=LD_LIBRARY_PATH
16045  fi
16046  ;;
16047
16048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16049  version_type=freebsd-elf
16050  need_lib_prefix=no
16051  need_version=no
16052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16053  soname_spec='$libname$release$shared_ext$major'
16054  shlibpath_var=LD_LIBRARY_PATH
16055  shlibpath_overrides_runpath=yes
16056  hardcode_into_libs=yes
16057  if test yes = "$with_gnu_ld"; then
16058    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16059  else
16060    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16061    case $host_os in
16062      sco3.2v5*)
16063        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16064	;;
16065    esac
16066  fi
16067  sys_lib_dlsearch_path_spec='/usr/lib'
16068  ;;
16069
16070tpf*)
16071  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16072  version_type=linux # correct to gnu/linux during the next big refactor
16073  need_lib_prefix=no
16074  need_version=no
16075  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16076  shlibpath_var=LD_LIBRARY_PATH
16077  shlibpath_overrides_runpath=no
16078  hardcode_into_libs=yes
16079  ;;
16080
16081uts4*)
16082  version_type=linux # correct to gnu/linux during the next big refactor
16083  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16084  soname_spec='$libname$release$shared_ext$major'
16085  shlibpath_var=LD_LIBRARY_PATH
16086  ;;
16087
16088*)
16089  dynamic_linker=no
16090  ;;
16091esac
16092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16093$as_echo "$dynamic_linker" >&6; }
16094test no = "$dynamic_linker" && can_build_shared=no
16095
16096variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16097if test yes = "$GCC"; then
16098  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16099fi
16100
16101if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16102  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16103fi
16104if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16105  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16106fi
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16146$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16147hardcode_action_CXX=
16148if test -n "$hardcode_libdir_flag_spec_CXX" ||
16149   test -n "$runpath_var_CXX" ||
16150   test yes = "$hardcode_automatic_CXX"; then
16151
16152  # We can hardcode non-existent directories.
16153  if test no != "$hardcode_direct_CXX" &&
16154     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16155     # have to relink, otherwise we might link with an installed library
16156     # when we should be linking with a yet-to-be-installed one
16157     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16158     test no != "$hardcode_minus_L_CXX"; then
16159    # Linking always hardcodes the temporary library directory.
16160    hardcode_action_CXX=relink
16161  else
16162    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16163    hardcode_action_CXX=immediate
16164  fi
16165else
16166  # We cannot hardcode anything, or else we can only hardcode existing
16167  # directories.
16168  hardcode_action_CXX=unsupported
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16171$as_echo "$hardcode_action_CXX" >&6; }
16172
16173if test relink = "$hardcode_action_CXX" ||
16174   test yes = "$inherit_rpath_CXX"; then
16175  # Fast installation is not supported
16176  enable_fast_install=no
16177elif test yes = "$shlibpath_overrides_runpath" ||
16178     test no = "$enable_shared"; then
16179  # Fast installation is not necessary
16180  enable_fast_install=needless
16181fi
16182
16183
16184
16185
16186
16187
16188
16189  fi # test -n "$compiler"
16190
16191  CC=$lt_save_CC
16192  CFLAGS=$lt_save_CFLAGS
16193  LDCXX=$LD
16194  LD=$lt_save_LD
16195  GCC=$lt_save_GCC
16196  with_gnu_ld=$lt_save_with_gnu_ld
16197  lt_cv_path_LDCXX=$lt_cv_path_LD
16198  lt_cv_path_LD=$lt_save_path_LD
16199  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16200  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16201fi # test yes != "$_lt_caught_CXX_error"
16202
16203ac_ext=c
16204ac_cpp='$CPP $CPPFLAGS'
16205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16207ac_compiler_gnu=$ac_cv_c_compiler_gnu
16208
16209
16210
16211# Enable support for silent build rules
16212# Check whether --enable-silent-rules was given.
16213if test "${enable_silent_rules+set}" = set; then :
16214  enableval=$enable_silent_rules;
16215fi
16216
16217case $enable_silent_rules in # (((
16218  yes) AM_DEFAULT_VERBOSITY=0;;
16219   no) AM_DEFAULT_VERBOSITY=1;;
16220    *) AM_DEFAULT_VERBOSITY=1;;
16221esac
16222am_make=${MAKE-make}
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16224$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16225if ${am_cv_make_support_nested_variables+:} false; then :
16226  $as_echo_n "(cached) " >&6
16227else
16228  if $as_echo 'TRUE=$(BAR$(V))
16229BAR0=false
16230BAR1=true
16231V=1
16232am__doit:
16233	@$(TRUE)
16234.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16235  am_cv_make_support_nested_variables=yes
16236else
16237  am_cv_make_support_nested_variables=no
16238fi
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16241$as_echo "$am_cv_make_support_nested_variables" >&6; }
16242if test $am_cv_make_support_nested_variables = yes; then
16243    AM_V='$(V)'
16244  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16245else
16246  AM_V=$AM_DEFAULT_VERBOSITY
16247  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16248fi
16249AM_BACKSLASH='\'
16250
16251
16252tiff_libs_private=
16253
16254
16255case "${host_os}" in
16256    cygwin* | mingw32* | beos* | darwin*)
16257        ;;
16258    *)
16259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16260$as_echo_n "checking for sin in -lm... " >&6; }
16261if ${ac_cv_lib_m_sin+:} false; then :
16262  $as_echo_n "(cached) " >&6
16263else
16264  ac_check_lib_save_LIBS=$LIBS
16265LIBS="-lm  $LIBS"
16266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268
16269/* Override any GCC internal prototype to avoid an error.
16270   Use char because int might match the return type of a GCC
16271   builtin and then its argument prototype would still apply.  */
16272#ifdef __cplusplus
16273extern "C"
16274#endif
16275char sin ();
16276int
16277main ()
16278{
16279return sin ();
16280  ;
16281  return 0;
16282}
16283_ACEOF
16284if ac_fn_c_try_link "$LINENO"; then :
16285  ac_cv_lib_m_sin=yes
16286else
16287  ac_cv_lib_m_sin=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext \
16290    conftest$ac_exeext conftest.$ac_ext
16291LIBS=$ac_check_lib_save_LIBS
16292fi
16293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16294$as_echo "$ac_cv_lib_m_sin" >&6; }
16295if test "x$ac_cv_lib_m_sin" = xyes; then :
16296  libm_lib=yes
16297else
16298  libm_lib=no
16299fi
16300
16301	if test "x$libm_lib" = "xyes" ; then
16302	  LIBS="-lm $LIBS"
16303	  tiff_libs_private="-lm ${tiff_libs_private}"
16304	fi
16305        ;;
16306esac
16307
16308for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16309do :
16310  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16311ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16312if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16313  cat >>confdefs.h <<_ACEOF
16314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315_ACEOF
16316
16317fi
16318
16319done
16320
16321
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16323$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16324if ${ac_cv_c_const+:} false; then :
16325  $as_echo_n "(cached) " >&6
16326else
16327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328/* end confdefs.h.  */
16329
16330int
16331main ()
16332{
16333
16334#ifndef __cplusplus
16335  /* Ultrix mips cc rejects this sort of thing.  */
16336  typedef int charset[2];
16337  const charset cs = { 0, 0 };
16338  /* SunOS 4.1.1 cc rejects this.  */
16339  char const *const *pcpcc;
16340  char **ppc;
16341  /* NEC SVR4.0.2 mips cc rejects this.  */
16342  struct point {int x, y;};
16343  static struct point const zero = {0,0};
16344  /* AIX XL C 1.02.0.0 rejects this.
16345     It does not let you subtract one const X* pointer from another in
16346     an arm of an if-expression whose if-part is not a constant
16347     expression */
16348  const char *g = "string";
16349  pcpcc = &g + (g ? g-g : 0);
16350  /* HPUX 7.0 cc rejects these. */
16351  ++pcpcc;
16352  ppc = (char**) pcpcc;
16353  pcpcc = (char const *const *) ppc;
16354  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16355    char tx;
16356    char *t = &tx;
16357    char const *s = 0 ? (char *) 0 : (char const *) 0;
16358
16359    *t++ = 0;
16360    if (s) return 0;
16361  }
16362  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16363    int x[] = {25, 17};
16364    const int *foo = &x[0];
16365    ++foo;
16366  }
16367  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16368    typedef const int *iptr;
16369    iptr p = 0;
16370    ++p;
16371  }
16372  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16373       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16374    struct s { int j; const int *ap[3]; } bx;
16375    struct s *b = &bx; b->j = 5;
16376  }
16377  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16378    const int foo = 10;
16379    if (!foo) return 0;
16380  }
16381  return !cs[0] && !zero.x;
16382#endif
16383
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388if ac_fn_c_try_compile "$LINENO"; then :
16389  ac_cv_c_const=yes
16390else
16391  ac_cv_c_const=no
16392fi
16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394fi
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16396$as_echo "$ac_cv_c_const" >&6; }
16397if test $ac_cv_c_const = no; then
16398
16399$as_echo "#define const /**/" >>confdefs.h
16400
16401fi
16402
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16404$as_echo_n "checking for inline... " >&6; }
16405if ${ac_cv_c_inline+:} false; then :
16406  $as_echo_n "(cached) " >&6
16407else
16408  ac_cv_c_inline=no
16409for ac_kw in inline __inline__ __inline; do
16410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412#ifndef __cplusplus
16413typedef int foo_t;
16414static $ac_kw foo_t static_foo () {return 0; }
16415$ac_kw foo_t foo () {return 0; }
16416#endif
16417
16418_ACEOF
16419if ac_fn_c_try_compile "$LINENO"; then :
16420  ac_cv_c_inline=$ac_kw
16421fi
16422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423  test "$ac_cv_c_inline" != no && break
16424done
16425
16426fi
16427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16428$as_echo "$ac_cv_c_inline" >&6; }
16429
16430case $ac_cv_c_inline in
16431  inline | yes) ;;
16432  *)
16433    case $ac_cv_c_inline in
16434      no) ac_val=;;
16435      *) ac_val=$ac_cv_c_inline;;
16436    esac
16437    cat >>confdefs.h <<_ACEOF
16438#ifndef __cplusplus
16439#define inline $ac_val
16440#endif
16441_ACEOF
16442    ;;
16443esac
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16446$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16447if ${ac_cv_c_bigendian+:} false; then :
16448  $as_echo_n "(cached) " >&6
16449else
16450  ac_cv_c_bigendian=unknown
16451    # See if we're dealing with a universal compiler.
16452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h.  */
16454#ifndef __APPLE_CC__
16455	       not a universal capable compiler
16456	     #endif
16457	     typedef int dummy;
16458
16459_ACEOF
16460if ac_fn_c_try_compile "$LINENO"; then :
16461
16462	# Check for potential -arch flags.  It is not universal unless
16463	# there are at least two -arch flags with different values.
16464	ac_arch=
16465	ac_prev=
16466	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16467	 if test -n "$ac_prev"; then
16468	   case $ac_word in
16469	     i?86 | x86_64 | ppc | ppc64)
16470	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16471		 ac_arch=$ac_word
16472	       else
16473		 ac_cv_c_bigendian=universal
16474		 break
16475	       fi
16476	       ;;
16477	   esac
16478	   ac_prev=
16479	 elif test "x$ac_word" = "x-arch"; then
16480	   ac_prev=arch
16481	 fi
16482       done
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485    if test $ac_cv_c_bigendian = unknown; then
16486      # See if sys/param.h defines the BYTE_ORDER macro.
16487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488/* end confdefs.h.  */
16489#include <sys/types.h>
16490	     #include <sys/param.h>
16491
16492int
16493main ()
16494{
16495#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16496		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16497		     && LITTLE_ENDIAN)
16498	      bogus endian macros
16499	     #endif
16500
16501  ;
16502  return 0;
16503}
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506  # It does; now see whether it defined to BIG_ENDIAN or not.
16507	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508/* end confdefs.h.  */
16509#include <sys/types.h>
16510		#include <sys/param.h>
16511
16512int
16513main ()
16514{
16515#if BYTE_ORDER != BIG_ENDIAN
16516		 not big endian
16517		#endif
16518
16519  ;
16520  return 0;
16521}
16522_ACEOF
16523if ac_fn_c_try_compile "$LINENO"; then :
16524  ac_cv_c_bigendian=yes
16525else
16526  ac_cv_c_bigendian=no
16527fi
16528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529fi
16530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531    fi
16532    if test $ac_cv_c_bigendian = unknown; then
16533      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16534      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535/* end confdefs.h.  */
16536#include <limits.h>
16537
16538int
16539main ()
16540{
16541#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16542	      bogus endian macros
16543	     #endif
16544
16545  ;
16546  return 0;
16547}
16548_ACEOF
16549if ac_fn_c_try_compile "$LINENO"; then :
16550  # It does; now see whether it defined to _BIG_ENDIAN or not.
16551	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h.  */
16553#include <limits.h>
16554
16555int
16556main ()
16557{
16558#ifndef _BIG_ENDIAN
16559		 not big endian
16560		#endif
16561
16562  ;
16563  return 0;
16564}
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"; then :
16567  ac_cv_c_bigendian=yes
16568else
16569  ac_cv_c_bigendian=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572fi
16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574    fi
16575    if test $ac_cv_c_bigendian = unknown; then
16576      # Compile a test program.
16577      if test "$cross_compiling" = yes; then :
16578  # Try to guess by grepping values from an object file.
16579	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581short int ascii_mm[] =
16582		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16583		short int ascii_ii[] =
16584		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16585		int use_ascii (int i) {
16586		  return ascii_mm[i] + ascii_ii[i];
16587		}
16588		short int ebcdic_ii[] =
16589		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16590		short int ebcdic_mm[] =
16591		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16592		int use_ebcdic (int i) {
16593		  return ebcdic_mm[i] + ebcdic_ii[i];
16594		}
16595		extern int foo;
16596
16597int
16598main ()
16599{
16600return use_ascii (foo) == use_ebcdic (foo);
16601  ;
16602  return 0;
16603}
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"; then :
16606  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16607	      ac_cv_c_bigendian=yes
16608	    fi
16609	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16610	      if test "$ac_cv_c_bigendian" = unknown; then
16611		ac_cv_c_bigendian=no
16612	      else
16613		# finding both strings is unlikely to happen, but who knows?
16614		ac_cv_c_bigendian=unknown
16615	      fi
16616	    fi
16617fi
16618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619else
16620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621/* end confdefs.h.  */
16622$ac_includes_default
16623int
16624main ()
16625{
16626
16627	     /* Are we little or big endian?  From Harbison&Steele.  */
16628	     union
16629	     {
16630	       long int l;
16631	       char c[sizeof (long int)];
16632	     } u;
16633	     u.l = 1;
16634	     return u.c[sizeof (long int) - 1] == 1;
16635
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_run "$LINENO"; then :
16641  ac_cv_c_bigendian=no
16642else
16643  ac_cv_c_bigendian=yes
16644fi
16645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16646  conftest.$ac_objext conftest.beam conftest.$ac_ext
16647fi
16648
16649    fi
16650fi
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16652$as_echo "$ac_cv_c_bigendian" >&6; }
16653 case $ac_cv_c_bigendian in #(
16654   yes)
16655     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16656;; #(
16657   no)
16658      ;; #(
16659   universal)
16660
16661$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16662
16663     ;; #(
16664   *)
16665     as_fn_error $? "unknown endianness
16666 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16667 esac
16668
16669ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16670if test "x$ac_cv_type_off_t" = xyes; then :
16671
16672else
16673
16674cat >>confdefs.h <<_ACEOF
16675#define off_t long int
16676_ACEOF
16677
16678fi
16679
16680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16681if test "x$ac_cv_type_size_t" = xyes; then :
16682
16683else
16684
16685cat >>confdefs.h <<_ACEOF
16686#define size_t unsigned int
16687_ACEOF
16688
16689fi
16690
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16692$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16693if ${ac_cv_header_time+:} false; then :
16694  $as_echo_n "(cached) " >&6
16695else
16696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698#include <sys/types.h>
16699#include <sys/time.h>
16700#include <time.h>
16701
16702int
16703main ()
16704{
16705if ((struct tm *) 0)
16706return 0;
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711if ac_fn_c_try_compile "$LINENO"; then :
16712  ac_cv_header_time=yes
16713else
16714  ac_cv_header_time=no
16715fi
16716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16719$as_echo "$ac_cv_header_time" >&6; }
16720if test $ac_cv_header_time = yes; then
16721
16722$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16723
16724fi
16725
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16727$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16728if ${ac_cv_struct_tm+:} false; then :
16729  $as_echo_n "(cached) " >&6
16730else
16731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732/* end confdefs.h.  */
16733#include <sys/types.h>
16734#include <time.h>
16735
16736int
16737main ()
16738{
16739struct tm tm;
16740				     int *p = &tm.tm_sec;
16741				     return !p;
16742  ;
16743  return 0;
16744}
16745_ACEOF
16746if ac_fn_c_try_compile "$LINENO"; then :
16747  ac_cv_struct_tm=time.h
16748else
16749  ac_cv_struct_tm=sys/time.h
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752fi
16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16754$as_echo "$ac_cv_struct_tm" >&6; }
16755if test $ac_cv_struct_tm = sys/time.h; then
16756
16757$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16758
16759fi
16760
16761
16762
16763# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
16764# The cast to long int works around a bug in the HP C Compiler
16765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16767# This bug is HP SR number 8606223364.
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
16769$as_echo_n "checking size of signed short... " >&6; }
16770if ${ac_cv_sizeof_signed_short+:} false; then :
16771  $as_echo_n "(cached) " >&6
16772else
16773  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
16774
16775else
16776  if test "$ac_cv_type_signed_short" = yes; then
16777     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16779as_fn_error 77 "cannot compute sizeof (signed short)
16780See \`config.log' for more details" "$LINENO" 5; }
16781   else
16782     ac_cv_sizeof_signed_short=0
16783   fi
16784fi
16785
16786fi
16787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
16788$as_echo "$ac_cv_sizeof_signed_short" >&6; }
16789
16790
16791
16792cat >>confdefs.h <<_ACEOF
16793#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
16794_ACEOF
16795
16796
16797
16798# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
16799# The cast to long int works around a bug in the HP C Compiler
16800# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16801# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16802# This bug is HP SR number 8606223364.
16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16804$as_echo_n "checking size of unsigned short... " >&6; }
16805if ${ac_cv_sizeof_unsigned_short+:} false; then :
16806  $as_echo_n "(cached) " >&6
16807else
16808  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
16809
16810else
16811  if test "$ac_cv_type_unsigned_short" = yes; then
16812     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16814as_fn_error 77 "cannot compute sizeof (unsigned short)
16815See \`config.log' for more details" "$LINENO" 5; }
16816   else
16817     ac_cv_sizeof_unsigned_short=0
16818   fi
16819fi
16820
16821fi
16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16823$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16824
16825
16826
16827cat >>confdefs.h <<_ACEOF
16828#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16829_ACEOF
16830
16831
16832
16833# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
16834# The cast to long int works around a bug in the HP C Compiler
16835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16837# This bug is HP SR number 8606223364.
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
16839$as_echo_n "checking size of signed int... " >&6; }
16840if ${ac_cv_sizeof_signed_int+:} false; then :
16841  $as_echo_n "(cached) " >&6
16842else
16843  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
16844
16845else
16846  if test "$ac_cv_type_signed_int" = yes; then
16847     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16849as_fn_error 77 "cannot compute sizeof (signed int)
16850See \`config.log' for more details" "$LINENO" 5; }
16851   else
16852     ac_cv_sizeof_signed_int=0
16853   fi
16854fi
16855
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16858$as_echo "$ac_cv_sizeof_signed_int" >&6; }
16859
16860
16861
16862cat >>confdefs.h <<_ACEOF
16863#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16864_ACEOF
16865
16866
16867
16868# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
16869# The cast to long int works around a bug in the HP C Compiler
16870# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16871# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16872# This bug is HP SR number 8606223364.
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16874$as_echo_n "checking size of unsigned int... " >&6; }
16875if ${ac_cv_sizeof_unsigned_int+:} false; then :
16876  $as_echo_n "(cached) " >&6
16877else
16878  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16879
16880else
16881  if test "$ac_cv_type_unsigned_int" = yes; then
16882     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16884as_fn_error 77 "cannot compute sizeof (unsigned int)
16885See \`config.log' for more details" "$LINENO" 5; }
16886   else
16887     ac_cv_sizeof_unsigned_int=0
16888   fi
16889fi
16890
16891fi
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16893$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16894
16895
16896
16897cat >>confdefs.h <<_ACEOF
16898#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16899_ACEOF
16900
16901
16902
16903# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
16904# The cast to long int works around a bug in the HP C Compiler
16905# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16906# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16907# This bug is HP SR number 8606223364.
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
16909$as_echo_n "checking size of signed long... " >&6; }
16910if ${ac_cv_sizeof_signed_long+:} false; then :
16911  $as_echo_n "(cached) " >&6
16912else
16913  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
16914
16915else
16916  if test "$ac_cv_type_signed_long" = yes; then
16917     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16919as_fn_error 77 "cannot compute sizeof (signed long)
16920See \`config.log' for more details" "$LINENO" 5; }
16921   else
16922     ac_cv_sizeof_signed_long=0
16923   fi
16924fi
16925
16926fi
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16928$as_echo "$ac_cv_sizeof_signed_long" >&6; }
16929
16930
16931
16932cat >>confdefs.h <<_ACEOF
16933#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
16934_ACEOF
16935
16936
16937
16938# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
16939# The cast to long int works around a bug in the HP C Compiler
16940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16942# This bug is HP SR number 8606223364.
16943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16944$as_echo_n "checking size of unsigned long... " >&6; }
16945if ${ac_cv_sizeof_unsigned_long+:} false; then :
16946  $as_echo_n "(cached) " >&6
16947else
16948  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16949
16950else
16951  if test "$ac_cv_type_unsigned_long" = yes; then
16952     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16954as_fn_error 77 "cannot compute sizeof (unsigned long)
16955See \`config.log' for more details" "$LINENO" 5; }
16956   else
16957     ac_cv_sizeof_unsigned_long=0
16958   fi
16959fi
16960
16961fi
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16963$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16964
16965
16966
16967cat >>confdefs.h <<_ACEOF
16968#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16969_ACEOF
16970
16971
16972
16973# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
16974# If 'long long' is not supported then the value defined is zero.
16975# The cast to long int works around a bug in the HP C Compiler
16976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16978# This bug is HP SR number 8606223364.
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
16980$as_echo_n "checking size of signed long long... " >&6; }
16981if ${ac_cv_sizeof_signed_long_long+:} false; then :
16982  $as_echo_n "(cached) " >&6
16983else
16984  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
16985
16986else
16987  if test "$ac_cv_type_signed_long_long" = yes; then
16988     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16990as_fn_error 77 "cannot compute sizeof (signed long long)
16991See \`config.log' for more details" "$LINENO" 5; }
16992   else
16993     ac_cv_sizeof_signed_long_long=0
16994   fi
16995fi
16996
16997fi
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
16999$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
17000
17001
17002
17003cat >>confdefs.h <<_ACEOF
17004#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
17005_ACEOF
17006
17007
17008
17009# Obtain size of a 'unsigned long long' and define as
17010# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
17011# supported then the value defined is zero.
17012# The cast to long int works around a bug in the HP C Compiler
17013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17015# This bug is HP SR number 8606223364.
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
17017$as_echo_n "checking size of unsigned long long... " >&6; }
17018if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
17019  $as_echo_n "(cached) " >&6
17020else
17021  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
17022
17023else
17024  if test "$ac_cv_type_unsigned_long_long" = yes; then
17025     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17027as_fn_error 77 "cannot compute sizeof (unsigned long long)
17028See \`config.log' for more details" "$LINENO" 5; }
17029   else
17030     ac_cv_sizeof_unsigned_long_long=0
17031   fi
17032fi
17033
17034fi
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
17036$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
17037
17038
17039
17040cat >>confdefs.h <<_ACEOF
17041#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17042_ACEOF
17043
17044
17045
17046# Obtain the size of an 'unsigned char *' and define as
17047# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
17048# ac_cv_sizeof_unsigned_char_p.
17049# The cast to long int works around a bug in the HP C Compiler
17050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17052# This bug is HP SR number 8606223364.
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
17054$as_echo_n "checking size of unsigned char *... " >&6; }
17055if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
17056  $as_echo_n "(cached) " >&6
17057else
17058  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
17059
17060else
17061  if test "$ac_cv_type_unsigned_char_p" = yes; then
17062     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17064as_fn_error 77 "cannot compute sizeof (unsigned char *)
17065See \`config.log' for more details" "$LINENO" 5; }
17066   else
17067     ac_cv_sizeof_unsigned_char_p=0
17068   fi
17069fi
17070
17071fi
17072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
17073$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
17074
17075
17076
17077cat >>confdefs.h <<_ACEOF
17078#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
17079_ACEOF
17080
17081
17082
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
17084$as_echo_n "checking for signed 8-bit type... " >&6; }
17085INT8_T='signed char'
17086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
17087$as_echo "$INT8_T" >&6; }
17088
17089cat >>confdefs.h <<_ACEOF
17090#define TIFF_INT8_T $INT8_T
17091_ACEOF
17092
17093
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
17095$as_echo_n "checking for unsigned 8-bit type... " >&6; }
17096UINT8_T='unsigned char'
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
17098$as_echo "$UINT8_T" >&6; }
17099
17100cat >>confdefs.h <<_ACEOF
17101#define TIFF_UINT8_T $UINT8_T
17102_ACEOF
17103
17104
17105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
17106$as_echo_n "checking for signed 16-bit type... " >&6; }
17107INT16_T='signed short'
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
17109$as_echo "$INT16_T" >&6; }
17110
17111cat >>confdefs.h <<_ACEOF
17112#define TIFF_INT16_T $INT16_T
17113_ACEOF
17114
17115
17116
17117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
17118$as_echo_n "checking for unsigned 16-bit type... " >&6; }
17119UINT16_T='unsigned short'
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
17121$as_echo "$UINT16_T" >&6; }
17122
17123cat >>confdefs.h <<_ACEOF
17124#define TIFF_UINT16_T $UINT16_T
17125_ACEOF
17126
17127
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
17129$as_echo_n "checking for signed 32-bit type... " >&6; }
17130INT32_T='none'
17131INT32_FORMAT='none'
17132if test $ac_cv_sizeof_signed_int -eq 4
17133then
17134  INT32_T='signed int'
17135  INT32_FORMAT='"%d"'
17136elif test $ac_cv_sizeof_signed_long -eq 4
17137then
17138  INT32_T='signed long'
17139  INT32_FORMAT='"%ld"'
17140fi
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
17142$as_echo "$INT32_T" >&6; }
17143
17144cat >>confdefs.h <<_ACEOF
17145#define TIFF_INT32_T $INT32_T
17146_ACEOF
17147
17148
17149cat >>confdefs.h <<_ACEOF
17150#define TIFF_INT32_FORMAT $INT32_FORMAT
17151_ACEOF
17152
17153
17154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
17155$as_echo_n "checking for unsigned 32-bit type... " >&6; }
17156UINT32_T='none'
17157UINT32_FORMAT='none'
17158if test $ac_cv_sizeof_unsigned_int -eq 4
17159then
17160  UINT32_T='unsigned int'
17161  UINT32_FORMAT='"%u"'
17162elif test $ac_cv_sizeof_unsigned_long -eq 4
17163then
17164  UINT32_T='unsigned long'
17165  UINT32_FORMAT='"%lu"'
17166fi
17167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17168$as_echo "$UINT32_T" >&6; }
17169
17170cat >>confdefs.h <<_ACEOF
17171#define TIFF_UINT32_T $UINT32_T
17172_ACEOF
17173
17174
17175cat >>confdefs.h <<_ACEOF
17176#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17177_ACEOF
17178
17179
17180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17181$as_echo_n "checking for signed 64-bit type... " >&6; }
17182INT64_T='none'
17183INT64_FORMAT='none'
17184if test $ac_cv_sizeof_signed_long -eq 8
17185then
17186  INT64_T='signed long'
17187  INT64_FORMAT='"%ld"'
17188elif test $ac_cv_sizeof_signed_long_long -eq 8
17189then
17190  INT64_T='signed long long'
17191  case "${host_os}" in
17192    mingw32*)
17193      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17194      INT64_FORMAT='"%I64d"'
17195      ;;
17196    *)
17197      INT64_FORMAT='"%lld"'
17198      ;;
17199  esac
17200fi
17201
17202
17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17204$as_echo "$INT64_T" >&6; }
17205
17206cat >>confdefs.h <<_ACEOF
17207#define TIFF_INT64_T $INT64_T
17208_ACEOF
17209
17210
17211cat >>confdefs.h <<_ACEOF
17212#define TIFF_INT64_FORMAT $INT64_FORMAT
17213_ACEOF
17214
17215
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17217$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17218UINT64_T='none'
17219UINT64_FORMAT='none'
17220if test $ac_cv_sizeof_unsigned_long -eq 8
17221then
17222  UINT64_T='unsigned long'
17223  UINT64_FORMAT='"%lu"'
17224elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17225then
17226  UINT64_T='unsigned long long'
17227  case "${host_os}" in
17228    mingw32*)
17229      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17230      UINT64_FORMAT='"%I64u"'
17231      ;;
17232    *)
17233      UINT64_FORMAT='"%llu"'
17234      ;;
17235  esac
17236fi
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17238$as_echo "$UINT64_T" >&6; }
17239
17240cat >>confdefs.h <<_ACEOF
17241#define TIFF_UINT64_T $UINT64_T
17242_ACEOF
17243
17244
17245cat >>confdefs.h <<_ACEOF
17246#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17247_ACEOF
17248
17249
17250# Determine TIFF equivalent of ssize_t
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17252$as_echo_n "checking for signed size type... " >&6; }
17253SSIZE_T='unknown'
17254SSIZE_FORMAT='unknown'
17255if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17256then
17257  SSIZE_T='signed long'
17258  SSIZE_FORMAT='"%ld"'
17259elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17260then
17261  SSIZE_T='signed long long'
17262  SSIZE_FORMAT='"%lld"'
17263fi
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17265$as_echo "$SSIZE_T" >&6; }
17266
17267cat >>confdefs.h <<_ACEOF
17268#define TIFF_SSIZE_T $SSIZE_T
17269_ACEOF
17270
17271
17272cat >>confdefs.h <<_ACEOF
17273#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17274_ACEOF
17275
17276
17277# Determine the type to use for the difference between two pointers.
17278# We will default to the POSIX ptrdiff_t if it is available, but will
17279# be prepared for the case when it is not.
17280PTRDIFF_T='unknown'
17281PTRDIFF_FORMAT='"%ld"'
17282ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17283if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17284  PTRDIFF_T=ptrdiff_t
17285fi
17286
17287if test $PTRDIFF_T = unknown
17288then
17289  PTRDIFF_T=$SSIZE_T
17290  PTRDIFF_FORMAT=$SSIZE_FORMAT
17291fi
17292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17293$as_echo_n "checking for pointer difference type... " >&6; }
17294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17295$as_echo "$PTRDIFF_T" >&6; }
17296
17297cat >>confdefs.h <<_ACEOF
17298#define TIFF_PTRDIFF_T $PTRDIFF_T
17299_ACEOF
17300
17301
17302cat >>confdefs.h <<_ACEOF
17303#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17304_ACEOF
17305
17306
17307ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17308#if HAVE_INTTYPES_H
17309# include <inttypes.h>
17310#endif
17311
17312"
17313if test "x$ac_cv_type_int8" = xyes; then :
17314
17315cat >>confdefs.h <<_ACEOF
17316#define HAVE_INT8 1
17317_ACEOF
17318
17319
17320fi
17321ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17322#if HAVE_INTTYPES_H
17323# include <inttypes.h>
17324#endif
17325
17326"
17327if test "x$ac_cv_type_int16" = xyes; then :
17328
17329cat >>confdefs.h <<_ACEOF
17330#define HAVE_INT16 1
17331_ACEOF
17332
17333
17334fi
17335ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17336#if HAVE_INTTYPES_H
17337# include <inttypes.h>
17338#endif
17339
17340"
17341if test "x$ac_cv_type_int32" = xyes; then :
17342
17343cat >>confdefs.h <<_ACEOF
17344#define HAVE_INT32 1
17345_ACEOF
17346
17347
17348fi
17349
17350
17351for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17352do :
17353  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17355if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17356  cat >>confdefs.h <<_ACEOF
17357#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358_ACEOF
17359
17360fi
17361done
17362
17363
17364ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17365if test "x$ac_cv_func_getopt" = xyes; then :
17366  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17367
17368else
17369  case " $LIBOBJS " in
17370  *" getopt.$ac_objext "* ) ;;
17371  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17372 ;;
17373esac
17374
17375fi
17376
17377
17378ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17379if test "x$ac_cv_func_strcasecmp" = xyes; then :
17380  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17381
17382else
17383  case " $LIBOBJS " in
17384  *" strcasecmp.$ac_objext "* ) ;;
17385  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17386 ;;
17387esac
17388
17389fi
17390
17391
17392ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17393if test "x$ac_cv_func_strtoul" = xyes; then :
17394  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17395
17396else
17397  case " $LIBOBJS " in
17398  *" strtoul.$ac_objext "* ) ;;
17399  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17400 ;;
17401esac
17402
17403fi
17404
17405
17406ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17407if test "x$ac_cv_func_strtoull" = xyes; then :
17408  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17409
17410else
17411  case " $LIBOBJS " in
17412  *" strtoull.$ac_objext "* ) ;;
17413  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17414 ;;
17415esac
17416
17417fi
17418
17419
17420ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17421if test "x$ac_cv_func_lfind" = xyes; then :
17422  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17423
17424else
17425  case " $LIBOBJS " in
17426  *" lfind.$ac_objext "* ) ;;
17427  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17428 ;;
17429esac
17430
17431fi
17432
17433
17434
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17436$as_echo_n "checking native cpu bit order... " >&6; }
17437case "$host_cpu" in
17438    i*86*|x86_64*)
17439        HOST_FILLORDER=FILLORDER_LSB2MSB
17440	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17441$as_echo "lsb2msb" >&6; }
17442	;;
17443    *)
17444	HOST_FILLORDER=FILLORDER_MSB2LSB
17445	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17446$as_echo "msb2lsb" >&6; }
17447        ;;
17448esac
17449
17450cat >>confdefs.h <<_ACEOF
17451#define HOST_FILLORDER $HOST_FILLORDER
17452_ACEOF
17453
17454
17455if test "$ac_cv_c_bigendian" = yes ; then
17456    HOST_BIGENDIAN=1
17457else
17458    HOST_BIGENDIAN=0
17459fi
17460
17461cat >>confdefs.h <<_ACEOF
17462#define HOST_BIGENDIAN $HOST_BIGENDIAN
17463_ACEOF
17464
17465
17466#_POSIX_C_SOURCE=2
17467#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17468
17469HAVE_IEEEFP=1
17470
17471cat >>confdefs.h <<_ACEOF
17472#define HAVE_IEEEFP $HAVE_IEEEFP
17473_ACEOF
17474
17475
17476
17477# Check whether --enable-rpath was given.
17478if test "${enable_rpath+set}" = set; then :
17479  enableval=$enable_rpath; HAVE_RPATH=$enableval
17480else
17481  HAVE_RPATH=no
17482fi
17483
17484 if test "$HAVE_RPATH" = "yes"; then
17485  HAVE_RPATH_TRUE=
17486  HAVE_RPATH_FALSE='#'
17487else
17488  HAVE_RPATH_TRUE='#'
17489  HAVE_RPATH_FALSE=
17490fi
17491
17492
17493
17494# Check whether --enable-largefile was given.
17495if test "${enable_largefile+set}" = set; then :
17496  enableval=$enable_largefile;
17497fi
17498
17499if test "$enable_largefile" != no; then
17500
17501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17502$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17503if ${ac_cv_sys_largefile_CC+:} false; then :
17504  $as_echo_n "(cached) " >&6
17505else
17506  ac_cv_sys_largefile_CC=no
17507     if test "$GCC" != yes; then
17508       ac_save_CC=$CC
17509       while :; do
17510	 # IRIX 6.2 and later do not support large files by default,
17511	 # so use the C compiler's -n32 option if that helps.
17512	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h.  */
17514#include <sys/types.h>
17515 /* Check that off_t can represent 2**63 - 1 correctly.
17516    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17517    since some C++ compilers masquerading as C compilers
17518    incorrectly reject 9223372036854775807.  */
17519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17520  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17521		       && LARGE_OFF_T % 2147483647 == 1)
17522		      ? 1 : -1];
17523int
17524main ()
17525{
17526
17527  ;
17528  return 0;
17529}
17530_ACEOF
17531	 if ac_fn_c_try_compile "$LINENO"; then :
17532  break
17533fi
17534rm -f core conftest.err conftest.$ac_objext
17535	 CC="$CC -n32"
17536	 if ac_fn_c_try_compile "$LINENO"; then :
17537  ac_cv_sys_largefile_CC=' -n32'; break
17538fi
17539rm -f core conftest.err conftest.$ac_objext
17540	 break
17541       done
17542       CC=$ac_save_CC
17543       rm -f conftest.$ac_ext
17544    fi
17545fi
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17547$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17548  if test "$ac_cv_sys_largefile_CC" != no; then
17549    CC=$CC$ac_cv_sys_largefile_CC
17550  fi
17551
17552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17553$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17554if ${ac_cv_sys_file_offset_bits+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  while :; do
17558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h.  */
17560#include <sys/types.h>
17561 /* Check that off_t can represent 2**63 - 1 correctly.
17562    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17563    since some C++ compilers masquerading as C compilers
17564    incorrectly reject 9223372036854775807.  */
17565#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17566  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17567		       && LARGE_OFF_T % 2147483647 == 1)
17568		      ? 1 : -1];
17569int
17570main ()
17571{
17572
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"; then :
17578  ac_cv_sys_file_offset_bits=no; break
17579fi
17580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583#define _FILE_OFFSET_BITS 64
17584#include <sys/types.h>
17585 /* Check that off_t can represent 2**63 - 1 correctly.
17586    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17587    since some C++ compilers masquerading as C compilers
17588    incorrectly reject 9223372036854775807.  */
17589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17590  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17591		       && LARGE_OFF_T % 2147483647 == 1)
17592		      ? 1 : -1];
17593int
17594main ()
17595{
17596
17597  ;
17598  return 0;
17599}
17600_ACEOF
17601if ac_fn_c_try_compile "$LINENO"; then :
17602  ac_cv_sys_file_offset_bits=64; break
17603fi
17604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605  ac_cv_sys_file_offset_bits=unknown
17606  break
17607done
17608fi
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17610$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17611case $ac_cv_sys_file_offset_bits in #(
17612  no | unknown) ;;
17613  *)
17614cat >>confdefs.h <<_ACEOF
17615#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17616_ACEOF
17617;;
17618esac
17619rm -rf conftest*
17620  if test $ac_cv_sys_file_offset_bits = unknown; then
17621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17622$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17623if ${ac_cv_sys_large_files+:} false; then :
17624  $as_echo_n "(cached) " >&6
17625else
17626  while :; do
17627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h.  */
17629#include <sys/types.h>
17630 /* Check that off_t can represent 2**63 - 1 correctly.
17631    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17632    since some C++ compilers masquerading as C compilers
17633    incorrectly reject 9223372036854775807.  */
17634#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17635  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17636		       && LARGE_OFF_T % 2147483647 == 1)
17637		      ? 1 : -1];
17638int
17639main ()
17640{
17641
17642  ;
17643  return 0;
17644}
17645_ACEOF
17646if ac_fn_c_try_compile "$LINENO"; then :
17647  ac_cv_sys_large_files=no; break
17648fi
17649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651/* end confdefs.h.  */
17652#define _LARGE_FILES 1
17653#include <sys/types.h>
17654 /* Check that off_t can represent 2**63 - 1 correctly.
17655    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17656    since some C++ compilers masquerading as C compilers
17657    incorrectly reject 9223372036854775807.  */
17658#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17659  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17660		       && LARGE_OFF_T % 2147483647 == 1)
17661		      ? 1 : -1];
17662int
17663main ()
17664{
17665
17666  ;
17667  return 0;
17668}
17669_ACEOF
17670if ac_fn_c_try_compile "$LINENO"; then :
17671  ac_cv_sys_large_files=1; break
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674  ac_cv_sys_large_files=unknown
17675  break
17676done
17677fi
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17679$as_echo "$ac_cv_sys_large_files" >&6; }
17680case $ac_cv_sys_large_files in #(
17681  no | unknown) ;;
17682  *)
17683cat >>confdefs.h <<_ACEOF
17684#define _LARGE_FILES $ac_cv_sys_large_files
17685_ACEOF
17686;;
17687esac
17688rm -rf conftest*
17689  fi
17690
17691
17692fi
17693
17694
17695
17696LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17697
17698
17699# Check whether --with-docdir was given.
17700if test "${with_docdir+set}" = set; then :
17701  withval=$with_docdir;
17702fi
17703
17704if test "x$with_docdir" != "x" ; then
17705  LIBTIFF_DOCDIR=$with_docdir
17706fi
17707
17708
17709
17710
17711# Check whether --enable-ccitt was given.
17712if test "${enable_ccitt+set}" = set; then :
17713  enableval=$enable_ccitt; HAVE_CCITT=$enableval
17714else
17715  HAVE_CCITT=yes
17716fi
17717
17718
17719if test "$HAVE_CCITT" = "yes" ; then
17720
17721$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
17722
17723fi
17724
17725# Check whether --enable-packbits was given.
17726if test "${enable_packbits+set}" = set; then :
17727  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17728else
17729  HAVE_PACKBITS=yes
17730fi
17731
17732
17733if test "$HAVE_PACKBITS" = "yes" ; then
17734
17735$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
17736
17737fi
17738
17739# Check whether --enable-lzw was given.
17740if test "${enable_lzw+set}" = set; then :
17741  enableval=$enable_lzw; HAVE_LZW=$enableval
17742else
17743  HAVE_LZW=yes
17744fi
17745
17746
17747if test "$HAVE_LZW" = "yes" ; then
17748
17749$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
17750
17751fi
17752
17753# Check whether --enable-thunder was given.
17754if test "${enable_thunder+set}" = set; then :
17755  enableval=$enable_thunder; HAVE_THUNDER=$enableval
17756else
17757  HAVE_THUNDER=yes
17758fi
17759
17760
17761if test "$HAVE_THUNDER" = "yes" ; then
17762
17763$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
17764
17765fi
17766
17767HAVE_NEXT=yes
17768
17769# Check whether --enable-next was given.
17770if test "${enable_next+set}" = set; then :
17771  enableval=$enable_next; HAVE_NEXT=$enableval
17772else
17773  HAVE_NEXT=yes
17774fi
17775
17776
17777if test "$HAVE_NEXT" = "yes" ; then
17778
17779$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
17780
17781fi
17782
17783# Check whether --enable-logluv was given.
17784if test "${enable_logluv+set}" = set; then :
17785  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
17786else
17787  HAVE_LOGLUV=yes
17788fi
17789
17790
17791if test "$HAVE_LOGLUV" = "yes" ; then
17792
17793$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17794
17795fi
17796
17797
17798# Check whether --enable-mdi was given.
17799if test "${enable_mdi+set}" = set; then :
17800  enableval=$enable_mdi; HAVE_MDI=$enableval
17801else
17802  HAVE_MDI=yes
17803fi
17804
17805
17806if test "$HAVE_MDI" = "yes" ; then
17807
17808$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
17809
17810fi
17811
17812
17813HAVE_ZLIB=no
17814
17815# Check whether --enable-zlib was given.
17816if test "${enable_zlib+set}" = set; then :
17817  enableval=$enable_zlib;
17818fi
17819
17820
17821# Check whether --with-zlib-include-dir was given.
17822if test "${with_zlib_include_dir+set}" = set; then :
17823  withval=$with_zlib_include_dir;
17824fi
17825
17826
17827# Check whether --with-zlib-lib-dir was given.
17828if test "${with_zlib_lib_dir+set}" = set; then :
17829  withval=$with_zlib_lib_dir;
17830fi
17831
17832
17833if test "x$enable_zlib" != "xno" ; then
17834
17835  if test "x$with_zlib_lib_dir" != "x" ; then
17836    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17837  fi
17838
17839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17840$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17841if ${ac_cv_lib_z_inflateEnd+:} false; then :
17842  $as_echo_n "(cached) " >&6
17843else
17844  ac_check_lib_save_LIBS=$LIBS
17845LIBS="-lz  $LIBS"
17846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h.  */
17848
17849/* Override any GCC internal prototype to avoid an error.
17850   Use char because int might match the return type of a GCC
17851   builtin and then its argument prototype would still apply.  */
17852#ifdef __cplusplus
17853extern "C"
17854#endif
17855char inflateEnd ();
17856int
17857main ()
17858{
17859return inflateEnd ();
17860  ;
17861  return 0;
17862}
17863_ACEOF
17864if ac_fn_c_try_link "$LINENO"; then :
17865  ac_cv_lib_z_inflateEnd=yes
17866else
17867  ac_cv_lib_z_inflateEnd=no
17868fi
17869rm -f core conftest.err conftest.$ac_objext \
17870    conftest$ac_exeext conftest.$ac_ext
17871LIBS=$ac_check_lib_save_LIBS
17872fi
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17874$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17875if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17876  zlib_lib=yes
17877else
17878  zlib_lib=no
17879fi
17880
17881  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
17882    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
17883  fi
17884
17885  if test "x$with_zlib_include_dir" != "x" ; then
17886    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
17887  fi
17888  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17889if test "x$ac_cv_header_zlib_h" = xyes; then :
17890  zlib_h=yes
17891else
17892  zlib_h=no
17893fi
17894
17895
17896  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
17897    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
17898  fi
17899
17900  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17901    HAVE_ZLIB=yes
17902  fi
17903
17904fi
17905
17906if test "$HAVE_ZLIB" = "yes" ; then
17907
17908$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
17909
17910  LIBS="-lz $LIBS"
17911  tiff_libs_private="-lz ${tiff_libs_private}"
17912
17913  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
17914    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
17915  fi
17916
17917fi
17918
17919
17920# Check whether --enable-pixarlog was given.
17921if test "${enable_pixarlog+set}" = set; then :
17922  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17923else
17924  HAVE_PIXARLOG=yes
17925fi
17926
17927
17928if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
17929
17930$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
17931
17932else
17933  HAVE_PIXARLOG=no
17934fi
17935
17936
17937HAVE_JPEG=no
17938
17939# Check whether --enable-jpeg was given.
17940if test "${enable_jpeg+set}" = set; then :
17941  enableval=$enable_jpeg;
17942fi
17943
17944
17945# Check whether --with-jpeg-include-dir was given.
17946if test "${with_jpeg_include_dir+set}" = set; then :
17947  withval=$with_jpeg_include_dir;
17948fi
17949
17950
17951# Check whether --with-jpeg-lib-dir was given.
17952if test "${with_jpeg_lib_dir+set}" = set; then :
17953  withval=$with_jpeg_lib_dir;
17954fi
17955
17956
17957if test "x$enable_jpeg" != "xno" ; then
17958
17959  if test "x$with_jpeg_lib_dir" != "x" ; then
17960    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
17961
17962  fi
17963
17964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
17965$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
17966if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17967  $as_echo_n "(cached) " >&6
17968else
17969  ac_check_lib_save_LIBS=$LIBS
17970LIBS="-ljpeg  $LIBS"
17971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972/* end confdefs.h.  */
17973
17974/* Override any GCC internal prototype to avoid an error.
17975   Use char because int might match the return type of a GCC
17976   builtin and then its argument prototype would still apply.  */
17977#ifdef __cplusplus
17978extern "C"
17979#endif
17980char jpeg_read_scanlines ();
17981int
17982main ()
17983{
17984return jpeg_read_scanlines ();
17985  ;
17986  return 0;
17987}
17988_ACEOF
17989if ac_fn_c_try_link "$LINENO"; then :
17990  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17991else
17992  ac_cv_lib_jpeg_jpeg_read_scanlines=no
17993fi
17994rm -f core conftest.err conftest.$ac_objext \
17995    conftest$ac_exeext conftest.$ac_ext
17996LIBS=$ac_check_lib_save_LIBS
17997fi
17998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
17999$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18000if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18001  jpeg_lib=yes
18002else
18003  jpeg_lib=no
18004fi
18005
18006  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
18007    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
18008  fi
18009
18010  if test "x$with_jpeg_include_dir" != "x" ; then
18011    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
18012  fi
18013  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18014if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18015  jpeg_h=yes
18016else
18017  jpeg_h=no
18018fi
18019
18020
18021  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
18022    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
18023  fi
18024
18025  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
18026    HAVE_JPEG=yes
18027  fi
18028
18029fi
18030
18031if test "$HAVE_JPEG" = "yes" ; then
18032
18033$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
18034
18035  LIBS="-ljpeg $LIBS"
18036  tiff_libs_private="-ljpeg ${tiff_libs_private}"
18037
18038  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
18039    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
18040  fi
18041
18042fi
18043
18044
18045# Check whether --enable-old-jpeg was given.
18046if test "${enable_old_jpeg+set}" = set; then :
18047  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
18048else
18049  HAVE_OJPEG=yes
18050fi
18051
18052
18053if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
18054
18055$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
18056
18057else
18058  HAVE_OJPEG=no
18059fi
18060
18061
18062HAVE_JBIG=no
18063
18064# Check whether --enable-jbig was given.
18065if test "${enable_jbig+set}" = set; then :
18066  enableval=$enable_jbig;
18067fi
18068
18069
18070# Check whether --with-jbig-include-dir was given.
18071if test "${with_jbig_include_dir+set}" = set; then :
18072  withval=$with_jbig_include_dir;
18073fi
18074
18075
18076# Check whether --with-jbig-lib-dir was given.
18077if test "${with_jbig_lib_dir+set}" = set; then :
18078  withval=$with_jbig_lib_dir;
18079fi
18080
18081
18082if test "x$enable_jbig" != "xno" ; then
18083
18084  if test "x$with_jbig_lib_dir" != "x" ; then
18085    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
18086
18087  fi
18088
18089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
18090$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
18091if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
18092  $as_echo_n "(cached) " >&6
18093else
18094  ac_check_lib_save_LIBS=$LIBS
18095LIBS="-ljbig  $LIBS"
18096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097/* end confdefs.h.  */
18098
18099/* Override any GCC internal prototype to avoid an error.
18100   Use char because int might match the return type of a GCC
18101   builtin and then its argument prototype would still apply.  */
18102#ifdef __cplusplus
18103extern "C"
18104#endif
18105char jbg_dec_init ();
18106int
18107main ()
18108{
18109return jbg_dec_init ();
18110  ;
18111  return 0;
18112}
18113_ACEOF
18114if ac_fn_c_try_link "$LINENO"; then :
18115  ac_cv_lib_jbig_jbg_dec_init=yes
18116else
18117  ac_cv_lib_jbig_jbg_dec_init=no
18118fi
18119rm -f core conftest.err conftest.$ac_objext \
18120    conftest$ac_exeext conftest.$ac_ext
18121LIBS=$ac_check_lib_save_LIBS
18122fi
18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
18124$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
18125if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
18126  jbig_lib=yes
18127else
18128  jbig_lib=no
18129fi
18130
18131  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
18132    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
18133  fi
18134
18135  if test "x$with_jbig_include_dir" != "x" ; then
18136    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
18137  fi
18138  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
18139if test "x$ac_cv_header_jbig_h" = xyes; then :
18140  jbig_h=yes
18141else
18142  jbig_h=no
18143fi
18144
18145
18146  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
18147    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
18148  fi
18149
18150  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
18151    HAVE_JBIG=yes
18152  fi
18153
18154fi
18155
18156if test "$HAVE_JBIG" = "yes" ; then
18157
18158$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
18159
18160  LIBS="-ljbig $LIBS"
18161  tiff_libs_private="-ljbig ${tiff_libs_private}"
18162
18163  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18164    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18165  fi
18166
18167  # Older versions of jbigkit lack jbg_newlen
18168  for ac_func in jbg_newlen
18169do :
18170  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18171if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18172  cat >>confdefs.h <<_ACEOF
18173#define HAVE_JBG_NEWLEN 1
18174_ACEOF
18175
18176fi
18177done
18178
18179
18180fi
18181
18182
18183HAVE_LZMA=no
18184
18185# Check whether --enable-lzma was given.
18186if test "${enable_lzma+set}" = set; then :
18187  enableval=$enable_lzma;
18188fi
18189
18190
18191# Check whether --with-lzma-include-dir was given.
18192if test "${with_lzma_include_dir+set}" = set; then :
18193  withval=$with_lzma_include_dir;
18194fi
18195
18196
18197# Check whether --with-lzma-lib-dir was given.
18198if test "${with_lzma_lib_dir+set}" = set; then :
18199  withval=$with_lzma_lib_dir;
18200fi
18201
18202
18203if test "x$enable_lzma" != "xno" ; then
18204
18205  if test "x$with_lzma_lib_dir" != "x" ; then
18206    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18207  fi
18208
18209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18210$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18211if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18212  $as_echo_n "(cached) " >&6
18213else
18214  ac_check_lib_save_LIBS=$LIBS
18215LIBS="-llzma  $LIBS"
18216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217/* end confdefs.h.  */
18218
18219/* Override any GCC internal prototype to avoid an error.
18220   Use char because int might match the return type of a GCC
18221   builtin and then its argument prototype would still apply.  */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225char lzma_code ();
18226int
18227main ()
18228{
18229return lzma_code ();
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234if ac_fn_c_try_link "$LINENO"; then :
18235  ac_cv_lib_lzma_lzma_code=yes
18236else
18237  ac_cv_lib_lzma_lzma_code=no
18238fi
18239rm -f core conftest.err conftest.$ac_objext \
18240    conftest$ac_exeext conftest.$ac_ext
18241LIBS=$ac_check_lib_save_LIBS
18242fi
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18244$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18245if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18246  lzma_lib=yes
18247else
18248  lzma_lib=no
18249fi
18250
18251  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18252    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18253  fi
18254
18255  if test "x$with_lzma_include_dir" != "x" ; then
18256    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18257  fi
18258  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18259if test "x$ac_cv_header_lzma_h" = xyes; then :
18260  lzma_h=yes
18261else
18262  lzma_h=no
18263fi
18264
18265
18266  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18267    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18268  fi
18269
18270  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18271    HAVE_LZMA=yes
18272  fi
18273
18274fi
18275
18276if test "$HAVE_LZMA" = "yes" ; then
18277
18278$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18279
18280  LIBS="-llzma $LIBS"
18281  tiff_libs_private="-llzma ${tiff_libs_private}"
18282
18283  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18284    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18285  fi
18286
18287fi
18288
18289
18290HAVE_JPEG12=no
18291
18292# Check whether --enable-jpeg12 was given.
18293if test "${enable_jpeg12+set}" = set; then :
18294  enableval=$enable_jpeg12;
18295fi
18296
18297
18298# Check whether --with-jpeg12-include-dir was given.
18299if test "${with_jpeg12_include_dir+set}" = set; then :
18300  withval=$with_jpeg12_include_dir;
18301fi
18302
18303
18304# Check whether --with-jpeg12-lib was given.
18305if test "${with_jpeg12_lib+set}" = set; then :
18306  withval=$with_jpeg12_lib;
18307fi
18308
18309
18310if test "x$enable_jpeg12" == "xyes" ; then
18311
18312  if test "x$with_jpeg12_lib" != "x" ; then
18313    LIBS="$with_jpeg12_lib $LIBS"
18314  fi
18315
18316  HAVE_JPEG12=yes
18317
18318
18319$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18320
18321  if test "x$with_jpeg12_include_dir" != "x" ; then
18322
18323cat >>confdefs.h <<_ACEOF
18324#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18325_ACEOF
18326
18327  fi
18328fi
18329
18330
18331
18332# Check whether --enable-cxx was given.
18333if test "${enable_cxx+set}" = set; then :
18334  enableval=$enable_cxx; HAVE_CXX=$enableval
18335else
18336  HAVE_CXX=yes
18337fi
18338
18339
18340if test "$HAVE_CXX" = "yes" ; then
18341
18342$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18343
18344else
18345  HAVE_CXX=no
18346fi
18347
18348 if test "$HAVE_CXX" = "yes"; then
18349  HAVE_CXX_TRUE=
18350  HAVE_CXX_FALSE='#'
18351else
18352  HAVE_CXX_TRUE='#'
18353  HAVE_CXX_FALSE=
18354fi
18355
18356
18357
18358HAVE_OPENGL=no
18359
18360
18361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18362$as_echo_n "checking for X... " >&6; }
18363
18364
18365# Check whether --with-x was given.
18366if test "${with_x+set}" = set; then :
18367  withval=$with_x;
18368fi
18369
18370# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18371if test "x$with_x" = xno; then
18372  # The user explicitly disabled X.
18373  have_x=disabled
18374else
18375  case $x_includes,$x_libraries in #(
18376    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18377    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18378  $as_echo_n "(cached) " >&6
18379else
18380  # One or both of the vars are not set, and there is no cached value.
18381ac_x_includes=no ac_x_libraries=no
18382rm -f -r conftest.dir
18383if mkdir conftest.dir; then
18384  cd conftest.dir
18385  cat >Imakefile <<'_ACEOF'
18386incroot:
18387	@echo incroot='${INCROOT}'
18388usrlibdir:
18389	@echo usrlibdir='${USRLIBDIR}'
18390libdir:
18391	@echo libdir='${LIBDIR}'
18392_ACEOF
18393  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18394    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18395    for ac_var in incroot usrlibdir libdir; do
18396      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18397    done
18398    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18399    for ac_extension in a so sl dylib la dll; do
18400      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18401	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18402	ac_im_usrlibdir=$ac_im_libdir; break
18403      fi
18404    done
18405    # Screen out bogus values from the imake configuration.  They are
18406    # bogus both because they are the default anyway, and because
18407    # using them would break gcc on systems where it needs fixed includes.
18408    case $ac_im_incroot in
18409	/usr/include) ac_x_includes= ;;
18410	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18411    esac
18412    case $ac_im_usrlibdir in
18413	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18414	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18415    esac
18416  fi
18417  cd ..
18418  rm -f -r conftest.dir
18419fi
18420
18421# Standard set of common directories for X headers.
18422# Check X11 before X11Rn because it is often a symlink to the current release.
18423ac_x_header_dirs='
18424/usr/X11/include
18425/usr/X11R7/include
18426/usr/X11R6/include
18427/usr/X11R5/include
18428/usr/X11R4/include
18429
18430/usr/include/X11
18431/usr/include/X11R7
18432/usr/include/X11R6
18433/usr/include/X11R5
18434/usr/include/X11R4
18435
18436/usr/local/X11/include
18437/usr/local/X11R7/include
18438/usr/local/X11R6/include
18439/usr/local/X11R5/include
18440/usr/local/X11R4/include
18441
18442/usr/local/include/X11
18443/usr/local/include/X11R7
18444/usr/local/include/X11R6
18445/usr/local/include/X11R5
18446/usr/local/include/X11R4
18447
18448/usr/X386/include
18449/usr/x386/include
18450/usr/XFree86/include/X11
18451
18452/usr/include
18453/usr/local/include
18454/usr/unsupported/include
18455/usr/athena/include
18456/usr/local/x11r5/include
18457/usr/lpp/Xamples/include
18458
18459/usr/openwin/include
18460/usr/openwin/share/include'
18461
18462if test "$ac_x_includes" = no; then
18463  # Guess where to find include files, by looking for Xlib.h.
18464  # First, try using that file with no special directory specified.
18465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466/* end confdefs.h.  */
18467#include <X11/Xlib.h>
18468_ACEOF
18469if ac_fn_c_try_cpp "$LINENO"; then :
18470  # We can compile using X headers with no special include directory.
18471ac_x_includes=
18472else
18473  for ac_dir in $ac_x_header_dirs; do
18474  if test -r "$ac_dir/X11/Xlib.h"; then
18475    ac_x_includes=$ac_dir
18476    break
18477  fi
18478done
18479fi
18480rm -f conftest.err conftest.i conftest.$ac_ext
18481fi # $ac_x_includes = no
18482
18483if test "$ac_x_libraries" = no; then
18484  # Check for the libraries.
18485  # See if we find them without any special options.
18486  # Don't add to $LIBS permanently.
18487  ac_save_LIBS=$LIBS
18488  LIBS="-lX11 $LIBS"
18489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490/* end confdefs.h.  */
18491#include <X11/Xlib.h>
18492int
18493main ()
18494{
18495XrmInitialize ()
18496  ;
18497  return 0;
18498}
18499_ACEOF
18500if ac_fn_c_try_link "$LINENO"; then :
18501  LIBS=$ac_save_LIBS
18502# We can link X programs with no special library path.
18503ac_x_libraries=
18504else
18505  LIBS=$ac_save_LIBS
18506for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18507do
18508  # Don't even attempt the hair of trying to link an X program!
18509  for ac_extension in a so sl dylib la dll; do
18510    if test -r "$ac_dir/libX11.$ac_extension"; then
18511      ac_x_libraries=$ac_dir
18512      break 2
18513    fi
18514  done
18515done
18516fi
18517rm -f core conftest.err conftest.$ac_objext \
18518    conftest$ac_exeext conftest.$ac_ext
18519fi # $ac_x_libraries = no
18520
18521case $ac_x_includes,$ac_x_libraries in #(
18522  no,* | *,no | *\'*)
18523    # Didn't find X, or a directory has "'" in its name.
18524    ac_cv_have_x="have_x=no";; #(
18525  *)
18526    # Record where we found X for the cache.
18527    ac_cv_have_x="have_x=yes\
18528	ac_x_includes='$ac_x_includes'\
18529	ac_x_libraries='$ac_x_libraries'"
18530esac
18531fi
18532;; #(
18533    *) have_x=yes;;
18534  esac
18535  eval "$ac_cv_have_x"
18536fi # $with_x != no
18537
18538if test "$have_x" != yes; then
18539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18540$as_echo "$have_x" >&6; }
18541  no_x=yes
18542else
18543  # If each of the values was on the command line, it overrides each guess.
18544  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18545  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18546  # Update the cache value to reflect the command line values.
18547  ac_cv_have_x="have_x=yes\
18548	ac_x_includes='$x_includes'\
18549	ac_x_libraries='$x_libraries'"
18550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18551$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18552fi
18553
18554if test "$no_x" = yes; then
18555  # Not all programs may use this symbol, but it does not hurt to define it.
18556
18557$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18558
18559  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18560else
18561  if test -n "$x_includes"; then
18562    X_CFLAGS="$X_CFLAGS -I$x_includes"
18563  fi
18564
18565  # It would also be nice to do this for all -L options, not just this one.
18566  if test -n "$x_libraries"; then
18567    X_LIBS="$X_LIBS -L$x_libraries"
18568    # For Solaris; some versions of Sun CC require a space after -R and
18569    # others require no space.  Words are not sufficient . . . .
18570    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18571$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18572    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18573    ac_xsave_c_werror_flag=$ac_c_werror_flag
18574    ac_c_werror_flag=yes
18575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576/* end confdefs.h.  */
18577
18578int
18579main ()
18580{
18581
18582  ;
18583  return 0;
18584}
18585_ACEOF
18586if ac_fn_c_try_link "$LINENO"; then :
18587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588$as_echo "no" >&6; }
18589       X_LIBS="$X_LIBS -R$x_libraries"
18590else
18591  LIBS="$ac_xsave_LIBS -R $x_libraries"
18592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594
18595int
18596main ()
18597{
18598
18599  ;
18600  return 0;
18601}
18602_ACEOF
18603if ac_fn_c_try_link "$LINENO"; then :
18604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18605$as_echo "yes" >&6; }
18606	  X_LIBS="$X_LIBS -R $x_libraries"
18607else
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18609$as_echo "neither works" >&6; }
18610fi
18611rm -f core conftest.err conftest.$ac_objext \
18612    conftest$ac_exeext conftest.$ac_ext
18613fi
18614rm -f core conftest.err conftest.$ac_objext \
18615    conftest$ac_exeext conftest.$ac_ext
18616    ac_c_werror_flag=$ac_xsave_c_werror_flag
18617    LIBS=$ac_xsave_LIBS
18618  fi
18619
18620  # Check for system-dependent libraries X programs must link with.
18621  # Do this before checking for the system-independent R6 libraries
18622  # (-lICE), since we may need -lsocket or whatever for X linking.
18623
18624  if test "$ISC" = yes; then
18625    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18626  else
18627    # Martyn Johnson says this is needed for Ultrix, if the X
18628    # libraries were built with DECnet support.  And Karl Berry says
18629    # the Alpha needs dnet_stub (dnet does not exist).
18630    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18631    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18632/* end confdefs.h.  */
18633
18634/* Override any GCC internal prototype to avoid an error.
18635   Use char because int might match the return type of a GCC
18636   builtin and then its argument prototype would still apply.  */
18637#ifdef __cplusplus
18638extern "C"
18639#endif
18640char XOpenDisplay ();
18641int
18642main ()
18643{
18644return XOpenDisplay ();
18645  ;
18646  return 0;
18647}
18648_ACEOF
18649if ac_fn_c_try_link "$LINENO"; then :
18650
18651else
18652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18653$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18654if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18655  $as_echo_n "(cached) " >&6
18656else
18657  ac_check_lib_save_LIBS=$LIBS
18658LIBS="-ldnet  $LIBS"
18659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661
18662/* Override any GCC internal prototype to avoid an error.
18663   Use char because int might match the return type of a GCC
18664   builtin and then its argument prototype would still apply.  */
18665#ifdef __cplusplus
18666extern "C"
18667#endif
18668char dnet_ntoa ();
18669int
18670main ()
18671{
18672return dnet_ntoa ();
18673  ;
18674  return 0;
18675}
18676_ACEOF
18677if ac_fn_c_try_link "$LINENO"; then :
18678  ac_cv_lib_dnet_dnet_ntoa=yes
18679else
18680  ac_cv_lib_dnet_dnet_ntoa=no
18681fi
18682rm -f core conftest.err conftest.$ac_objext \
18683    conftest$ac_exeext conftest.$ac_ext
18684LIBS=$ac_check_lib_save_LIBS
18685fi
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18687$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18688if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18689  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18690fi
18691
18692    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18693      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18694$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18695if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18696  $as_echo_n "(cached) " >&6
18697else
18698  ac_check_lib_save_LIBS=$LIBS
18699LIBS="-ldnet_stub  $LIBS"
18700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702
18703/* Override any GCC internal prototype to avoid an error.
18704   Use char because int might match the return type of a GCC
18705   builtin and then its argument prototype would still apply.  */
18706#ifdef __cplusplus
18707extern "C"
18708#endif
18709char dnet_ntoa ();
18710int
18711main ()
18712{
18713return dnet_ntoa ();
18714  ;
18715  return 0;
18716}
18717_ACEOF
18718if ac_fn_c_try_link "$LINENO"; then :
18719  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18720else
18721  ac_cv_lib_dnet_stub_dnet_ntoa=no
18722fi
18723rm -f core conftest.err conftest.$ac_objext \
18724    conftest$ac_exeext conftest.$ac_ext
18725LIBS=$ac_check_lib_save_LIBS
18726fi
18727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18728$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18729if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18730  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18731fi
18732
18733    fi
18734fi
18735rm -f core conftest.err conftest.$ac_objext \
18736    conftest$ac_exeext conftest.$ac_ext
18737    LIBS="$ac_xsave_LIBS"
18738
18739    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
18740    # to get the SysV transport functions.
18741    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18742    # needs -lnsl.
18743    # The nsl library prevents programs from opening the X display
18744    # on Irix 5.2, according to T.E. Dickey.
18745    # The functions gethostbyname, getservbyname, and inet_addr are
18746    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18747    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18748if test "x$ac_cv_func_gethostbyname" = xyes; then :
18749
18750fi
18751
18752    if test $ac_cv_func_gethostbyname = no; then
18753      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18754$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18755if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18756  $as_echo_n "(cached) " >&6
18757else
18758  ac_check_lib_save_LIBS=$LIBS
18759LIBS="-lnsl  $LIBS"
18760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h.  */
18762
18763/* Override any GCC internal prototype to avoid an error.
18764   Use char because int might match the return type of a GCC
18765   builtin and then its argument prototype would still apply.  */
18766#ifdef __cplusplus
18767extern "C"
18768#endif
18769char gethostbyname ();
18770int
18771main ()
18772{
18773return gethostbyname ();
18774  ;
18775  return 0;
18776}
18777_ACEOF
18778if ac_fn_c_try_link "$LINENO"; then :
18779  ac_cv_lib_nsl_gethostbyname=yes
18780else
18781  ac_cv_lib_nsl_gethostbyname=no
18782fi
18783rm -f core conftest.err conftest.$ac_objext \
18784    conftest$ac_exeext conftest.$ac_ext
18785LIBS=$ac_check_lib_save_LIBS
18786fi
18787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18788$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18789if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18790  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18791fi
18792
18793      if test $ac_cv_lib_nsl_gethostbyname = no; then
18794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18795$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18796if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18797  $as_echo_n "(cached) " >&6
18798else
18799  ac_check_lib_save_LIBS=$LIBS
18800LIBS="-lbsd  $LIBS"
18801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802/* end confdefs.h.  */
18803
18804/* Override any GCC internal prototype to avoid an error.
18805   Use char because int might match the return type of a GCC
18806   builtin and then its argument prototype would still apply.  */
18807#ifdef __cplusplus
18808extern "C"
18809#endif
18810char gethostbyname ();
18811int
18812main ()
18813{
18814return gethostbyname ();
18815  ;
18816  return 0;
18817}
18818_ACEOF
18819if ac_fn_c_try_link "$LINENO"; then :
18820  ac_cv_lib_bsd_gethostbyname=yes
18821else
18822  ac_cv_lib_bsd_gethostbyname=no
18823fi
18824rm -f core conftest.err conftest.$ac_objext \
18825    conftest$ac_exeext conftest.$ac_ext
18826LIBS=$ac_check_lib_save_LIBS
18827fi
18828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18829$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18830if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18831  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18832fi
18833
18834      fi
18835    fi
18836
18837    # [email protected] says without -lsocket,
18838    # socket/setsockopt and other routines are undefined under SCO ODT
18839    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18840    # on later versions), says Simon Leinen: it contains gethostby*
18841    # variants that don't use the name server (or something).  -lsocket
18842    # must be given before -lnsl if both are needed.  We assume that
18843    # if connect needs -lnsl, so does gethostbyname.
18844    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18845if test "x$ac_cv_func_connect" = xyes; then :
18846
18847fi
18848
18849    if test $ac_cv_func_connect = no; then
18850      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18851$as_echo_n "checking for connect in -lsocket... " >&6; }
18852if ${ac_cv_lib_socket_connect+:} false; then :
18853  $as_echo_n "(cached) " >&6
18854else
18855  ac_check_lib_save_LIBS=$LIBS
18856LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858/* end confdefs.h.  */
18859
18860/* Override any GCC internal prototype to avoid an error.
18861   Use char because int might match the return type of a GCC
18862   builtin and then its argument prototype would still apply.  */
18863#ifdef __cplusplus
18864extern "C"
18865#endif
18866char connect ();
18867int
18868main ()
18869{
18870return connect ();
18871  ;
18872  return 0;
18873}
18874_ACEOF
18875if ac_fn_c_try_link "$LINENO"; then :
18876  ac_cv_lib_socket_connect=yes
18877else
18878  ac_cv_lib_socket_connect=no
18879fi
18880rm -f core conftest.err conftest.$ac_objext \
18881    conftest$ac_exeext conftest.$ac_ext
18882LIBS=$ac_check_lib_save_LIBS
18883fi
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18885$as_echo "$ac_cv_lib_socket_connect" >&6; }
18886if test "x$ac_cv_lib_socket_connect" = xyes; then :
18887  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18888fi
18889
18890    fi
18891
18892    # Guillermo Gomez says -lposix is necessary on A/UX.
18893    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18894if test "x$ac_cv_func_remove" = xyes; then :
18895
18896fi
18897
18898    if test $ac_cv_func_remove = no; then
18899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18900$as_echo_n "checking for remove in -lposix... " >&6; }
18901if ${ac_cv_lib_posix_remove+:} false; then :
18902  $as_echo_n "(cached) " >&6
18903else
18904  ac_check_lib_save_LIBS=$LIBS
18905LIBS="-lposix  $LIBS"
18906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907/* end confdefs.h.  */
18908
18909/* Override any GCC internal prototype to avoid an error.
18910   Use char because int might match the return type of a GCC
18911   builtin and then its argument prototype would still apply.  */
18912#ifdef __cplusplus
18913extern "C"
18914#endif
18915char remove ();
18916int
18917main ()
18918{
18919return remove ();
18920  ;
18921  return 0;
18922}
18923_ACEOF
18924if ac_fn_c_try_link "$LINENO"; then :
18925  ac_cv_lib_posix_remove=yes
18926else
18927  ac_cv_lib_posix_remove=no
18928fi
18929rm -f core conftest.err conftest.$ac_objext \
18930    conftest$ac_exeext conftest.$ac_ext
18931LIBS=$ac_check_lib_save_LIBS
18932fi
18933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18934$as_echo "$ac_cv_lib_posix_remove" >&6; }
18935if test "x$ac_cv_lib_posix_remove" = xyes; then :
18936  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18937fi
18938
18939    fi
18940
18941    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18942    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18943if test "x$ac_cv_func_shmat" = xyes; then :
18944
18945fi
18946
18947    if test $ac_cv_func_shmat = no; then
18948      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18949$as_echo_n "checking for shmat in -lipc... " >&6; }
18950if ${ac_cv_lib_ipc_shmat+:} false; then :
18951  $as_echo_n "(cached) " >&6
18952else
18953  ac_check_lib_save_LIBS=$LIBS
18954LIBS="-lipc  $LIBS"
18955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956/* end confdefs.h.  */
18957
18958/* Override any GCC internal prototype to avoid an error.
18959   Use char because int might match the return type of a GCC
18960   builtin and then its argument prototype would still apply.  */
18961#ifdef __cplusplus
18962extern "C"
18963#endif
18964char shmat ();
18965int
18966main ()
18967{
18968return shmat ();
18969  ;
18970  return 0;
18971}
18972_ACEOF
18973if ac_fn_c_try_link "$LINENO"; then :
18974  ac_cv_lib_ipc_shmat=yes
18975else
18976  ac_cv_lib_ipc_shmat=no
18977fi
18978rm -f core conftest.err conftest.$ac_objext \
18979    conftest$ac_exeext conftest.$ac_ext
18980LIBS=$ac_check_lib_save_LIBS
18981fi
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18983$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18984if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18985  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18986fi
18987
18988    fi
18989  fi
18990
18991  # Check for libraries that X11R6 Xt/Xaw programs need.
18992  ac_save_LDFLAGS=$LDFLAGS
18993  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18994  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18995  # check for ICE first), but we must link in the order -lSM -lICE or
18996  # we get undefined symbols.  So assume we have SM if we have ICE.
18997  # These have to be linked with before -lX11, unlike the other
18998  # libraries we check for below, so use a different variable.
18999  # John Interrante, Karl Berry
19000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19001$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19002if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19003  $as_echo_n "(cached) " >&6
19004else
19005  ac_check_lib_save_LIBS=$LIBS
19006LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008/* end confdefs.h.  */
19009
19010/* Override any GCC internal prototype to avoid an error.
19011   Use char because int might match the return type of a GCC
19012   builtin and then its argument prototype would still apply.  */
19013#ifdef __cplusplus
19014extern "C"
19015#endif
19016char IceConnectionNumber ();
19017int
19018main ()
19019{
19020return IceConnectionNumber ();
19021  ;
19022  return 0;
19023}
19024_ACEOF
19025if ac_fn_c_try_link "$LINENO"; then :
19026  ac_cv_lib_ICE_IceConnectionNumber=yes
19027else
19028  ac_cv_lib_ICE_IceConnectionNumber=no
19029fi
19030rm -f core conftest.err conftest.$ac_objext \
19031    conftest$ac_exeext conftest.$ac_ext
19032LIBS=$ac_check_lib_save_LIBS
19033fi
19034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19035$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19036if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19037  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19038fi
19039
19040  LDFLAGS=$ac_save_LDFLAGS
19041
19042fi
19043
19044
19045
19046
19047
19048ac_ext=c
19049ac_cpp='$CPP $CPPFLAGS'
19050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052ac_compiler_gnu=$ac_cv_c_compiler_gnu
19053
19054ax_pthread_ok=no
19055
19056
19057if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19058        save_CFLAGS="$CFLAGS"
19059        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19060        save_LIBS="$LIBS"
19061        LIBS="$PTHREAD_LIBS $LIBS"
19062        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19063$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19064        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065/* end confdefs.h.  */
19066
19067/* Override any GCC internal prototype to avoid an error.
19068   Use char because int might match the return type of a GCC
19069   builtin and then its argument prototype would still apply.  */
19070#ifdef __cplusplus
19071extern "C"
19072#endif
19073char pthread_join ();
19074int
19075main ()
19076{
19077return pthread_join ();
19078  ;
19079  return 0;
19080}
19081_ACEOF
19082if ac_fn_c_try_link "$LINENO"; then :
19083  ax_pthread_ok=yes
19084fi
19085rm -f core conftest.err conftest.$ac_objext \
19086    conftest$ac_exeext conftest.$ac_ext
19087        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19088$as_echo "$ax_pthread_ok" >&6; }
19089        if test x"$ax_pthread_ok" = xno; then
19090                PTHREAD_LIBS=""
19091                PTHREAD_CFLAGS=""
19092        fi
19093        LIBS="$save_LIBS"
19094        CFLAGS="$save_CFLAGS"
19095fi
19096
19097
19098
19099ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19100
19101
19102
19103case "${host_cpu}-${host_os}" in
19104        *solaris*)
19105
19106
19107        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19108        ;;
19109
19110	*-darwin*)
19111	ax_pthread_flags="-pthread $ax_pthread_flags"
19112	;;
19113esac
19114
19115if test x"$ax_pthread_ok" = xno; then
19116for flag in $ax_pthread_flags; do
19117
19118        case $flag in
19119                none)
19120                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19121$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19122                ;;
19123
19124                -*)
19125                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19126$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19127                PTHREAD_CFLAGS="$flag"
19128                ;;
19129
19130		pthread-config)
19131		# Extract the first word of "pthread-config", so it can be a program name with args.
19132set dummy pthread-config; ac_word=$2
19133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19134$as_echo_n "checking for $ac_word... " >&6; }
19135if ${ac_cv_prog_ax_pthread_config+:} false; then :
19136  $as_echo_n "(cached) " >&6
19137else
19138  if test -n "$ax_pthread_config"; then
19139  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19140else
19141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142for as_dir in $PATH
19143do
19144  IFS=$as_save_IFS
19145  test -z "$as_dir" && as_dir=.
19146    for ac_exec_ext in '' $ac_executable_extensions; do
19147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19148    ac_cv_prog_ax_pthread_config="yes"
19149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19150    break 2
19151  fi
19152done
19153  done
19154IFS=$as_save_IFS
19155
19156  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19157fi
19158fi
19159ax_pthread_config=$ac_cv_prog_ax_pthread_config
19160if test -n "$ax_pthread_config"; then
19161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19162$as_echo "$ax_pthread_config" >&6; }
19163else
19164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165$as_echo "no" >&6; }
19166fi
19167
19168
19169		if test x"$ax_pthread_config" = xno; then continue; fi
19170		PTHREAD_CFLAGS="`pthread-config --cflags`"
19171		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19172		;;
19173
19174                *)
19175                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19176$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19177                PTHREAD_LIBS="-l$flag"
19178                ;;
19179        esac
19180
19181        save_LIBS="$LIBS"
19182        save_CFLAGS="$CFLAGS"
19183        LIBS="$PTHREAD_LIBS $LIBS"
19184        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19185
19186                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187/* end confdefs.h.  */
19188#include <pthread.h>
19189	             static void routine(void* a) {a=0;}
19190	             static void* start_routine(void* a) {return a;}
19191int
19192main ()
19193{
19194pthread_t th; pthread_attr_t attr;
19195                     pthread_create(&th,0,start_routine,0);
19196                     pthread_join(th, 0);
19197                     pthread_attr_init(&attr);
19198                     pthread_cleanup_push(routine, 0);
19199                     pthread_cleanup_pop(0);
19200  ;
19201  return 0;
19202}
19203_ACEOF
19204if ac_fn_c_try_link "$LINENO"; then :
19205  ax_pthread_ok=yes
19206fi
19207rm -f core conftest.err conftest.$ac_objext \
19208    conftest$ac_exeext conftest.$ac_ext
19209
19210        LIBS="$save_LIBS"
19211        CFLAGS="$save_CFLAGS"
19212
19213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19214$as_echo "$ax_pthread_ok" >&6; }
19215        if test "x$ax_pthread_ok" = xyes; then
19216                break;
19217        fi
19218
19219        PTHREAD_LIBS=""
19220        PTHREAD_CFLAGS=""
19221done
19222fi
19223
19224if test "x$ax_pthread_ok" = xyes; then
19225        save_LIBS="$LIBS"
19226        LIBS="$PTHREAD_LIBS $LIBS"
19227        save_CFLAGS="$CFLAGS"
19228        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19229
19230        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19231$as_echo_n "checking for joinable pthread attribute... " >&6; }
19232	attr_name=unknown
19233	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19234	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235/* end confdefs.h.  */
19236#include <pthread.h>
19237int
19238main ()
19239{
19240int attr=$attr; return attr;
19241  ;
19242  return 0;
19243}
19244_ACEOF
19245if ac_fn_c_try_link "$LINENO"; then :
19246  attr_name=$attr; break
19247fi
19248rm -f core conftest.err conftest.$ac_objext \
19249    conftest$ac_exeext conftest.$ac_ext
19250	done
19251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19252$as_echo "$attr_name" >&6; }
19253        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19254
19255cat >>confdefs.h <<_ACEOF
19256#define PTHREAD_CREATE_JOINABLE $attr_name
19257_ACEOF
19258
19259        fi
19260
19261        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19262$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19263        flag=no
19264        case "${host_cpu}-${host_os}" in
19265            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19266            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19267        esac
19268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19269$as_echo "${flag}" >&6; }
19270        if test "x$flag" != xno; then
19271            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19272        fi
19273
19274        LIBS="$save_LIBS"
19275        CFLAGS="$save_CFLAGS"
19276
19277        	if test x"$GCC" != xyes; then
19278          for ac_prog in xlc_r cc_r
19279do
19280  # Extract the first word of "$ac_prog", so it can be a program name with args.
19281set dummy $ac_prog; ac_word=$2
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19283$as_echo_n "checking for $ac_word... " >&6; }
19284if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19285  $as_echo_n "(cached) " >&6
19286else
19287  if test -n "$PTHREAD_CC"; then
19288  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19289else
19290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19291for as_dir in $PATH
19292do
19293  IFS=$as_save_IFS
19294  test -z "$as_dir" && as_dir=.
19295    for ac_exec_ext in '' $ac_executable_extensions; do
19296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19297    ac_cv_prog_PTHREAD_CC="$ac_prog"
19298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19299    break 2
19300  fi
19301done
19302  done
19303IFS=$as_save_IFS
19304
19305fi
19306fi
19307PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19308if test -n "$PTHREAD_CC"; then
19309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19310$as_echo "$PTHREAD_CC" >&6; }
19311else
19312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313$as_echo "no" >&6; }
19314fi
19315
19316
19317  test -n "$PTHREAD_CC" && break
19318done
19319test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19320
19321        else
19322          PTHREAD_CC=$CC
19323	fi
19324else
19325        PTHREAD_CC="$CC"
19326fi
19327
19328
19329
19330
19331
19332if test x"$ax_pthread_ok" = xyes; then
19333
19334$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19335
19336        :
19337else
19338        ax_pthread_ok=no
19339
19340fi
19341ac_ext=c
19342ac_cpp='$CPP $CPPFLAGS'
19343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346
19347
19348
19349
19350ac_ext=c
19351ac_cpp='$CPP $CPPFLAGS'
19352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19357$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19358if ${ax_cv_c_compiler_ms+:} false; then :
19359  $as_echo_n "(cached) " >&6
19360else
19361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362/* end confdefs.h.  */
19363
19364int
19365main ()
19366{
19367#ifndef _MSC_VER
19368       choke me
19369#endif
19370
19371  ;
19372  return 0;
19373}
19374_ACEOF
19375if ac_fn_c_try_compile "$LINENO"; then :
19376  ax_compiler_ms=yes
19377else
19378  ax_compiler_ms=no
19379fi
19380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381ax_cv_c_compiler_ms=$ax_compiler_ms
19382
19383fi
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19385$as_echo "$ax_cv_c_compiler_ms" >&6; }
19386if test X$ax_compiler_ms = Xno; then :
19387  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19388fi
19389
19390if test "X$no_x" != "Xyes"; then :
19391  if test -n "$x_includes"; then :
19392  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19393fi
19394       if test -n "$x_libraries"; then :
19395  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19396fi
19397fi
19398
19399ax_save_CPPFLAGS="${CPPFLAGS}"
19400CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19401for ac_header in GL/gl.h OpenGL/gl.h
19402do :
19403  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19404ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19405if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19406  cat >>confdefs.h <<_ACEOF
19407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19408_ACEOF
19409
19410fi
19411
19412done
19413
19414CPPFLAGS="${ax_save_CPPFLAGS}"
19415
19416for ac_header in windows.h
19417do :
19418  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19419if test "x$ac_cv_header_windows_h" = xyes; then :
19420  cat >>confdefs.h <<_ACEOF
19421#define HAVE_WINDOWS_H 1
19422_ACEOF
19423
19424fi
19425
19426done
19427
19428
19429
19430
19431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19432$as_echo_n "checking for OpenGL library... " >&6; }
19433if ${ax_cv_check_gl_libgl+:} false; then :
19434  $as_echo_n "(cached) " >&6
19435else
19436  ax_cv_check_gl_libgl="no"
19437case $host_cpu in
19438  x86_64) ax_check_gl_libdir=lib64 ;;
19439  *)      ax_check_gl_libdir=lib ;;
19440esac
19441ax_save_CPPFLAGS="${CPPFLAGS}"
19442CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19443ax_save_LIBS="${LIBS}"
19444LIBS=""
19445ax_check_libs="-lopengl32 -lGL"
19446for ax_lib in ${ax_check_libs}; do
19447  if test X$ax_compiler_ms = Xyes; then :
19448  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19449else
19450  ax_try_lib="${ax_lib}"
19451fi
19452  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454/* end confdefs.h.  */
19455
19456# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19457#   include <windows.h>
19458# endif
19459# ifdef HAVE_GL_GL_H
19460#   include <GL/gl.h>
19461# elif defined(HAVE_OPENGL_GL_H)
19462#   include <OpenGL/gl.h>
19463# else
19464#   error no gl.h
19465# endif
19466int
19467main ()
19468{
19469glBegin(0)
19470  ;
19471  return 0;
19472}
19473_ACEOF
19474if ac_fn_c_try_link "$LINENO"; then :
19475  ax_cv_check_gl_libgl="${ax_try_lib}"; break
19476else
19477  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}"
19478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479/* end confdefs.h.  */
19480
19481# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19482#   include <windows.h>
19483# endif
19484# ifdef HAVE_GL_GL_H
19485#   include <GL/gl.h>
19486# elif defined(HAVE_OPENGL_GL_H)
19487#   include <OpenGL/gl.h>
19488# else
19489#   error no gl.h
19490# endif
19491int
19492main ()
19493{
19494glBegin(0)
19495  ;
19496  return 0;
19497}
19498_ACEOF
19499if ac_fn_c_try_link "$LINENO"; then :
19500  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19501else
19502  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}"
19503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504/* end confdefs.h.  */
19505
19506# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19507#   include <windows.h>
19508# endif
19509# ifdef HAVE_GL_GL_H
19510#   include <GL/gl.h>
19511# elif defined(HAVE_OPENGL_GL_H)
19512#   include <OpenGL/gl.h>
19513# else
19514#   error no gl.h
19515# endif
19516int
19517main ()
19518{
19519glBegin(0)
19520  ;
19521  return 0;
19522}
19523_ACEOF
19524if ac_fn_c_try_link "$LINENO"; then :
19525  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19526fi
19527rm -f core conftest.err conftest.$ac_objext \
19528    conftest$ac_exeext conftest.$ac_ext
19529fi
19530rm -f core conftest.err conftest.$ac_objext \
19531    conftest$ac_exeext conftest.$ac_ext
19532fi
19533rm -f core conftest.err conftest.$ac_objext \
19534    conftest$ac_exeext conftest.$ac_ext
19535done
19536
19537if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19538  LIBS='-framework OpenGL'
19539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540/* end confdefs.h.  */
19541
19542# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19543#   include <windows.h>
19544# endif
19545# ifdef HAVE_GL_GL_H
19546#   include <GL/gl.h>
19547# elif defined(HAVE_OPENGL_GL_H)
19548#   include <OpenGL/gl.h>
19549# else
19550#   error no gl.h
19551# endif
19552int
19553main ()
19554{
19555glBegin(0)
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560if ac_fn_c_try_link "$LINENO"; then :
19561  ax_cv_check_gl_libgl="$LIBS"
19562fi
19563rm -f core conftest.err conftest.$ac_objext \
19564    conftest$ac_exeext conftest.$ac_ext
19565fi
19566
19567LIBS=${ax_save_LIBS}
19568CPPFLAGS=${ax_save_CPPFLAGS}
19569fi
19570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19571$as_echo "$ax_cv_check_gl_libgl" >&6; }
19572
19573if test "X$ax_cv_check_gl_libgl" = Xno; then :
19574  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
19575else
19576  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
19577fi
19578ac_ext=c
19579ac_cpp='$CPP $CPPFLAGS'
19580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582ac_compiler_gnu=$ac_cv_c_compiler_gnu
19583
19584
19585
19586
19587
19588
19589GLU_CFLAGS="${GL_CFLAGS}"
19590
19591ax_save_CPPFLAGS="${CPPFLAGS}"
19592CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19593for ac_header in GL/glu.h OpenGL/glu.h
19594do :
19595  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19598  cat >>confdefs.h <<_ACEOF
19599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19600_ACEOF
19601
19602fi
19603
19604done
19605
19606CPPFLAGS="${ax_save_CPPFLAGS}"
19607
19608
19609
19610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
19611$as_echo_n "checking for OpenGL Utility library... " >&6; }
19612if ${ax_cv_check_glu_libglu+:} false; then :
19613  $as_echo_n "(cached) " >&6
19614else
19615  ax_cv_check_glu_libglu="no"
19616ax_save_CPPFLAGS="${CPPFLAGS}"
19617CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19618ax_save_LIBS="${LIBS}"
19619
19620LIBS="${GL_LIBS} ${ax_save_LIBS}"
19621ac_ext=cpp
19622ac_cpp='$CXXCPP $CPPFLAGS'
19623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19626
19627if test X$ax_compiler_ms = Xyes; then :
19628  ac_ext=c
19629ac_cpp='$CPP $CPPFLAGS'
19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634fi
19635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636/* end confdefs.h.  */
19637
19638# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19639#   include <windows.h>
19640# endif
19641# ifdef HAVE_GL_GLU_H
19642#   include <GL/glu.h>
19643# elif defined(HAVE_OPENGL_GLU_H)
19644#   include <OpenGL/glu.h>
19645# else
19646#   error no glu.h
19647# endif
19648int
19649main ()
19650{
19651gluBeginCurve(0)
19652  ;
19653  return 0;
19654}
19655_ACEOF
19656if ac_fn_c_try_link "$LINENO"; then :
19657  ax_cv_check_glu_libglu=yes
19658else
19659  LIBS=""
19660ax_check_libs="-lglu32 -lGLU"
19661for ax_lib in ${ax_check_libs}; do
19662  if test X$ax_compiler_ms = Xyes; then :
19663  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19664else
19665  ax_try_lib="${ax_lib}"
19666fi
19667  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19669/* end confdefs.h.  */
19670
19671# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19672#   include <windows.h>
19673# endif
19674# ifdef HAVE_GL_GLU_H
19675#   include <GL/glu.h>
19676# elif defined(HAVE_OPENGL_GLU_H)
19677#   include <OpenGL/glu.h>
19678# else
19679#   error no glu.h
19680# endif
19681int
19682main ()
19683{
19684gluBeginCurve(0)
19685  ;
19686  return 0;
19687}
19688_ACEOF
19689if ac_fn_c_try_link "$LINENO"; then :
19690  ax_cv_check_glu_libglu="${ax_try_lib}"; break
19691fi
19692rm -f core conftest.err conftest.$ac_objext \
19693    conftest$ac_exeext conftest.$ac_ext
19694done
19695
19696fi
19697rm -f core conftest.err conftest.$ac_objext \
19698    conftest$ac_exeext conftest.$ac_ext
19699if test X$ax_compiler_ms = Xyes; then :
19700  ac_ext=cpp
19701ac_cpp='$CXXCPP $CPPFLAGS'
19702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
19706fi
19707ac_ext=c
19708ac_cpp='$CPP $CPPFLAGS'
19709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711ac_compiler_gnu=$ac_cv_c_compiler_gnu
19712
19713
19714LIBS=${ax_save_LIBS}
19715CPPFLAGS=${ax_save_CPPFLAGS}
19716fi
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19718$as_echo "$ax_cv_check_glu_libglu" >&6; }
19719if test "X$ax_cv_check_glu_libglu" = Xno; then :
19720  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19721else
19722  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19723  GLU_LIBS="$GL_LIBS"
19724else
19725  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19726fi
19727fi
19728
19729
19730
19731if test "X$ax_cv_check_glu_libglu" != Xno; then :
19732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
19733$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
19734if ${ax_cv_varargs_glu_tesscb+:} false; then :
19735  $as_echo_n "(cached) " >&6
19736else
19737  ax_cv_varargs_glu_tesscb=no
19738ax_save_CFLAGS="$CFLAGS"
19739CFLAGS="$GL_CFLAGS $CFLAGS"
19740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741/* end confdefs.h.  */
19742
19743# ifdef HAVE_GL_GLU_H
19744#   include <GL/glu.h>
19745# else
19746#   include <OpenGL/glu.h>
19747# endif
19748int
19749main ()
19750{
19751GLvoid (*func)(...); gluTessCallback(0, 0, func)
19752  ;
19753  return 0;
19754}
19755_ACEOF
19756if ac_fn_c_try_compile "$LINENO"; then :
19757  ax_cv_varargs_glu_tesscb=yes
19758fi
19759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760CFLAGS="$ax_save_CFLAGS"
19761fi
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19763$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19764if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
19765
19766$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19767
19768fi
19769fi
19770
19771
19772
19773ax_save_CPPFLAGS="${CPPFLAGS}"
19774CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19775for ac_header in GL/glut.h GLUT/glut.h
19776do :
19777  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19780  cat >>confdefs.h <<_ACEOF
19781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19782_ACEOF
19783
19784fi
19785
19786done
19787
19788CPPFLAGS="${ax_save_CPPFLAGS}"
19789
19790GLUT_CFLAGS=${GLU_CFLAGS}
19791GLUT_LIBS=${GLU_LIBS}
19792
19793
19794
19795if test X$no_x != Xyes; then :
19796  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19797fi
19798
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19800$as_echo_n "checking for GLUT library... " >&6; }
19801if ${ax_cv_check_glut_libglut+:} false; then :
19802  $as_echo_n "(cached) " >&6
19803else
19804  ax_cv_check_glut_libglut="no"
19805ac_ext=c
19806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811ax_save_CPPFLAGS="${CPPFLAGS}"
19812CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19813ax_save_LIBS="${LIBS}"
19814LIBS=""
19815ax_check_libs="-lglut32 -lglut"
19816for ax_lib in ${ax_check_libs}; do
19817  if test X$ax_compiler_ms = Xyes; then :
19818  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19819else
19820  ax_try_lib="${ax_lib}"
19821fi
19822  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824/* end confdefs.h.  */
19825
19826# if HAVE_WINDOWS_H && defined(_WIN32)
19827#   include <windows.h>
19828# endif
19829# ifdef HAVE_GL_GLUT_H
19830#   include <GL/glut.h>
19831# elif defined(HAVE_GLUT_GLUT_H)
19832#   include <GLUT/glut.h>
19833# else
19834#   error no glut.h
19835# endif
19836int
19837main ()
19838{
19839glutMainLoop()
19840  ;
19841  return 0;
19842}
19843_ACEOF
19844if ac_fn_c_try_link "$LINENO"; then :
19845  ax_cv_check_glut_libglut="${ax_try_lib}"; break
19846fi
19847rm -f core conftest.err conftest.$ac_objext \
19848    conftest$ac_exeext conftest.$ac_ext
19849done
19850
19851if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19852  LIBS='-framework GLUT'
19853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854/* end confdefs.h.  */
19855
19856# if HAVE_WINDOWS_H && defined(_WIN32)
19857#   include <windows.h>
19858# endif
19859# ifdef HAVE_GL_GLUT_H
19860#   include <GL/glut.h>
19861# elif defined(HAVE_GLUT_GLUT_H)
19862#   include <GLUT/glut.h>
19863# else
19864#   error no glut.h
19865# endif
19866int
19867main ()
19868{
19869glutMainLoop()
19870  ;
19871  return 0;
19872}
19873_ACEOF
19874if ac_fn_c_try_link "$LINENO"; then :
19875  ax_cv_check_glut_libglut="$LIBS"
19876fi
19877rm -f core conftest.err conftest.$ac_objext \
19878    conftest$ac_exeext conftest.$ac_ext
19879fi
19880
19881CPPFLAGS="${ax_save_CPPFLAGS}"
19882LIBS="${ax_save_LIBS}"
19883ac_ext=c
19884ac_cpp='$CPP $CPPFLAGS'
19885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19887ac_compiler_gnu=$ac_cv_c_compiler_gnu
19888
19889fi
19890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19891$as_echo "$ax_cv_check_glut_libglut" >&6; }
19892
19893if test "X$ax_cv_check_glut_libglut" = Xno; then :
19894  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19895else
19896  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19897fi
19898
19899
19900
19901
19902
19903if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19904	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19905  HAVE_OPENGL=yes
19906fi
19907
19908 if test "$HAVE_OPENGL" = "yes"; then
19909  HAVE_OPENGL_TRUE=
19910  HAVE_OPENGL_FALSE='#'
19911else
19912  HAVE_OPENGL_TRUE='#'
19913  HAVE_OPENGL_FALSE=
19914fi
19915
19916
19917
19918win32_io_ok=no
19919case "${host_os}" in
19920    cygwin*)
19921        ;;
19922    *)
19923        if test x"$ac_cv_header_windows_h" = xyes; then
19924            win32_io_ok=yes
19925
19926$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
19927
19928	fi
19929        ;;
19930esac
19931 if test "$win32_io_ok" = yes; then
19932  WIN32_IO_TRUE=
19933  WIN32_IO_FALSE='#'
19934else
19935  WIN32_IO_TRUE='#'
19936  WIN32_IO_FALSE=
19937fi
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947# Check whether --enable-strip-chopping was given.
19948if test "${enable_strip_chopping+set}" = set; then :
19949  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
19950else
19951  HAVE_STRIPCHOP=yes
19952fi
19953
19954
19955# Check whether --with-default-strip-size was given.
19956if test "${with_default_strip_size+set}" = set; then :
19957  withval=$with_default_strip_size;
19958fi
19959
19960
19961if test "$HAVE_STRIPCHOP" = "yes" \
19962	-a "x$with_default_strip_size" != "xno"; then
19963
19964$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
19965
19966
19967  if test "x$with_default_strip_size" = "x" \
19968	  -o "x$with_default_strip_size" = "xyes"; then
19969    with_default_strip_size="8192"
19970  fi
19971
19972
19973cat >>confdefs.h <<_ACEOF
19974#define STRIP_SIZE_DEFAULT $with_default_strip_size
19975_ACEOF
19976
19977
19978fi
19979
19980
19981# Check whether --enable-defer-strile-load was given.
19982if test "${enable_defer_strile_load+set}" = set; then :
19983  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
19984else
19985  HAVE_DEFER_STRILE_LOAD=no
19986fi
19987
19988
19989if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
19990
19991$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
19992
19993
19994fi
19995
19996
19997# Check whether --enable-chunky-strip-read was given.
19998if test "${enable_chunky_strip_read+set}" = set; then :
19999  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
20000else
20001  HAVE_CHUNKY_STRIP_READ=no
20002fi
20003
20004
20005if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
20006
20007$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
20008
20009
20010fi
20011
20012
20013$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
20014
20015
20016
20017# Check whether --enable-extrasample-as-alpha was given.
20018if test "${enable_extrasample_as_alpha+set}" = set; then :
20019  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20020else
20021  HAVE_EXTRASAMPLE_AS_ALPHA=yes
20022fi
20023
20024
20025if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20026
20027$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
20028
20029fi
20030
20031
20032# Check whether --enable-check-ycbcr-subsampling was given.
20033if test "${enable_check_ycbcr_subsampling+set}" = set; then :
20034  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20035else
20036  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20037fi
20038
20039
20040if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20041
20042$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
20043
20044fi
20045
20046
20047
20048
20049ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20050
20051
20052ac_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"
20053
20054cat >confcache <<\_ACEOF
20055# This file is a shell script that caches the results of configure
20056# tests run on this system so they can be shared between configure
20057# scripts and configure runs, see configure's option --config-cache.
20058# It is not useful on other systems.  If it contains results you don't
20059# want to keep, you may remove or edit it.
20060#
20061# config.status only pays attention to the cache file if you give it
20062# the --recheck option to rerun configure.
20063#
20064# `ac_cv_env_foo' variables (set or unset) will be overridden when
20065# loading this file, other *unset* `ac_cv_foo' will be assigned the
20066# following values.
20067
20068_ACEOF
20069
20070# The following way of writing the cache mishandles newlines in values,
20071# but we know of no workaround that is simple, portable, and efficient.
20072# So, we kill variables containing newlines.
20073# Ultrix sh set writes to stderr and can't be redirected directly,
20074# and sets the high bit in the cache file unless we assign to the vars.
20075(
20076  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20077    eval ac_val=\$$ac_var
20078    case $ac_val in #(
20079    *${as_nl}*)
20080      case $ac_var in #(
20081      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20083      esac
20084      case $ac_var in #(
20085      _ | IFS | as_nl) ;; #(
20086      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20087      *) { eval $ac_var=; unset $ac_var;} ;;
20088      esac ;;
20089    esac
20090  done
20091
20092  (set) 2>&1 |
20093    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20094    *${as_nl}ac_space=\ *)
20095      # `set' does not quote correctly, so add quotes: double-quote
20096      # substitution turns \\\\ into \\, and sed turns \\ into \.
20097      sed -n \
20098	"s/'/'\\\\''/g;
20099	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20100      ;; #(
20101    *)
20102      # `set' quotes correctly as required by POSIX, so do not add quotes.
20103      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20104      ;;
20105    esac |
20106    sort
20107) |
20108  sed '
20109     /^ac_cv_env_/b end
20110     t clear
20111     :clear
20112     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20113     t end
20114     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20115     :end' >>confcache
20116if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20117  if test -w "$cache_file"; then
20118    if test "x$cache_file" != "x/dev/null"; then
20119      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20120$as_echo "$as_me: updating cache $cache_file" >&6;}
20121      if test ! -f "$cache_file" || test -h "$cache_file"; then
20122	cat confcache >"$cache_file"
20123      else
20124        case $cache_file in #(
20125        */* | ?:*)
20126	  mv -f confcache "$cache_file"$$ &&
20127	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20128        *)
20129	  mv -f confcache "$cache_file" ;;
20130	esac
20131      fi
20132    fi
20133  else
20134    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20135$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20136  fi
20137fi
20138rm -f confcache
20139
20140test "x$prefix" = xNONE && prefix=$ac_default_prefix
20141# Let make expand exec_prefix.
20142test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20143
20144DEFS=-DHAVE_CONFIG_H
20145
20146ac_libobjs=
20147ac_ltlibobjs=
20148U=
20149for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20150  # 1. Remove the extension, and $U if already installed.
20151  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20152  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20153  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20154  #    will be set to the directory where LIBOBJS objects are built.
20155  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20156  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20157done
20158LIBOBJS=$ac_libobjs
20159
20160LTLIBOBJS=$ac_ltlibobjs
20161
20162
20163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20164$as_echo_n "checking that generated files are newer than configure... " >&6; }
20165   if test -n "$am_sleep_pid"; then
20166     # Hide warnings about reused PIDs.
20167     wait $am_sleep_pid 2>/dev/null
20168   fi
20169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20170$as_echo "done" >&6; }
20171 if test -n "$EXEEXT"; then
20172  am__EXEEXT_TRUE=
20173  am__EXEEXT_FALSE='#'
20174else
20175  am__EXEEXT_TRUE='#'
20176  am__EXEEXT_FALSE=
20177fi
20178
20179if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20180  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20181Usually this means the macro was only invoked conditionally." "$LINENO" 5
20182fi
20183if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20184  as_fn_error $? "conditional \"AMDEP\" was never defined.
20185Usually this means the macro was only invoked conditionally." "$LINENO" 5
20186fi
20187if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20188  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20189Usually this means the macro was only invoked conditionally." "$LINENO" 5
20190fi
20191if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20192  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20193Usually this means the macro was only invoked conditionally." "$LINENO" 5
20194fi
20195if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20196  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20197Usually this means the macro was only invoked conditionally." "$LINENO" 5
20198fi
20199
20200if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20201  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20202Usually this means the macro was only invoked conditionally." "$LINENO" 5
20203fi
20204if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20205  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20206Usually this means the macro was only invoked conditionally." "$LINENO" 5
20207fi
20208if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20209  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20210Usually this means the macro was only invoked conditionally." "$LINENO" 5
20211fi
20212if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20213  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20214Usually this means the macro was only invoked conditionally." "$LINENO" 5
20215fi
20216
20217: "${CONFIG_STATUS=./config.status}"
20218ac_write_fail=0
20219ac_clean_files_save=$ac_clean_files
20220ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20221{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20222$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20223as_write_fail=0
20224cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20225#! $SHELL
20226# Generated by $as_me.
20227# Run this file to recreate the current configuration.
20228# Compiler output produced by configure, useful for debugging
20229# configure, is in config.log if it exists.
20230
20231debug=false
20232ac_cs_recheck=false
20233ac_cs_silent=false
20234
20235SHELL=\${CONFIG_SHELL-$SHELL}
20236export SHELL
20237_ASEOF
20238cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20239## -------------------- ##
20240## M4sh Initialization. ##
20241## -------------------- ##
20242
20243# Be more Bourne compatible
20244DUALCASE=1; export DUALCASE # for MKS sh
20245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20246  emulate sh
20247  NULLCMD=:
20248  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20249  # is contrary to our usage.  Disable this feature.
20250  alias -g '${1+"$@"}'='"$@"'
20251  setopt NO_GLOB_SUBST
20252else
20253  case `(set -o) 2>/dev/null` in #(
20254  *posix*) :
20255    set -o posix ;; #(
20256  *) :
20257     ;;
20258esac
20259fi
20260
20261
20262as_nl='
20263'
20264export as_nl
20265# Printing a long string crashes Solaris 7 /usr/bin/printf.
20266as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20267as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20269# Prefer a ksh shell builtin over an external printf program on Solaris,
20270# but without wasting forks for bash or zsh.
20271if test -z "$BASH_VERSION$ZSH_VERSION" \
20272    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20273  as_echo='print -r --'
20274  as_echo_n='print -rn --'
20275elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20276  as_echo='printf %s\n'
20277  as_echo_n='printf %s'
20278else
20279  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20280    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20281    as_echo_n='/usr/ucb/echo -n'
20282  else
20283    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20284    as_echo_n_body='eval
20285      arg=$1;
20286      case $arg in #(
20287      *"$as_nl"*)
20288	expr "X$arg" : "X\\(.*\\)$as_nl";
20289	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20290      esac;
20291      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20292    '
20293    export as_echo_n_body
20294    as_echo_n='sh -c $as_echo_n_body as_echo'
20295  fi
20296  export as_echo_body
20297  as_echo='sh -c $as_echo_body as_echo'
20298fi
20299
20300# The user is always right.
20301if test "${PATH_SEPARATOR+set}" != set; then
20302  PATH_SEPARATOR=:
20303  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20304    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20305      PATH_SEPARATOR=';'
20306  }
20307fi
20308
20309
20310# IFS
20311# We need space, tab and new line, in precisely that order.  Quoting is
20312# there to prevent editors from complaining about space-tab.
20313# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20314# splitting by setting IFS to empty value.)
20315IFS=" ""	$as_nl"
20316
20317# Find who we are.  Look in the path if we contain no directory separator.
20318as_myself=
20319case $0 in #((
20320  *[\\/]* ) as_myself=$0 ;;
20321  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20322for as_dir in $PATH
20323do
20324  IFS=$as_save_IFS
20325  test -z "$as_dir" && as_dir=.
20326    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20327  done
20328IFS=$as_save_IFS
20329
20330     ;;
20331esac
20332# We did not find ourselves, most probably we were run as `sh COMMAND'
20333# in which case we are not to be found in the path.
20334if test "x$as_myself" = x; then
20335  as_myself=$0
20336fi
20337if test ! -f "$as_myself"; then
20338  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20339  exit 1
20340fi
20341
20342# Unset variables that we do not need and which cause bugs (e.g. in
20343# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20344# suppresses any "Segmentation fault" message there.  '((' could
20345# trigger a bug in pdksh 5.2.14.
20346for as_var in BASH_ENV ENV MAIL MAILPATH
20347do eval test x\${$as_var+set} = xset \
20348  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20349done
20350PS1='$ '
20351PS2='> '
20352PS4='+ '
20353
20354# NLS nuisances.
20355LC_ALL=C
20356export LC_ALL
20357LANGUAGE=C
20358export LANGUAGE
20359
20360# CDPATH.
20361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20362
20363
20364# as_fn_error STATUS ERROR [LINENO LOG_FD]
20365# ----------------------------------------
20366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20368# script with STATUS, using 1 if that was 0.
20369as_fn_error ()
20370{
20371  as_status=$1; test $as_status -eq 0 && as_status=1
20372  if test "$4"; then
20373    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20374    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20375  fi
20376  $as_echo "$as_me: error: $2" >&2
20377  as_fn_exit $as_status
20378} # as_fn_error
20379
20380
20381# as_fn_set_status STATUS
20382# -----------------------
20383# Set $? to STATUS, without forking.
20384as_fn_set_status ()
20385{
20386  return $1
20387} # as_fn_set_status
20388
20389# as_fn_exit STATUS
20390# -----------------
20391# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20392as_fn_exit ()
20393{
20394  set +e
20395  as_fn_set_status $1
20396  exit $1
20397} # as_fn_exit
20398
20399# as_fn_unset VAR
20400# ---------------
20401# Portably unset VAR.
20402as_fn_unset ()
20403{
20404  { eval $1=; unset $1;}
20405}
20406as_unset=as_fn_unset
20407# as_fn_append VAR VALUE
20408# ----------------------
20409# Append the text in VALUE to the end of the definition contained in VAR. Take
20410# advantage of any shell optimizations that allow amortized linear growth over
20411# repeated appends, instead of the typical quadratic growth present in naive
20412# implementations.
20413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20414  eval 'as_fn_append ()
20415  {
20416    eval $1+=\$2
20417  }'
20418else
20419  as_fn_append ()
20420  {
20421    eval $1=\$$1\$2
20422  }
20423fi # as_fn_append
20424
20425# as_fn_arith ARG...
20426# ------------------
20427# Perform arithmetic evaluation on the ARGs, and store the result in the
20428# global $as_val. Take advantage of shells that can avoid forks. The arguments
20429# must be portable across $(()) and expr.
20430if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20431  eval 'as_fn_arith ()
20432  {
20433    as_val=$(( $* ))
20434  }'
20435else
20436  as_fn_arith ()
20437  {
20438    as_val=`expr "$@" || test $? -eq 1`
20439  }
20440fi # as_fn_arith
20441
20442
20443if expr a : '\(a\)' >/dev/null 2>&1 &&
20444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20445  as_expr=expr
20446else
20447  as_expr=false
20448fi
20449
20450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20451  as_basename=basename
20452else
20453  as_basename=false
20454fi
20455
20456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20457  as_dirname=dirname
20458else
20459  as_dirname=false
20460fi
20461
20462as_me=`$as_basename -- "$0" ||
20463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20464	 X"$0" : 'X\(//\)$' \| \
20465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20466$as_echo X/"$0" |
20467    sed '/^.*\/\([^/][^/]*\)\/*$/{
20468	    s//\1/
20469	    q
20470	  }
20471	  /^X\/\(\/\/\)$/{
20472	    s//\1/
20473	    q
20474	  }
20475	  /^X\/\(\/\).*/{
20476	    s//\1/
20477	    q
20478	  }
20479	  s/.*/./; q'`
20480
20481# Avoid depending upon Character Ranges.
20482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20485as_cr_digits='0123456789'
20486as_cr_alnum=$as_cr_Letters$as_cr_digits
20487
20488ECHO_C= ECHO_N= ECHO_T=
20489case `echo -n x` in #(((((
20490-n*)
20491  case `echo 'xy\c'` in
20492  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20493  xy)  ECHO_C='\c';;
20494  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20495       ECHO_T='	';;
20496  esac;;
20497*)
20498  ECHO_N='-n';;
20499esac
20500
20501rm -f conf$$ conf$$.exe conf$$.file
20502if test -d conf$$.dir; then
20503  rm -f conf$$.dir/conf$$.file
20504else
20505  rm -f conf$$.dir
20506  mkdir conf$$.dir 2>/dev/null
20507fi
20508if (echo >conf$$.file) 2>/dev/null; then
20509  if ln -s conf$$.file conf$$ 2>/dev/null; then
20510    as_ln_s='ln -s'
20511    # ... but there are two gotchas:
20512    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20513    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20514    # In both cases, we have to default to `cp -pR'.
20515    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20516      as_ln_s='cp -pR'
20517  elif ln conf$$.file conf$$ 2>/dev/null; then
20518    as_ln_s=ln
20519  else
20520    as_ln_s='cp -pR'
20521  fi
20522else
20523  as_ln_s='cp -pR'
20524fi
20525rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20526rmdir conf$$.dir 2>/dev/null
20527
20528
20529# as_fn_mkdir_p
20530# -------------
20531# Create "$as_dir" as a directory, including parents if necessary.
20532as_fn_mkdir_p ()
20533{
20534
20535  case $as_dir in #(
20536  -*) as_dir=./$as_dir;;
20537  esac
20538  test -d "$as_dir" || eval $as_mkdir_p || {
20539    as_dirs=
20540    while :; do
20541      case $as_dir in #(
20542      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20543      *) as_qdir=$as_dir;;
20544      esac
20545      as_dirs="'$as_qdir' $as_dirs"
20546      as_dir=`$as_dirname -- "$as_dir" ||
20547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548	 X"$as_dir" : 'X\(//\)[^/]' \| \
20549	 X"$as_dir" : 'X\(//\)$' \| \
20550	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20551$as_echo X"$as_dir" |
20552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\(\/\/\)[^/].*/{
20557	    s//\1/
20558	    q
20559	  }
20560	  /^X\(\/\/\)$/{
20561	    s//\1/
20562	    q
20563	  }
20564	  /^X\(\/\).*/{
20565	    s//\1/
20566	    q
20567	  }
20568	  s/.*/./; q'`
20569      test -d "$as_dir" && break
20570    done
20571    test -z "$as_dirs" || eval "mkdir $as_dirs"
20572  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20573
20574
20575} # as_fn_mkdir_p
20576if mkdir -p . 2>/dev/null; then
20577  as_mkdir_p='mkdir -p "$as_dir"'
20578else
20579  test -d ./-p && rmdir ./-p
20580  as_mkdir_p=false
20581fi
20582
20583
20584# as_fn_executable_p FILE
20585# -----------------------
20586# Test if FILE is an executable regular file.
20587as_fn_executable_p ()
20588{
20589  test -f "$1" && test -x "$1"
20590} # as_fn_executable_p
20591as_test_x='test -x'
20592as_executable_p=as_fn_executable_p
20593
20594# Sed expression to map a string onto a valid CPP name.
20595as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20596
20597# Sed expression to map a string onto a valid variable name.
20598as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20599
20600
20601exec 6>&1
20602## ----------------------------------- ##
20603## Main body of $CONFIG_STATUS script. ##
20604## ----------------------------------- ##
20605_ASEOF
20606test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20607
20608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20609# Save the log message, to keep $0 and so on meaningful, and to
20610# report actual input values of CONFIG_FILES etc. instead of their
20611# values after options handling.
20612ac_log="
20613This file was extended by LibTIFF Software $as_me 4.0.3, which was
20614generated by GNU Autoconf 2.69.  Invocation command line was
20615
20616  CONFIG_FILES    = $CONFIG_FILES
20617  CONFIG_HEADERS  = $CONFIG_HEADERS
20618  CONFIG_LINKS    = $CONFIG_LINKS
20619  CONFIG_COMMANDS = $CONFIG_COMMANDS
20620  $ $0 $@
20621
20622on `(hostname || uname -n) 2>/dev/null | sed 1q`
20623"
20624
20625_ACEOF
20626
20627case $ac_config_files in *"
20628"*) set x $ac_config_files; shift; ac_config_files=$*;;
20629esac
20630
20631case $ac_config_headers in *"
20632"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20633esac
20634
20635
20636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20637# Files that config.status was made for.
20638config_files="$ac_config_files"
20639config_headers="$ac_config_headers"
20640config_commands="$ac_config_commands"
20641
20642_ACEOF
20643
20644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20645ac_cs_usage="\
20646\`$as_me' instantiates files and other configuration actions
20647from templates according to the current configuration.  Unless the files
20648and actions are specified as TAGs, all are instantiated by default.
20649
20650Usage: $0 [OPTION]... [TAG]...
20651
20652  -h, --help       print this help, then exit
20653  -V, --version    print version number and configuration settings, then exit
20654      --config     print configuration, then exit
20655  -q, --quiet, --silent
20656                   do not print progress messages
20657  -d, --debug      don't remove temporary files
20658      --recheck    update $as_me by reconfiguring in the same conditions
20659      --file=FILE[:TEMPLATE]
20660                   instantiate the configuration file FILE
20661      --header=FILE[:TEMPLATE]
20662                   instantiate the configuration header FILE
20663
20664Configuration files:
20665$config_files
20666
20667Configuration headers:
20668$config_headers
20669
20670Configuration commands:
20671$config_commands
20672
20673Report bugs to <[email protected]>."
20674
20675_ACEOF
20676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20677ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20678ac_cs_version="\\
20679LibTIFF Software config.status 4.0.3
20680configured by $0, generated by GNU Autoconf 2.69,
20681  with options \\"\$ac_cs_config\\"
20682
20683Copyright (C) 2012 Free Software Foundation, Inc.
20684This config.status script is free software; the Free Software Foundation
20685gives unlimited permission to copy, distribute and modify it."
20686
20687ac_pwd='$ac_pwd'
20688srcdir='$srcdir'
20689INSTALL='$INSTALL'
20690MKDIR_P='$MKDIR_P'
20691AWK='$AWK'
20692test -n "\$AWK" || AWK=awk
20693_ACEOF
20694
20695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696# The default lists apply if the user does not specify any file.
20697ac_need_defaults=:
20698while test $# != 0
20699do
20700  case $1 in
20701  --*=?*)
20702    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20703    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20704    ac_shift=:
20705    ;;
20706  --*=)
20707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20708    ac_optarg=
20709    ac_shift=:
20710    ;;
20711  *)
20712    ac_option=$1
20713    ac_optarg=$2
20714    ac_shift=shift
20715    ;;
20716  esac
20717
20718  case $ac_option in
20719  # Handling of the options.
20720  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20721    ac_cs_recheck=: ;;
20722  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20723    $as_echo "$ac_cs_version"; exit ;;
20724  --config | --confi | --conf | --con | --co | --c )
20725    $as_echo "$ac_cs_config"; exit ;;
20726  --debug | --debu | --deb | --de | --d | -d )
20727    debug=: ;;
20728  --file | --fil | --fi | --f )
20729    $ac_shift
20730    case $ac_optarg in
20731    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20732    '') as_fn_error $? "missing file argument" ;;
20733    esac
20734    as_fn_append CONFIG_FILES " '$ac_optarg'"
20735    ac_need_defaults=false;;
20736  --header | --heade | --head | --hea )
20737    $ac_shift
20738    case $ac_optarg in
20739    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20740    esac
20741    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20742    ac_need_defaults=false;;
20743  --he | --h)
20744    # Conflict between --help and --header
20745    as_fn_error $? "ambiguous option: \`$1'
20746Try \`$0 --help' for more information.";;
20747  --help | --hel | -h )
20748    $as_echo "$ac_cs_usage"; exit ;;
20749  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20750  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20751    ac_cs_silent=: ;;
20752
20753  # This is an error.
20754  -*) as_fn_error $? "unrecognized option: \`$1'
20755Try \`$0 --help' for more information." ;;
20756
20757  *) as_fn_append ac_config_targets " $1"
20758     ac_need_defaults=false ;;
20759
20760  esac
20761  shift
20762done
20763
20764ac_configure_extra_args=
20765
20766if $ac_cs_silent; then
20767  exec 6>/dev/null
20768  ac_configure_extra_args="$ac_configure_extra_args --silent"
20769fi
20770
20771_ACEOF
20772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20773if \$ac_cs_recheck; then
20774  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20775  shift
20776  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20777  CONFIG_SHELL='$SHELL'
20778  export CONFIG_SHELL
20779  exec "\$@"
20780fi
20781
20782_ACEOF
20783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20784exec 5>>config.log
20785{
20786  echo
20787  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20788## Running $as_me. ##
20789_ASBOX
20790  $as_echo "$ac_log"
20791} >&5
20792
20793_ACEOF
20794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20795#
20796# INIT-COMMANDS
20797#
20798AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20799
20800
20801# The HP-UX ksh and POSIX shell print the target directory to stdout
20802# if CDPATH is set.
20803(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20804
20805sed_quote_subst='$sed_quote_subst'
20806double_quote_subst='$double_quote_subst'
20807delay_variable_subst='$delay_variable_subst'
20808macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20809macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20810AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20811DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20812OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20813enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20814enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20817SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20818ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20819PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20820host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20821host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20822host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20823build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20824build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20825build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20826SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20827Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20828GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20829EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20830FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20831LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20832NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20833LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20834max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20835ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20836exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20837lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20838lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20839lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20840lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20841lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20842reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20843reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20844deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20845file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20846file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20847want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20848sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20849AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20850AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20851archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20852STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20853RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20854old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20855old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20856old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20857lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20858CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20859CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20860compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20861GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20862lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20863lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20864lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20865lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20866lt_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"`'
20867lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20868nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20869lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20870lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20871objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20872MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20873lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20874lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20875lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20876lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20877lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20878need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20879MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20880DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20881NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20882LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20883OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20884OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20885libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20886shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20887extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20888archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20889enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20890export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20891whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20892compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20893old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20894old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20895archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20896archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20897module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20898module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20899with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20900allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20901no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20902hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20903hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20904hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20905hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20906hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20907hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20908hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20909inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20910link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20911always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20912export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20913exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20914include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20915prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20916postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20917file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20918variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20919need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20920need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20921version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20922runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20923shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20924shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20925libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20926library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20927soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20928install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20929postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20930postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20931finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20932finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20933hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20934sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20935sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20936hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20937enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20938enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20939enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20940old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20941striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20942compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20943predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20944postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20945predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20946postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20947compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20948LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20949reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20950reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20951old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20952compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20953GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20954lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20955lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20956lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20957lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20958lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20959archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20960enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20961export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20962whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20963compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20964old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20965old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20966archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20967archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20968module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20969module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20970with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20971allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20972no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20973hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20974hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20975hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20976hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20977hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20978hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20979hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20980inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20981link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20982always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20983export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20984exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20985include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20986prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20987postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20988file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20989hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20990compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20991predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20992postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20993predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20994postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20995compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20996
20997LTCC='$LTCC'
20998LTCFLAGS='$LTCFLAGS'
20999compiler='$compiler_DEFAULT'
21000
21001# A function that is used when there is no print builtin or printf.
21002func_fallback_echo ()
21003{
21004  eval 'cat <<_LTECHO_EOF
21005\$1
21006_LTECHO_EOF'
21007}
21008
21009# Quote evaled strings.
21010for var in AS \
21011DLLTOOL \
21012OBJDUMP \
21013SHELL \
21014ECHO \
21015PATH_SEPARATOR \
21016SED \
21017GREP \
21018EGREP \
21019FGREP \
21020LD \
21021NM \
21022LN_S \
21023lt_SP2NL \
21024lt_NL2SP \
21025reload_flag \
21026deplibs_check_method \
21027file_magic_cmd \
21028file_magic_glob \
21029want_nocaseglob \
21030sharedlib_from_linklib_cmd \
21031AR \
21032AR_FLAGS \
21033archiver_list_spec \
21034STRIP \
21035RANLIB \
21036CC \
21037CFLAGS \
21038compiler \
21039lt_cv_sys_global_symbol_pipe \
21040lt_cv_sys_global_symbol_to_cdecl \
21041lt_cv_sys_global_symbol_to_import \
21042lt_cv_sys_global_symbol_to_c_name_address \
21043lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21044lt_cv_nm_interface \
21045nm_file_list_spec \
21046lt_cv_truncate_bin \
21047lt_prog_compiler_no_builtin_flag \
21048lt_prog_compiler_pic \
21049lt_prog_compiler_wl \
21050lt_prog_compiler_static \
21051lt_cv_prog_compiler_c_o \
21052need_locks \
21053MANIFEST_TOOL \
21054DSYMUTIL \
21055NMEDIT \
21056LIPO \
21057OTOOL \
21058OTOOL64 \
21059shrext_cmds \
21060export_dynamic_flag_spec \
21061whole_archive_flag_spec \
21062compiler_needs_object \
21063with_gnu_ld \
21064allow_undefined_flag \
21065no_undefined_flag \
21066hardcode_libdir_flag_spec \
21067hardcode_libdir_separator \
21068exclude_expsyms \
21069include_expsyms \
21070file_list_spec \
21071variables_saved_for_relink \
21072libname_spec \
21073library_names_spec \
21074soname_spec \
21075install_override_mode \
21076finish_eval \
21077old_striplib \
21078striplib \
21079compiler_lib_search_dirs \
21080predep_objects \
21081postdep_objects \
21082predeps \
21083postdeps \
21084compiler_lib_search_path \
21085LD_CXX \
21086reload_flag_CXX \
21087compiler_CXX \
21088lt_prog_compiler_no_builtin_flag_CXX \
21089lt_prog_compiler_pic_CXX \
21090lt_prog_compiler_wl_CXX \
21091lt_prog_compiler_static_CXX \
21092lt_cv_prog_compiler_c_o_CXX \
21093export_dynamic_flag_spec_CXX \
21094whole_archive_flag_spec_CXX \
21095compiler_needs_object_CXX \
21096with_gnu_ld_CXX \
21097allow_undefined_flag_CXX \
21098no_undefined_flag_CXX \
21099hardcode_libdir_flag_spec_CXX \
21100hardcode_libdir_separator_CXX \
21101exclude_expsyms_CXX \
21102include_expsyms_CXX \
21103file_list_spec_CXX \
21104compiler_lib_search_dirs_CXX \
21105predep_objects_CXX \
21106postdep_objects_CXX \
21107predeps_CXX \
21108postdeps_CXX \
21109compiler_lib_search_path_CXX; do
21110    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21111    *[\\\\\\\`\\"\\\$]*)
21112      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21113      ;;
21114    *)
21115      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21116      ;;
21117    esac
21118done
21119
21120# Double-quote double-evaled strings.
21121for var in reload_cmds \
21122old_postinstall_cmds \
21123old_postuninstall_cmds \
21124old_archive_cmds \
21125extract_expsyms_cmds \
21126old_archive_from_new_cmds \
21127old_archive_from_expsyms_cmds \
21128archive_cmds \
21129archive_expsym_cmds \
21130module_cmds \
21131module_expsym_cmds \
21132export_symbols_cmds \
21133prelink_cmds \
21134postlink_cmds \
21135postinstall_cmds \
21136postuninstall_cmds \
21137finish_cmds \
21138sys_lib_search_path_spec \
21139sys_lib_dlsearch_path_spec \
21140reload_cmds_CXX \
21141old_archive_cmds_CXX \
21142old_archive_from_new_cmds_CXX \
21143old_archive_from_expsyms_cmds_CXX \
21144archive_cmds_CXX \
21145archive_expsym_cmds_CXX \
21146module_cmds_CXX \
21147module_expsym_cmds_CXX \
21148export_symbols_cmds_CXX \
21149prelink_cmds_CXX \
21150postlink_cmds_CXX; do
21151    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21152    *[\\\\\\\`\\"\\\$]*)
21153      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21154      ;;
21155    *)
21156      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21157      ;;
21158    esac
21159done
21160
21161ac_aux_dir='$ac_aux_dir'
21162
21163# See if we are running on zsh, and set the options that allow our
21164# commands through without removal of \ escapes INIT.
21165if test -n "\${ZSH_VERSION+set}"; then
21166   setopt NO_GLOB_SUBST
21167fi
21168
21169
21170    PACKAGE='$PACKAGE'
21171    VERSION='$VERSION'
21172    RM='$RM'
21173    ofile='$ofile'
21174
21175
21176
21177
21178
21179
21180_ACEOF
21181
21182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21183
21184# Handling of arguments.
21185for ac_config_target in $ac_config_targets
21186do
21187  case $ac_config_target in
21188    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21189    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21190    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21191    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21192    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21193    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21194    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21195    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21196    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21197    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21198    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21199    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21200    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21201    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21202    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21203    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21204    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21205    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21206    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21207    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21208    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
21209    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21210    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21211    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21212    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21213    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21214
21215  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21216  esac
21217done
21218
21219
21220# If the user did not use the arguments to specify the items to instantiate,
21221# then the envvar interface is used.  Set only those that are not.
21222# We use the long form for the default assignment because of an extremely
21223# bizarre bug on SunOS 4.1.3.
21224if $ac_need_defaults; then
21225  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21226  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21227  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21228fi
21229
21230# Have a temporary directory for convenience.  Make it in the build tree
21231# simply because there is no reason against having it here, and in addition,
21232# creating and moving files from /tmp can sometimes cause problems.
21233# Hook for its removal unless debugging.
21234# Note that there is a small window in which the directory will not be cleaned:
21235# after its creation but before its name has been assigned to `$tmp'.
21236$debug ||
21237{
21238  tmp= ac_tmp=
21239  trap 'exit_status=$?
21240  : "${ac_tmp:=$tmp}"
21241  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21242' 0
21243  trap 'as_fn_exit 1' 1 2 13 15
21244}
21245# Create a (secure) tmp directory for tmp files.
21246
21247{
21248  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21249  test -d "$tmp"
21250}  ||
21251{
21252  tmp=./conf$$-$RANDOM
21253  (umask 077 && mkdir "$tmp")
21254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21255ac_tmp=$tmp
21256
21257# Set up the scripts for CONFIG_FILES section.
21258# No need to generate them if there are no CONFIG_FILES.
21259# This happens for instance with `./config.status config.h'.
21260if test -n "$CONFIG_FILES"; then
21261
21262
21263ac_cr=`echo X | tr X '\015'`
21264# On cygwin, bash can eat \r inside `` if the user requested igncr.
21265# But we know of no other shell where ac_cr would be empty at this
21266# point, so we can use a bashism as a fallback.
21267if test "x$ac_cr" = x; then
21268  eval ac_cr=\$\'\\r\'
21269fi
21270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21272  ac_cs_awk_cr='\\r'
21273else
21274  ac_cs_awk_cr=$ac_cr
21275fi
21276
21277echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21278_ACEOF
21279
21280
21281{
21282  echo "cat >conf$$subs.awk <<_ACEOF" &&
21283  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21284  echo "_ACEOF"
21285} >conf$$subs.sh ||
21286  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21288ac_delim='%!_!# '
21289for ac_last_try in false false false false false :; do
21290  . ./conf$$subs.sh ||
21291    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21292
21293  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21294  if test $ac_delim_n = $ac_delim_num; then
21295    break
21296  elif $ac_last_try; then
21297    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21298  else
21299    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21300  fi
21301done
21302rm -f conf$$subs.sh
21303
21304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21306_ACEOF
21307sed -n '
21308h
21309s/^/S["/; s/!.*/"]=/
21310p
21311g
21312s/^[^!]*!//
21313:repl
21314t repl
21315s/'"$ac_delim"'$//
21316t delim
21317:nl
21318h
21319s/\(.\{148\}\)..*/\1/
21320t more1
21321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21322p
21323n
21324b repl
21325:more1
21326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21327p
21328g
21329s/.\{148\}//
21330t nl
21331:delim
21332h
21333s/\(.\{148\}\)..*/\1/
21334t more2
21335s/["\\]/\\&/g; s/^/"/; s/$/"/
21336p
21337b
21338:more2
21339s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21340p
21341g
21342s/.\{148\}//
21343t delim
21344' <conf$$subs.awk | sed '
21345/^[^""]/{
21346  N
21347  s/\n//
21348}
21349' >>$CONFIG_STATUS || ac_write_fail=1
21350rm -f conf$$subs.awk
21351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21352_ACAWK
21353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21354  for (key in S) S_is_set[key] = 1
21355  FS = ""
21356
21357}
21358{
21359  line = $ 0
21360  nfields = split(line, field, "@")
21361  substed = 0
21362  len = length(field[1])
21363  for (i = 2; i < nfields; i++) {
21364    key = field[i]
21365    keylen = length(key)
21366    if (S_is_set[key]) {
21367      value = S[key]
21368      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21369      len += length(value) + length(field[++i])
21370      substed = 1
21371    } else
21372      len += 1 + keylen
21373  }
21374
21375  print line
21376}
21377
21378_ACAWK
21379_ACEOF
21380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21382  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21383else
21384  cat
21385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21386  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21387_ACEOF
21388
21389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21391# trailing colons and then remove the whole line if VPATH becomes empty
21392# (actually we leave an empty line to preserve line numbers).
21393if test "x$srcdir" = x.; then
21394  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21395h
21396s///
21397s/^/:/
21398s/[	 ]*$/:/
21399s/:\$(srcdir):/:/g
21400s/:\${srcdir}:/:/g
21401s/:@srcdir@:/:/g
21402s/^:*//
21403s/:*$//
21404x
21405s/\(=[	 ]*\).*/\1/
21406G
21407s/\n//
21408s/^[^=]*=[	 ]*$//
21409}'
21410fi
21411
21412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21413fi # test -n "$CONFIG_FILES"
21414
21415# Set up the scripts for CONFIG_HEADERS section.
21416# No need to generate them if there are no CONFIG_HEADERS.
21417# This happens for instance with `./config.status Makefile'.
21418if test -n "$CONFIG_HEADERS"; then
21419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21420BEGIN {
21421_ACEOF
21422
21423# Transform confdefs.h into an awk script `defines.awk', embedded as
21424# here-document in config.status, that substitutes the proper values into
21425# config.h.in to produce config.h.
21426
21427# Create a delimiter string that does not exist in confdefs.h, to ease
21428# handling of long lines.
21429ac_delim='%!_!# '
21430for ac_last_try in false false :; do
21431  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21432  if test -z "$ac_tt"; then
21433    break
21434  elif $ac_last_try; then
21435    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21436  else
21437    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21438  fi
21439done
21440
21441# For the awk script, D is an array of macro values keyed by name,
21442# likewise P contains macro parameters if any.  Preserve backslash
21443# newline sequences.
21444
21445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21446sed -n '
21447s/.\{148\}/&'"$ac_delim"'/g
21448t rset
21449:rset
21450s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21451t def
21452d
21453:def
21454s/\\$//
21455t bsnl
21456s/["\\]/\\&/g
21457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21458D["\1"]=" \3"/p
21459s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21460d
21461:bsnl
21462s/["\\]/\\&/g
21463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21464D["\1"]=" \3\\\\\\n"\\/p
21465t cont
21466s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21467t cont
21468d
21469:cont
21470n
21471s/.\{148\}/&'"$ac_delim"'/g
21472t clear
21473:clear
21474s/\\$//
21475t bsnlc
21476s/["\\]/\\&/g; s/^/"/; s/$/"/p
21477d
21478:bsnlc
21479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21480b cont
21481' <confdefs.h | sed '
21482s/'"$ac_delim"'/"\\\
21483"/g' >>$CONFIG_STATUS || ac_write_fail=1
21484
21485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486  for (key in D) D_is_set[key] = 1
21487  FS = ""
21488}
21489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21490  line = \$ 0
21491  split(line, arg, " ")
21492  if (arg[1] == "#") {
21493    defundef = arg[2]
21494    mac1 = arg[3]
21495  } else {
21496    defundef = substr(arg[1], 2)
21497    mac1 = arg[2]
21498  }
21499  split(mac1, mac2, "(") #)
21500  macro = mac2[1]
21501  prefix = substr(line, 1, index(line, defundef) - 1)
21502  if (D_is_set[macro]) {
21503    # Preserve the white space surrounding the "#".
21504    print prefix "define", macro P[macro] D[macro]
21505    next
21506  } else {
21507    # Replace #undef with comments.  This is necessary, for example,
21508    # in the case of _POSIX_SOURCE, which is predefined and required
21509    # on some systems where configure will not decide to define it.
21510    if (defundef == "undef") {
21511      print "/*", prefix defundef, macro, "*/"
21512      next
21513    }
21514  }
21515}
21516{ print }
21517_ACAWK
21518_ACEOF
21519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21520  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21521fi # test -n "$CONFIG_HEADERS"
21522
21523
21524eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21525shift
21526for ac_tag
21527do
21528  case $ac_tag in
21529  :[FHLC]) ac_mode=$ac_tag; continue;;
21530  esac
21531  case $ac_mode$ac_tag in
21532  :[FHL]*:*);;
21533  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21534  :[FH]-) ac_tag=-:-;;
21535  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21536  esac
21537  ac_save_IFS=$IFS
21538  IFS=:
21539  set x $ac_tag
21540  IFS=$ac_save_IFS
21541  shift
21542  ac_file=$1
21543  shift
21544
21545  case $ac_mode in
21546  :L) ac_source=$1;;
21547  :[FH])
21548    ac_file_inputs=
21549    for ac_f
21550    do
21551      case $ac_f in
21552      -) ac_f="$ac_tmp/stdin";;
21553      *) # Look for the file first in the build tree, then in the source tree
21554	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21555	 # because $ac_f cannot contain `:'.
21556	 test -f "$ac_f" ||
21557	   case $ac_f in
21558	   [\\/$]*) false;;
21559	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21560	   esac ||
21561	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21562      esac
21563      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21564      as_fn_append ac_file_inputs " '$ac_f'"
21565    done
21566
21567    # Let's still pretend it is `configure' which instantiates (i.e., don't
21568    # use $as_me), people would be surprised to read:
21569    #    /* config.h.  Generated by config.status.  */
21570    configure_input='Generated from '`
21571	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21572	`' by configure.'
21573    if test x"$ac_file" != x-; then
21574      configure_input="$ac_file.  $configure_input"
21575      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21576$as_echo "$as_me: creating $ac_file" >&6;}
21577    fi
21578    # Neutralize special characters interpreted by sed in replacement strings.
21579    case $configure_input in #(
21580    *\&* | *\|* | *\\* )
21581       ac_sed_conf_input=`$as_echo "$configure_input" |
21582       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21583    *) ac_sed_conf_input=$configure_input;;
21584    esac
21585
21586    case $ac_tag in
21587    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21588      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21589    esac
21590    ;;
21591  esac
21592
21593  ac_dir=`$as_dirname -- "$ac_file" ||
21594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21595	 X"$ac_file" : 'X\(//\)[^/]' \| \
21596	 X"$ac_file" : 'X\(//\)$' \| \
21597	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21598$as_echo X"$ac_file" |
21599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21600	    s//\1/
21601	    q
21602	  }
21603	  /^X\(\/\/\)[^/].*/{
21604	    s//\1/
21605	    q
21606	  }
21607	  /^X\(\/\/\)$/{
21608	    s//\1/
21609	    q
21610	  }
21611	  /^X\(\/\).*/{
21612	    s//\1/
21613	    q
21614	  }
21615	  s/.*/./; q'`
21616  as_dir="$ac_dir"; as_fn_mkdir_p
21617  ac_builddir=.
21618
21619case "$ac_dir" in
21620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21621*)
21622  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21623  # A ".." for each directory in $ac_dir_suffix.
21624  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21625  case $ac_top_builddir_sub in
21626  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21627  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21628  esac ;;
21629esac
21630ac_abs_top_builddir=$ac_pwd
21631ac_abs_builddir=$ac_pwd$ac_dir_suffix
21632# for backward compatibility:
21633ac_top_builddir=$ac_top_build_prefix
21634
21635case $srcdir in
21636  .)  # We are building in place.
21637    ac_srcdir=.
21638    ac_top_srcdir=$ac_top_builddir_sub
21639    ac_abs_top_srcdir=$ac_pwd ;;
21640  [\\/]* | ?:[\\/]* )  # Absolute name.
21641    ac_srcdir=$srcdir$ac_dir_suffix;
21642    ac_top_srcdir=$srcdir
21643    ac_abs_top_srcdir=$srcdir ;;
21644  *) # Relative name.
21645    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21646    ac_top_srcdir=$ac_top_build_prefix$srcdir
21647    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21648esac
21649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21650
21651
21652  case $ac_mode in
21653  :F)
21654  #
21655  # CONFIG_FILE
21656  #
21657
21658  case $INSTALL in
21659  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21660  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21661  esac
21662  ac_MKDIR_P=$MKDIR_P
21663  case $MKDIR_P in
21664  [\\/$]* | ?:[\\/]* ) ;;
21665  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21666  esac
21667_ACEOF
21668
21669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21670# If the template does not know about datarootdir, expand it.
21671# FIXME: This hack should be removed a few years after 2.60.
21672ac_datarootdir_hack=; ac_datarootdir_seen=
21673ac_sed_dataroot='
21674/datarootdir/ {
21675  p
21676  q
21677}
21678/@datadir@/p
21679/@docdir@/p
21680/@infodir@/p
21681/@localedir@/p
21682/@mandir@/p'
21683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21684*datarootdir*) ac_datarootdir_seen=yes;;
21685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21688_ACEOF
21689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21690  ac_datarootdir_hack='
21691  s&@datadir@&$datadir&g
21692  s&@docdir@&$docdir&g
21693  s&@infodir@&$infodir&g
21694  s&@localedir@&$localedir&g
21695  s&@mandir@&$mandir&g
21696  s&\\\${datarootdir}&$datarootdir&g' ;;
21697esac
21698_ACEOF
21699
21700# Neutralize VPATH when `$srcdir' = `.'.
21701# Shell code in configure.ac might set extrasub.
21702# FIXME: do we really want to maintain this feature?
21703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21704ac_sed_extra="$ac_vpsub
21705$extrasub
21706_ACEOF
21707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21708:t
21709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21710s|@configure_input@|$ac_sed_conf_input|;t t
21711s&@top_builddir@&$ac_top_builddir_sub&;t t
21712s&@top_build_prefix@&$ac_top_build_prefix&;t t
21713s&@srcdir@&$ac_srcdir&;t t
21714s&@abs_srcdir@&$ac_abs_srcdir&;t t
21715s&@top_srcdir@&$ac_top_srcdir&;t t
21716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21717s&@builddir@&$ac_builddir&;t t
21718s&@abs_builddir@&$ac_abs_builddir&;t t
21719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21720s&@INSTALL@&$ac_INSTALL&;t t
21721s&@MKDIR_P@&$ac_MKDIR_P&;t t
21722$ac_datarootdir_hack
21723"
21724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21725  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21726
21727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21728  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21729  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21730      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21731  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21732which seems to be undefined.  Please make sure it is defined" >&5
21733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21734which seems to be undefined.  Please make sure it is defined" >&2;}
21735
21736  rm -f "$ac_tmp/stdin"
21737  case $ac_file in
21738  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21739  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21740  esac \
21741  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21742 ;;
21743  :H)
21744  #
21745  # CONFIG_HEADER
21746  #
21747  if test x"$ac_file" != x-; then
21748    {
21749      $as_echo "/* $configure_input  */" \
21750      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21751    } >"$ac_tmp/config.h" \
21752      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21753    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21754      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21755$as_echo "$as_me: $ac_file is unchanged" >&6;}
21756    else
21757      rm -f "$ac_file"
21758      mv "$ac_tmp/config.h" "$ac_file" \
21759	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21760    fi
21761  else
21762    $as_echo "/* $configure_input  */" \
21763      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21764      || as_fn_error $? "could not create -" "$LINENO" 5
21765  fi
21766# Compute "$ac_file"'s index in $config_headers.
21767_am_arg="$ac_file"
21768_am_stamp_count=1
21769for _am_header in $config_headers :; do
21770  case $_am_header in
21771    $_am_arg | $_am_arg:* )
21772      break ;;
21773    * )
21774      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21775  esac
21776done
21777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21779	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21780	 X"$_am_arg" : 'X\(//\)$' \| \
21781	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21782$as_echo X"$_am_arg" |
21783    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21784	    s//\1/
21785	    q
21786	  }
21787	  /^X\(\/\/\)[^/].*/{
21788	    s//\1/
21789	    q
21790	  }
21791	  /^X\(\/\/\)$/{
21792	    s//\1/
21793	    q
21794	  }
21795	  /^X\(\/\).*/{
21796	    s//\1/
21797	    q
21798	  }
21799	  s/.*/./; q'`/stamp-h$_am_stamp_count
21800 ;;
21801
21802  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21803$as_echo "$as_me: executing $ac_file commands" >&6;}
21804 ;;
21805  esac
21806
21807
21808  case $ac_file$ac_mode in
21809    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21810  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21811  # are listed without --file.  Let's play safe and only enable the eval
21812  # if we detect the quoting.
21813  case $CONFIG_FILES in
21814  *\'*) eval set x "$CONFIG_FILES" ;;
21815  *)   set x $CONFIG_FILES ;;
21816  esac
21817  shift
21818  for mf
21819  do
21820    # Strip MF so we end up with the name of the file.
21821    mf=`echo "$mf" | sed -e 's/:.*$//'`
21822    # Check whether this is an Automake generated Makefile or not.
21823    # We used to match only the files named 'Makefile.in', but
21824    # some people rename them; so instead we look at the file content.
21825    # Grep'ing the first line is not enough: some people post-process
21826    # each Makefile.in and add a new line on top of each file to say so.
21827    # Grep'ing the whole file is not good either: AIX grep has a line
21828    # limit of 2048, but all sed's we know have understand at least 4000.
21829    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21830      dirpart=`$as_dirname -- "$mf" ||
21831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21832	 X"$mf" : 'X\(//\)[^/]' \| \
21833	 X"$mf" : 'X\(//\)$' \| \
21834	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21835$as_echo X"$mf" |
21836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21837	    s//\1/
21838	    q
21839	  }
21840	  /^X\(\/\/\)[^/].*/{
21841	    s//\1/
21842	    q
21843	  }
21844	  /^X\(\/\/\)$/{
21845	    s//\1/
21846	    q
21847	  }
21848	  /^X\(\/\).*/{
21849	    s//\1/
21850	    q
21851	  }
21852	  s/.*/./; q'`
21853    else
21854      continue
21855    fi
21856    # Extract the definition of DEPDIR, am__include, and am__quote
21857    # from the Makefile without running 'make'.
21858    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21859    test -z "$DEPDIR" && continue
21860    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21861    test -z "am__include" && continue
21862    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21863    # Find all dependency output files, they are included files with
21864    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21865    # simplest approach to changing $(DEPDIR) to its actual value in the
21866    # expansion.
21867    for file in `sed -n "
21868      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21869	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21870      # Make sure the directory exists.
21871      test -f "$dirpart/$file" && continue
21872      fdir=`$as_dirname -- "$file" ||
21873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874	 X"$file" : 'X\(//\)[^/]' \| \
21875	 X"$file" : 'X\(//\)$' \| \
21876	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21877$as_echo X"$file" |
21878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21879	    s//\1/
21880	    q
21881	  }
21882	  /^X\(\/\/\)[^/].*/{
21883	    s//\1/
21884	    q
21885	  }
21886	  /^X\(\/\/\)$/{
21887	    s//\1/
21888	    q
21889	  }
21890	  /^X\(\/\).*/{
21891	    s//\1/
21892	    q
21893	  }
21894	  s/.*/./; q'`
21895      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21896      # echo "creating $dirpart/$file"
21897      echo '# dummy' > "$dirpart/$file"
21898    done
21899  done
21900}
21901 ;;
21902    "libtool":C)
21903
21904    # See if we are running on zsh, and set the options that allow our
21905    # commands through without removal of \ escapes.
21906    if test -n "${ZSH_VERSION+set}"; then
21907      setopt NO_GLOB_SUBST
21908    fi
21909
21910    cfgfile=${ofile}T
21911    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21912    $RM "$cfgfile"
21913
21914    cat <<_LT_EOF >> "$cfgfile"
21915#! $SHELL
21916# Generated automatically by $as_me ($PACKAGE) $VERSION
21917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21918# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21919
21920# Provide generalized library-building support services.
21921# Written by Gordon Matzigkeit, 1996
21922
21923# Copyright (C) 2014 Free Software Foundation, Inc.
21924# This is free software; see the source for copying conditions.  There is NO
21925# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21926
21927# GNU Libtool is free software; you can redistribute it and/or modify
21928# it under the terms of the GNU General Public License as published by
21929# the Free Software Foundation; either version 2 of of the License, or
21930# (at your option) any later version.
21931#
21932# As a special exception to the GNU General Public License, if you
21933# distribute this file as part of a program or library that is built
21934# using GNU Libtool, you may include this file under the  same
21935# distribution terms that you use for the rest of that program.
21936#
21937# GNU Libtool is distributed in the hope that it will be useful, but
21938# WITHOUT ANY WARRANTY; without even the implied warranty of
21939# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21940# GNU General Public License for more details.
21941#
21942# You should have received a copy of the GNU General Public License
21943# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21944
21945
21946# The names of the tagged configurations supported by this script.
21947available_tags='CXX '
21948
21949# ### BEGIN LIBTOOL CONFIG
21950
21951# Which release of libtool.m4 was used?
21952macro_version=$macro_version
21953macro_revision=$macro_revision
21954
21955# Assembler program.
21956AS=$lt_AS
21957
21958# DLL creation program.
21959DLLTOOL=$lt_DLLTOOL
21960
21961# Object dumper program.
21962OBJDUMP=$lt_OBJDUMP
21963
21964# Whether or not to build shared libraries.
21965build_libtool_libs=$enable_shared
21966
21967# Whether or not to build static libraries.
21968build_old_libs=$enable_static
21969
21970# What type of objects to build.
21971pic_mode=$pic_mode
21972
21973# Whether or not to optimize for fast installation.
21974fast_install=$enable_fast_install
21975
21976# Shell to use when invoking shell scripts.
21977SHELL=$lt_SHELL
21978
21979# An echo program that protects backslashes.
21980ECHO=$lt_ECHO
21981
21982# The PATH separator for the build system.
21983PATH_SEPARATOR=$lt_PATH_SEPARATOR
21984
21985# The host system.
21986host_alias=$host_alias
21987host=$host
21988host_os=$host_os
21989
21990# The build system.
21991build_alias=$build_alias
21992build=$build
21993build_os=$build_os
21994
21995# A sed program that does not truncate output.
21996SED=$lt_SED
21997
21998# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21999Xsed="\$SED -e 1s/^X//"
22000
22001# A grep program that handles long lines.
22002GREP=$lt_GREP
22003
22004# An ERE matcher.
22005EGREP=$lt_EGREP
22006
22007# A literal string matcher.
22008FGREP=$lt_FGREP
22009
22010# A BSD- or MS-compatible name lister.
22011NM=$lt_NM
22012
22013# Whether we need soft or hard links.
22014LN_S=$lt_LN_S
22015
22016# What is the maximum length of a command?
22017max_cmd_len=$max_cmd_len
22018
22019# Object file suffix (normally "o").
22020objext=$ac_objext
22021
22022# Executable file suffix (normally "").
22023exeext=$exeext
22024
22025# whether the shell understands "unset".
22026lt_unset=$lt_unset
22027
22028# turn spaces into newlines.
22029SP2NL=$lt_lt_SP2NL
22030
22031# turn newlines into spaces.
22032NL2SP=$lt_lt_NL2SP
22033
22034# convert \$build file names to \$host format.
22035to_host_file_cmd=$lt_cv_to_host_file_cmd
22036
22037# convert \$build files to toolchain format.
22038to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22039
22040# Method to check whether dependent libraries are shared objects.
22041deplibs_check_method=$lt_deplibs_check_method
22042
22043# Command to use when deplibs_check_method = "file_magic".
22044file_magic_cmd=$lt_file_magic_cmd
22045
22046# How to find potential files when deplibs_check_method = "file_magic".
22047file_magic_glob=$lt_file_magic_glob
22048
22049# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22050want_nocaseglob=$lt_want_nocaseglob
22051
22052# Command to associate shared and link libraries.
22053sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22054
22055# The archiver.
22056AR=$lt_AR
22057
22058# Flags to create an archive.
22059AR_FLAGS=$lt_AR_FLAGS
22060
22061# How to feed a file listing to the archiver.
22062archiver_list_spec=$lt_archiver_list_spec
22063
22064# A symbol stripping program.
22065STRIP=$lt_STRIP
22066
22067# Commands used to install an old-style archive.
22068RANLIB=$lt_RANLIB
22069old_postinstall_cmds=$lt_old_postinstall_cmds
22070old_postuninstall_cmds=$lt_old_postuninstall_cmds
22071
22072# Whether to use a lock for old archive extraction.
22073lock_old_archive_extraction=$lock_old_archive_extraction
22074
22075# A C compiler.
22076LTCC=$lt_CC
22077
22078# LTCC compiler flags.
22079LTCFLAGS=$lt_CFLAGS
22080
22081# Take the output of nm and produce a listing of raw symbols and C names.
22082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22083
22084# Transform the output of nm in a proper C declaration.
22085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22086
22087# Transform the output of nm into a list of symbols to manually relocate.
22088global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22089
22090# Transform the output of nm in a C name address pair.
22091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22092
22093# Transform the output of nm in a C name address pair when lib prefix is needed.
22094global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22095
22096# The name lister interface.
22097nm_interface=$lt_lt_cv_nm_interface
22098
22099# Specify filename containing input files for \$NM.
22100nm_file_list_spec=$lt_nm_file_list_spec
22101
22102# The root where to search for dependent libraries,and where our libraries should be installed.
22103lt_sysroot=$lt_sysroot
22104
22105# Command to truncate a binary pipe.
22106lt_truncate_bin=$lt_lt_cv_truncate_bin
22107
22108# The name of the directory that contains temporary libtool files.
22109objdir=$objdir
22110
22111# Used to examine libraries when file_magic_cmd begins with "file".
22112MAGIC_CMD=$MAGIC_CMD
22113
22114# Must we lock files when doing compilation?
22115need_locks=$lt_need_locks
22116
22117# Manifest tool.
22118MANIFEST_TOOL=$lt_MANIFEST_TOOL
22119
22120# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22121DSYMUTIL=$lt_DSYMUTIL
22122
22123# Tool to change global to local symbols on Mac OS X.
22124NMEDIT=$lt_NMEDIT
22125
22126# Tool to manipulate fat objects and archives on Mac OS X.
22127LIPO=$lt_LIPO
22128
22129# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22130OTOOL=$lt_OTOOL
22131
22132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22133OTOOL64=$lt_OTOOL64
22134
22135# Old archive suffix (normally "a").
22136libext=$libext
22137
22138# Shared library suffix (normally ".so").
22139shrext_cmds=$lt_shrext_cmds
22140
22141# The commands to extract the exported symbol list from a shared archive.
22142extract_expsyms_cmds=$lt_extract_expsyms_cmds
22143
22144# Variables whose values should be saved in libtool wrapper scripts and
22145# restored at link time.
22146variables_saved_for_relink=$lt_variables_saved_for_relink
22147
22148# Do we need the "lib" prefix for modules?
22149need_lib_prefix=$need_lib_prefix
22150
22151# Do we need a version for libraries?
22152need_version=$need_version
22153
22154# Library versioning type.
22155version_type=$version_type
22156
22157# Shared library runtime path variable.
22158runpath_var=$runpath_var
22159
22160# Shared library path variable.
22161shlibpath_var=$shlibpath_var
22162
22163# Is shlibpath searched before the hard-coded library search path?
22164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22165
22166# Format of library name prefix.
22167libname_spec=$lt_libname_spec
22168
22169# List of archive names.  First name is the real one, the rest are links.
22170# The last name is the one that the linker finds with -lNAME
22171library_names_spec=$lt_library_names_spec
22172
22173# The coded name of the library, if different from the real name.
22174soname_spec=$lt_soname_spec
22175
22176# Permission mode override for installation of shared libraries.
22177install_override_mode=$lt_install_override_mode
22178
22179# Command to use after installation of a shared archive.
22180postinstall_cmds=$lt_postinstall_cmds
22181
22182# Command to use after uninstallation of a shared archive.
22183postuninstall_cmds=$lt_postuninstall_cmds
22184
22185# Commands used to finish a libtool library installation in a directory.
22186finish_cmds=$lt_finish_cmds
22187
22188# As "finish_cmds", except a single script fragment to be evaled but
22189# not shown.
22190finish_eval=$lt_finish_eval
22191
22192# Whether we should hardcode library paths into libraries.
22193hardcode_into_libs=$hardcode_into_libs
22194
22195# Compile-time system search path for libraries.
22196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22197
22198# Run-time system search path for libraries.
22199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22200
22201# Whether dlopen is supported.
22202dlopen_support=$enable_dlopen
22203
22204# Whether dlopen of programs is supported.
22205dlopen_self=$enable_dlopen_self
22206
22207# Whether dlopen of statically linked programs is supported.
22208dlopen_self_static=$enable_dlopen_self_static
22209
22210# Commands to strip libraries.
22211old_striplib=$lt_old_striplib
22212striplib=$lt_striplib
22213
22214
22215# The linker used to build libraries.
22216LD=$lt_LD
22217
22218# How to create reloadable object files.
22219reload_flag=$lt_reload_flag
22220reload_cmds=$lt_reload_cmds
22221
22222# Commands used to build an old-style archive.
22223old_archive_cmds=$lt_old_archive_cmds
22224
22225# A language specific compiler.
22226CC=$lt_compiler
22227
22228# Is the compiler the GNU compiler?
22229with_gcc=$GCC
22230
22231# Compiler flag to turn off builtin functions.
22232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22233
22234# Additional compiler flags for building library objects.
22235pic_flag=$lt_lt_prog_compiler_pic
22236
22237# How to pass a linker flag through the compiler.
22238wl=$lt_lt_prog_compiler_wl
22239
22240# Compiler flag to prevent dynamic linking.
22241link_static_flag=$lt_lt_prog_compiler_static
22242
22243# Does compiler simultaneously support -c and -o options?
22244compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22245
22246# Whether or not to add -lc for building shared libraries.
22247build_libtool_need_lc=$archive_cmds_need_lc
22248
22249# Whether or not to disallow shared libs when runtime libs are static.
22250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22251
22252# Compiler flag to allow reflexive dlopens.
22253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22254
22255# Compiler flag to generate shared objects directly from archives.
22256whole_archive_flag_spec=$lt_whole_archive_flag_spec
22257
22258# Whether the compiler copes with passing no objects directly.
22259compiler_needs_object=$lt_compiler_needs_object
22260
22261# Create an old-style archive from a shared archive.
22262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22263
22264# Create a temporary old-style archive to link instead of a shared archive.
22265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22266
22267# Commands used to build a shared archive.
22268archive_cmds=$lt_archive_cmds
22269archive_expsym_cmds=$lt_archive_expsym_cmds
22270
22271# Commands used to build a loadable module if different from building
22272# a shared archive.
22273module_cmds=$lt_module_cmds
22274module_expsym_cmds=$lt_module_expsym_cmds
22275
22276# Whether we are building with GNU ld or not.
22277with_gnu_ld=$lt_with_gnu_ld
22278
22279# Flag that allows shared libraries with undefined symbols to be built.
22280allow_undefined_flag=$lt_allow_undefined_flag
22281
22282# Flag that enforces no undefined symbols.
22283no_undefined_flag=$lt_no_undefined_flag
22284
22285# Flag to hardcode \$libdir into a binary during linking.
22286# This must work even if \$libdir does not exist
22287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22288
22289# Whether we need a single "-rpath" flag with a separated argument.
22290hardcode_libdir_separator=$lt_hardcode_libdir_separator
22291
22292# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22293# DIR into the resulting binary.
22294hardcode_direct=$hardcode_direct
22295
22296# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22297# DIR into the resulting binary and the resulting library dependency is
22298# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22299# library is relocated.
22300hardcode_direct_absolute=$hardcode_direct_absolute
22301
22302# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22303# into the resulting binary.
22304hardcode_minus_L=$hardcode_minus_L
22305
22306# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22307# into the resulting binary.
22308hardcode_shlibpath_var=$hardcode_shlibpath_var
22309
22310# Set to "yes" if building a shared library automatically hardcodes DIR
22311# into the library and all subsequent libraries and executables linked
22312# against it.
22313hardcode_automatic=$hardcode_automatic
22314
22315# Set to yes if linker adds runtime paths of dependent libraries
22316# to runtime path list.
22317inherit_rpath=$inherit_rpath
22318
22319# Whether libtool must link a program against all its dependency libraries.
22320link_all_deplibs=$link_all_deplibs
22321
22322# Set to "yes" if exported symbols are required.
22323always_export_symbols=$always_export_symbols
22324
22325# The commands to list exported symbols.
22326export_symbols_cmds=$lt_export_symbols_cmds
22327
22328# Symbols that should not be listed in the preloaded symbols.
22329exclude_expsyms=$lt_exclude_expsyms
22330
22331# Symbols that must always be exported.
22332include_expsyms=$lt_include_expsyms
22333
22334# Commands necessary for linking programs (against libraries) with templates.
22335prelink_cmds=$lt_prelink_cmds
22336
22337# Commands necessary for finishing linking programs.
22338postlink_cmds=$lt_postlink_cmds
22339
22340# Specify filename containing input files.
22341file_list_spec=$lt_file_list_spec
22342
22343# How to hardcode a shared library path into an executable.
22344hardcode_action=$hardcode_action
22345
22346# The directories searched by this compiler when creating a shared library.
22347compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22348
22349# Dependencies to place before and after the objects being linked to
22350# create a shared library.
22351predep_objects=$lt_predep_objects
22352postdep_objects=$lt_postdep_objects
22353predeps=$lt_predeps
22354postdeps=$lt_postdeps
22355
22356# The library search path used internally by the compiler when linking
22357# a shared library.
22358compiler_lib_search_path=$lt_compiler_lib_search_path
22359
22360# ### END LIBTOOL CONFIG
22361
22362_LT_EOF
22363
22364  case $host_os in
22365  aix3*)
22366    cat <<\_LT_EOF >> "$cfgfile"
22367# AIX sometimes has problems with the GCC collect2 program.  For some
22368# reason, if we set the COLLECT_NAMES environment variable, the problems
22369# vanish in a puff of smoke.
22370if test set != "${COLLECT_NAMES+set}"; then
22371  COLLECT_NAMES=
22372  export COLLECT_NAMES
22373fi
22374_LT_EOF
22375    ;;
22376  esac
22377
22378
22379ltmain=$ac_aux_dir/ltmain.sh
22380
22381
22382  # We use sed instead of cat because bash on DJGPP gets confused if
22383  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22384  # text mode, it properly converts lines to CR/LF.  This bash problem
22385  # is reportedly fixed, but why not run on old versions too?
22386  sed '$q' "$ltmain" >> "$cfgfile" \
22387     || (rm -f "$cfgfile"; exit 1)
22388
22389   mv -f "$cfgfile" "$ofile" ||
22390    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22391  chmod +x "$ofile"
22392
22393
22394    cat <<_LT_EOF >> "$ofile"
22395
22396# ### BEGIN LIBTOOL TAG CONFIG: CXX
22397
22398# The linker used to build libraries.
22399LD=$lt_LD_CXX
22400
22401# How to create reloadable object files.
22402reload_flag=$lt_reload_flag_CXX
22403reload_cmds=$lt_reload_cmds_CXX
22404
22405# Commands used to build an old-style archive.
22406old_archive_cmds=$lt_old_archive_cmds_CXX
22407
22408# A language specific compiler.
22409CC=$lt_compiler_CXX
22410
22411# Is the compiler the GNU compiler?
22412with_gcc=$GCC_CXX
22413
22414# Compiler flag to turn off builtin functions.
22415no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22416
22417# Additional compiler flags for building library objects.
22418pic_flag=$lt_lt_prog_compiler_pic_CXX
22419
22420# How to pass a linker flag through the compiler.
22421wl=$lt_lt_prog_compiler_wl_CXX
22422
22423# Compiler flag to prevent dynamic linking.
22424link_static_flag=$lt_lt_prog_compiler_static_CXX
22425
22426# Does compiler simultaneously support -c and -o options?
22427compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22428
22429# Whether or not to add -lc for building shared libraries.
22430build_libtool_need_lc=$archive_cmds_need_lc_CXX
22431
22432# Whether or not to disallow shared libs when runtime libs are static.
22433allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22434
22435# Compiler flag to allow reflexive dlopens.
22436export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22437
22438# Compiler flag to generate shared objects directly from archives.
22439whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22440
22441# Whether the compiler copes with passing no objects directly.
22442compiler_needs_object=$lt_compiler_needs_object_CXX
22443
22444# Create an old-style archive from a shared archive.
22445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22446
22447# Create a temporary old-style archive to link instead of a shared archive.
22448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22449
22450# Commands used to build a shared archive.
22451archive_cmds=$lt_archive_cmds_CXX
22452archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22453
22454# Commands used to build a loadable module if different from building
22455# a shared archive.
22456module_cmds=$lt_module_cmds_CXX
22457module_expsym_cmds=$lt_module_expsym_cmds_CXX
22458
22459# Whether we are building with GNU ld or not.
22460with_gnu_ld=$lt_with_gnu_ld_CXX
22461
22462# Flag that allows shared libraries with undefined symbols to be built.
22463allow_undefined_flag=$lt_allow_undefined_flag_CXX
22464
22465# Flag that enforces no undefined symbols.
22466no_undefined_flag=$lt_no_undefined_flag_CXX
22467
22468# Flag to hardcode \$libdir into a binary during linking.
22469# This must work even if \$libdir does not exist
22470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22471
22472# Whether we need a single "-rpath" flag with a separated argument.
22473hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22474
22475# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22476# DIR into the resulting binary.
22477hardcode_direct=$hardcode_direct_CXX
22478
22479# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22480# DIR into the resulting binary and the resulting library dependency is
22481# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22482# library is relocated.
22483hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22484
22485# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22486# into the resulting binary.
22487hardcode_minus_L=$hardcode_minus_L_CXX
22488
22489# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22490# into the resulting binary.
22491hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22492
22493# Set to "yes" if building a shared library automatically hardcodes DIR
22494# into the library and all subsequent libraries and executables linked
22495# against it.
22496hardcode_automatic=$hardcode_automatic_CXX
22497
22498# Set to yes if linker adds runtime paths of dependent libraries
22499# to runtime path list.
22500inherit_rpath=$inherit_rpath_CXX
22501
22502# Whether libtool must link a program against all its dependency libraries.
22503link_all_deplibs=$link_all_deplibs_CXX
22504
22505# Set to "yes" if exported symbols are required.
22506always_export_symbols=$always_export_symbols_CXX
22507
22508# The commands to list exported symbols.
22509export_symbols_cmds=$lt_export_symbols_cmds_CXX
22510
22511# Symbols that should not be listed in the preloaded symbols.
22512exclude_expsyms=$lt_exclude_expsyms_CXX
22513
22514# Symbols that must always be exported.
22515include_expsyms=$lt_include_expsyms_CXX
22516
22517# Commands necessary for linking programs (against libraries) with templates.
22518prelink_cmds=$lt_prelink_cmds_CXX
22519
22520# Commands necessary for finishing linking programs.
22521postlink_cmds=$lt_postlink_cmds_CXX
22522
22523# Specify filename containing input files.
22524file_list_spec=$lt_file_list_spec_CXX
22525
22526# How to hardcode a shared library path into an executable.
22527hardcode_action=$hardcode_action_CXX
22528
22529# The directories searched by this compiler when creating a shared library.
22530compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22531
22532# Dependencies to place before and after the objects being linked to
22533# create a shared library.
22534predep_objects=$lt_predep_objects_CXX
22535postdep_objects=$lt_postdep_objects_CXX
22536predeps=$lt_predeps_CXX
22537postdeps=$lt_postdeps_CXX
22538
22539# The library search path used internally by the compiler when linking
22540# a shared library.
22541compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22542
22543# ### END LIBTOOL TAG CONFIG: CXX
22544_LT_EOF
22545
22546 ;;
22547
22548  esac
22549done # for ac_tag
22550
22551
22552as_fn_exit 0
22553_ACEOF
22554ac_clean_files=$ac_clean_files_save
22555
22556test $ac_write_fail = 0 ||
22557  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22558
22559
22560# configure is writing to config.log, and then calls config.status.
22561# config.status does its own redirection, appending to config.log.
22562# Unfortunately, on DOS this fails, as config.log is still kept open
22563# by configure, so config.status won't be able to write to it; its
22564# output is simply discarded.  So we exec the FD to /dev/null,
22565# effectively closing config.log, so it can be properly (re)opened and
22566# appended to by config.status.  When coming back to configure, we
22567# need to make the FD available again.
22568if test "$no_create" != yes; then
22569  ac_cs_success=:
22570  ac_config_status_args=
22571  test "$silent" = yes &&
22572    ac_config_status_args="$ac_config_status_args --quiet"
22573  exec 5>/dev/null
22574  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22575  exec 5>>config.log
22576  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22577  # would make configure fail if this is the last instruction.
22578  $ac_cs_success || as_fn_exit 1
22579fi
22580if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22582$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22583fi
22584
22585
22586
22587echo ""
22588echo "Libtiff is now configured for ${host}"
22589echo ""
22590echo "  Installation directory:             ${prefix}"
22591echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
22592echo "  C compiler:                         ${CC} ${CFLAGS}"
22593echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
22594echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
22595echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
22596echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
22597echo "  Use win32 IO:                       ${win32_io_ok}"
22598echo ""
22599echo " Support for internal codecs:"
22600echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
22601echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
22602echo "  LZW algorithm:                      ${HAVE_LZW}"
22603echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
22604echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
22605echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22606echo ""
22607echo " Support for external codecs:"
22608echo "  ZLIB support:                       ${HAVE_ZLIB}"
22609echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
22610echo "  JPEG support:                       ${HAVE_JPEG}"
22611echo "  Old JPEG support:                   ${HAVE_OJPEG}"
22612echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
22613echo "  ISO JBIG support:                   ${HAVE_JBIG}"
22614echo "  LZMA2 support:                      ${HAVE_LZMA}"
22615echo ""
22616echo "  C++ support:                        ${HAVE_CXX}"
22617echo ""
22618echo "  OpenGL support:                     ${HAVE_OPENGL}"
22619echo ""
22620
22621