xref: /libtiff-4.0.7/configure (revision 9f3e08cf)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for LibTIFF Software 4.0.0beta6.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell [email protected] and
250$0: [email protected] about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='LibTIFF Software'
572PACKAGE_TARNAME='tiff'
573PACKAGE_VERSION='4.0.0beta6'
574PACKAGE_STRING='LibTIFF Software 4.0.0beta6'
575PACKAGE_BUGREPORT='[email protected]'
576PACKAGE_URL=''
577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592#  include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597#  include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
614ac_subst_vars='am__EXEEXT_FALSE
615am__EXEEXT_TRUE
616LTLIBOBJS
617LIBDIR
618WIN32_IO_FALSE
619WIN32_IO_TRUE
620HAVE_OPENGL_FALSE
621HAVE_OPENGL_TRUE
622GLUT_LIBS
623GLUT_CFLAGS
624GLU_LIBS
625GLU_CFLAGS
626GL_LIBS
627GL_CFLAGS
628PTHREAD_CFLAGS
629PTHREAD_LIBS
630PTHREAD_CC
631ax_pthread_config
632X_EXTRA_LIBS
633X_LIBS
634X_PRE_LIBS
635X_CFLAGS
636XMKMF
637HAVE_CXX_FALSE
638HAVE_CXX_TRUE
639LIBTIFF_DOCDIR
640HAVE_RPATH_FALSE
641HAVE_RPATH_TRUE
642LIBOBJS
643tiff_libs_private
644AM_BACKSLASH
645AM_DEFAULT_VERBOSITY
646CXXCPP
647am__fastdepCXX_FALSE
648am__fastdepCXX_TRUE
649CXXDEPMODE
650ac_ct_CXX
651CXXFLAGS
652CXX
653CPP
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671LIBTOOL
672OBJDUMP
673DLLTOOL
674AS
675LN_S
676am__fastdepCC_FALSE
677am__fastdepCC_TRUE
678CCDEPMODE
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
692LIBTIFF_RELEASE_DATE
693LIBTIFF_VERSION_INFO
694LIBTIFF_VERSION
695LIBTIFF_ALPHA_VERSION
696LIBTIFF_MICRO_VERSION
697LIBTIFF_MINOR_VERSION
698LIBTIFF_MAJOR_VERSION
699MAINT
700MAINTAINER_MODE_FALSE
701MAINTAINER_MODE_TRUE
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733build_os
734build_vendor
735build_cpu
736build
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_maintainer_mode
779enable_dependency_tracking
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787with_gnu_ld
788enable_silent_rules
789enable_rpath
790enable_largefile
791with_docdir
792enable_ccitt
793enable_packbits
794enable_lzw
795enable_thunder
796enable_next
797enable_logluv
798enable_mdi
799enable_zlib
800with_zlib_include_dir
801with_zlib_lib_dir
802enable_pixarlog
803enable_jpeg
804with_jpeg_include_dir
805with_jpeg_lib_dir
806enable_old_jpeg
807enable_jbig
808with_jbig_include_dir
809with_jbig_lib_dir
810enable_lzma
811with_lzma_include_dir
812with_lzma_lib_dir
813enable_jpeg12
814with_jpeg12_include_dir
815with_jpeg12_lib
816enable_cxx
817with_x
818enable_strip_chopping
819with_default_strip_size
820enable_extrasample_as_alpha
821enable_check_ycbcr_subsampling
822'
823      ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
829LIBS
830CPPFLAGS
831CPP
832CPPFLAGS
833CXX
834CXXFLAGS
835LDFLAGS
836LIBS
837CPPFLAGS
838CCC
839CXXCPP
840XMKMF'
841
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
846ac_unrecognized_opts=
847ac_unrecognized_sep=
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
870# (The list follows the same order as the GNU Coding Standards.)
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
890
891ac_prev=
892ac_dashdash=
893for ac_option
894do
895  # If the previous option needs an argument, assign it.
896  if test -n "$ac_prev"; then
897    eval $ac_prev=\$ac_option
898    ac_prev=
899    continue
900  fi
901
902  case $ac_option in
903  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904  *=)   ac_optarg= ;;
905  *)    ac_optarg=yes ;;
906  esac
907
908  # Accept the important Cygnus configure options, so we can diagnose typos.
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: $ac_useropt"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: $ac_useropt"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132    ac_prev=sbindir ;;
1133  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134  | --sbi=* | --sb=*)
1135    sbindir=$ac_optarg ;;
1136
1137  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139  | --sharedst | --shareds | --shared | --share | --shar \
1140  | --sha | --sh)
1141    ac_prev=sharedstatedir ;;
1142  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145  | --sha=* | --sh=*)
1146    sharedstatedir=$ac_optarg ;;
1147
1148  -site | --site | --sit)
1149    ac_prev=site ;;
1150  -site=* | --site=* | --sit=*)
1151    site=$ac_optarg ;;
1152
1153  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154    ac_prev=srcdir ;;
1155  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156    srcdir=$ac_optarg ;;
1157
1158  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159  | --syscon | --sysco | --sysc | --sys | --sy)
1160    ac_prev=sysconfdir ;;
1161  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163    sysconfdir=$ac_optarg ;;
1164
1165  -target | --target | --targe | --targ | --tar | --ta | --t)
1166    ac_prev=target_alias ;;
1167  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168    target_alias=$ac_optarg ;;
1169
1170  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171    verbose=yes ;;
1172
1173  -version | --version | --versio | --versi | --vers | -V)
1174    ac_init_version=: ;;
1175
1176  -with-* | --with-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=\$ac_optarg ;;
1191
1192  -without-* | --without-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: $ac_useropt"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=no ;;
1207
1208  --x)
1209    # Obsolete; use --with-x.
1210    with_x=yes ;;
1211
1212  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213  | --x-incl | --x-inc | --x-in | --x-i)
1214    ac_prev=x_includes ;;
1215  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217    x_includes=$ac_optarg ;;
1218
1219  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221    ac_prev=x_libraries ;;
1222  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224    x_libraries=$ac_optarg ;;
1225
1226  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
1228    ;;
1229
1230  *=*)
1231    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232    # Reject names that are not valid shell variable names.
1233    case $ac_envvar in #(
1234      '' | [0-9]* | *[!_$as_cr_alnum]* )
1235      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236    esac
1237    eval $ac_envvar=\$ac_optarg
1238    export $ac_envvar ;;
1239
1240  *)
1241    # FIXME: should be removed in autoconf 3.0.
1242    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246    ;;
1247
1248  esac
1249done
1250
1251if test -n "$ac_prev"; then
1252  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253  as_fn_error $? "missing argument to $ac_option"
1254fi
1255
1256if test -n "$ac_unrecognized_opts"; then
1257  case $enable_option_checking in
1258    no) ;;
1259    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261  esac
1262fi
1263
1264# Check all directory arguments for consistency.
1265for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266		datadir sysconfdir sharedstatedir localstatedir includedir \
1267		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268		libdir localedir mandir
1269do
1270  eval ac_val=\$$ac_var
1271  # Remove trailing slashes.
1272  case $ac_val in
1273    */ )
1274      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275      eval $ac_var=\$ac_val;;
1276  esac
1277  # Be sure to have absolute directory names.
1278  case $ac_val in
1279    [\\/$]* | ?:[\\/]* )  continue;;
1280    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281  esac
1282  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294  if test "x$build_alias" = x; then
1295    cross_compiling=maybe
1296    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297    If a cross compiler is detected then cross compile mode will be used" >&2
1298  elif test "x$build_alias" != "x$host_alias"; then
1299    cross_compiling=yes
1300  fi
1301fi
1302
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
1307
1308
1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312  as_fn_error $? "working directory cannot be determined"
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314  as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319  ac_srcdir_defaulted=yes
1320  # Try the directory containing this script, then the parent directory.
1321  ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323	 X"$as_myself" : 'X\(//\)[^/]' \| \
1324	 X"$as_myself" : 'X\(//\)$' \| \
1325	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\/\)[^/].*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\).*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  s/.*/./; q'`
1344  srcdir=$ac_confdir
1345  if test ! -r "$srcdir/$ac_unique_file"; then
1346    srcdir=..
1347  fi
1348else
1349  ac_srcdir_defaulted=no
1350fi
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
1357	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358	pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361  srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
1369for ac_var in $ac_precious_vars; do
1370  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371  eval ac_env_${ac_var}_value=\$${ac_var}
1372  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380  # Omit some internal or obsolete options to make the list less imposing.
1381  # This message is too long to be a string in the A/UX 3.1 sh.
1382  cat <<_ACEOF
1383\`configure' configures LibTIFF Software 4.0.0beta6 to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393  -h, --help              display this help and exit
1394      --help=short        display options specific to this package
1395      --help=recursive    display the short help of all the included packages
1396  -V, --version           display version information and exit
1397  -q, --quiet, --silent   do not print \`checking ...' messages
1398      --cache-file=FILE   cache test results in FILE [disabled]
1399  -C, --config-cache      alias for \`--cache-file=config.cache'
1400  -n, --no-create         do not create output files
1401      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403Installation directories:
1404  --prefix=PREFIX         install architecture-independent files in PREFIX
1405                          [$ac_default_prefix]
1406  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                          [PREFIX]
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
1417  --bindir=DIR            user executables [EPREFIX/bin]
1418  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419  --libexecdir=DIR        program executables [EPREFIX/libexec]
1420  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423  --libdir=DIR            object code libraries [EPREFIX/lib]
1424  --includedir=DIR        C header files [PREFIX/include]
1425  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428  --infodir=DIR           info documentation [DATAROOTDIR/info]
1429  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430  --mandir=DIR            man documentation [DATAROOTDIR/man]
1431  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1432  --htmldir=DIR           html documentation [DOCDIR]
1433  --dvidir=DIR            dvi documentation [DOCDIR]
1434  --pdfdir=DIR            pdf documentation [DOCDIR]
1435  --psdir=DIR             ps documentation [DOCDIR]
1436_ACEOF
1437
1438  cat <<\_ACEOF
1439
1440Program names:
1441  --program-prefix=PREFIX            prepend PREFIX to installed program names
1442  --program-suffix=SUFFIX            append SUFFIX to installed program names
1443  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445X features:
1446  --x-includes=DIR    X include files are in DIR
1447  --x-libraries=DIR   X library files are in DIR
1448
1449System types:
1450  --build=BUILD     configure for building on BUILD [guessed]
1451  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452  --target=TARGET   configure for building compilers for TARGET [HOST]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of LibTIFF Software 4.0.0beta6:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-maintainer-mode  enable make rules and dependencies not useful
1467			  (and sometimes confusing) to the casual installer
1468  --disable-dependency-tracking  speeds up one-time build
1469  --enable-dependency-tracking   do not reject slow dependency extractors
1470  --enable-shared[=PKGS]  build shared libraries [default=yes]
1471  --enable-static[=PKGS]  build static libraries [default=yes]
1472  --enable-fast-install[=PKGS]
1473                          optimize for fast installation [default=yes]
1474  --disable-libtool-lock  avoid locking (might break parallel builds)
1475  --enable-silent-rules          less verbose build output (undo: `make V=1')
1476  --disable-silent-rules         verbose build output (undo: `make V=0')
1477  --enable-rpath          Enable runtime linker paths (-R libtool option)
1478  --disable-largefile     omit support for large files
1479  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1480  --disable-packbits      disable support for Macintosh PackBits algorithm
1481  --disable-lzw           disable support for LZW algorithm
1482  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1483  --disable-next          disable support for NeXT 2-bit RLE algorithm
1484  --disable-logluv        disable support for LogLuv high dynamic range
1485                          encoding
1486  --disable-mdi           disable support for Microsoft Document Imaging
1487  --disable-zlib          disable Zlib usage (required for Deflate
1488                          compression, enabled by default)
1489  --disable-pixarlog      disable support for Pixar log-format algorithm
1490                          (requires Zlib)
1491  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1492                          compression, enabled by default)
1493  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1494                          enabled by default)
1495  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1496                          compression, enabled by default)
1497  --disable-lzma          disable liblzma usage (required for LZMA2
1498                          compression, enabled by default)
1499  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1500  --enable-cxx            enable C++ stream API building (requires C++
1501                          compiler)
1502  --disable-strip-chopping
1503                          disable support for strip chopping (whether or not
1504                          to convert single-strip uncompressed images to
1505                          mutiple strips of specified size to reduce memory
1506                          usage)
1507  --disable-extrasample-as-alpha
1508                          the RGBA interface will treat a fourth sample with
1509                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1510                          packages produce RGBA files but don't mark the alpha
1511                          properly
1512  --disable-check-ycbcr-subsampling
1513                          disable picking up YCbCr subsampling info from the
1514                          JPEG data stream to support files lacking the tag
1515
1516Optional Packages:
1517  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519  --with-pic              try to use only PIC/non-PIC objects [default=use
1520                          both]
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-sysroot=DIR Search for dependent libraries within DIR
1523                        (or the compiler's sysroot if not specified).
1524  --with-docdir=DIR       directory where documentation should be installed
1525  --with-zlib-include-dir=DIR
1526                          location of Zlib headers
1527  --with-zlib-lib-dir=DIR location of Zlib library binary
1528  --with-jpeg-include-dir=DIR
1529                          location of IJG JPEG library headers
1530  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1531  --with-jbig-include-dir=DIR
1532                          location of JBIG-KIT headers
1533  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1534  --with-lzma-include-dir=DIR
1535                          location of liblzma headers
1536  --with-lzma-lib-dir=DIR location of liblzma library binary
1537  --with-jpeg12-include-dir=DIR
1538                          location of libjpeg 12bit headers
1539  --with-jpeg12-lib=LIBRARY
1540                          path to libjpeg 12bit library
1541  --with-x                use the X Window System
1542  --with-default-strip-size=SIZE
1543                          default size of the strip in bytes (when strip
1544                          chopping enabled) [[default=8192]]
1545
1546Some influential environment variables:
1547  CC          C compiler command
1548  CFLAGS      C compiler flags
1549  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550              nonstandard directory <lib dir>
1551  LIBS        libraries to pass to the linker, e.g. -l<library>
1552  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1553              you have headers in a nonstandard directory <include dir>
1554  CPP         C preprocessor
1555  CXX         C++ compiler command
1556  CXXFLAGS    C++ compiler flags
1557  CXXCPP      C++ preprocessor
1558  XMKMF       Path to xmkmf, Makefile generator for X Window System
1559
1560Use these variables to override the choices made by `configure' or to help
1561it to find libraries and programs with nonstandard names/locations.
1562
1563Report bugs to <[email protected]>.
1564_ACEOF
1565ac_status=$?
1566fi
1567
1568if test "$ac_init_help" = "recursive"; then
1569  # If there are subdirs, report their specific --help.
1570  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571    test -d "$ac_dir" ||
1572      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573      continue
1574    ac_builddir=.
1575
1576case "$ac_dir" in
1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578*)
1579  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580  # A ".." for each directory in $ac_dir_suffix.
1581  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582  case $ac_top_builddir_sub in
1583  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585  esac ;;
1586esac
1587ac_abs_top_builddir=$ac_pwd
1588ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589# for backward compatibility:
1590ac_top_builddir=$ac_top_build_prefix
1591
1592case $srcdir in
1593  .)  # We are building in place.
1594    ac_srcdir=.
1595    ac_top_srcdir=$ac_top_builddir_sub
1596    ac_abs_top_srcdir=$ac_pwd ;;
1597  [\\/]* | ?:[\\/]* )  # Absolute name.
1598    ac_srcdir=$srcdir$ac_dir_suffix;
1599    ac_top_srcdir=$srcdir
1600    ac_abs_top_srcdir=$srcdir ;;
1601  *) # Relative name.
1602    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603    ac_top_srcdir=$ac_top_build_prefix$srcdir
1604    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605esac
1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608    cd "$ac_dir" || { ac_status=$?; continue; }
1609    # Check for guested configure.
1610    if test -f "$ac_srcdir/configure.gnu"; then
1611      echo &&
1612      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613    elif test -f "$ac_srcdir/configure"; then
1614      echo &&
1615      $SHELL "$ac_srcdir/configure" --help=recursive
1616    else
1617      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618    fi || ac_status=$?
1619    cd "$ac_pwd" || { ac_status=$?; break; }
1620  done
1621fi
1622
1623test -n "$ac_init_help" && exit $ac_status
1624if $ac_init_version; then
1625  cat <<\_ACEOF
1626LibTIFF Software configure 4.0.0beta6
1627generated by GNU Autoconf 2.68
1628
1629Copyright (C) 2010 Free Software Foundation, Inc.
1630This configure script is free software; the Free Software Foundation
1631gives unlimited permission to copy, distribute and modify it.
1632_ACEOF
1633  exit
1634fi
1635
1636## ------------------------ ##
1637## Autoconf initialization. ##
1638## ------------------------ ##
1639
1640# ac_fn_c_try_compile LINENO
1641# --------------------------
1642# Try to compile conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_compile ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  rm -f conftest.$ac_objext
1647  if { { ac_try="$ac_compile"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_compile") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } && {
1663	 test -z "$ac_c_werror_flag" ||
1664	 test ! -s conftest.err
1665       } && test -s conftest.$ac_objext; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671	ac_retval=1
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 $as_test_x conftest$ac_exeext
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742  eval "$3=yes"
1743else
1744  eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } > conftest.i && {
1777	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785    ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810  { { case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_try") 2>&5
1817  ac_status=$?
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; }; }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: program exited with status $ac_status" >&5
1823       $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826       ac_retval=$ac_status
1827fi
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_run
1833
1834# ac_fn_c_check_func LINENO FUNC VAR
1835# ----------------------------------
1836# Tests whether FUNC exists, setting the cache variable VAR accordingly
1837ac_fn_c_check_func ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849#define $2 innocuous_$2
1850
1851/* System header to define __stub macros and hopefully few prototypes,
1852    which can conflict with char $2 (); below.
1853    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854    <limits.h> exists even on freestanding compilers.  */
1855
1856#ifdef __STDC__
1857# include <limits.h>
1858#else
1859# include <assert.h>
1860#endif
1861
1862#undef $2
1863
1864/* Override any GCC internal prototype to avoid an error.
1865   Use char because int might match the return type of a GCC
1866   builtin and then its argument prototype would still apply.  */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870char $2 ();
1871/* The GNU C library defines this for functions which it implements
1872    to always fail with ENOSYS.  Some functions are actually named
1873    something starting with __ and the normal name is an alias.  */
1874#if defined __stub_$2 || defined __stub___$2
1875choke me
1876#endif
1877
1878int
1879main ()
1880{
1881return $2 ();
1882  ;
1883  return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_link "$LINENO"; then :
1887  eval "$3=yes"
1888else
1889  eval "$3=no"
1890fi
1891rm -f core conftest.err conftest.$ac_objext \
1892    conftest$ac_exeext conftest.$ac_ext
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_check_func
1900
1901# ac_fn_cxx_try_compile LINENO
1902# ----------------------------
1903# Try to compile conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_cxx_try_compile ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  rm -f conftest.$ac_objext
1908  if { { ac_try="$ac_compile"
1909case "(($ac_try" in
1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911  *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915  (eval "$ac_compile") 2>conftest.err
1916  ac_status=$?
1917  if test -s conftest.err; then
1918    grep -v '^ *+' conftest.err >conftest.er1
1919    cat conftest.er1 >&5
1920    mv -f conftest.er1 conftest.err
1921  fi
1922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923  test $ac_status = 0; } && {
1924	 test -z "$ac_cxx_werror_flag" ||
1925	 test ! -s conftest.err
1926       } && test -s conftest.$ac_objext; then :
1927  ac_retval=0
1928else
1929  $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932	ac_retval=1
1933fi
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935  as_fn_set_status $ac_retval
1936
1937} # ac_fn_cxx_try_compile
1938
1939# ac_fn_cxx_try_cpp LINENO
1940# ------------------------
1941# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942ac_fn_cxx_try_cpp ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  if { { ac_try="$ac_cpp conftest.$ac_ext"
1946case "(($ac_try" in
1947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948  *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953  ac_status=$?
1954  if test -s conftest.err; then
1955    grep -v '^ *+' conftest.err >conftest.er1
1956    cat conftest.er1 >&5
1957    mv -f conftest.er1 conftest.err
1958  fi
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; } > conftest.i && {
1961	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962	 test ! -s conftest.err
1963       }; then :
1964  ac_retval=0
1965else
1966  $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969    ac_retval=1
1970fi
1971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972  as_fn_set_status $ac_retval
1973
1974} # ac_fn_cxx_try_cpp
1975
1976# ac_fn_cxx_try_link LINENO
1977# -------------------------
1978# Try to link conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_cxx_try_link ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  rm -f conftest.$ac_objext conftest$ac_exeext
1983  if { { ac_try="$ac_link"
1984case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_link") 2>conftest.err
1991  ac_status=$?
1992  if test -s conftest.err; then
1993    grep -v '^ *+' conftest.err >conftest.er1
1994    cat conftest.er1 >&5
1995    mv -f conftest.er1 conftest.err
1996  fi
1997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998  test $ac_status = 0; } && {
1999	 test -z "$ac_cxx_werror_flag" ||
2000	 test ! -s conftest.err
2001       } && test -s conftest$ac_exeext && {
2002	 test "$cross_compiling" = yes ||
2003	 $as_test_x conftest$ac_exeext
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010	ac_retval=1
2011fi
2012  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014  # interfere with the next link command; also delete a directory that is
2015  # left behind by Apple's compiler.  We do this before executing the actions.
2016  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_cxx_try_link
2021
2022# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2023# -------------------------------------------------------
2024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025# the include files in INCLUDES and setting the cache variable VAR
2026# accordingly.
2027ac_fn_c_check_header_mongrel ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  if eval \${$3+:} false; then :
2031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032$as_echo_n "checking for $2... " >&6; }
2033if eval \${$3+:} false; then :
2034  $as_echo_n "(cached) " >&6
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039else
2040  # Is the header compilable?
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042$as_echo_n "checking $2 usability... " >&6; }
2043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045$4
2046#include <$2>
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049  ac_header_compiler=yes
2050else
2051  ac_header_compiler=no
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055$as_echo "$ac_header_compiler" >&6; }
2056
2057# Is the header present?
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059$as_echo_n "checking $2 presence... " >&6; }
2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062#include <$2>
2063_ACEOF
2064if ac_fn_c_try_cpp "$LINENO"; then :
2065  ac_header_preproc=yes
2066else
2067  ac_header_preproc=no
2068fi
2069rm -f conftest.err conftest.i conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071$as_echo "$ac_header_preproc" >&6; }
2072
2073# So?  What about this header?
2074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2075  yes:no: )
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080    ;;
2081  no:yes:* )
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2085$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2089$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092( $as_echo "## -------------------------------------- ##
2093## Report this to [email protected] ##
2094## -------------------------------------- ##"
2095     ) | sed "s/^/$as_me: WARNING:     /" >&2
2096    ;;
2097esac
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099$as_echo_n "checking for $2... " >&6; }
2100if eval \${$3+:} false; then :
2101  $as_echo_n "(cached) " >&6
2102else
2103  eval "$3=\$ac_header_compiler"
2104fi
2105eval ac_res=\$$3
2106	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108fi
2109  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111} # ac_fn_c_check_header_mongrel
2112
2113# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2114# -------------------------------------------
2115# Tests whether TYPE exists after having included INCLUDES, setting cache
2116# variable VAR accordingly.
2117ac_fn_c_check_type ()
2118{
2119  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121$as_echo_n "checking for $2... " >&6; }
2122if eval \${$3+:} false; then :
2123  $as_echo_n "(cached) " >&6
2124else
2125  eval "$3=no"
2126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128$4
2129int
2130main ()
2131{
2132if (sizeof ($2))
2133	 return 0;
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145if (sizeof (($2)))
2146	    return 0;
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152
2153else
2154  eval "$3=yes"
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165} # ac_fn_c_check_type
2166
2167# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2168# --------------------------------------------
2169# Tries to find the compile-time value of EXPR in a program that includes
2170# INCLUDES, setting VAR accordingly. Returns whether the value could be
2171# computed
2172ac_fn_c_compute_int ()
2173{
2174  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175  if test "$cross_compiling" = yes; then
2176    # Depending upon the size, compute the lo and hi bounds.
2177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) >= 0)];
2184test_array [0] = 0
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  ac_lo=0 ac_mid=0
2192  while :; do
2193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$4
2196int
2197main ()
2198{
2199static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200test_array [0] = 0
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207  ac_hi=$ac_mid; break
2208else
2209  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2210			if test $ac_lo -le $ac_mid; then
2211			  ac_lo= ac_hi=
2212			  break
2213			fi
2214			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217  done
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$4
2222int
2223main ()
2224{
2225static int test_array [1 - 2 * !(($2) < 0)];
2226test_array [0] = 0
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  ac_hi=-1 ac_mid=-1
2234  while :; do
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242test_array [0] = 0
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249  ac_lo=$ac_mid; break
2250else
2251  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252			if test $ac_mid -le $ac_hi; then
2253			  ac_lo= ac_hi=
2254			  break
2255			fi
2256			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259  done
2260else
2261  ac_lo= ac_hi=
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266# Binary search between lo and hi bounds.
2267while test "x$ac_lo" != "x$ac_hi"; do
2268  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276test_array [0] = 0
2277
2278  ;
2279  return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283  ac_hi=$ac_mid
2284else
2285  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288done
2289case $ac_lo in #((
2290?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2291'') ac_retval=1 ;;
2292esac
2293  else
2294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h.  */
2296$4
2297static long int longval () { return $2; }
2298static unsigned long int ulongval () { return $2; }
2299#include <stdio.h>
2300#include <stdlib.h>
2301int
2302main ()
2303{
2304
2305  FILE *f = fopen ("conftest.val", "w");
2306  if (! f)
2307    return 1;
2308  if (($2) < 0)
2309    {
2310      long int i = longval ();
2311      if (i != ($2))
2312	return 1;
2313      fprintf (f, "%ld", i);
2314    }
2315  else
2316    {
2317      unsigned long int i = ulongval ();
2318      if (i != ($2))
2319	return 1;
2320      fprintf (f, "%lu", i);
2321    }
2322  /* Do not output a trailing newline, as this causes \r\n confusion
2323     on some platforms.  */
2324  return ferror (f) || fclose (f) != 0;
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330if ac_fn_c_try_run "$LINENO"; then :
2331  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332else
2333  ac_retval=1
2334fi
2335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2336  conftest.$ac_objext conftest.beam conftest.$ac_ext
2337rm -f conftest.val
2338
2339  fi
2340  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341  as_fn_set_status $ac_retval
2342
2343} # ac_fn_c_compute_int
2344cat >config.log <<_ACEOF
2345This file contains any messages produced by compilers while
2346running configure, to aid debugging if configure makes a mistake.
2347
2348It was created by LibTIFF Software $as_me 4.0.0beta6, which was
2349generated by GNU Autoconf 2.68.  Invocation command line was
2350
2351  $ $0 $@
2352
2353_ACEOF
2354exec 5>>config.log
2355{
2356cat <<_ASUNAME
2357## --------- ##
2358## Platform. ##
2359## --------- ##
2360
2361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2369
2370/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2371/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2374/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2375/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2376/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2377
2378_ASUNAME
2379
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    $as_echo "PATH: $as_dir"
2386  done
2387IFS=$as_save_IFS
2388
2389} >&5
2390
2391cat >&5 <<_ACEOF
2392
2393
2394## ----------- ##
2395## Core tests. ##
2396## ----------- ##
2397
2398_ACEOF
2399
2400
2401# Keep a trace of the command line.
2402# Strip out --no-create and --no-recursion so they do not pile up.
2403# Strip out --silent because we don't want to record it for future runs.
2404# Also quote any args containing shell meta-characters.
2405# Make two passes to allow for proper duplicate-argument suppression.
2406ac_configure_args=
2407ac_configure_args0=
2408ac_configure_args1=
2409ac_must_keep_next=false
2410for ac_pass in 1 2
2411do
2412  for ac_arg
2413  do
2414    case $ac_arg in
2415    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417    | -silent | --silent | --silen | --sile | --sil)
2418      continue ;;
2419    *\'*)
2420      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421    esac
2422    case $ac_pass in
2423    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424    2)
2425      as_fn_append ac_configure_args1 " '$ac_arg'"
2426      if test $ac_must_keep_next = true; then
2427	ac_must_keep_next=false # Got value, back to normal.
2428      else
2429	case $ac_arg in
2430	  *=* | --config-cache | -C | -disable-* | --disable-* \
2431	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433	  | -with-* | --with-* | -without-* | --without-* | --x)
2434	    case "$ac_configure_args0 " in
2435	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436	    esac
2437	    ;;
2438	  -* ) ac_must_keep_next=true ;;
2439	esac
2440      fi
2441      as_fn_append ac_configure_args " '$ac_arg'"
2442      ;;
2443    esac
2444  done
2445done
2446{ ac_configure_args0=; unset ac_configure_args0;}
2447{ ac_configure_args1=; unset ac_configure_args1;}
2448
2449# When interrupted or exit'd, cleanup temporary files, and complete
2450# config.log.  We remove comments because anyway the quotes in there
2451# would cause problems or look ugly.
2452# WARNING: Use '\'' to represent an apostrophe within the trap.
2453# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454trap 'exit_status=$?
2455  # Save into config.log some information that might help in debugging.
2456  {
2457    echo
2458
2459    $as_echo "## ---------------- ##
2460## Cache variables. ##
2461## ---------------- ##"
2462    echo
2463    # The following way of writing the cache mishandles newlines in values,
2464(
2465  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466    eval ac_val=\$$ac_var
2467    case $ac_val in #(
2468    *${as_nl}*)
2469      case $ac_var in #(
2470      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472      esac
2473      case $ac_var in #(
2474      _ | IFS | as_nl) ;; #(
2475      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476      *) { eval $ac_var=; unset $ac_var;} ;;
2477      esac ;;
2478    esac
2479  done
2480  (set) 2>&1 |
2481    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482    *${as_nl}ac_space=\ *)
2483      sed -n \
2484	"s/'\''/'\''\\\\'\'''\''/g;
2485	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486      ;; #(
2487    *)
2488      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489      ;;
2490    esac |
2491    sort
2492)
2493    echo
2494
2495    $as_echo "## ----------------- ##
2496## Output variables. ##
2497## ----------------- ##"
2498    echo
2499    for ac_var in $ac_subst_vars
2500    do
2501      eval ac_val=\$$ac_var
2502      case $ac_val in
2503      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504      esac
2505      $as_echo "$ac_var='\''$ac_val'\''"
2506    done | sort
2507    echo
2508
2509    if test -n "$ac_subst_files"; then
2510      $as_echo "## ------------------- ##
2511## File substitutions. ##
2512## ------------------- ##"
2513      echo
2514      for ac_var in $ac_subst_files
2515      do
2516	eval ac_val=\$$ac_var
2517	case $ac_val in
2518	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519	esac
2520	$as_echo "$ac_var='\''$ac_val'\''"
2521      done | sort
2522      echo
2523    fi
2524
2525    if test -s confdefs.h; then
2526      $as_echo "## ----------- ##
2527## confdefs.h. ##
2528## ----------- ##"
2529      echo
2530      cat confdefs.h
2531      echo
2532    fi
2533    test "$ac_signal" != 0 &&
2534      $as_echo "$as_me: caught signal $ac_signal"
2535    $as_echo "$as_me: exit $exit_status"
2536  } >&5
2537  rm -f core *.core core.conftest.* &&
2538    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539    exit $exit_status
2540' 0
2541for ac_signal in 1 2 13 15; do
2542  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543done
2544ac_signal=0
2545
2546# confdefs.h avoids OS command line length limits that DEFS can exceed.
2547rm -f -r conftest* confdefs.h
2548
2549$as_echo "/* confdefs.h */" > confdefs.h
2550
2551# Predefined preprocessor variables.
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_NAME "$PACKAGE_NAME"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_VERSION "$PACKAGE_VERSION"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_STRING "$PACKAGE_STRING"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_URL "$PACKAGE_URL"
2575_ACEOF
2576
2577
2578# Let the site file select an alternate cache file if it wants to.
2579# Prefer an explicitly selected file to automatically selected ones.
2580ac_site_file1=NONE
2581ac_site_file2=NONE
2582if test -n "$CONFIG_SITE"; then
2583  # We do not want a PATH search for config.site.
2584  case $CONFIG_SITE in #((
2585    -*)  ac_site_file1=./$CONFIG_SITE;;
2586    */*) ac_site_file1=$CONFIG_SITE;;
2587    *)   ac_site_file1=./$CONFIG_SITE;;
2588  esac
2589elif test "x$prefix" != xNONE; then
2590  ac_site_file1=$prefix/share/config.site
2591  ac_site_file2=$prefix/etc/config.site
2592else
2593  ac_site_file1=$ac_default_prefix/share/config.site
2594  ac_site_file2=$ac_default_prefix/etc/config.site
2595fi
2596for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597do
2598  test "x$ac_site_file" = xNONE && continue
2599  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2600    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602    sed 's/^/| /' "$ac_site_file" >&5
2603    . "$ac_site_file" \
2604      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606as_fn_error $? "failed to load site script $ac_site_file
2607See \`config.log' for more details" "$LINENO" 5; }
2608  fi
2609done
2610
2611if test -r "$cache_file"; then
2612  # Some versions of bash will fail to source /dev/null (special files
2613  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2614  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2615    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616$as_echo "$as_me: loading cache $cache_file" >&6;}
2617    case $cache_file in
2618      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619      *)                      . "./$cache_file";;
2620    esac
2621  fi
2622else
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624$as_echo "$as_me: creating cache $cache_file" >&6;}
2625  >$cache_file
2626fi
2627
2628# Check that the precious variables saved in the cache have kept the same
2629# value.
2630ac_cache_corrupted=false
2631for ac_var in $ac_precious_vars; do
2632  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2633  eval ac_new_set=\$ac_env_${ac_var}_set
2634  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2635  eval ac_new_val=\$ac_env_${ac_var}_value
2636  case $ac_old_set,$ac_new_set in
2637    set,)
2638      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2639$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2640      ac_cache_corrupted=: ;;
2641    ,set)
2642      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2643$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2644      ac_cache_corrupted=: ;;
2645    ,);;
2646    *)
2647      if test "x$ac_old_val" != "x$ac_new_val"; then
2648	# differences in whitespace do not lead to failure.
2649	ac_old_val_w=`echo x $ac_old_val`
2650	ac_new_val_w=`echo x $ac_new_val`
2651	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2652	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2653$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2654	  ac_cache_corrupted=:
2655	else
2656	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2657$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2658	  eval $ac_var=\$ac_old_val
2659	fi
2660	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2661$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2662	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2663$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2664      fi;;
2665  esac
2666  # Pass precious variables to config.status.
2667  if test "$ac_new_set" = set; then
2668    case $ac_new_val in
2669    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2670    *) ac_arg=$ac_var=$ac_new_val ;;
2671    esac
2672    case " $ac_configure_args " in
2673      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2674      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675    esac
2676  fi
2677done
2678if $ac_cache_corrupted; then
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2682$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2683  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684fi
2685## -------------------- ##
2686## Main body of script. ##
2687## -------------------- ##
2688
2689ac_ext=c
2690ac_cpp='$CPP $CPPFLAGS'
2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695
2696ac_aux_dir=
2697for ac_dir in config "$srcdir"/config; do
2698  if test -f "$ac_dir/install-sh"; then
2699    ac_aux_dir=$ac_dir
2700    ac_install_sh="$ac_aux_dir/install-sh -c"
2701    break
2702  elif test -f "$ac_dir/install.sh"; then
2703    ac_aux_dir=$ac_dir
2704    ac_install_sh="$ac_aux_dir/install.sh -c"
2705    break
2706  elif test -f "$ac_dir/shtool"; then
2707    ac_aux_dir=$ac_dir
2708    ac_install_sh="$ac_aux_dir/shtool install -c"
2709    break
2710  fi
2711done
2712if test -z "$ac_aux_dir"; then
2713  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2714fi
2715
2716# These three variables are undocumented and unsupported,
2717# and are intended to be withdrawn in a future Autoconf release.
2718# They can cause serious problems if a builder's source tree is in a directory
2719# whose full name contains unusual characters.
2720ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2721ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2722ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2723
2724
2725
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733# Make sure we can run config.sub.
2734$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2735  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2736
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2738$as_echo_n "checking build system type... " >&6; }
2739if ${ac_cv_build+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  ac_build_alias=$build_alias
2743test "x$ac_build_alias" = x &&
2744  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2745test "x$ac_build_alias" = x &&
2746  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2747ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2748  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2749
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2752$as_echo "$ac_cv_build" >&6; }
2753case $ac_cv_build in
2754*-*-*) ;;
2755*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2756esac
2757build=$ac_cv_build
2758ac_save_IFS=$IFS; IFS='-'
2759set x $ac_cv_build
2760shift
2761build_cpu=$1
2762build_vendor=$2
2763shift; shift
2764# Remember, the first character of IFS is used to create $*,
2765# except with old shells:
2766build_os=$*
2767IFS=$ac_save_IFS
2768case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2769
2770
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2772$as_echo_n "checking host system type... " >&6; }
2773if ${ac_cv_host+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test "x$host_alias" = x; then
2777  ac_cv_host=$ac_cv_build
2778else
2779  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2780    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2781fi
2782
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2785$as_echo "$ac_cv_host" >&6; }
2786case $ac_cv_host in
2787*-*-*) ;;
2788*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2789esac
2790host=$ac_cv_host
2791ac_save_IFS=$IFS; IFS='-'
2792set x $ac_cv_host
2793shift
2794host_cpu=$1
2795host_vendor=$2
2796shift; shift
2797# Remember, the first character of IFS is used to create $*,
2798# except with old shells:
2799host_os=$*
2800IFS=$ac_save_IFS
2801case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2802
2803
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2805$as_echo_n "checking target system type... " >&6; }
2806if ${ac_cv_target+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test "x$target_alias" = x; then
2810  ac_cv_target=$ac_cv_host
2811else
2812  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2813    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2814fi
2815
2816fi
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2818$as_echo "$ac_cv_target" >&6; }
2819case $ac_cv_target in
2820*-*-*) ;;
2821*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2822esac
2823target=$ac_cv_target
2824ac_save_IFS=$IFS; IFS='-'
2825set x $ac_cv_target
2826shift
2827target_cpu=$1
2828target_vendor=$2
2829shift; shift
2830# Remember, the first character of IFS is used to create $*,
2831# except with old shells:
2832target_os=$*
2833IFS=$ac_save_IFS
2834case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2835
2836
2837# The aliases save the names the user supplied, while $host etc.
2838# will get canonicalized.
2839test -n "$target_alias" &&
2840  test "$program_prefix$program_suffix$program_transform_name" = \
2841    NONENONEs,x,x, &&
2842  program_prefix=${target_alias}-
2843
2844am__api_version='1.11'
2845
2846# Find a good install program.  We prefer a C program (faster),
2847# so one script is as good as another.  But avoid the broken or
2848# incompatible versions:
2849# SysV /etc/install, /usr/sbin/install
2850# SunOS /usr/etc/install
2851# IRIX /sbin/install
2852# AIX /bin/install
2853# AmigaOS /C/install, which installs bootblocks on floppy discs
2854# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2855# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2856# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2857# OS/2's system install, which has a completely different semantic
2858# ./install, which can be erroneously created by make from ./install.sh.
2859# Reject install programs that cannot install multiple files.
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2861$as_echo_n "checking for a BSD-compatible install... " >&6; }
2862if test -z "$INSTALL"; then
2863if ${ac_cv_path_install+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871    # Account for people who put trailing slashes in PATH elements.
2872case $as_dir/ in #((
2873  ./ | .// | /[cC]/* | \
2874  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2875  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2876  /usr/ucb/* ) ;;
2877  *)
2878    # OSF1 and SCO ODT 3.0 have their own names for install.
2879    # Don't use installbsd from OSF since it installs stuff as root
2880    # by default.
2881    for ac_prog in ginstall scoinst install; do
2882      for ac_exec_ext in '' $ac_executable_extensions; do
2883	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2884	  if test $ac_prog = install &&
2885	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886	    # AIX install.  It has an incompatible calling convention.
2887	    :
2888	  elif test $ac_prog = install &&
2889	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890	    # program-specific install script used by HP pwplus--don't use.
2891	    :
2892	  else
2893	    rm -rf conftest.one conftest.two conftest.dir
2894	    echo one > conftest.one
2895	    echo two > conftest.two
2896	    mkdir conftest.dir
2897	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2898	      test -s conftest.one && test -s conftest.two &&
2899	      test -s conftest.dir/conftest.one &&
2900	      test -s conftest.dir/conftest.two
2901	    then
2902	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903	      break 3
2904	    fi
2905	  fi
2906	fi
2907      done
2908    done
2909    ;;
2910esac
2911
2912  done
2913IFS=$as_save_IFS
2914
2915rm -rf conftest.one conftest.two conftest.dir
2916
2917fi
2918  if test "${ac_cv_path_install+set}" = set; then
2919    INSTALL=$ac_cv_path_install
2920  else
2921    # As a last resort, use the slow shell script.  Don't cache a
2922    # value for INSTALL within a source directory, because that will
2923    # break other packages using the cache if that directory is
2924    # removed, or if the value is a relative name.
2925    INSTALL=$ac_install_sh
2926  fi
2927fi
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2929$as_echo "$INSTALL" >&6; }
2930
2931# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2932# It thinks the first close brace ends the variable substitution.
2933test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2934
2935test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2936
2937test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2938
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2940$as_echo_n "checking whether build environment is sane... " >&6; }
2941# Just in case
2942sleep 1
2943echo timestamp > conftest.file
2944# Reject unsafe characters in $srcdir or the absolute working directory
2945# name.  Accept space and tab only in the latter.
2946am_lf='
2947'
2948case `pwd` in
2949  *[\\\"\#\$\&\'\`$am_lf]*)
2950    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2951esac
2952case $srcdir in
2953  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2954    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2955esac
2956
2957# Do `set' in a subshell so we don't clobber the current shell's
2958# arguments.  Must try -L first in case configure is actually a
2959# symlink; some systems play weird games with the mod time of symlinks
2960# (eg FreeBSD returns the mod time of the symlink's containing
2961# directory).
2962if (
2963   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2964   if test "$*" = "X"; then
2965      # -L didn't work.
2966      set X `ls -t "$srcdir/configure" conftest.file`
2967   fi
2968   rm -f conftest.file
2969   if test "$*" != "X $srcdir/configure conftest.file" \
2970      && test "$*" != "X conftest.file $srcdir/configure"; then
2971
2972      # If neither matched, then we have a broken ls.  This can happen
2973      # if, for instance, CONFIG_SHELL is bash and it inherits a
2974      # broken ls alias from the environment.  This has actually
2975      # happened.  Such a system could not be considered "sane".
2976      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2977alias in your environment" "$LINENO" 5
2978   fi
2979
2980   test "$2" = conftest.file
2981   )
2982then
2983   # Ok.
2984   :
2985else
2986   as_fn_error $? "newly created file is older than distributed files!
2987Check your system clock" "$LINENO" 5
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990$as_echo "yes" >&6; }
2991test "$program_prefix" != NONE &&
2992  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2993# Use a double $ so make ignores it.
2994test "$program_suffix" != NONE &&
2995  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2996# Double any \ or $.
2997# By default was `s,x,x', remove it if useless.
2998ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2999program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3000
3001# expand $ac_aux_dir to an absolute path
3002am_aux_dir=`cd $ac_aux_dir && pwd`
3003
3004if test x"${MISSING+set}" != xset; then
3005  case $am_aux_dir in
3006  *\ * | *\	*)
3007    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008  *)
3009    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3010  esac
3011fi
3012# Use eval to expand $SHELL
3013if eval "$MISSING --run true"; then
3014  am_missing_run="$MISSING --run "
3015else
3016  am_missing_run=
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3018$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3019fi
3020
3021if test x"${install_sh}" != xset; then
3022  case $am_aux_dir in
3023  *\ * | *\	*)
3024    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025  *)
3026    install_sh="\${SHELL} $am_aux_dir/install-sh"
3027  esac
3028fi
3029
3030# Installed binaries are usually stripped using `strip' when the user
3031# run `make install-strip'.  However `strip' might not be the right
3032# tool to use in cross-compilation environments, therefore Automake
3033# will honor the `STRIP' environment variable to overrule this program.
3034if test "$cross_compiling" != no; then
3035  if test -n "$ac_tool_prefix"; then
3036  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}strip; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_STRIP+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$STRIP"; then
3044  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063STRIP=$ac_cv_prog_STRIP
3064if test -n "$STRIP"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3066$as_echo "$STRIP" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_STRIP"; then
3075  ac_ct_STRIP=$STRIP
3076  # Extract the first word of "strip", so it can be a program name with args.
3077set dummy strip; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_STRIP"; then
3084  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_ac_ct_STRIP="strip"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3104if test -n "$ac_ct_STRIP"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3106$as_echo "$ac_ct_STRIP" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112  if test "x$ac_ct_STRIP" = x; then
3113    STRIP=":"
3114  else
3115    case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121    STRIP=$ac_ct_STRIP
3122  fi
3123else
3124  STRIP="$ac_cv_prog_STRIP"
3125fi
3126
3127fi
3128INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3129
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3131$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3132if test -z "$MKDIR_P"; then
3133  if ${ac_cv_path_mkdir+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141    for ac_prog in mkdir gmkdir; do
3142	 for ac_exec_ext in '' $ac_executable_extensions; do
3143	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3144	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3145	     'mkdir (GNU coreutils) '* | \
3146	     'mkdir (coreutils) '* | \
3147	     'mkdir (fileutils) '4.1*)
3148	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3149	       break 3;;
3150	   esac
3151	 done
3152       done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157
3158  test -d ./--version && rmdir ./--version
3159  if test "${ac_cv_path_mkdir+set}" = set; then
3160    MKDIR_P="$ac_cv_path_mkdir -p"
3161  else
3162    # As a last resort, use the slow shell script.  Don't cache a
3163    # value for MKDIR_P within a source directory, because that will
3164    # break other packages using the cache if that directory is
3165    # removed, or if the value is a relative name.
3166    MKDIR_P="$ac_install_sh -d"
3167  fi
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3170$as_echo "$MKDIR_P" >&6; }
3171
3172mkdir_p="$MKDIR_P"
3173case $mkdir_p in
3174  [\\/$]* | ?:[\\/]*) ;;
3175  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3176esac
3177
3178for ac_prog in gawk mawk nawk awk
3179do
3180  # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if ${ac_cv_prog_AWK+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$AWK"; then
3188  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_exec_ext in '' $ac_executable_extensions; do
3196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197    ac_cv_prog_AWK="$ac_prog"
3198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202  done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207AWK=$ac_cv_prog_AWK
3208if test -n "$AWK"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3210$as_echo "$AWK" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217  test -n "$AWK" && break
3218done
3219
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3221$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3222set x ${MAKE-make}
3223ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3224if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  cat >conftest.make <<\_ACEOF
3228SHELL = /bin/sh
3229all:
3230	@echo '@@@%%%=$(MAKE)=@@@%%%'
3231_ACEOF
3232# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3233case `${MAKE-make} -f conftest.make 2>/dev/null` in
3234  *@@@%%%=?*=@@@%%%*)
3235    eval ac_cv_prog_make_${ac_make}_set=yes;;
3236  *)
3237    eval ac_cv_prog_make_${ac_make}_set=no;;
3238esac
3239rm -f conftest.make
3240fi
3241if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243$as_echo "yes" >&6; }
3244  SET_MAKE=
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248  SET_MAKE="MAKE=${MAKE-make}"
3249fi
3250
3251rm -rf .tst 2>/dev/null
3252mkdir .tst 2>/dev/null
3253if test -d .tst; then
3254  am__leading_dot=.
3255else
3256  am__leading_dot=_
3257fi
3258rmdir .tst 2>/dev/null
3259
3260if test "`cd $srcdir && pwd`" != "`pwd`"; then
3261  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3262  # is not polluted with repeated "-I."
3263  am__isrc=' -I$(srcdir)'
3264  # test to see if srcdir already configured
3265  if test -f $srcdir/config.status; then
3266    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3267  fi
3268fi
3269
3270# test whether we have cygpath
3271if test -z "$CYGPATH_W"; then
3272  if (cygpath --version) >/dev/null 2>/dev/null; then
3273    CYGPATH_W='cygpath -w'
3274  else
3275    CYGPATH_W=echo
3276  fi
3277fi
3278
3279
3280# Define the identity of the package.
3281 PACKAGE='tiff'
3282 VERSION='4.0.0beta6'
3283
3284
3285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE "$PACKAGE"
3287_ACEOF
3288
3289
3290cat >>confdefs.h <<_ACEOF
3291#define VERSION "$VERSION"
3292_ACEOF
3293
3294# Some tools Automake needs.
3295
3296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3297
3298
3299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3300
3301
3302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3303
3304
3305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3306
3307
3308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3309
3310# We need awk for the "check" target.  The system "awk" is bad on
3311# some platforms.
3312# Always define AMTAR for backward compatibility.
3313
3314AMTAR=${AMTAR-"${am_missing_run}tar"}
3315
3316am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3317
3318
3319
3320
3321
3322
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3324$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3325    # Check whether --enable-maintainer-mode was given.
3326if test "${enable_maintainer_mode+set}" = set; then :
3327  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3328else
3329  USE_MAINTAINER_MODE=no
3330fi
3331
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3333$as_echo "$USE_MAINTAINER_MODE" >&6; }
3334   if test $USE_MAINTAINER_MODE = yes; then
3335  MAINTAINER_MODE_TRUE=
3336  MAINTAINER_MODE_FALSE='#'
3337else
3338  MAINTAINER_MODE_TRUE='#'
3339  MAINTAINER_MODE_FALSE=
3340fi
3341
3342  MAINT=$MAINTAINER_MODE_TRUE
3343
3344
3345
3346LIBTIFF_MAJOR_VERSION=4
3347LIBTIFF_MINOR_VERSION=0
3348LIBTIFF_MICRO_VERSION=0
3349LIBTIFF_ALPHA_VERSION=beta6
3350LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3351LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3352
3353LIBTIFF_CURRENT=5
3354LIBTIFF_REVISION=3
3355LIBTIFF_AGE=0
3356LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3357
3358# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3359# in OpenBSD uses some special semantics for shared libraries. Their soname
3360# contains only two numbers, major and minor.
3361# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3362#case "$target_os" in
3363#    openbsd* | mirbsd*)
3364#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3365#	;;
3366#    *)
3367#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3368#	;;
3369#esac
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384if test -n "$ac_tool_prefix"; then
3385  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3386set dummy ${ac_tool_prefix}gcc; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_prog_CC+:} false; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test -n "$CC"; then
3393  ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398  IFS=$as_save_IFS
3399  test -z "$as_dir" && as_dir=.
3400    for ac_exec_ext in '' $ac_executable_extensions; do
3401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407  done
3408IFS=$as_save_IFS
3409
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415$as_echo "$CC" >&6; }
3416else
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418$as_echo "no" >&6; }
3419fi
3420
3421
3422fi
3423if test -z "$ac_cv_prog_CC"; then
3424  ac_ct_CC=$CC
3425  # Extract the first word of "gcc", so it can be a program name with args.
3426set dummy gcc; ac_word=$2
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
3429if ${ac_cv_prog_ac_ct_CC+:} false; then :
3430  $as_echo_n "(cached) " >&6
3431else
3432  if test -n "$ac_ct_CC"; then
3433  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438  IFS=$as_save_IFS
3439  test -z "$as_dir" && as_dir=.
3440    for ac_exec_ext in '' $ac_executable_extensions; do
3441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442    ac_cv_prog_ac_ct_CC="gcc"
3443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444    break 2
3445  fi
3446done
3447  done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453if test -n "$ac_ct_CC"; then
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3455$as_echo "$ac_ct_CC" >&6; }
3456else
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461  if test "x$ac_ct_CC" = x; then
3462    CC=""
3463  else
3464    case $cross_compiling:$ac_tool_warned in
3465yes:)
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468ac_tool_warned=yes ;;
3469esac
3470    CC=$ac_ct_CC
3471  fi
3472else
3473  CC="$ac_cv_prog_CC"
3474fi
3475
3476if test -z "$CC"; then
3477          if test -n "$ac_tool_prefix"; then
3478    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3479set dummy ${ac_tool_prefix}cc; ac_word=$2
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481$as_echo_n "checking for $ac_word... " >&6; }
3482if ${ac_cv_prog_CC+:} false; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  if test -n "$CC"; then
3486  ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  test -z "$as_dir" && as_dir=.
3493    for ac_exec_ext in '' $ac_executable_extensions; do
3494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495    ac_cv_prog_CC="${ac_tool_prefix}cc"
3496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500  done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
3507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508$as_echo "$CC" >&6; }
3509else
3510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
3512fi
3513
3514
3515  fi
3516fi
3517if test -z "$CC"; then
3518  # Extract the first word of "cc", so it can be a program name with args.
3519set dummy cc; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if ${ac_cv_prog_CC+:} false; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  if test -n "$CC"; then
3526  ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528  ac_prog_rejected=no
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  test -z "$as_dir" && as_dir=.
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3537       ac_prog_rejected=yes
3538       continue
3539     fi
3540    ac_cv_prog_CC="cc"
3541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542    break 2
3543  fi
3544done
3545  done
3546IFS=$as_save_IFS
3547
3548if test $ac_prog_rejected = yes; then
3549  # We found a bogon in the path, so make sure we never use it.
3550  set dummy $ac_cv_prog_CC
3551  shift
3552  if test $# != 0; then
3553    # We chose a different compiler from the bogus one.
3554    # However, it has the same basename, so the bogon will be chosen
3555    # first if we set CC to just the basename; use the full file name.
3556    shift
3557    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558  fi
3559fi
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565$as_echo "$CC" >&6; }
3566else
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572fi
3573if test -z "$CC"; then
3574  if test -n "$ac_tool_prefix"; then
3575  for ac_prog in cl.exe
3576  do
3577    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580$as_echo_n "checking for $ac_word... " >&6; }
3581if ${ac_cv_prog_CC+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  if test -n "$CC"; then
3585  ac_cv_prog_CC="$CC" # Let the user override the test.
3586else
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590  IFS=$as_save_IFS
3591  test -z "$as_dir" && as_dir=.
3592    for ac_exec_ext in '' $ac_executable_extensions; do
3593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596    break 2
3597  fi
3598done
3599  done
3600IFS=$as_save_IFS
3601
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607$as_echo "$CC" >&6; }
3608else
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611fi
3612
3613
3614    test -n "$CC" && break
3615  done
3616fi
3617if test -z "$CC"; then
3618  ac_ct_CC=$CC
3619  for ac_prog in cl.exe
3620do
3621  # Extract the first word of "$ac_prog", so it can be a program name with args.
3622set dummy $ac_prog; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_ac_ct_CC+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test -n "$ac_ct_CC"; then
3629  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636    for ac_exec_ext in '' $ac_executable_extensions; do
3637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638    ac_cv_prog_ac_ct_CC="$ac_prog"
3639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643  done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649if test -n "$ac_ct_CC"; then
3650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651$as_echo "$ac_ct_CC" >&6; }
3652else
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658  test -n "$ac_ct_CC" && break
3659done
3660
3661  if test "x$ac_ct_CC" = x; then
3662    CC=""
3663  else
3664    case $cross_compiling:$ac_tool_warned in
3665yes:)
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668ac_tool_warned=yes ;;
3669esac
3670    CC=$ac_ct_CC
3671  fi
3672fi
3673
3674fi
3675
3676
3677test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679as_fn_error $? "no acceptable C compiler found in \$PATH
3680See \`config.log' for more details" "$LINENO" 5; }
3681
3682# Provide some information about the compiler.
3683$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3684set X $ac_compile
3685ac_compiler=$2
3686for ac_option in --version -v -V -qversion; do
3687  { { ac_try="$ac_compiler $ac_option >&5"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695  ac_status=$?
3696  if test -s conftest.err; then
3697    sed '10a\
3698... rest of stderr output deleted ...
3699         10q' conftest.err >conftest.er1
3700    cat conftest.er1 >&5
3701  fi
3702  rm -f conftest.er1 conftest.err
3703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704  test $ac_status = 0; }
3705done
3706
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709
3710int
3711main ()
3712{
3713
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718ac_clean_files_save=$ac_clean_files
3719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3720# Try to create an executable without -o first, disregard a.out.
3721# It will help us diagnose broken compilers, and finding out an intuition
3722# of exeext.
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3724$as_echo_n "checking whether the C compiler works... " >&6; }
3725ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3726
3727# The possible output files:
3728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3729
3730ac_rmfiles=
3731for ac_file in $ac_files
3732do
3733  case $ac_file in
3734    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3736  esac
3737done
3738rm -f $ac_rmfiles
3739
3740if { { ac_try="$ac_link_default"
3741case "(($ac_try" in
3742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743  *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747  (eval "$ac_link_default") 2>&5
3748  ac_status=$?
3749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750  test $ac_status = 0; }; then :
3751  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3752# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3753# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3754# so that the user can short-circuit this test for compilers unknown to
3755# Autoconf.
3756for ac_file in $ac_files ''
3757do
3758  test -f "$ac_file" || continue
3759  case $ac_file in
3760    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3761	;;
3762    [ab].out )
3763	# We found the default executable, but exeext='' is most
3764	# certainly right.
3765	break;;
3766    *.* )
3767	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3768	then :; else
3769	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770	fi
3771	# We set ac_cv_exeext here because the later test for it is not
3772	# safe: cross compilers may not add the suffix if given an `-o'
3773	# argument, so we may need to know it at that point already.
3774	# Even if this section looks crufty: it has the advantage of
3775	# actually working.
3776	break;;
3777    * )
3778	break;;
3779  esac
3780done
3781test "$ac_cv_exeext" = no && ac_cv_exeext=
3782
3783else
3784  ac_file=''
3785fi
3786if test -z "$ac_file"; then :
3787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
3789$as_echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794as_fn_error 77 "C compiler cannot create executables
3795See \`config.log' for more details" "$LINENO" 5; }
3796else
3797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3798$as_echo "yes" >&6; }
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3801$as_echo_n "checking for C compiler default output file name... " >&6; }
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3803$as_echo "$ac_file" >&6; }
3804ac_exeext=$ac_cv_exeext
3805
3806rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3807ac_clean_files=$ac_clean_files_save
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3809$as_echo_n "checking for suffix of executables... " >&6; }
3810if { { ac_try="$ac_link"
3811case "(($ac_try" in
3812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813  *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817  (eval "$ac_link") 2>&5
3818  ac_status=$?
3819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820  test $ac_status = 0; }; then :
3821  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3822# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3823# work properly (i.e., refer to `conftest.exe'), while it won't with
3824# `rm'.
3825for ac_file in conftest.exe conftest conftest.*; do
3826  test -f "$ac_file" || continue
3827  case $ac_file in
3828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3829    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830	  break;;
3831    * ) break;;
3832  esac
3833done
3834else
3835  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3838See \`config.log' for more details" "$LINENO" 5; }
3839fi
3840rm -f conftest conftest$ac_cv_exeext
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3842$as_echo "$ac_cv_exeext" >&6; }
3843
3844rm -f conftest.$ac_ext
3845EXEEXT=$ac_cv_exeext
3846ac_exeext=$EXEEXT
3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849#include <stdio.h>
3850int
3851main ()
3852{
3853FILE *f = fopen ("conftest.out", "w");
3854 return ferror (f) || fclose (f) != 0;
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860ac_clean_files="$ac_clean_files conftest.out"
3861# Check that the compiler produces executables we can run.  If not, either
3862# the compiler is broken, or we cross compile.
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3864$as_echo_n "checking whether we are cross compiling... " >&6; }
3865if test "$cross_compiling" != yes; then
3866  { { ac_try="$ac_link"
3867case "(($ac_try" in
3868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869  *) ac_try_echo=$ac_try;;
3870esac
3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872$as_echo "$ac_try_echo"; } >&5
3873  (eval "$ac_link") 2>&5
3874  ac_status=$?
3875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876  test $ac_status = 0; }
3877  if { ac_try='./conftest$ac_cv_exeext'
3878  { { case "(($ac_try" in
3879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880  *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884  (eval "$ac_try") 2>&5
3885  ac_status=$?
3886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887  test $ac_status = 0; }; }; then
3888    cross_compiling=no
3889  else
3890    if test "$cross_compiling" = maybe; then
3891	cross_compiling=yes
3892    else
3893	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895as_fn_error $? "cannot run C compiled programs.
3896If you meant to cross compile, use \`--host'.
3897See \`config.log' for more details" "$LINENO" 5; }
3898    fi
3899  fi
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3902$as_echo "$cross_compiling" >&6; }
3903
3904rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3905ac_clean_files=$ac_clean_files_save
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3907$as_echo_n "checking for suffix of object files... " >&6; }
3908if ${ac_cv_objext+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922rm -f conftest.o conftest.obj
3923if { { ac_try="$ac_compile"
3924case "(($ac_try" in
3925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926  *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929$as_echo "$ac_try_echo"; } >&5
3930  (eval "$ac_compile") 2>&5
3931  ac_status=$?
3932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933  test $ac_status = 0; }; then :
3934  for ac_file in conftest.o conftest.obj conftest.*; do
3935  test -f "$ac_file" || continue;
3936  case $ac_file in
3937    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3938    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3939       break;;
3940  esac
3941done
3942else
3943  $as_echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948as_fn_error $? "cannot compute suffix of object files: cannot compile
3949See \`config.log' for more details" "$LINENO" 5; }
3950fi
3951rm -f conftest.$ac_cv_objext conftest.$ac_ext
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3954$as_echo "$ac_cv_objext" >&6; }
3955OBJEXT=$ac_cv_objext
3956ac_objext=$OBJEXT
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3958$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3959if ${ac_cv_c_compiler_gnu+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964
3965int
3966main ()
3967{
3968#ifndef __GNUC__
3969       choke me
3970#endif
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976if ac_fn_c_try_compile "$LINENO"; then :
3977  ac_compiler_gnu=yes
3978else
3979  ac_compiler_gnu=no
3980fi
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3986$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3987if test $ac_compiler_gnu = yes; then
3988  GCC=yes
3989else
3990  GCC=
3991fi
3992ac_test_CFLAGS=${CFLAGS+set}
3993ac_save_CFLAGS=$CFLAGS
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3995$as_echo_n "checking whether $CC accepts -g... " >&6; }
3996if ${ac_cv_prog_cc_g+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  ac_save_c_werror_flag=$ac_c_werror_flag
4000   ac_c_werror_flag=yes
4001   ac_cv_prog_cc_g=no
4002   CFLAGS="-g"
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005
4006int
4007main ()
4008{
4009
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_compile "$LINENO"; then :
4015  ac_cv_prog_cc_g=yes
4016else
4017  CFLAGS=""
4018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h.  */
4020
4021int
4022main ()
4023{
4024
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029if ac_fn_c_try_compile "$LINENO"; then :
4030
4031else
4032  ac_c_werror_flag=$ac_save_c_werror_flag
4033	 CFLAGS="-g"
4034	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_compile "$LINENO"; then :
4046  ac_cv_prog_cc_g=yes
4047fi
4048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049fi
4050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051fi
4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053   ac_c_werror_flag=$ac_save_c_werror_flag
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4056$as_echo "$ac_cv_prog_cc_g" >&6; }
4057if test "$ac_test_CFLAGS" = set; then
4058  CFLAGS=$ac_save_CFLAGS
4059elif test $ac_cv_prog_cc_g = yes; then
4060  if test "$GCC" = yes; then
4061    CFLAGS="-g -O2"
4062  else
4063    CFLAGS="-g"
4064  fi
4065else
4066  if test "$GCC" = yes; then
4067    CFLAGS="-O2"
4068  else
4069    CFLAGS=
4070  fi
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4073$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4074if ${ac_cv_prog_cc_c89+:} false; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  ac_cv_prog_cc_c89=no
4078ac_save_CC=$CC
4079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081#include <stdarg.h>
4082#include <stdio.h>
4083#include <sys/types.h>
4084#include <sys/stat.h>
4085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4086struct buf { int x; };
4087FILE * (*rcsopen) (struct buf *, struct stat *, int);
4088static char *e (p, i)
4089     char **p;
4090     int i;
4091{
4092  return p[i];
4093}
4094static char *f (char * (*g) (char **, int), char **p, ...)
4095{
4096  char *s;
4097  va_list v;
4098  va_start (v,p);
4099  s = g (p, va_arg (v,int));
4100  va_end (v);
4101  return s;
4102}
4103
4104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4105   function prototypes and stuff, but not '\xHH' hex character constants.
4106   These don't provoke an error unfortunately, instead are silently treated
4107   as 'x'.  The following induces an error, until -std is added to get
4108   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4109   array size at least.  It's necessary to write '\x00'==0 to get something
4110   that's true only with -std.  */
4111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4112
4113/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4114   inside strings and character constants.  */
4115#define FOO(x) 'x'
4116int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4117
4118int test (int i, double x);
4119struct s1 {int (*f) (int a);};
4120struct s2 {int (*f) (double a);};
4121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122int argc;
4123char **argv;
4124int
4125main ()
4126{
4127return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4133	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4134do
4135  CC="$ac_save_CC $ac_arg"
4136  if ac_fn_c_try_compile "$LINENO"; then :
4137  ac_cv_prog_cc_c89=$ac_arg
4138fi
4139rm -f core conftest.err conftest.$ac_objext
4140  test "x$ac_cv_prog_cc_c89" != "xno" && break
4141done
4142rm -f conftest.$ac_ext
4143CC=$ac_save_CC
4144
4145fi
4146# AC_CACHE_VAL
4147case "x$ac_cv_prog_cc_c89" in
4148  x)
4149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4150$as_echo "none needed" >&6; } ;;
4151  xno)
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4153$as_echo "unsupported" >&6; } ;;
4154  *)
4155    CC="$CC $ac_cv_prog_cc_c89"
4156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4157$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4158esac
4159if test "x$ac_cv_prog_cc_c89" != xno; then :
4160
4161fi
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168DEPDIR="${am__leading_dot}deps"
4169
4170ac_config_commands="$ac_config_commands depfiles"
4171
4172
4173am_make=${MAKE-make}
4174cat > confinc << 'END'
4175am__doit:
4176	@echo this is the am__doit target
4177.PHONY: am__doit
4178END
4179# If we don't find an include directive, just comment out the code.
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4181$as_echo_n "checking for style of include used by $am_make... " >&6; }
4182am__include="#"
4183am__quote=
4184_am_result=none
4185# First try GNU make style include.
4186echo "include confinc" > confmf
4187# Ignore all kinds of additional output from `make'.
4188case `$am_make -s -f confmf 2> /dev/null` in #(
4189*the\ am__doit\ target*)
4190  am__include=include
4191  am__quote=
4192  _am_result=GNU
4193  ;;
4194esac
4195# Now try BSD make style include.
4196if test "$am__include" = "#"; then
4197   echo '.include "confinc"' > confmf
4198   case `$am_make -s -f confmf 2> /dev/null` in #(
4199   *the\ am__doit\ target*)
4200     am__include=.include
4201     am__quote="\""
4202     _am_result=BSD
4203     ;;
4204   esac
4205fi
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4209$as_echo "$_am_result" >&6; }
4210rm -f confinc confmf
4211
4212# Check whether --enable-dependency-tracking was given.
4213if test "${enable_dependency_tracking+set}" = set; then :
4214  enableval=$enable_dependency_tracking;
4215fi
4216
4217if test "x$enable_dependency_tracking" != xno; then
4218  am_depcomp="$ac_aux_dir/depcomp"
4219  AMDEPBACKSLASH='\'
4220fi
4221 if test "x$enable_dependency_tracking" != xno; then
4222  AMDEP_TRUE=
4223  AMDEP_FALSE='#'
4224else
4225  AMDEP_TRUE='#'
4226  AMDEP_FALSE=
4227fi
4228
4229
4230
4231depcc="$CC"   am_compiler_list=
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4234$as_echo_n "checking dependency style of $depcc... " >&6; }
4235if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4239  # We make a subdir and do the tests there.  Otherwise we can end up
4240  # making bogus files that we don't know about and never remove.  For
4241  # instance it was reported that on HP-UX the gcc test will end up
4242  # making a dummy file named `D' -- because `-MD' means `put the output
4243  # in D'.
4244  mkdir conftest.dir
4245  # Copy depcomp to subdir because otherwise we won't find it if we're
4246  # using a relative directory.
4247  cp "$am_depcomp" conftest.dir
4248  cd conftest.dir
4249  # We will build objects and dependencies in a subdirectory because
4250  # it helps to detect inapplicable dependency modes.  For instance
4251  # both Tru64's cc and ICC support -MD to output dependencies as a
4252  # side effect of compilation, but ICC will put the dependencies in
4253  # the current directory while Tru64 will put them in the object
4254  # directory.
4255  mkdir sub
4256
4257  am_cv_CC_dependencies_compiler_type=none
4258  if test "$am_compiler_list" = ""; then
4259     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4260  fi
4261  am__universal=false
4262  case " $depcc " in #(
4263     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4264     esac
4265
4266  for depmode in $am_compiler_list; do
4267    # Setup a source with many dependencies, because some compilers
4268    # like to wrap large dependency lists on column 80 (with \), and
4269    # we should not choose a depcomp mode which is confused by this.
4270    #
4271    # We need to recreate these files for each test, as the compiler may
4272    # overwrite some of them when testing with obscure command lines.
4273    # This happens at least with the AIX C compiler.
4274    : > sub/conftest.c
4275    for i in 1 2 3 4 5 6; do
4276      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4277      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4278      # Solaris 8's {/usr,}/bin/sh.
4279      touch sub/conftst$i.h
4280    done
4281    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4282
4283    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4284    # mode.  It turns out that the SunPro C++ compiler does not properly
4285    # handle `-M -o', and we need to detect this.  Also, some Intel
4286    # versions had trouble with output in subdirs
4287    am__obj=sub/conftest.${OBJEXT-o}
4288    am__minus_obj="-o $am__obj"
4289    case $depmode in
4290    gcc)
4291      # This depmode causes a compiler race in universal mode.
4292      test "$am__universal" = false || continue
4293      ;;
4294    nosideeffect)
4295      # after this tag, mechanisms are not by side-effect, so they'll
4296      # only be used when explicitly requested
4297      if test "x$enable_dependency_tracking" = xyes; then
4298	continue
4299      else
4300	break
4301      fi
4302      ;;
4303    msvisualcpp | msvcmsys)
4304      # This compiler won't grok `-c -o', but also, the minuso test has
4305      # not run yet.  These depmodes are late enough in the game, and
4306      # so weak that their functioning should not be impacted.
4307      am__obj=conftest.${OBJEXT-o}
4308      am__minus_obj=
4309      ;;
4310    none) break ;;
4311    esac
4312    if depmode=$depmode \
4313       source=sub/conftest.c object=$am__obj \
4314       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4315       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4316         >/dev/null 2>conftest.err &&
4317       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4318       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4319       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4320       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4321      # icc doesn't choke on unknown options, it will just issue warnings
4322      # or remarks (even with -Werror).  So we grep stderr for any message
4323      # that says an option was ignored or not supported.
4324      # When given -MP, icc 7.0 and 7.1 complain thusly:
4325      #   icc: Command line warning: ignoring option '-M'; no argument required
4326      # The diagnosis changed in icc 8.0:
4327      #   icc: Command line remark: option '-MP' not supported
4328      if (grep 'ignoring option' conftest.err ||
4329          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4330        am_cv_CC_dependencies_compiler_type=$depmode
4331        break
4332      fi
4333    fi
4334  done
4335
4336  cd ..
4337  rm -rf conftest.dir
4338else
4339  am_cv_CC_dependencies_compiler_type=none
4340fi
4341
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4344$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4345CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4346
4347 if
4348  test "x$enable_dependency_tracking" != xno \
4349  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4350  am__fastdepCC_TRUE=
4351  am__fastdepCC_FALSE='#'
4352else
4353  am__fastdepCC_TRUE='#'
4354  am__fastdepCC_FALSE=
4355fi
4356
4357
4358if test "x$CC" != xcc; then
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4360$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4361else
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4363$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4364fi
4365set dummy $CC; ac_cc=`$as_echo "$2" |
4366		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4367if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372
4373int
4374main ()
4375{
4376
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381# Make sure it works both with $CC and with simple cc.
4382# We do the test twice because some compilers refuse to overwrite an
4383# existing .o file with -o, though they will create one.
4384ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4385rm -f conftest2.*
4386if { { case "(($ac_try" in
4387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388  *) ac_try_echo=$ac_try;;
4389esac
4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
4392  (eval "$ac_try") 2>&5
4393  ac_status=$?
4394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395  test $ac_status = 0; } &&
4396   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398  *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402  (eval "$ac_try") 2>&5
4403  ac_status=$?
4404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405  test $ac_status = 0; };
4406then
4407  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4408  if test "x$CC" != xcc; then
4409    # Test first that cc exists at all.
4410    if { ac_try='cc -c conftest.$ac_ext >&5'
4411  { { case "(($ac_try" in
4412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413  *) ac_try_echo=$ac_try;;
4414esac
4415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416$as_echo "$ac_try_echo"; } >&5
4417  (eval "$ac_try") 2>&5
4418  ac_status=$?
4419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420  test $ac_status = 0; }; }; then
4421      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4422      rm -f conftest2.*
4423      if { { case "(($ac_try" in
4424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425  *) ac_try_echo=$ac_try;;
4426esac
4427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428$as_echo "$ac_try_echo"; } >&5
4429  (eval "$ac_try") 2>&5
4430  ac_status=$?
4431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432  test $ac_status = 0; } &&
4433	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435  *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438$as_echo "$ac_try_echo"; } >&5
4439  (eval "$ac_try") 2>&5
4440  ac_status=$?
4441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442  test $ac_status = 0; };
4443      then
4444	# cc works too.
4445	:
4446      else
4447	# cc exists but doesn't like -o.
4448	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4449      fi
4450    fi
4451  fi
4452else
4453  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4454fi
4455rm -f core conftest*
4456
4457fi
4458if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
4461else
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463$as_echo "no" >&6; }
4464
4465$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4466
4467fi
4468
4469# FIXME: we rely on the cache variable name because
4470# there is no other way.
4471set dummy $CC
4472am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4473eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4474if test "$am_t" != yes; then
4475   # Losing compiler, so override with the script.
4476   # FIXME: It is wrong to rewrite CC.
4477   # But if we don't then we get into trouble of one sort or another.
4478   # A longer-term fix would be to have automake use am__CC in this case,
4479   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4480   CC="$am_aux_dir/compile $CC"
4481fi
4482
4483
4484
4485
4486  ansi=
4487  if test -z "$ansi"; then
4488    msg="for C compiler warning flags"
4489  else
4490    msg="for C compiler warning and ANSI conformance flags"
4491  fi
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4493$as_echo_n "checking $msg... " >&6; }
4494if ${vl_cv_prog_cc_warnings+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497
4498    if test -n "$CC"; then
4499      cat > conftest.c <<EOF
4500int main(int argc, char **argv) { return 0; }
4501EOF
4502
4503            if test "$GCC" = "yes"; then
4504        if test -z "$ansi"; then
4505          vl_cv_prog_cc_warnings="-Wall -W"
4506        else
4507          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4508        fi
4509
4510
4511            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4512           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4513           test -f conftest.o; then
4514        if test -z "$ansi"; then
4515          vl_cv_prog_cc_warnings="-v"
4516        else
4517          vl_cv_prog_cc_warnings="-v -Xc"
4518        fi
4519
4520            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4521           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4522           test -f conftest.o; then
4523        if test -z "$ansi"; then
4524          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4525        else
4526          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4527        fi
4528
4529            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4530           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4531           test -f conftest.o; then
4532        if test -z "$ansi"; then
4533          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4534        else
4535          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4536        fi
4537
4538            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4539           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4540           test -f conftest.o; then
4541        if test -z "$ansi"; then
4542          vl_cv_prog_cc_warnings="-fullwarn"
4543        else
4544          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4545        fi
4546
4547            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4548           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4549           test -f conftest.o; then
4550        if test -z "$ansi"; then
4551          vl_cv_prog_cc_warnings="+w1"
4552        else
4553          vl_cv_prog_cc_warnings="+w1 -Aa"
4554        fi
4555
4556            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4557           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4558           test -f conftest.o; then
4559        if test -z "$ansi"; then
4560          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4561        else
4562          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4563        fi
4564
4565            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4566           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4567           test -f conftest.o; then
4568        if test -z "$ansi"; then
4569          vl_cv_prog_cc_warnings="-h msglevel 2"
4570        else
4571          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4572        fi
4573
4574      fi
4575      rm -f conftest.*
4576    fi
4577    if test -n "$vl_cv_prog_cc_warnings"; then
4578      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4579    else
4580      vl_cv_prog_cc_warnings="unknown"
4581    fi
4582
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4585$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4586
4587
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4590$as_echo_n "checking whether ln -s works... " >&6; }
4591LN_S=$as_ln_s
4592if test "$LN_S" = "ln -s"; then
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594$as_echo "yes" >&6; }
4595else
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4597$as_echo "no, using $LN_S" >&6; }
4598fi
4599
4600
4601
4602
4603
4604case `pwd` in
4605  *\ * | *\	*)
4606    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4607$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4608esac
4609
4610
4611
4612macro_version='2.4'
4613macro_revision='1.3293'
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627ltmain="$ac_aux_dir/ltmain.sh"
4628
4629# Backslashify metacharacters that are still active within
4630# double-quoted strings.
4631sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4632
4633# Same as above, but do not quote variable references.
4634double_quote_subst='s/\(["`\\]\)/\\\1/g'
4635
4636# Sed substitution to delay expansion of an escaped shell variable in a
4637# double_quote_subst'ed string.
4638delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4639
4640# Sed substitution to delay expansion of an escaped single quote.
4641delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4642
4643# Sed substitution to avoid accidental globbing in evaled expressions
4644no_glob_subst='s/\*/\\\*/g'
4645
4646ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4647ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4648ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4651$as_echo_n "checking how to print strings... " >&6; }
4652# Test print first, because it will be a builtin if present.
4653if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4654   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4655  ECHO='print -r --'
4656elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4657  ECHO='printf %s\n'
4658else
4659  # Use this function as a fallback that always works.
4660  func_fallback_echo ()
4661  {
4662    eval 'cat <<_LTECHO_EOF
4663$1
4664_LTECHO_EOF'
4665  }
4666  ECHO='func_fallback_echo'
4667fi
4668
4669# func_echo_all arg...
4670# Invoke $ECHO with all args, space-separated.
4671func_echo_all ()
4672{
4673    $ECHO ""
4674}
4675
4676case "$ECHO" in
4677  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4678$as_echo "printf" >&6; } ;;
4679  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4680$as_echo "print -r" >&6; } ;;
4681  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4682$as_echo "cat" >&6; } ;;
4683esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4699$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4700if ${ac_cv_path_SED+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4704     for ac_i in 1 2 3 4 5 6 7; do
4705       ac_script="$ac_script$as_nl$ac_script"
4706     done
4707     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4708     { ac_script=; unset ac_script;}
4709     if test -z "$SED"; then
4710  ac_path_SED_found=false
4711  # Loop through the user's path and test for each of PROGNAME-LIST
4712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715  IFS=$as_save_IFS
4716  test -z "$as_dir" && as_dir=.
4717    for ac_prog in sed gsed; do
4718    for ac_exec_ext in '' $ac_executable_extensions; do
4719      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4720      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4721# Check for GNU ac_path_SED and select it if it is found.
4722  # Check for GNU $ac_path_SED
4723case `"$ac_path_SED" --version 2>&1` in
4724*GNU*)
4725  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4726*)
4727  ac_count=0
4728  $as_echo_n 0123456789 >"conftest.in"
4729  while :
4730  do
4731    cat "conftest.in" "conftest.in" >"conftest.tmp"
4732    mv "conftest.tmp" "conftest.in"
4733    cp "conftest.in" "conftest.nl"
4734    $as_echo '' >> "conftest.nl"
4735    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737    as_fn_arith $ac_count + 1 && ac_count=$as_val
4738    if test $ac_count -gt ${ac_path_SED_max-0}; then
4739      # Best one so far, save it but keep looking for a better one
4740      ac_cv_path_SED="$ac_path_SED"
4741      ac_path_SED_max=$ac_count
4742    fi
4743    # 10*(2^10) chars as input seems more than enough
4744    test $ac_count -gt 10 && break
4745  done
4746  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747esac
4748
4749      $ac_path_SED_found && break 3
4750    done
4751  done
4752  done
4753IFS=$as_save_IFS
4754  if test -z "$ac_cv_path_SED"; then
4755    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4756  fi
4757else
4758  ac_cv_path_SED=$SED
4759fi
4760
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4763$as_echo "$ac_cv_path_SED" >&6; }
4764 SED="$ac_cv_path_SED"
4765  rm -f conftest.sed
4766
4767test -z "$SED" && SED=sed
4768Xsed="$SED -e 1s/^X//"
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4781$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4782if ${ac_cv_path_GREP+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  if test -z "$GREP"; then
4786  ac_path_GREP_found=false
4787  # Loop through the user's path and test for each of PROGNAME-LIST
4788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4790do
4791  IFS=$as_save_IFS
4792  test -z "$as_dir" && as_dir=.
4793    for ac_prog in grep ggrep; do
4794    for ac_exec_ext in '' $ac_executable_extensions; do
4795      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4796      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4797# Check for GNU ac_path_GREP and select it if it is found.
4798  # Check for GNU $ac_path_GREP
4799case `"$ac_path_GREP" --version 2>&1` in
4800*GNU*)
4801  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4802*)
4803  ac_count=0
4804  $as_echo_n 0123456789 >"conftest.in"
4805  while :
4806  do
4807    cat "conftest.in" "conftest.in" >"conftest.tmp"
4808    mv "conftest.tmp" "conftest.in"
4809    cp "conftest.in" "conftest.nl"
4810    $as_echo 'GREP' >> "conftest.nl"
4811    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4812    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4813    as_fn_arith $ac_count + 1 && ac_count=$as_val
4814    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4815      # Best one so far, save it but keep looking for a better one
4816      ac_cv_path_GREP="$ac_path_GREP"
4817      ac_path_GREP_max=$ac_count
4818    fi
4819    # 10*(2^10) chars as input seems more than enough
4820    test $ac_count -gt 10 && break
4821  done
4822  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4823esac
4824
4825      $ac_path_GREP_found && break 3
4826    done
4827  done
4828  done
4829IFS=$as_save_IFS
4830  if test -z "$ac_cv_path_GREP"; then
4831    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4832  fi
4833else
4834  ac_cv_path_GREP=$GREP
4835fi
4836
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4839$as_echo "$ac_cv_path_GREP" >&6; }
4840 GREP="$ac_cv_path_GREP"
4841
4842
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4844$as_echo_n "checking for egrep... " >&6; }
4845if ${ac_cv_path_EGREP+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4849   then ac_cv_path_EGREP="$GREP -E"
4850   else
4851     if test -z "$EGREP"; then
4852  ac_path_EGREP_found=false
4853  # Loop through the user's path and test for each of PROGNAME-LIST
4854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4856do
4857  IFS=$as_save_IFS
4858  test -z "$as_dir" && as_dir=.
4859    for ac_prog in egrep; do
4860    for ac_exec_ext in '' $ac_executable_extensions; do
4861      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4862      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4863# Check for GNU ac_path_EGREP and select it if it is found.
4864  # Check for GNU $ac_path_EGREP
4865case `"$ac_path_EGREP" --version 2>&1` in
4866*GNU*)
4867  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4868*)
4869  ac_count=0
4870  $as_echo_n 0123456789 >"conftest.in"
4871  while :
4872  do
4873    cat "conftest.in" "conftest.in" >"conftest.tmp"
4874    mv "conftest.tmp" "conftest.in"
4875    cp "conftest.in" "conftest.nl"
4876    $as_echo 'EGREP' >> "conftest.nl"
4877    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4878    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4879    as_fn_arith $ac_count + 1 && ac_count=$as_val
4880    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4881      # Best one so far, save it but keep looking for a better one
4882      ac_cv_path_EGREP="$ac_path_EGREP"
4883      ac_path_EGREP_max=$ac_count
4884    fi
4885    # 10*(2^10) chars as input seems more than enough
4886    test $ac_count -gt 10 && break
4887  done
4888  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4889esac
4890
4891      $ac_path_EGREP_found && break 3
4892    done
4893  done
4894  done
4895IFS=$as_save_IFS
4896  if test -z "$ac_cv_path_EGREP"; then
4897    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4898  fi
4899else
4900  ac_cv_path_EGREP=$EGREP
4901fi
4902
4903   fi
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4906$as_echo "$ac_cv_path_EGREP" >&6; }
4907 EGREP="$ac_cv_path_EGREP"
4908
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4911$as_echo_n "checking for fgrep... " >&6; }
4912if ${ac_cv_path_FGREP+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4916   then ac_cv_path_FGREP="$GREP -F"
4917   else
4918     if test -z "$FGREP"; then
4919  ac_path_FGREP_found=false
4920  # Loop through the user's path and test for each of PROGNAME-LIST
4921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_prog in fgrep; do
4927    for ac_exec_ext in '' $ac_executable_extensions; do
4928      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4929      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4930# Check for GNU ac_path_FGREP and select it if it is found.
4931  # Check for GNU $ac_path_FGREP
4932case `"$ac_path_FGREP" --version 2>&1` in
4933*GNU*)
4934  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4935*)
4936  ac_count=0
4937  $as_echo_n 0123456789 >"conftest.in"
4938  while :
4939  do
4940    cat "conftest.in" "conftest.in" >"conftest.tmp"
4941    mv "conftest.tmp" "conftest.in"
4942    cp "conftest.in" "conftest.nl"
4943    $as_echo 'FGREP' >> "conftest.nl"
4944    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946    as_fn_arith $ac_count + 1 && ac_count=$as_val
4947    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4948      # Best one so far, save it but keep looking for a better one
4949      ac_cv_path_FGREP="$ac_path_FGREP"
4950      ac_path_FGREP_max=$ac_count
4951    fi
4952    # 10*(2^10) chars as input seems more than enough
4953    test $ac_count -gt 10 && break
4954  done
4955  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956esac
4957
4958      $ac_path_FGREP_found && break 3
4959    done
4960  done
4961  done
4962IFS=$as_save_IFS
4963  if test -z "$ac_cv_path_FGREP"; then
4964    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4965  fi
4966else
4967  ac_cv_path_FGREP=$FGREP
4968fi
4969
4970   fi
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4973$as_echo "$ac_cv_path_FGREP" >&6; }
4974 FGREP="$ac_cv_path_FGREP"
4975
4976
4977test -z "$GREP" && GREP=grep
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997# Check whether --with-gnu-ld was given.
4998if test "${with_gnu_ld+set}" = set; then :
4999  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5000else
5001  with_gnu_ld=no
5002fi
5003
5004ac_prog=ld
5005if test "$GCC" = yes; then
5006  # Check if gcc -print-prog-name=ld gives a path.
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5008$as_echo_n "checking for ld used by $CC... " >&6; }
5009  case $host in
5010  *-*-mingw*)
5011    # gcc leaves a trailing carriage return which upsets mingw
5012    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5013  *)
5014    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5015  esac
5016  case $ac_prog in
5017    # Accept absolute paths.
5018    [\\/]* | ?:[\\/]*)
5019      re_direlt='/[^/][^/]*/\.\./'
5020      # Canonicalize the pathname of ld
5021      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5022      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5023	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5024      done
5025      test -z "$LD" && LD="$ac_prog"
5026      ;;
5027  "")
5028    # If it fails, then pretend we aren't using GCC.
5029    ac_prog=ld
5030    ;;
5031  *)
5032    # If it is relative, then search for the first ld in PATH.
5033    with_gnu_ld=unknown
5034    ;;
5035  esac
5036elif test "$with_gnu_ld" = yes; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5038$as_echo_n "checking for GNU ld... " >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5041$as_echo_n "checking for non-GNU ld... " >&6; }
5042fi
5043if ${lt_cv_path_LD+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  if test -z "$LD"; then
5047  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5048  for ac_dir in $PATH; do
5049    IFS="$lt_save_ifs"
5050    test -z "$ac_dir" && ac_dir=.
5051    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5052      lt_cv_path_LD="$ac_dir/$ac_prog"
5053      # Check to see if the program is GNU ld.  I'd rather use --version,
5054      # but apparently some variants of GNU ld only accept -v.
5055      # Break only if it was the GNU/non-GNU ld that we prefer.
5056      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5057      *GNU* | *'with BFD'*)
5058	test "$with_gnu_ld" != no && break
5059	;;
5060      *)
5061	test "$with_gnu_ld" != yes && break
5062	;;
5063      esac
5064    fi
5065  done
5066  IFS="$lt_save_ifs"
5067else
5068  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5069fi
5070fi
5071
5072LD="$lt_cv_path_LD"
5073if test -n "$LD"; then
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5075$as_echo "$LD" >&6; }
5076else
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
5079fi
5080test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5082$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5083if ${lt_cv_prog_gnu_ld+:} false; then :
5084  $as_echo_n "(cached) " >&6
5085else
5086  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5087case `$LD -v 2>&1 </dev/null` in
5088*GNU* | *'with BFD'*)
5089  lt_cv_prog_gnu_ld=yes
5090  ;;
5091*)
5092  lt_cv_prog_gnu_ld=no
5093  ;;
5094esac
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5097$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5098with_gnu_ld=$lt_cv_prog_gnu_ld
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5109$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5110if ${lt_cv_path_NM+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  if test -n "$NM"; then
5114  # Let the user override the test.
5115  lt_cv_path_NM="$NM"
5116else
5117  lt_nm_to_check="${ac_tool_prefix}nm"
5118  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5119    lt_nm_to_check="$lt_nm_to_check nm"
5120  fi
5121  for lt_tmp_nm in $lt_nm_to_check; do
5122    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5123    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5124      IFS="$lt_save_ifs"
5125      test -z "$ac_dir" && ac_dir=.
5126      tmp_nm="$ac_dir/$lt_tmp_nm"
5127      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5128	# Check to see if the nm accepts a BSD-compat flag.
5129	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5130	#   nm: unknown option "B" ignored
5131	# Tru64's nm complains that /dev/null is an invalid object file
5132	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5133	*/dev/null* | *'Invalid file or object type'*)
5134	  lt_cv_path_NM="$tmp_nm -B"
5135	  break
5136	  ;;
5137	*)
5138	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5139	  */dev/null*)
5140	    lt_cv_path_NM="$tmp_nm -p"
5141	    break
5142	    ;;
5143	  *)
5144	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5145	    continue # so that we can try to find one that supports BSD flags
5146	    ;;
5147	  esac
5148	  ;;
5149	esac
5150      fi
5151    done
5152    IFS="$lt_save_ifs"
5153  done
5154  : ${lt_cv_path_NM=no}
5155fi
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5158$as_echo "$lt_cv_path_NM" >&6; }
5159if test "$lt_cv_path_NM" != "no"; then
5160  NM="$lt_cv_path_NM"
5161else
5162  # Didn't find any BSD compatible name lister, look for dumpbin.
5163  if test -n "$DUMPBIN"; then :
5164    # Let the user override the test.
5165  else
5166    if test -n "$ac_tool_prefix"; then
5167  for ac_prog in dumpbin "link -dump"
5168  do
5169    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if ${ac_cv_prog_DUMPBIN+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  if test -n "$DUMPBIN"; then
5177  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184    for ac_exec_ext in '' $ac_executable_extensions; do
5185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191  done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196DUMPBIN=$ac_cv_prog_DUMPBIN
5197if test -n "$DUMPBIN"; then
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5199$as_echo "$DUMPBIN" >&6; }
5200else
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205
5206    test -n "$DUMPBIN" && break
5207  done
5208fi
5209if test -z "$DUMPBIN"; then
5210  ac_ct_DUMPBIN=$DUMPBIN
5211  for ac_prog in dumpbin "link -dump"
5212do
5213  # Extract the first word of "$ac_prog", so it can be a program name with args.
5214set dummy $ac_prog; ac_word=$2
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216$as_echo_n "checking for $ac_word... " >&6; }
5217if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  if test -n "$ac_ct_DUMPBIN"; then
5221  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226  IFS=$as_save_IFS
5227  test -z "$as_dir" && as_dir=.
5228    for ac_exec_ext in '' $ac_executable_extensions; do
5229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232    break 2
5233  fi
5234done
5235  done
5236IFS=$as_save_IFS
5237
5238fi
5239fi
5240ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5241if test -n "$ac_ct_DUMPBIN"; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5243$as_echo "$ac_ct_DUMPBIN" >&6; }
5244else
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247fi
5248
5249
5250  test -n "$ac_ct_DUMPBIN" && break
5251done
5252
5253  if test "x$ac_ct_DUMPBIN" = x; then
5254    DUMPBIN=":"
5255  else
5256    case $cross_compiling:$ac_tool_warned in
5257yes:)
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260ac_tool_warned=yes ;;
5261esac
5262    DUMPBIN=$ac_ct_DUMPBIN
5263  fi
5264fi
5265
5266    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5267    *COFF*)
5268      DUMPBIN="$DUMPBIN -symbols"
5269      ;;
5270    *)
5271      DUMPBIN=:
5272      ;;
5273    esac
5274  fi
5275
5276  if test "$DUMPBIN" != ":"; then
5277    NM="$DUMPBIN"
5278  fi
5279fi
5280test -z "$NM" && NM=nm
5281
5282
5283
5284
5285
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5288$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5289if ${lt_cv_nm_interface+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  lt_cv_nm_interface="BSD nm"
5293  echo "int some_variable = 0;" > conftest.$ac_ext
5294  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5295  (eval "$ac_compile" 2>conftest.err)
5296  cat conftest.err >&5
5297  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5298  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5299  cat conftest.err >&5
5300  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5301  cat conftest.out >&5
5302  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5303    lt_cv_nm_interface="MS dumpbin"
5304  fi
5305  rm -f conftest*
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5308$as_echo "$lt_cv_nm_interface" >&6; }
5309
5310# find the maximum length of command line arguments
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5312$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5313if ${lt_cv_sys_max_cmd_len+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316    i=0
5317  teststring="ABCD"
5318
5319  case $build_os in
5320  msdosdjgpp*)
5321    # On DJGPP, this test can blow up pretty badly due to problems in libc
5322    # (any single argument exceeding 2000 bytes causes a buffer overrun
5323    # during glob expansion).  Even if it were fixed, the result of this
5324    # check would be larger than it should be.
5325    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5326    ;;
5327
5328  gnu*)
5329    # Under GNU Hurd, this test is not required because there is
5330    # no limit to the length of command line arguments.
5331    # Libtool will interpret -1 as no limit whatsoever
5332    lt_cv_sys_max_cmd_len=-1;
5333    ;;
5334
5335  cygwin* | mingw* | cegcc*)
5336    # On Win9x/ME, this test blows up -- it succeeds, but takes
5337    # about 5 minutes as the teststring grows exponentially.
5338    # Worse, since 9x/ME are not pre-emptively multitasking,
5339    # you end up with a "frozen" computer, even though with patience
5340    # the test eventually succeeds (with a max line length of 256k).
5341    # Instead, let's just punt: use the minimum linelength reported by
5342    # all of the supported platforms: 8192 (on NT/2K/XP).
5343    lt_cv_sys_max_cmd_len=8192;
5344    ;;
5345
5346  mint*)
5347    # On MiNT this can take a long time and run out of memory.
5348    lt_cv_sys_max_cmd_len=8192;
5349    ;;
5350
5351  amigaos*)
5352    # On AmigaOS with pdksh, this test takes hours, literally.
5353    # So we just punt and use a minimum line length of 8192.
5354    lt_cv_sys_max_cmd_len=8192;
5355    ;;
5356
5357  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5358    # This has been around since 386BSD, at least.  Likely further.
5359    if test -x /sbin/sysctl; then
5360      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5361    elif test -x /usr/sbin/sysctl; then
5362      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5363    else
5364      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5365    fi
5366    # And add a safety zone
5367    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5368    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369    ;;
5370
5371  interix*)
5372    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5373    lt_cv_sys_max_cmd_len=196608
5374    ;;
5375
5376  osf*)
5377    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5378    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5379    # nice to cause kernel panics so lets avoid the loop below.
5380    # First set a reasonable default.
5381    lt_cv_sys_max_cmd_len=16384
5382    #
5383    if test -x /sbin/sysconfig; then
5384      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5385        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5386      esac
5387    fi
5388    ;;
5389  sco3.2v5*)
5390    lt_cv_sys_max_cmd_len=102400
5391    ;;
5392  sysv5* | sco5v6* | sysv4.2uw2*)
5393    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5394    if test -n "$kargmax"; then
5395      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5396    else
5397      lt_cv_sys_max_cmd_len=32768
5398    fi
5399    ;;
5400  *)
5401    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5402    if test -n "$lt_cv_sys_max_cmd_len"; then
5403      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5404      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5405    else
5406      # Make teststring a little bigger before we do anything with it.
5407      # a 1K string should be a reasonable start.
5408      for i in 1 2 3 4 5 6 7 8 ; do
5409        teststring=$teststring$teststring
5410      done
5411      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5412      # If test is not a shell built-in, we'll probably end up computing a
5413      # maximum length that is only half of the actual maximum length, but
5414      # we can't tell.
5415      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5416	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5417	      test $i != 17 # 1/2 MB should be enough
5418      do
5419        i=`expr $i + 1`
5420        teststring=$teststring$teststring
5421      done
5422      # Only check the string length outside the loop.
5423      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5424      teststring=
5425      # Add a significant safety factor because C++ compilers can tack on
5426      # massive amounts of additional arguments before passing them to the
5427      # linker.  It appears as though 1/2 is a usable value.
5428      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5429    fi
5430    ;;
5431  esac
5432
5433fi
5434
5435if test -n $lt_cv_sys_max_cmd_len ; then
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5437$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5438else
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5440$as_echo "none" >&6; }
5441fi
5442max_cmd_len=$lt_cv_sys_max_cmd_len
5443
5444
5445
5446
5447
5448
5449: ${CP="cp -f"}
5450: ${MV="mv -f"}
5451: ${RM="rm -f"}
5452
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5454$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5455# Try some XSI features
5456xsi_shell=no
5457( _lt_dummy="a/b/c"
5458  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5459      = c,a/b,b/c, \
5460    && eval 'test $(( 1 + 1 )) -eq 2 \
5461    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5462  && xsi_shell=yes
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5464$as_echo "$xsi_shell" >&6; }
5465
5466
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5468$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5469lt_shell_append=no
5470( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5471    >/dev/null 2>&1 \
5472  && lt_shell_append=yes
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5474$as_echo "$lt_shell_append" >&6; }
5475
5476
5477if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5478  lt_unset=unset
5479else
5480  lt_unset=false
5481fi
5482
5483
5484
5485
5486
5487# test EBCDIC or ASCII
5488case `echo X|tr X '\101'` in
5489 A) # ASCII based system
5490    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5491  lt_SP2NL='tr \040 \012'
5492  lt_NL2SP='tr \015\012 \040\040'
5493  ;;
5494 *) # EBCDIC based system
5495  lt_SP2NL='tr \100 \n'
5496  lt_NL2SP='tr \r\n \100\100'
5497  ;;
5498esac
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5509$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5510if ${lt_cv_to_host_file_cmd+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  case $host in
5514  *-*-mingw* )
5515    case $build in
5516      *-*-mingw* ) # actually msys
5517        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5518        ;;
5519      *-*-cygwin* )
5520        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5521        ;;
5522      * ) # otherwise, assume *nix
5523        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5524        ;;
5525    esac
5526    ;;
5527  *-*-cygwin* )
5528    case $build in
5529      *-*-mingw* ) # actually msys
5530        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5531        ;;
5532      *-*-cygwin* )
5533        lt_cv_to_host_file_cmd=func_convert_file_noop
5534        ;;
5535      * ) # otherwise, assume *nix
5536        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5537        ;;
5538    esac
5539    ;;
5540  * ) # unhandled hosts (and "normal" native builds)
5541    lt_cv_to_host_file_cmd=func_convert_file_noop
5542    ;;
5543esac
5544
5545fi
5546
5547to_host_file_cmd=$lt_cv_to_host_file_cmd
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5549$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5550
5551
5552
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5556$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5557if ${lt_cv_to_tool_file_cmd+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  #assume ordinary cross tools, or native build.
5561lt_cv_to_tool_file_cmd=func_convert_file_noop
5562case $host in
5563  *-*-mingw* )
5564    case $build in
5565      *-*-mingw* ) # actually msys
5566        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5567        ;;
5568    esac
5569    ;;
5570esac
5571
5572fi
5573
5574to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5576$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5577
5578
5579
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5583$as_echo_n "checking for $LD option to reload object files... " >&6; }
5584if ${lt_cv_ld_reload_flag+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  lt_cv_ld_reload_flag='-r'
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5590$as_echo "$lt_cv_ld_reload_flag" >&6; }
5591reload_flag=$lt_cv_ld_reload_flag
5592case $reload_flag in
5593"" | " "*) ;;
5594*) reload_flag=" $reload_flag" ;;
5595esac
5596reload_cmds='$LD$reload_flag -o $output$reload_objs'
5597case $host_os in
5598  cygwin* | mingw* | pw32* | cegcc*)
5599    if test "$GCC" != yes; then
5600      reload_cmds=false
5601    fi
5602    ;;
5603  darwin*)
5604    if test "$GCC" = yes; then
5605      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5606    else
5607      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5608    fi
5609    ;;
5610esac
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620if test -n "$ac_tool_prefix"; then
5621  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5622set dummy ${ac_tool_prefix}objdump; ac_word=$2
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624$as_echo_n "checking for $ac_word... " >&6; }
5625if ${ac_cv_prog_OBJDUMP+:} false; then :
5626  $as_echo_n "(cached) " >&6
5627else
5628  if test -n "$OBJDUMP"; then
5629  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5630else
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634  IFS=$as_save_IFS
5635  test -z "$as_dir" && as_dir=.
5636    for ac_exec_ext in '' $ac_executable_extensions; do
5637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640    break 2
5641  fi
5642done
5643  done
5644IFS=$as_save_IFS
5645
5646fi
5647fi
5648OBJDUMP=$ac_cv_prog_OBJDUMP
5649if test -n "$OBJDUMP"; then
5650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5651$as_echo "$OBJDUMP" >&6; }
5652else
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655fi
5656
5657
5658fi
5659if test -z "$ac_cv_prog_OBJDUMP"; then
5660  ac_ct_OBJDUMP=$OBJDUMP
5661  # Extract the first word of "objdump", so it can be a program name with args.
5662set dummy objdump; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  if test -n "$ac_ct_OBJDUMP"; then
5669  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5689if test -n "$ac_ct_OBJDUMP"; then
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5691$as_echo "$ac_ct_OBJDUMP" >&6; }
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697  if test "x$ac_ct_OBJDUMP" = x; then
5698    OBJDUMP="false"
5699  else
5700    case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
5705esac
5706    OBJDUMP=$ac_ct_OBJDUMP
5707  fi
5708else
5709  OBJDUMP="$ac_cv_prog_OBJDUMP"
5710fi
5711
5712test -z "$OBJDUMP" && OBJDUMP=objdump
5713
5714
5715
5716
5717
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5720$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5721if ${lt_cv_deplibs_check_method+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  lt_cv_file_magic_cmd='$MAGIC_CMD'
5725lt_cv_file_magic_test_file=
5726lt_cv_deplibs_check_method='unknown'
5727# Need to set the preceding variable on all platforms that support
5728# interlibrary dependencies.
5729# 'none' -- dependencies not supported.
5730# `unknown' -- same as none, but documents that we really don't know.
5731# 'pass_all' -- all dependencies passed with no checks.
5732# 'test_compile' -- check by making test program.
5733# 'file_magic [[regex]]' -- check by looking for files in library path
5734# which responds to the $file_magic_cmd with a given extended regex.
5735# If you have `file' or equivalent on your system and you're not sure
5736# whether `pass_all' will *always* work, you probably want this one.
5737
5738case $host_os in
5739aix[4-9]*)
5740  lt_cv_deplibs_check_method=pass_all
5741  ;;
5742
5743beos*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747bsdi[45]*)
5748  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5749  lt_cv_file_magic_cmd='/usr/bin/file -L'
5750  lt_cv_file_magic_test_file=/shlib/libc.so
5751  ;;
5752
5753cygwin*)
5754  # func_win32_libid is a shell function defined in ltmain.sh
5755  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5756  lt_cv_file_magic_cmd='func_win32_libid'
5757  ;;
5758
5759mingw* | pw32*)
5760  # Base MSYS/MinGW do not provide the 'file' command needed by
5761  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5762  # unless we find 'file', for example because we are cross-compiling.
5763  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5764  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5765    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5766    lt_cv_file_magic_cmd='func_win32_libid'
5767  else
5768    # Keep this pattern in sync with the one in func_win32_libid.
5769    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5770    lt_cv_file_magic_cmd='$OBJDUMP -f'
5771  fi
5772  ;;
5773
5774cegcc*)
5775  # use the weaker test based on 'objdump'. See mingw*.
5776  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5777  lt_cv_file_magic_cmd='$OBJDUMP -f'
5778  ;;
5779
5780darwin* | rhapsody*)
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784freebsd* | dragonfly*)
5785  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5786    case $host_cpu in
5787    i*86 )
5788      # Not sure whether the presence of OpenBSD here was a mistake.
5789      # Let's accept both of them until this is cleared up.
5790      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5791      lt_cv_file_magic_cmd=/usr/bin/file
5792      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5793      ;;
5794    esac
5795  else
5796    lt_cv_deplibs_check_method=pass_all
5797  fi
5798  ;;
5799
5800gnu*)
5801  lt_cv_deplibs_check_method=pass_all
5802  ;;
5803
5804haiku*)
5805  lt_cv_deplibs_check_method=pass_all
5806  ;;
5807
5808hpux10.20* | hpux11*)
5809  lt_cv_file_magic_cmd=/usr/bin/file
5810  case $host_cpu in
5811  ia64*)
5812    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5813    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5814    ;;
5815  hppa*64*)
5816    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]'
5817    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5818    ;;
5819  *)
5820    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5821    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5822    ;;
5823  esac
5824  ;;
5825
5826interix[3-9]*)
5827  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5828  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5829  ;;
5830
5831irix5* | irix6* | nonstopux*)
5832  case $LD in
5833  *-32|*"-32 ") libmagic=32-bit;;
5834  *-n32|*"-n32 ") libmagic=N32;;
5835  *-64|*"-64 ") libmagic=64-bit;;
5836  *) libmagic=never-match;;
5837  esac
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841# This must be Linux ELF.
5842linux* | k*bsd*-gnu | kopensolaris*-gnu)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846netbsd*)
5847  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5849  else
5850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5851  fi
5852  ;;
5853
5854newos6*)
5855  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5856  lt_cv_file_magic_cmd=/usr/bin/file
5857  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5858  ;;
5859
5860*nto* | *qnx*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864openbsd*)
5865  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5867  else
5868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5869  fi
5870  ;;
5871
5872osf3* | osf4* | osf5*)
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876rdos*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880solaris*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888sysv4 | sysv4.3*)
5889  case $host_vendor in
5890  motorola)
5891    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]'
5892    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5893    ;;
5894  ncr)
5895    lt_cv_deplibs_check_method=pass_all
5896    ;;
5897  sequent)
5898    lt_cv_file_magic_cmd='/bin/file'
5899    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5900    ;;
5901  sni)
5902    lt_cv_file_magic_cmd='/bin/file'
5903    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5904    lt_cv_file_magic_test_file=/lib/libc.so
5905    ;;
5906  siemens)
5907    lt_cv_deplibs_check_method=pass_all
5908    ;;
5909  pc)
5910    lt_cv_deplibs_check_method=pass_all
5911    ;;
5912  esac
5913  ;;
5914
5915tpf*)
5916  lt_cv_deplibs_check_method=pass_all
5917  ;;
5918esac
5919
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5922$as_echo "$lt_cv_deplibs_check_method" >&6; }
5923
5924file_magic_glob=
5925want_nocaseglob=no
5926if test "$build" = "$host"; then
5927  case $host_os in
5928  mingw* | pw32*)
5929    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5930      want_nocaseglob=yes
5931    else
5932      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5933    fi
5934    ;;
5935  esac
5936fi
5937
5938file_magic_cmd=$lt_cv_file_magic_cmd
5939deplibs_check_method=$lt_cv_deplibs_check_method
5940test -z "$deplibs_check_method" && deplibs_check_method=unknown
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963if test -n "$ac_tool_prefix"; then
5964  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5965set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if ${ac_cv_prog_DLLTOOL+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  if test -n "$DLLTOOL"; then
5972  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979    for ac_exec_ext in '' $ac_executable_extensions; do
5980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986  done
5987IFS=$as_save_IFS
5988
5989fi
5990fi
5991DLLTOOL=$ac_cv_prog_DLLTOOL
5992if test -n "$DLLTOOL"; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5994$as_echo "$DLLTOOL" >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001fi
6002if test -z "$ac_cv_prog_DLLTOOL"; then
6003  ac_ct_DLLTOOL=$DLLTOOL
6004  # Extract the first word of "dlltool", so it can be a program name with args.
6005set dummy dlltool; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  if test -n "$ac_ct_DLLTOOL"; then
6012  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6032if test -n "$ac_ct_DLLTOOL"; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6034$as_echo "$ac_ct_DLLTOOL" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040  if test "x$ac_ct_DLLTOOL" = x; then
6041    DLLTOOL="false"
6042  else
6043    case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049    DLLTOOL=$ac_ct_DLLTOOL
6050  fi
6051else
6052  DLLTOOL="$ac_cv_prog_DLLTOOL"
6053fi
6054
6055test -z "$DLLTOOL" && DLLTOOL=dlltool
6056
6057
6058
6059
6060
6061
6062
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6064$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6065if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  lt_cv_sharedlib_from_linklib_cmd='unknown'
6069
6070case $host_os in
6071cygwin* | mingw* | pw32* | cegcc*)
6072  # two different shell functions defined in ltmain.sh
6073  # decide which to use based on capabilities of $DLLTOOL
6074  case `$DLLTOOL --help 2>&1` in
6075  *--identify-strict*)
6076    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6077    ;;
6078  *)
6079    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6080    ;;
6081  esac
6082  ;;
6083*)
6084  # fallback: assume linklib IS sharedlib
6085  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6086  ;;
6087esac
6088
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6091$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6092sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6093test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6094
6095
6096
6097
6098
6099
6100
6101
6102if test -n "$ac_tool_prefix"; then
6103  for ac_prog in ar
6104  do
6105    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if ${ac_cv_prog_AR+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  if test -n "$AR"; then
6113  ac_cv_prog_AR="$AR" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120    for ac_exec_ext in '' $ac_executable_extensions; do
6121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127  done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132AR=$ac_cv_prog_AR
6133if test -n "$AR"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135$as_echo "$AR" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142    test -n "$AR" && break
6143  done
6144fi
6145if test -z "$AR"; then
6146  ac_ct_AR=$AR
6147  for ac_prog in ar
6148do
6149  # Extract the first word of "$ac_prog", so it can be a program name with args.
6150set dummy $ac_prog; ac_word=$2
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if ${ac_cv_prog_ac_ct_AR+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  if test -n "$ac_ct_AR"; then
6157  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162  IFS=$as_save_IFS
6163  test -z "$as_dir" && as_dir=.
6164    for ac_exec_ext in '' $ac_executable_extensions; do
6165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166    ac_cv_prog_ac_ct_AR="$ac_prog"
6167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168    break 2
6169  fi
6170done
6171  done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177if test -n "$ac_ct_AR"; then
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6179$as_echo "$ac_ct_AR" >&6; }
6180else
6181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185
6186  test -n "$ac_ct_AR" && break
6187done
6188
6189  if test "x$ac_ct_AR" = x; then
6190    AR="false"
6191  else
6192    case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198    AR=$ac_ct_AR
6199  fi
6200fi
6201
6202: ${AR=ar}
6203: ${AR_FLAGS=cru}
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6216$as_echo_n "checking for archiver @FILE support... " >&6; }
6217if ${lt_cv_ar_at_file+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  lt_cv_ar_at_file=no
6221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223
6224int
6225main ()
6226{
6227
6228  ;
6229  return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233  echo conftest.$ac_objext > conftest.lst
6234      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6235      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6236  (eval $lt_ar_try) 2>&5
6237  ac_status=$?
6238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239  test $ac_status = 0; }
6240      if test "$ac_status" -eq 0; then
6241	# Ensure the archiver fails upon bogus file names.
6242	rm -f conftest.$ac_objext libconftest.a
6243	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6244  (eval $lt_ar_try) 2>&5
6245  ac_status=$?
6246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247  test $ac_status = 0; }
6248	if test "$ac_status" -ne 0; then
6249          lt_cv_ar_at_file=@
6250        fi
6251      fi
6252      rm -f conftest.* libconftest.a
6253
6254fi
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6259$as_echo "$lt_cv_ar_at_file" >&6; }
6260
6261if test "x$lt_cv_ar_at_file" = xno; then
6262  archiver_list_spec=
6263else
6264  archiver_list_spec=$lt_cv_ar_at_file
6265fi
6266
6267
6268
6269
6270
6271
6272
6273if test -n "$ac_tool_prefix"; then
6274  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275set dummy ${ac_tool_prefix}strip; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if ${ac_cv_prog_STRIP+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  if test -n "$STRIP"; then
6282  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  test -z "$as_dir" && as_dir=.
6289    for ac_exec_ext in '' $ac_executable_extensions; do
6290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293    break 2
6294  fi
6295done
6296  done
6297IFS=$as_save_IFS
6298
6299fi
6300fi
6301STRIP=$ac_cv_prog_STRIP
6302if test -n "$STRIP"; then
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304$as_echo "$STRIP" >&6; }
6305else
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311fi
6312if test -z "$ac_cv_prog_STRIP"; then
6313  ac_ct_STRIP=$STRIP
6314  # Extract the first word of "strip", so it can be a program name with args.
6315set dummy strip; ac_word=$2
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  if test -n "$ac_ct_STRIP"; then
6322  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327  IFS=$as_save_IFS
6328  test -z "$as_dir" && as_dir=.
6329    for ac_exec_ext in '' $ac_executable_extensions; do
6330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331    ac_cv_prog_ac_ct_STRIP="strip"
6332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336  done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342if test -n "$ac_ct_STRIP"; then
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344$as_echo "$ac_ct_STRIP" >&6; }
6345else
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
6348fi
6349
6350  if test "x$ac_ct_STRIP" = x; then
6351    STRIP=":"
6352  else
6353    case $cross_compiling:$ac_tool_warned in
6354yes:)
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357ac_tool_warned=yes ;;
6358esac
6359    STRIP=$ac_ct_STRIP
6360  fi
6361else
6362  STRIP="$ac_cv_prog_STRIP"
6363fi
6364
6365test -z "$STRIP" && STRIP=:
6366
6367
6368
6369
6370
6371
6372if test -n "$ac_tool_prefix"; then
6373  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if ${ac_cv_prog_RANLIB+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  if test -n "$RANLIB"; then
6381  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388    for ac_exec_ext in '' $ac_executable_extensions; do
6389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395  done
6396IFS=$as_save_IFS
6397
6398fi
6399fi
6400RANLIB=$ac_cv_prog_RANLIB
6401if test -n "$RANLIB"; then
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403$as_echo "$RANLIB" >&6; }
6404else
6405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407fi
6408
6409
6410fi
6411if test -z "$ac_cv_prog_RANLIB"; then
6412  ac_ct_RANLIB=$RANLIB
6413  # Extract the first word of "ranlib", so it can be a program name with args.
6414set dummy ranlib; ac_word=$2
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  if test -n "$ac_ct_RANLIB"; then
6421  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426  IFS=$as_save_IFS
6427  test -z "$as_dir" && as_dir=.
6428    for ac_exec_ext in '' $ac_executable_extensions; do
6429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430    ac_cv_prog_ac_ct_RANLIB="ranlib"
6431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432    break 2
6433  fi
6434done
6435  done
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441if test -n "$ac_ct_RANLIB"; then
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443$as_echo "$ac_ct_RANLIB" >&6; }
6444else
6445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449  if test "x$ac_ct_RANLIB" = x; then
6450    RANLIB=":"
6451  else
6452    case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458    RANLIB=$ac_ct_RANLIB
6459  fi
6460else
6461  RANLIB="$ac_cv_prog_RANLIB"
6462fi
6463
6464test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471# Determine commands to create old-style static archives.
6472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473old_postinstall_cmds='chmod 644 $oldlib'
6474old_postuninstall_cmds=
6475
6476if test -n "$RANLIB"; then
6477  case $host_os in
6478  openbsd*)
6479    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6480    ;;
6481  *)
6482    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6483    ;;
6484  esac
6485  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6486fi
6487
6488case $host_os in
6489  darwin*)
6490    lock_old_archive_extraction=yes ;;
6491  *)
6492    lock_old_archive_extraction=no ;;
6493esac
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533# If no C compiler was specified, use CC.
6534LTCC=${LTCC-"$CC"}
6535
6536# If no C compiler flags were specified, use CFLAGS.
6537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6538
6539# Allow CC to be a program name with arguments.
6540compiler=$CC
6541
6542
6543# Check for command to grab the raw symbol name followed by C symbol from nm.
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549
6550# These are sane defaults that work on at least a few old systems.
6551# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6552
6553# Character class describing NM global symbol codes.
6554symcode='[BCDEGRST]'
6555
6556# Regexp to match symbols that can be accessed directly from C.
6557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559# Define system-specific variables.
6560case $host_os in
6561aix*)
6562  symcode='[BCDT]'
6563  ;;
6564cygwin* | mingw* | pw32* | cegcc*)
6565  symcode='[ABCDGISTW]'
6566  ;;
6567hpux*)
6568  if test "$host_cpu" = ia64; then
6569    symcode='[ABCDEGRST]'
6570  fi
6571  ;;
6572irix* | nonstopux*)
6573  symcode='[BCDEGRST]'
6574  ;;
6575osf*)
6576  symcode='[BCDEGQRST]'
6577  ;;
6578solaris*)
6579  symcode='[BDRT]'
6580  ;;
6581sco3.2v5*)
6582  symcode='[DT]'
6583  ;;
6584sysv4.2uw2*)
6585  symcode='[DT]'
6586  ;;
6587sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588  symcode='[ABDT]'
6589  ;;
6590sysv4)
6591  symcode='[DFNSTU]'
6592  ;;
6593esac
6594
6595# If we're using GNU nm, then use its standard symbol codes.
6596case `$NM -V 2>&1` in
6597*GNU* | *'with BFD'*)
6598  symcode='[ABCDGIRSTW]' ;;
6599esac
6600
6601# Transform an extracted symbol line into a proper C declaration.
6602# Some systems (esp. on ia64) link data and code symbols differently,
6603# so use this general approach.
6604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605
6606# Transform an extracted symbol line into symbol name and symbol address
6607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6608lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6609
6610# Handle CRLF in mingw tool chain
6611opt_cr=
6612case $build_os in
6613mingw*)
6614  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615  ;;
6616esac
6617
6618# Try without a prefix underscore, then with it.
6619for ac_symprfx in "" "_"; do
6620
6621  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622  symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624  # Write the raw and C identifiers.
6625  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626    # Fake it for dumpbin and say T for any non-static function
6627    # and D for any global variable.
6628    # Also find C++ and __fastcall symbols from MSVC++,
6629    # which start with @ or ?.
6630    lt_cv_sys_global_symbol_pipe="$AWK '"\
6631"     {last_section=section; section=\$ 3};"\
6632"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6633"     \$ 0!~/External *\|/{next};"\
6634"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6635"     {if(hide[section]) next};"\
6636"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6637"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6638"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6639"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6640"     ' prfx=^$ac_symprfx"
6641  else
6642    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6643  fi
6644  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6645
6646  # Check to see that the pipe works correctly.
6647  pipe_works=no
6648
6649  rm -f conftest*
6650  cat > conftest.$ac_ext <<_LT_EOF
6651#ifdef __cplusplus
6652extern "C" {
6653#endif
6654char nm_test_var;
6655void nm_test_func(void);
6656void nm_test_func(void){}
6657#ifdef __cplusplus
6658}
6659#endif
6660int main(){nm_test_var='a';nm_test_func();return(0);}
6661_LT_EOF
6662
6663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664  (eval $ac_compile) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; }; then
6668    # Now try to grab the symbols.
6669    nlist=conftest.nm
6670    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6671  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6672  ac_status=$?
6673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674  test $ac_status = 0; } && test -s "$nlist"; then
6675      # Try sorting and uniquifying the output.
6676      if sort "$nlist" | uniq > "$nlist"T; then
6677	mv -f "$nlist"T "$nlist"
6678      else
6679	rm -f "$nlist"T
6680      fi
6681
6682      # Make sure that we snagged all the symbols we need.
6683      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6684	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6685	  cat <<_LT_EOF > conftest.$ac_ext
6686/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6687#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6688/* DATA imports from DLLs on WIN32 con't be const, because runtime
6689   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6690# define LT_DLSYM_CONST
6691#elif defined(__osf__)
6692/* This system does not cope well with relocations in const data.  */
6693# define LT_DLSYM_CONST
6694#else
6695# define LT_DLSYM_CONST const
6696#endif
6697
6698#ifdef __cplusplus
6699extern "C" {
6700#endif
6701
6702_LT_EOF
6703	  # Now generate the symbol file.
6704	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6705
6706	  cat <<_LT_EOF >> conftest.$ac_ext
6707
6708/* The mapping between symbol names and symbols.  */
6709LT_DLSYM_CONST struct {
6710  const char *name;
6711  void       *address;
6712}
6713lt__PROGRAM__LTX_preloaded_symbols[] =
6714{
6715  { "@PROGRAM@", (void *) 0 },
6716_LT_EOF
6717	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6718	  cat <<\_LT_EOF >> conftest.$ac_ext
6719  {0, (void *) 0}
6720};
6721
6722/* This works around a problem in FreeBSD linker */
6723#ifdef FREEBSD_WORKAROUND
6724static const void *lt_preloaded_setup() {
6725  return lt__PROGRAM__LTX_preloaded_symbols;
6726}
6727#endif
6728
6729#ifdef __cplusplus
6730}
6731#endif
6732_LT_EOF
6733	  # Now try linking the two files.
6734	  mv conftest.$ac_objext conftstm.$ac_objext
6735	  lt_globsym_save_LIBS=$LIBS
6736	  lt_globsym_save_CFLAGS=$CFLAGS
6737	  LIBS="conftstm.$ac_objext"
6738	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6739	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6740  (eval $ac_link) 2>&5
6741  ac_status=$?
6742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6744	    pipe_works=yes
6745	  fi
6746	  LIBS=$lt_globsym_save_LIBS
6747	  CFLAGS=$lt_globsym_save_CFLAGS
6748	else
6749	  echo "cannot find nm_test_func in $nlist" >&5
6750	fi
6751      else
6752	echo "cannot find nm_test_var in $nlist" >&5
6753      fi
6754    else
6755      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6756    fi
6757  else
6758    echo "$progname: failed program was:" >&5
6759    cat conftest.$ac_ext >&5
6760  fi
6761  rm -rf conftest* conftst*
6762
6763  # Do not use the global_symbol_pipe unless it works.
6764  if test "$pipe_works" = yes; then
6765    break
6766  else
6767    lt_cv_sys_global_symbol_pipe=
6768  fi
6769done
6770
6771fi
6772
6773if test -z "$lt_cv_sys_global_symbol_pipe"; then
6774  lt_cv_sys_global_symbol_to_cdecl=
6775fi
6776if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6778$as_echo "failed" >&6; }
6779else
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6781$as_echo "ok" >&6; }
6782fi
6783
6784# Response file support.
6785if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6786  nm_file_list_spec='@'
6787elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6788  nm_file_list_spec='@'
6789fi
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6818$as_echo_n "checking for sysroot... " >&6; }
6819
6820# Check whether --with-sysroot was given.
6821if test "${with_sysroot+set}" = set; then :
6822  withval=$with_sysroot;
6823else
6824  with_sysroot=no
6825fi
6826
6827
6828lt_sysroot=
6829case ${with_sysroot} in #(
6830 yes)
6831   if test "$GCC" = yes; then
6832     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6833   fi
6834   ;; #(
6835 /*)
6836   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6837   ;; #(
6838 no|'')
6839   ;; #(
6840 *)
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6842$as_echo "${with_sysroot}" >&6; }
6843   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6844   ;;
6845esac
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6848$as_echo "${lt_sysroot:-no}" >&6; }
6849
6850
6851
6852
6853
6854# Check whether --enable-libtool-lock was given.
6855if test "${enable_libtool_lock+set}" = set; then :
6856  enableval=$enable_libtool_lock;
6857fi
6858
6859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6860
6861# Some flags need to be propagated to the compiler or linker for good
6862# libtool support.
6863case $host in
6864ia64-*-hpux*)
6865  # Find out which ABI we are using.
6866  echo 'int i;' > conftest.$ac_ext
6867  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868  (eval $ac_compile) 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871  test $ac_status = 0; }; then
6872    case `/usr/bin/file conftest.$ac_objext` in
6873      *ELF-32*)
6874	HPUX_IA64_MODE="32"
6875	;;
6876      *ELF-64*)
6877	HPUX_IA64_MODE="64"
6878	;;
6879    esac
6880  fi
6881  rm -rf conftest*
6882  ;;
6883*-*-irix6*)
6884  # Find out which ABI we are using.
6885  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6886  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887  (eval $ac_compile) 2>&5
6888  ac_status=$?
6889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890  test $ac_status = 0; }; then
6891    if test "$lt_cv_prog_gnu_ld" = yes; then
6892      case `/usr/bin/file conftest.$ac_objext` in
6893	*32-bit*)
6894	  LD="${LD-ld} -melf32bsmip"
6895	  ;;
6896	*N32*)
6897	  LD="${LD-ld} -melf32bmipn32"
6898	  ;;
6899	*64-bit*)
6900	  LD="${LD-ld} -melf64bmip"
6901	;;
6902      esac
6903    else
6904      case `/usr/bin/file conftest.$ac_objext` in
6905	*32-bit*)
6906	  LD="${LD-ld} -32"
6907	  ;;
6908	*N32*)
6909	  LD="${LD-ld} -n32"
6910	  ;;
6911	*64-bit*)
6912	  LD="${LD-ld} -64"
6913	  ;;
6914      esac
6915    fi
6916  fi
6917  rm -rf conftest*
6918  ;;
6919
6920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6922  # Find out which ABI we are using.
6923  echo 'int i;' > conftest.$ac_ext
6924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925  (eval $ac_compile) 2>&5
6926  ac_status=$?
6927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928  test $ac_status = 0; }; then
6929    case `/usr/bin/file conftest.o` in
6930      *32-bit*)
6931	case $host in
6932	  x86_64-*kfreebsd*-gnu)
6933	    LD="${LD-ld} -m elf_i386_fbsd"
6934	    ;;
6935	  x86_64-*linux*)
6936	    LD="${LD-ld} -m elf_i386"
6937	    ;;
6938	  ppc64-*linux*|powerpc64-*linux*)
6939	    LD="${LD-ld} -m elf32ppclinux"
6940	    ;;
6941	  s390x-*linux*)
6942	    LD="${LD-ld} -m elf_s390"
6943	    ;;
6944	  sparc64-*linux*)
6945	    LD="${LD-ld} -m elf32_sparc"
6946	    ;;
6947	esac
6948	;;
6949      *64-bit*)
6950	case $host in
6951	  x86_64-*kfreebsd*-gnu)
6952	    LD="${LD-ld} -m elf_x86_64_fbsd"
6953	    ;;
6954	  x86_64-*linux*)
6955	    LD="${LD-ld} -m elf_x86_64"
6956	    ;;
6957	  ppc*-*linux*|powerpc*-*linux*)
6958	    LD="${LD-ld} -m elf64ppc"
6959	    ;;
6960	  s390*-*linux*|s390*-*tpf*)
6961	    LD="${LD-ld} -m elf64_s390"
6962	    ;;
6963	  sparc*-*linux*)
6964	    LD="${LD-ld} -m elf64_sparc"
6965	    ;;
6966	esac
6967	;;
6968    esac
6969  fi
6970  rm -rf conftest*
6971  ;;
6972
6973*-*-sco3.2v5*)
6974  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975  SAVE_CFLAGS="$CFLAGS"
6976  CFLAGS="$CFLAGS -belf"
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6978$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6979if ${lt_cv_cc_needs_belf+:} false; then :
6980  $as_echo_n "(cached) " >&6
6981else
6982  ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990
6991int
6992main ()
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"; then :
7000  lt_cv_cc_needs_belf=yes
7001else
7002  lt_cv_cc_needs_belf=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext \
7005    conftest$ac_exeext conftest.$ac_ext
7006     ac_ext=c
7007ac_cpp='$CPP $CPPFLAGS'
7008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7014$as_echo "$lt_cv_cc_needs_belf" >&6; }
7015  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7016    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7017    CFLAGS="$SAVE_CFLAGS"
7018  fi
7019  ;;
7020sparc*-*solaris*)
7021  # Find out which ABI we are using.
7022  echo 'int i;' > conftest.$ac_ext
7023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024  (eval $ac_compile) 2>&5
7025  ac_status=$?
7026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027  test $ac_status = 0; }; then
7028    case `/usr/bin/file conftest.o` in
7029    *64-bit*)
7030      case $lt_cv_prog_gnu_ld in
7031      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7032      *)
7033	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034	  LD="${LD-ld} -64"
7035	fi
7036	;;
7037      esac
7038      ;;
7039    esac
7040  fi
7041  rm -rf conftest*
7042  ;;
7043esac
7044
7045need_locks="$enable_libtool_lock"
7046
7047if test -n "$ac_tool_prefix"; then
7048  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7049set dummy ${ac_tool_prefix}mt; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
7052if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055  if test -n "$MANIFEST_TOOL"; then
7056  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070  done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7076if test -n "$MANIFEST_TOOL"; then
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7078$as_echo "$MANIFEST_TOOL" >&6; }
7079else
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082fi
7083
7084
7085fi
7086if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7087  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7088  # Extract the first word of "mt", so it can be a program name with args.
7089set dummy mt; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$ac_ct_MANIFEST_TOOL"; then
7096  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7116if test -n "$ac_ct_MANIFEST_TOOL"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7118$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7125    MANIFEST_TOOL=":"
7126  else
7127    case $cross_compiling:$ac_tool_warned in
7128yes:)
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131ac_tool_warned=yes ;;
7132esac
7133    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7134  fi
7135else
7136  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7137fi
7138
7139test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7141$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7142if ${lt_cv_path_mainfest_tool+:} false; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145  lt_cv_path_mainfest_tool=no
7146  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7147  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7148  cat conftest.err >&5
7149  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7150    lt_cv_path_mainfest_tool=yes
7151  fi
7152  rm -f conftest*
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7155$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7156if test "x$lt_cv_path_mainfest_tool" != xyes; then
7157  MANIFEST_TOOL=:
7158fi
7159
7160
7161
7162
7163
7164
7165  case $host_os in
7166    rhapsody* | darwin*)
7167    if test -n "$ac_tool_prefix"; then
7168  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
7172if ${ac_cv_prog_DSYMUTIL+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  if test -n "$DSYMUTIL"; then
7176  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181  IFS=$as_save_IFS
7182  test -z "$as_dir" && as_dir=.
7183    for ac_exec_ext in '' $ac_executable_extensions; do
7184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187    break 2
7188  fi
7189done
7190  done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195DSYMUTIL=$ac_cv_prog_DSYMUTIL
7196if test -n "$DSYMUTIL"; then
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7198$as_echo "$DSYMUTIL" >&6; }
7199else
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_DSYMUTIL"; then
7207  ac_ct_DSYMUTIL=$DSYMUTIL
7208  # Extract the first word of "dsymutil", so it can be a program name with args.
7209set dummy dsymutil; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  if test -n "$ac_ct_DSYMUTIL"; then
7216  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223    for ac_exec_ext in '' $ac_executable_extensions; do
7224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230  done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7236if test -n "$ac_ct_DSYMUTIL"; then
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7238$as_echo "$ac_ct_DSYMUTIL" >&6; }
7239else
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244  if test "x$ac_ct_DSYMUTIL" = x; then
7245    DSYMUTIL=":"
7246  else
7247    case $cross_compiling:$ac_tool_warned in
7248yes:)
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251ac_tool_warned=yes ;;
7252esac
7253    DSYMUTIL=$ac_ct_DSYMUTIL
7254  fi
7255else
7256  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257fi
7258
7259    if test -n "$ac_tool_prefix"; then
7260  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_NMEDIT+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  if test -n "$NMEDIT"; then
7268  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275    for ac_exec_ext in '' $ac_executable_extensions; do
7276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282  done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287NMEDIT=$ac_cv_prog_NMEDIT
7288if test -n "$NMEDIT"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7290$as_echo "$NMEDIT" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_NMEDIT"; then
7299  ac_ct_NMEDIT=$NMEDIT
7300  # Extract the first word of "nmedit", so it can be a program name with args.
7301set dummy nmedit; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$ac_ct_NMEDIT"; then
7308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315    for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322  done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7328if test -n "$ac_ct_NMEDIT"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7330$as_echo "$ac_ct_NMEDIT" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336  if test "x$ac_ct_NMEDIT" = x; then
7337    NMEDIT=":"
7338  else
7339    case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345    NMEDIT=$ac_ct_NMEDIT
7346  fi
7347else
7348  NMEDIT="$ac_cv_prog_NMEDIT"
7349fi
7350
7351    if test -n "$ac_tool_prefix"; then
7352  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}lipo; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_LIPO+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$LIPO"; then
7360  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379LIPO=$ac_cv_prog_LIPO
7380if test -n "$LIPO"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7382$as_echo "$LIPO" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389fi
7390if test -z "$ac_cv_prog_LIPO"; then
7391  ac_ct_LIPO=$LIPO
7392  # Extract the first word of "lipo", so it can be a program name with args.
7393set dummy lipo; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  if test -n "$ac_ct_LIPO"; then
7400  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405  IFS=$as_save_IFS
7406  test -z "$as_dir" && as_dir=.
7407    for ac_exec_ext in '' $ac_executable_extensions; do
7408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409    ac_cv_prog_ac_ct_LIPO="lipo"
7410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411    break 2
7412  fi
7413done
7414  done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7420if test -n "$ac_ct_LIPO"; then
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7422$as_echo "$ac_ct_LIPO" >&6; }
7423else
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428  if test "x$ac_ct_LIPO" = x; then
7429    LIPO=":"
7430  else
7431    case $cross_compiling:$ac_tool_warned in
7432yes:)
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435ac_tool_warned=yes ;;
7436esac
7437    LIPO=$ac_ct_LIPO
7438  fi
7439else
7440  LIPO="$ac_cv_prog_LIPO"
7441fi
7442
7443    if test -n "$ac_tool_prefix"; then
7444  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7445set dummy ${ac_tool_prefix}otool; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_OTOOL+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$OTOOL"; then
7452  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471OTOOL=$ac_cv_prog_OTOOL
7472if test -n "$OTOOL"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7474$as_echo "$OTOOL" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_OTOOL"; then
7483  ac_ct_OTOOL=$OTOOL
7484  # Extract the first word of "otool", so it can be a program name with args.
7485set dummy otool; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  if test -n "$ac_ct_OTOOL"; then
7492  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501    ac_cv_prog_ac_ct_OTOOL="otool"
7502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506  done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7512if test -n "$ac_ct_OTOOL"; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7514$as_echo "$ac_ct_OTOOL" >&6; }
7515else
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520  if test "x$ac_ct_OTOOL" = x; then
7521    OTOOL=":"
7522  else
7523    case $cross_compiling:$ac_tool_warned in
7524yes:)
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527ac_tool_warned=yes ;;
7528esac
7529    OTOOL=$ac_ct_OTOOL
7530  fi
7531else
7532  OTOOL="$ac_cv_prog_OTOOL"
7533fi
7534
7535    if test -n "$ac_tool_prefix"; then
7536  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7537set dummy ${ac_tool_prefix}otool64; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_OTOOL64+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$OTOOL64"; then
7544  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563OTOOL64=$ac_cv_prog_OTOOL64
7564if test -n "$OTOOL64"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7566$as_echo "$OTOOL64" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573fi
7574if test -z "$ac_cv_prog_OTOOL64"; then
7575  ac_ct_OTOOL64=$OTOOL64
7576  # Extract the first word of "otool64", so it can be a program name with args.
7577set dummy otool64; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  if test -n "$ac_ct_OTOOL64"; then
7584  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593    ac_cv_prog_ac_ct_OTOOL64="otool64"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7604if test -n "$ac_ct_OTOOL64"; then
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7606$as_echo "$ac_ct_OTOOL64" >&6; }
7607else
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612  if test "x$ac_ct_OTOOL64" = x; then
7613    OTOOL64=":"
7614  else
7615    case $cross_compiling:$ac_tool_warned in
7616yes:)
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619ac_tool_warned=yes ;;
7620esac
7621    OTOOL64=$ac_ct_OTOOL64
7622  fi
7623else
7624  OTOOL64="$ac_cv_prog_OTOOL64"
7625fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7654$as_echo_n "checking for -single_module linker flag... " >&6; }
7655if ${lt_cv_apple_cc_single_mod+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  lt_cv_apple_cc_single_mod=no
7659      if test -z "${LT_MULTI_MODULE}"; then
7660	# By default we will add the -single_module flag. You can override
7661	# by either setting the environment variable LT_MULTI_MODULE
7662	# non-empty at configure time, or by adding -multi_module to the
7663	# link flags.
7664	rm -rf libconftest.dylib*
7665	echo "int foo(void){return 1;}" > conftest.c
7666	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667-dynamiclib -Wl,-single_module conftest.c" >&5
7668	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7669	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7670        _lt_result=$?
7671	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7672	  lt_cv_apple_cc_single_mod=yes
7673	else
7674	  cat conftest.err >&5
7675	fi
7676	rm -rf libconftest.dylib*
7677	rm -f conftest.*
7678      fi
7679fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7681$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7683$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7684if ${lt_cv_ld_exported_symbols_list+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  lt_cv_ld_exported_symbols_list=no
7688      save_LDFLAGS=$LDFLAGS
7689      echo "_main" > conftest.sym
7690      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7691      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693
7694int
7695main ()
7696{
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_link "$LINENO"; then :
7703  lt_cv_ld_exported_symbols_list=yes
7704else
7705  lt_cv_ld_exported_symbols_list=no
7706fi
7707rm -f core conftest.err conftest.$ac_objext \
7708    conftest$ac_exeext conftest.$ac_ext
7709	LDFLAGS="$save_LDFLAGS"
7710
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7713$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7715$as_echo_n "checking for -force_load linker flag... " >&6; }
7716if ${lt_cv_ld_force_load+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  lt_cv_ld_force_load=no
7720      cat > conftest.c << _LT_EOF
7721int forced_loaded() { return 2;}
7722_LT_EOF
7723      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7724      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7725      echo "$AR cru libconftest.a conftest.o" >&5
7726      $AR cru libconftest.a conftest.o 2>&5
7727      echo "$RANLIB libconftest.a" >&5
7728      $RANLIB libconftest.a 2>&5
7729      cat > conftest.c << _LT_EOF
7730int main() { return 0;}
7731_LT_EOF
7732      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7733      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7734      _lt_result=$?
7735      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7736	lt_cv_ld_force_load=yes
7737      else
7738	cat conftest.err >&5
7739      fi
7740        rm -f conftest.err libconftest.a conftest conftest.c
7741        rm -rf conftest.dSYM
7742
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7745$as_echo "$lt_cv_ld_force_load" >&6; }
7746    case $host_os in
7747    rhapsody* | darwin1.[012])
7748      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7749    darwin1.*)
7750      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7751    darwin*) # darwin 5.x on
7752      # if running on 10.5 or later, the deployment target defaults
7753      # to the OS version, if on x86, and 10.4, the deployment
7754      # target defaults to 10.4. Don't you love it?
7755      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7756	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7757	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7758	10.[012]*)
7759	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7760	10.*)
7761	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762      esac
7763    ;;
7764  esac
7765    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7766      _lt_dar_single_mod='$single_module'
7767    fi
7768    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7769      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7770    else
7771      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7772    fi
7773    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7774      _lt_dsymutil='~$DSYMUTIL $lib || :'
7775    else
7776      _lt_dsymutil=
7777    fi
7778    ;;
7779  esac
7780
7781ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7787$as_echo_n "checking how to run the C preprocessor... " >&6; }
7788# On Suns, sometimes $CPP names a directory.
7789if test -n "$CPP" && test -d "$CPP"; then
7790  CPP=
7791fi
7792if test -z "$CPP"; then
7793  if ${ac_cv_prog_CPP+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796      # Double quotes because CPP needs to be expanded
7797    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7798    do
7799      ac_preproc_ok=false
7800for ac_c_preproc_warn_flag in '' yes
7801do
7802  # Use a header file that comes with gcc, so configuring glibc
7803  # with a fresh cross-compiler works.
7804  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7805  # <limits.h> exists even on freestanding compilers.
7806  # On the NeXT, cc -E runs the code through the compiler's parser,
7807  # not just through cpp. "Syntax error" is here to catch this case.
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810#ifdef __STDC__
7811# include <limits.h>
7812#else
7813# include <assert.h>
7814#endif
7815		     Syntax error
7816_ACEOF
7817if ac_fn_c_try_cpp "$LINENO"; then :
7818
7819else
7820  # Broken: fails on valid input.
7821continue
7822fi
7823rm -f conftest.err conftest.i conftest.$ac_ext
7824
7825  # OK, works on sane cases.  Now check whether nonexistent headers
7826  # can be detected and how.
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829#include <ac_nonexistent.h>
7830_ACEOF
7831if ac_fn_c_try_cpp "$LINENO"; then :
7832  # Broken: success on invalid input.
7833continue
7834else
7835  # Passes both tests.
7836ac_preproc_ok=:
7837break
7838fi
7839rm -f conftest.err conftest.i conftest.$ac_ext
7840
7841done
7842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843rm -f conftest.i conftest.err conftest.$ac_ext
7844if $ac_preproc_ok; then :
7845  break
7846fi
7847
7848    done
7849    ac_cv_prog_CPP=$CPP
7850
7851fi
7852  CPP=$ac_cv_prog_CPP
7853else
7854  ac_cv_prog_CPP=$CPP
7855fi
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7857$as_echo "$CPP" >&6; }
7858ac_preproc_ok=false
7859for ac_c_preproc_warn_flag in '' yes
7860do
7861  # Use a header file that comes with gcc, so configuring glibc
7862  # with a fresh cross-compiler works.
7863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864  # <limits.h> exists even on freestanding compilers.
7865  # On the NeXT, cc -E runs the code through the compiler's parser,
7866  # not just through cpp. "Syntax error" is here to catch this case.
7867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869#ifdef __STDC__
7870# include <limits.h>
7871#else
7872# include <assert.h>
7873#endif
7874		     Syntax error
7875_ACEOF
7876if ac_fn_c_try_cpp "$LINENO"; then :
7877
7878else
7879  # Broken: fails on valid input.
7880continue
7881fi
7882rm -f conftest.err conftest.i conftest.$ac_ext
7883
7884  # OK, works on sane cases.  Now check whether nonexistent headers
7885  # can be detected and how.
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888#include <ac_nonexistent.h>
7889_ACEOF
7890if ac_fn_c_try_cpp "$LINENO"; then :
7891  # Broken: success on invalid input.
7892continue
7893else
7894  # Passes both tests.
7895ac_preproc_ok=:
7896break
7897fi
7898rm -f conftest.err conftest.i conftest.$ac_ext
7899
7900done
7901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7902rm -f conftest.i conftest.err conftest.$ac_ext
7903if $ac_preproc_ok; then :
7904
7905else
7906  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7908as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7909See \`config.log' for more details" "$LINENO" 5; }
7910fi
7911
7912ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7920$as_echo_n "checking for ANSI C header files... " >&6; }
7921if ${ac_cv_header_stdc+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926#include <stdlib.h>
7927#include <stdarg.h>
7928#include <string.h>
7929#include <float.h>
7930
7931int
7932main ()
7933{
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940  ac_cv_header_stdc=yes
7941else
7942  ac_cv_header_stdc=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945
7946if test $ac_cv_header_stdc = yes; then
7947  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h.  */
7950#include <string.h>
7951
7952_ACEOF
7953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954  $EGREP "memchr" >/dev/null 2>&1; then :
7955
7956else
7957  ac_cv_header_stdc=no
7958fi
7959rm -f conftest*
7960
7961fi
7962
7963if test $ac_cv_header_stdc = yes; then
7964  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967#include <stdlib.h>
7968
7969_ACEOF
7970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971  $EGREP "free" >/dev/null 2>&1; then :
7972
7973else
7974  ac_cv_header_stdc=no
7975fi
7976rm -f conftest*
7977
7978fi
7979
7980if test $ac_cv_header_stdc = yes; then
7981  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7982  if test "$cross_compiling" = yes; then :
7983  :
7984else
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987#include <ctype.h>
7988#include <stdlib.h>
7989#if ((' ' & 0x0FF) == 0x020)
7990# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7991# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7992#else
7993# define ISLOWER(c) \
7994		   (('a' <= (c) && (c) <= 'i') \
7995		     || ('j' <= (c) && (c) <= 'r') \
7996		     || ('s' <= (c) && (c) <= 'z'))
7997# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7998#endif
7999
8000#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8001int
8002main ()
8003{
8004  int i;
8005  for (i = 0; i < 256; i++)
8006    if (XOR (islower (i), ISLOWER (i))
8007	|| toupper (i) != TOUPPER (i))
8008      return 2;
8009  return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_run "$LINENO"; then :
8013
8014else
8015  ac_cv_header_stdc=no
8016fi
8017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8018  conftest.$ac_objext conftest.beam conftest.$ac_ext
8019fi
8020
8021fi
8022fi
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8024$as_echo "$ac_cv_header_stdc" >&6; }
8025if test $ac_cv_header_stdc = yes; then
8026
8027$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8028
8029fi
8030
8031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8033		  inttypes.h stdint.h unistd.h
8034do :
8035  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8037"
8038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8039  cat >>confdefs.h <<_ACEOF
8040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8041_ACEOF
8042
8043fi
8044
8045done
8046
8047
8048for ac_header in dlfcn.h
8049do :
8050  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8051"
8052if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8053  cat >>confdefs.h <<_ACEOF
8054#define HAVE_DLFCN_H 1
8055_ACEOF
8056
8057fi
8058
8059done
8060
8061
8062
8063
8064
8065# Set options
8066enable_win32_dll=yes
8067
8068case $host in
8069*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8070  if test -n "$ac_tool_prefix"; then
8071  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8072set dummy ${ac_tool_prefix}as; ac_word=$2
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074$as_echo_n "checking for $ac_word... " >&6; }
8075if ${ac_cv_prog_AS+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  if test -n "$AS"; then
8079  ac_cv_prog_AS="$AS" # Let the user override the test.
8080else
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084  IFS=$as_save_IFS
8085  test -z "$as_dir" && as_dir=.
8086    for ac_exec_ext in '' $ac_executable_extensions; do
8087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088    ac_cv_prog_AS="${ac_tool_prefix}as"
8089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090    break 2
8091  fi
8092done
8093  done
8094IFS=$as_save_IFS
8095
8096fi
8097fi
8098AS=$ac_cv_prog_AS
8099if test -n "$AS"; then
8100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8101$as_echo "$AS" >&6; }
8102else
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107
8108fi
8109if test -z "$ac_cv_prog_AS"; then
8110  ac_ct_AS=$AS
8111  # Extract the first word of "as", so it can be a program name with args.
8112set dummy as; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if ${ac_cv_prog_ac_ct_AS+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  if test -n "$ac_ct_AS"; then
8119  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126    for ac_exec_ext in '' $ac_executable_extensions; do
8127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128    ac_cv_prog_ac_ct_AS="as"
8129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133  done
8134IFS=$as_save_IFS
8135
8136fi
8137fi
8138ac_ct_AS=$ac_cv_prog_ac_ct_AS
8139if test -n "$ac_ct_AS"; then
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8141$as_echo "$ac_ct_AS" >&6; }
8142else
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
8147  if test "x$ac_ct_AS" = x; then
8148    AS="false"
8149  else
8150    case $cross_compiling:$ac_tool_warned in
8151yes:)
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154ac_tool_warned=yes ;;
8155esac
8156    AS=$ac_ct_AS
8157  fi
8158else
8159  AS="$ac_cv_prog_AS"
8160fi
8161
8162  if test -n "$ac_tool_prefix"; then
8163  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8164set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166$as_echo_n "checking for $ac_word... " >&6; }
8167if ${ac_cv_prog_DLLTOOL+:} false; then :
8168  $as_echo_n "(cached) " >&6
8169else
8170  if test -n "$DLLTOOL"; then
8171  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8172else
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176  IFS=$as_save_IFS
8177  test -z "$as_dir" && as_dir=.
8178    for ac_exec_ext in '' $ac_executable_extensions; do
8179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182    break 2
8183  fi
8184done
8185  done
8186IFS=$as_save_IFS
8187
8188fi
8189fi
8190DLLTOOL=$ac_cv_prog_DLLTOOL
8191if test -n "$DLLTOOL"; then
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8193$as_echo "$DLLTOOL" >&6; }
8194else
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197fi
8198
8199
8200fi
8201if test -z "$ac_cv_prog_DLLTOOL"; then
8202  ac_ct_DLLTOOL=$DLLTOOL
8203  # Extract the first word of "dlltool", so it can be a program name with args.
8204set dummy dlltool; ac_word=$2
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206$as_echo_n "checking for $ac_word... " >&6; }
8207if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8208  $as_echo_n "(cached) " >&6
8209else
8210  if test -n "$ac_ct_DLLTOOL"; then
8211  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8212else
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216  IFS=$as_save_IFS
8217  test -z "$as_dir" && as_dir=.
8218    for ac_exec_ext in '' $ac_executable_extensions; do
8219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222    break 2
8223  fi
8224done
8225  done
8226IFS=$as_save_IFS
8227
8228fi
8229fi
8230ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8231if test -n "$ac_ct_DLLTOOL"; then
8232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8233$as_echo "$ac_ct_DLLTOOL" >&6; }
8234else
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236$as_echo "no" >&6; }
8237fi
8238
8239  if test "x$ac_ct_DLLTOOL" = x; then
8240    DLLTOOL="false"
8241  else
8242    case $cross_compiling:$ac_tool_warned in
8243yes:)
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246ac_tool_warned=yes ;;
8247esac
8248    DLLTOOL=$ac_ct_DLLTOOL
8249  fi
8250else
8251  DLLTOOL="$ac_cv_prog_DLLTOOL"
8252fi
8253
8254  if test -n "$ac_tool_prefix"; then
8255  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8256set dummy ${ac_tool_prefix}objdump; ac_word=$2
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258$as_echo_n "checking for $ac_word... " >&6; }
8259if ${ac_cv_prog_OBJDUMP+:} false; then :
8260  $as_echo_n "(cached) " >&6
8261else
8262  if test -n "$OBJDUMP"; then
8263  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268  IFS=$as_save_IFS
8269  test -z "$as_dir" && as_dir=.
8270    for ac_exec_ext in '' $ac_executable_extensions; do
8271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274    break 2
8275  fi
8276done
8277  done
8278IFS=$as_save_IFS
8279
8280fi
8281fi
8282OBJDUMP=$ac_cv_prog_OBJDUMP
8283if test -n "$OBJDUMP"; then
8284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8285$as_echo "$OBJDUMP" >&6; }
8286else
8287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288$as_echo "no" >&6; }
8289fi
8290
8291
8292fi
8293if test -z "$ac_cv_prog_OBJDUMP"; then
8294  ac_ct_OBJDUMP=$OBJDUMP
8295  # Extract the first word of "objdump", so it can be a program name with args.
8296set dummy objdump; ac_word=$2
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298$as_echo_n "checking for $ac_word... " >&6; }
8299if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8300  $as_echo_n "(cached) " >&6
8301else
8302  if test -n "$ac_ct_OBJDUMP"; then
8303  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8304else
8305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308  IFS=$as_save_IFS
8309  test -z "$as_dir" && as_dir=.
8310    for ac_exec_ext in '' $ac_executable_extensions; do
8311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314    break 2
8315  fi
8316done
8317  done
8318IFS=$as_save_IFS
8319
8320fi
8321fi
8322ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8323if test -n "$ac_ct_OBJDUMP"; then
8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8325$as_echo "$ac_ct_OBJDUMP" >&6; }
8326else
8327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
8329fi
8330
8331  if test "x$ac_ct_OBJDUMP" = x; then
8332    OBJDUMP="false"
8333  else
8334    case $cross_compiling:$ac_tool_warned in
8335yes:)
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338ac_tool_warned=yes ;;
8339esac
8340    OBJDUMP=$ac_ct_OBJDUMP
8341  fi
8342else
8343  OBJDUMP="$ac_cv_prog_OBJDUMP"
8344fi
8345
8346  ;;
8347esac
8348
8349test -z "$AS" && AS=as
8350
8351
8352
8353
8354
8355test -z "$DLLTOOL" && DLLTOOL=dlltool
8356
8357
8358
8359
8360
8361test -z "$OBJDUMP" && OBJDUMP=objdump
8362
8363
8364
8365
8366
8367
8368
8369        enable_dlopen=no
8370
8371
8372
8373            # Check whether --enable-shared was given.
8374if test "${enable_shared+set}" = set; then :
8375  enableval=$enable_shared; p=${PACKAGE-default}
8376    case $enableval in
8377    yes) enable_shared=yes ;;
8378    no) enable_shared=no ;;
8379    *)
8380      enable_shared=no
8381      # Look at the argument we got.  We use all the common list separators.
8382      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8383      for pkg in $enableval; do
8384	IFS="$lt_save_ifs"
8385	if test "X$pkg" = "X$p"; then
8386	  enable_shared=yes
8387	fi
8388      done
8389      IFS="$lt_save_ifs"
8390      ;;
8391    esac
8392else
8393  enable_shared=yes
8394fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404  # Check whether --enable-static was given.
8405if test "${enable_static+set}" = set; then :
8406  enableval=$enable_static; p=${PACKAGE-default}
8407    case $enableval in
8408    yes) enable_static=yes ;;
8409    no) enable_static=no ;;
8410    *)
8411     enable_static=no
8412      # Look at the argument we got.  We use all the common list separators.
8413      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414      for pkg in $enableval; do
8415	IFS="$lt_save_ifs"
8416	if test "X$pkg" = "X$p"; then
8417	  enable_static=yes
8418	fi
8419      done
8420      IFS="$lt_save_ifs"
8421      ;;
8422    esac
8423else
8424  enable_static=yes
8425fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436# Check whether --with-pic was given.
8437if test "${with_pic+set}" = set; then :
8438  withval=$with_pic; pic_mode="$withval"
8439else
8440  pic_mode=default
8441fi
8442
8443
8444test -z "$pic_mode" && pic_mode=default
8445
8446
8447
8448
8449
8450
8451
8452  # Check whether --enable-fast-install was given.
8453if test "${enable_fast_install+set}" = set; then :
8454  enableval=$enable_fast_install; p=${PACKAGE-default}
8455    case $enableval in
8456    yes) enable_fast_install=yes ;;
8457    no) enable_fast_install=no ;;
8458    *)
8459      enable_fast_install=no
8460      # Look at the argument we got.  We use all the common list separators.
8461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8462      for pkg in $enableval; do
8463	IFS="$lt_save_ifs"
8464	if test "X$pkg" = "X$p"; then
8465	  enable_fast_install=yes
8466	fi
8467      done
8468      IFS="$lt_save_ifs"
8469      ;;
8470    esac
8471else
8472  enable_fast_install=yes
8473fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485# This can be used to rebuild libtool when needed
8486LIBTOOL_DEPS="$ltmain"
8487
8488# Always use our own libtool.
8489LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516test -z "$LN_S" && LN_S="ln -s"
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531if test -n "${ZSH_VERSION+set}" ; then
8532   setopt NO_GLOB_SUBST
8533fi
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8536$as_echo_n "checking for objdir... " >&6; }
8537if ${lt_cv_objdir+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  rm -f .libs 2>/dev/null
8541mkdir .libs 2>/dev/null
8542if test -d .libs; then
8543  lt_cv_objdir=.libs
8544else
8545  # MS-DOS does not allow filenames that begin with a dot.
8546  lt_cv_objdir=_libs
8547fi
8548rmdir .libs 2>/dev/null
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8551$as_echo "$lt_cv_objdir" >&6; }
8552objdir=$lt_cv_objdir
8553
8554
8555
8556
8557
8558cat >>confdefs.h <<_ACEOF
8559#define LT_OBJDIR "$lt_cv_objdir/"
8560_ACEOF
8561
8562
8563
8564
8565case $host_os in
8566aix3*)
8567  # AIX sometimes has problems with the GCC collect2 program.  For some
8568  # reason, if we set the COLLECT_NAMES environment variable, the problems
8569  # vanish in a puff of smoke.
8570  if test "X${COLLECT_NAMES+set}" != Xset; then
8571    COLLECT_NAMES=
8572    export COLLECT_NAMES
8573  fi
8574  ;;
8575esac
8576
8577# Global variables:
8578ofile=libtool
8579can_build_shared=yes
8580
8581# All known linkers require a `.a' archive for static linking (except MSVC,
8582# which needs '.lib').
8583libext=a
8584
8585with_gnu_ld="$lt_cv_prog_gnu_ld"
8586
8587old_CC="$CC"
8588old_CFLAGS="$CFLAGS"
8589
8590# Set sane defaults for various variables
8591test -z "$CC" && CC=cc
8592test -z "$LTCC" && LTCC=$CC
8593test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8594test -z "$LD" && LD=ld
8595test -z "$ac_objext" && ac_objext=o
8596
8597for cc_temp in $compiler""; do
8598  case $cc_temp in
8599    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8600    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8601    \-*) ;;
8602    *) break;;
8603  esac
8604done
8605cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8606
8607
8608# Only perform the check for file, if the check method requires it
8609test -z "$MAGIC_CMD" && MAGIC_CMD=file
8610case $deplibs_check_method in
8611file_magic*)
8612  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8614$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8615if ${lt_cv_path_MAGIC_CMD+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  case $MAGIC_CMD in
8619[\\/*] |  ?:[\\/]*)
8620  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8621  ;;
8622*)
8623  lt_save_MAGIC_CMD="$MAGIC_CMD"
8624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8625  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8626  for ac_dir in $ac_dummy; do
8627    IFS="$lt_save_ifs"
8628    test -z "$ac_dir" && ac_dir=.
8629    if test -f $ac_dir/${ac_tool_prefix}file; then
8630      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8631      if test -n "$file_magic_test_file"; then
8632	case $deplibs_check_method in
8633	"file_magic "*)
8634	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8635	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8637	    $EGREP "$file_magic_regex" > /dev/null; then
8638	    :
8639	  else
8640	    cat <<_LT_EOF 1>&2
8641
8642*** Warning: the command libtool uses to detect shared libraries,
8643*** $file_magic_cmd, produces output that libtool cannot recognize.
8644*** The result is that libtool may fail to recognize shared libraries
8645*** as such.  This will affect the creation of libtool libraries that
8646*** depend on shared libraries, but programs linked with such libtool
8647*** libraries will work regardless of this problem.  Nevertheless, you
8648*** may want to report the problem to your system manager and/or to
8649*** [email protected]
8650
8651_LT_EOF
8652	  fi ;;
8653	esac
8654      fi
8655      break
8656    fi
8657  done
8658  IFS="$lt_save_ifs"
8659  MAGIC_CMD="$lt_save_MAGIC_CMD"
8660  ;;
8661esac
8662fi
8663
8664MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8665if test -n "$MAGIC_CMD"; then
8666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8667$as_echo "$MAGIC_CMD" >&6; }
8668else
8669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670$as_echo "no" >&6; }
8671fi
8672
8673
8674
8675
8676
8677if test -z "$lt_cv_path_MAGIC_CMD"; then
8678  if test -n "$ac_tool_prefix"; then
8679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8680$as_echo_n "checking for file... " >&6; }
8681if ${lt_cv_path_MAGIC_CMD+:} false; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  case $MAGIC_CMD in
8685[\\/*] |  ?:[\\/]*)
8686  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8687  ;;
8688*)
8689  lt_save_MAGIC_CMD="$MAGIC_CMD"
8690  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8691  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8692  for ac_dir in $ac_dummy; do
8693    IFS="$lt_save_ifs"
8694    test -z "$ac_dir" && ac_dir=.
8695    if test -f $ac_dir/file; then
8696      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8697      if test -n "$file_magic_test_file"; then
8698	case $deplibs_check_method in
8699	"file_magic "*)
8700	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8701	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8702	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8703	    $EGREP "$file_magic_regex" > /dev/null; then
8704	    :
8705	  else
8706	    cat <<_LT_EOF 1>&2
8707
8708*** Warning: the command libtool uses to detect shared libraries,
8709*** $file_magic_cmd, produces output that libtool cannot recognize.
8710*** The result is that libtool may fail to recognize shared libraries
8711*** as such.  This will affect the creation of libtool libraries that
8712*** depend on shared libraries, but programs linked with such libtool
8713*** libraries will work regardless of this problem.  Nevertheless, you
8714*** may want to report the problem to your system manager and/or to
8715*** [email protected]
8716
8717_LT_EOF
8718	  fi ;;
8719	esac
8720      fi
8721      break
8722    fi
8723  done
8724  IFS="$lt_save_ifs"
8725  MAGIC_CMD="$lt_save_MAGIC_CMD"
8726  ;;
8727esac
8728fi
8729
8730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8731if test -n "$MAGIC_CMD"; then
8732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8733$as_echo "$MAGIC_CMD" >&6; }
8734else
8735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }
8737fi
8738
8739
8740  else
8741    MAGIC_CMD=:
8742  fi
8743fi
8744
8745  fi
8746  ;;
8747esac
8748
8749# Use C for the default configuration in the libtool script
8750
8751lt_save_CC="$CC"
8752ac_ext=c
8753ac_cpp='$CPP $CPPFLAGS'
8754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756ac_compiler_gnu=$ac_cv_c_compiler_gnu
8757
8758
8759# Source file extension for C test sources.
8760ac_ext=c
8761
8762# Object file extension for compiled C test sources.
8763objext=o
8764objext=$objext
8765
8766# Code to be used in simple compile tests
8767lt_simple_compile_test_code="int some_variable = 0;"
8768
8769# Code to be used in simple link tests
8770lt_simple_link_test_code='int main(){return(0);}'
8771
8772
8773
8774
8775
8776
8777
8778# If no C compiler was specified, use CC.
8779LTCC=${LTCC-"$CC"}
8780
8781# If no C compiler flags were specified, use CFLAGS.
8782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8783
8784# Allow CC to be a program name with arguments.
8785compiler=$CC
8786
8787# Save the default compiler, since it gets overwritten when the other
8788# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8789compiler_DEFAULT=$CC
8790
8791# save warnings/boilerplate of simple test code
8792ac_outfile=conftest.$ac_objext
8793echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8794eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8795_lt_compiler_boilerplate=`cat conftest.err`
8796$RM conftest*
8797
8798ac_outfile=conftest.$ac_objext
8799echo "$lt_simple_link_test_code" >conftest.$ac_ext
8800eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8801_lt_linker_boilerplate=`cat conftest.err`
8802$RM -r conftest*
8803
8804
8805## CAVEAT EMPTOR:
8806## There is no encapsulation within the following macros, do not change
8807## the running order or otherwise move them around unless you know exactly
8808## what you are doing...
8809if test -n "$compiler"; then
8810
8811lt_prog_compiler_no_builtin_flag=
8812
8813if test "$GCC" = yes; then
8814  case $cc_basename in
8815  nvcc*)
8816    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8817  *)
8818    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8819  esac
8820
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8822$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8823if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  lt_cv_prog_compiler_rtti_exceptions=no
8827   ac_outfile=conftest.$ac_objext
8828   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829   lt_compiler_flag="-fno-rtti -fno-exceptions"
8830   # Insert the option either (1) after the last *FLAGS variable, or
8831   # (2) before a word containing "conftest.", or (3) at the end.
8832   # Note that $ac_compile itself does not contain backslashes and begins
8833   # with a dollar sign (not a hyphen), so the echo should work correctly.
8834   # The option is referenced via a variable to avoid confusing sed.
8835   lt_compile=`echo "$ac_compile" | $SED \
8836   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8837   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8838   -e 's:$: $lt_compiler_flag:'`
8839   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8840   (eval "$lt_compile" 2>conftest.err)
8841   ac_status=$?
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   if (exit $ac_status) && test -s "$ac_outfile"; then
8845     # The compiler can only warn and ignore the option if not recognized
8846     # So say no if there are warnings other than the usual output.
8847     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8848     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8849     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8850       lt_cv_prog_compiler_rtti_exceptions=yes
8851     fi
8852   fi
8853   $RM conftest*
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8857$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8858
8859if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8860    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8861else
8862    :
8863fi
8864
8865fi
8866
8867
8868
8869
8870
8871
8872  lt_prog_compiler_wl=
8873lt_prog_compiler_pic=
8874lt_prog_compiler_static=
8875
8876
8877  if test "$GCC" = yes; then
8878    lt_prog_compiler_wl='-Wl,'
8879    lt_prog_compiler_static='-static'
8880
8881    case $host_os in
8882      aix*)
8883      # All AIX code is PIC.
8884      if test "$host_cpu" = ia64; then
8885	# AIX 5 now supports IA64 processor
8886	lt_prog_compiler_static='-Bstatic'
8887      fi
8888      ;;
8889
8890    amigaos*)
8891      case $host_cpu in
8892      powerpc)
8893            # see comment about AmigaOS4 .so support
8894            lt_prog_compiler_pic='-fPIC'
8895        ;;
8896      m68k)
8897            # FIXME: we need at least 68020 code to build shared libraries, but
8898            # adding the `-m68020' flag to GCC prevents building anything better,
8899            # like `-m68040'.
8900            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8901        ;;
8902      esac
8903      ;;
8904
8905    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8906      # PIC is the default for these OSes.
8907      ;;
8908
8909    mingw* | cygwin* | pw32* | os2* | cegcc*)
8910      # This hack is so that the source file can tell whether it is being
8911      # built for inclusion in a dll (and should export symbols for example).
8912      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8913      # (--disable-auto-import) libraries
8914      lt_prog_compiler_pic='-DDLL_EXPORT'
8915      ;;
8916
8917    darwin* | rhapsody*)
8918      # PIC is the default on this platform
8919      # Common symbols not allowed in MH_DYLIB files
8920      lt_prog_compiler_pic='-fno-common'
8921      ;;
8922
8923    haiku*)
8924      # PIC is the default for Haiku.
8925      # The "-static" flag exists, but is broken.
8926      lt_prog_compiler_static=
8927      ;;
8928
8929    hpux*)
8930      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8931      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8932      # sets the default TLS model and affects inlining.
8933      case $host_cpu in
8934      hppa*64*)
8935	# +Z the default
8936	;;
8937      *)
8938	lt_prog_compiler_pic='-fPIC'
8939	;;
8940      esac
8941      ;;
8942
8943    interix[3-9]*)
8944      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8945      # Instead, we relocate shared libraries at runtime.
8946      ;;
8947
8948    msdosdjgpp*)
8949      # Just because we use GCC doesn't mean we suddenly get shared libraries
8950      # on systems that don't support them.
8951      lt_prog_compiler_can_build_shared=no
8952      enable_shared=no
8953      ;;
8954
8955    *nto* | *qnx*)
8956      # QNX uses GNU C++, but need to define -shared option too, otherwise
8957      # it will coredump.
8958      lt_prog_compiler_pic='-fPIC -shared'
8959      ;;
8960
8961    sysv4*MP*)
8962      if test -d /usr/nec; then
8963	lt_prog_compiler_pic=-Kconform_pic
8964      fi
8965      ;;
8966
8967    *)
8968      lt_prog_compiler_pic='-fPIC'
8969      ;;
8970    esac
8971
8972    case $cc_basename in
8973    nvcc*) # Cuda Compiler Driver 2.2
8974      lt_prog_compiler_wl='-Xlinker '
8975      lt_prog_compiler_pic='-Xcompiler -fPIC'
8976      ;;
8977    esac
8978  else
8979    # PORTME Check for flag to pass linker flags through the system compiler.
8980    case $host_os in
8981    aix*)
8982      lt_prog_compiler_wl='-Wl,'
8983      if test "$host_cpu" = ia64; then
8984	# AIX 5 now supports IA64 processor
8985	lt_prog_compiler_static='-Bstatic'
8986      else
8987	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8988      fi
8989      ;;
8990
8991    mingw* | cygwin* | pw32* | os2* | cegcc*)
8992      # This hack is so that the source file can tell whether it is being
8993      # built for inclusion in a dll (and should export symbols for example).
8994      lt_prog_compiler_pic='-DDLL_EXPORT'
8995      ;;
8996
8997    hpux9* | hpux10* | hpux11*)
8998      lt_prog_compiler_wl='-Wl,'
8999      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9000      # not for PA HP-UX.
9001      case $host_cpu in
9002      hppa*64*|ia64*)
9003	# +Z the default
9004	;;
9005      *)
9006	lt_prog_compiler_pic='+Z'
9007	;;
9008      esac
9009      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9010      lt_prog_compiler_static='${wl}-a ${wl}archive'
9011      ;;
9012
9013    irix5* | irix6* | nonstopux*)
9014      lt_prog_compiler_wl='-Wl,'
9015      # PIC (with -KPIC) is the default.
9016      lt_prog_compiler_static='-non_shared'
9017      ;;
9018
9019    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9020      case $cc_basename in
9021      # old Intel for x86_64 which still supported -KPIC.
9022      ecc*)
9023	lt_prog_compiler_wl='-Wl,'
9024	lt_prog_compiler_pic='-KPIC'
9025	lt_prog_compiler_static='-static'
9026        ;;
9027      # icc used to be incompatible with GCC.
9028      # ICC 10 doesn't accept -KPIC any more.
9029      icc* | ifort*)
9030	lt_prog_compiler_wl='-Wl,'
9031	lt_prog_compiler_pic='-fPIC'
9032	lt_prog_compiler_static='-static'
9033        ;;
9034      # Lahey Fortran 8.1.
9035      lf95*)
9036	lt_prog_compiler_wl='-Wl,'
9037	lt_prog_compiler_pic='--shared'
9038	lt_prog_compiler_static='--static'
9039	;;
9040      nagfor*)
9041	# NAG Fortran compiler
9042	lt_prog_compiler_wl='-Wl,-Wl,,'
9043	lt_prog_compiler_pic='-PIC'
9044	lt_prog_compiler_static='-Bstatic'
9045	;;
9046      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9047        # Portland Group compilers (*not* the Pentium gcc compiler,
9048	# which looks to be a dead project)
9049	lt_prog_compiler_wl='-Wl,'
9050	lt_prog_compiler_pic='-fpic'
9051	lt_prog_compiler_static='-Bstatic'
9052        ;;
9053      ccc*)
9054        lt_prog_compiler_wl='-Wl,'
9055        # All Alpha code is PIC.
9056        lt_prog_compiler_static='-non_shared'
9057        ;;
9058      xl* | bgxl* | bgf* | mpixl*)
9059	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9060	lt_prog_compiler_wl='-Wl,'
9061	lt_prog_compiler_pic='-qpic'
9062	lt_prog_compiler_static='-qstaticlink'
9063	;;
9064      *)
9065	case `$CC -V 2>&1 | sed 5q` in
9066	*Sun\ F* | *Sun*Fortran*)
9067	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9068	  lt_prog_compiler_pic='-KPIC'
9069	  lt_prog_compiler_static='-Bstatic'
9070	  lt_prog_compiler_wl=''
9071	  ;;
9072	*Sun\ C*)
9073	  # Sun C 5.9
9074	  lt_prog_compiler_pic='-KPIC'
9075	  lt_prog_compiler_static='-Bstatic'
9076	  lt_prog_compiler_wl='-Wl,'
9077	  ;;
9078	esac
9079	;;
9080      esac
9081      ;;
9082
9083    newsos6)
9084      lt_prog_compiler_pic='-KPIC'
9085      lt_prog_compiler_static='-Bstatic'
9086      ;;
9087
9088    *nto* | *qnx*)
9089      # QNX uses GNU C++, but need to define -shared option too, otherwise
9090      # it will coredump.
9091      lt_prog_compiler_pic='-fPIC -shared'
9092      ;;
9093
9094    osf3* | osf4* | osf5*)
9095      lt_prog_compiler_wl='-Wl,'
9096      # All OSF/1 code is PIC.
9097      lt_prog_compiler_static='-non_shared'
9098      ;;
9099
9100    rdos*)
9101      lt_prog_compiler_static='-non_shared'
9102      ;;
9103
9104    solaris*)
9105      lt_prog_compiler_pic='-KPIC'
9106      lt_prog_compiler_static='-Bstatic'
9107      case $cc_basename in
9108      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9109	lt_prog_compiler_wl='-Qoption ld ';;
9110      *)
9111	lt_prog_compiler_wl='-Wl,';;
9112      esac
9113      ;;
9114
9115    sunos4*)
9116      lt_prog_compiler_wl='-Qoption ld '
9117      lt_prog_compiler_pic='-PIC'
9118      lt_prog_compiler_static='-Bstatic'
9119      ;;
9120
9121    sysv4 | sysv4.2uw2* | sysv4.3*)
9122      lt_prog_compiler_wl='-Wl,'
9123      lt_prog_compiler_pic='-KPIC'
9124      lt_prog_compiler_static='-Bstatic'
9125      ;;
9126
9127    sysv4*MP*)
9128      if test -d /usr/nec ;then
9129	lt_prog_compiler_pic='-Kconform_pic'
9130	lt_prog_compiler_static='-Bstatic'
9131      fi
9132      ;;
9133
9134    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9135      lt_prog_compiler_wl='-Wl,'
9136      lt_prog_compiler_pic='-KPIC'
9137      lt_prog_compiler_static='-Bstatic'
9138      ;;
9139
9140    unicos*)
9141      lt_prog_compiler_wl='-Wl,'
9142      lt_prog_compiler_can_build_shared=no
9143      ;;
9144
9145    uts4*)
9146      lt_prog_compiler_pic='-pic'
9147      lt_prog_compiler_static='-Bstatic'
9148      ;;
9149
9150    *)
9151      lt_prog_compiler_can_build_shared=no
9152      ;;
9153    esac
9154  fi
9155
9156case $host_os in
9157  # For platforms which do not support PIC, -DPIC is meaningless:
9158  *djgpp*)
9159    lt_prog_compiler_pic=
9160    ;;
9161  *)
9162    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9163    ;;
9164esac
9165
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9167$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9168if ${lt_cv_prog_compiler_pic+:} false; then :
9169  $as_echo_n "(cached) " >&6
9170else
9171  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9174$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9175lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9176
9177#
9178# Check to make sure the PIC flag actually works.
9179#
9180if test -n "$lt_prog_compiler_pic"; then
9181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9182$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9183if ${lt_cv_prog_compiler_pic_works+:} false; then :
9184  $as_echo_n "(cached) " >&6
9185else
9186  lt_cv_prog_compiler_pic_works=no
9187   ac_outfile=conftest.$ac_objext
9188   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9190   # Insert the option either (1) after the last *FLAGS variable, or
9191   # (2) before a word containing "conftest.", or (3) at the end.
9192   # Note that $ac_compile itself does not contain backslashes and begins
9193   # with a dollar sign (not a hyphen), so the echo should work correctly.
9194   # The option is referenced via a variable to avoid confusing sed.
9195   lt_compile=`echo "$ac_compile" | $SED \
9196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9198   -e 's:$: $lt_compiler_flag:'`
9199   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9200   (eval "$lt_compile" 2>conftest.err)
9201   ac_status=$?
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   if (exit $ac_status) && test -s "$ac_outfile"; then
9205     # The compiler can only warn and ignore the option if not recognized
9206     # So say no if there are warnings other than the usual output.
9207     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9208     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9210       lt_cv_prog_compiler_pic_works=yes
9211     fi
9212   fi
9213   $RM conftest*
9214
9215fi
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9217$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9218
9219if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9220    case $lt_prog_compiler_pic in
9221     "" | " "*) ;;
9222     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9223     esac
9224else
9225    lt_prog_compiler_pic=
9226     lt_prog_compiler_can_build_shared=no
9227fi
9228
9229fi
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241#
9242# Check to make sure the static flag actually works.
9243#
9244wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9246$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9247if ${lt_cv_prog_compiler_static_works+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  lt_cv_prog_compiler_static_works=no
9251   save_LDFLAGS="$LDFLAGS"
9252   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9253   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9254   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9255     # The linker can only warn and ignore the option if not recognized
9256     # So say no if there are warnings
9257     if test -s conftest.err; then
9258       # Append any errors to the config.log.
9259       cat conftest.err 1>&5
9260       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9261       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9262       if diff conftest.exp conftest.er2 >/dev/null; then
9263         lt_cv_prog_compiler_static_works=yes
9264       fi
9265     else
9266       lt_cv_prog_compiler_static_works=yes
9267     fi
9268   fi
9269   $RM -r conftest*
9270   LDFLAGS="$save_LDFLAGS"
9271
9272fi
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9274$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9275
9276if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9277    :
9278else
9279    lt_prog_compiler_static=
9280fi
9281
9282
9283
9284
9285
9286
9287
9288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9289$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9290if ${lt_cv_prog_compiler_c_o+:} false; then :
9291  $as_echo_n "(cached) " >&6
9292else
9293  lt_cv_prog_compiler_c_o=no
9294   $RM -r conftest 2>/dev/null
9295   mkdir conftest
9296   cd conftest
9297   mkdir out
9298   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299
9300   lt_compiler_flag="-o out/conftest2.$ac_objext"
9301   # Insert the option either (1) after the last *FLAGS variable, or
9302   # (2) before a word containing "conftest.", or (3) at the end.
9303   # Note that $ac_compile itself does not contain backslashes and begins
9304   # with a dollar sign (not a hyphen), so the echo should work correctly.
9305   lt_compile=`echo "$ac_compile" | $SED \
9306   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9307   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9308   -e 's:$: $lt_compiler_flag:'`
9309   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9310   (eval "$lt_compile" 2>out/conftest.err)
9311   ac_status=$?
9312   cat out/conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9315   then
9316     # The compiler can only warn and ignore the option if not recognized
9317     # So say no if there are warnings
9318     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9319     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9320     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9321       lt_cv_prog_compiler_c_o=yes
9322     fi
9323   fi
9324   chmod u+w . 2>&5
9325   $RM conftest*
9326   # SGI C++ compiler will create directory out/ii_files/ for
9327   # template instantiation
9328   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9329   $RM out/* && rmdir out
9330   cd ..
9331   $RM -r conftest
9332   $RM conftest*
9333
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9336$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9337
9338
9339
9340
9341
9342
9343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9345if ${lt_cv_prog_compiler_c_o+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  lt_cv_prog_compiler_c_o=no
9349   $RM -r conftest 2>/dev/null
9350   mkdir conftest
9351   cd conftest
9352   mkdir out
9353   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354
9355   lt_compiler_flag="-o out/conftest2.$ac_objext"
9356   # Insert the option either (1) after the last *FLAGS variable, or
9357   # (2) before a word containing "conftest.", or (3) at the end.
9358   # Note that $ac_compile itself does not contain backslashes and begins
9359   # with a dollar sign (not a hyphen), so the echo should work correctly.
9360   lt_compile=`echo "$ac_compile" | $SED \
9361   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363   -e 's:$: $lt_compiler_flag:'`
9364   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365   (eval "$lt_compile" 2>out/conftest.err)
9366   ac_status=$?
9367   cat out/conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9370   then
9371     # The compiler can only warn and ignore the option if not recognized
9372     # So say no if there are warnings
9373     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9374     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9375     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9376       lt_cv_prog_compiler_c_o=yes
9377     fi
9378   fi
9379   chmod u+w . 2>&5
9380   $RM conftest*
9381   # SGI C++ compiler will create directory out/ii_files/ for
9382   # template instantiation
9383   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9384   $RM out/* && rmdir out
9385   cd ..
9386   $RM -r conftest
9387   $RM conftest*
9388
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9391$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9392
9393
9394
9395
9396hard_links="nottested"
9397if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9398  # do not overwrite the value of need_locks provided by the user
9399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9400$as_echo_n "checking if we can lock with hard links... " >&6; }
9401  hard_links=yes
9402  $RM conftest*
9403  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9404  touch conftest.a
9405  ln conftest.a conftest.b 2>&5 || hard_links=no
9406  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9408$as_echo "$hard_links" >&6; }
9409  if test "$hard_links" = no; then
9410    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9411$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9412    need_locks=warn
9413  fi
9414else
9415  need_locks=no
9416fi
9417
9418
9419
9420
9421
9422
9423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9424$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9425
9426  runpath_var=
9427  allow_undefined_flag=
9428  always_export_symbols=no
9429  archive_cmds=
9430  archive_expsym_cmds=
9431  compiler_needs_object=no
9432  enable_shared_with_static_runtimes=no
9433  export_dynamic_flag_spec=
9434  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9435  hardcode_automatic=no
9436  hardcode_direct=no
9437  hardcode_direct_absolute=no
9438  hardcode_libdir_flag_spec=
9439  hardcode_libdir_flag_spec_ld=
9440  hardcode_libdir_separator=
9441  hardcode_minus_L=no
9442  hardcode_shlibpath_var=unsupported
9443  inherit_rpath=no
9444  link_all_deplibs=unknown
9445  module_cmds=
9446  module_expsym_cmds=
9447  old_archive_from_new_cmds=
9448  old_archive_from_expsyms_cmds=
9449  thread_safe_flag_spec=
9450  whole_archive_flag_spec=
9451  # include_expsyms should be a list of space-separated symbols to be *always*
9452  # included in the symbol list
9453  include_expsyms=
9454  # exclude_expsyms can be an extended regexp of symbols to exclude
9455  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9456  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9457  # as well as any symbol that contains `d'.
9458  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9459  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9460  # platforms (ab)use it in PIC code, but their linkers get confused if
9461  # the symbol is explicitly referenced.  Since portable code cannot
9462  # rely on this symbol name, it's probably fine to never include it in
9463  # preloaded symbol tables.
9464  # Exclude shared library initialization/finalization symbols.
9465  extract_expsyms_cmds=
9466
9467  case $host_os in
9468  cygwin* | mingw* | pw32* | cegcc*)
9469    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9470    # When not using gcc, we currently assume that we are using
9471    # Microsoft Visual C++.
9472    if test "$GCC" != yes; then
9473      with_gnu_ld=no
9474    fi
9475    ;;
9476  interix*)
9477    # we just hope/assume this is gcc and not c89 (= MSVC++)
9478    with_gnu_ld=yes
9479    ;;
9480  openbsd*)
9481    with_gnu_ld=no
9482    ;;
9483  esac
9484
9485  ld_shlibs=yes
9486
9487  # On some targets, GNU ld is compatible enough with the native linker
9488  # that we're better off using the native interface for both.
9489  lt_use_gnu_ld_interface=no
9490  if test "$with_gnu_ld" = yes; then
9491    case $host_os in
9492      aix*)
9493	# The AIX port of GNU ld has always aspired to compatibility
9494	# with the native linker.  However, as the warning in the GNU ld
9495	# block says, versions before 2.19.5* couldn't really create working
9496	# shared libraries, regardless of the interface used.
9497	case `$LD -v 2>&1` in
9498	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9499	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9500	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9501	  *)
9502	    lt_use_gnu_ld_interface=yes
9503	    ;;
9504	esac
9505	;;
9506      *)
9507	lt_use_gnu_ld_interface=yes
9508	;;
9509    esac
9510  fi
9511
9512  if test "$lt_use_gnu_ld_interface" = yes; then
9513    # If archive_cmds runs LD, not CC, wlarc should be empty
9514    wlarc='${wl}'
9515
9516    # Set some defaults for GNU ld with shared library support. These
9517    # are reset later if shared libraries are not supported. Putting them
9518    # here allows them to be overridden if necessary.
9519    runpath_var=LD_RUN_PATH
9520    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521    export_dynamic_flag_spec='${wl}--export-dynamic'
9522    # ancient GNU ld didn't support --whole-archive et. al.
9523    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9524      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9525    else
9526      whole_archive_flag_spec=
9527    fi
9528    supports_anon_versioning=no
9529    case `$LD -v 2>&1` in
9530      *GNU\ gold*) supports_anon_versioning=yes ;;
9531      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9532      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9533      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9534      *\ 2.11.*) ;; # other 2.11 versions
9535      *) supports_anon_versioning=yes ;;
9536    esac
9537
9538    # See if GNU ld supports shared libraries.
9539    case $host_os in
9540    aix[3-9]*)
9541      # On AIX/PPC, the GNU linker is very broken
9542      if test "$host_cpu" != ia64; then
9543	ld_shlibs=no
9544	cat <<_LT_EOF 1>&2
9545
9546*** Warning: the GNU linker, at least up to release 2.19, is reported
9547*** to be unable to reliably create shared libraries on AIX.
9548*** Therefore, libtool is disabling shared libraries support.  If you
9549*** really care for shared libraries, you may want to install binutils
9550*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9551*** You will then need to restart the configuration process.
9552
9553_LT_EOF
9554      fi
9555      ;;
9556
9557    amigaos*)
9558      case $host_cpu in
9559      powerpc)
9560            # see comment about AmigaOS4 .so support
9561            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562            archive_expsym_cmds=''
9563        ;;
9564      m68k)
9565            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)'
9566            hardcode_libdir_flag_spec='-L$libdir'
9567            hardcode_minus_L=yes
9568        ;;
9569      esac
9570      ;;
9571
9572    beos*)
9573      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574	allow_undefined_flag=unsupported
9575	# Joseph Beckenbach <[email protected]> says some releases of gcc
9576	# support --undefined.  This deserves some investigation.  FIXME
9577	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578      else
9579	ld_shlibs=no
9580      fi
9581      ;;
9582
9583    cygwin* | mingw* | pw32* | cegcc*)
9584      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9585      # as there is no search path for DLLs.
9586      hardcode_libdir_flag_spec='-L$libdir'
9587      export_dynamic_flag_spec='${wl}--export-all-symbols'
9588      allow_undefined_flag=unsupported
9589      always_export_symbols=no
9590      enable_shared_with_static_runtimes=yes
9591      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'
9592      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9593
9594      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9595        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9596	# If the export-symbols file already is a .def file (1st line
9597	# is EXPORTS), use it as is; otherwise, prepend...
9598	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9599	  cp $export_symbols $output_objdir/$soname.def;
9600	else
9601	  echo EXPORTS > $output_objdir/$soname.def;
9602	  cat $export_symbols >> $output_objdir/$soname.def;
9603	fi~
9604	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9605      else
9606	ld_shlibs=no
9607      fi
9608      ;;
9609
9610    haiku*)
9611      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9612      link_all_deplibs=yes
9613      ;;
9614
9615    interix[3-9]*)
9616      hardcode_direct=no
9617      hardcode_shlibpath_var=no
9618      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619      export_dynamic_flag_spec='${wl}-E'
9620      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9621      # Instead, shared libraries are loaded at an image base (0x10000000 by
9622      # default) and relocated if they conflict, which is a slow very memory
9623      # consuming and fragmenting process.  To avoid this, we pick a random,
9624      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9625      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9626      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9627      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'
9628      ;;
9629
9630    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9631      tmp_diet=no
9632      if test "$host_os" = linux-dietlibc; then
9633	case $cc_basename in
9634	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9635	esac
9636      fi
9637      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9638	 && test "$tmp_diet" = no
9639      then
9640	tmp_addflag=' $pic_flag'
9641	tmp_sharedflag='-shared'
9642	case $cc_basename,$host_cpu in
9643        pgcc*)				# Portland Group C compiler
9644	  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'
9645	  tmp_addflag=' $pic_flag'
9646	  ;;
9647	pgf77* | pgf90* | pgf95* | pgfortran*)
9648					# Portland Group f77 and f90 compilers
9649	  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'
9650	  tmp_addflag=' $pic_flag -Mnomain' ;;
9651	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9652	  tmp_addflag=' -i_dynamic' ;;
9653	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9654	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9655	ifc* | ifort*)			# Intel Fortran compiler
9656	  tmp_addflag=' -nofor_main' ;;
9657	lf95*)				# Lahey Fortran 8.1
9658	  whole_archive_flag_spec=
9659	  tmp_sharedflag='--shared' ;;
9660	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9661	  tmp_sharedflag='-qmkshrobj'
9662	  tmp_addflag= ;;
9663	nvcc*)	# Cuda Compiler Driver 2.2
9664	  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'
9665	  compiler_needs_object=yes
9666	  ;;
9667	esac
9668	case `$CC -V 2>&1 | sed 5q` in
9669	*Sun\ C*)			# Sun C 5.9
9670	  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'
9671	  compiler_needs_object=yes
9672	  tmp_sharedflag='-G' ;;
9673	*Sun\ F*)			# Sun Fortran 8.3
9674	  tmp_sharedflag='-G' ;;
9675	esac
9676	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677
9678        if test "x$supports_anon_versioning" = xyes; then
9679          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9680	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9681	    echo "local: *; };" >> $output_objdir/$libname.ver~
9682	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9683        fi
9684
9685	case $cc_basename in
9686	xlf* | bgf* | bgxlf* | mpixlf*)
9687	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9688	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9689	  hardcode_libdir_flag_spec=
9690	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9691	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9692	  if test "x$supports_anon_versioning" = xyes; then
9693	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9694	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9695	      echo "local: *; };" >> $output_objdir/$libname.ver~
9696	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9697	  fi
9698	  ;;
9699	esac
9700      else
9701        ld_shlibs=no
9702      fi
9703      ;;
9704
9705    netbsd*)
9706      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9707	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9708	wlarc=
9709      else
9710	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9712      fi
9713      ;;
9714
9715    solaris*)
9716      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9717	ld_shlibs=no
9718	cat <<_LT_EOF 1>&2
9719
9720*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9721*** create shared libraries on Solaris systems.  Therefore, libtool
9722*** is disabling shared libraries support.  We urge you to upgrade GNU
9723*** binutils to release 2.9.1 or newer.  Another option is to modify
9724*** your PATH or compiler configuration so that the native linker is
9725*** used, and then restart.
9726
9727_LT_EOF
9728      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9731      else
9732	ld_shlibs=no
9733      fi
9734      ;;
9735
9736    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9737      case `$LD -v 2>&1` in
9738        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9739	ld_shlibs=no
9740	cat <<_LT_EOF 1>&2
9741
9742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9743*** reliably create shared libraries on SCO systems.  Therefore, libtool
9744*** is disabling shared libraries support.  We urge you to upgrade GNU
9745*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9746*** your PATH or compiler configuration so that the native linker is
9747*** used, and then restart.
9748
9749_LT_EOF
9750	;;
9751	*)
9752	  # For security reasons, it is highly recommended that you always
9753	  # use absolute paths for naming shared libraries, and exclude the
9754	  # DT_RUNPATH tag from executables and libraries.  But doing so
9755	  # requires that you compile everything twice, which is a pain.
9756	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9757	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9760	  else
9761	    ld_shlibs=no
9762	  fi
9763	;;
9764      esac
9765      ;;
9766
9767    sunos4*)
9768      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9769      wlarc=
9770      hardcode_direct=yes
9771      hardcode_shlibpath_var=no
9772      ;;
9773
9774    *)
9775      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9776	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9778      else
9779	ld_shlibs=no
9780      fi
9781      ;;
9782    esac
9783
9784    if test "$ld_shlibs" = no; then
9785      runpath_var=
9786      hardcode_libdir_flag_spec=
9787      export_dynamic_flag_spec=
9788      whole_archive_flag_spec=
9789    fi
9790  else
9791    # PORTME fill in a description of your system's linker (not GNU ld)
9792    case $host_os in
9793    aix3*)
9794      allow_undefined_flag=unsupported
9795      always_export_symbols=yes
9796      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'
9797      # Note: this linker hardcodes the directories in LIBPATH if there
9798      # are no directories specified by -L.
9799      hardcode_minus_L=yes
9800      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9801	# Neither direct hardcoding nor static linking is supported with a
9802	# broken collect2.
9803	hardcode_direct=unsupported
9804      fi
9805      ;;
9806
9807    aix[4-9]*)
9808      if test "$host_cpu" = ia64; then
9809	# On IA64, the linker does run time linking by default, so we don't
9810	# have to do anything special.
9811	aix_use_runtimelinking=no
9812	exp_sym_flag='-Bexport'
9813	no_entry_flag=""
9814      else
9815	# If we're using GNU nm, then we don't want the "-C" option.
9816	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9817	# Also, AIX nm treats weak defined symbols like other global
9818	# defined symbols, whereas GNU nm marks them as "W".
9819	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9820	  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'
9821	else
9822	  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'
9823	fi
9824	aix_use_runtimelinking=no
9825
9826	# Test if we are trying to use run time linking or normal
9827	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9828	# need to do runtime linking.
9829	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9830	  for ld_flag in $LDFLAGS; do
9831	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9832	    aix_use_runtimelinking=yes
9833	    break
9834	  fi
9835	  done
9836	  ;;
9837	esac
9838
9839	exp_sym_flag='-bexport'
9840	no_entry_flag='-bnoentry'
9841      fi
9842
9843      # When large executables or shared objects are built, AIX ld can
9844      # have problems creating the table of contents.  If linking a library
9845      # or program results in "error TOC overflow" add -mminimal-toc to
9846      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9847      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9848
9849      archive_cmds=''
9850      hardcode_direct=yes
9851      hardcode_direct_absolute=yes
9852      hardcode_libdir_separator=':'
9853      link_all_deplibs=yes
9854      file_list_spec='${wl}-f,'
9855
9856      if test "$GCC" = yes; then
9857	case $host_os in aix4.[012]|aix4.[012].*)
9858	# We only want to do this on AIX 4.2 and lower, the check
9859	# below for broken collect2 doesn't work under 4.3+
9860	  collect2name=`${CC} -print-prog-name=collect2`
9861	  if test -f "$collect2name" &&
9862	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9863	  then
9864	  # We have reworked collect2
9865	  :
9866	  else
9867	  # We have old collect2
9868	  hardcode_direct=unsupported
9869	  # It fails to find uninstalled libraries when the uninstalled
9870	  # path is not listed in the libpath.  Setting hardcode_minus_L
9871	  # to unsupported forces relinking
9872	  hardcode_minus_L=yes
9873	  hardcode_libdir_flag_spec='-L$libdir'
9874	  hardcode_libdir_separator=
9875	  fi
9876	  ;;
9877	esac
9878	shared_flag='-shared'
9879	if test "$aix_use_runtimelinking" = yes; then
9880	  shared_flag="$shared_flag "'${wl}-G'
9881	fi
9882      else
9883	# not using gcc
9884	if test "$host_cpu" = ia64; then
9885	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9886	# chokes on -Wl,-G. The following line is correct:
9887	  shared_flag='-G'
9888	else
9889	  if test "$aix_use_runtimelinking" = yes; then
9890	    shared_flag='${wl}-G'
9891	  else
9892	    shared_flag='${wl}-bM:SRE'
9893	  fi
9894	fi
9895      fi
9896
9897      export_dynamic_flag_spec='${wl}-bexpall'
9898      # It seems that -bexpall does not export symbols beginning with
9899      # underscore (_), so it is better to generate a list of symbols to export.
9900      always_export_symbols=yes
9901      if test "$aix_use_runtimelinking" = yes; then
9902	# Warning - without using the other runtime loading flags (-brtl),
9903	# -berok will link without error, but may produce a broken library.
9904	allow_undefined_flag='-berok'
9905        # Determine the default libpath from the value encoded in an
9906        # empty executable.
9907        if test "${lt_cv_aix_libpath+set}" = set; then
9908  aix_libpath=$lt_cv_aix_libpath
9909else
9910  if ${lt_cv_aix_libpath_+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915
9916int
9917main ()
9918{
9919
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"; then :
9925
9926  lt_aix_libpath_sed='
9927      /Import File Strings/,/^$/ {
9928	  /^0/ {
9929	      s/^0  *\([^ ]*\) *$/\1/
9930	      p
9931	  }
9932      }'
9933  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9934  # Check for a 64-bit object if we didn't find anything.
9935  if test -z "$lt_cv_aix_libpath_"; then
9936    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9937  fi
9938fi
9939rm -f core conftest.err conftest.$ac_objext \
9940    conftest$ac_exeext conftest.$ac_ext
9941  if test -z "$lt_cv_aix_libpath_"; then
9942    lt_cv_aix_libpath_="/usr/lib:/lib"
9943  fi
9944
9945fi
9946
9947  aix_libpath=$lt_cv_aix_libpath_
9948fi
9949
9950        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9951        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9952      else
9953	if test "$host_cpu" = ia64; then
9954	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9955	  allow_undefined_flag="-z nodefs"
9956	  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"
9957	else
9958	 # Determine the default libpath from the value encoded in an
9959	 # empty executable.
9960	 if test "${lt_cv_aix_libpath+set}" = set; then
9961  aix_libpath=$lt_cv_aix_libpath
9962else
9963  if ${lt_cv_aix_libpath_+:} false; then :
9964  $as_echo_n "(cached) " >&6
9965else
9966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967/* end confdefs.h.  */
9968
9969int
9970main ()
9971{
9972
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977if ac_fn_c_try_link "$LINENO"; then :
9978
9979  lt_aix_libpath_sed='
9980      /Import File Strings/,/^$/ {
9981	  /^0/ {
9982	      s/^0  *\([^ ]*\) *$/\1/
9983	      p
9984	  }
9985      }'
9986  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987  # Check for a 64-bit object if we didn't find anything.
9988  if test -z "$lt_cv_aix_libpath_"; then
9989    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9990  fi
9991fi
9992rm -f core conftest.err conftest.$ac_objext \
9993    conftest$ac_exeext conftest.$ac_ext
9994  if test -z "$lt_cv_aix_libpath_"; then
9995    lt_cv_aix_libpath_="/usr/lib:/lib"
9996  fi
9997
9998fi
9999
10000  aix_libpath=$lt_cv_aix_libpath_
10001fi
10002
10003	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10004	  # Warning - without using the other run time loading flags,
10005	  # -berok will link without error, but may produce a broken library.
10006	  no_undefined_flag=' ${wl}-bernotok'
10007	  allow_undefined_flag=' ${wl}-berok'
10008	  if test "$with_gnu_ld" = yes; then
10009	    # We only use this code for GNU lds that support --whole-archive.
10010	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10011	  else
10012	    # Exported symbols can be pulled into shared objects from archives
10013	    whole_archive_flag_spec='$convenience'
10014	  fi
10015	  archive_cmds_need_lc=yes
10016	  # This is similar to how AIX traditionally builds its shared libraries.
10017	  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'
10018	fi
10019      fi
10020      ;;
10021
10022    amigaos*)
10023      case $host_cpu in
10024      powerpc)
10025            # see comment about AmigaOS4 .so support
10026            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027            archive_expsym_cmds=''
10028        ;;
10029      m68k)
10030            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)'
10031            hardcode_libdir_flag_spec='-L$libdir'
10032            hardcode_minus_L=yes
10033        ;;
10034      esac
10035      ;;
10036
10037    bsdi[45]*)
10038      export_dynamic_flag_spec=-rdynamic
10039      ;;
10040
10041    cygwin* | mingw* | pw32* | cegcc*)
10042      # When not using gcc, we currently assume that we are using
10043      # Microsoft Visual C++.
10044      # hardcode_libdir_flag_spec is actually meaningless, as there is
10045      # no search path for DLLs.
10046      case $cc_basename in
10047      cl*)
10048	# Native MSVC
10049	hardcode_libdir_flag_spec=' '
10050	allow_undefined_flag=unsupported
10051	always_export_symbols=yes
10052	file_list_spec='@'
10053	# Tell ltmain to make .lib files, not .a files.
10054	libext=lib
10055	# Tell ltmain to make .dll files, not .so files.
10056	shrext_cmds=".dll"
10057	# FIXME: Setting linknames here is a bad hack.
10058	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10059	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10060	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10061	  else
10062	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10063	  fi~
10064	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10065	  linknames='
10066	# The linker will not automatically build a static lib if we build a DLL.
10067	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10068	enable_shared_with_static_runtimes=yes
10069	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10070	# Don't use ranlib
10071	old_postinstall_cmds='chmod 644 $oldlib'
10072	postlink_cmds='lt_outputfile="@OUTPUT@"~
10073	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10074	  case $lt_outputfile in
10075	    *.exe|*.EXE) ;;
10076	    *)
10077	      lt_outputfile="$lt_outputfile.exe"
10078	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10079	      ;;
10080	  esac~
10081	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10082	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10083	    $RM "$lt_outputfile.manifest";
10084	  fi'
10085	;;
10086      *)
10087	# Assume MSVC wrapper
10088	hardcode_libdir_flag_spec=' '
10089	allow_undefined_flag=unsupported
10090	# Tell ltmain to make .lib files, not .a files.
10091	libext=lib
10092	# Tell ltmain to make .dll files, not .so files.
10093	shrext_cmds=".dll"
10094	# FIXME: Setting linknames here is a bad hack.
10095	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10096	# The linker will automatically build a .lib file if we build a DLL.
10097	old_archive_from_new_cmds='true'
10098	# FIXME: Should let the user specify the lib program.
10099	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10100	enable_shared_with_static_runtimes=yes
10101	;;
10102      esac
10103      ;;
10104
10105    darwin* | rhapsody*)
10106
10107
10108  archive_cmds_need_lc=no
10109  hardcode_direct=no
10110  hardcode_automatic=yes
10111  hardcode_shlibpath_var=unsupported
10112  if test "$lt_cv_ld_force_load" = "yes"; then
10113    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\"`'
10114  else
10115    whole_archive_flag_spec=''
10116  fi
10117  link_all_deplibs=yes
10118  allow_undefined_flag="$_lt_dar_allow_undefined"
10119  case $cc_basename in
10120     ifort*) _lt_dar_can_shared=yes ;;
10121     *) _lt_dar_can_shared=$GCC ;;
10122  esac
10123  if test "$_lt_dar_can_shared" = "yes"; then
10124    output_verbose_link_cmd=func_echo_all
10125    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10126    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10127    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}"
10128    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}"
10129
10130  else
10131  ld_shlibs=no
10132  fi
10133
10134      ;;
10135
10136    dgux*)
10137      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138      hardcode_libdir_flag_spec='-L$libdir'
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    freebsd1*)
10143      ld_shlibs=no
10144      ;;
10145
10146    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10147    # support.  Future versions do this automatically, but an explicit c++rt0.o
10148    # does not break anything, and helps significantly (at the cost of a little
10149    # extra space).
10150    freebsd2.2*)
10151      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10152      hardcode_libdir_flag_spec='-R$libdir'
10153      hardcode_direct=yes
10154      hardcode_shlibpath_var=no
10155      ;;
10156
10157    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10158    freebsd2*)
10159      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10160      hardcode_direct=yes
10161      hardcode_minus_L=yes
10162      hardcode_shlibpath_var=no
10163      ;;
10164
10165    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10166    freebsd* | dragonfly*)
10167      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168      hardcode_libdir_flag_spec='-R$libdir'
10169      hardcode_direct=yes
10170      hardcode_shlibpath_var=no
10171      ;;
10172
10173    hpux9*)
10174      if test "$GCC" = yes; then
10175	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10176      else
10177	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10178      fi
10179      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10180      hardcode_libdir_separator=:
10181      hardcode_direct=yes
10182
10183      # hardcode_minus_L: Not really in the search PATH,
10184      # but as the default location of the library.
10185      hardcode_minus_L=yes
10186      export_dynamic_flag_spec='${wl}-E'
10187      ;;
10188
10189    hpux10*)
10190      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10191	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10192      else
10193	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10194      fi
10195      if test "$with_gnu_ld" = no; then
10196	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10197	hardcode_libdir_flag_spec_ld='+b $libdir'
10198	hardcode_libdir_separator=:
10199	hardcode_direct=yes
10200	hardcode_direct_absolute=yes
10201	export_dynamic_flag_spec='${wl}-E'
10202	# hardcode_minus_L: Not really in the search PATH,
10203	# but as the default location of the library.
10204	hardcode_minus_L=yes
10205      fi
10206      ;;
10207
10208    hpux11*)
10209      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10210	case $host_cpu in
10211	hppa*64*)
10212	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10213	  ;;
10214	ia64*)
10215	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10216	  ;;
10217	*)
10218	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10219	  ;;
10220	esac
10221      else
10222	case $host_cpu in
10223	hppa*64*)
10224	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225	  ;;
10226	ia64*)
10227	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10228	  ;;
10229	*)
10230
10231	  # Older versions of the 11.00 compiler do not understand -b yet
10232	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10233	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10234$as_echo_n "checking if $CC understands -b... " >&6; }
10235if ${lt_cv_prog_compiler__b+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  lt_cv_prog_compiler__b=no
10239   save_LDFLAGS="$LDFLAGS"
10240   LDFLAGS="$LDFLAGS -b"
10241   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10242   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10243     # The linker can only warn and ignore the option if not recognized
10244     # So say no if there are warnings
10245     if test -s conftest.err; then
10246       # Append any errors to the config.log.
10247       cat conftest.err 1>&5
10248       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10249       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10250       if diff conftest.exp conftest.er2 >/dev/null; then
10251         lt_cv_prog_compiler__b=yes
10252       fi
10253     else
10254       lt_cv_prog_compiler__b=yes
10255     fi
10256   fi
10257   $RM -r conftest*
10258   LDFLAGS="$save_LDFLAGS"
10259
10260fi
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10262$as_echo "$lt_cv_prog_compiler__b" >&6; }
10263
10264if test x"$lt_cv_prog_compiler__b" = xyes; then
10265    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266else
10267    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10268fi
10269
10270	  ;;
10271	esac
10272      fi
10273      if test "$with_gnu_ld" = no; then
10274	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275	hardcode_libdir_separator=:
10276
10277	case $host_cpu in
10278	hppa*64*|ia64*)
10279	  hardcode_direct=no
10280	  hardcode_shlibpath_var=no
10281	  ;;
10282	*)
10283	  hardcode_direct=yes
10284	  hardcode_direct_absolute=yes
10285	  export_dynamic_flag_spec='${wl}-E'
10286
10287	  # hardcode_minus_L: Not really in the search PATH,
10288	  # but as the default location of the library.
10289	  hardcode_minus_L=yes
10290	  ;;
10291	esac
10292      fi
10293      ;;
10294
10295    irix5* | irix6* | nonstopux*)
10296      if test "$GCC" = yes; then
10297	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'
10298	# Try to use the -exported_symbol ld option, if it does not
10299	# work, assume that -exports_file does not work either and
10300	# implicitly export all symbols.
10301	# This should be the same for all languages, so no per-tag cache variable.
10302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10303$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10304if ${lt_cv_irix_exported_symbol+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  save_LDFLAGS="$LDFLAGS"
10308	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10309	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int foo (void) { return 0; }
10312_ACEOF
10313if ac_fn_c_try_link "$LINENO"; then :
10314  lt_cv_irix_exported_symbol=yes
10315else
10316  lt_cv_irix_exported_symbol=no
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319    conftest$ac_exeext conftest.$ac_ext
10320           LDFLAGS="$save_LDFLAGS"
10321fi
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10323$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10324	if test "$lt_cv_irix_exported_symbol" = yes; then
10325          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'
10326	fi
10327      else
10328	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'
10329	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'
10330      fi
10331      archive_cmds_need_lc='no'
10332      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333      hardcode_libdir_separator=:
10334      inherit_rpath=yes
10335      link_all_deplibs=yes
10336      ;;
10337
10338    netbsd*)
10339      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10340	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10341      else
10342	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10343      fi
10344      hardcode_libdir_flag_spec='-R$libdir'
10345      hardcode_direct=yes
10346      hardcode_shlibpath_var=no
10347      ;;
10348
10349    newsos6)
10350      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351      hardcode_direct=yes
10352      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10353      hardcode_libdir_separator=:
10354      hardcode_shlibpath_var=no
10355      ;;
10356
10357    *nto* | *qnx*)
10358      ;;
10359
10360    openbsd*)
10361      if test -f /usr/libexec/ld.so; then
10362	hardcode_direct=yes
10363	hardcode_shlibpath_var=no
10364	hardcode_direct_absolute=yes
10365	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10368	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10369	  export_dynamic_flag_spec='${wl}-E'
10370	else
10371	  case $host_os in
10372	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10373	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10374	     hardcode_libdir_flag_spec='-R$libdir'
10375	     ;;
10376	   *)
10377	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10378	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10379	     ;;
10380	  esac
10381	fi
10382      else
10383	ld_shlibs=no
10384      fi
10385      ;;
10386
10387    os2*)
10388      hardcode_libdir_flag_spec='-L$libdir'
10389      hardcode_minus_L=yes
10390      allow_undefined_flag=unsupported
10391      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'
10392      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10393      ;;
10394
10395    osf3*)
10396      if test "$GCC" = yes; then
10397	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10398	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'
10399      else
10400	allow_undefined_flag=' -expect_unresolved \*'
10401	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'
10402      fi
10403      archive_cmds_need_lc='no'
10404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10405      hardcode_libdir_separator=:
10406      ;;
10407
10408    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10409      if test "$GCC" = yes; then
10410	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10411	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'
10412	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10413      else
10414	allow_undefined_flag=' -expect_unresolved \*'
10415	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'
10416	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~
10417	$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'
10418
10419	# Both c and cxx compiler support -rpath directly
10420	hardcode_libdir_flag_spec='-rpath $libdir'
10421      fi
10422      archive_cmds_need_lc='no'
10423      hardcode_libdir_separator=:
10424      ;;
10425
10426    solaris*)
10427      no_undefined_flag=' -z defs'
10428      if test "$GCC" = yes; then
10429	wlarc='${wl}'
10430	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10432	  $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'
10433      else
10434	case `$CC -V 2>&1` in
10435	*"Compilers 5.0"*)
10436	  wlarc=''
10437	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10439	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10440	  ;;
10441	*)
10442	  wlarc='${wl}'
10443	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10444	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10446	  ;;
10447	esac
10448      fi
10449      hardcode_libdir_flag_spec='-R$libdir'
10450      hardcode_shlibpath_var=no
10451      case $host_os in
10452      solaris2.[0-5] | solaris2.[0-5].*) ;;
10453      *)
10454	# The compiler driver will combine and reorder linker options,
10455	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10456	# but is careful enough not to reorder.
10457	# Supported since Solaris 2.6 (maybe 2.5.1?)
10458	if test "$GCC" = yes; then
10459	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10460	else
10461	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10462	fi
10463	;;
10464      esac
10465      link_all_deplibs=yes
10466      ;;
10467
10468    sunos4*)
10469      if test "x$host_vendor" = xsequent; then
10470	# Use $CC to link under sequent, because it throws in some extra .o
10471	# files that make .init and .fini sections work.
10472	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10473      else
10474	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10475      fi
10476      hardcode_libdir_flag_spec='-L$libdir'
10477      hardcode_direct=yes
10478      hardcode_minus_L=yes
10479      hardcode_shlibpath_var=no
10480      ;;
10481
10482    sysv4)
10483      case $host_vendor in
10484	sni)
10485	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486	  hardcode_direct=yes # is this really true???
10487	;;
10488	siemens)
10489	  ## LD is ld it makes a PLAMLIB
10490	  ## CC just makes a GrossModule.
10491	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10492	  reload_cmds='$CC -r -o $output$reload_objs'
10493	  hardcode_direct=no
10494        ;;
10495	motorola)
10496	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10498	;;
10499      esac
10500      runpath_var='LD_RUN_PATH'
10501      hardcode_shlibpath_var=no
10502      ;;
10503
10504    sysv4.3*)
10505      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506      hardcode_shlibpath_var=no
10507      export_dynamic_flag_spec='-Bexport'
10508      ;;
10509
10510    sysv4*MP*)
10511      if test -d /usr/nec; then
10512	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513	hardcode_shlibpath_var=no
10514	runpath_var=LD_RUN_PATH
10515	hardcode_runpath_var=yes
10516	ld_shlibs=yes
10517      fi
10518      ;;
10519
10520    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10521      no_undefined_flag='${wl}-z,text'
10522      archive_cmds_need_lc=no
10523      hardcode_shlibpath_var=no
10524      runpath_var='LD_RUN_PATH'
10525
10526      if test "$GCC" = yes; then
10527	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529      else
10530	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10531	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532      fi
10533      ;;
10534
10535    sysv5* | sco3.2v5* | sco5v6*)
10536      # Note: We can NOT use -z defs as we might desire, because we do not
10537      # link with -lc, and that would cause any symbols used from libc to
10538      # always be unresolved, which means just about no library would
10539      # ever link correctly.  If we're not using GNU ld we use -z text
10540      # though, which does catch some bad symbols but isn't as heavy-handed
10541      # as -z defs.
10542      no_undefined_flag='${wl}-z,text'
10543      allow_undefined_flag='${wl}-z,nodefs'
10544      archive_cmds_need_lc=no
10545      hardcode_shlibpath_var=no
10546      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10547      hardcode_libdir_separator=':'
10548      link_all_deplibs=yes
10549      export_dynamic_flag_spec='${wl}-Bexport'
10550      runpath_var='LD_RUN_PATH'
10551
10552      if test "$GCC" = yes; then
10553	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555      else
10556	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558      fi
10559      ;;
10560
10561    uts4*)
10562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563      hardcode_libdir_flag_spec='-L$libdir'
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    *)
10568      ld_shlibs=no
10569      ;;
10570    esac
10571
10572    if test x$host_vendor = xsni; then
10573      case $host in
10574      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10575	export_dynamic_flag_spec='${wl}-Blargedynsym'
10576	;;
10577      esac
10578    fi
10579  fi
10580
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10582$as_echo "$ld_shlibs" >&6; }
10583test "$ld_shlibs" = no && can_build_shared=no
10584
10585with_gnu_ld=$with_gnu_ld
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601#
10602# Do we need to explicitly link libc?
10603#
10604case "x$archive_cmds_need_lc" in
10605x|xyes)
10606  # Assume -lc should be added
10607  archive_cmds_need_lc=yes
10608
10609  if test "$enable_shared" = yes && test "$GCC" = yes; then
10610    case $archive_cmds in
10611    *'~'*)
10612      # FIXME: we may have to deal with multi-command sequences.
10613      ;;
10614    '$CC '*)
10615      # Test whether the compiler implicitly links with -lc since on some
10616      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10617      # to ld, don't add -lc before -lgcc.
10618      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10619$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10620if ${lt_cv_archive_cmds_need_lc+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  $RM conftest*
10624	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10625
10626	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10627  (eval $ac_compile) 2>&5
10628  ac_status=$?
10629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10630  test $ac_status = 0; } 2>conftest.err; then
10631	  soname=conftest
10632	  lib=conftest
10633	  libobjs=conftest.$ac_objext
10634	  deplibs=
10635	  wl=$lt_prog_compiler_wl
10636	  pic_flag=$lt_prog_compiler_pic
10637	  compiler_flags=-v
10638	  linker_flags=-v
10639	  verstring=
10640	  output_objdir=.
10641	  libname=conftest
10642	  lt_save_allow_undefined_flag=$allow_undefined_flag
10643	  allow_undefined_flag=
10644	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10645  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10646  ac_status=$?
10647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648  test $ac_status = 0; }
10649	  then
10650	    lt_cv_archive_cmds_need_lc=no
10651	  else
10652	    lt_cv_archive_cmds_need_lc=yes
10653	  fi
10654	  allow_undefined_flag=$lt_save_allow_undefined_flag
10655	else
10656	  cat conftest.err 1>&5
10657	fi
10658	$RM conftest*
10659
10660fi
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10662$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10663      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10664      ;;
10665    esac
10666  fi
10667  ;;
10668esac
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10827$as_echo_n "checking dynamic linker characteristics... " >&6; }
10828
10829if test "$GCC" = yes; then
10830  case $host_os in
10831    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10832    *) lt_awk_arg="/^libraries:/" ;;
10833  esac
10834  case $host_os in
10835    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10836    *) lt_sed_strip_eq="s,=/,/,g" ;;
10837  esac
10838  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10839  case $lt_search_path_spec in
10840  *\;*)
10841    # if the path contains ";" then we assume it to be the separator
10842    # otherwise default to the standard path separator (i.e. ":") - it is
10843    # assumed that no part of a normal pathname contains ";" but that should
10844    # okay in the real world where ";" in dirpaths is itself problematic.
10845    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10846    ;;
10847  *)
10848    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10849    ;;
10850  esac
10851  # Ok, now we have the path, separated by spaces, we can step through it
10852  # and add multilib dir if necessary.
10853  lt_tmp_lt_search_path_spec=
10854  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10855  for lt_sys_path in $lt_search_path_spec; do
10856    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10857      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10858    else
10859      test -d "$lt_sys_path" && \
10860	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10861    fi
10862  done
10863  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10864BEGIN {RS=" "; FS="/|\n";} {
10865  lt_foo="";
10866  lt_count=0;
10867  for (lt_i = NF; lt_i > 0; lt_i--) {
10868    if ($lt_i != "" && $lt_i != ".") {
10869      if ($lt_i == "..") {
10870        lt_count++;
10871      } else {
10872        if (lt_count == 0) {
10873          lt_foo="/" $lt_i lt_foo;
10874        } else {
10875          lt_count--;
10876        }
10877      }
10878    }
10879  }
10880  if (lt_foo != "") { lt_freq[lt_foo]++; }
10881  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10882}'`
10883  # AWK program above erroneously prepends '/' to C:/dos/paths
10884  # for these hosts.
10885  case $host_os in
10886    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10887      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10888  esac
10889  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10890else
10891  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10892fi
10893library_names_spec=
10894libname_spec='lib$name'
10895soname_spec=
10896shrext_cmds=".so"
10897postinstall_cmds=
10898postuninstall_cmds=
10899finish_cmds=
10900finish_eval=
10901shlibpath_var=
10902shlibpath_overrides_runpath=unknown
10903version_type=none
10904dynamic_linker="$host_os ld.so"
10905sys_lib_dlsearch_path_spec="/lib /usr/lib"
10906need_lib_prefix=unknown
10907hardcode_into_libs=no
10908
10909# when you set need_version to no, make sure it does not cause -set_version
10910# flags to be left without arguments
10911need_version=unknown
10912
10913case $host_os in
10914aix3*)
10915  version_type=linux
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10917  shlibpath_var=LIBPATH
10918
10919  # AIX 3 has no versioning support, so we append a major version to the name.
10920  soname_spec='${libname}${release}${shared_ext}$major'
10921  ;;
10922
10923aix[4-9]*)
10924  version_type=linux
10925  need_lib_prefix=no
10926  need_version=no
10927  hardcode_into_libs=yes
10928  if test "$host_cpu" = ia64; then
10929    # AIX 5 supports IA64
10930    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10931    shlibpath_var=LD_LIBRARY_PATH
10932  else
10933    # With GCC up to 2.95.x, collect2 would create an import file
10934    # for dependence libraries.  The import file would start with
10935    # the line `#! .'.  This would cause the generated library to
10936    # depend on `.', always an invalid library.  This was fixed in
10937    # development snapshots of GCC prior to 3.0.
10938    case $host_os in
10939      aix4 | aix4.[01] | aix4.[01].*)
10940      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10941	   echo ' yes '
10942	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10943	:
10944      else
10945	can_build_shared=no
10946      fi
10947      ;;
10948    esac
10949    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10950    # soname into executable. Probably we can add versioning support to
10951    # collect2, so additional links can be useful in future.
10952    if test "$aix_use_runtimelinking" = yes; then
10953      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10954      # instead of lib<name>.a to let people know that these are not
10955      # typical AIX shared libraries.
10956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957    else
10958      # We preserve .a as extension for shared libraries through AIX4.2
10959      # and later when we are not doing run time linking.
10960      library_names_spec='${libname}${release}.a $libname.a'
10961      soname_spec='${libname}${release}${shared_ext}$major'
10962    fi
10963    shlibpath_var=LIBPATH
10964  fi
10965  ;;
10966
10967amigaos*)
10968  case $host_cpu in
10969  powerpc)
10970    # Since July 2007 AmigaOS4 officially supports .so libraries.
10971    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973    ;;
10974  m68k)
10975    library_names_spec='$libname.ixlibrary $libname.a'
10976    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10977    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10978    ;;
10979  esac
10980  ;;
10981
10982beos*)
10983  library_names_spec='${libname}${shared_ext}'
10984  dynamic_linker="$host_os ld.so"
10985  shlibpath_var=LIBRARY_PATH
10986  ;;
10987
10988bsdi[45]*)
10989  version_type=linux
10990  need_version=no
10991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992  soname_spec='${libname}${release}${shared_ext}$major'
10993  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10994  shlibpath_var=LD_LIBRARY_PATH
10995  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10996  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10997  # the default ld.so.conf also contains /usr/contrib/lib and
10998  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10999  # libtool to hard-code these into programs
11000  ;;
11001
11002cygwin* | mingw* | pw32* | cegcc*)
11003  version_type=windows
11004  shrext_cmds=".dll"
11005  need_version=no
11006  need_lib_prefix=no
11007
11008  case $GCC,$cc_basename in
11009  yes,*)
11010    # gcc
11011    library_names_spec='$libname.dll.a'
11012    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11013    postinstall_cmds='base_file=`basename \${file}`~
11014      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11015      dldir=$destdir/`dirname \$dlpath`~
11016      test -d \$dldir || mkdir -p \$dldir~
11017      $install_prog $dir/$dlname \$dldir/$dlname~
11018      chmod a+x \$dldir/$dlname~
11019      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11020        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11021      fi'
11022    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11023      dlpath=$dir/\$dldll~
11024       $RM \$dlpath'
11025    shlibpath_overrides_runpath=yes
11026
11027    case $host_os in
11028    cygwin*)
11029      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11030      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11031
11032      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11033      ;;
11034    mingw* | cegcc*)
11035      # MinGW DLLs use traditional 'lib' prefix
11036      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11037      ;;
11038    pw32*)
11039      # pw32 DLLs use 'pw' prefix rather than 'lib'
11040      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11041      ;;
11042    esac
11043    dynamic_linker='Win32 ld.exe'
11044    ;;
11045
11046  *,cl*)
11047    # Native MSVC
11048    libname_spec='$name'
11049    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11050    library_names_spec='${libname}.dll.lib'
11051
11052    case $build_os in
11053    mingw*)
11054      sys_lib_search_path_spec=
11055      lt_save_ifs=$IFS
11056      IFS=';'
11057      for lt_path in $LIB
11058      do
11059        IFS=$lt_save_ifs
11060        # Let DOS variable expansion print the short 8.3 style file name.
11061        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11062        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11063      done
11064      IFS=$lt_save_ifs
11065      # Convert to MSYS style.
11066      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11067      ;;
11068    cygwin*)
11069      # Convert to unix form, then to dos form, then back to unix form
11070      # but this time dos style (no spaces!) so that the unix form looks
11071      # like /cygdrive/c/PROGRA~1:/cygdr...
11072      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11073      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11074      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11075      ;;
11076    *)
11077      sys_lib_search_path_spec="$LIB"
11078      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11079        # It is most probably a Windows format PATH.
11080        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11081      else
11082        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11083      fi
11084      # FIXME: find the short name or the path components, as spaces are
11085      # common. (e.g. "Program Files" -> "PROGRA~1")
11086      ;;
11087    esac
11088
11089    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11090    postinstall_cmds='base_file=`basename \${file}`~
11091      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11092      dldir=$destdir/`dirname \$dlpath`~
11093      test -d \$dldir || mkdir -p \$dldir~
11094      $install_prog $dir/$dlname \$dldir/$dlname'
11095    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11096      dlpath=$dir/\$dldll~
11097       $RM \$dlpath'
11098    shlibpath_overrides_runpath=yes
11099    dynamic_linker='Win32 link.exe'
11100    ;;
11101
11102  *)
11103    # Assume MSVC wrapper
11104    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11105    dynamic_linker='Win32 ld.exe'
11106    ;;
11107  esac
11108  # FIXME: first we should search . and the directory the executable is in
11109  shlibpath_var=PATH
11110  ;;
11111
11112darwin* | rhapsody*)
11113  dynamic_linker="$host_os dyld"
11114  version_type=darwin
11115  need_lib_prefix=no
11116  need_version=no
11117  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11118  soname_spec='${libname}${release}${major}$shared_ext'
11119  shlibpath_overrides_runpath=yes
11120  shlibpath_var=DYLD_LIBRARY_PATH
11121  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11122
11123  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11124  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11125  ;;
11126
11127dgux*)
11128  version_type=linux
11129  need_lib_prefix=no
11130  need_version=no
11131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11132  soname_spec='${libname}${release}${shared_ext}$major'
11133  shlibpath_var=LD_LIBRARY_PATH
11134  ;;
11135
11136freebsd1*)
11137  dynamic_linker=no
11138  ;;
11139
11140freebsd* | dragonfly*)
11141  # DragonFly does not have aout.  When/if they implement a new
11142  # versioning mechanism, adjust this.
11143  if test -x /usr/bin/objformat; then
11144    objformat=`/usr/bin/objformat`
11145  else
11146    case $host_os in
11147    freebsd[123]*) objformat=aout ;;
11148    *) objformat=elf ;;
11149    esac
11150  fi
11151  version_type=freebsd-$objformat
11152  case $version_type in
11153    freebsd-elf*)
11154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11155      need_version=no
11156      need_lib_prefix=no
11157      ;;
11158    freebsd-*)
11159      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11160      need_version=yes
11161      ;;
11162  esac
11163  shlibpath_var=LD_LIBRARY_PATH
11164  case $host_os in
11165  freebsd2*)
11166    shlibpath_overrides_runpath=yes
11167    ;;
11168  freebsd3.[01]* | freebsdelf3.[01]*)
11169    shlibpath_overrides_runpath=yes
11170    hardcode_into_libs=yes
11171    ;;
11172  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11173  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11174    shlibpath_overrides_runpath=no
11175    hardcode_into_libs=yes
11176    ;;
11177  *) # from 4.6 on, and DragonFly
11178    shlibpath_overrides_runpath=yes
11179    hardcode_into_libs=yes
11180    ;;
11181  esac
11182  ;;
11183
11184gnu*)
11185  version_type=linux
11186  need_lib_prefix=no
11187  need_version=no
11188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11189  soname_spec='${libname}${release}${shared_ext}$major'
11190  shlibpath_var=LD_LIBRARY_PATH
11191  hardcode_into_libs=yes
11192  ;;
11193
11194haiku*)
11195  version_type=linux
11196  need_lib_prefix=no
11197  need_version=no
11198  dynamic_linker="$host_os runtime_loader"
11199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11200  soname_spec='${libname}${release}${shared_ext}$major'
11201  shlibpath_var=LIBRARY_PATH
11202  shlibpath_overrides_runpath=yes
11203  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11204  hardcode_into_libs=yes
11205  ;;
11206
11207hpux9* | hpux10* | hpux11*)
11208  # Give a soname corresponding to the major version so that dld.sl refuses to
11209  # link against other versions.
11210  version_type=sunos
11211  need_lib_prefix=no
11212  need_version=no
11213  case $host_cpu in
11214  ia64*)
11215    shrext_cmds='.so'
11216    hardcode_into_libs=yes
11217    dynamic_linker="$host_os dld.so"
11218    shlibpath_var=LD_LIBRARY_PATH
11219    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221    soname_spec='${libname}${release}${shared_ext}$major'
11222    if test "X$HPUX_IA64_MODE" = X32; then
11223      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11224    else
11225      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11226    fi
11227    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11228    ;;
11229  hppa*64*)
11230    shrext_cmds='.sl'
11231    hardcode_into_libs=yes
11232    dynamic_linker="$host_os dld.sl"
11233    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11234    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236    soname_spec='${libname}${release}${shared_ext}$major'
11237    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11238    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11239    ;;
11240  *)
11241    shrext_cmds='.sl'
11242    dynamic_linker="$host_os dld.sl"
11243    shlibpath_var=SHLIB_PATH
11244    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11245    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246    soname_spec='${libname}${release}${shared_ext}$major'
11247    ;;
11248  esac
11249  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11250  postinstall_cmds='chmod 555 $lib'
11251  # or fails outright, so override atomically:
11252  install_override_mode=555
11253  ;;
11254
11255interix[3-9]*)
11256  version_type=linux
11257  need_lib_prefix=no
11258  need_version=no
11259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11260  soname_spec='${libname}${release}${shared_ext}$major'
11261  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11262  shlibpath_var=LD_LIBRARY_PATH
11263  shlibpath_overrides_runpath=no
11264  hardcode_into_libs=yes
11265  ;;
11266
11267irix5* | irix6* | nonstopux*)
11268  case $host_os in
11269    nonstopux*) version_type=nonstopux ;;
11270    *)
11271	if test "$lt_cv_prog_gnu_ld" = yes; then
11272		version_type=linux
11273	else
11274		version_type=irix
11275	fi ;;
11276  esac
11277  need_lib_prefix=no
11278  need_version=no
11279  soname_spec='${libname}${release}${shared_ext}$major'
11280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11281  case $host_os in
11282  irix5* | nonstopux*)
11283    libsuff= shlibsuff=
11284    ;;
11285  *)
11286    case $LD in # libtool.m4 will add one of these switches to LD
11287    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11288      libsuff= shlibsuff= libmagic=32-bit;;
11289    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11290      libsuff=32 shlibsuff=N32 libmagic=N32;;
11291    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11292      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11293    *) libsuff= shlibsuff= libmagic=never-match;;
11294    esac
11295    ;;
11296  esac
11297  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11298  shlibpath_overrides_runpath=no
11299  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11300  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11301  hardcode_into_libs=yes
11302  ;;
11303
11304# No shared lib support for Linux oldld, aout, or coff.
11305linux*oldld* | linux*aout* | linux*coff*)
11306  dynamic_linker=no
11307  ;;
11308
11309# This must be Linux ELF.
11310linux* | k*bsd*-gnu | kopensolaris*-gnu)
11311  version_type=linux
11312  need_lib_prefix=no
11313  need_version=no
11314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315  soname_spec='${libname}${release}${shared_ext}$major'
11316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=no
11319
11320  # Some binutils ld are patched to set DT_RUNPATH
11321  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  lt_cv_shlibpath_overrides_runpath=no
11325    save_LDFLAGS=$LDFLAGS
11326    save_libdir=$libdir
11327    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11328	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330/* end confdefs.h.  */
11331
11332int
11333main ()
11334{
11335
11336  ;
11337  return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_link "$LINENO"; then :
11341  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11342  lt_cv_shlibpath_overrides_runpath=yes
11343fi
11344fi
11345rm -f core conftest.err conftest.$ac_objext \
11346    conftest$ac_exeext conftest.$ac_ext
11347    LDFLAGS=$save_LDFLAGS
11348    libdir=$save_libdir
11349
11350fi
11351
11352  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11353
11354  # This implies no fast_install, which is unacceptable.
11355  # Some rework will be needed to allow for fast_install
11356  # before this can be enabled.
11357  hardcode_into_libs=yes
11358
11359  # Append ld.so.conf contents to the search path
11360  if test -f /etc/ld.so.conf; then
11361    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' ' '`
11362    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11363  fi
11364
11365  # We used to test for /lib/ld.so.1 and disable shared libraries on
11366  # powerpc, because MkLinux only supported shared libraries with the
11367  # GNU dynamic linker.  Since this was broken with cross compilers,
11368  # most powerpc-linux boxes support dynamic linking these days and
11369  # people can always --disable-shared, the test was removed, and we
11370  # assume the GNU/Linux dynamic linker is in use.
11371  dynamic_linker='GNU/Linux ld.so'
11372  ;;
11373
11374netbsd*)
11375  version_type=sunos
11376  need_lib_prefix=no
11377  need_version=no
11378  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11380    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11381    dynamic_linker='NetBSD (a.out) ld.so'
11382  else
11383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11384    soname_spec='${libname}${release}${shared_ext}$major'
11385    dynamic_linker='NetBSD ld.elf_so'
11386  fi
11387  shlibpath_var=LD_LIBRARY_PATH
11388  shlibpath_overrides_runpath=yes
11389  hardcode_into_libs=yes
11390  ;;
11391
11392newsos6)
11393  version_type=linux
11394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395  shlibpath_var=LD_LIBRARY_PATH
11396  shlibpath_overrides_runpath=yes
11397  ;;
11398
11399*nto* | *qnx*)
11400  version_type=qnx
11401  need_lib_prefix=no
11402  need_version=no
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  shlibpath_overrides_runpath=no
11407  hardcode_into_libs=yes
11408  dynamic_linker='ldqnx.so'
11409  ;;
11410
11411openbsd*)
11412  version_type=sunos
11413  sys_lib_dlsearch_path_spec="/usr/lib"
11414  need_lib_prefix=no
11415  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11416  case $host_os in
11417    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11418    *)				need_version=no  ;;
11419  esac
11420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11421  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11422  shlibpath_var=LD_LIBRARY_PATH
11423  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11424    case $host_os in
11425      openbsd2.[89] | openbsd2.[89].*)
11426	shlibpath_overrides_runpath=no
11427	;;
11428      *)
11429	shlibpath_overrides_runpath=yes
11430	;;
11431      esac
11432  else
11433    shlibpath_overrides_runpath=yes
11434  fi
11435  ;;
11436
11437os2*)
11438  libname_spec='$name'
11439  shrext_cmds=".dll"
11440  need_lib_prefix=no
11441  library_names_spec='$libname${shared_ext} $libname.a'
11442  dynamic_linker='OS/2 ld.exe'
11443  shlibpath_var=LIBPATH
11444  ;;
11445
11446osf3* | osf4* | osf5*)
11447  version_type=osf
11448  need_lib_prefix=no
11449  need_version=no
11450  soname_spec='${libname}${release}${shared_ext}$major'
11451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452  shlibpath_var=LD_LIBRARY_PATH
11453  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11454  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11455  ;;
11456
11457rdos*)
11458  dynamic_linker=no
11459  ;;
11460
11461solaris*)
11462  version_type=linux
11463  need_lib_prefix=no
11464  need_version=no
11465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466  soname_spec='${libname}${release}${shared_ext}$major'
11467  shlibpath_var=LD_LIBRARY_PATH
11468  shlibpath_overrides_runpath=yes
11469  hardcode_into_libs=yes
11470  # ldd complains unless libraries are executable
11471  postinstall_cmds='chmod +x $lib'
11472  ;;
11473
11474sunos4*)
11475  version_type=sunos
11476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11478  shlibpath_var=LD_LIBRARY_PATH
11479  shlibpath_overrides_runpath=yes
11480  if test "$with_gnu_ld" = yes; then
11481    need_lib_prefix=no
11482  fi
11483  need_version=yes
11484  ;;
11485
11486sysv4 | sysv4.3*)
11487  version_type=linux
11488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489  soname_spec='${libname}${release}${shared_ext}$major'
11490  shlibpath_var=LD_LIBRARY_PATH
11491  case $host_vendor in
11492    sni)
11493      shlibpath_overrides_runpath=no
11494      need_lib_prefix=no
11495      runpath_var=LD_RUN_PATH
11496      ;;
11497    siemens)
11498      need_lib_prefix=no
11499      ;;
11500    motorola)
11501      need_lib_prefix=no
11502      need_version=no
11503      shlibpath_overrides_runpath=no
11504      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11505      ;;
11506  esac
11507  ;;
11508
11509sysv4*MP*)
11510  if test -d /usr/nec ;then
11511    version_type=linux
11512    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11513    soname_spec='$libname${shared_ext}.$major'
11514    shlibpath_var=LD_LIBRARY_PATH
11515  fi
11516  ;;
11517
11518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11519  version_type=freebsd-elf
11520  need_lib_prefix=no
11521  need_version=no
11522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11523  soname_spec='${libname}${release}${shared_ext}$major'
11524  shlibpath_var=LD_LIBRARY_PATH
11525  shlibpath_overrides_runpath=yes
11526  hardcode_into_libs=yes
11527  if test "$with_gnu_ld" = yes; then
11528    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11529  else
11530    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11531    case $host_os in
11532      sco3.2v5*)
11533        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11534	;;
11535    esac
11536  fi
11537  sys_lib_dlsearch_path_spec='/usr/lib'
11538  ;;
11539
11540tpf*)
11541  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11542  version_type=linux
11543  need_lib_prefix=no
11544  need_version=no
11545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546  shlibpath_var=LD_LIBRARY_PATH
11547  shlibpath_overrides_runpath=no
11548  hardcode_into_libs=yes
11549  ;;
11550
11551uts4*)
11552  version_type=linux
11553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554  soname_spec='${libname}${release}${shared_ext}$major'
11555  shlibpath_var=LD_LIBRARY_PATH
11556  ;;
11557
11558*)
11559  dynamic_linker=no
11560  ;;
11561esac
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11563$as_echo "$dynamic_linker" >&6; }
11564test "$dynamic_linker" = no && can_build_shared=no
11565
11566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11567if test "$GCC" = yes; then
11568  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11569fi
11570
11571if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11572  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11573fi
11574if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11575  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11576fi
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11670$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11671hardcode_action=
11672if test -n "$hardcode_libdir_flag_spec" ||
11673   test -n "$runpath_var" ||
11674   test "X$hardcode_automatic" = "Xyes" ; then
11675
11676  # We can hardcode non-existent directories.
11677  if test "$hardcode_direct" != no &&
11678     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11679     # have to relink, otherwise we might link with an installed library
11680     # when we should be linking with a yet-to-be-installed one
11681     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11682     test "$hardcode_minus_L" != no; then
11683    # Linking always hardcodes the temporary library directory.
11684    hardcode_action=relink
11685  else
11686    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11687    hardcode_action=immediate
11688  fi
11689else
11690  # We cannot hardcode anything, or else we can only hardcode existing
11691  # directories.
11692  hardcode_action=unsupported
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11695$as_echo "$hardcode_action" >&6; }
11696
11697if test "$hardcode_action" = relink ||
11698   test "$inherit_rpath" = yes; then
11699  # Fast installation is not supported
11700  enable_fast_install=no
11701elif test "$shlibpath_overrides_runpath" = yes ||
11702     test "$enable_shared" = no; then
11703  # Fast installation is not necessary
11704  enable_fast_install=needless
11705fi
11706
11707
11708
11709
11710
11711
11712  if test "x$enable_dlopen" != xyes; then
11713  enable_dlopen=unknown
11714  enable_dlopen_self=unknown
11715  enable_dlopen_self_static=unknown
11716else
11717  lt_cv_dlopen=no
11718  lt_cv_dlopen_libs=
11719
11720  case $host_os in
11721  beos*)
11722    lt_cv_dlopen="load_add_on"
11723    lt_cv_dlopen_libs=
11724    lt_cv_dlopen_self=yes
11725    ;;
11726
11727  mingw* | pw32* | cegcc*)
11728    lt_cv_dlopen="LoadLibrary"
11729    lt_cv_dlopen_libs=
11730    ;;
11731
11732  cygwin*)
11733    lt_cv_dlopen="dlopen"
11734    lt_cv_dlopen_libs=
11735    ;;
11736
11737  darwin*)
11738  # if libdl is installed we need to link against it
11739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11740$as_echo_n "checking for dlopen in -ldl... " >&6; }
11741if ${ac_cv_lib_dl_dlopen+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  ac_check_lib_save_LIBS=$LIBS
11745LIBS="-ldl  $LIBS"
11746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747/* end confdefs.h.  */
11748
11749/* Override any GCC internal prototype to avoid an error.
11750   Use char because int might match the return type of a GCC
11751   builtin and then its argument prototype would still apply.  */
11752#ifdef __cplusplus
11753extern "C"
11754#endif
11755char dlopen ();
11756int
11757main ()
11758{
11759return dlopen ();
11760  ;
11761  return 0;
11762}
11763_ACEOF
11764if ac_fn_c_try_link "$LINENO"; then :
11765  ac_cv_lib_dl_dlopen=yes
11766else
11767  ac_cv_lib_dl_dlopen=no
11768fi
11769rm -f core conftest.err conftest.$ac_objext \
11770    conftest$ac_exeext conftest.$ac_ext
11771LIBS=$ac_check_lib_save_LIBS
11772fi
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11774$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11775if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11776  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11777else
11778
11779    lt_cv_dlopen="dyld"
11780    lt_cv_dlopen_libs=
11781    lt_cv_dlopen_self=yes
11782
11783fi
11784
11785    ;;
11786
11787  *)
11788    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11789if test "x$ac_cv_func_shl_load" = xyes; then :
11790  lt_cv_dlopen="shl_load"
11791else
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11793$as_echo_n "checking for shl_load in -ldld... " >&6; }
11794if ${ac_cv_lib_dld_shl_load+:} false; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-ldld  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803   Use char because int might match the return type of a GCC
11804   builtin and then its argument prototype would still apply.  */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char shl_load ();
11809int
11810main ()
11811{
11812return shl_load ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_lib_dld_shl_load=yes
11819else
11820  ac_cv_lib_dld_shl_load=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823    conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11827$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11828if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11829  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11830else
11831  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11832if test "x$ac_cv_func_dlopen" = xyes; then :
11833  lt_cv_dlopen="dlopen"
11834else
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11836$as_echo_n "checking for dlopen in -ldl... " >&6; }
11837if ${ac_cv_lib_dl_dlopen+:} false; then :
11838  $as_echo_n "(cached) " >&6
11839else
11840  ac_check_lib_save_LIBS=$LIBS
11841LIBS="-ldl  $LIBS"
11842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843/* end confdefs.h.  */
11844
11845/* Override any GCC internal prototype to avoid an error.
11846   Use char because int might match the return type of a GCC
11847   builtin and then its argument prototype would still apply.  */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char dlopen ();
11852int
11853main ()
11854{
11855return dlopen ();
11856  ;
11857  return 0;
11858}
11859_ACEOF
11860if ac_fn_c_try_link "$LINENO"; then :
11861  ac_cv_lib_dl_dlopen=yes
11862else
11863  ac_cv_lib_dl_dlopen=no
11864fi
11865rm -f core conftest.err conftest.$ac_objext \
11866    conftest$ac_exeext conftest.$ac_ext
11867LIBS=$ac_check_lib_save_LIBS
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11870$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11871if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11872  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11873else
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11875$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11876if ${ac_cv_lib_svld_dlopen+:} false; then :
11877  $as_echo_n "(cached) " >&6
11878else
11879  ac_check_lib_save_LIBS=$LIBS
11880LIBS="-lsvld  $LIBS"
11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h.  */
11883
11884/* Override any GCC internal prototype to avoid an error.
11885   Use char because int might match the return type of a GCC
11886   builtin and then its argument prototype would still apply.  */
11887#ifdef __cplusplus
11888extern "C"
11889#endif
11890char dlopen ();
11891int
11892main ()
11893{
11894return dlopen ();
11895  ;
11896  return 0;
11897}
11898_ACEOF
11899if ac_fn_c_try_link "$LINENO"; then :
11900  ac_cv_lib_svld_dlopen=yes
11901else
11902  ac_cv_lib_svld_dlopen=no
11903fi
11904rm -f core conftest.err conftest.$ac_objext \
11905    conftest$ac_exeext conftest.$ac_ext
11906LIBS=$ac_check_lib_save_LIBS
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11909$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11910if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11911  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11912else
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11914$as_echo_n "checking for dld_link in -ldld... " >&6; }
11915if ${ac_cv_lib_dld_dld_link+:} false; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  ac_check_lib_save_LIBS=$LIBS
11919LIBS="-ldld  $LIBS"
11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921/* end confdefs.h.  */
11922
11923/* Override any GCC internal prototype to avoid an error.
11924   Use char because int might match the return type of a GCC
11925   builtin and then its argument prototype would still apply.  */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929char dld_link ();
11930int
11931main ()
11932{
11933return dld_link ();
11934  ;
11935  return 0;
11936}
11937_ACEOF
11938if ac_fn_c_try_link "$LINENO"; then :
11939  ac_cv_lib_dld_dld_link=yes
11940else
11941  ac_cv_lib_dld_dld_link=no
11942fi
11943rm -f core conftest.err conftest.$ac_objext \
11944    conftest$ac_exeext conftest.$ac_ext
11945LIBS=$ac_check_lib_save_LIBS
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11948$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11949if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11950  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11951fi
11952
11953
11954fi
11955
11956
11957fi
11958
11959
11960fi
11961
11962
11963fi
11964
11965
11966fi
11967
11968    ;;
11969  esac
11970
11971  if test "x$lt_cv_dlopen" != xno; then
11972    enable_dlopen=yes
11973  else
11974    enable_dlopen=no
11975  fi
11976
11977  case $lt_cv_dlopen in
11978  dlopen)
11979    save_CPPFLAGS="$CPPFLAGS"
11980    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11981
11982    save_LDFLAGS="$LDFLAGS"
11983    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11984
11985    save_LIBS="$LIBS"
11986    LIBS="$lt_cv_dlopen_libs $LIBS"
11987
11988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11989$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11990if ${lt_cv_dlopen_self+:} false; then :
11991  $as_echo_n "(cached) " >&6
11992else
11993  	  if test "$cross_compiling" = yes; then :
11994  lt_cv_dlopen_self=cross
11995else
11996  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11997  lt_status=$lt_dlunknown
11998  cat > conftest.$ac_ext <<_LT_EOF
11999#line $LINENO "configure"
12000#include "confdefs.h"
12001
12002#if HAVE_DLFCN_H
12003#include <dlfcn.h>
12004#endif
12005
12006#include <stdio.h>
12007
12008#ifdef RTLD_GLOBAL
12009#  define LT_DLGLOBAL		RTLD_GLOBAL
12010#else
12011#  ifdef DL_GLOBAL
12012#    define LT_DLGLOBAL		DL_GLOBAL
12013#  else
12014#    define LT_DLGLOBAL		0
12015#  endif
12016#endif
12017
12018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12019   find out it does not work in some platform. */
12020#ifndef LT_DLLAZY_OR_NOW
12021#  ifdef RTLD_LAZY
12022#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12023#  else
12024#    ifdef DL_LAZY
12025#      define LT_DLLAZY_OR_NOW		DL_LAZY
12026#    else
12027#      ifdef RTLD_NOW
12028#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12029#      else
12030#        ifdef DL_NOW
12031#          define LT_DLLAZY_OR_NOW	DL_NOW
12032#        else
12033#          define LT_DLLAZY_OR_NOW	0
12034#        endif
12035#      endif
12036#    endif
12037#  endif
12038#endif
12039
12040/* When -fvisbility=hidden is used, assume the code has been annotated
12041   correspondingly for the symbols needed.  */
12042#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12043int fnord () __attribute__((visibility("default")));
12044#endif
12045
12046int fnord () { return 42; }
12047int main ()
12048{
12049  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12050  int status = $lt_dlunknown;
12051
12052  if (self)
12053    {
12054      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12055      else
12056        {
12057	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12058          else puts (dlerror ());
12059	}
12060      /* dlclose (self); */
12061    }
12062  else
12063    puts (dlerror ());
12064
12065  return status;
12066}
12067_LT_EOF
12068  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12069  (eval $ac_link) 2>&5
12070  ac_status=$?
12071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12072  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12073    (./conftest; exit; ) >&5 2>/dev/null
12074    lt_status=$?
12075    case x$lt_status in
12076      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12077      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12078      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12079    esac
12080  else :
12081    # compilation failed
12082    lt_cv_dlopen_self=no
12083  fi
12084fi
12085rm -fr conftest*
12086
12087
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12090$as_echo "$lt_cv_dlopen_self" >&6; }
12091
12092    if test "x$lt_cv_dlopen_self" = xyes; then
12093      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12094      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12095$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12096if ${lt_cv_dlopen_self_static+:} false; then :
12097  $as_echo_n "(cached) " >&6
12098else
12099  	  if test "$cross_compiling" = yes; then :
12100  lt_cv_dlopen_self_static=cross
12101else
12102  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12103  lt_status=$lt_dlunknown
12104  cat > conftest.$ac_ext <<_LT_EOF
12105#line $LINENO "configure"
12106#include "confdefs.h"
12107
12108#if HAVE_DLFCN_H
12109#include <dlfcn.h>
12110#endif
12111
12112#include <stdio.h>
12113
12114#ifdef RTLD_GLOBAL
12115#  define LT_DLGLOBAL		RTLD_GLOBAL
12116#else
12117#  ifdef DL_GLOBAL
12118#    define LT_DLGLOBAL		DL_GLOBAL
12119#  else
12120#    define LT_DLGLOBAL		0
12121#  endif
12122#endif
12123
12124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12125   find out it does not work in some platform. */
12126#ifndef LT_DLLAZY_OR_NOW
12127#  ifdef RTLD_LAZY
12128#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12129#  else
12130#    ifdef DL_LAZY
12131#      define LT_DLLAZY_OR_NOW		DL_LAZY
12132#    else
12133#      ifdef RTLD_NOW
12134#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12135#      else
12136#        ifdef DL_NOW
12137#          define LT_DLLAZY_OR_NOW	DL_NOW
12138#        else
12139#          define LT_DLLAZY_OR_NOW	0
12140#        endif
12141#      endif
12142#    endif
12143#  endif
12144#endif
12145
12146/* When -fvisbility=hidden is used, assume the code has been annotated
12147   correspondingly for the symbols needed.  */
12148#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12149int fnord () __attribute__((visibility("default")));
12150#endif
12151
12152int fnord () { return 42; }
12153int main ()
12154{
12155  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12156  int status = $lt_dlunknown;
12157
12158  if (self)
12159    {
12160      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12161      else
12162        {
12163	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12164          else puts (dlerror ());
12165	}
12166      /* dlclose (self); */
12167    }
12168  else
12169    puts (dlerror ());
12170
12171  return status;
12172}
12173_LT_EOF
12174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12175  (eval $ac_link) 2>&5
12176  ac_status=$?
12177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12179    (./conftest; exit; ) >&5 2>/dev/null
12180    lt_status=$?
12181    case x$lt_status in
12182      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12183      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12184      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12185    esac
12186  else :
12187    # compilation failed
12188    lt_cv_dlopen_self_static=no
12189  fi
12190fi
12191rm -fr conftest*
12192
12193
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12196$as_echo "$lt_cv_dlopen_self_static" >&6; }
12197    fi
12198
12199    CPPFLAGS="$save_CPPFLAGS"
12200    LDFLAGS="$save_LDFLAGS"
12201    LIBS="$save_LIBS"
12202    ;;
12203  esac
12204
12205  case $lt_cv_dlopen_self in
12206  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12207  *) enable_dlopen_self=unknown ;;
12208  esac
12209
12210  case $lt_cv_dlopen_self_static in
12211  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12212  *) enable_dlopen_self_static=unknown ;;
12213  esac
12214fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232striplib=
12233old_striplib=
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12235$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12236if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12237  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12238  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240$as_echo "yes" >&6; }
12241else
12242# FIXME - insert some real tests, host_os isn't really good enough
12243  case $host_os in
12244  darwin*)
12245    if test -n "$STRIP" ; then
12246      striplib="$STRIP -x"
12247      old_striplib="$STRIP -S"
12248      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249$as_echo "yes" >&6; }
12250    else
12251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253    fi
12254    ;;
12255  *)
12256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258    ;;
12259  esac
12260fi
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273  # Report which library types will actually be built
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12275$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12277$as_echo "$can_build_shared" >&6; }
12278
12279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12280$as_echo_n "checking whether to build shared libraries... " >&6; }
12281  test "$can_build_shared" = "no" && enable_shared=no
12282
12283  # On AIX, shared libraries and static libraries use the same namespace, and
12284  # are all built from PIC.
12285  case $host_os in
12286  aix3*)
12287    test "$enable_shared" = yes && enable_static=no
12288    if test -n "$RANLIB"; then
12289      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12290      postinstall_cmds='$RANLIB $lib'
12291    fi
12292    ;;
12293
12294  aix[4-9]*)
12295    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12296      test "$enable_shared" = yes && enable_static=no
12297    fi
12298    ;;
12299  esac
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12301$as_echo "$enable_shared" >&6; }
12302
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12304$as_echo_n "checking whether to build static libraries... " >&6; }
12305  # Make sure either enable_shared or enable_static is yes.
12306  test "$enable_shared" = yes || enable_static=yes
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12308$as_echo "$enable_static" >&6; }
12309
12310
12311
12312
12313fi
12314ac_ext=c
12315ac_cpp='$CPP $CPPFLAGS'
12316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12318ac_compiler_gnu=$ac_cv_c_compiler_gnu
12319
12320CC="$lt_save_CC"
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334        ac_config_commands="$ac_config_commands libtool"
12335
12336
12337
12338
12339# Only expand once:
12340
12341
12342ac_ext=cpp
12343ac_cpp='$CXXCPP $CPPFLAGS'
12344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12347if test -z "$CXX"; then
12348  if test -n "$CCC"; then
12349    CXX=$CCC
12350  else
12351    if test -n "$ac_tool_prefix"; then
12352  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12353  do
12354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if ${ac_cv_prog_CXX+:} false; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  if test -n "$CXX"; then
12362  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367  IFS=$as_save_IFS
12368  test -z "$as_dir" && as_dir=.
12369    for ac_exec_ext in '' $ac_executable_extensions; do
12370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373    break 2
12374  fi
12375done
12376  done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381CXX=$ac_cv_prog_CXX
12382if test -n "$CXX"; then
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12384$as_echo "$CXX" >&6; }
12385else
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390
12391    test -n "$CXX" && break
12392  done
12393fi
12394if test -z "$CXX"; then
12395  ac_ct_CXX=$CXX
12396  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12397do
12398  # Extract the first word of "$ac_prog", so it can be a program name with args.
12399set dummy $ac_prog; ac_word=$2
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
12402if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405  if test -n "$ac_ct_CXX"; then
12406  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12407else
12408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411  IFS=$as_save_IFS
12412  test -z "$as_dir" && as_dir=.
12413    for ac_exec_ext in '' $ac_executable_extensions; do
12414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415    ac_cv_prog_ac_ct_CXX="$ac_prog"
12416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417    break 2
12418  fi
12419done
12420  done
12421IFS=$as_save_IFS
12422
12423fi
12424fi
12425ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12426if test -n "$ac_ct_CXX"; then
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12428$as_echo "$ac_ct_CXX" >&6; }
12429else
12430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
12432fi
12433
12434
12435  test -n "$ac_ct_CXX" && break
12436done
12437
12438  if test "x$ac_ct_CXX" = x; then
12439    CXX="g++"
12440  else
12441    case $cross_compiling:$ac_tool_warned in
12442yes:)
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445ac_tool_warned=yes ;;
12446esac
12447    CXX=$ac_ct_CXX
12448  fi
12449fi
12450
12451  fi
12452fi
12453# Provide some information about the compiler.
12454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12455set X $ac_compile
12456ac_compiler=$2
12457for ac_option in --version -v -V -qversion; do
12458  { { ac_try="$ac_compiler $ac_option >&5"
12459case "(($ac_try" in
12460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461  *) ac_try_echo=$ac_try;;
12462esac
12463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12464$as_echo "$ac_try_echo"; } >&5
12465  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12466  ac_status=$?
12467  if test -s conftest.err; then
12468    sed '10a\
12469... rest of stderr output deleted ...
12470         10q' conftest.err >conftest.er1
12471    cat conftest.er1 >&5
12472  fi
12473  rm -f conftest.er1 conftest.err
12474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12475  test $ac_status = 0; }
12476done
12477
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12479$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12480if ${ac_cv_cxx_compiler_gnu+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h.  */
12485
12486int
12487main ()
12488{
12489#ifndef __GNUC__
12490       choke me
12491#endif
12492
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_cxx_try_compile "$LINENO"; then :
12498  ac_compiler_gnu=yes
12499else
12500  ac_compiler_gnu=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12504
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12507$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12508if test $ac_compiler_gnu = yes; then
12509  GXX=yes
12510else
12511  GXX=
12512fi
12513ac_test_CXXFLAGS=${CXXFLAGS+set}
12514ac_save_CXXFLAGS=$CXXFLAGS
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12516$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12517if ${ac_cv_prog_cxx_g+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12521   ac_cxx_werror_flag=yes
12522   ac_cv_prog_cxx_g=no
12523   CXXFLAGS="-g"
12524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526
12527int
12528main ()
12529{
12530
12531  ;
12532  return 0;
12533}
12534_ACEOF
12535if ac_fn_cxx_try_compile "$LINENO"; then :
12536  ac_cv_prog_cxx_g=yes
12537else
12538  CXXFLAGS=""
12539      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h.  */
12541
12542int
12543main ()
12544{
12545
12546  ;
12547  return 0;
12548}
12549_ACEOF
12550if ac_fn_cxx_try_compile "$LINENO"; then :
12551
12552else
12553  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12554	 CXXFLAGS="-g"
12555	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557
12558int
12559main ()
12560{
12561
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_cxx_try_compile "$LINENO"; then :
12567  ac_cv_prog_cxx_g=yes
12568fi
12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570fi
12571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572fi
12573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12575fi
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12577$as_echo "$ac_cv_prog_cxx_g" >&6; }
12578if test "$ac_test_CXXFLAGS" = set; then
12579  CXXFLAGS=$ac_save_CXXFLAGS
12580elif test $ac_cv_prog_cxx_g = yes; then
12581  if test "$GXX" = yes; then
12582    CXXFLAGS="-g -O2"
12583  else
12584    CXXFLAGS="-g"
12585  fi
12586else
12587  if test "$GXX" = yes; then
12588    CXXFLAGS="-O2"
12589  else
12590    CXXFLAGS=
12591  fi
12592fi
12593ac_ext=c
12594ac_cpp='$CPP $CPPFLAGS'
12595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598
12599depcc="$CXX"  am_compiler_list=
12600
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12602$as_echo_n "checking dependency style of $depcc... " >&6; }
12603if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12607  # We make a subdir and do the tests there.  Otherwise we can end up
12608  # making bogus files that we don't know about and never remove.  For
12609  # instance it was reported that on HP-UX the gcc test will end up
12610  # making a dummy file named `D' -- because `-MD' means `put the output
12611  # in D'.
12612  mkdir conftest.dir
12613  # Copy depcomp to subdir because otherwise we won't find it if we're
12614  # using a relative directory.
12615  cp "$am_depcomp" conftest.dir
12616  cd conftest.dir
12617  # We will build objects and dependencies in a subdirectory because
12618  # it helps to detect inapplicable dependency modes.  For instance
12619  # both Tru64's cc and ICC support -MD to output dependencies as a
12620  # side effect of compilation, but ICC will put the dependencies in
12621  # the current directory while Tru64 will put them in the object
12622  # directory.
12623  mkdir sub
12624
12625  am_cv_CXX_dependencies_compiler_type=none
12626  if test "$am_compiler_list" = ""; then
12627     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12628  fi
12629  am__universal=false
12630  case " $depcc " in #(
12631     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12632     esac
12633
12634  for depmode in $am_compiler_list; do
12635    # Setup a source with many dependencies, because some compilers
12636    # like to wrap large dependency lists on column 80 (with \), and
12637    # we should not choose a depcomp mode which is confused by this.
12638    #
12639    # We need to recreate these files for each test, as the compiler may
12640    # overwrite some of them when testing with obscure command lines.
12641    # This happens at least with the AIX C compiler.
12642    : > sub/conftest.c
12643    for i in 1 2 3 4 5 6; do
12644      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12645      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12646      # Solaris 8's {/usr,}/bin/sh.
12647      touch sub/conftst$i.h
12648    done
12649    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12650
12651    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12652    # mode.  It turns out that the SunPro C++ compiler does not properly
12653    # handle `-M -o', and we need to detect this.  Also, some Intel
12654    # versions had trouble with output in subdirs
12655    am__obj=sub/conftest.${OBJEXT-o}
12656    am__minus_obj="-o $am__obj"
12657    case $depmode in
12658    gcc)
12659      # This depmode causes a compiler race in universal mode.
12660      test "$am__universal" = false || continue
12661      ;;
12662    nosideeffect)
12663      # after this tag, mechanisms are not by side-effect, so they'll
12664      # only be used when explicitly requested
12665      if test "x$enable_dependency_tracking" = xyes; then
12666	continue
12667      else
12668	break
12669      fi
12670      ;;
12671    msvisualcpp | msvcmsys)
12672      # This compiler won't grok `-c -o', but also, the minuso test has
12673      # not run yet.  These depmodes are late enough in the game, and
12674      # so weak that their functioning should not be impacted.
12675      am__obj=conftest.${OBJEXT-o}
12676      am__minus_obj=
12677      ;;
12678    none) break ;;
12679    esac
12680    if depmode=$depmode \
12681       source=sub/conftest.c object=$am__obj \
12682       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12683       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12684         >/dev/null 2>conftest.err &&
12685       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12686       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12687       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12688       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12689      # icc doesn't choke on unknown options, it will just issue warnings
12690      # or remarks (even with -Werror).  So we grep stderr for any message
12691      # that says an option was ignored or not supported.
12692      # When given -MP, icc 7.0 and 7.1 complain thusly:
12693      #   icc: Command line warning: ignoring option '-M'; no argument required
12694      # The diagnosis changed in icc 8.0:
12695      #   icc: Command line remark: option '-MP' not supported
12696      if (grep 'ignoring option' conftest.err ||
12697          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12698        am_cv_CXX_dependencies_compiler_type=$depmode
12699        break
12700      fi
12701    fi
12702  done
12703
12704  cd ..
12705  rm -rf conftest.dir
12706else
12707  am_cv_CXX_dependencies_compiler_type=none
12708fi
12709
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12712$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12713CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12714
12715 if
12716  test "x$enable_dependency_tracking" != xno \
12717  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12718  am__fastdepCXX_TRUE=
12719  am__fastdepCXX_FALSE='#'
12720else
12721  am__fastdepCXX_TRUE='#'
12722  am__fastdepCXX_FALSE=
12723fi
12724
12725
12726
12727
12728
12729func_stripname_cnf ()
12730{
12731  case ${2} in
12732  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12733  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12734  esac
12735} # func_stripname_cnf
12736
12737      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12738    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12739    (test "X$CXX" != "Xg++"))) ; then
12740  ac_ext=cpp
12741ac_cpp='$CXXCPP $CPPFLAGS'
12742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12746$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12747if test -z "$CXXCPP"; then
12748  if ${ac_cv_prog_CXXCPP+:} false; then :
12749  $as_echo_n "(cached) " >&6
12750else
12751      # Double quotes because CXXCPP needs to be expanded
12752    for CXXCPP in "$CXX -E" "/lib/cpp"
12753    do
12754      ac_preproc_ok=false
12755for ac_cxx_preproc_warn_flag in '' yes
12756do
12757  # Use a header file that comes with gcc, so configuring glibc
12758  # with a fresh cross-compiler works.
12759  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12760  # <limits.h> exists even on freestanding compilers.
12761  # On the NeXT, cc -E runs the code through the compiler's parser,
12762  # not just through cpp. "Syntax error" is here to catch this case.
12763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764/* end confdefs.h.  */
12765#ifdef __STDC__
12766# include <limits.h>
12767#else
12768# include <assert.h>
12769#endif
12770		     Syntax error
12771_ACEOF
12772if ac_fn_cxx_try_cpp "$LINENO"; then :
12773
12774else
12775  # Broken: fails on valid input.
12776continue
12777fi
12778rm -f conftest.err conftest.i conftest.$ac_ext
12779
12780  # OK, works on sane cases.  Now check whether nonexistent headers
12781  # can be detected and how.
12782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783/* end confdefs.h.  */
12784#include <ac_nonexistent.h>
12785_ACEOF
12786if ac_fn_cxx_try_cpp "$LINENO"; then :
12787  # Broken: success on invalid input.
12788continue
12789else
12790  # Passes both tests.
12791ac_preproc_ok=:
12792break
12793fi
12794rm -f conftest.err conftest.i conftest.$ac_ext
12795
12796done
12797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12798rm -f conftest.i conftest.err conftest.$ac_ext
12799if $ac_preproc_ok; then :
12800  break
12801fi
12802
12803    done
12804    ac_cv_prog_CXXCPP=$CXXCPP
12805
12806fi
12807  CXXCPP=$ac_cv_prog_CXXCPP
12808else
12809  ac_cv_prog_CXXCPP=$CXXCPP
12810fi
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12812$as_echo "$CXXCPP" >&6; }
12813ac_preproc_ok=false
12814for ac_cxx_preproc_warn_flag in '' yes
12815do
12816  # Use a header file that comes with gcc, so configuring glibc
12817  # with a fresh cross-compiler works.
12818  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12819  # <limits.h> exists even on freestanding compilers.
12820  # On the NeXT, cc -E runs the code through the compiler's parser,
12821  # not just through cpp. "Syntax error" is here to catch this case.
12822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824#ifdef __STDC__
12825# include <limits.h>
12826#else
12827# include <assert.h>
12828#endif
12829		     Syntax error
12830_ACEOF
12831if ac_fn_cxx_try_cpp "$LINENO"; then :
12832
12833else
12834  # Broken: fails on valid input.
12835continue
12836fi
12837rm -f conftest.err conftest.i conftest.$ac_ext
12838
12839  # OK, works on sane cases.  Now check whether nonexistent headers
12840  # can be detected and how.
12841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843#include <ac_nonexistent.h>
12844_ACEOF
12845if ac_fn_cxx_try_cpp "$LINENO"; then :
12846  # Broken: success on invalid input.
12847continue
12848else
12849  # Passes both tests.
12850ac_preproc_ok=:
12851break
12852fi
12853rm -f conftest.err conftest.i conftest.$ac_ext
12854
12855done
12856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12857rm -f conftest.i conftest.err conftest.$ac_ext
12858if $ac_preproc_ok; then :
12859
12860else
12861  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12863as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12864See \`config.log' for more details" "$LINENO" 5; }
12865fi
12866
12867ac_ext=c
12868ac_cpp='$CPP $CPPFLAGS'
12869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872
12873else
12874  _lt_caught_CXX_error=yes
12875fi
12876
12877ac_ext=cpp
12878ac_cpp='$CXXCPP $CPPFLAGS'
12879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12882
12883archive_cmds_need_lc_CXX=no
12884allow_undefined_flag_CXX=
12885always_export_symbols_CXX=no
12886archive_expsym_cmds_CXX=
12887compiler_needs_object_CXX=no
12888export_dynamic_flag_spec_CXX=
12889hardcode_direct_CXX=no
12890hardcode_direct_absolute_CXX=no
12891hardcode_libdir_flag_spec_CXX=
12892hardcode_libdir_flag_spec_ld_CXX=
12893hardcode_libdir_separator_CXX=
12894hardcode_minus_L_CXX=no
12895hardcode_shlibpath_var_CXX=unsupported
12896hardcode_automatic_CXX=no
12897inherit_rpath_CXX=no
12898module_cmds_CXX=
12899module_expsym_cmds_CXX=
12900link_all_deplibs_CXX=unknown
12901old_archive_cmds_CXX=$old_archive_cmds
12902reload_flag_CXX=$reload_flag
12903reload_cmds_CXX=$reload_cmds
12904no_undefined_flag_CXX=
12905whole_archive_flag_spec_CXX=
12906enable_shared_with_static_runtimes_CXX=no
12907
12908# Source file extension for C++ test sources.
12909ac_ext=cpp
12910
12911# Object file extension for compiled C++ test sources.
12912objext=o
12913objext_CXX=$objext
12914
12915# No sense in running all these tests if we already determined that
12916# the CXX compiler isn't working.  Some variables (like enable_shared)
12917# are currently assumed to apply to all compilers on this platform,
12918# and will be corrupted by setting them based on a non-working compiler.
12919if test "$_lt_caught_CXX_error" != yes; then
12920  # Code to be used in simple compile tests
12921  lt_simple_compile_test_code="int some_variable = 0;"
12922
12923  # Code to be used in simple link tests
12924  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12925
12926  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12927
12928
12929
12930
12931
12932
12933# If no C compiler was specified, use CC.
12934LTCC=${LTCC-"$CC"}
12935
12936# If no C compiler flags were specified, use CFLAGS.
12937LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12938
12939# Allow CC to be a program name with arguments.
12940compiler=$CC
12941
12942
12943  # save warnings/boilerplate of simple test code
12944  ac_outfile=conftest.$ac_objext
12945echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12946eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12947_lt_compiler_boilerplate=`cat conftest.err`
12948$RM conftest*
12949
12950  ac_outfile=conftest.$ac_objext
12951echo "$lt_simple_link_test_code" >conftest.$ac_ext
12952eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12953_lt_linker_boilerplate=`cat conftest.err`
12954$RM -r conftest*
12955
12956
12957  # Allow CC to be a program name with arguments.
12958  lt_save_CC=$CC
12959  lt_save_CFLAGS=$CFLAGS
12960  lt_save_LD=$LD
12961  lt_save_GCC=$GCC
12962  GCC=$GXX
12963  lt_save_with_gnu_ld=$with_gnu_ld
12964  lt_save_path_LD=$lt_cv_path_LD
12965  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12966    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12967  else
12968    $as_unset lt_cv_prog_gnu_ld
12969  fi
12970  if test -n "${lt_cv_path_LDCXX+set}"; then
12971    lt_cv_path_LD=$lt_cv_path_LDCXX
12972  else
12973    $as_unset lt_cv_path_LD
12974  fi
12975  test -z "${LDCXX+set}" || LD=$LDCXX
12976  CC=${CXX-"c++"}
12977  CFLAGS=$CXXFLAGS
12978  compiler=$CC
12979  compiler_CXX=$CC
12980  for cc_temp in $compiler""; do
12981  case $cc_temp in
12982    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12983    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12984    \-*) ;;
12985    *) break;;
12986  esac
12987done
12988cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12989
12990
12991  if test -n "$compiler"; then
12992    # We don't want -fno-exception when compiling C++ code, so set the
12993    # no_builtin_flag separately
12994    if test "$GXX" = yes; then
12995      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12996    else
12997      lt_prog_compiler_no_builtin_flag_CXX=
12998    fi
12999
13000    if test "$GXX" = yes; then
13001      # Set up default GNU C++ configuration
13002
13003
13004
13005# Check whether --with-gnu-ld was given.
13006if test "${with_gnu_ld+set}" = set; then :
13007  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13008else
13009  with_gnu_ld=no
13010fi
13011
13012ac_prog=ld
13013if test "$GCC" = yes; then
13014  # Check if gcc -print-prog-name=ld gives a path.
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13016$as_echo_n "checking for ld used by $CC... " >&6; }
13017  case $host in
13018  *-*-mingw*)
13019    # gcc leaves a trailing carriage return which upsets mingw
13020    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13021  *)
13022    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13023  esac
13024  case $ac_prog in
13025    # Accept absolute paths.
13026    [\\/]* | ?:[\\/]*)
13027      re_direlt='/[^/][^/]*/\.\./'
13028      # Canonicalize the pathname of ld
13029      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13030      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13031	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13032      done
13033      test -z "$LD" && LD="$ac_prog"
13034      ;;
13035  "")
13036    # If it fails, then pretend we aren't using GCC.
13037    ac_prog=ld
13038    ;;
13039  *)
13040    # If it is relative, then search for the first ld in PATH.
13041    with_gnu_ld=unknown
13042    ;;
13043  esac
13044elif test "$with_gnu_ld" = yes; then
13045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13046$as_echo_n "checking for GNU ld... " >&6; }
13047else
13048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13049$as_echo_n "checking for non-GNU ld... " >&6; }
13050fi
13051if ${lt_cv_path_LD+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  if test -z "$LD"; then
13055  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13056  for ac_dir in $PATH; do
13057    IFS="$lt_save_ifs"
13058    test -z "$ac_dir" && ac_dir=.
13059    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13060      lt_cv_path_LD="$ac_dir/$ac_prog"
13061      # Check to see if the program is GNU ld.  I'd rather use --version,
13062      # but apparently some variants of GNU ld only accept -v.
13063      # Break only if it was the GNU/non-GNU ld that we prefer.
13064      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13065      *GNU* | *'with BFD'*)
13066	test "$with_gnu_ld" != no && break
13067	;;
13068      *)
13069	test "$with_gnu_ld" != yes && break
13070	;;
13071      esac
13072    fi
13073  done
13074  IFS="$lt_save_ifs"
13075else
13076  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13077fi
13078fi
13079
13080LD="$lt_cv_path_LD"
13081if test -n "$LD"; then
13082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13083$as_echo "$LD" >&6; }
13084else
13085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086$as_echo "no" >&6; }
13087fi
13088test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13090$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13091if ${lt_cv_prog_gnu_ld+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13095case `$LD -v 2>&1 </dev/null` in
13096*GNU* | *'with BFD'*)
13097  lt_cv_prog_gnu_ld=yes
13098  ;;
13099*)
13100  lt_cv_prog_gnu_ld=no
13101  ;;
13102esac
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13105$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13106with_gnu_ld=$lt_cv_prog_gnu_ld
13107
13108
13109
13110
13111
13112
13113
13114      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13115      # archiving commands below assume that GNU ld is being used.
13116      if test "$with_gnu_ld" = yes; then
13117        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118        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'
13119
13120        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13121        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13122
13123        # If archive_cmds runs LD, not CC, wlarc should be empty
13124        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13125        #     investigate it a little bit more. (MM)
13126        wlarc='${wl}'
13127
13128        # ancient GNU ld didn't support --whole-archive et. al.
13129        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13130	  $GREP 'no-whole-archive' > /dev/null; then
13131          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132        else
13133          whole_archive_flag_spec_CXX=
13134        fi
13135      else
13136        with_gnu_ld=no
13137        wlarc=
13138
13139        # A generic and very simple default shared library creation
13140        # command for GNU C++ for the case where it uses the native
13141        # linker, instead of GNU ld.  If possible, this setting should
13142        # overridden to take advantage of the native linker features on
13143        # the platform it is being used on.
13144        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13145      fi
13146
13147      # Commands to make compiler produce verbose output that lists
13148      # what "hidden" libraries, object files and flags are used when
13149      # linking a shared library.
13150      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13151
13152    else
13153      GXX=no
13154      with_gnu_ld=no
13155      wlarc=
13156    fi
13157
13158    # PORTME: fill in a description of your system's C++ link characteristics
13159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13160$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13161    ld_shlibs_CXX=yes
13162    case $host_os in
13163      aix3*)
13164        # FIXME: insert proper C++ library support
13165        ld_shlibs_CXX=no
13166        ;;
13167      aix[4-9]*)
13168        if test "$host_cpu" = ia64; then
13169          # On IA64, the linker does run time linking by default, so we don't
13170          # have to do anything special.
13171          aix_use_runtimelinking=no
13172          exp_sym_flag='-Bexport'
13173          no_entry_flag=""
13174        else
13175          aix_use_runtimelinking=no
13176
13177          # Test if we are trying to use run time linking or normal
13178          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13179          # need to do runtime linking.
13180          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13181	    for ld_flag in $LDFLAGS; do
13182	      case $ld_flag in
13183	      *-brtl*)
13184	        aix_use_runtimelinking=yes
13185	        break
13186	        ;;
13187	      esac
13188	    done
13189	    ;;
13190          esac
13191
13192          exp_sym_flag='-bexport'
13193          no_entry_flag='-bnoentry'
13194        fi
13195
13196        # When large executables or shared objects are built, AIX ld can
13197        # have problems creating the table of contents.  If linking a library
13198        # or program results in "error TOC overflow" add -mminimal-toc to
13199        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13200        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13201
13202        archive_cmds_CXX=''
13203        hardcode_direct_CXX=yes
13204        hardcode_direct_absolute_CXX=yes
13205        hardcode_libdir_separator_CXX=':'
13206        link_all_deplibs_CXX=yes
13207        file_list_spec_CXX='${wl}-f,'
13208
13209        if test "$GXX" = yes; then
13210          case $host_os in aix4.[012]|aix4.[012].*)
13211          # We only want to do this on AIX 4.2 and lower, the check
13212          # below for broken collect2 doesn't work under 4.3+
13213	  collect2name=`${CC} -print-prog-name=collect2`
13214	  if test -f "$collect2name" &&
13215	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13216	  then
13217	    # We have reworked collect2
13218	    :
13219	  else
13220	    # We have old collect2
13221	    hardcode_direct_CXX=unsupported
13222	    # It fails to find uninstalled libraries when the uninstalled
13223	    # path is not listed in the libpath.  Setting hardcode_minus_L
13224	    # to unsupported forces relinking
13225	    hardcode_minus_L_CXX=yes
13226	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13227	    hardcode_libdir_separator_CXX=
13228	  fi
13229          esac
13230          shared_flag='-shared'
13231	  if test "$aix_use_runtimelinking" = yes; then
13232	    shared_flag="$shared_flag "'${wl}-G'
13233	  fi
13234        else
13235          # not using gcc
13236          if test "$host_cpu" = ia64; then
13237	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13238	  # chokes on -Wl,-G. The following line is correct:
13239	  shared_flag='-G'
13240          else
13241	    if test "$aix_use_runtimelinking" = yes; then
13242	      shared_flag='${wl}-G'
13243	    else
13244	      shared_flag='${wl}-bM:SRE'
13245	    fi
13246          fi
13247        fi
13248
13249        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13250        # It seems that -bexpall does not export symbols beginning with
13251        # underscore (_), so it is better to generate a list of symbols to
13252	# export.
13253        always_export_symbols_CXX=yes
13254        if test "$aix_use_runtimelinking" = yes; then
13255          # Warning - without using the other runtime loading flags (-brtl),
13256          # -berok will link without error, but may produce a broken library.
13257          allow_undefined_flag_CXX='-berok'
13258          # Determine the default libpath from the value encoded in an empty
13259          # executable.
13260          if test "${lt_cv_aix_libpath+set}" = set; then
13261  aix_libpath=$lt_cv_aix_libpath
13262else
13263  if ${lt_cv_aix_libpath__CXX+:} false; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267/* end confdefs.h.  */
13268
13269int
13270main ()
13271{
13272
13273  ;
13274  return 0;
13275}
13276_ACEOF
13277if ac_fn_cxx_try_link "$LINENO"; then :
13278
13279  lt_aix_libpath_sed='
13280      /Import File Strings/,/^$/ {
13281	  /^0/ {
13282	      s/^0  *\([^ ]*\) *$/\1/
13283	      p
13284	  }
13285      }'
13286  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13287  # Check for a 64-bit object if we didn't find anything.
13288  if test -z "$lt_cv_aix_libpath__CXX"; then
13289    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13290  fi
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
13293    conftest$ac_exeext conftest.$ac_ext
13294  if test -z "$lt_cv_aix_libpath__CXX"; then
13295    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13296  fi
13297
13298fi
13299
13300  aix_libpath=$lt_cv_aix_libpath__CXX
13301fi
13302
13303          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13304
13305          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13306        else
13307          if test "$host_cpu" = ia64; then
13308	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13309	    allow_undefined_flag_CXX="-z nodefs"
13310	    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"
13311          else
13312	    # Determine the default libpath from the value encoded in an
13313	    # empty executable.
13314	    if test "${lt_cv_aix_libpath+set}" = set; then
13315  aix_libpath=$lt_cv_aix_libpath
13316else
13317  if ${lt_cv_aix_libpath__CXX+:} false; then :
13318  $as_echo_n "(cached) " >&6
13319else
13320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321/* end confdefs.h.  */
13322
13323int
13324main ()
13325{
13326
13327  ;
13328  return 0;
13329}
13330_ACEOF
13331if ac_fn_cxx_try_link "$LINENO"; then :
13332
13333  lt_aix_libpath_sed='
13334      /Import File Strings/,/^$/ {
13335	  /^0/ {
13336	      s/^0  *\([^ ]*\) *$/\1/
13337	      p
13338	  }
13339      }'
13340  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13341  # Check for a 64-bit object if we didn't find anything.
13342  if test -z "$lt_cv_aix_libpath__CXX"; then
13343    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13344  fi
13345fi
13346rm -f core conftest.err conftest.$ac_objext \
13347    conftest$ac_exeext conftest.$ac_ext
13348  if test -z "$lt_cv_aix_libpath__CXX"; then
13349    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13350  fi
13351
13352fi
13353
13354  aix_libpath=$lt_cv_aix_libpath__CXX
13355fi
13356
13357	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13358	    # Warning - without using the other run time loading flags,
13359	    # -berok will link without error, but may produce a broken library.
13360	    no_undefined_flag_CXX=' ${wl}-bernotok'
13361	    allow_undefined_flag_CXX=' ${wl}-berok'
13362	    if test "$with_gnu_ld" = yes; then
13363	      # We only use this code for GNU lds that support --whole-archive.
13364	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13365	    else
13366	      # Exported symbols can be pulled into shared objects from archives
13367	      whole_archive_flag_spec_CXX='$convenience'
13368	    fi
13369	    archive_cmds_need_lc_CXX=yes
13370	    # This is similar to how AIX traditionally builds its shared
13371	    # libraries.
13372	    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'
13373          fi
13374        fi
13375        ;;
13376
13377      beos*)
13378	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13379	  allow_undefined_flag_CXX=unsupported
13380	  # Joseph Beckenbach <[email protected]> says some releases of gcc
13381	  # support --undefined.  This deserves some investigation.  FIXME
13382	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383	else
13384	  ld_shlibs_CXX=no
13385	fi
13386	;;
13387
13388      chorus*)
13389        case $cc_basename in
13390          *)
13391	  # FIXME: insert proper C++ library support
13392	  ld_shlibs_CXX=no
13393	  ;;
13394        esac
13395        ;;
13396
13397      cygwin* | mingw* | pw32* | cegcc*)
13398	case $GXX,$cc_basename in
13399	,cl* | no,cl*)
13400	  # Native MSVC
13401	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13402	  # no search path for DLLs.
13403	  hardcode_libdir_flag_spec_CXX=' '
13404	  allow_undefined_flag_CXX=unsupported
13405	  always_export_symbols_CXX=yes
13406	  file_list_spec_CXX='@'
13407	  # Tell ltmain to make .lib files, not .a files.
13408	  libext=lib
13409	  # Tell ltmain to make .dll files, not .so files.
13410	  shrext_cmds=".dll"
13411	  # FIXME: Setting linknames here is a bad hack.
13412	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13413	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13414	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13415	    else
13416	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13417	    fi~
13418	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13419	    linknames='
13420	  # The linker will not automatically build a static lib if we build a DLL.
13421	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13422	  enable_shared_with_static_runtimes_CXX=yes
13423	  # Don't use ranlib
13424	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13425	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13426	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13427	    case $lt_outputfile in
13428	      *.exe|*.EXE) ;;
13429	      *)
13430		lt_outputfile="$lt_outputfile.exe"
13431		lt_tool_outputfile="$lt_tool_outputfile.exe"
13432		;;
13433	    esac~
13434	    func_to_tool_file "$lt_outputfile"~
13435	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13436	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13437	      $RM "$lt_outputfile.manifest";
13438	    fi'
13439	  ;;
13440	*)
13441	  # g++
13442	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13443	  # as there is no search path for DLLs.
13444	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13445	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13446	  allow_undefined_flag_CXX=unsupported
13447	  always_export_symbols_CXX=no
13448	  enable_shared_with_static_runtimes_CXX=yes
13449
13450	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13451	    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'
13452	    # If the export-symbols file already is a .def file (1st line
13453	    # is EXPORTS), use it as is; otherwise, prepend...
13454	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13455	      cp $export_symbols $output_objdir/$soname.def;
13456	    else
13457	      echo EXPORTS > $output_objdir/$soname.def;
13458	      cat $export_symbols >> $output_objdir/$soname.def;
13459	    fi~
13460	    $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'
13461	  else
13462	    ld_shlibs_CXX=no
13463	  fi
13464	  ;;
13465	esac
13466	;;
13467      darwin* | rhapsody*)
13468
13469
13470  archive_cmds_need_lc_CXX=no
13471  hardcode_direct_CXX=no
13472  hardcode_automatic_CXX=yes
13473  hardcode_shlibpath_var_CXX=unsupported
13474  if test "$lt_cv_ld_force_load" = "yes"; then
13475    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\"`'
13476  else
13477    whole_archive_flag_spec_CXX=''
13478  fi
13479  link_all_deplibs_CXX=yes
13480  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13481  case $cc_basename in
13482     ifort*) _lt_dar_can_shared=yes ;;
13483     *) _lt_dar_can_shared=$GCC ;;
13484  esac
13485  if test "$_lt_dar_can_shared" = "yes"; then
13486    output_verbose_link_cmd=func_echo_all
13487    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}"
13488    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13489    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}"
13490    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}"
13491       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13492      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}"
13493      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}"
13494    fi
13495
13496  else
13497  ld_shlibs_CXX=no
13498  fi
13499
13500	;;
13501
13502      dgux*)
13503        case $cc_basename in
13504          ec++*)
13505	    # FIXME: insert proper C++ library support
13506	    ld_shlibs_CXX=no
13507	    ;;
13508          ghcx*)
13509	    # Green Hills C++ Compiler
13510	    # FIXME: insert proper C++ library support
13511	    ld_shlibs_CXX=no
13512	    ;;
13513          *)
13514	    # FIXME: insert proper C++ library support
13515	    ld_shlibs_CXX=no
13516	    ;;
13517        esac
13518        ;;
13519
13520      freebsd[12]*)
13521        # C++ shared libraries reported to be fairly broken before
13522	# switch to ELF
13523        ld_shlibs_CXX=no
13524        ;;
13525
13526      freebsd-elf*)
13527        archive_cmds_need_lc_CXX=no
13528        ;;
13529
13530      freebsd* | dragonfly*)
13531        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13532        # conventions
13533        ld_shlibs_CXX=yes
13534        ;;
13535
13536      gnu*)
13537        ;;
13538
13539      haiku*)
13540        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13541        link_all_deplibs_CXX=yes
13542        ;;
13543
13544      hpux9*)
13545        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13546        hardcode_libdir_separator_CXX=:
13547        export_dynamic_flag_spec_CXX='${wl}-E'
13548        hardcode_direct_CXX=yes
13549        hardcode_minus_L_CXX=yes # Not in the search PATH,
13550				             # but as the default
13551				             # location of the library.
13552
13553        case $cc_basename in
13554          CC*)
13555            # FIXME: insert proper C++ library support
13556            ld_shlibs_CXX=no
13557            ;;
13558          aCC*)
13559            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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13560            # Commands to make compiler produce verbose output that lists
13561            # what "hidden" libraries, object files and flags are used when
13562            # linking a shared library.
13563            #
13564            # There doesn't appear to be a way to prevent this compiler from
13565            # explicitly linking system object files so we need to strip them
13566            # from the output so that they don't get included in the library
13567            # dependencies.
13568            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"'
13569            ;;
13570          *)
13571            if test "$GXX" = yes; then
13572              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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13573            else
13574              # FIXME: insert proper C++ library support
13575              ld_shlibs_CXX=no
13576            fi
13577            ;;
13578        esac
13579        ;;
13580
13581      hpux10*|hpux11*)
13582        if test $with_gnu_ld = no; then
13583	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13584	  hardcode_libdir_separator_CXX=:
13585
13586          case $host_cpu in
13587            hppa*64*|ia64*)
13588              ;;
13589            *)
13590	      export_dynamic_flag_spec_CXX='${wl}-E'
13591              ;;
13592          esac
13593        fi
13594        case $host_cpu in
13595          hppa*64*|ia64*)
13596            hardcode_direct_CXX=no
13597            hardcode_shlibpath_var_CXX=no
13598            ;;
13599          *)
13600            hardcode_direct_CXX=yes
13601            hardcode_direct_absolute_CXX=yes
13602            hardcode_minus_L_CXX=yes # Not in the search PATH,
13603					         # but as the default
13604					         # location of the library.
13605            ;;
13606        esac
13607
13608        case $cc_basename in
13609          CC*)
13610	    # FIXME: insert proper C++ library support
13611	    ld_shlibs_CXX=no
13612	    ;;
13613          aCC*)
13614	    case $host_cpu in
13615	      hppa*64*)
13616	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13617	        ;;
13618	      ia64*)
13619	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13620	        ;;
13621	      *)
13622	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623	        ;;
13624	    esac
13625	    # Commands to make compiler produce verbose output that lists
13626	    # what "hidden" libraries, object files and flags are used when
13627	    # linking a shared library.
13628	    #
13629	    # There doesn't appear to be a way to prevent this compiler from
13630	    # explicitly linking system object files so we need to strip them
13631	    # from the output so that they don't get included in the library
13632	    # dependencies.
13633	    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"'
13634	    ;;
13635          *)
13636	    if test "$GXX" = yes; then
13637	      if test $with_gnu_ld = no; then
13638	        case $host_cpu in
13639	          hppa*64*)
13640	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641	            ;;
13642	          ia64*)
13643	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644	            ;;
13645	          *)
13646	            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'
13647	            ;;
13648	        esac
13649	      fi
13650	    else
13651	      # FIXME: insert proper C++ library support
13652	      ld_shlibs_CXX=no
13653	    fi
13654	    ;;
13655        esac
13656        ;;
13657
13658      interix[3-9]*)
13659	hardcode_direct_CXX=no
13660	hardcode_shlibpath_var_CXX=no
13661	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13662	export_dynamic_flag_spec_CXX='${wl}-E'
13663	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13664	# Instead, shared libraries are loaded at an image base (0x10000000 by
13665	# default) and relocated if they conflict, which is a slow very memory
13666	# consuming and fragmenting process.  To avoid this, we pick a random,
13667	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13668	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13669	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'
13670	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'
13671	;;
13672      irix5* | irix6*)
13673        case $cc_basename in
13674          CC*)
13675	    # SGI C++
13676	    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'
13677
13678	    # Archives containing C++ object files must be created using
13679	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13680	    # necessary to make sure instantiated templates are included
13681	    # in the archive.
13682	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13683	    ;;
13684          *)
13685	    if test "$GXX" = yes; then
13686	      if test "$with_gnu_ld" = no; then
13687	        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'
13688	      else
13689	        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'
13690	      fi
13691	    fi
13692	    link_all_deplibs_CXX=yes
13693	    ;;
13694        esac
13695        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13696        hardcode_libdir_separator_CXX=:
13697        inherit_rpath_CXX=yes
13698        ;;
13699
13700      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13701        case $cc_basename in
13702          KCC*)
13703	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13704
13705	    # KCC will only create a shared library if the output file
13706	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13707	    # to its proper name (with version) after linking.
13708	    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'
13709	    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'
13710	    # Commands to make compiler produce verbose output that lists
13711	    # what "hidden" libraries, object files and flags are used when
13712	    # linking a shared library.
13713	    #
13714	    # There doesn't appear to be a way to prevent this compiler from
13715	    # explicitly linking system object files so we need to strip them
13716	    # from the output so that they don't get included in the library
13717	    # dependencies.
13718	    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"'
13719
13720	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13721	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13722
13723	    # Archives containing C++ object files must be created using
13724	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13725	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13726	    ;;
13727	  icpc* | ecpc* )
13728	    # Intel C++
13729	    with_gnu_ld=yes
13730	    # version 8.0 and above of icpc choke on multiply defined symbols
13731	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13732	    # earlier do not add the objects themselves.
13733	    case `$CC -V 2>&1` in
13734	      *"Version 7."*)
13735	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736		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'
13737		;;
13738	      *)  # Version 8.0 or newer
13739	        tmp_idyn=
13740	        case $host_cpu in
13741		  ia64*) tmp_idyn=' -i_dynamic';;
13742		esac
13743	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744		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'
13745		;;
13746	    esac
13747	    archive_cmds_need_lc_CXX=no
13748	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13750	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13751	    ;;
13752          pgCC* | pgcpp*)
13753            # Portland Group C++ compiler
13754	    case `$CC -V` in
13755	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13756	      prelink_cmds_CXX='tpldir=Template.dir~
13757		rm -rf $tpldir~
13758		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13759		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13760	      old_archive_cmds_CXX='tpldir=Template.dir~
13761		rm -rf $tpldir~
13762		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13763		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13764		$RANLIB $oldlib'
13765	      archive_cmds_CXX='tpldir=Template.dir~
13766		rm -rf $tpldir~
13767		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13768		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13769	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13770		rm -rf $tpldir~
13771		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13772		$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'
13773	      ;;
13774	    *) # Version 6 and above use weak symbols
13775	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13776	      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'
13777	      ;;
13778	    esac
13779
13780	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13781	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13782	    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'
13783            ;;
13784	  cxx*)
13785	    # Compaq C++
13786	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13787	    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'
13788
13789	    runpath_var=LD_RUN_PATH
13790	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13791	    hardcode_libdir_separator_CXX=:
13792
13793	    # Commands to make compiler produce verbose output that lists
13794	    # what "hidden" libraries, object files and flags are used when
13795	    # linking a shared library.
13796	    #
13797	    # There doesn't appear to be a way to prevent this compiler from
13798	    # explicitly linking system object files so we need to strip them
13799	    # from the output so that they don't get included in the library
13800	    # dependencies.
13801	    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'
13802	    ;;
13803	  xl* | mpixl* | bgxl*)
13804	    # IBM XL 8.0 on PPC, with GNU ld
13805	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13806	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808	    if test "x$supports_anon_versioning" = xyes; then
13809	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13810		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13811		echo "local: *; };" >> $output_objdir/$libname.ver~
13812		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13813	    fi
13814	    ;;
13815	  *)
13816	    case `$CC -V 2>&1 | sed 5q` in
13817	    *Sun\ C*)
13818	      # Sun C++ 5.9
13819	      no_undefined_flag_CXX=' -zdefs'
13820	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13821	      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'
13822	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13823	      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'
13824	      compiler_needs_object_CXX=yes
13825
13826	      # Not sure whether something based on
13827	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13828	      # would be better.
13829	      output_verbose_link_cmd='func_echo_all'
13830
13831	      # Archives containing C++ object files must be created using
13832	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13833	      # necessary to make sure instantiated templates are included
13834	      # in the archive.
13835	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13836	      ;;
13837	    esac
13838	    ;;
13839	esac
13840	;;
13841
13842      lynxos*)
13843        # FIXME: insert proper C++ library support
13844	ld_shlibs_CXX=no
13845	;;
13846
13847      m88k*)
13848        # FIXME: insert proper C++ library support
13849        ld_shlibs_CXX=no
13850	;;
13851
13852      mvs*)
13853        case $cc_basename in
13854          cxx*)
13855	    # FIXME: insert proper C++ library support
13856	    ld_shlibs_CXX=no
13857	    ;;
13858	  *)
13859	    # FIXME: insert proper C++ library support
13860	    ld_shlibs_CXX=no
13861	    ;;
13862	esac
13863	;;
13864
13865      netbsd*)
13866        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13867	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13868	  wlarc=
13869	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13870	  hardcode_direct_CXX=yes
13871	  hardcode_shlibpath_var_CXX=no
13872	fi
13873	# Workaround some broken pre-1.5 toolchains
13874	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13875	;;
13876
13877      *nto* | *qnx*)
13878        ld_shlibs_CXX=yes
13879	;;
13880
13881      openbsd2*)
13882        # C++ shared libraries are fairly broken
13883	ld_shlibs_CXX=no
13884	;;
13885
13886      openbsd*)
13887	if test -f /usr/libexec/ld.so; then
13888	  hardcode_direct_CXX=yes
13889	  hardcode_shlibpath_var_CXX=no
13890	  hardcode_direct_absolute_CXX=yes
13891	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13892	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13893	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13894	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13895	    export_dynamic_flag_spec_CXX='${wl}-E'
13896	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13897	  fi
13898	  output_verbose_link_cmd=func_echo_all
13899	else
13900	  ld_shlibs_CXX=no
13901	fi
13902	;;
13903
13904      osf3* | osf4* | osf5*)
13905        case $cc_basename in
13906          KCC*)
13907	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13908
13909	    # KCC will only create a shared library if the output file
13910	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13911	    # to its proper name (with version) after linking.
13912	    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'
13913
13914	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13915	    hardcode_libdir_separator_CXX=:
13916
13917	    # Archives containing C++ object files must be created using
13918	    # the KAI C++ compiler.
13919	    case $host in
13920	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13921	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13922	    esac
13923	    ;;
13924          RCC*)
13925	    # Rational C++ 2.4.1
13926	    # FIXME: insert proper C++ library support
13927	    ld_shlibs_CXX=no
13928	    ;;
13929          cxx*)
13930	    case $host in
13931	      osf3*)
13932	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13933	        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'
13934	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13935		;;
13936	      *)
13937	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13938	        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'
13939	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13940	          echo "-hidden">> $lib.exp~
13941	          $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~
13942	          $RM $lib.exp'
13943	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13944		;;
13945	    esac
13946
13947	    hardcode_libdir_separator_CXX=:
13948
13949	    # Commands to make compiler produce verbose output that lists
13950	    # what "hidden" libraries, object files and flags are used when
13951	    # linking a shared library.
13952	    #
13953	    # There doesn't appear to be a way to prevent this compiler from
13954	    # explicitly linking system object files so we need to strip them
13955	    # from the output so that they don't get included in the library
13956	    # dependencies.
13957	    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"'
13958	    ;;
13959	  *)
13960	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13961	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13962	      case $host in
13963	        osf3*)
13964	          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'
13965		  ;;
13966	        *)
13967	          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'
13968		  ;;
13969	      esac
13970
13971	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13972	      hardcode_libdir_separator_CXX=:
13973
13974	      # Commands to make compiler produce verbose output that lists
13975	      # what "hidden" libraries, object files and flags are used when
13976	      # linking a shared library.
13977	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13978
13979	    else
13980	      # FIXME: insert proper C++ library support
13981	      ld_shlibs_CXX=no
13982	    fi
13983	    ;;
13984        esac
13985        ;;
13986
13987      psos*)
13988        # FIXME: insert proper C++ library support
13989        ld_shlibs_CXX=no
13990        ;;
13991
13992      sunos4*)
13993        case $cc_basename in
13994          CC*)
13995	    # Sun C++ 4.x
13996	    # FIXME: insert proper C++ library support
13997	    ld_shlibs_CXX=no
13998	    ;;
13999          lcc*)
14000	    # Lucid
14001	    # FIXME: insert proper C++ library support
14002	    ld_shlibs_CXX=no
14003	    ;;
14004          *)
14005	    # FIXME: insert proper C++ library support
14006	    ld_shlibs_CXX=no
14007	    ;;
14008        esac
14009        ;;
14010
14011      solaris*)
14012        case $cc_basename in
14013          CC* | sunCC*)
14014	    # Sun C++ 4.2, 5.x and Centerline C++
14015            archive_cmds_need_lc_CXX=yes
14016	    no_undefined_flag_CXX=' -zdefs'
14017	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14018	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14019	      $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'
14020
14021	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14022	    hardcode_shlibpath_var_CXX=no
14023	    case $host_os in
14024	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14025	      *)
14026		# The compiler driver will combine and reorder linker options,
14027		# but understands `-z linker_flag'.
14028	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14029		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14030	        ;;
14031	    esac
14032	    link_all_deplibs_CXX=yes
14033
14034	    output_verbose_link_cmd='func_echo_all'
14035
14036	    # Archives containing C++ object files must be created using
14037	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14038	    # necessary to make sure instantiated templates are included
14039	    # in the archive.
14040	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14041	    ;;
14042          gcx*)
14043	    # Green Hills C++ Compiler
14044	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14045
14046	    # The C++ compiler must be used to create the archive.
14047	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14048	    ;;
14049          *)
14050	    # GNU C++ compiler with Solaris linker
14051	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14052	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14053	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14054	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14055	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14056		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14057
14058	        # Commands to make compiler produce verbose output that lists
14059	        # what "hidden" libraries, object files and flags are used when
14060	        # linking a shared library.
14061	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14062	      else
14063	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14064	        # platform.
14065	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14066	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14067		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14068
14069	        # Commands to make compiler produce verbose output that lists
14070	        # what "hidden" libraries, object files and flags are used when
14071	        # linking a shared library.
14072	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14073	      fi
14074
14075	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14076	      case $host_os in
14077		solaris2.[0-5] | solaris2.[0-5].*) ;;
14078		*)
14079		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14080		  ;;
14081	      esac
14082	    fi
14083	    ;;
14084        esac
14085        ;;
14086
14087    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14088      no_undefined_flag_CXX='${wl}-z,text'
14089      archive_cmds_need_lc_CXX=no
14090      hardcode_shlibpath_var_CXX=no
14091      runpath_var='LD_RUN_PATH'
14092
14093      case $cc_basename in
14094        CC*)
14095	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14097	  ;;
14098	*)
14099	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14101	  ;;
14102      esac
14103      ;;
14104
14105      sysv5* | sco3.2v5* | sco5v6*)
14106	# Note: We can NOT use -z defs as we might desire, because we do not
14107	# link with -lc, and that would cause any symbols used from libc to
14108	# always be unresolved, which means just about no library would
14109	# ever link correctly.  If we're not using GNU ld we use -z text
14110	# though, which does catch some bad symbols but isn't as heavy-handed
14111	# as -z defs.
14112	no_undefined_flag_CXX='${wl}-z,text'
14113	allow_undefined_flag_CXX='${wl}-z,nodefs'
14114	archive_cmds_need_lc_CXX=no
14115	hardcode_shlibpath_var_CXX=no
14116	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14117	hardcode_libdir_separator_CXX=':'
14118	link_all_deplibs_CXX=yes
14119	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14120	runpath_var='LD_RUN_PATH'
14121
14122	case $cc_basename in
14123          CC*)
14124	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14127	      '"$old_archive_cmds_CXX"
14128	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14129	      '"$reload_cmds_CXX"
14130	    ;;
14131	  *)
14132	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14134	    ;;
14135	esac
14136      ;;
14137
14138      tandem*)
14139        case $cc_basename in
14140          NCC*)
14141	    # NonStop-UX NCC 3.20
14142	    # FIXME: insert proper C++ library support
14143	    ld_shlibs_CXX=no
14144	    ;;
14145          *)
14146	    # FIXME: insert proper C++ library support
14147	    ld_shlibs_CXX=no
14148	    ;;
14149        esac
14150        ;;
14151
14152      vxworks*)
14153        # FIXME: insert proper C++ library support
14154        ld_shlibs_CXX=no
14155        ;;
14156
14157      *)
14158        # FIXME: insert proper C++ library support
14159        ld_shlibs_CXX=no
14160        ;;
14161    esac
14162
14163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14164$as_echo "$ld_shlibs_CXX" >&6; }
14165    test "$ld_shlibs_CXX" = no && can_build_shared=no
14166
14167    GCC_CXX="$GXX"
14168    LD_CXX="$LD"
14169
14170    ## CAVEAT EMPTOR:
14171    ## There is no encapsulation within the following macros, do not change
14172    ## the running order or otherwise move them around unless you know exactly
14173    ## what you are doing...
14174    # Dependencies to place before and after the object being linked:
14175predep_objects_CXX=
14176postdep_objects_CXX=
14177predeps_CXX=
14178postdeps_CXX=
14179compiler_lib_search_path_CXX=
14180
14181cat > conftest.$ac_ext <<_LT_EOF
14182class Foo
14183{
14184public:
14185  Foo (void) { a = 0; }
14186private:
14187  int a;
14188};
14189_LT_EOF
14190
14191
14192_lt_libdeps_save_CFLAGS=$CFLAGS
14193case "$CC $CFLAGS " in #(
14194*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14195*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14196esac
14197
14198if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14199  (eval $ac_compile) 2>&5
14200  ac_status=$?
14201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202  test $ac_status = 0; }; then
14203  # Parse the compiler output and extract the necessary
14204  # objects, libraries and library flags.
14205
14206  # Sentinel used to keep track of whether or not we are before
14207  # the conftest object file.
14208  pre_test_object_deps_done=no
14209
14210  for p in `eval "$output_verbose_link_cmd"`; do
14211    case ${prev}${p} in
14212
14213    -L* | -R* | -l*)
14214       # Some compilers place space between "-{L,R}" and the path.
14215       # Remove the space.
14216       if test $p = "-L" ||
14217          test $p = "-R"; then
14218	 prev=$p
14219	 continue
14220       fi
14221
14222       # Expand the sysroot to ease extracting the directories later.
14223       if test -z "$prev"; then
14224         case $p in
14225         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14226         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14227         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14228         esac
14229       fi
14230       case $p in
14231       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14232       esac
14233       if test "$pre_test_object_deps_done" = no; then
14234	 case ${prev} in
14235	 -L | -R)
14236	   # Internal compiler library paths should come after those
14237	   # provided the user.  The postdeps already come after the
14238	   # user supplied libs so there is no need to process them.
14239	   if test -z "$compiler_lib_search_path_CXX"; then
14240	     compiler_lib_search_path_CXX="${prev}${p}"
14241	   else
14242	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14243	   fi
14244	   ;;
14245	 # The "-l" case would never come before the object being
14246	 # linked, so don't bother handling this case.
14247	 esac
14248       else
14249	 if test -z "$postdeps_CXX"; then
14250	   postdeps_CXX="${prev}${p}"
14251	 else
14252	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14253	 fi
14254       fi
14255       prev=
14256       ;;
14257
14258    *.lto.$objext) ;; # Ignore GCC LTO objects
14259    *.$objext)
14260       # This assumes that the test object file only shows up
14261       # once in the compiler output.
14262       if test "$p" = "conftest.$objext"; then
14263	 pre_test_object_deps_done=yes
14264	 continue
14265       fi
14266
14267       if test "$pre_test_object_deps_done" = no; then
14268	 if test -z "$predep_objects_CXX"; then
14269	   predep_objects_CXX="$p"
14270	 else
14271	   predep_objects_CXX="$predep_objects_CXX $p"
14272	 fi
14273       else
14274	 if test -z "$postdep_objects_CXX"; then
14275	   postdep_objects_CXX="$p"
14276	 else
14277	   postdep_objects_CXX="$postdep_objects_CXX $p"
14278	 fi
14279       fi
14280       ;;
14281
14282    *) ;; # Ignore the rest.
14283
14284    esac
14285  done
14286
14287  # Clean up.
14288  rm -f a.out a.exe
14289else
14290  echo "libtool.m4: error: problem compiling CXX test program"
14291fi
14292
14293$RM -f confest.$objext
14294CFLAGS=$_lt_libdeps_save_CFLAGS
14295
14296# PORTME: override above test on systems where it is broken
14297case $host_os in
14298interix[3-9]*)
14299  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300  # hack all around it, let's just trust "g++" to DTRT.
14301  predep_objects_CXX=
14302  postdep_objects_CXX=
14303  postdeps_CXX=
14304  ;;
14305
14306linux*)
14307  case `$CC -V 2>&1 | sed 5q` in
14308  *Sun\ C*)
14309    # Sun C++ 5.9
14310
14311    # The more standards-conforming stlport4 library is
14312    # incompatible with the Cstd library. Avoid specifying
14313    # it if it's in CXXFLAGS. Ignore libCrun as
14314    # -library=stlport4 depends on it.
14315    case " $CXX $CXXFLAGS " in
14316    *" -library=stlport4 "*)
14317      solaris_use_stlport4=yes
14318      ;;
14319    esac
14320
14321    if test "$solaris_use_stlport4" != yes; then
14322      postdeps_CXX='-library=Cstd -library=Crun'
14323    fi
14324    ;;
14325  esac
14326  ;;
14327
14328solaris*)
14329  case $cc_basename in
14330  CC* | sunCC*)
14331    # The more standards-conforming stlport4 library is
14332    # incompatible with the Cstd library. Avoid specifying
14333    # it if it's in CXXFLAGS. Ignore libCrun as
14334    # -library=stlport4 depends on it.
14335    case " $CXX $CXXFLAGS " in
14336    *" -library=stlport4 "*)
14337      solaris_use_stlport4=yes
14338      ;;
14339    esac
14340
14341    # Adding this requires a known-good setup of shared libraries for
14342    # Sun compiler versions before 5.6, else PIC objects from an old
14343    # archive will be linked into the output, leading to subtle bugs.
14344    if test "$solaris_use_stlport4" != yes; then
14345      postdeps_CXX='-library=Cstd -library=Crun'
14346    fi
14347    ;;
14348  esac
14349  ;;
14350esac
14351
14352
14353case " $postdeps_CXX " in
14354*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14355esac
14356 compiler_lib_search_dirs_CXX=
14357if test -n "${compiler_lib_search_path_CXX}"; then
14358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14359fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391    lt_prog_compiler_wl_CXX=
14392lt_prog_compiler_pic_CXX=
14393lt_prog_compiler_static_CXX=
14394
14395
14396  # C++ specific cases for pic, static, wl, etc.
14397  if test "$GXX" = yes; then
14398    lt_prog_compiler_wl_CXX='-Wl,'
14399    lt_prog_compiler_static_CXX='-static'
14400
14401    case $host_os in
14402    aix*)
14403      # All AIX code is PIC.
14404      if test "$host_cpu" = ia64; then
14405	# AIX 5 now supports IA64 processor
14406	lt_prog_compiler_static_CXX='-Bstatic'
14407      fi
14408      ;;
14409
14410    amigaos*)
14411      case $host_cpu in
14412      powerpc)
14413            # see comment about AmigaOS4 .so support
14414            lt_prog_compiler_pic_CXX='-fPIC'
14415        ;;
14416      m68k)
14417            # FIXME: we need at least 68020 code to build shared libraries, but
14418            # adding the `-m68020' flag to GCC prevents building anything better,
14419            # like `-m68040'.
14420            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14421        ;;
14422      esac
14423      ;;
14424
14425    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14426      # PIC is the default for these OSes.
14427      ;;
14428    mingw* | cygwin* | os2* | pw32* | cegcc*)
14429      # This hack is so that the source file can tell whether it is being
14430      # built for inclusion in a dll (and should export symbols for example).
14431      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14432      # (--disable-auto-import) libraries
14433      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14434      ;;
14435    darwin* | rhapsody*)
14436      # PIC is the default on this platform
14437      # Common symbols not allowed in MH_DYLIB files
14438      lt_prog_compiler_pic_CXX='-fno-common'
14439      ;;
14440    *djgpp*)
14441      # DJGPP does not support shared libraries at all
14442      lt_prog_compiler_pic_CXX=
14443      ;;
14444    haiku*)
14445      # PIC is the default for Haiku.
14446      # The "-static" flag exists, but is broken.
14447      lt_prog_compiler_static_CXX=
14448      ;;
14449    interix[3-9]*)
14450      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14451      # Instead, we relocate shared libraries at runtime.
14452      ;;
14453    sysv4*MP*)
14454      if test -d /usr/nec; then
14455	lt_prog_compiler_pic_CXX=-Kconform_pic
14456      fi
14457      ;;
14458    hpux*)
14459      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14460      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14461      # sets the default TLS model and affects inlining.
14462      case $host_cpu in
14463      hppa*64*)
14464	;;
14465      *)
14466	lt_prog_compiler_pic_CXX='-fPIC'
14467	;;
14468      esac
14469      ;;
14470    *qnx* | *nto*)
14471      # QNX uses GNU C++, but need to define -shared option too, otherwise
14472      # it will coredump.
14473      lt_prog_compiler_pic_CXX='-fPIC -shared'
14474      ;;
14475    *)
14476      lt_prog_compiler_pic_CXX='-fPIC'
14477      ;;
14478    esac
14479  else
14480    case $host_os in
14481      aix[4-9]*)
14482	# All AIX code is PIC.
14483	if test "$host_cpu" = ia64; then
14484	  # AIX 5 now supports IA64 processor
14485	  lt_prog_compiler_static_CXX='-Bstatic'
14486	else
14487	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14488	fi
14489	;;
14490      chorus*)
14491	case $cc_basename in
14492	cxch68*)
14493	  # Green Hills C++ Compiler
14494	  # _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"
14495	  ;;
14496	esac
14497	;;
14498      mingw* | cygwin* | os2* | pw32* | cegcc*)
14499	# This hack is so that the source file can tell whether it is being
14500	# built for inclusion in a dll (and should export symbols for example).
14501	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14502	;;
14503      dgux*)
14504	case $cc_basename in
14505	  ec++*)
14506	    lt_prog_compiler_pic_CXX='-KPIC'
14507	    ;;
14508	  ghcx*)
14509	    # Green Hills C++ Compiler
14510	    lt_prog_compiler_pic_CXX='-pic'
14511	    ;;
14512	  *)
14513	    ;;
14514	esac
14515	;;
14516      freebsd* | dragonfly*)
14517	# FreeBSD uses GNU C++
14518	;;
14519      hpux9* | hpux10* | hpux11*)
14520	case $cc_basename in
14521	  CC*)
14522	    lt_prog_compiler_wl_CXX='-Wl,'
14523	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14524	    if test "$host_cpu" != ia64; then
14525	      lt_prog_compiler_pic_CXX='+Z'
14526	    fi
14527	    ;;
14528	  aCC*)
14529	    lt_prog_compiler_wl_CXX='-Wl,'
14530	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14531	    case $host_cpu in
14532	    hppa*64*|ia64*)
14533	      # +Z the default
14534	      ;;
14535	    *)
14536	      lt_prog_compiler_pic_CXX='+Z'
14537	      ;;
14538	    esac
14539	    ;;
14540	  *)
14541	    ;;
14542	esac
14543	;;
14544      interix*)
14545	# This is c89, which is MS Visual C++ (no shared libs)
14546	# Anyone wants to do a port?
14547	;;
14548      irix5* | irix6* | nonstopux*)
14549	case $cc_basename in
14550	  CC*)
14551	    lt_prog_compiler_wl_CXX='-Wl,'
14552	    lt_prog_compiler_static_CXX='-non_shared'
14553	    # CC pic flag -KPIC is the default.
14554	    ;;
14555	  *)
14556	    ;;
14557	esac
14558	;;
14559      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14560	case $cc_basename in
14561	  KCC*)
14562	    # KAI C++ Compiler
14563	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14564	    lt_prog_compiler_pic_CXX='-fPIC'
14565	    ;;
14566	  ecpc* )
14567	    # old Intel C++ for x86_64 which still supported -KPIC.
14568	    lt_prog_compiler_wl_CXX='-Wl,'
14569	    lt_prog_compiler_pic_CXX='-KPIC'
14570	    lt_prog_compiler_static_CXX='-static'
14571	    ;;
14572	  icpc* )
14573	    # Intel C++, used to be incompatible with GCC.
14574	    # ICC 10 doesn't accept -KPIC any more.
14575	    lt_prog_compiler_wl_CXX='-Wl,'
14576	    lt_prog_compiler_pic_CXX='-fPIC'
14577	    lt_prog_compiler_static_CXX='-static'
14578	    ;;
14579	  pgCC* | pgcpp*)
14580	    # Portland Group C++ compiler
14581	    lt_prog_compiler_wl_CXX='-Wl,'
14582	    lt_prog_compiler_pic_CXX='-fpic'
14583	    lt_prog_compiler_static_CXX='-Bstatic'
14584	    ;;
14585	  cxx*)
14586	    # Compaq C++
14587	    # Make sure the PIC flag is empty.  It appears that all Alpha
14588	    # Linux and Compaq Tru64 Unix objects are PIC.
14589	    lt_prog_compiler_pic_CXX=
14590	    lt_prog_compiler_static_CXX='-non_shared'
14591	    ;;
14592	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14593	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14594	    lt_prog_compiler_wl_CXX='-Wl,'
14595	    lt_prog_compiler_pic_CXX='-qpic'
14596	    lt_prog_compiler_static_CXX='-qstaticlink'
14597	    ;;
14598	  *)
14599	    case `$CC -V 2>&1 | sed 5q` in
14600	    *Sun\ C*)
14601	      # Sun C++ 5.9
14602	      lt_prog_compiler_pic_CXX='-KPIC'
14603	      lt_prog_compiler_static_CXX='-Bstatic'
14604	      lt_prog_compiler_wl_CXX='-Qoption ld '
14605	      ;;
14606	    esac
14607	    ;;
14608	esac
14609	;;
14610      lynxos*)
14611	;;
14612      m88k*)
14613	;;
14614      mvs*)
14615	case $cc_basename in
14616	  cxx*)
14617	    lt_prog_compiler_pic_CXX='-W c,exportall'
14618	    ;;
14619	  *)
14620	    ;;
14621	esac
14622	;;
14623      netbsd*)
14624	;;
14625      *qnx* | *nto*)
14626        # QNX uses GNU C++, but need to define -shared option too, otherwise
14627        # it will coredump.
14628        lt_prog_compiler_pic_CXX='-fPIC -shared'
14629        ;;
14630      osf3* | osf4* | osf5*)
14631	case $cc_basename in
14632	  KCC*)
14633	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14634	    ;;
14635	  RCC*)
14636	    # Rational C++ 2.4.1
14637	    lt_prog_compiler_pic_CXX='-pic'
14638	    ;;
14639	  cxx*)
14640	    # Digital/Compaq C++
14641	    lt_prog_compiler_wl_CXX='-Wl,'
14642	    # Make sure the PIC flag is empty.  It appears that all Alpha
14643	    # Linux and Compaq Tru64 Unix objects are PIC.
14644	    lt_prog_compiler_pic_CXX=
14645	    lt_prog_compiler_static_CXX='-non_shared'
14646	    ;;
14647	  *)
14648	    ;;
14649	esac
14650	;;
14651      psos*)
14652	;;
14653      solaris*)
14654	case $cc_basename in
14655	  CC* | sunCC*)
14656	    # Sun C++ 4.2, 5.x and Centerline C++
14657	    lt_prog_compiler_pic_CXX='-KPIC'
14658	    lt_prog_compiler_static_CXX='-Bstatic'
14659	    lt_prog_compiler_wl_CXX='-Qoption ld '
14660	    ;;
14661	  gcx*)
14662	    # Green Hills C++ Compiler
14663	    lt_prog_compiler_pic_CXX='-PIC'
14664	    ;;
14665	  *)
14666	    ;;
14667	esac
14668	;;
14669      sunos4*)
14670	case $cc_basename in
14671	  CC*)
14672	    # Sun C++ 4.x
14673	    lt_prog_compiler_pic_CXX='-pic'
14674	    lt_prog_compiler_static_CXX='-Bstatic'
14675	    ;;
14676	  lcc*)
14677	    # Lucid
14678	    lt_prog_compiler_pic_CXX='-pic'
14679	    ;;
14680	  *)
14681	    ;;
14682	esac
14683	;;
14684      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14685	case $cc_basename in
14686	  CC*)
14687	    lt_prog_compiler_wl_CXX='-Wl,'
14688	    lt_prog_compiler_pic_CXX='-KPIC'
14689	    lt_prog_compiler_static_CXX='-Bstatic'
14690	    ;;
14691	esac
14692	;;
14693      tandem*)
14694	case $cc_basename in
14695	  NCC*)
14696	    # NonStop-UX NCC 3.20
14697	    lt_prog_compiler_pic_CXX='-KPIC'
14698	    ;;
14699	  *)
14700	    ;;
14701	esac
14702	;;
14703      vxworks*)
14704	;;
14705      *)
14706	lt_prog_compiler_can_build_shared_CXX=no
14707	;;
14708    esac
14709  fi
14710
14711case $host_os in
14712  # For platforms which do not support PIC, -DPIC is meaningless:
14713  *djgpp*)
14714    lt_prog_compiler_pic_CXX=
14715    ;;
14716  *)
14717    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14718    ;;
14719esac
14720
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14722$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14723if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14724  $as_echo_n "(cached) " >&6
14725else
14726  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14729$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14730lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14731
14732#
14733# Check to make sure the PIC flag actually works.
14734#
14735if test -n "$lt_prog_compiler_pic_CXX"; then
14736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14737$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14738if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14739  $as_echo_n "(cached) " >&6
14740else
14741  lt_cv_prog_compiler_pic_works_CXX=no
14742   ac_outfile=conftest.$ac_objext
14743   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14745   # Insert the option either (1) after the last *FLAGS variable, or
14746   # (2) before a word containing "conftest.", or (3) at the end.
14747   # Note that $ac_compile itself does not contain backslashes and begins
14748   # with a dollar sign (not a hyphen), so the echo should work correctly.
14749   # The option is referenced via a variable to avoid confusing sed.
14750   lt_compile=`echo "$ac_compile" | $SED \
14751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753   -e 's:$: $lt_compiler_flag:'`
14754   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14755   (eval "$lt_compile" 2>conftest.err)
14756   ac_status=$?
14757   cat conftest.err >&5
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   if (exit $ac_status) && test -s "$ac_outfile"; then
14760     # The compiler can only warn and ignore the option if not recognized
14761     # So say no if there are warnings other than the usual output.
14762     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14763     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765       lt_cv_prog_compiler_pic_works_CXX=yes
14766     fi
14767   fi
14768   $RM conftest*
14769
14770fi
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14772$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14773
14774if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14775    case $lt_prog_compiler_pic_CXX in
14776     "" | " "*) ;;
14777     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14778     esac
14779else
14780    lt_prog_compiler_pic_CXX=
14781     lt_prog_compiler_can_build_shared_CXX=no
14782fi
14783
14784fi
14785
14786
14787
14788
14789
14790#
14791# Check to make sure the static flag actually works.
14792#
14793wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14795$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14796if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14797  $as_echo_n "(cached) " >&6
14798else
14799  lt_cv_prog_compiler_static_works_CXX=no
14800   save_LDFLAGS="$LDFLAGS"
14801   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14802   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14803   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804     # The linker can only warn and ignore the option if not recognized
14805     # So say no if there are warnings
14806     if test -s conftest.err; then
14807       # Append any errors to the config.log.
14808       cat conftest.err 1>&5
14809       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14810       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811       if diff conftest.exp conftest.er2 >/dev/null; then
14812         lt_cv_prog_compiler_static_works_CXX=yes
14813       fi
14814     else
14815       lt_cv_prog_compiler_static_works_CXX=yes
14816     fi
14817   fi
14818   $RM -r conftest*
14819   LDFLAGS="$save_LDFLAGS"
14820
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14823$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14824
14825if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14826    :
14827else
14828    lt_prog_compiler_static_CXX=
14829fi
14830
14831
14832
14833
14834    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14835$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14836if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14837  $as_echo_n "(cached) " >&6
14838else
14839  lt_cv_prog_compiler_c_o_CXX=no
14840   $RM -r conftest 2>/dev/null
14841   mkdir conftest
14842   cd conftest
14843   mkdir out
14844   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14845
14846   lt_compiler_flag="-o out/conftest2.$ac_objext"
14847   # Insert the option either (1) after the last *FLAGS variable, or
14848   # (2) before a word containing "conftest.", or (3) at the end.
14849   # Note that $ac_compile itself does not contain backslashes and begins
14850   # with a dollar sign (not a hyphen), so the echo should work correctly.
14851   lt_compile=`echo "$ac_compile" | $SED \
14852   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854   -e 's:$: $lt_compiler_flag:'`
14855   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14856   (eval "$lt_compile" 2>out/conftest.err)
14857   ac_status=$?
14858   cat out/conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14861   then
14862     # The compiler can only warn and ignore the option if not recognized
14863     # So say no if there are warnings
14864     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14865     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14866     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14867       lt_cv_prog_compiler_c_o_CXX=yes
14868     fi
14869   fi
14870   chmod u+w . 2>&5
14871   $RM conftest*
14872   # SGI C++ compiler will create directory out/ii_files/ for
14873   # template instantiation
14874   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14875   $RM out/* && rmdir out
14876   cd ..
14877   $RM -r conftest
14878   $RM conftest*
14879
14880fi
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14882$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14883
14884
14885
14886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14887$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14888if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14889  $as_echo_n "(cached) " >&6
14890else
14891  lt_cv_prog_compiler_c_o_CXX=no
14892   $RM -r conftest 2>/dev/null
14893   mkdir conftest
14894   cd conftest
14895   mkdir out
14896   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14897
14898   lt_compiler_flag="-o out/conftest2.$ac_objext"
14899   # Insert the option either (1) after the last *FLAGS variable, or
14900   # (2) before a word containing "conftest.", or (3) at the end.
14901   # Note that $ac_compile itself does not contain backslashes and begins
14902   # with a dollar sign (not a hyphen), so the echo should work correctly.
14903   lt_compile=`echo "$ac_compile" | $SED \
14904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14906   -e 's:$: $lt_compiler_flag:'`
14907   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14908   (eval "$lt_compile" 2>out/conftest.err)
14909   ac_status=$?
14910   cat out/conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14913   then
14914     # The compiler can only warn and ignore the option if not recognized
14915     # So say no if there are warnings
14916     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14917     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14918     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14919       lt_cv_prog_compiler_c_o_CXX=yes
14920     fi
14921   fi
14922   chmod u+w . 2>&5
14923   $RM conftest*
14924   # SGI C++ compiler will create directory out/ii_files/ for
14925   # template instantiation
14926   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14927   $RM out/* && rmdir out
14928   cd ..
14929   $RM -r conftest
14930   $RM conftest*
14931
14932fi
14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14934$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14935
14936
14937
14938
14939hard_links="nottested"
14940if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14941  # do not overwrite the value of need_locks provided by the user
14942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14943$as_echo_n "checking if we can lock with hard links... " >&6; }
14944  hard_links=yes
14945  $RM conftest*
14946  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14947  touch conftest.a
14948  ln conftest.a conftest.b 2>&5 || hard_links=no
14949  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14951$as_echo "$hard_links" >&6; }
14952  if test "$hard_links" = no; then
14953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14954$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14955    need_locks=warn
14956  fi
14957else
14958  need_locks=no
14959fi
14960
14961
14962
14963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14964$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14965
14966  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14967  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14968  case $host_os in
14969  aix[4-9]*)
14970    # If we're using GNU nm, then we don't want the "-C" option.
14971    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14972    # Also, AIX nm treats weak defined symbols like other global defined
14973    # symbols, whereas GNU nm marks them as "W".
14974    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14975      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'
14976    else
14977      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'
14978    fi
14979    ;;
14980  pw32*)
14981    export_symbols_cmds_CXX="$ltdll_cmds"
14982    ;;
14983  cygwin* | mingw* | cegcc*)
14984    case $cc_basename in
14985    cl*) ;;
14986    *)
14987      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'
14988      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14989      ;;
14990    esac
14991    ;;
14992  *)
14993    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14994    ;;
14995  esac
14996
14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14998$as_echo "$ld_shlibs_CXX" >&6; }
14999test "$ld_shlibs_CXX" = no && can_build_shared=no
15000
15001with_gnu_ld_CXX=$with_gnu_ld
15002
15003
15004
15005
15006
15007
15008#
15009# Do we need to explicitly link libc?
15010#
15011case "x$archive_cmds_need_lc_CXX" in
15012x|xyes)
15013  # Assume -lc should be added
15014  archive_cmds_need_lc_CXX=yes
15015
15016  if test "$enable_shared" = yes && test "$GCC" = yes; then
15017    case $archive_cmds_CXX in
15018    *'~'*)
15019      # FIXME: we may have to deal with multi-command sequences.
15020      ;;
15021    '$CC '*)
15022      # Test whether the compiler implicitly links with -lc since on some
15023      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15024      # to ld, don't add -lc before -lgcc.
15025      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15026$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15027if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15028  $as_echo_n "(cached) " >&6
15029else
15030  $RM conftest*
15031	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032
15033	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15034  (eval $ac_compile) 2>&5
15035  ac_status=$?
15036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037  test $ac_status = 0; } 2>conftest.err; then
15038	  soname=conftest
15039	  lib=conftest
15040	  libobjs=conftest.$ac_objext
15041	  deplibs=
15042	  wl=$lt_prog_compiler_wl_CXX
15043	  pic_flag=$lt_prog_compiler_pic_CXX
15044	  compiler_flags=-v
15045	  linker_flags=-v
15046	  verstring=
15047	  output_objdir=.
15048	  libname=conftest
15049	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15050	  allow_undefined_flag_CXX=
15051	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15052  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15053  ac_status=$?
15054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15055  test $ac_status = 0; }
15056	  then
15057	    lt_cv_archive_cmds_need_lc_CXX=no
15058	  else
15059	    lt_cv_archive_cmds_need_lc_CXX=yes
15060	  fi
15061	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15062	else
15063	  cat conftest.err 1>&5
15064	fi
15065	$RM conftest*
15066
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15069$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15070      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15071      ;;
15072    esac
15073  fi
15074  ;;
15075esac
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15141$as_echo_n "checking dynamic linker characteristics... " >&6; }
15142
15143library_names_spec=
15144libname_spec='lib$name'
15145soname_spec=
15146shrext_cmds=".so"
15147postinstall_cmds=
15148postuninstall_cmds=
15149finish_cmds=
15150finish_eval=
15151shlibpath_var=
15152shlibpath_overrides_runpath=unknown
15153version_type=none
15154dynamic_linker="$host_os ld.so"
15155sys_lib_dlsearch_path_spec="/lib /usr/lib"
15156need_lib_prefix=unknown
15157hardcode_into_libs=no
15158
15159# when you set need_version to no, make sure it does not cause -set_version
15160# flags to be left without arguments
15161need_version=unknown
15162
15163case $host_os in
15164aix3*)
15165  version_type=linux
15166  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15167  shlibpath_var=LIBPATH
15168
15169  # AIX 3 has no versioning support, so we append a major version to the name.
15170  soname_spec='${libname}${release}${shared_ext}$major'
15171  ;;
15172
15173aix[4-9]*)
15174  version_type=linux
15175  need_lib_prefix=no
15176  need_version=no
15177  hardcode_into_libs=yes
15178  if test "$host_cpu" = ia64; then
15179    # AIX 5 supports IA64
15180    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15181    shlibpath_var=LD_LIBRARY_PATH
15182  else
15183    # With GCC up to 2.95.x, collect2 would create an import file
15184    # for dependence libraries.  The import file would start with
15185    # the line `#! .'.  This would cause the generated library to
15186    # depend on `.', always an invalid library.  This was fixed in
15187    # development snapshots of GCC prior to 3.0.
15188    case $host_os in
15189      aix4 | aix4.[01] | aix4.[01].*)
15190      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15191	   echo ' yes '
15192	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15193	:
15194      else
15195	can_build_shared=no
15196      fi
15197      ;;
15198    esac
15199    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15200    # soname into executable. Probably we can add versioning support to
15201    # collect2, so additional links can be useful in future.
15202    if test "$aix_use_runtimelinking" = yes; then
15203      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15204      # instead of lib<name>.a to let people know that these are not
15205      # typical AIX shared libraries.
15206      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207    else
15208      # We preserve .a as extension for shared libraries through AIX4.2
15209      # and later when we are not doing run time linking.
15210      library_names_spec='${libname}${release}.a $libname.a'
15211      soname_spec='${libname}${release}${shared_ext}$major'
15212    fi
15213    shlibpath_var=LIBPATH
15214  fi
15215  ;;
15216
15217amigaos*)
15218  case $host_cpu in
15219  powerpc)
15220    # Since July 2007 AmigaOS4 officially supports .so libraries.
15221    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223    ;;
15224  m68k)
15225    library_names_spec='$libname.ixlibrary $libname.a'
15226    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15227    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15228    ;;
15229  esac
15230  ;;
15231
15232beos*)
15233  library_names_spec='${libname}${shared_ext}'
15234  dynamic_linker="$host_os ld.so"
15235  shlibpath_var=LIBRARY_PATH
15236  ;;
15237
15238bsdi[45]*)
15239  version_type=linux
15240  need_version=no
15241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242  soname_spec='${libname}${release}${shared_ext}$major'
15243  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15244  shlibpath_var=LD_LIBRARY_PATH
15245  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15246  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15247  # the default ld.so.conf also contains /usr/contrib/lib and
15248  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15249  # libtool to hard-code these into programs
15250  ;;
15251
15252cygwin* | mingw* | pw32* | cegcc*)
15253  version_type=windows
15254  shrext_cmds=".dll"
15255  need_version=no
15256  need_lib_prefix=no
15257
15258  case $GCC,$cc_basename in
15259  yes,*)
15260    # gcc
15261    library_names_spec='$libname.dll.a'
15262    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15263    postinstall_cmds='base_file=`basename \${file}`~
15264      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15265      dldir=$destdir/`dirname \$dlpath`~
15266      test -d \$dldir || mkdir -p \$dldir~
15267      $install_prog $dir/$dlname \$dldir/$dlname~
15268      chmod a+x \$dldir/$dlname~
15269      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15270        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15271      fi'
15272    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15273      dlpath=$dir/\$dldll~
15274       $RM \$dlpath'
15275    shlibpath_overrides_runpath=yes
15276
15277    case $host_os in
15278    cygwin*)
15279      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15280      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15281
15282      ;;
15283    mingw* | cegcc*)
15284      # MinGW DLLs use traditional 'lib' prefix
15285      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15286      ;;
15287    pw32*)
15288      # pw32 DLLs use 'pw' prefix rather than 'lib'
15289      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15290      ;;
15291    esac
15292    dynamic_linker='Win32 ld.exe'
15293    ;;
15294
15295  *,cl*)
15296    # Native MSVC
15297    libname_spec='$name'
15298    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15299    library_names_spec='${libname}.dll.lib'
15300
15301    case $build_os in
15302    mingw*)
15303      sys_lib_search_path_spec=
15304      lt_save_ifs=$IFS
15305      IFS=';'
15306      for lt_path in $LIB
15307      do
15308        IFS=$lt_save_ifs
15309        # Let DOS variable expansion print the short 8.3 style file name.
15310        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15311        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15312      done
15313      IFS=$lt_save_ifs
15314      # Convert to MSYS style.
15315      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15316      ;;
15317    cygwin*)
15318      # Convert to unix form, then to dos form, then back to unix form
15319      # but this time dos style (no spaces!) so that the unix form looks
15320      # like /cygdrive/c/PROGRA~1:/cygdr...
15321      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15322      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15323      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15324      ;;
15325    *)
15326      sys_lib_search_path_spec="$LIB"
15327      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15328        # It is most probably a Windows format PATH.
15329        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15330      else
15331        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15332      fi
15333      # FIXME: find the short name or the path components, as spaces are
15334      # common. (e.g. "Program Files" -> "PROGRA~1")
15335      ;;
15336    esac
15337
15338    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15339    postinstall_cmds='base_file=`basename \${file}`~
15340      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15341      dldir=$destdir/`dirname \$dlpath`~
15342      test -d \$dldir || mkdir -p \$dldir~
15343      $install_prog $dir/$dlname \$dldir/$dlname'
15344    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15345      dlpath=$dir/\$dldll~
15346       $RM \$dlpath'
15347    shlibpath_overrides_runpath=yes
15348    dynamic_linker='Win32 link.exe'
15349    ;;
15350
15351  *)
15352    # Assume MSVC wrapper
15353    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15354    dynamic_linker='Win32 ld.exe'
15355    ;;
15356  esac
15357  # FIXME: first we should search . and the directory the executable is in
15358  shlibpath_var=PATH
15359  ;;
15360
15361darwin* | rhapsody*)
15362  dynamic_linker="$host_os dyld"
15363  version_type=darwin
15364  need_lib_prefix=no
15365  need_version=no
15366  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15367  soname_spec='${libname}${release}${major}$shared_ext'
15368  shlibpath_overrides_runpath=yes
15369  shlibpath_var=DYLD_LIBRARY_PATH
15370  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15371
15372  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15373  ;;
15374
15375dgux*)
15376  version_type=linux
15377  need_lib_prefix=no
15378  need_version=no
15379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15380  soname_spec='${libname}${release}${shared_ext}$major'
15381  shlibpath_var=LD_LIBRARY_PATH
15382  ;;
15383
15384freebsd1*)
15385  dynamic_linker=no
15386  ;;
15387
15388freebsd* | dragonfly*)
15389  # DragonFly does not have aout.  When/if they implement a new
15390  # versioning mechanism, adjust this.
15391  if test -x /usr/bin/objformat; then
15392    objformat=`/usr/bin/objformat`
15393  else
15394    case $host_os in
15395    freebsd[123]*) objformat=aout ;;
15396    *) objformat=elf ;;
15397    esac
15398  fi
15399  version_type=freebsd-$objformat
15400  case $version_type in
15401    freebsd-elf*)
15402      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15403      need_version=no
15404      need_lib_prefix=no
15405      ;;
15406    freebsd-*)
15407      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15408      need_version=yes
15409      ;;
15410  esac
15411  shlibpath_var=LD_LIBRARY_PATH
15412  case $host_os in
15413  freebsd2*)
15414    shlibpath_overrides_runpath=yes
15415    ;;
15416  freebsd3.[01]* | freebsdelf3.[01]*)
15417    shlibpath_overrides_runpath=yes
15418    hardcode_into_libs=yes
15419    ;;
15420  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15421  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15422    shlibpath_overrides_runpath=no
15423    hardcode_into_libs=yes
15424    ;;
15425  *) # from 4.6 on, and DragonFly
15426    shlibpath_overrides_runpath=yes
15427    hardcode_into_libs=yes
15428    ;;
15429  esac
15430  ;;
15431
15432gnu*)
15433  version_type=linux
15434  need_lib_prefix=no
15435  need_version=no
15436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15437  soname_spec='${libname}${release}${shared_ext}$major'
15438  shlibpath_var=LD_LIBRARY_PATH
15439  hardcode_into_libs=yes
15440  ;;
15441
15442haiku*)
15443  version_type=linux
15444  need_lib_prefix=no
15445  need_version=no
15446  dynamic_linker="$host_os runtime_loader"
15447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15448  soname_spec='${libname}${release}${shared_ext}$major'
15449  shlibpath_var=LIBRARY_PATH
15450  shlibpath_overrides_runpath=yes
15451  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15452  hardcode_into_libs=yes
15453  ;;
15454
15455hpux9* | hpux10* | hpux11*)
15456  # Give a soname corresponding to the major version so that dld.sl refuses to
15457  # link against other versions.
15458  version_type=sunos
15459  need_lib_prefix=no
15460  need_version=no
15461  case $host_cpu in
15462  ia64*)
15463    shrext_cmds='.so'
15464    hardcode_into_libs=yes
15465    dynamic_linker="$host_os dld.so"
15466    shlibpath_var=LD_LIBRARY_PATH
15467    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469    soname_spec='${libname}${release}${shared_ext}$major'
15470    if test "X$HPUX_IA64_MODE" = X32; then
15471      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15472    else
15473      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15474    fi
15475    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15476    ;;
15477  hppa*64*)
15478    shrext_cmds='.sl'
15479    hardcode_into_libs=yes
15480    dynamic_linker="$host_os dld.sl"
15481    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15482    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484    soname_spec='${libname}${release}${shared_ext}$major'
15485    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15486    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15487    ;;
15488  *)
15489    shrext_cmds='.sl'
15490    dynamic_linker="$host_os dld.sl"
15491    shlibpath_var=SHLIB_PATH
15492    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494    soname_spec='${libname}${release}${shared_ext}$major'
15495    ;;
15496  esac
15497  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15498  postinstall_cmds='chmod 555 $lib'
15499  # or fails outright, so override atomically:
15500  install_override_mode=555
15501  ;;
15502
15503interix[3-9]*)
15504  version_type=linux
15505  need_lib_prefix=no
15506  need_version=no
15507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15508  soname_spec='${libname}${release}${shared_ext}$major'
15509  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15510  shlibpath_var=LD_LIBRARY_PATH
15511  shlibpath_overrides_runpath=no
15512  hardcode_into_libs=yes
15513  ;;
15514
15515irix5* | irix6* | nonstopux*)
15516  case $host_os in
15517    nonstopux*) version_type=nonstopux ;;
15518    *)
15519	if test "$lt_cv_prog_gnu_ld" = yes; then
15520		version_type=linux
15521	else
15522		version_type=irix
15523	fi ;;
15524  esac
15525  need_lib_prefix=no
15526  need_version=no
15527  soname_spec='${libname}${release}${shared_ext}$major'
15528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15529  case $host_os in
15530  irix5* | nonstopux*)
15531    libsuff= shlibsuff=
15532    ;;
15533  *)
15534    case $LD in # libtool.m4 will add one of these switches to LD
15535    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15536      libsuff= shlibsuff= libmagic=32-bit;;
15537    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15538      libsuff=32 shlibsuff=N32 libmagic=N32;;
15539    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15540      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15541    *) libsuff= shlibsuff= libmagic=never-match;;
15542    esac
15543    ;;
15544  esac
15545  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15546  shlibpath_overrides_runpath=no
15547  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15548  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15549  hardcode_into_libs=yes
15550  ;;
15551
15552# No shared lib support for Linux oldld, aout, or coff.
15553linux*oldld* | linux*aout* | linux*coff*)
15554  dynamic_linker=no
15555  ;;
15556
15557# This must be Linux ELF.
15558linux* | k*bsd*-gnu | kopensolaris*-gnu)
15559  version_type=linux
15560  need_lib_prefix=no
15561  need_version=no
15562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563  soname_spec='${libname}${release}${shared_ext}$major'
15564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15565  shlibpath_var=LD_LIBRARY_PATH
15566  shlibpath_overrides_runpath=no
15567
15568  # Some binutils ld are patched to set DT_RUNPATH
15569  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15570  $as_echo_n "(cached) " >&6
15571else
15572  lt_cv_shlibpath_overrides_runpath=no
15573    save_LDFLAGS=$LDFLAGS
15574    save_libdir=$libdir
15575    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15576	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15577    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578/* end confdefs.h.  */
15579
15580int
15581main ()
15582{
15583
15584  ;
15585  return 0;
15586}
15587_ACEOF
15588if ac_fn_cxx_try_link "$LINENO"; then :
15589  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15590  lt_cv_shlibpath_overrides_runpath=yes
15591fi
15592fi
15593rm -f core conftest.err conftest.$ac_objext \
15594    conftest$ac_exeext conftest.$ac_ext
15595    LDFLAGS=$save_LDFLAGS
15596    libdir=$save_libdir
15597
15598fi
15599
15600  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15601
15602  # This implies no fast_install, which is unacceptable.
15603  # Some rework will be needed to allow for fast_install
15604  # before this can be enabled.
15605  hardcode_into_libs=yes
15606
15607  # Append ld.so.conf contents to the search path
15608  if test -f /etc/ld.so.conf; then
15609    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' ' '`
15610    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15611  fi
15612
15613  # We used to test for /lib/ld.so.1 and disable shared libraries on
15614  # powerpc, because MkLinux only supported shared libraries with the
15615  # GNU dynamic linker.  Since this was broken with cross compilers,
15616  # most powerpc-linux boxes support dynamic linking these days and
15617  # people can always --disable-shared, the test was removed, and we
15618  # assume the GNU/Linux dynamic linker is in use.
15619  dynamic_linker='GNU/Linux ld.so'
15620  ;;
15621
15622netbsd*)
15623  version_type=sunos
15624  need_lib_prefix=no
15625  need_version=no
15626  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15629    dynamic_linker='NetBSD (a.out) ld.so'
15630  else
15631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15632    soname_spec='${libname}${release}${shared_ext}$major'
15633    dynamic_linker='NetBSD ld.elf_so'
15634  fi
15635  shlibpath_var=LD_LIBRARY_PATH
15636  shlibpath_overrides_runpath=yes
15637  hardcode_into_libs=yes
15638  ;;
15639
15640newsos6)
15641  version_type=linux
15642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643  shlibpath_var=LD_LIBRARY_PATH
15644  shlibpath_overrides_runpath=yes
15645  ;;
15646
15647*nto* | *qnx*)
15648  version_type=qnx
15649  need_lib_prefix=no
15650  need_version=no
15651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652  soname_spec='${libname}${release}${shared_ext}$major'
15653  shlibpath_var=LD_LIBRARY_PATH
15654  shlibpath_overrides_runpath=no
15655  hardcode_into_libs=yes
15656  dynamic_linker='ldqnx.so'
15657  ;;
15658
15659openbsd*)
15660  version_type=sunos
15661  sys_lib_dlsearch_path_spec="/usr/lib"
15662  need_lib_prefix=no
15663  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15664  case $host_os in
15665    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15666    *)				need_version=no  ;;
15667  esac
15668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15670  shlibpath_var=LD_LIBRARY_PATH
15671  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15672    case $host_os in
15673      openbsd2.[89] | openbsd2.[89].*)
15674	shlibpath_overrides_runpath=no
15675	;;
15676      *)
15677	shlibpath_overrides_runpath=yes
15678	;;
15679      esac
15680  else
15681    shlibpath_overrides_runpath=yes
15682  fi
15683  ;;
15684
15685os2*)
15686  libname_spec='$name'
15687  shrext_cmds=".dll"
15688  need_lib_prefix=no
15689  library_names_spec='$libname${shared_ext} $libname.a'
15690  dynamic_linker='OS/2 ld.exe'
15691  shlibpath_var=LIBPATH
15692  ;;
15693
15694osf3* | osf4* | osf5*)
15695  version_type=osf
15696  need_lib_prefix=no
15697  need_version=no
15698  soname_spec='${libname}${release}${shared_ext}$major'
15699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700  shlibpath_var=LD_LIBRARY_PATH
15701  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15702  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15703  ;;
15704
15705rdos*)
15706  dynamic_linker=no
15707  ;;
15708
15709solaris*)
15710  version_type=linux
15711  need_lib_prefix=no
15712  need_version=no
15713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714  soname_spec='${libname}${release}${shared_ext}$major'
15715  shlibpath_var=LD_LIBRARY_PATH
15716  shlibpath_overrides_runpath=yes
15717  hardcode_into_libs=yes
15718  # ldd complains unless libraries are executable
15719  postinstall_cmds='chmod +x $lib'
15720  ;;
15721
15722sunos4*)
15723  version_type=sunos
15724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15725  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15726  shlibpath_var=LD_LIBRARY_PATH
15727  shlibpath_overrides_runpath=yes
15728  if test "$with_gnu_ld" = yes; then
15729    need_lib_prefix=no
15730  fi
15731  need_version=yes
15732  ;;
15733
15734sysv4 | sysv4.3*)
15735  version_type=linux
15736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737  soname_spec='${libname}${release}${shared_ext}$major'
15738  shlibpath_var=LD_LIBRARY_PATH
15739  case $host_vendor in
15740    sni)
15741      shlibpath_overrides_runpath=no
15742      need_lib_prefix=no
15743      runpath_var=LD_RUN_PATH
15744      ;;
15745    siemens)
15746      need_lib_prefix=no
15747      ;;
15748    motorola)
15749      need_lib_prefix=no
15750      need_version=no
15751      shlibpath_overrides_runpath=no
15752      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15753      ;;
15754  esac
15755  ;;
15756
15757sysv4*MP*)
15758  if test -d /usr/nec ;then
15759    version_type=linux
15760    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15761    soname_spec='$libname${shared_ext}.$major'
15762    shlibpath_var=LD_LIBRARY_PATH
15763  fi
15764  ;;
15765
15766sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15767  version_type=freebsd-elf
15768  need_lib_prefix=no
15769  need_version=no
15770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15771  soname_spec='${libname}${release}${shared_ext}$major'
15772  shlibpath_var=LD_LIBRARY_PATH
15773  shlibpath_overrides_runpath=yes
15774  hardcode_into_libs=yes
15775  if test "$with_gnu_ld" = yes; then
15776    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15777  else
15778    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15779    case $host_os in
15780      sco3.2v5*)
15781        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15782	;;
15783    esac
15784  fi
15785  sys_lib_dlsearch_path_spec='/usr/lib'
15786  ;;
15787
15788tpf*)
15789  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15790  version_type=linux
15791  need_lib_prefix=no
15792  need_version=no
15793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15794  shlibpath_var=LD_LIBRARY_PATH
15795  shlibpath_overrides_runpath=no
15796  hardcode_into_libs=yes
15797  ;;
15798
15799uts4*)
15800  version_type=linux
15801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802  soname_spec='${libname}${release}${shared_ext}$major'
15803  shlibpath_var=LD_LIBRARY_PATH
15804  ;;
15805
15806*)
15807  dynamic_linker=no
15808  ;;
15809esac
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15811$as_echo "$dynamic_linker" >&6; }
15812test "$dynamic_linker" = no && can_build_shared=no
15813
15814variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15815if test "$GCC" = yes; then
15816  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15817fi
15818
15819if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15820  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15821fi
15822if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15823  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15824fi
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15864$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15865hardcode_action_CXX=
15866if test -n "$hardcode_libdir_flag_spec_CXX" ||
15867   test -n "$runpath_var_CXX" ||
15868   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15869
15870  # We can hardcode non-existent directories.
15871  if test "$hardcode_direct_CXX" != no &&
15872     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15873     # have to relink, otherwise we might link with an installed library
15874     # when we should be linking with a yet-to-be-installed one
15875     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15876     test "$hardcode_minus_L_CXX" != no; then
15877    # Linking always hardcodes the temporary library directory.
15878    hardcode_action_CXX=relink
15879  else
15880    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15881    hardcode_action_CXX=immediate
15882  fi
15883else
15884  # We cannot hardcode anything, or else we can only hardcode existing
15885  # directories.
15886  hardcode_action_CXX=unsupported
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15889$as_echo "$hardcode_action_CXX" >&6; }
15890
15891if test "$hardcode_action_CXX" = relink ||
15892   test "$inherit_rpath_CXX" = yes; then
15893  # Fast installation is not supported
15894  enable_fast_install=no
15895elif test "$shlibpath_overrides_runpath" = yes ||
15896     test "$enable_shared" = no; then
15897  # Fast installation is not necessary
15898  enable_fast_install=needless
15899fi
15900
15901
15902
15903
15904
15905
15906
15907  fi # test -n "$compiler"
15908
15909  CC=$lt_save_CC
15910  CFLAGS=$lt_save_CFLAGS
15911  LDCXX=$LD
15912  LD=$lt_save_LD
15913  GCC=$lt_save_GCC
15914  with_gnu_ld=$lt_save_with_gnu_ld
15915  lt_cv_path_LDCXX=$lt_cv_path_LD
15916  lt_cv_path_LD=$lt_save_path_LD
15917  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15918  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15919fi # test "$_lt_caught_CXX_error" != yes
15920
15921ac_ext=c
15922ac_cpp='$CPP $CPPFLAGS'
15923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15925ac_compiler_gnu=$ac_cv_c_compiler_gnu
15926
15927
15928
15929# Enable support for silent build rules
15930# Check whether --enable-silent-rules was given.
15931if test "${enable_silent_rules+set}" = set; then :
15932  enableval=$enable_silent_rules;
15933fi
15934
15935case $enable_silent_rules in
15936yes) AM_DEFAULT_VERBOSITY=0;;
15937no)  AM_DEFAULT_VERBOSITY=1;;
15938*)   AM_DEFAULT_VERBOSITY=1;;
15939esac
15940AM_BACKSLASH='\'
15941
15942
15943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
15944$as_echo_n "checking for main in -lc... " >&6; }
15945if ${ac_cv_lib_c_main+:} false; then :
15946  $as_echo_n "(cached) " >&6
15947else
15948  ac_check_lib_save_LIBS=$LIBS
15949LIBS="-lc  $LIBS"
15950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952
15953
15954int
15955main ()
15956{
15957return main ();
15958  ;
15959  return 0;
15960}
15961_ACEOF
15962if ac_fn_c_try_link "$LINENO"; then :
15963  ac_cv_lib_c_main=yes
15964else
15965  ac_cv_lib_c_main=no
15966fi
15967rm -f core conftest.err conftest.$ac_objext \
15968    conftest$ac_exeext conftest.$ac_ext
15969LIBS=$ac_check_lib_save_LIBS
15970fi
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
15972$as_echo "$ac_cv_lib_c_main" >&6; }
15973if test "x$ac_cv_lib_c_main" = xyes; then :
15974  cat >>confdefs.h <<_ACEOF
15975#define HAVE_LIBC 1
15976_ACEOF
15977
15978  LIBS="-lc $LIBS"
15979
15980fi
15981
15982
15983case "${host_os}" in
15984    cygwin* | mingw32* | beos* | darwin*)
15985        ;;
15986    *)
15987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
15988$as_echo_n "checking for sin in -lm... " >&6; }
15989if ${ac_cv_lib_m_sin+:} false; then :
15990  $as_echo_n "(cached) " >&6
15991else
15992  ac_check_lib_save_LIBS=$LIBS
15993LIBS="-lm  $LIBS"
15994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995/* end confdefs.h.  */
15996
15997/* Override any GCC internal prototype to avoid an error.
15998   Use char because int might match the return type of a GCC
15999   builtin and then its argument prototype would still apply.  */
16000#ifdef __cplusplus
16001extern "C"
16002#endif
16003char sin ();
16004int
16005main ()
16006{
16007return sin ();
16008  ;
16009  return 0;
16010}
16011_ACEOF
16012if ac_fn_c_try_link "$LINENO"; then :
16013  ac_cv_lib_m_sin=yes
16014else
16015  ac_cv_lib_m_sin=no
16016fi
16017rm -f core conftest.err conftest.$ac_objext \
16018    conftest$ac_exeext conftest.$ac_ext
16019LIBS=$ac_check_lib_save_LIBS
16020fi
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16022$as_echo "$ac_cv_lib_m_sin" >&6; }
16023if test "x$ac_cv_lib_m_sin" = xyes; then :
16024  cat >>confdefs.h <<_ACEOF
16025#define HAVE_LIBM 1
16026_ACEOF
16027
16028  LIBS="-lm $LIBS"
16029
16030fi
16031
16032        ;;
16033esac
16034
16035tiff_libs_private=
16036
16037
16038for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16039do :
16040  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16041ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16043  cat >>confdefs.h <<_ACEOF
16044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16045_ACEOF
16046
16047fi
16048
16049done
16050
16051
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16053$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16054if ${ac_cv_c_const+:} false; then :
16055  $as_echo_n "(cached) " >&6
16056else
16057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058/* end confdefs.h.  */
16059
16060int
16061main ()
16062{
16063/* FIXME: Include the comments suggested by Paul. */
16064#ifndef __cplusplus
16065  /* Ultrix mips cc rejects this.  */
16066  typedef int charset[2];
16067  const charset cs;
16068  /* SunOS 4.1.1 cc rejects this.  */
16069  char const *const *pcpcc;
16070  char **ppc;
16071  /* NEC SVR4.0.2 mips cc rejects this.  */
16072  struct point {int x, y;};
16073  static struct point const zero = {0,0};
16074  /* AIX XL C 1.02.0.0 rejects this.
16075     It does not let you subtract one const X* pointer from another in
16076     an arm of an if-expression whose if-part is not a constant
16077     expression */
16078  const char *g = "string";
16079  pcpcc = &g + (g ? g-g : 0);
16080  /* HPUX 7.0 cc rejects these. */
16081  ++pcpcc;
16082  ppc = (char**) pcpcc;
16083  pcpcc = (char const *const *) ppc;
16084  { /* SCO 3.2v4 cc rejects this.  */
16085    char *t;
16086    char const *s = 0 ? (char *) 0 : (char const *) 0;
16087
16088    *t++ = 0;
16089    if (s) return 0;
16090  }
16091  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16092    int x[] = {25, 17};
16093    const int *foo = &x[0];
16094    ++foo;
16095  }
16096  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16097    typedef const int *iptr;
16098    iptr p = 0;
16099    ++p;
16100  }
16101  { /* AIX XL C 1.02.0.0 rejects this saying
16102       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16103    struct s { int j; const int *ap[3]; };
16104    struct s *b; b->j = 5;
16105  }
16106  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16107    const int foo = 10;
16108    if (!foo) return 0;
16109  }
16110  return !cs[0] && !zero.x;
16111#endif
16112
16113  ;
16114  return 0;
16115}
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"; then :
16118  ac_cv_c_const=yes
16119else
16120  ac_cv_c_const=no
16121fi
16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123fi
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16125$as_echo "$ac_cv_c_const" >&6; }
16126if test $ac_cv_c_const = no; then
16127
16128$as_echo "#define const /**/" >>confdefs.h
16129
16130fi
16131
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16133$as_echo_n "checking for inline... " >&6; }
16134if ${ac_cv_c_inline+:} false; then :
16135  $as_echo_n "(cached) " >&6
16136else
16137  ac_cv_c_inline=no
16138for ac_kw in inline __inline__ __inline; do
16139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140/* end confdefs.h.  */
16141#ifndef __cplusplus
16142typedef int foo_t;
16143static $ac_kw foo_t static_foo () {return 0; }
16144$ac_kw foo_t foo () {return 0; }
16145#endif
16146
16147_ACEOF
16148if ac_fn_c_try_compile "$LINENO"; then :
16149  ac_cv_c_inline=$ac_kw
16150fi
16151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152  test "$ac_cv_c_inline" != no && break
16153done
16154
16155fi
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16157$as_echo "$ac_cv_c_inline" >&6; }
16158
16159case $ac_cv_c_inline in
16160  inline | yes) ;;
16161  *)
16162    case $ac_cv_c_inline in
16163      no) ac_val=;;
16164      *) ac_val=$ac_cv_c_inline;;
16165    esac
16166    cat >>confdefs.h <<_ACEOF
16167#ifndef __cplusplus
16168#define inline $ac_val
16169#endif
16170_ACEOF
16171    ;;
16172esac
16173
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16175$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16176if ${ac_cv_c_bigendian+:} false; then :
16177  $as_echo_n "(cached) " >&6
16178else
16179  ac_cv_c_bigendian=unknown
16180    # See if we're dealing with a universal compiler.
16181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h.  */
16183#ifndef __APPLE_CC__
16184	       not a universal capable compiler
16185	     #endif
16186	     typedef int dummy;
16187
16188_ACEOF
16189if ac_fn_c_try_compile "$LINENO"; then :
16190
16191	# Check for potential -arch flags.  It is not universal unless
16192	# there are at least two -arch flags with different values.
16193	ac_arch=
16194	ac_prev=
16195	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16196	 if test -n "$ac_prev"; then
16197	   case $ac_word in
16198	     i?86 | x86_64 | ppc | ppc64)
16199	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16200		 ac_arch=$ac_word
16201	       else
16202		 ac_cv_c_bigendian=universal
16203		 break
16204	       fi
16205	       ;;
16206	   esac
16207	   ac_prev=
16208	 elif test "x$ac_word" = "x-arch"; then
16209	   ac_prev=arch
16210	 fi
16211       done
16212fi
16213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214    if test $ac_cv_c_bigendian = unknown; then
16215      # See if sys/param.h defines the BYTE_ORDER macro.
16216      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217/* end confdefs.h.  */
16218#include <sys/types.h>
16219	     #include <sys/param.h>
16220
16221int
16222main ()
16223{
16224#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16225		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16226		     && LITTLE_ENDIAN)
16227	      bogus endian macros
16228	     #endif
16229
16230  ;
16231  return 0;
16232}
16233_ACEOF
16234if ac_fn_c_try_compile "$LINENO"; then :
16235  # It does; now see whether it defined to BIG_ENDIAN or not.
16236	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237/* end confdefs.h.  */
16238#include <sys/types.h>
16239		#include <sys/param.h>
16240
16241int
16242main ()
16243{
16244#if BYTE_ORDER != BIG_ENDIAN
16245		 not big endian
16246		#endif
16247
16248  ;
16249  return 0;
16250}
16251_ACEOF
16252if ac_fn_c_try_compile "$LINENO"; then :
16253  ac_cv_c_bigendian=yes
16254else
16255  ac_cv_c_bigendian=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260    fi
16261    if test $ac_cv_c_bigendian = unknown; then
16262      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16263      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264/* end confdefs.h.  */
16265#include <limits.h>
16266
16267int
16268main ()
16269{
16270#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16271	      bogus endian macros
16272	     #endif
16273
16274  ;
16275  return 0;
16276}
16277_ACEOF
16278if ac_fn_c_try_compile "$LINENO"; then :
16279  # It does; now see whether it defined to _BIG_ENDIAN or not.
16280	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h.  */
16282#include <limits.h>
16283
16284int
16285main ()
16286{
16287#ifndef _BIG_ENDIAN
16288		 not big endian
16289		#endif
16290
16291  ;
16292  return 0;
16293}
16294_ACEOF
16295if ac_fn_c_try_compile "$LINENO"; then :
16296  ac_cv_c_bigendian=yes
16297else
16298  ac_cv_c_bigendian=no
16299fi
16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301fi
16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303    fi
16304    if test $ac_cv_c_bigendian = unknown; then
16305      # Compile a test program.
16306      if test "$cross_compiling" = yes; then :
16307  # Try to guess by grepping values from an object file.
16308	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h.  */
16310short int ascii_mm[] =
16311		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16312		short int ascii_ii[] =
16313		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16314		int use_ascii (int i) {
16315		  return ascii_mm[i] + ascii_ii[i];
16316		}
16317		short int ebcdic_ii[] =
16318		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16319		short int ebcdic_mm[] =
16320		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16321		int use_ebcdic (int i) {
16322		  return ebcdic_mm[i] + ebcdic_ii[i];
16323		}
16324		extern int foo;
16325
16326int
16327main ()
16328{
16329return use_ascii (foo) == use_ebcdic (foo);
16330  ;
16331  return 0;
16332}
16333_ACEOF
16334if ac_fn_c_try_compile "$LINENO"; then :
16335  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16336	      ac_cv_c_bigendian=yes
16337	    fi
16338	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16339	      if test "$ac_cv_c_bigendian" = unknown; then
16340		ac_cv_c_bigendian=no
16341	      else
16342		# finding both strings is unlikely to happen, but who knows?
16343		ac_cv_c_bigendian=unknown
16344	      fi
16345	    fi
16346fi
16347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348else
16349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351$ac_includes_default
16352int
16353main ()
16354{
16355
16356	     /* Are we little or big endian?  From Harbison&Steele.  */
16357	     union
16358	     {
16359	       long int l;
16360	       char c[sizeof (long int)];
16361	     } u;
16362	     u.l = 1;
16363	     return u.c[sizeof (long int) - 1] == 1;
16364
16365  ;
16366  return 0;
16367}
16368_ACEOF
16369if ac_fn_c_try_run "$LINENO"; then :
16370  ac_cv_c_bigendian=no
16371else
16372  ac_cv_c_bigendian=yes
16373fi
16374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375  conftest.$ac_objext conftest.beam conftest.$ac_ext
16376fi
16377
16378    fi
16379fi
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16381$as_echo "$ac_cv_c_bigendian" >&6; }
16382 case $ac_cv_c_bigendian in #(
16383   yes)
16384     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16385;; #(
16386   no)
16387      ;; #(
16388   universal)
16389
16390$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16391
16392     ;; #(
16393   *)
16394     as_fn_error $? "unknown endianness
16395 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16396 esac
16397
16398ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16399if test "x$ac_cv_type_off_t" = xyes; then :
16400
16401else
16402
16403cat >>confdefs.h <<_ACEOF
16404#define off_t long int
16405_ACEOF
16406
16407fi
16408
16409ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16410if test "x$ac_cv_type_size_t" = xyes; then :
16411
16412else
16413
16414cat >>confdefs.h <<_ACEOF
16415#define size_t unsigned int
16416_ACEOF
16417
16418fi
16419
16420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16421$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16422if ${ac_cv_header_time+:} false; then :
16423  $as_echo_n "(cached) " >&6
16424else
16425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426/* end confdefs.h.  */
16427#include <sys/types.h>
16428#include <sys/time.h>
16429#include <time.h>
16430
16431int
16432main ()
16433{
16434if ((struct tm *) 0)
16435return 0;
16436  ;
16437  return 0;
16438}
16439_ACEOF
16440if ac_fn_c_try_compile "$LINENO"; then :
16441  ac_cv_header_time=yes
16442else
16443  ac_cv_header_time=no
16444fi
16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446fi
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16448$as_echo "$ac_cv_header_time" >&6; }
16449if test $ac_cv_header_time = yes; then
16450
16451$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16452
16453fi
16454
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16456$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16457if ${ac_cv_struct_tm+:} false; then :
16458  $as_echo_n "(cached) " >&6
16459else
16460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461/* end confdefs.h.  */
16462#include <sys/types.h>
16463#include <time.h>
16464
16465int
16466main ()
16467{
16468struct tm tm;
16469				     int *p = &tm.tm_sec;
16470				     return !p;
16471  ;
16472  return 0;
16473}
16474_ACEOF
16475if ac_fn_c_try_compile "$LINENO"; then :
16476  ac_cv_struct_tm=time.h
16477else
16478  ac_cv_struct_tm=sys/time.h
16479fi
16480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481fi
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16483$as_echo "$ac_cv_struct_tm" >&6; }
16484if test $ac_cv_struct_tm = sys/time.h; then
16485
16486$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16487
16488fi
16489
16490
16491
16492# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
16493# The cast to long int works around a bug in the HP C Compiler
16494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16496# This bug is HP SR number 8606223364.
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
16498$as_echo_n "checking size of signed short... " >&6; }
16499if ${ac_cv_sizeof_signed_short+:} false; then :
16500  $as_echo_n "(cached) " >&6
16501else
16502  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
16503
16504else
16505  if test "$ac_cv_type_signed_short" = yes; then
16506     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16508as_fn_error 77 "cannot compute sizeof (signed short)
16509See \`config.log' for more details" "$LINENO" 5; }
16510   else
16511     ac_cv_sizeof_signed_short=0
16512   fi
16513fi
16514
16515fi
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
16517$as_echo "$ac_cv_sizeof_signed_short" >&6; }
16518
16519
16520
16521cat >>confdefs.h <<_ACEOF
16522#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
16523_ACEOF
16524
16525
16526
16527# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
16528# The cast to long int works around a bug in the HP C Compiler
16529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16531# This bug is HP SR number 8606223364.
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16533$as_echo_n "checking size of unsigned short... " >&6; }
16534if ${ac_cv_sizeof_unsigned_short+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
16538
16539else
16540  if test "$ac_cv_type_unsigned_short" = yes; then
16541     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16543as_fn_error 77 "cannot compute sizeof (unsigned short)
16544See \`config.log' for more details" "$LINENO" 5; }
16545   else
16546     ac_cv_sizeof_unsigned_short=0
16547   fi
16548fi
16549
16550fi
16551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16552$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16553
16554
16555
16556cat >>confdefs.h <<_ACEOF
16557#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16558_ACEOF
16559
16560
16561
16562# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
16563# The cast to long int works around a bug in the HP C Compiler
16564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16566# This bug is HP SR number 8606223364.
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
16568$as_echo_n "checking size of signed int... " >&6; }
16569if ${ac_cv_sizeof_signed_int+:} false; then :
16570  $as_echo_n "(cached) " >&6
16571else
16572  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
16573
16574else
16575  if test "$ac_cv_type_signed_int" = yes; then
16576     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16578as_fn_error 77 "cannot compute sizeof (signed int)
16579See \`config.log' for more details" "$LINENO" 5; }
16580   else
16581     ac_cv_sizeof_signed_int=0
16582   fi
16583fi
16584
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16587$as_echo "$ac_cv_sizeof_signed_int" >&6; }
16588
16589
16590
16591cat >>confdefs.h <<_ACEOF
16592#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16593_ACEOF
16594
16595
16596
16597# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
16598# The cast to long int works around a bug in the HP C Compiler
16599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16601# This bug is HP SR number 8606223364.
16602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16603$as_echo_n "checking size of unsigned int... " >&6; }
16604if ${ac_cv_sizeof_unsigned_int+:} false; then :
16605  $as_echo_n "(cached) " >&6
16606else
16607  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16608
16609else
16610  if test "$ac_cv_type_unsigned_int" = yes; then
16611     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16613as_fn_error 77 "cannot compute sizeof (unsigned int)
16614See \`config.log' for more details" "$LINENO" 5; }
16615   else
16616     ac_cv_sizeof_unsigned_int=0
16617   fi
16618fi
16619
16620fi
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16622$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16623
16624
16625
16626cat >>confdefs.h <<_ACEOF
16627#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16628_ACEOF
16629
16630
16631
16632# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
16633# The cast to long int works around a bug in the HP C Compiler
16634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16636# This bug is HP SR number 8606223364.
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
16638$as_echo_n "checking size of signed long... " >&6; }
16639if ${ac_cv_sizeof_signed_long+:} false; then :
16640  $as_echo_n "(cached) " >&6
16641else
16642  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
16643
16644else
16645  if test "$ac_cv_type_signed_long" = yes; then
16646     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16648as_fn_error 77 "cannot compute sizeof (signed long)
16649See \`config.log' for more details" "$LINENO" 5; }
16650   else
16651     ac_cv_sizeof_signed_long=0
16652   fi
16653fi
16654
16655fi
16656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16657$as_echo "$ac_cv_sizeof_signed_long" >&6; }
16658
16659
16660
16661cat >>confdefs.h <<_ACEOF
16662#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
16663_ACEOF
16664
16665
16666
16667# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
16668# The cast to long int works around a bug in the HP C Compiler
16669# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16670# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16671# This bug is HP SR number 8606223364.
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16673$as_echo_n "checking size of unsigned long... " >&6; }
16674if ${ac_cv_sizeof_unsigned_long+:} false; then :
16675  $as_echo_n "(cached) " >&6
16676else
16677  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16678
16679else
16680  if test "$ac_cv_type_unsigned_long" = yes; then
16681     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16683as_fn_error 77 "cannot compute sizeof (unsigned long)
16684See \`config.log' for more details" "$LINENO" 5; }
16685   else
16686     ac_cv_sizeof_unsigned_long=0
16687   fi
16688fi
16689
16690fi
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16692$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16693
16694
16695
16696cat >>confdefs.h <<_ACEOF
16697#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16698_ACEOF
16699
16700
16701
16702# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
16703# If 'long long' is not supported then the value defined is zero.
16704# The cast to long int works around a bug in the HP C Compiler
16705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16707# This bug is HP SR number 8606223364.
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
16709$as_echo_n "checking size of signed long long... " >&6; }
16710if ${ac_cv_sizeof_signed_long_long+:} false; then :
16711  $as_echo_n "(cached) " >&6
16712else
16713  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
16714
16715else
16716  if test "$ac_cv_type_signed_long_long" = yes; then
16717     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16719as_fn_error 77 "cannot compute sizeof (signed long long)
16720See \`config.log' for more details" "$LINENO" 5; }
16721   else
16722     ac_cv_sizeof_signed_long_long=0
16723   fi
16724fi
16725
16726fi
16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
16728$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
16729
16730
16731
16732cat >>confdefs.h <<_ACEOF
16733#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
16734_ACEOF
16735
16736
16737
16738# Obtain size of a 'unsigned long long' and define as
16739# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
16740# supported then the value defined is zero.
16741# The cast to long int works around a bug in the HP C Compiler
16742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16744# This bug is HP SR number 8606223364.
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16746$as_echo_n "checking size of unsigned long long... " >&6; }
16747if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16748  $as_echo_n "(cached) " >&6
16749else
16750  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
16751
16752else
16753  if test "$ac_cv_type_unsigned_long_long" = yes; then
16754     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16756as_fn_error 77 "cannot compute sizeof (unsigned long long)
16757See \`config.log' for more details" "$LINENO" 5; }
16758   else
16759     ac_cv_sizeof_unsigned_long_long=0
16760   fi
16761fi
16762
16763fi
16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16765$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
16766
16767
16768
16769cat >>confdefs.h <<_ACEOF
16770#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16771_ACEOF
16772
16773
16774
16775# Obtain the size of an 'unsigned char *' and define as
16776# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
16777# ac_cv_sizeof_unsigned_char_p.
16778# The cast to long int works around a bug in the HP C Compiler
16779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16781# This bug is HP SR number 8606223364.
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
16783$as_echo_n "checking size of unsigned char *... " >&6; }
16784if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
16785  $as_echo_n "(cached) " >&6
16786else
16787  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
16788
16789else
16790  if test "$ac_cv_type_unsigned_char_p" = yes; then
16791     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16793as_fn_error 77 "cannot compute sizeof (unsigned char *)
16794See \`config.log' for more details" "$LINENO" 5; }
16795   else
16796     ac_cv_sizeof_unsigned_char_p=0
16797   fi
16798fi
16799
16800fi
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
16802$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
16803
16804
16805
16806cat >>confdefs.h <<_ACEOF
16807#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
16808_ACEOF
16809
16810
16811
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
16813$as_echo_n "checking for signed 8-bit type... " >&6; }
16814INT8_T='signed char'
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
16816$as_echo "$INT8_T" >&6; }
16817
16818cat >>confdefs.h <<_ACEOF
16819#define TIFF_INT8_T $INT8_T
16820_ACEOF
16821
16822
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
16824$as_echo_n "checking for unsigned 8-bit type... " >&6; }
16825UINT8_T='unsigned char'
16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
16827$as_echo "$UINT8_T" >&6; }
16828
16829cat >>confdefs.h <<_ACEOF
16830#define TIFF_UINT8_T $UINT8_T
16831_ACEOF
16832
16833
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
16835$as_echo_n "checking for signed 16-bit type... " >&6; }
16836INT16_T='signed short'
16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
16838$as_echo "$INT16_T" >&6; }
16839
16840cat >>confdefs.h <<_ACEOF
16841#define TIFF_INT16_T $INT16_T
16842_ACEOF
16843
16844
16845
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
16847$as_echo_n "checking for unsigned 16-bit type... " >&6; }
16848UINT16_T='unsigned short'
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
16850$as_echo "$UINT16_T" >&6; }
16851
16852cat >>confdefs.h <<_ACEOF
16853#define TIFF_UINT16_T $UINT16_T
16854_ACEOF
16855
16856
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
16858$as_echo_n "checking for signed 32-bit type... " >&6; }
16859INT32_T='none'
16860INT32_FORMAT='none'
16861if test $ac_cv_sizeof_signed_int -eq 4
16862then
16863  INT32_T='signed int'
16864  INT32_FORMAT='"%d"'
16865elif test $ac_cv_sizeof_signed_long -eq 4
16866then
16867  INT32_T='signed long'
16868  INT32_FORMAT='"%ld"'
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
16871$as_echo "$INT32_T" >&6; }
16872
16873cat >>confdefs.h <<_ACEOF
16874#define TIFF_INT32_T $INT32_T
16875_ACEOF
16876
16877
16878cat >>confdefs.h <<_ACEOF
16879#define TIFF_INT32_FORMAT $INT32_FORMAT
16880_ACEOF
16881
16882
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
16884$as_echo_n "checking for unsigned 32-bit type... " >&6; }
16885UINT32_T='none'
16886UINT32_FORMAT='none'
16887if test $ac_cv_sizeof_unsigned_int -eq 4
16888then
16889  UINT32_T='unsigned int'
16890  UINT32_FORMAT='"%u"'
16891elif test $ac_cv_sizeof_unsigned_long -eq 4
16892then
16893  UINT32_T='unsigned long'
16894  UINT32_FORMAT='"%lu"'
16895fi
16896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
16897$as_echo "$UINT32_T" >&6; }
16898
16899cat >>confdefs.h <<_ACEOF
16900#define TIFF_UINT32_T $UINT32_T
16901_ACEOF
16902
16903
16904cat >>confdefs.h <<_ACEOF
16905#define TIFF_UINT32_FORMAT $UINT32_FORMAT
16906_ACEOF
16907
16908
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
16910$as_echo_n "checking for signed 64-bit type... " >&6; }
16911INT64_T='none'
16912INT64_FORMAT='none'
16913if test $ac_cv_sizeof_signed_long -eq 8
16914then
16915  INT64_T='signed long'
16916  INT64_FORMAT='"%ld"'
16917elif test $ac_cv_sizeof_signed_long_long -eq 8
16918then
16919  INT64_FORMAT='"%lld"'
16920  INT64_T='signed long long'
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
16923$as_echo "$INT64_T" >&6; }
16924
16925cat >>confdefs.h <<_ACEOF
16926#define TIFF_INT64_T $INT64_T
16927_ACEOF
16928
16929
16930cat >>confdefs.h <<_ACEOF
16931#define TIFF_INT64_FORMAT $INT64_FORMAT
16932_ACEOF
16933
16934
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
16936$as_echo_n "checking for unsigned 64-bit type... " >&6; }
16937UINT64_T='none'
16938UINT64_FORMAT='none'
16939if test $ac_cv_sizeof_unsigned_long -eq 8
16940then
16941  UINT64_T='unsigned long'
16942  UINT64_FORMAT='"%lu"'
16943elif test $ac_cv_sizeof_unsigned_long_long -eq 8
16944then
16945  UINT64_T='unsigned long long'
16946  UINT64_FORMAT='"%llu"'
16947fi
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
16949$as_echo "$UINT64_T" >&6; }
16950
16951cat >>confdefs.h <<_ACEOF
16952#define TIFF_UINT64_T $UINT64_T
16953_ACEOF
16954
16955
16956cat >>confdefs.h <<_ACEOF
16957#define TIFF_UINT64_FORMAT $UINT64_FORMAT
16958_ACEOF
16959
16960
16961# Determine TIFF equivalent of ssize_t
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
16963$as_echo_n "checking for signed size type... " >&6; }
16964SSIZE_T='unknown'
16965SSIZE_FORMAT='unknown'
16966if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
16967then
16968  SSIZE_T='signed long'
16969  SSIZE_FORMAT='"%ld"'
16970elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
16971then
16972  SSIZE_T='signed long long'
16973  SSIZE_FORMAT='"%lld"'
16974fi
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
16976$as_echo "$SSIZE_T" >&6; }
16977
16978cat >>confdefs.h <<_ACEOF
16979#define TIFF_SSIZE_T $SSIZE_T
16980_ACEOF
16981
16982
16983cat >>confdefs.h <<_ACEOF
16984#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
16985_ACEOF
16986
16987
16988# Determine the type to use for the difference between two pointers.
16989# We will default to the POSIX ptrdiff_t if it is available, but will
16990# be prepared for the case when it is not.
16991PTRDIFF_T='unknown'
16992PTRDIFF_FORMAT='"%ld"'
16993ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16994if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16995  PTRDIFF_T=ptrdiff_t
16996fi
16997
16998if test $PTRDIFF_T = unknown
16999then
17000  PTRDIFF_T=$SSIZE_T
17001  PTRDIFF_FORMAT=$SSIZE_FORMAT
17002fi
17003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17004$as_echo_n "checking for pointer difference type... " >&6; }
17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17006$as_echo "$PTRDIFF_T" >&6; }
17007
17008cat >>confdefs.h <<_ACEOF
17009#define TIFF_PTRDIFF_T $PTRDIFF_T
17010_ACEOF
17011
17012
17013cat >>confdefs.h <<_ACEOF
17014#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17015_ACEOF
17016
17017
17018ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17019#if HAVE_INTTYPES_H
17020# include <inttypes.h>
17021#endif
17022
17023"
17024if test "x$ac_cv_type_int8" = xyes; then :
17025
17026cat >>confdefs.h <<_ACEOF
17027#define HAVE_INT8 1
17028_ACEOF
17029
17030
17031fi
17032ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17033#if HAVE_INTTYPES_H
17034# include <inttypes.h>
17035#endif
17036
17037"
17038if test "x$ac_cv_type_int16" = xyes; then :
17039
17040cat >>confdefs.h <<_ACEOF
17041#define HAVE_INT16 1
17042_ACEOF
17043
17044
17045fi
17046ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17047#if HAVE_INTTYPES_H
17048# include <inttypes.h>
17049#endif
17050
17051"
17052if test "x$ac_cv_type_int32" = xyes; then :
17053
17054cat >>confdefs.h <<_ACEOF
17055#define HAVE_INT32 1
17056_ACEOF
17057
17058
17059fi
17060
17061
17062for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17063do :
17064  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17067  cat >>confdefs.h <<_ACEOF
17068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17069_ACEOF
17070
17071fi
17072done
17073
17074
17075ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17076if test "x$ac_cv_func_getopt" = xyes; then :
17077  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17078
17079else
17080  case " $LIBOBJS " in
17081  *" getopt.$ac_objext "* ) ;;
17082  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17083 ;;
17084esac
17085
17086fi
17087
17088
17089ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17090if test "x$ac_cv_func_strcasecmp" = xyes; then :
17091  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17092
17093else
17094  case " $LIBOBJS " in
17095  *" strcasecmp.$ac_objext "* ) ;;
17096  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17097 ;;
17098esac
17099
17100fi
17101
17102
17103ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17104if test "x$ac_cv_func_strtoul" = xyes; then :
17105  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17106
17107else
17108  case " $LIBOBJS " in
17109  *" strtoul.$ac_objext "* ) ;;
17110  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17111 ;;
17112esac
17113
17114fi
17115
17116
17117ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17118if test "x$ac_cv_func_strtoull" = xyes; then :
17119  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17120
17121else
17122  case " $LIBOBJS " in
17123  *" strtoull.$ac_objext "* ) ;;
17124  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17125 ;;
17126esac
17127
17128fi
17129
17130
17131ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17132if test "x$ac_cv_func_lfind" = xyes; then :
17133  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17134
17135else
17136  case " $LIBOBJS " in
17137  *" lfind.$ac_objext "* ) ;;
17138  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17139 ;;
17140esac
17141
17142fi
17143
17144
17145
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17147$as_echo_n "checking native cpu bit order... " >&6; }
17148case "$target_cpu" in
17149    i*86*|x86_64*)
17150        HOST_FILLORDER=FILLORDER_LSB2MSB
17151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17152$as_echo "lsb2msb" >&6; }
17153	;;
17154    *)
17155	HOST_FILLORDER=FILLORDER_MSB2LSB
17156	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17157$as_echo "msb2lsb" >&6; }
17158        ;;
17159esac
17160
17161cat >>confdefs.h <<_ACEOF
17162#define HOST_FILLORDER $HOST_FILLORDER
17163_ACEOF
17164
17165
17166if test "$ac_cv_c_bigendian" = yes ; then
17167    HOST_BIGENDIAN=1
17168else
17169    HOST_BIGENDIAN=0
17170fi
17171
17172cat >>confdefs.h <<_ACEOF
17173#define HOST_BIGENDIAN $HOST_BIGENDIAN
17174_ACEOF
17175
17176
17177#_POSIX_C_SOURCE=2
17178#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17179
17180HAVE_IEEEFP=1
17181
17182cat >>confdefs.h <<_ACEOF
17183#define HAVE_IEEEFP $HAVE_IEEEFP
17184_ACEOF
17185
17186
17187
17188# Check whether --enable-rpath was given.
17189if test "${enable_rpath+set}" = set; then :
17190  enableval=$enable_rpath; HAVE_RPATH=$enableval
17191else
17192  HAVE_RPATH=no
17193fi
17194
17195 if test "$HAVE_RPATH" = "yes"; then
17196  HAVE_RPATH_TRUE=
17197  HAVE_RPATH_FALSE='#'
17198else
17199  HAVE_RPATH_TRUE='#'
17200  HAVE_RPATH_FALSE=
17201fi
17202
17203
17204
17205# Check whether --enable-largefile was given.
17206if test "${enable_largefile+set}" = set; then :
17207  enableval=$enable_largefile;
17208fi
17209
17210if test "$enable_largefile" != no; then
17211
17212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17213$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17214if ${ac_cv_sys_largefile_CC+:} false; then :
17215  $as_echo_n "(cached) " >&6
17216else
17217  ac_cv_sys_largefile_CC=no
17218     if test "$GCC" != yes; then
17219       ac_save_CC=$CC
17220       while :; do
17221	 # IRIX 6.2 and later do not support large files by default,
17222	 # so use the C compiler's -n32 option if that helps.
17223	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224/* end confdefs.h.  */
17225#include <sys/types.h>
17226 /* Check that off_t can represent 2**63 - 1 correctly.
17227    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17228    since some C++ compilers masquerading as C compilers
17229    incorrectly reject 9223372036854775807.  */
17230#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17231  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17232		       && LARGE_OFF_T % 2147483647 == 1)
17233		      ? 1 : -1];
17234int
17235main ()
17236{
17237
17238  ;
17239  return 0;
17240}
17241_ACEOF
17242	 if ac_fn_c_try_compile "$LINENO"; then :
17243  break
17244fi
17245rm -f core conftest.err conftest.$ac_objext
17246	 CC="$CC -n32"
17247	 if ac_fn_c_try_compile "$LINENO"; then :
17248  ac_cv_sys_largefile_CC=' -n32'; break
17249fi
17250rm -f core conftest.err conftest.$ac_objext
17251	 break
17252       done
17253       CC=$ac_save_CC
17254       rm -f conftest.$ac_ext
17255    fi
17256fi
17257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17258$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17259  if test "$ac_cv_sys_largefile_CC" != no; then
17260    CC=$CC$ac_cv_sys_largefile_CC
17261  fi
17262
17263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17264$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17265if ${ac_cv_sys_file_offset_bits+:} false; then :
17266  $as_echo_n "(cached) " >&6
17267else
17268  while :; do
17269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271#include <sys/types.h>
17272 /* Check that off_t can represent 2**63 - 1 correctly.
17273    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17274    since some C++ compilers masquerading as C compilers
17275    incorrectly reject 9223372036854775807.  */
17276#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17277  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17278		       && LARGE_OFF_T % 2147483647 == 1)
17279		      ? 1 : -1];
17280int
17281main ()
17282{
17283
17284  ;
17285  return 0;
17286}
17287_ACEOF
17288if ac_fn_c_try_compile "$LINENO"; then :
17289  ac_cv_sys_file_offset_bits=no; break
17290fi
17291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293/* end confdefs.h.  */
17294#define _FILE_OFFSET_BITS 64
17295#include <sys/types.h>
17296 /* Check that off_t can represent 2**63 - 1 correctly.
17297    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17298    since some C++ compilers masquerading as C compilers
17299    incorrectly reject 9223372036854775807.  */
17300#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17301  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17302		       && LARGE_OFF_T % 2147483647 == 1)
17303		      ? 1 : -1];
17304int
17305main ()
17306{
17307
17308  ;
17309  return 0;
17310}
17311_ACEOF
17312if ac_fn_c_try_compile "$LINENO"; then :
17313  ac_cv_sys_file_offset_bits=64; break
17314fi
17315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316  ac_cv_sys_file_offset_bits=unknown
17317  break
17318done
17319fi
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17321$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17322case $ac_cv_sys_file_offset_bits in #(
17323  no | unknown) ;;
17324  *)
17325cat >>confdefs.h <<_ACEOF
17326#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17327_ACEOF
17328;;
17329esac
17330rm -rf conftest*
17331  if test $ac_cv_sys_file_offset_bits = unknown; then
17332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17333$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17334if ${ac_cv_sys_large_files+:} false; then :
17335  $as_echo_n "(cached) " >&6
17336else
17337  while :; do
17338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339/* end confdefs.h.  */
17340#include <sys/types.h>
17341 /* Check that off_t can represent 2**63 - 1 correctly.
17342    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17343    since some C++ compilers masquerading as C compilers
17344    incorrectly reject 9223372036854775807.  */
17345#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17346  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17347		       && LARGE_OFF_T % 2147483647 == 1)
17348		      ? 1 : -1];
17349int
17350main ()
17351{
17352
17353  ;
17354  return 0;
17355}
17356_ACEOF
17357if ac_fn_c_try_compile "$LINENO"; then :
17358  ac_cv_sys_large_files=no; break
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362/* end confdefs.h.  */
17363#define _LARGE_FILES 1
17364#include <sys/types.h>
17365 /* Check that off_t can represent 2**63 - 1 correctly.
17366    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17367    since some C++ compilers masquerading as C compilers
17368    incorrectly reject 9223372036854775807.  */
17369#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17370  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17371		       && LARGE_OFF_T % 2147483647 == 1)
17372		      ? 1 : -1];
17373int
17374main ()
17375{
17376
17377  ;
17378  return 0;
17379}
17380_ACEOF
17381if ac_fn_c_try_compile "$LINENO"; then :
17382  ac_cv_sys_large_files=1; break
17383fi
17384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385  ac_cv_sys_large_files=unknown
17386  break
17387done
17388fi
17389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17390$as_echo "$ac_cv_sys_large_files" >&6; }
17391case $ac_cv_sys_large_files in #(
17392  no | unknown) ;;
17393  *)
17394cat >>confdefs.h <<_ACEOF
17395#define _LARGE_FILES $ac_cv_sys_large_files
17396_ACEOF
17397;;
17398esac
17399rm -rf conftest*
17400  fi
17401fi
17402
17403
17404
17405LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17406
17407
17408# Check whether --with-docdir was given.
17409if test "${with_docdir+set}" = set; then :
17410  withval=$with_docdir;
17411fi
17412
17413if test "x$with_docdir" != "x" ; then
17414  LIBTIFF_DOCDIR=$with_docdir
17415fi
17416
17417
17418
17419
17420# Check whether --enable-ccitt was given.
17421if test "${enable_ccitt+set}" = set; then :
17422  enableval=$enable_ccitt; HAVE_CCITT=$enableval
17423else
17424  HAVE_CCITT=yes
17425fi
17426
17427
17428if test "$HAVE_CCITT" = "yes" ; then
17429
17430$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
17431
17432fi
17433
17434# Check whether --enable-packbits was given.
17435if test "${enable_packbits+set}" = set; then :
17436  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17437else
17438  HAVE_PACKBITS=yes
17439fi
17440
17441
17442if test "$HAVE_PACKBITS" = "yes" ; then
17443
17444$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
17445
17446fi
17447
17448# Check whether --enable-lzw was given.
17449if test "${enable_lzw+set}" = set; then :
17450  enableval=$enable_lzw; HAVE_LZW=$enableval
17451else
17452  HAVE_LZW=yes
17453fi
17454
17455
17456if test "$HAVE_LZW" = "yes" ; then
17457
17458$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
17459
17460fi
17461
17462# Check whether --enable-thunder was given.
17463if test "${enable_thunder+set}" = set; then :
17464  enableval=$enable_thunder; HAVE_THUNDER=$enableval
17465else
17466  HAVE_THUNDER=yes
17467fi
17468
17469
17470if test "$HAVE_THUNDER" = "yes" ; then
17471
17472$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
17473
17474fi
17475
17476HAVE_NEXT=yes
17477
17478# Check whether --enable-next was given.
17479if test "${enable_next+set}" = set; then :
17480  enableval=$enable_next; HAVE_NEXT=$enableval
17481else
17482  HAVE_NEXT=yes
17483fi
17484
17485
17486if test "$HAVE_NEXT" = "yes" ; then
17487
17488$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
17489
17490fi
17491
17492# Check whether --enable-logluv was given.
17493if test "${enable_logluv+set}" = set; then :
17494  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
17495else
17496  HAVE_LOGLUV=yes
17497fi
17498
17499
17500if test "$HAVE_LOGLUV" = "yes" ; then
17501
17502$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17503
17504fi
17505
17506
17507# Check whether --enable-mdi was given.
17508if test "${enable_mdi+set}" = set; then :
17509  enableval=$enable_mdi; HAVE_MDI=$enableval
17510else
17511  HAVE_MDI=yes
17512fi
17513
17514
17515if test "$HAVE_MDI" = "yes" ; then
17516
17517$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
17518
17519fi
17520
17521
17522HAVE_ZLIB=no
17523
17524# Check whether --enable-zlib was given.
17525if test "${enable_zlib+set}" = set; then :
17526  enableval=$enable_zlib;
17527fi
17528
17529
17530# Check whether --with-zlib-include-dir was given.
17531if test "${with_zlib_include_dir+set}" = set; then :
17532  withval=$with_zlib_include_dir;
17533fi
17534
17535
17536# Check whether --with-zlib-lib-dir was given.
17537if test "${with_zlib_lib_dir+set}" = set; then :
17538  withval=$with_zlib_lib_dir;
17539fi
17540
17541
17542if test "x$enable_zlib" != "xno" ; then
17543
17544  if test "x$with_zlib_lib_dir" != "x" ; then
17545    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17546  fi
17547
17548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17549$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17550if ${ac_cv_lib_z_inflateEnd+:} false; then :
17551  $as_echo_n "(cached) " >&6
17552else
17553  ac_check_lib_save_LIBS=$LIBS
17554LIBS="-lz  $LIBS"
17555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556/* end confdefs.h.  */
17557
17558/* Override any GCC internal prototype to avoid an error.
17559   Use char because int might match the return type of a GCC
17560   builtin and then its argument prototype would still apply.  */
17561#ifdef __cplusplus
17562extern "C"
17563#endif
17564char inflateEnd ();
17565int
17566main ()
17567{
17568return inflateEnd ();
17569  ;
17570  return 0;
17571}
17572_ACEOF
17573if ac_fn_c_try_link "$LINENO"; then :
17574  ac_cv_lib_z_inflateEnd=yes
17575else
17576  ac_cv_lib_z_inflateEnd=no
17577fi
17578rm -f core conftest.err conftest.$ac_objext \
17579    conftest$ac_exeext conftest.$ac_ext
17580LIBS=$ac_check_lib_save_LIBS
17581fi
17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17583$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17584if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17585  zlib_lib=yes
17586else
17587  zlib_lib=no
17588fi
17589
17590  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
17591    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
17592  fi
17593
17594  if test "x$with_zlib_include_dir" != "x" ; then
17595    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
17596  fi
17597  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17598if test "x$ac_cv_header_zlib_h" = xyes; then :
17599  zlib_h=yes
17600else
17601  zlib_h=no
17602fi
17603
17604
17605  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
17606    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
17607  fi
17608
17609  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17610    HAVE_ZLIB=yes
17611  fi
17612
17613fi
17614
17615if test "$HAVE_ZLIB" = "yes" ; then
17616
17617$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
17618
17619  LIBS="-lz $LIBS"
17620  tiff_libs_private="-lz ${tiff_libs_private}"
17621
17622  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
17623    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
17624  fi
17625
17626fi
17627
17628
17629# Check whether --enable-pixarlog was given.
17630if test "${enable_pixarlog+set}" = set; then :
17631  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17632else
17633  HAVE_PIXARLOG=yes
17634fi
17635
17636
17637if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
17638
17639$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
17640
17641else
17642  HAVE_PIXARLOG=no
17643fi
17644
17645
17646HAVE_JPEG=no
17647
17648# Check whether --enable-jpeg was given.
17649if test "${enable_jpeg+set}" = set; then :
17650  enableval=$enable_jpeg;
17651fi
17652
17653
17654# Check whether --with-jpeg-include-dir was given.
17655if test "${with_jpeg_include_dir+set}" = set; then :
17656  withval=$with_jpeg_include_dir;
17657fi
17658
17659
17660# Check whether --with-jpeg-lib-dir was given.
17661if test "${with_jpeg_lib_dir+set}" = set; then :
17662  withval=$with_jpeg_lib_dir;
17663fi
17664
17665
17666if test "x$enable_jpeg" != "xno" ; then
17667
17668  if test "x$with_jpeg_lib_dir" != "x" ; then
17669    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
17670
17671  fi
17672
17673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
17674$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
17675if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17676  $as_echo_n "(cached) " >&6
17677else
17678  ac_check_lib_save_LIBS=$LIBS
17679LIBS="-ljpeg  $LIBS"
17680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681/* end confdefs.h.  */
17682
17683/* Override any GCC internal prototype to avoid an error.
17684   Use char because int might match the return type of a GCC
17685   builtin and then its argument prototype would still apply.  */
17686#ifdef __cplusplus
17687extern "C"
17688#endif
17689char jpeg_read_scanlines ();
17690int
17691main ()
17692{
17693return jpeg_read_scanlines ();
17694  ;
17695  return 0;
17696}
17697_ACEOF
17698if ac_fn_c_try_link "$LINENO"; then :
17699  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17700else
17701  ac_cv_lib_jpeg_jpeg_read_scanlines=no
17702fi
17703rm -f core conftest.err conftest.$ac_objext \
17704    conftest$ac_exeext conftest.$ac_ext
17705LIBS=$ac_check_lib_save_LIBS
17706fi
17707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
17708$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
17709if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
17710  jpeg_lib=yes
17711else
17712  jpeg_lib=no
17713fi
17714
17715  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
17716    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
17717  fi
17718
17719  if test "x$with_jpeg_include_dir" != "x" ; then
17720    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
17721  fi
17722  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17723if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17724  jpeg_h=yes
17725else
17726  jpeg_h=no
17727fi
17728
17729
17730  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
17731    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
17732  fi
17733
17734  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
17735    HAVE_JPEG=yes
17736  fi
17737
17738fi
17739
17740if test "$HAVE_JPEG" = "yes" ; then
17741
17742$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
17743
17744  LIBS="-ljpeg $LIBS"
17745  tiff_libs_private="-ljpeg ${tiff_libs_private}"
17746
17747  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
17748    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
17749  fi
17750
17751fi
17752
17753
17754# Check whether --enable-old-jpeg was given.
17755if test "${enable_old_jpeg+set}" = set; then :
17756  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
17757else
17758  HAVE_OJPEG=yes
17759fi
17760
17761
17762if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
17763
17764$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
17765
17766else
17767  HAVE_OJPEG=no
17768fi
17769
17770
17771HAVE_JBIG=no
17772
17773# Check whether --enable-jbig was given.
17774if test "${enable_jbig+set}" = set; then :
17775  enableval=$enable_jbig;
17776fi
17777
17778
17779# Check whether --with-jbig-include-dir was given.
17780if test "${with_jbig_include_dir+set}" = set; then :
17781  withval=$with_jbig_include_dir;
17782fi
17783
17784
17785# Check whether --with-jbig-lib-dir was given.
17786if test "${with_jbig_lib_dir+set}" = set; then :
17787  withval=$with_jbig_lib_dir;
17788fi
17789
17790
17791if test "x$enable_jbig" != "xno" ; then
17792
17793  if test "x$with_jbig_lib_dir" != "x" ; then
17794    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
17795
17796  fi
17797
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
17799$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
17800if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
17801  $as_echo_n "(cached) " >&6
17802else
17803  ac_check_lib_save_LIBS=$LIBS
17804LIBS="-ljbig  $LIBS"
17805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806/* end confdefs.h.  */
17807
17808/* Override any GCC internal prototype to avoid an error.
17809   Use char because int might match the return type of a GCC
17810   builtin and then its argument prototype would still apply.  */
17811#ifdef __cplusplus
17812extern "C"
17813#endif
17814char jbg_dec_init ();
17815int
17816main ()
17817{
17818return jbg_dec_init ();
17819  ;
17820  return 0;
17821}
17822_ACEOF
17823if ac_fn_c_try_link "$LINENO"; then :
17824  ac_cv_lib_jbig_jbg_dec_init=yes
17825else
17826  ac_cv_lib_jbig_jbg_dec_init=no
17827fi
17828rm -f core conftest.err conftest.$ac_objext \
17829    conftest$ac_exeext conftest.$ac_ext
17830LIBS=$ac_check_lib_save_LIBS
17831fi
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
17833$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
17834if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
17835  jbig_lib=yes
17836else
17837  jbig_lib=no
17838fi
17839
17840  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
17841    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
17842  fi
17843
17844  if test "x$with_jbig_include_dir" != "x" ; then
17845    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
17846  fi
17847  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
17848if test "x$ac_cv_header_jbig_h" = xyes; then :
17849  jbig_h=yes
17850else
17851  jbig_h=no
17852fi
17853
17854
17855  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
17856    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
17857  fi
17858
17859  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
17860    HAVE_JBIG=yes
17861  fi
17862
17863fi
17864
17865if test "$HAVE_JBIG" = "yes" ; then
17866
17867$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
17868
17869  LIBS="-ljbig $LIBS"
17870  tiff_libs_private="-ljbig ${tiff_libs_private}"
17871
17872  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
17873    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
17874  fi
17875
17876  # Older versions of jbigkit lack jbg_newlen
17877  for ac_func in jbg_newlen
17878do :
17879  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
17880if test "x$ac_cv_func_jbg_newlen" = xyes; then :
17881  cat >>confdefs.h <<_ACEOF
17882#define HAVE_JBG_NEWLEN 1
17883_ACEOF
17884
17885fi
17886done
17887
17888
17889fi
17890
17891
17892HAVE_LZMA=no
17893
17894# Check whether --enable-lzma was given.
17895if test "${enable_lzma+set}" = set; then :
17896  enableval=$enable_lzma;
17897fi
17898
17899
17900# Check whether --with-lzma-include-dir was given.
17901if test "${with_lzma_include_dir+set}" = set; then :
17902  withval=$with_lzma_include_dir;
17903fi
17904
17905
17906# Check whether --with-lzma-lib-dir was given.
17907if test "${with_lzma_lib_dir+set}" = set; then :
17908  withval=$with_lzma_lib_dir;
17909fi
17910
17911
17912if test "x$enable_lzma" != "xno" ; then
17913
17914  if test "x$with_lzma_lib_dir" != "x" ; then
17915    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
17916  fi
17917
17918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
17919$as_echo_n "checking for lzma_code in -llzma... " >&6; }
17920if ${ac_cv_lib_lzma_lzma_code+:} false; then :
17921  $as_echo_n "(cached) " >&6
17922else
17923  ac_check_lib_save_LIBS=$LIBS
17924LIBS="-llzma  $LIBS"
17925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926/* end confdefs.h.  */
17927
17928/* Override any GCC internal prototype to avoid an error.
17929   Use char because int might match the return type of a GCC
17930   builtin and then its argument prototype would still apply.  */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934char lzma_code ();
17935int
17936main ()
17937{
17938return lzma_code ();
17939  ;
17940  return 0;
17941}
17942_ACEOF
17943if ac_fn_c_try_link "$LINENO"; then :
17944  ac_cv_lib_lzma_lzma_code=yes
17945else
17946  ac_cv_lib_lzma_lzma_code=no
17947fi
17948rm -f core conftest.err conftest.$ac_objext \
17949    conftest$ac_exeext conftest.$ac_ext
17950LIBS=$ac_check_lib_save_LIBS
17951fi
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
17953$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
17954if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
17955  lzma_lib=yes
17956else
17957  lzma_lib=no
17958fi
17959
17960  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
17961    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
17962  fi
17963
17964  if test "x$with_lzma_include_dir" != "x" ; then
17965    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
17966  fi
17967  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
17968if test "x$ac_cv_header_lzma_h" = xyes; then :
17969  lzma_h=yes
17970else
17971  lzma_h=no
17972fi
17973
17974
17975  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
17976    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
17977  fi
17978
17979  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
17980    HAVE_LZMA=yes
17981  fi
17982
17983fi
17984
17985if test "$HAVE_LZMA" = "yes" ; then
17986
17987$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
17988
17989  LIBS="-llzma $LIBS"
17990
17991  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
17992    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
17993  fi
17994
17995fi
17996
17997
17998HAVE_JPEG12=no
17999
18000# Check whether --enable-jpeg12 was given.
18001if test "${enable_jpeg12+set}" = set; then :
18002  enableval=$enable_jpeg12;
18003fi
18004
18005
18006# Check whether --with-jpeg12-include-dir was given.
18007if test "${with_jpeg12_include_dir+set}" = set; then :
18008  withval=$with_jpeg12_include_dir;
18009fi
18010
18011
18012# Check whether --with-jpeg12-lib was given.
18013if test "${with_jpeg12_lib+set}" = set; then :
18014  withval=$with_jpeg12_lib;
18015fi
18016
18017
18018if test "x$enable_jpeg12" == "xyes" ; then
18019
18020  if test "x$with_jpeg12_lib" != "x" ; then
18021    LIBS="$with_jpeg12_lib $LIBS"
18022  fi
18023
18024  HAVE_JPEG12=yes
18025
18026
18027$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18028
18029  if test "x$with_jpeg12_include_dir" != "x" ; then
18030
18031cat >>confdefs.h <<_ACEOF
18032#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18033_ACEOF
18034
18035  fi
18036fi
18037
18038
18039
18040# Check whether --enable-cxx was given.
18041if test "${enable_cxx+set}" = set; then :
18042  enableval=$enable_cxx; HAVE_CXX=$enableval
18043else
18044  HAVE_CXX=yes
18045fi
18046
18047
18048if test "$HAVE_CXX" = "yes" ; then
18049
18050$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18051
18052else
18053  HAVE_CXX=no
18054fi
18055
18056 if test "$HAVE_CXX" = "yes"; then
18057  HAVE_CXX_TRUE=
18058  HAVE_CXX_FALSE='#'
18059else
18060  HAVE_CXX_TRUE='#'
18061  HAVE_CXX_FALSE=
18062fi
18063
18064
18065
18066HAVE_OPENGL=no
18067
18068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18069$as_echo_n "checking for X... " >&6; }
18070
18071
18072# Check whether --with-x was given.
18073if test "${with_x+set}" = set; then :
18074  withval=$with_x;
18075fi
18076
18077# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18078if test "x$with_x" = xno; then
18079  # The user explicitly disabled X.
18080  have_x=disabled
18081else
18082  case $x_includes,$x_libraries in #(
18083    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18084    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18085  $as_echo_n "(cached) " >&6
18086else
18087  # One or both of the vars are not set, and there is no cached value.
18088ac_x_includes=no ac_x_libraries=no
18089rm -f -r conftest.dir
18090if mkdir conftest.dir; then
18091  cd conftest.dir
18092  cat >Imakefile <<'_ACEOF'
18093incroot:
18094	@echo incroot='${INCROOT}'
18095usrlibdir:
18096	@echo usrlibdir='${USRLIBDIR}'
18097libdir:
18098	@echo libdir='${LIBDIR}'
18099_ACEOF
18100  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18101    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18102    for ac_var in incroot usrlibdir libdir; do
18103      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18104    done
18105    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18106    for ac_extension in a so sl dylib la dll; do
18107      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18108	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18109	ac_im_usrlibdir=$ac_im_libdir; break
18110      fi
18111    done
18112    # Screen out bogus values from the imake configuration.  They are
18113    # bogus both because they are the default anyway, and because
18114    # using them would break gcc on systems where it needs fixed includes.
18115    case $ac_im_incroot in
18116	/usr/include) ac_x_includes= ;;
18117	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18118    esac
18119    case $ac_im_usrlibdir in
18120	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18121	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18122    esac
18123  fi
18124  cd ..
18125  rm -f -r conftest.dir
18126fi
18127
18128# Standard set of common directories for X headers.
18129# Check X11 before X11Rn because it is often a symlink to the current release.
18130ac_x_header_dirs='
18131/usr/X11/include
18132/usr/X11R7/include
18133/usr/X11R6/include
18134/usr/X11R5/include
18135/usr/X11R4/include
18136
18137/usr/include/X11
18138/usr/include/X11R7
18139/usr/include/X11R6
18140/usr/include/X11R5
18141/usr/include/X11R4
18142
18143/usr/local/X11/include
18144/usr/local/X11R7/include
18145/usr/local/X11R6/include
18146/usr/local/X11R5/include
18147/usr/local/X11R4/include
18148
18149/usr/local/include/X11
18150/usr/local/include/X11R7
18151/usr/local/include/X11R6
18152/usr/local/include/X11R5
18153/usr/local/include/X11R4
18154
18155/usr/X386/include
18156/usr/x386/include
18157/usr/XFree86/include/X11
18158
18159/usr/include
18160/usr/local/include
18161/usr/unsupported/include
18162/usr/athena/include
18163/usr/local/x11r5/include
18164/usr/lpp/Xamples/include
18165
18166/usr/openwin/include
18167/usr/openwin/share/include'
18168
18169if test "$ac_x_includes" = no; then
18170  # Guess where to find include files, by looking for Xlib.h.
18171  # First, try using that file with no special directory specified.
18172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173/* end confdefs.h.  */
18174#include <X11/Xlib.h>
18175_ACEOF
18176if ac_fn_c_try_cpp "$LINENO"; then :
18177  # We can compile using X headers with no special include directory.
18178ac_x_includes=
18179else
18180  for ac_dir in $ac_x_header_dirs; do
18181  if test -r "$ac_dir/X11/Xlib.h"; then
18182    ac_x_includes=$ac_dir
18183    break
18184  fi
18185done
18186fi
18187rm -f conftest.err conftest.i conftest.$ac_ext
18188fi # $ac_x_includes = no
18189
18190if test "$ac_x_libraries" = no; then
18191  # Check for the libraries.
18192  # See if we find them without any special options.
18193  # Don't add to $LIBS permanently.
18194  ac_save_LIBS=$LIBS
18195  LIBS="-lX11 $LIBS"
18196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197/* end confdefs.h.  */
18198#include <X11/Xlib.h>
18199int
18200main ()
18201{
18202XrmInitialize ()
18203  ;
18204  return 0;
18205}
18206_ACEOF
18207if ac_fn_c_try_link "$LINENO"; then :
18208  LIBS=$ac_save_LIBS
18209# We can link X programs with no special library path.
18210ac_x_libraries=
18211else
18212  LIBS=$ac_save_LIBS
18213for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18214do
18215  # Don't even attempt the hair of trying to link an X program!
18216  for ac_extension in a so sl dylib la dll; do
18217    if test -r "$ac_dir/libX11.$ac_extension"; then
18218      ac_x_libraries=$ac_dir
18219      break 2
18220    fi
18221  done
18222done
18223fi
18224rm -f core conftest.err conftest.$ac_objext \
18225    conftest$ac_exeext conftest.$ac_ext
18226fi # $ac_x_libraries = no
18227
18228case $ac_x_includes,$ac_x_libraries in #(
18229  no,* | *,no | *\'*)
18230    # Didn't find X, or a directory has "'" in its name.
18231    ac_cv_have_x="have_x=no";; #(
18232  *)
18233    # Record where we found X for the cache.
18234    ac_cv_have_x="have_x=yes\
18235	ac_x_includes='$ac_x_includes'\
18236	ac_x_libraries='$ac_x_libraries'"
18237esac
18238fi
18239;; #(
18240    *) have_x=yes;;
18241  esac
18242  eval "$ac_cv_have_x"
18243fi # $with_x != no
18244
18245if test "$have_x" != yes; then
18246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18247$as_echo "$have_x" >&6; }
18248  no_x=yes
18249else
18250  # If each of the values was on the command line, it overrides each guess.
18251  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18252  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18253  # Update the cache value to reflect the command line values.
18254  ac_cv_have_x="have_x=yes\
18255	ac_x_includes='$x_includes'\
18256	ac_x_libraries='$x_libraries'"
18257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18258$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18259fi
18260
18261if test "$no_x" = yes; then
18262  # Not all programs may use this symbol, but it does not hurt to define it.
18263
18264$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18265
18266  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18267else
18268  if test -n "$x_includes"; then
18269    X_CFLAGS="$X_CFLAGS -I$x_includes"
18270  fi
18271
18272  # It would also be nice to do this for all -L options, not just this one.
18273  if test -n "$x_libraries"; then
18274    X_LIBS="$X_LIBS -L$x_libraries"
18275    # For Solaris; some versions of Sun CC require a space after -R and
18276    # others require no space.  Words are not sufficient . . . .
18277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18278$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18279    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18280    ac_xsave_c_werror_flag=$ac_c_werror_flag
18281    ac_c_werror_flag=yes
18282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283/* end confdefs.h.  */
18284
18285int
18286main ()
18287{
18288
18289  ;
18290  return 0;
18291}
18292_ACEOF
18293if ac_fn_c_try_link "$LINENO"; then :
18294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18295$as_echo "no" >&6; }
18296       X_LIBS="$X_LIBS -R$x_libraries"
18297else
18298  LIBS="$ac_xsave_LIBS -R $x_libraries"
18299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300/* end confdefs.h.  */
18301
18302int
18303main ()
18304{
18305
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310if ac_fn_c_try_link "$LINENO"; then :
18311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312$as_echo "yes" >&6; }
18313	  X_LIBS="$X_LIBS -R $x_libraries"
18314else
18315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18316$as_echo "neither works" >&6; }
18317fi
18318rm -f core conftest.err conftest.$ac_objext \
18319    conftest$ac_exeext conftest.$ac_ext
18320fi
18321rm -f core conftest.err conftest.$ac_objext \
18322    conftest$ac_exeext conftest.$ac_ext
18323    ac_c_werror_flag=$ac_xsave_c_werror_flag
18324    LIBS=$ac_xsave_LIBS
18325  fi
18326
18327  # Check for system-dependent libraries X programs must link with.
18328  # Do this before checking for the system-independent R6 libraries
18329  # (-lICE), since we may need -lsocket or whatever for X linking.
18330
18331  if test "$ISC" = yes; then
18332    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18333  else
18334    # Martyn Johnson says this is needed for Ultrix, if the X
18335    # libraries were built with DECnet support.  And Karl Berry says
18336    # the Alpha needs dnet_stub (dnet does not exist).
18337    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339/* end confdefs.h.  */
18340
18341/* Override any GCC internal prototype to avoid an error.
18342   Use char because int might match the return type of a GCC
18343   builtin and then its argument prototype would still apply.  */
18344#ifdef __cplusplus
18345extern "C"
18346#endif
18347char XOpenDisplay ();
18348int
18349main ()
18350{
18351return XOpenDisplay ();
18352  ;
18353  return 0;
18354}
18355_ACEOF
18356if ac_fn_c_try_link "$LINENO"; then :
18357
18358else
18359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18360$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18361if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18362  $as_echo_n "(cached) " >&6
18363else
18364  ac_check_lib_save_LIBS=$LIBS
18365LIBS="-ldnet  $LIBS"
18366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367/* end confdefs.h.  */
18368
18369/* Override any GCC internal prototype to avoid an error.
18370   Use char because int might match the return type of a GCC
18371   builtin and then its argument prototype would still apply.  */
18372#ifdef __cplusplus
18373extern "C"
18374#endif
18375char dnet_ntoa ();
18376int
18377main ()
18378{
18379return dnet_ntoa ();
18380  ;
18381  return 0;
18382}
18383_ACEOF
18384if ac_fn_c_try_link "$LINENO"; then :
18385  ac_cv_lib_dnet_dnet_ntoa=yes
18386else
18387  ac_cv_lib_dnet_dnet_ntoa=no
18388fi
18389rm -f core conftest.err conftest.$ac_objext \
18390    conftest$ac_exeext conftest.$ac_ext
18391LIBS=$ac_check_lib_save_LIBS
18392fi
18393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18394$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18395if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18396  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18397fi
18398
18399    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18400      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18401$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18402if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18403  $as_echo_n "(cached) " >&6
18404else
18405  ac_check_lib_save_LIBS=$LIBS
18406LIBS="-ldnet_stub  $LIBS"
18407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h.  */
18409
18410/* Override any GCC internal prototype to avoid an error.
18411   Use char because int might match the return type of a GCC
18412   builtin and then its argument prototype would still apply.  */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416char dnet_ntoa ();
18417int
18418main ()
18419{
18420return dnet_ntoa ();
18421  ;
18422  return 0;
18423}
18424_ACEOF
18425if ac_fn_c_try_link "$LINENO"; then :
18426  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18427else
18428  ac_cv_lib_dnet_stub_dnet_ntoa=no
18429fi
18430rm -f core conftest.err conftest.$ac_objext \
18431    conftest$ac_exeext conftest.$ac_ext
18432LIBS=$ac_check_lib_save_LIBS
18433fi
18434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18435$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18436if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18437  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18438fi
18439
18440    fi
18441fi
18442rm -f core conftest.err conftest.$ac_objext \
18443    conftest$ac_exeext conftest.$ac_ext
18444    LIBS="$ac_xsave_LIBS"
18445
18446    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
18447    # to get the SysV transport functions.
18448    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18449    # needs -lnsl.
18450    # The nsl library prevents programs from opening the X display
18451    # on Irix 5.2, according to T.E. Dickey.
18452    # The functions gethostbyname, getservbyname, and inet_addr are
18453    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18454    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18455if test "x$ac_cv_func_gethostbyname" = xyes; then :
18456
18457fi
18458
18459    if test $ac_cv_func_gethostbyname = no; then
18460      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18461$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18462if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18463  $as_echo_n "(cached) " >&6
18464else
18465  ac_check_lib_save_LIBS=$LIBS
18466LIBS="-lnsl  $LIBS"
18467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468/* end confdefs.h.  */
18469
18470/* Override any GCC internal prototype to avoid an error.
18471   Use char because int might match the return type of a GCC
18472   builtin and then its argument prototype would still apply.  */
18473#ifdef __cplusplus
18474extern "C"
18475#endif
18476char gethostbyname ();
18477int
18478main ()
18479{
18480return gethostbyname ();
18481  ;
18482  return 0;
18483}
18484_ACEOF
18485if ac_fn_c_try_link "$LINENO"; then :
18486  ac_cv_lib_nsl_gethostbyname=yes
18487else
18488  ac_cv_lib_nsl_gethostbyname=no
18489fi
18490rm -f core conftest.err conftest.$ac_objext \
18491    conftest$ac_exeext conftest.$ac_ext
18492LIBS=$ac_check_lib_save_LIBS
18493fi
18494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18495$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18496if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18497  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18498fi
18499
18500      if test $ac_cv_lib_nsl_gethostbyname = no; then
18501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18502$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18503if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18504  $as_echo_n "(cached) " >&6
18505else
18506  ac_check_lib_save_LIBS=$LIBS
18507LIBS="-lbsd  $LIBS"
18508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509/* end confdefs.h.  */
18510
18511/* Override any GCC internal prototype to avoid an error.
18512   Use char because int might match the return type of a GCC
18513   builtin and then its argument prototype would still apply.  */
18514#ifdef __cplusplus
18515extern "C"
18516#endif
18517char gethostbyname ();
18518int
18519main ()
18520{
18521return gethostbyname ();
18522  ;
18523  return 0;
18524}
18525_ACEOF
18526if ac_fn_c_try_link "$LINENO"; then :
18527  ac_cv_lib_bsd_gethostbyname=yes
18528else
18529  ac_cv_lib_bsd_gethostbyname=no
18530fi
18531rm -f core conftest.err conftest.$ac_objext \
18532    conftest$ac_exeext conftest.$ac_ext
18533LIBS=$ac_check_lib_save_LIBS
18534fi
18535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18536$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18537if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18538  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18539fi
18540
18541      fi
18542    fi
18543
18544    # [email protected] says without -lsocket,
18545    # socket/setsockopt and other routines are undefined under SCO ODT
18546    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18547    # on later versions), says Simon Leinen: it contains gethostby*
18548    # variants that don't use the name server (or something).  -lsocket
18549    # must be given before -lnsl if both are needed.  We assume that
18550    # if connect needs -lnsl, so does gethostbyname.
18551    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18552if test "x$ac_cv_func_connect" = xyes; then :
18553
18554fi
18555
18556    if test $ac_cv_func_connect = no; then
18557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18558$as_echo_n "checking for connect in -lsocket... " >&6; }
18559if ${ac_cv_lib_socket_connect+:} false; then :
18560  $as_echo_n "(cached) " >&6
18561else
18562  ac_check_lib_save_LIBS=$LIBS
18563LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565/* end confdefs.h.  */
18566
18567/* Override any GCC internal prototype to avoid an error.
18568   Use char because int might match the return type of a GCC
18569   builtin and then its argument prototype would still apply.  */
18570#ifdef __cplusplus
18571extern "C"
18572#endif
18573char connect ();
18574int
18575main ()
18576{
18577return connect ();
18578  ;
18579  return 0;
18580}
18581_ACEOF
18582if ac_fn_c_try_link "$LINENO"; then :
18583  ac_cv_lib_socket_connect=yes
18584else
18585  ac_cv_lib_socket_connect=no
18586fi
18587rm -f core conftest.err conftest.$ac_objext \
18588    conftest$ac_exeext conftest.$ac_ext
18589LIBS=$ac_check_lib_save_LIBS
18590fi
18591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18592$as_echo "$ac_cv_lib_socket_connect" >&6; }
18593if test "x$ac_cv_lib_socket_connect" = xyes; then :
18594  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18595fi
18596
18597    fi
18598
18599    # Guillermo Gomez says -lposix is necessary on A/UX.
18600    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18601if test "x$ac_cv_func_remove" = xyes; then :
18602
18603fi
18604
18605    if test $ac_cv_func_remove = no; then
18606      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18607$as_echo_n "checking for remove in -lposix... " >&6; }
18608if ${ac_cv_lib_posix_remove+:} false; then :
18609  $as_echo_n "(cached) " >&6
18610else
18611  ac_check_lib_save_LIBS=$LIBS
18612LIBS="-lposix  $LIBS"
18613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614/* end confdefs.h.  */
18615
18616/* Override any GCC internal prototype to avoid an error.
18617   Use char because int might match the return type of a GCC
18618   builtin and then its argument prototype would still apply.  */
18619#ifdef __cplusplus
18620extern "C"
18621#endif
18622char remove ();
18623int
18624main ()
18625{
18626return remove ();
18627  ;
18628  return 0;
18629}
18630_ACEOF
18631if ac_fn_c_try_link "$LINENO"; then :
18632  ac_cv_lib_posix_remove=yes
18633else
18634  ac_cv_lib_posix_remove=no
18635fi
18636rm -f core conftest.err conftest.$ac_objext \
18637    conftest$ac_exeext conftest.$ac_ext
18638LIBS=$ac_check_lib_save_LIBS
18639fi
18640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18641$as_echo "$ac_cv_lib_posix_remove" >&6; }
18642if test "x$ac_cv_lib_posix_remove" = xyes; then :
18643  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18644fi
18645
18646    fi
18647
18648    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18649    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18650if test "x$ac_cv_func_shmat" = xyes; then :
18651
18652fi
18653
18654    if test $ac_cv_func_shmat = no; then
18655      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18656$as_echo_n "checking for shmat in -lipc... " >&6; }
18657if ${ac_cv_lib_ipc_shmat+:} false; then :
18658  $as_echo_n "(cached) " >&6
18659else
18660  ac_check_lib_save_LIBS=$LIBS
18661LIBS="-lipc  $LIBS"
18662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664
18665/* Override any GCC internal prototype to avoid an error.
18666   Use char because int might match the return type of a GCC
18667   builtin and then its argument prototype would still apply.  */
18668#ifdef __cplusplus
18669extern "C"
18670#endif
18671char shmat ();
18672int
18673main ()
18674{
18675return shmat ();
18676  ;
18677  return 0;
18678}
18679_ACEOF
18680if ac_fn_c_try_link "$LINENO"; then :
18681  ac_cv_lib_ipc_shmat=yes
18682else
18683  ac_cv_lib_ipc_shmat=no
18684fi
18685rm -f core conftest.err conftest.$ac_objext \
18686    conftest$ac_exeext conftest.$ac_ext
18687LIBS=$ac_check_lib_save_LIBS
18688fi
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18690$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18691if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18692  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18693fi
18694
18695    fi
18696  fi
18697
18698  # Check for libraries that X11R6 Xt/Xaw programs need.
18699  ac_save_LDFLAGS=$LDFLAGS
18700  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18701  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18702  # check for ICE first), but we must link in the order -lSM -lICE or
18703  # we get undefined symbols.  So assume we have SM if we have ICE.
18704  # These have to be linked with before -lX11, unlike the other
18705  # libraries we check for below, so use a different variable.
18706  # John Interrante, Karl Berry
18707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18708$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18709if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  ac_check_lib_save_LIBS=$LIBS
18713LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716
18717/* Override any GCC internal prototype to avoid an error.
18718   Use char because int might match the return type of a GCC
18719   builtin and then its argument prototype would still apply.  */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char IceConnectionNumber ();
18724int
18725main ()
18726{
18727return IceConnectionNumber ();
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_c_try_link "$LINENO"; then :
18733  ac_cv_lib_ICE_IceConnectionNumber=yes
18734else
18735  ac_cv_lib_ICE_IceConnectionNumber=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext \
18738    conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18742$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18743if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18744  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18745fi
18746
18747  LDFLAGS=$ac_save_LDFLAGS
18748
18749fi
18750
18751
18752
18753
18754
18755ac_ext=c
18756ac_cpp='$CPP $CPPFLAGS'
18757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18759ac_compiler_gnu=$ac_cv_c_compiler_gnu
18760
18761ax_pthread_ok=no
18762
18763
18764if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18765        save_CFLAGS="$CFLAGS"
18766        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18767        save_LIBS="$LIBS"
18768        LIBS="$PTHREAD_LIBS $LIBS"
18769        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18770$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772/* end confdefs.h.  */
18773
18774/* Override any GCC internal prototype to avoid an error.
18775   Use char because int might match the return type of a GCC
18776   builtin and then its argument prototype would still apply.  */
18777#ifdef __cplusplus
18778extern "C"
18779#endif
18780char pthread_join ();
18781int
18782main ()
18783{
18784return pthread_join ();
18785  ;
18786  return 0;
18787}
18788_ACEOF
18789if ac_fn_c_try_link "$LINENO"; then :
18790  ax_pthread_ok=yes
18791fi
18792rm -f core conftest.err conftest.$ac_objext \
18793    conftest$ac_exeext conftest.$ac_ext
18794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18795$as_echo "$ax_pthread_ok" >&6; }
18796        if test x"$ax_pthread_ok" = xno; then
18797                PTHREAD_LIBS=""
18798                PTHREAD_CFLAGS=""
18799        fi
18800        LIBS="$save_LIBS"
18801        CFLAGS="$save_CFLAGS"
18802fi
18803
18804
18805
18806ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18807
18808
18809
18810case "${host_cpu}-${host_os}" in
18811        *solaris*)
18812
18813
18814        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18815        ;;
18816
18817	*-darwin*)
18818	ax_pthread_flags="-pthread $ax_pthread_flags"
18819	;;
18820esac
18821
18822if test x"$ax_pthread_ok" = xno; then
18823for flag in $ax_pthread_flags; do
18824
18825        case $flag in
18826                none)
18827                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18828$as_echo_n "checking whether pthreads work without any flags... " >&6; }
18829                ;;
18830
18831                -*)
18832                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18833$as_echo_n "checking whether pthreads work with $flag... " >&6; }
18834                PTHREAD_CFLAGS="$flag"
18835                ;;
18836
18837		pthread-config)
18838		# Extract the first word of "pthread-config", so it can be a program name with args.
18839set dummy pthread-config; ac_word=$2
18840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18841$as_echo_n "checking for $ac_word... " >&6; }
18842if ${ac_cv_prog_ax_pthread_config+:} false; then :
18843  $as_echo_n "(cached) " >&6
18844else
18845  if test -n "$ax_pthread_config"; then
18846  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18847else
18848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18849for as_dir in $PATH
18850do
18851  IFS=$as_save_IFS
18852  test -z "$as_dir" && as_dir=.
18853    for ac_exec_ext in '' $ac_executable_extensions; do
18854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18855    ac_cv_prog_ax_pthread_config="yes"
18856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18857    break 2
18858  fi
18859done
18860  done
18861IFS=$as_save_IFS
18862
18863  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18864fi
18865fi
18866ax_pthread_config=$ac_cv_prog_ax_pthread_config
18867if test -n "$ax_pthread_config"; then
18868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18869$as_echo "$ax_pthread_config" >&6; }
18870else
18871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18872$as_echo "no" >&6; }
18873fi
18874
18875
18876		if test x"$ax_pthread_config" = xno; then continue; fi
18877		PTHREAD_CFLAGS="`pthread-config --cflags`"
18878		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18879		;;
18880
18881                *)
18882                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18883$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18884                PTHREAD_LIBS="-l$flag"
18885                ;;
18886        esac
18887
18888        save_LIBS="$LIBS"
18889        save_CFLAGS="$CFLAGS"
18890        LIBS="$PTHREAD_LIBS $LIBS"
18891        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18892
18893                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894/* end confdefs.h.  */
18895#include <pthread.h>
18896	             static void routine(void* a) {a=0;}
18897	             static void* start_routine(void* a) {return a;}
18898int
18899main ()
18900{
18901pthread_t th; pthread_attr_t attr;
18902                     pthread_create(&th,0,start_routine,0);
18903                     pthread_join(th, 0);
18904                     pthread_attr_init(&attr);
18905                     pthread_cleanup_push(routine, 0);
18906                     pthread_cleanup_pop(0);
18907  ;
18908  return 0;
18909}
18910_ACEOF
18911if ac_fn_c_try_link "$LINENO"; then :
18912  ax_pthread_ok=yes
18913fi
18914rm -f core conftest.err conftest.$ac_objext \
18915    conftest$ac_exeext conftest.$ac_ext
18916
18917        LIBS="$save_LIBS"
18918        CFLAGS="$save_CFLAGS"
18919
18920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18921$as_echo "$ax_pthread_ok" >&6; }
18922        if test "x$ax_pthread_ok" = xyes; then
18923                break;
18924        fi
18925
18926        PTHREAD_LIBS=""
18927        PTHREAD_CFLAGS=""
18928done
18929fi
18930
18931if test "x$ax_pthread_ok" = xyes; then
18932        save_LIBS="$LIBS"
18933        LIBS="$PTHREAD_LIBS $LIBS"
18934        save_CFLAGS="$CFLAGS"
18935        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18936
18937        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18938$as_echo_n "checking for joinable pthread attribute... " >&6; }
18939	attr_name=unknown
18940	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18941	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942/* end confdefs.h.  */
18943#include <pthread.h>
18944int
18945main ()
18946{
18947int attr=$attr; return attr;
18948  ;
18949  return 0;
18950}
18951_ACEOF
18952if ac_fn_c_try_link "$LINENO"; then :
18953  attr_name=$attr; break
18954fi
18955rm -f core conftest.err conftest.$ac_objext \
18956    conftest$ac_exeext conftest.$ac_ext
18957	done
18958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18959$as_echo "$attr_name" >&6; }
18960        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18961
18962cat >>confdefs.h <<_ACEOF
18963#define PTHREAD_CREATE_JOINABLE $attr_name
18964_ACEOF
18965
18966        fi
18967
18968        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18969$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18970        flag=no
18971        case "${host_cpu}-${host_os}" in
18972            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18973            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18974        esac
18975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18976$as_echo "${flag}" >&6; }
18977        if test "x$flag" != xno; then
18978            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18979        fi
18980
18981        LIBS="$save_LIBS"
18982        CFLAGS="$save_CFLAGS"
18983
18984        	if test x"$GCC" != xyes; then
18985          for ac_prog in xlc_r cc_r
18986do
18987  # Extract the first word of "$ac_prog", so it can be a program name with args.
18988set dummy $ac_prog; ac_word=$2
18989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18990$as_echo_n "checking for $ac_word... " >&6; }
18991if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18992  $as_echo_n "(cached) " >&6
18993else
18994  if test -n "$PTHREAD_CC"; then
18995  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18996else
18997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18998for as_dir in $PATH
18999do
19000  IFS=$as_save_IFS
19001  test -z "$as_dir" && as_dir=.
19002    for ac_exec_ext in '' $ac_executable_extensions; do
19003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19004    ac_cv_prog_PTHREAD_CC="$ac_prog"
19005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19006    break 2
19007  fi
19008done
19009  done
19010IFS=$as_save_IFS
19011
19012fi
19013fi
19014PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19015if test -n "$PTHREAD_CC"; then
19016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19017$as_echo "$PTHREAD_CC" >&6; }
19018else
19019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020$as_echo "no" >&6; }
19021fi
19022
19023
19024  test -n "$PTHREAD_CC" && break
19025done
19026test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19027
19028        else
19029          PTHREAD_CC=$CC
19030	fi
19031else
19032        PTHREAD_CC="$CC"
19033fi
19034
19035
19036
19037
19038
19039if test x"$ax_pthread_ok" = xyes; then
19040
19041$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19042
19043        :
19044else
19045        ax_pthread_ok=no
19046
19047fi
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
19054
19055
19056
19057ac_ext=c
19058ac_cpp='$CPP $CPPFLAGS'
19059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061ac_compiler_gnu=$ac_cv_c_compiler_gnu
19062
19063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19064$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19065if ${ax_cv_c_compiler_ms+:} false; then :
19066  $as_echo_n "(cached) " >&6
19067else
19068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069/* end confdefs.h.  */
19070
19071int
19072main ()
19073{
19074#ifndef _MSC_VER
19075       choke me
19076#endif
19077
19078  ;
19079  return 0;
19080}
19081_ACEOF
19082if ac_fn_c_try_compile "$LINENO"; then :
19083  ax_compiler_ms=yes
19084else
19085  ax_compiler_ms=no
19086fi
19087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088ax_cv_c_compiler_ms=$ax_compiler_ms
19089
19090fi
19091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19092$as_echo "$ax_cv_c_compiler_ms" >&6; }
19093if test X$ax_compiler_ms = Xno; then :
19094  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19095fi
19096
19097if test "X$no_x" != "Xyes"; then :
19098  if test -n "$x_includes"; then :
19099  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19100fi
19101       if test -n "$x_libraries"; then :
19102  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19103fi
19104fi
19105
19106ax_save_CPPFLAGS="${CPPFLAGS}"
19107CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19108for ac_header in GL/gl.h OpenGL/gl.h
19109do :
19110  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19113  cat >>confdefs.h <<_ACEOF
19114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19115_ACEOF
19116
19117fi
19118
19119done
19120
19121CPPFLAGS="${ax_save_CPPFLAGS}"
19122
19123for ac_header in windows.h
19124do :
19125  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19126if test "x$ac_cv_header_windows_h" = xyes; then :
19127  cat >>confdefs.h <<_ACEOF
19128#define HAVE_WINDOWS_H 1
19129_ACEOF
19130
19131fi
19132
19133done
19134
19135
19136
19137
19138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19139$as_echo_n "checking for OpenGL library... " >&6; }
19140if ${ax_cv_check_gl_libgl+:} false; then :
19141  $as_echo_n "(cached) " >&6
19142else
19143  ax_cv_check_gl_libgl="no"
19144case $host_cpu in
19145  x86_64) ax_check_gl_libdir=lib64 ;;
19146  *)      ax_check_gl_libdir=lib ;;
19147esac
19148ax_save_CPPFLAGS="${CPPFLAGS}"
19149CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19150ax_save_LIBS="${LIBS}"
19151LIBS=""
19152ax_check_libs="-lopengl32 -lGL"
19153for ax_lib in ${ax_check_libs}; do
19154  if test X$ax_compiler_ms = Xyes; then :
19155  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19156else
19157  ax_try_lib="${ax_lib}"
19158fi
19159  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161/* end confdefs.h.  */
19162
19163# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19164#   include <windows.h>
19165# endif
19166# ifdef HAVE_GL_GL_H
19167#   include <GL/gl.h>
19168# elif defined(HAVE_OPENGL_GL_H)
19169#   include <OpenGL/gl.h>
19170# else
19171#   error no gl.h
19172# endif
19173int
19174main ()
19175{
19176glBegin(0)
19177  ;
19178  return 0;
19179}
19180_ACEOF
19181if ac_fn_c_try_link "$LINENO"; then :
19182  ax_cv_check_gl_libgl="${ax_try_lib}"; break
19183else
19184  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}"
19185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186/* end confdefs.h.  */
19187
19188# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19189#   include <windows.h>
19190# endif
19191# ifdef HAVE_GL_GL_H
19192#   include <GL/gl.h>
19193# elif defined(HAVE_OPENGL_GL_H)
19194#   include <OpenGL/gl.h>
19195# else
19196#   error no gl.h
19197# endif
19198int
19199main ()
19200{
19201glBegin(0)
19202  ;
19203  return 0;
19204}
19205_ACEOF
19206if ac_fn_c_try_link "$LINENO"; then :
19207  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19208else
19209  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}"
19210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211/* end confdefs.h.  */
19212
19213# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19214#   include <windows.h>
19215# endif
19216# ifdef HAVE_GL_GL_H
19217#   include <GL/gl.h>
19218# elif defined(HAVE_OPENGL_GL_H)
19219#   include <OpenGL/gl.h>
19220# else
19221#   error no gl.h
19222# endif
19223int
19224main ()
19225{
19226glBegin(0)
19227  ;
19228  return 0;
19229}
19230_ACEOF
19231if ac_fn_c_try_link "$LINENO"; then :
19232  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19233fi
19234rm -f core conftest.err conftest.$ac_objext \
19235    conftest$ac_exeext conftest.$ac_ext
19236fi
19237rm -f core conftest.err conftest.$ac_objext \
19238    conftest$ac_exeext conftest.$ac_ext
19239fi
19240rm -f core conftest.err conftest.$ac_objext \
19241    conftest$ac_exeext conftest.$ac_ext
19242done
19243
19244if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19245  LIBS='-framework OpenGL'
19246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247/* end confdefs.h.  */
19248
19249# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19250#   include <windows.h>
19251# endif
19252# ifdef HAVE_GL_GL_H
19253#   include <GL/gl.h>
19254# elif defined(HAVE_OPENGL_GL_H)
19255#   include <OpenGL/gl.h>
19256# else
19257#   error no gl.h
19258# endif
19259int
19260main ()
19261{
19262glBegin(0)
19263  ;
19264  return 0;
19265}
19266_ACEOF
19267if ac_fn_c_try_link "$LINENO"; then :
19268  ax_cv_check_gl_libgl="$LIBS"
19269fi
19270rm -f core conftest.err conftest.$ac_objext \
19271    conftest$ac_exeext conftest.$ac_ext
19272fi
19273
19274LIBS=${ax_save_LIBS}
19275CPPFLAGS=${ax_save_CPPFLAGS}
19276fi
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19278$as_echo "$ax_cv_check_gl_libgl" >&6; }
19279
19280if test "X$ax_cv_check_gl_libgl" = Xno; then :
19281  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
19282else
19283  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
19284fi
19285ac_ext=c
19286ac_cpp='$CPP $CPPFLAGS'
19287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289ac_compiler_gnu=$ac_cv_c_compiler_gnu
19290
19291
19292
19293
19294
19295GLU_CFLAGS="${GL_CFLAGS}"
19296
19297ax_save_CPPFLAGS="${CPPFLAGS}"
19298CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19299for ac_header in GL/glu.h OpenGL/glu.h
19300do :
19301  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19303if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19304  cat >>confdefs.h <<_ACEOF
19305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19306_ACEOF
19307
19308fi
19309
19310done
19311
19312CPPFLAGS="${ax_save_CPPFLAGS}"
19313
19314
19315
19316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
19317$as_echo_n "checking for OpenGL Utility library... " >&6; }
19318if ${ax_cv_check_glu_libglu+:} false; then :
19319  $as_echo_n "(cached) " >&6
19320else
19321  ax_cv_check_glu_libglu="no"
19322ax_save_CPPFLAGS="${CPPFLAGS}"
19323CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19324ax_save_LIBS="${LIBS}"
19325
19326LIBS="${GL_LIBS} ${ax_save_LIBS}"
19327ac_ext=cpp
19328ac_cpp='$CXXCPP $CPPFLAGS'
19329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19332
19333if test X$ax_compiler_ms = Xyes; then :
19334  ac_ext=c
19335ac_cpp='$CPP $CPPFLAGS'
19336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338ac_compiler_gnu=$ac_cv_c_compiler_gnu
19339
19340fi
19341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342/* end confdefs.h.  */
19343
19344# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19345#   include <windows.h>
19346# endif
19347# ifdef HAVE_GL_GLU_H
19348#   include <GL/glu.h>
19349# elif defined(HAVE_OPENGL_GLU_H)
19350#   include <OpenGL/glu.h>
19351# else
19352#   error no glu.h
19353# endif
19354int
19355main ()
19356{
19357gluBeginCurve(0)
19358  ;
19359  return 0;
19360}
19361_ACEOF
19362if ac_fn_c_try_link "$LINENO"; then :
19363  ax_cv_check_glu_libglu=yes
19364else
19365  LIBS=""
19366ax_check_libs="-lglu32 -lGLU"
19367for ax_lib in ${ax_check_libs}; do
19368  if test X$ax_compiler_ms = Xyes; then :
19369  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19370else
19371  ax_try_lib="${ax_lib}"
19372fi
19373  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375/* end confdefs.h.  */
19376
19377# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19378#   include <windows.h>
19379# endif
19380# ifdef HAVE_GL_GLU_H
19381#   include <GL/glu.h>
19382# elif defined(HAVE_OPENGL_GLU_H)
19383#   include <OpenGL/glu.h>
19384# else
19385#   error no glu.h
19386# endif
19387int
19388main ()
19389{
19390gluBeginCurve(0)
19391  ;
19392  return 0;
19393}
19394_ACEOF
19395if ac_fn_c_try_link "$LINENO"; then :
19396  ax_cv_check_glu_libglu="${ax_try_lib}"; break
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399    conftest$ac_exeext conftest.$ac_ext
19400done
19401
19402fi
19403rm -f core conftest.err conftest.$ac_objext \
19404    conftest$ac_exeext conftest.$ac_ext
19405if test X$ax_compiler_ms = Xyes; then :
19406  ac_ext=cpp
19407ac_cpp='$CXXCPP $CPPFLAGS'
19408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19411
19412fi
19413ac_ext=c
19414ac_cpp='$CPP $CPPFLAGS'
19415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417ac_compiler_gnu=$ac_cv_c_compiler_gnu
19418
19419
19420LIBS=${ax_save_LIBS}
19421CPPFLAGS=${ax_save_CPPFLAGS}
19422fi
19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19424$as_echo "$ax_cv_check_glu_libglu" >&6; }
19425if test "X$ax_cv_check_glu_libglu" = Xno; then :
19426  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19427else
19428  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19429  GLU_LIBS="$GL_LIBS"
19430else
19431  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19432fi
19433fi
19434
19435
19436
19437if test "X$ax_cv_check_glu_libglu" != Xno; then :
19438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
19439$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
19440if ${ax_cv_varargs_glu_tesscb+:} false; then :
19441  $as_echo_n "(cached) " >&6
19442else
19443  ax_cv_varargs_glu_tesscb=no
19444ax_save_CFLAGS="$CFLAGS"
19445CFLAGS="$GL_CFLAGS $CFLAGS"
19446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447/* end confdefs.h.  */
19448
19449# ifdef HAVE_GL_GLU_H
19450#   include <GL/glu.h>
19451# else
19452#   include <OpenGL/glu.h>
19453# endif
19454int
19455main ()
19456{
19457GLvoid (*func)(...); gluTessCallback(0, 0, func)
19458  ;
19459  return 0;
19460}
19461_ACEOF
19462if ac_fn_c_try_compile "$LINENO"; then :
19463  ax_cv_varargs_glu_tesscb=yes
19464fi
19465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466CFLAGS="$ax_save_CFLAGS"
19467fi
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19469$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19470if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
19471
19472$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19473
19474fi
19475fi
19476
19477
19478ax_save_CPPFLAGS="${CPPFLAGS}"
19479CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19480for ac_header in GL/glut.h GLUT/glut.h
19481do :
19482  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19483ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19485  cat >>confdefs.h <<_ACEOF
19486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19487_ACEOF
19488
19489fi
19490
19491done
19492
19493CPPFLAGS="${ax_save_CPPFLAGS}"
19494
19495GLUT_CFLAGS=${GLU_CFLAGS}
19496GLUT_LIBS=${GLU_LIBS}
19497
19498
19499
19500if test X$no_x != Xyes; then :
19501  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19502fi
19503
19504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19505$as_echo_n "checking for GLUT library... " >&6; }
19506if ${ax_cv_check_glut_libglut+:} false; then :
19507  $as_echo_n "(cached) " >&6
19508else
19509  ax_cv_check_glut_libglut="no"
19510ac_ext=c
19511ac_cpp='$CPP $CPPFLAGS'
19512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514ac_compiler_gnu=$ac_cv_c_compiler_gnu
19515
19516ax_save_CPPFLAGS="${CPPFLAGS}"
19517CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19518ax_save_LIBS="${LIBS}"
19519LIBS=""
19520ax_check_libs="-lglut32 -lglut"
19521for ax_lib in ${ax_check_libs}; do
19522  if test X$ax_compiler_ms = Xyes; then :
19523  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19524else
19525  ax_try_lib="${ax_lib}"
19526fi
19527  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529/* end confdefs.h.  */
19530
19531# if HAVE_WINDOWS_H && defined(_WIN32)
19532#   include <windows.h>
19533# endif
19534# ifdef HAVE_GL_GLUT_H
19535#   include <GL/glut.h>
19536# elif defined(HAVE_GLUT_GLUT_H)
19537#   include <GLUT/glut.h>
19538# else
19539#   error no glut.h
19540# endif
19541int
19542main ()
19543{
19544glutMainLoop()
19545  ;
19546  return 0;
19547}
19548_ACEOF
19549if ac_fn_c_try_link "$LINENO"; then :
19550  ax_cv_check_glut_libglut="${ax_try_lib}"; break
19551fi
19552rm -f core conftest.err conftest.$ac_objext \
19553    conftest$ac_exeext conftest.$ac_ext
19554done
19555
19556if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19557  LIBS='-framework GLUT'
19558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559/* end confdefs.h.  */
19560
19561# if HAVE_WINDOWS_H && defined(_WIN32)
19562#   include <windows.h>
19563# endif
19564# ifdef HAVE_GL_GLUT_H
19565#   include <GL/glut.h>
19566# elif defined(HAVE_GLUT_GLUT_H)
19567#   include <GLUT/glut.h>
19568# else
19569#   error no glut.h
19570# endif
19571int
19572main ()
19573{
19574glutMainLoop()
19575  ;
19576  return 0;
19577}
19578_ACEOF
19579if ac_fn_c_try_link "$LINENO"; then :
19580  ax_cv_check_glut_libglut="$LIBS"
19581fi
19582rm -f core conftest.err conftest.$ac_objext \
19583    conftest$ac_exeext conftest.$ac_ext
19584fi
19585
19586CPPFLAGS="${ax_save_CPPFLAGS}"
19587LIBS="${ax_save_LIBS}"
19588ac_ext=c
19589ac_cpp='$CPP $CPPFLAGS'
19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_c_compiler_gnu
19593
19594fi
19595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19596$as_echo "$ax_cv_check_glut_libglut" >&6; }
19597
19598if test "X$ax_cv_check_glut_libglut" = Xno; then :
19599  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19600else
19601  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19602fi
19603
19604
19605
19606
19607
19608if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19609	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19610  HAVE_OPENGL=yes
19611fi
19612
19613 if test "$HAVE_OPENGL" = "yes"; then
19614  HAVE_OPENGL_TRUE=
19615  HAVE_OPENGL_FALSE='#'
19616else
19617  HAVE_OPENGL_TRUE='#'
19618  HAVE_OPENGL_FALSE=
19619fi
19620
19621
19622
19623win32_io_ok=no
19624case "${host_os}" in
19625    cygwin*)
19626        ;;
19627    *)
19628        if test x"$ac_cv_header_windows_h" = xyes; then
19629            win32_io_ok=yes
19630
19631$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
19632
19633	fi
19634        ;;
19635esac
19636 if test "$win32_io_ok" = yes; then
19637  WIN32_IO_TRUE=
19638  WIN32_IO_FALSE='#'
19639else
19640  WIN32_IO_TRUE='#'
19641  WIN32_IO_FALSE=
19642fi
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652# Check whether --enable-strip-chopping was given.
19653if test "${enable_strip_chopping+set}" = set; then :
19654  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
19655else
19656  HAVE_STRIPCHOP=yes
19657fi
19658
19659
19660# Check whether --with-default-strip-size was given.
19661if test "${with_default_strip_size+set}" = set; then :
19662  withval=$with_default_strip_size;
19663fi
19664
19665
19666if test "$HAVE_STRIPCHOP" = "yes" \
19667	-a "x$with_default_strip_size" != "xno"; then
19668
19669$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
19670
19671
19672  if test "x$with_default_strip_size" = "x" \
19673	  -o "x$with_default_strip_size" = "xyes"; then
19674    with_default_strip_size="8192"
19675  fi
19676
19677
19678cat >>confdefs.h <<_ACEOF
19679#define STRIP_SIZE_DEFAULT $with_default_strip_size
19680_ACEOF
19681
19682
19683fi
19684
19685
19686$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
19687
19688
19689
19690# Check whether --enable-extrasample-as-alpha was given.
19691if test "${enable_extrasample_as_alpha+set}" = set; then :
19692  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
19693else
19694  HAVE_EXTRASAMPLE_AS_ALPHA=yes
19695fi
19696
19697
19698if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
19699
19700$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
19701
19702fi
19703
19704
19705# Check whether --enable-check-ycbcr-subsampling was given.
19706if test "${enable_check_ycbcr_subsampling+set}" = set; then :
19707  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
19708else
19709  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
19710fi
19711
19712
19713if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
19714
19715$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
19716
19717fi
19718
19719
19720
19721
19722ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
19723
19724
19725ac_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"
19726
19727cat >confcache <<\_ACEOF
19728# This file is a shell script that caches the results of configure
19729# tests run on this system so they can be shared between configure
19730# scripts and configure runs, see configure's option --config-cache.
19731# It is not useful on other systems.  If it contains results you don't
19732# want to keep, you may remove or edit it.
19733#
19734# config.status only pays attention to the cache file if you give it
19735# the --recheck option to rerun configure.
19736#
19737# `ac_cv_env_foo' variables (set or unset) will be overridden when
19738# loading this file, other *unset* `ac_cv_foo' will be assigned the
19739# following values.
19740
19741_ACEOF
19742
19743# The following way of writing the cache mishandles newlines in values,
19744# but we know of no workaround that is simple, portable, and efficient.
19745# So, we kill variables containing newlines.
19746# Ultrix sh set writes to stderr and can't be redirected directly,
19747# and sets the high bit in the cache file unless we assign to the vars.
19748(
19749  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19750    eval ac_val=\$$ac_var
19751    case $ac_val in #(
19752    *${as_nl}*)
19753      case $ac_var in #(
19754      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19756      esac
19757      case $ac_var in #(
19758      _ | IFS | as_nl) ;; #(
19759      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19760      *) { eval $ac_var=; unset $ac_var;} ;;
19761      esac ;;
19762    esac
19763  done
19764
19765  (set) 2>&1 |
19766    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19767    *${as_nl}ac_space=\ *)
19768      # `set' does not quote correctly, so add quotes: double-quote
19769      # substitution turns \\\\ into \\, and sed turns \\ into \.
19770      sed -n \
19771	"s/'/'\\\\''/g;
19772	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19773      ;; #(
19774    *)
19775      # `set' quotes correctly as required by POSIX, so do not add quotes.
19776      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19777      ;;
19778    esac |
19779    sort
19780) |
19781  sed '
19782     /^ac_cv_env_/b end
19783     t clear
19784     :clear
19785     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19786     t end
19787     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19788     :end' >>confcache
19789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19790  if test -w "$cache_file"; then
19791    if test "x$cache_file" != "x/dev/null"; then
19792      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19793$as_echo "$as_me: updating cache $cache_file" >&6;}
19794      if test ! -f "$cache_file" || test -h "$cache_file"; then
19795	cat confcache >"$cache_file"
19796      else
19797        case $cache_file in #(
19798        */* | ?:*)
19799	  mv -f confcache "$cache_file"$$ &&
19800	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19801        *)
19802	  mv -f confcache "$cache_file" ;;
19803	esac
19804      fi
19805    fi
19806  else
19807    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19808$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19809  fi
19810fi
19811rm -f confcache
19812
19813test "x$prefix" = xNONE && prefix=$ac_default_prefix
19814# Let make expand exec_prefix.
19815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19816
19817DEFS=-DHAVE_CONFIG_H
19818
19819ac_libobjs=
19820ac_ltlibobjs=
19821U=
19822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19823  # 1. Remove the extension, and $U if already installed.
19824  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19825  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19826  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19827  #    will be set to the directory where LIBOBJS objects are built.
19828  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19829  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19830done
19831LIBOBJS=$ac_libobjs
19832
19833LTLIBOBJS=$ac_ltlibobjs
19834
19835
19836 if test -n "$EXEEXT"; then
19837  am__EXEEXT_TRUE=
19838  am__EXEEXT_FALSE='#'
19839else
19840  am__EXEEXT_TRUE='#'
19841  am__EXEEXT_FALSE=
19842fi
19843
19844if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19845  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19846Usually this means the macro was only invoked conditionally." "$LINENO" 5
19847fi
19848if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19849  as_fn_error $? "conditional \"AMDEP\" was never defined.
19850Usually this means the macro was only invoked conditionally." "$LINENO" 5
19851fi
19852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19853  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19854Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855fi
19856if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19857  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19858Usually this means the macro was only invoked conditionally." "$LINENO" 5
19859fi
19860
19861if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
19862  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
19863Usually this means the macro was only invoked conditionally." "$LINENO" 5
19864fi
19865if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
19866  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
19867Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868fi
19869if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
19870  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
19871Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872fi
19873if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
19874  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
19875Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876fi
19877
19878: "${CONFIG_STATUS=./config.status}"
19879ac_write_fail=0
19880ac_clean_files_save=$ac_clean_files
19881ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19884as_write_fail=0
19885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19886#! $SHELL
19887# Generated by $as_me.
19888# Run this file to recreate the current configuration.
19889# Compiler output produced by configure, useful for debugging
19890# configure, is in config.log if it exists.
19891
19892debug=false
19893ac_cs_recheck=false
19894ac_cs_silent=false
19895
19896SHELL=\${CONFIG_SHELL-$SHELL}
19897export SHELL
19898_ASEOF
19899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19900## -------------------- ##
19901## M4sh Initialization. ##
19902## -------------------- ##
19903
19904# Be more Bourne compatible
19905DUALCASE=1; export DUALCASE # for MKS sh
19906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19907  emulate sh
19908  NULLCMD=:
19909  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19910  # is contrary to our usage.  Disable this feature.
19911  alias -g '${1+"$@"}'='"$@"'
19912  setopt NO_GLOB_SUBST
19913else
19914  case `(set -o) 2>/dev/null` in #(
19915  *posix*) :
19916    set -o posix ;; #(
19917  *) :
19918     ;;
19919esac
19920fi
19921
19922
19923as_nl='
19924'
19925export as_nl
19926# Printing a long string crashes Solaris 7 /usr/bin/printf.
19927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19930# Prefer a ksh shell builtin over an external printf program on Solaris,
19931# but without wasting forks for bash or zsh.
19932if test -z "$BASH_VERSION$ZSH_VERSION" \
19933    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19934  as_echo='print -r --'
19935  as_echo_n='print -rn --'
19936elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19937  as_echo='printf %s\n'
19938  as_echo_n='printf %s'
19939else
19940  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19941    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19942    as_echo_n='/usr/ucb/echo -n'
19943  else
19944    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19945    as_echo_n_body='eval
19946      arg=$1;
19947      case $arg in #(
19948      *"$as_nl"*)
19949	expr "X$arg" : "X\\(.*\\)$as_nl";
19950	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19951      esac;
19952      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19953    '
19954    export as_echo_n_body
19955    as_echo_n='sh -c $as_echo_n_body as_echo'
19956  fi
19957  export as_echo_body
19958  as_echo='sh -c $as_echo_body as_echo'
19959fi
19960
19961# The user is always right.
19962if test "${PATH_SEPARATOR+set}" != set; then
19963  PATH_SEPARATOR=:
19964  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19965    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19966      PATH_SEPARATOR=';'
19967  }
19968fi
19969
19970
19971# IFS
19972# We need space, tab and new line, in precisely that order.  Quoting is
19973# there to prevent editors from complaining about space-tab.
19974# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19975# splitting by setting IFS to empty value.)
19976IFS=" ""	$as_nl"
19977
19978# Find who we are.  Look in the path if we contain no directory separator.
19979as_myself=
19980case $0 in #((
19981  *[\\/]* ) as_myself=$0 ;;
19982  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19983for as_dir in $PATH
19984do
19985  IFS=$as_save_IFS
19986  test -z "$as_dir" && as_dir=.
19987    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19988  done
19989IFS=$as_save_IFS
19990
19991     ;;
19992esac
19993# We did not find ourselves, most probably we were run as `sh COMMAND'
19994# in which case we are not to be found in the path.
19995if test "x$as_myself" = x; then
19996  as_myself=$0
19997fi
19998if test ! -f "$as_myself"; then
19999  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20000  exit 1
20001fi
20002
20003# Unset variables that we do not need and which cause bugs (e.g. in
20004# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20005# suppresses any "Segmentation fault" message there.  '((' could
20006# trigger a bug in pdksh 5.2.14.
20007for as_var in BASH_ENV ENV MAIL MAILPATH
20008do eval test x\${$as_var+set} = xset \
20009  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20010done
20011PS1='$ '
20012PS2='> '
20013PS4='+ '
20014
20015# NLS nuisances.
20016LC_ALL=C
20017export LC_ALL
20018LANGUAGE=C
20019export LANGUAGE
20020
20021# CDPATH.
20022(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20023
20024
20025# as_fn_error STATUS ERROR [LINENO LOG_FD]
20026# ----------------------------------------
20027# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20028# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20029# script with STATUS, using 1 if that was 0.
20030as_fn_error ()
20031{
20032  as_status=$1; test $as_status -eq 0 && as_status=1
20033  if test "$4"; then
20034    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20035    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20036  fi
20037  $as_echo "$as_me: error: $2" >&2
20038  as_fn_exit $as_status
20039} # as_fn_error
20040
20041
20042# as_fn_set_status STATUS
20043# -----------------------
20044# Set $? to STATUS, without forking.
20045as_fn_set_status ()
20046{
20047  return $1
20048} # as_fn_set_status
20049
20050# as_fn_exit STATUS
20051# -----------------
20052# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20053as_fn_exit ()
20054{
20055  set +e
20056  as_fn_set_status $1
20057  exit $1
20058} # as_fn_exit
20059
20060# as_fn_unset VAR
20061# ---------------
20062# Portably unset VAR.
20063as_fn_unset ()
20064{
20065  { eval $1=; unset $1;}
20066}
20067as_unset=as_fn_unset
20068# as_fn_append VAR VALUE
20069# ----------------------
20070# Append the text in VALUE to the end of the definition contained in VAR. Take
20071# advantage of any shell optimizations that allow amortized linear growth over
20072# repeated appends, instead of the typical quadratic growth present in naive
20073# implementations.
20074if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20075  eval 'as_fn_append ()
20076  {
20077    eval $1+=\$2
20078  }'
20079else
20080  as_fn_append ()
20081  {
20082    eval $1=\$$1\$2
20083  }
20084fi # as_fn_append
20085
20086# as_fn_arith ARG...
20087# ------------------
20088# Perform arithmetic evaluation on the ARGs, and store the result in the
20089# global $as_val. Take advantage of shells that can avoid forks. The arguments
20090# must be portable across $(()) and expr.
20091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20092  eval 'as_fn_arith ()
20093  {
20094    as_val=$(( $* ))
20095  }'
20096else
20097  as_fn_arith ()
20098  {
20099    as_val=`expr "$@" || test $? -eq 1`
20100  }
20101fi # as_fn_arith
20102
20103
20104if expr a : '\(a\)' >/dev/null 2>&1 &&
20105   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20106  as_expr=expr
20107else
20108  as_expr=false
20109fi
20110
20111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20112  as_basename=basename
20113else
20114  as_basename=false
20115fi
20116
20117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20118  as_dirname=dirname
20119else
20120  as_dirname=false
20121fi
20122
20123as_me=`$as_basename -- "$0" ||
20124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20125	 X"$0" : 'X\(//\)$' \| \
20126	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20127$as_echo X/"$0" |
20128    sed '/^.*\/\([^/][^/]*\)\/*$/{
20129	    s//\1/
20130	    q
20131	  }
20132	  /^X\/\(\/\/\)$/{
20133	    s//\1/
20134	    q
20135	  }
20136	  /^X\/\(\/\).*/{
20137	    s//\1/
20138	    q
20139	  }
20140	  s/.*/./; q'`
20141
20142# Avoid depending upon Character Ranges.
20143as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20145as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20146as_cr_digits='0123456789'
20147as_cr_alnum=$as_cr_Letters$as_cr_digits
20148
20149ECHO_C= ECHO_N= ECHO_T=
20150case `echo -n x` in #(((((
20151-n*)
20152  case `echo 'xy\c'` in
20153  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20154  xy)  ECHO_C='\c';;
20155  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20156       ECHO_T='	';;
20157  esac;;
20158*)
20159  ECHO_N='-n';;
20160esac
20161
20162rm -f conf$$ conf$$.exe conf$$.file
20163if test -d conf$$.dir; then
20164  rm -f conf$$.dir/conf$$.file
20165else
20166  rm -f conf$$.dir
20167  mkdir conf$$.dir 2>/dev/null
20168fi
20169if (echo >conf$$.file) 2>/dev/null; then
20170  if ln -s conf$$.file conf$$ 2>/dev/null; then
20171    as_ln_s='ln -s'
20172    # ... but there are two gotchas:
20173    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20174    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20175    # In both cases, we have to default to `cp -p'.
20176    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20177      as_ln_s='cp -p'
20178  elif ln conf$$.file conf$$ 2>/dev/null; then
20179    as_ln_s=ln
20180  else
20181    as_ln_s='cp -p'
20182  fi
20183else
20184  as_ln_s='cp -p'
20185fi
20186rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20187rmdir conf$$.dir 2>/dev/null
20188
20189
20190# as_fn_mkdir_p
20191# -------------
20192# Create "$as_dir" as a directory, including parents if necessary.
20193as_fn_mkdir_p ()
20194{
20195
20196  case $as_dir in #(
20197  -*) as_dir=./$as_dir;;
20198  esac
20199  test -d "$as_dir" || eval $as_mkdir_p || {
20200    as_dirs=
20201    while :; do
20202      case $as_dir in #(
20203      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20204      *) as_qdir=$as_dir;;
20205      esac
20206      as_dirs="'$as_qdir' $as_dirs"
20207      as_dir=`$as_dirname -- "$as_dir" ||
20208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20209	 X"$as_dir" : 'X\(//\)[^/]' \| \
20210	 X"$as_dir" : 'X\(//\)$' \| \
20211	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20212$as_echo X"$as_dir" |
20213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20214	    s//\1/
20215	    q
20216	  }
20217	  /^X\(\/\/\)[^/].*/{
20218	    s//\1/
20219	    q
20220	  }
20221	  /^X\(\/\/\)$/{
20222	    s//\1/
20223	    q
20224	  }
20225	  /^X\(\/\).*/{
20226	    s//\1/
20227	    q
20228	  }
20229	  s/.*/./; q'`
20230      test -d "$as_dir" && break
20231    done
20232    test -z "$as_dirs" || eval "mkdir $as_dirs"
20233  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20234
20235
20236} # as_fn_mkdir_p
20237if mkdir -p . 2>/dev/null; then
20238  as_mkdir_p='mkdir -p "$as_dir"'
20239else
20240  test -d ./-p && rmdir ./-p
20241  as_mkdir_p=false
20242fi
20243
20244if test -x / >/dev/null 2>&1; then
20245  as_test_x='test -x'
20246else
20247  if ls -dL / >/dev/null 2>&1; then
20248    as_ls_L_option=L
20249  else
20250    as_ls_L_option=
20251  fi
20252  as_test_x='
20253    eval sh -c '\''
20254      if test -d "$1"; then
20255	test -d "$1/.";
20256      else
20257	case $1 in #(
20258	-*)set "./$1";;
20259	esac;
20260	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20261	???[sx]*):;;*)false;;esac;fi
20262    '\'' sh
20263  '
20264fi
20265as_executable_p=$as_test_x
20266
20267# Sed expression to map a string onto a valid CPP name.
20268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20269
20270# Sed expression to map a string onto a valid variable name.
20271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20272
20273
20274exec 6>&1
20275## ----------------------------------- ##
20276## Main body of $CONFIG_STATUS script. ##
20277## ----------------------------------- ##
20278_ASEOF
20279test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20280
20281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20282# Save the log message, to keep $0 and so on meaningful, and to
20283# report actual input values of CONFIG_FILES etc. instead of their
20284# values after options handling.
20285ac_log="
20286This file was extended by LibTIFF Software $as_me 4.0.0beta6, which was
20287generated by GNU Autoconf 2.68.  Invocation command line was
20288
20289  CONFIG_FILES    = $CONFIG_FILES
20290  CONFIG_HEADERS  = $CONFIG_HEADERS
20291  CONFIG_LINKS    = $CONFIG_LINKS
20292  CONFIG_COMMANDS = $CONFIG_COMMANDS
20293  $ $0 $@
20294
20295on `(hostname || uname -n) 2>/dev/null | sed 1q`
20296"
20297
20298_ACEOF
20299
20300case $ac_config_files in *"
20301"*) set x $ac_config_files; shift; ac_config_files=$*;;
20302esac
20303
20304case $ac_config_headers in *"
20305"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20306esac
20307
20308
20309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20310# Files that config.status was made for.
20311config_files="$ac_config_files"
20312config_headers="$ac_config_headers"
20313config_commands="$ac_config_commands"
20314
20315_ACEOF
20316
20317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318ac_cs_usage="\
20319\`$as_me' instantiates files and other configuration actions
20320from templates according to the current configuration.  Unless the files
20321and actions are specified as TAGs, all are instantiated by default.
20322
20323Usage: $0 [OPTION]... [TAG]...
20324
20325  -h, --help       print this help, then exit
20326  -V, --version    print version number and configuration settings, then exit
20327      --config     print configuration, then exit
20328  -q, --quiet, --silent
20329                   do not print progress messages
20330  -d, --debug      don't remove temporary files
20331      --recheck    update $as_me by reconfiguring in the same conditions
20332      --file=FILE[:TEMPLATE]
20333                   instantiate the configuration file FILE
20334      --header=FILE[:TEMPLATE]
20335                   instantiate the configuration header FILE
20336
20337Configuration files:
20338$config_files
20339
20340Configuration headers:
20341$config_headers
20342
20343Configuration commands:
20344$config_commands
20345
20346Report bugs to <[email protected]>."
20347
20348_ACEOF
20349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20350ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20351ac_cs_version="\\
20352LibTIFF Software config.status 4.0.0beta6
20353configured by $0, generated by GNU Autoconf 2.68,
20354  with options \\"\$ac_cs_config\\"
20355
20356Copyright (C) 2010 Free Software Foundation, Inc.
20357This config.status script is free software; the Free Software Foundation
20358gives unlimited permission to copy, distribute and modify it."
20359
20360ac_pwd='$ac_pwd'
20361srcdir='$srcdir'
20362INSTALL='$INSTALL'
20363MKDIR_P='$MKDIR_P'
20364AWK='$AWK'
20365test -n "\$AWK" || AWK=awk
20366_ACEOF
20367
20368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20369# The default lists apply if the user does not specify any file.
20370ac_need_defaults=:
20371while test $# != 0
20372do
20373  case $1 in
20374  --*=?*)
20375    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20376    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20377    ac_shift=:
20378    ;;
20379  --*=)
20380    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20381    ac_optarg=
20382    ac_shift=:
20383    ;;
20384  *)
20385    ac_option=$1
20386    ac_optarg=$2
20387    ac_shift=shift
20388    ;;
20389  esac
20390
20391  case $ac_option in
20392  # Handling of the options.
20393  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20394    ac_cs_recheck=: ;;
20395  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20396    $as_echo "$ac_cs_version"; exit ;;
20397  --config | --confi | --conf | --con | --co | --c )
20398    $as_echo "$ac_cs_config"; exit ;;
20399  --debug | --debu | --deb | --de | --d | -d )
20400    debug=: ;;
20401  --file | --fil | --fi | --f )
20402    $ac_shift
20403    case $ac_optarg in
20404    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20405    '') as_fn_error $? "missing file argument" ;;
20406    esac
20407    as_fn_append CONFIG_FILES " '$ac_optarg'"
20408    ac_need_defaults=false;;
20409  --header | --heade | --head | --hea )
20410    $ac_shift
20411    case $ac_optarg in
20412    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20413    esac
20414    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20415    ac_need_defaults=false;;
20416  --he | --h)
20417    # Conflict between --help and --header
20418    as_fn_error $? "ambiguous option: \`$1'
20419Try \`$0 --help' for more information.";;
20420  --help | --hel | -h )
20421    $as_echo "$ac_cs_usage"; exit ;;
20422  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20423  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20424    ac_cs_silent=: ;;
20425
20426  # This is an error.
20427  -*) as_fn_error $? "unrecognized option: \`$1'
20428Try \`$0 --help' for more information." ;;
20429
20430  *) as_fn_append ac_config_targets " $1"
20431     ac_need_defaults=false ;;
20432
20433  esac
20434  shift
20435done
20436
20437ac_configure_extra_args=
20438
20439if $ac_cs_silent; then
20440  exec 6>/dev/null
20441  ac_configure_extra_args="$ac_configure_extra_args --silent"
20442fi
20443
20444_ACEOF
20445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20446if \$ac_cs_recheck; then
20447  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20448  shift
20449  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20450  CONFIG_SHELL='$SHELL'
20451  export CONFIG_SHELL
20452  exec "\$@"
20453fi
20454
20455_ACEOF
20456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20457exec 5>>config.log
20458{
20459  echo
20460  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20461## Running $as_me. ##
20462_ASBOX
20463  $as_echo "$ac_log"
20464} >&5
20465
20466_ACEOF
20467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20468#
20469# INIT-COMMANDS
20470#
20471AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20472
20473
20474# The HP-UX ksh and POSIX shell print the target directory to stdout
20475# if CDPATH is set.
20476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20477
20478sed_quote_subst='$sed_quote_subst'
20479double_quote_subst='$double_quote_subst'
20480delay_variable_subst='$delay_variable_subst'
20481macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20482macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20483AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20484DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20485OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20486enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20487enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20488pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20489enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20490SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20491ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20492host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20493host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20494host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20495build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20496build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20497build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20498SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20499Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20500GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20501EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20502FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20503LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20504NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20505LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20506max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20507ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20508exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20509lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20510lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20511lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20512lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20513lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20514reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20515reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20516deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20517file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20518file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20519want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20520sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20521AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20522AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20523archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20524STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20525RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20526old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20527old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20528old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20529lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20530CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20531CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20532compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20533GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20534lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20535lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20536lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20537lt_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"`'
20538nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20539lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20540objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20541MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20542lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20543lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20544lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20545lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20546lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20547need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20548MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20549DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20550NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20551LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20552OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20553OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20554libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20555shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20556extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20557archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20558enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20559export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20560whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20561compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20562old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20563old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20564archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20565archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20566module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20567module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20568with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20569allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20570no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20571hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20572hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20573hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20574hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20575hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20576hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20577hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20578hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20579inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20580link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20581always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20582export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20583exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20584include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20585prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20586postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20587file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20588variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20589need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20590need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20591version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20592runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20593shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20594shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20595libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20596library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20597soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20598install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20599postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20600postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20601finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20602finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20603hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20604sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20605sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20606hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20607enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20608enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20609enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20610old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20611striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20612compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20613predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20614postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20615predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20616postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20617compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20618LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20619reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20620reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20621old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20622compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20623GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20624lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20625lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20626lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20627lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20628lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20629archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20630enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20631export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20632whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20633compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20634old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20635old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20636archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20637archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20638module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20639module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20640with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20641allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20642no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20643hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20644hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20645hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20646hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20647hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20648hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20649hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20650hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20651inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20652link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20653always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20654export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20655exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20656include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20657prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20658postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20659file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20660hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20661compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20662predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20663postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20664predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20665postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20666compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20667
20668LTCC='$LTCC'
20669LTCFLAGS='$LTCFLAGS'
20670compiler='$compiler_DEFAULT'
20671
20672# A function that is used when there is no print builtin or printf.
20673func_fallback_echo ()
20674{
20675  eval 'cat <<_LTECHO_EOF
20676\$1
20677_LTECHO_EOF'
20678}
20679
20680# Quote evaled strings.
20681for var in AS \
20682DLLTOOL \
20683OBJDUMP \
20684SHELL \
20685ECHO \
20686SED \
20687GREP \
20688EGREP \
20689FGREP \
20690LD \
20691NM \
20692LN_S \
20693lt_SP2NL \
20694lt_NL2SP \
20695reload_flag \
20696deplibs_check_method \
20697file_magic_cmd \
20698file_magic_glob \
20699want_nocaseglob \
20700sharedlib_from_linklib_cmd \
20701AR \
20702AR_FLAGS \
20703archiver_list_spec \
20704STRIP \
20705RANLIB \
20706CC \
20707CFLAGS \
20708compiler \
20709lt_cv_sys_global_symbol_pipe \
20710lt_cv_sys_global_symbol_to_cdecl \
20711lt_cv_sys_global_symbol_to_c_name_address \
20712lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20713nm_file_list_spec \
20714lt_prog_compiler_no_builtin_flag \
20715lt_prog_compiler_pic \
20716lt_prog_compiler_wl \
20717lt_prog_compiler_static \
20718lt_cv_prog_compiler_c_o \
20719need_locks \
20720MANIFEST_TOOL \
20721DSYMUTIL \
20722NMEDIT \
20723LIPO \
20724OTOOL \
20725OTOOL64 \
20726shrext_cmds \
20727export_dynamic_flag_spec \
20728whole_archive_flag_spec \
20729compiler_needs_object \
20730with_gnu_ld \
20731allow_undefined_flag \
20732no_undefined_flag \
20733hardcode_libdir_flag_spec \
20734hardcode_libdir_flag_spec_ld \
20735hardcode_libdir_separator \
20736exclude_expsyms \
20737include_expsyms \
20738file_list_spec \
20739variables_saved_for_relink \
20740libname_spec \
20741library_names_spec \
20742soname_spec \
20743install_override_mode \
20744finish_eval \
20745old_striplib \
20746striplib \
20747compiler_lib_search_dirs \
20748predep_objects \
20749postdep_objects \
20750predeps \
20751postdeps \
20752compiler_lib_search_path \
20753LD_CXX \
20754reload_flag_CXX \
20755compiler_CXX \
20756lt_prog_compiler_no_builtin_flag_CXX \
20757lt_prog_compiler_pic_CXX \
20758lt_prog_compiler_wl_CXX \
20759lt_prog_compiler_static_CXX \
20760lt_cv_prog_compiler_c_o_CXX \
20761export_dynamic_flag_spec_CXX \
20762whole_archive_flag_spec_CXX \
20763compiler_needs_object_CXX \
20764with_gnu_ld_CXX \
20765allow_undefined_flag_CXX \
20766no_undefined_flag_CXX \
20767hardcode_libdir_flag_spec_CXX \
20768hardcode_libdir_flag_spec_ld_CXX \
20769hardcode_libdir_separator_CXX \
20770exclude_expsyms_CXX \
20771include_expsyms_CXX \
20772file_list_spec_CXX \
20773compiler_lib_search_dirs_CXX \
20774predep_objects_CXX \
20775postdep_objects_CXX \
20776predeps_CXX \
20777postdeps_CXX \
20778compiler_lib_search_path_CXX; do
20779    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20780    *[\\\\\\\`\\"\\\$]*)
20781      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20782      ;;
20783    *)
20784      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20785      ;;
20786    esac
20787done
20788
20789# Double-quote double-evaled strings.
20790for var in reload_cmds \
20791old_postinstall_cmds \
20792old_postuninstall_cmds \
20793old_archive_cmds \
20794extract_expsyms_cmds \
20795old_archive_from_new_cmds \
20796old_archive_from_expsyms_cmds \
20797archive_cmds \
20798archive_expsym_cmds \
20799module_cmds \
20800module_expsym_cmds \
20801export_symbols_cmds \
20802prelink_cmds \
20803postlink_cmds \
20804postinstall_cmds \
20805postuninstall_cmds \
20806finish_cmds \
20807sys_lib_search_path_spec \
20808sys_lib_dlsearch_path_spec \
20809reload_cmds_CXX \
20810old_archive_cmds_CXX \
20811old_archive_from_new_cmds_CXX \
20812old_archive_from_expsyms_cmds_CXX \
20813archive_cmds_CXX \
20814archive_expsym_cmds_CXX \
20815module_cmds_CXX \
20816module_expsym_cmds_CXX \
20817export_symbols_cmds_CXX \
20818prelink_cmds_CXX \
20819postlink_cmds_CXX; do
20820    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20821    *[\\\\\\\`\\"\\\$]*)
20822      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20823      ;;
20824    *)
20825      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20826      ;;
20827    esac
20828done
20829
20830ac_aux_dir='$ac_aux_dir'
20831xsi_shell='$xsi_shell'
20832lt_shell_append='$lt_shell_append'
20833
20834# See if we are running on zsh, and set the options which allow our
20835# commands through without removal of \ escapes INIT.
20836if test -n "\${ZSH_VERSION+set}" ; then
20837   setopt NO_GLOB_SUBST
20838fi
20839
20840
20841    PACKAGE='$PACKAGE'
20842    VERSION='$VERSION'
20843    TIMESTAMP='$TIMESTAMP'
20844    RM='$RM'
20845    ofile='$ofile'
20846
20847
20848
20849
20850
20851
20852_ACEOF
20853
20854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20855
20856# Handling of arguments.
20857for ac_config_target in $ac_config_targets
20858do
20859  case $ac_config_target in
20860    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20861    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20862    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
20863    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
20864    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20865    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
20866    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20867    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
20868    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
20869    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
20870    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
20871    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
20872    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
20873    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
20874    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
20875    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
20876    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
20877    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
20878    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
20879    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
20880    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
20881    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
20882    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20883    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
20884    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20885    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20886
20887  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20888  esac
20889done
20890
20891
20892# If the user did not use the arguments to specify the items to instantiate,
20893# then the envvar interface is used.  Set only those that are not.
20894# We use the long form for the default assignment because of an extremely
20895# bizarre bug on SunOS 4.1.3.
20896if $ac_need_defaults; then
20897  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20898  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20899  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20900fi
20901
20902# Have a temporary directory for convenience.  Make it in the build tree
20903# simply because there is no reason against having it here, and in addition,
20904# creating and moving files from /tmp can sometimes cause problems.
20905# Hook for its removal unless debugging.
20906# Note that there is a small window in which the directory will not be cleaned:
20907# after its creation but before its name has been assigned to `$tmp'.
20908$debug ||
20909{
20910  tmp= ac_tmp=
20911  trap 'exit_status=$?
20912  : "${ac_tmp:=$tmp}"
20913  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20914' 0
20915  trap 'as_fn_exit 1' 1 2 13 15
20916}
20917# Create a (secure) tmp directory for tmp files.
20918
20919{
20920  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20921  test -d "$tmp"
20922}  ||
20923{
20924  tmp=./conf$$-$RANDOM
20925  (umask 077 && mkdir "$tmp")
20926} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20927ac_tmp=$tmp
20928
20929# Set up the scripts for CONFIG_FILES section.
20930# No need to generate them if there are no CONFIG_FILES.
20931# This happens for instance with `./config.status config.h'.
20932if test -n "$CONFIG_FILES"; then
20933
20934
20935ac_cr=`echo X | tr X '\015'`
20936# On cygwin, bash can eat \r inside `` if the user requested igncr.
20937# But we know of no other shell where ac_cr would be empty at this
20938# point, so we can use a bashism as a fallback.
20939if test "x$ac_cr" = x; then
20940  eval ac_cr=\$\'\\r\'
20941fi
20942ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20943if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20944  ac_cs_awk_cr='\\r'
20945else
20946  ac_cs_awk_cr=$ac_cr
20947fi
20948
20949echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20950_ACEOF
20951
20952
20953{
20954  echo "cat >conf$$subs.awk <<_ACEOF" &&
20955  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20956  echo "_ACEOF"
20957} >conf$$subs.sh ||
20958  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20959ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20960ac_delim='%!_!# '
20961for ac_last_try in false false false false false :; do
20962  . ./conf$$subs.sh ||
20963    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20964
20965  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20966  if test $ac_delim_n = $ac_delim_num; then
20967    break
20968  elif $ac_last_try; then
20969    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20970  else
20971    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20972  fi
20973done
20974rm -f conf$$subs.sh
20975
20976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20977cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20978_ACEOF
20979sed -n '
20980h
20981s/^/S["/; s/!.*/"]=/
20982p
20983g
20984s/^[^!]*!//
20985:repl
20986t repl
20987s/'"$ac_delim"'$//
20988t delim
20989:nl
20990h
20991s/\(.\{148\}\)..*/\1/
20992t more1
20993s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20994p
20995n
20996b repl
20997:more1
20998s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20999p
21000g
21001s/.\{148\}//
21002t nl
21003:delim
21004h
21005s/\(.\{148\}\)..*/\1/
21006t more2
21007s/["\\]/\\&/g; s/^/"/; s/$/"/
21008p
21009b
21010:more2
21011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21012p
21013g
21014s/.\{148\}//
21015t delim
21016' <conf$$subs.awk | sed '
21017/^[^""]/{
21018  N
21019  s/\n//
21020}
21021' >>$CONFIG_STATUS || ac_write_fail=1
21022rm -f conf$$subs.awk
21023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21024_ACAWK
21025cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21026  for (key in S) S_is_set[key] = 1
21027  FS = ""
21028
21029}
21030{
21031  line = $ 0
21032  nfields = split(line, field, "@")
21033  substed = 0
21034  len = length(field[1])
21035  for (i = 2; i < nfields; i++) {
21036    key = field[i]
21037    keylen = length(key)
21038    if (S_is_set[key]) {
21039      value = S[key]
21040      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21041      len += length(value) + length(field[++i])
21042      substed = 1
21043    } else
21044      len += 1 + keylen
21045  }
21046
21047  print line
21048}
21049
21050_ACAWK
21051_ACEOF
21052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21053if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21054  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21055else
21056  cat
21057fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21058  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21059_ACEOF
21060
21061# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21062# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21063# trailing colons and then remove the whole line if VPATH becomes empty
21064# (actually we leave an empty line to preserve line numbers).
21065if test "x$srcdir" = x.; then
21066  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21067h
21068s///
21069s/^/:/
21070s/[	 ]*$/:/
21071s/:\$(srcdir):/:/g
21072s/:\${srcdir}:/:/g
21073s/:@srcdir@:/:/g
21074s/^:*//
21075s/:*$//
21076x
21077s/\(=[	 ]*\).*/\1/
21078G
21079s/\n//
21080s/^[^=]*=[	 ]*$//
21081}'
21082fi
21083
21084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21085fi # test -n "$CONFIG_FILES"
21086
21087# Set up the scripts for CONFIG_HEADERS section.
21088# No need to generate them if there are no CONFIG_HEADERS.
21089# This happens for instance with `./config.status Makefile'.
21090if test -n "$CONFIG_HEADERS"; then
21091cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21092BEGIN {
21093_ACEOF
21094
21095# Transform confdefs.h into an awk script `defines.awk', embedded as
21096# here-document in config.status, that substitutes the proper values into
21097# config.h.in to produce config.h.
21098
21099# Create a delimiter string that does not exist in confdefs.h, to ease
21100# handling of long lines.
21101ac_delim='%!_!# '
21102for ac_last_try in false false :; do
21103  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21104  if test -z "$ac_tt"; then
21105    break
21106  elif $ac_last_try; then
21107    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21108  else
21109    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21110  fi
21111done
21112
21113# For the awk script, D is an array of macro values keyed by name,
21114# likewise P contains macro parameters if any.  Preserve backslash
21115# newline sequences.
21116
21117ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21118sed -n '
21119s/.\{148\}/&'"$ac_delim"'/g
21120t rset
21121:rset
21122s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21123t def
21124d
21125:def
21126s/\\$//
21127t bsnl
21128s/["\\]/\\&/g
21129s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21130D["\1"]=" \3"/p
21131s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21132d
21133:bsnl
21134s/["\\]/\\&/g
21135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21136D["\1"]=" \3\\\\\\n"\\/p
21137t cont
21138s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21139t cont
21140d
21141:cont
21142n
21143s/.\{148\}/&'"$ac_delim"'/g
21144t clear
21145:clear
21146s/\\$//
21147t bsnlc
21148s/["\\]/\\&/g; s/^/"/; s/$/"/p
21149d
21150:bsnlc
21151s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21152b cont
21153' <confdefs.h | sed '
21154s/'"$ac_delim"'/"\\\
21155"/g' >>$CONFIG_STATUS || ac_write_fail=1
21156
21157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21158  for (key in D) D_is_set[key] = 1
21159  FS = ""
21160}
21161/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21162  line = \$ 0
21163  split(line, arg, " ")
21164  if (arg[1] == "#") {
21165    defundef = arg[2]
21166    mac1 = arg[3]
21167  } else {
21168    defundef = substr(arg[1], 2)
21169    mac1 = arg[2]
21170  }
21171  split(mac1, mac2, "(") #)
21172  macro = mac2[1]
21173  prefix = substr(line, 1, index(line, defundef) - 1)
21174  if (D_is_set[macro]) {
21175    # Preserve the white space surrounding the "#".
21176    print prefix "define", macro P[macro] D[macro]
21177    next
21178  } else {
21179    # Replace #undef with comments.  This is necessary, for example,
21180    # in the case of _POSIX_SOURCE, which is predefined and required
21181    # on some systems where configure will not decide to define it.
21182    if (defundef == "undef") {
21183      print "/*", prefix defundef, macro, "*/"
21184      next
21185    }
21186  }
21187}
21188{ print }
21189_ACAWK
21190_ACEOF
21191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21192  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21193fi # test -n "$CONFIG_HEADERS"
21194
21195
21196eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21197shift
21198for ac_tag
21199do
21200  case $ac_tag in
21201  :[FHLC]) ac_mode=$ac_tag; continue;;
21202  esac
21203  case $ac_mode$ac_tag in
21204  :[FHL]*:*);;
21205  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21206  :[FH]-) ac_tag=-:-;;
21207  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21208  esac
21209  ac_save_IFS=$IFS
21210  IFS=:
21211  set x $ac_tag
21212  IFS=$ac_save_IFS
21213  shift
21214  ac_file=$1
21215  shift
21216
21217  case $ac_mode in
21218  :L) ac_source=$1;;
21219  :[FH])
21220    ac_file_inputs=
21221    for ac_f
21222    do
21223      case $ac_f in
21224      -) ac_f="$ac_tmp/stdin";;
21225      *) # Look for the file first in the build tree, then in the source tree
21226	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21227	 # because $ac_f cannot contain `:'.
21228	 test -f "$ac_f" ||
21229	   case $ac_f in
21230	   [\\/$]*) false;;
21231	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21232	   esac ||
21233	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21234      esac
21235      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21236      as_fn_append ac_file_inputs " '$ac_f'"
21237    done
21238
21239    # Let's still pretend it is `configure' which instantiates (i.e., don't
21240    # use $as_me), people would be surprised to read:
21241    #    /* config.h.  Generated by config.status.  */
21242    configure_input='Generated from '`
21243	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21244	`' by configure.'
21245    if test x"$ac_file" != x-; then
21246      configure_input="$ac_file.  $configure_input"
21247      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21248$as_echo "$as_me: creating $ac_file" >&6;}
21249    fi
21250    # Neutralize special characters interpreted by sed in replacement strings.
21251    case $configure_input in #(
21252    *\&* | *\|* | *\\* )
21253       ac_sed_conf_input=`$as_echo "$configure_input" |
21254       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21255    *) ac_sed_conf_input=$configure_input;;
21256    esac
21257
21258    case $ac_tag in
21259    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21260      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21261    esac
21262    ;;
21263  esac
21264
21265  ac_dir=`$as_dirname -- "$ac_file" ||
21266$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21267	 X"$ac_file" : 'X\(//\)[^/]' \| \
21268	 X"$ac_file" : 'X\(//\)$' \| \
21269	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21270$as_echo X"$ac_file" |
21271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21272	    s//\1/
21273	    q
21274	  }
21275	  /^X\(\/\/\)[^/].*/{
21276	    s//\1/
21277	    q
21278	  }
21279	  /^X\(\/\/\)$/{
21280	    s//\1/
21281	    q
21282	  }
21283	  /^X\(\/\).*/{
21284	    s//\1/
21285	    q
21286	  }
21287	  s/.*/./; q'`
21288  as_dir="$ac_dir"; as_fn_mkdir_p
21289  ac_builddir=.
21290
21291case "$ac_dir" in
21292.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21293*)
21294  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21295  # A ".." for each directory in $ac_dir_suffix.
21296  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21297  case $ac_top_builddir_sub in
21298  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21299  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21300  esac ;;
21301esac
21302ac_abs_top_builddir=$ac_pwd
21303ac_abs_builddir=$ac_pwd$ac_dir_suffix
21304# for backward compatibility:
21305ac_top_builddir=$ac_top_build_prefix
21306
21307case $srcdir in
21308  .)  # We are building in place.
21309    ac_srcdir=.
21310    ac_top_srcdir=$ac_top_builddir_sub
21311    ac_abs_top_srcdir=$ac_pwd ;;
21312  [\\/]* | ?:[\\/]* )  # Absolute name.
21313    ac_srcdir=$srcdir$ac_dir_suffix;
21314    ac_top_srcdir=$srcdir
21315    ac_abs_top_srcdir=$srcdir ;;
21316  *) # Relative name.
21317    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21318    ac_top_srcdir=$ac_top_build_prefix$srcdir
21319    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21320esac
21321ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21322
21323
21324  case $ac_mode in
21325  :F)
21326  #
21327  # CONFIG_FILE
21328  #
21329
21330  case $INSTALL in
21331  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21332  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21333  esac
21334  ac_MKDIR_P=$MKDIR_P
21335  case $MKDIR_P in
21336  [\\/$]* | ?:[\\/]* ) ;;
21337  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21338  esac
21339_ACEOF
21340
21341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21342# If the template does not know about datarootdir, expand it.
21343# FIXME: This hack should be removed a few years after 2.60.
21344ac_datarootdir_hack=; ac_datarootdir_seen=
21345ac_sed_dataroot='
21346/datarootdir/ {
21347  p
21348  q
21349}
21350/@datadir@/p
21351/@docdir@/p
21352/@infodir@/p
21353/@localedir@/p
21354/@mandir@/p'
21355case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21356*datarootdir*) ac_datarootdir_seen=yes;;
21357*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21358  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21359$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21360_ACEOF
21361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21362  ac_datarootdir_hack='
21363  s&@datadir@&$datadir&g
21364  s&@docdir@&$docdir&g
21365  s&@infodir@&$infodir&g
21366  s&@localedir@&$localedir&g
21367  s&@mandir@&$mandir&g
21368  s&\\\${datarootdir}&$datarootdir&g' ;;
21369esac
21370_ACEOF
21371
21372# Neutralize VPATH when `$srcdir' = `.'.
21373# Shell code in configure.ac might set extrasub.
21374# FIXME: do we really want to maintain this feature?
21375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21376ac_sed_extra="$ac_vpsub
21377$extrasub
21378_ACEOF
21379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21380:t
21381/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21382s|@configure_input@|$ac_sed_conf_input|;t t
21383s&@top_builddir@&$ac_top_builddir_sub&;t t
21384s&@top_build_prefix@&$ac_top_build_prefix&;t t
21385s&@srcdir@&$ac_srcdir&;t t
21386s&@abs_srcdir@&$ac_abs_srcdir&;t t
21387s&@top_srcdir@&$ac_top_srcdir&;t t
21388s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21389s&@builddir@&$ac_builddir&;t t
21390s&@abs_builddir@&$ac_abs_builddir&;t t
21391s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21392s&@INSTALL@&$ac_INSTALL&;t t
21393s&@MKDIR_P@&$ac_MKDIR_P&;t t
21394$ac_datarootdir_hack
21395"
21396eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21397  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21398
21399test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21400  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21401  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21402      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21403  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21404which seems to be undefined.  Please make sure it is defined" >&5
21405$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21406which seems to be undefined.  Please make sure it is defined" >&2;}
21407
21408  rm -f "$ac_tmp/stdin"
21409  case $ac_file in
21410  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21411  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21412  esac \
21413  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21414 ;;
21415  :H)
21416  #
21417  # CONFIG_HEADER
21418  #
21419  if test x"$ac_file" != x-; then
21420    {
21421      $as_echo "/* $configure_input  */" \
21422      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21423    } >"$ac_tmp/config.h" \
21424      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21425    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21426      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21427$as_echo "$as_me: $ac_file is unchanged" >&6;}
21428    else
21429      rm -f "$ac_file"
21430      mv "$ac_tmp/config.h" "$ac_file" \
21431	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21432    fi
21433  else
21434    $as_echo "/* $configure_input  */" \
21435      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21436      || as_fn_error $? "could not create -" "$LINENO" 5
21437  fi
21438# Compute "$ac_file"'s index in $config_headers.
21439_am_arg="$ac_file"
21440_am_stamp_count=1
21441for _am_header in $config_headers :; do
21442  case $_am_header in
21443    $_am_arg | $_am_arg:* )
21444      break ;;
21445    * )
21446      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21447  esac
21448done
21449echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21450$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21451	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21452	 X"$_am_arg" : 'X\(//\)$' \| \
21453	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21454$as_echo X"$_am_arg" |
21455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21456	    s//\1/
21457	    q
21458	  }
21459	  /^X\(\/\/\)[^/].*/{
21460	    s//\1/
21461	    q
21462	  }
21463	  /^X\(\/\/\)$/{
21464	    s//\1/
21465	    q
21466	  }
21467	  /^X\(\/\).*/{
21468	    s//\1/
21469	    q
21470	  }
21471	  s/.*/./; q'`/stamp-h$_am_stamp_count
21472 ;;
21473
21474  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21475$as_echo "$as_me: executing $ac_file commands" >&6;}
21476 ;;
21477  esac
21478
21479
21480  case $ac_file$ac_mode in
21481    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21482  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21483  # are listed without --file.  Let's play safe and only enable the eval
21484  # if we detect the quoting.
21485  case $CONFIG_FILES in
21486  *\'*) eval set x "$CONFIG_FILES" ;;
21487  *)   set x $CONFIG_FILES ;;
21488  esac
21489  shift
21490  for mf
21491  do
21492    # Strip MF so we end up with the name of the file.
21493    mf=`echo "$mf" | sed -e 's/:.*$//'`
21494    # Check whether this is an Automake generated Makefile or not.
21495    # We used to match only the files named `Makefile.in', but
21496    # some people rename them; so instead we look at the file content.
21497    # Grep'ing the first line is not enough: some people post-process
21498    # each Makefile.in and add a new line on top of each file to say so.
21499    # Grep'ing the whole file is not good either: AIX grep has a line
21500    # limit of 2048, but all sed's we know have understand at least 4000.
21501    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21502      dirpart=`$as_dirname -- "$mf" ||
21503$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21504	 X"$mf" : 'X\(//\)[^/]' \| \
21505	 X"$mf" : 'X\(//\)$' \| \
21506	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21507$as_echo X"$mf" |
21508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21509	    s//\1/
21510	    q
21511	  }
21512	  /^X\(\/\/\)[^/].*/{
21513	    s//\1/
21514	    q
21515	  }
21516	  /^X\(\/\/\)$/{
21517	    s//\1/
21518	    q
21519	  }
21520	  /^X\(\/\).*/{
21521	    s//\1/
21522	    q
21523	  }
21524	  s/.*/./; q'`
21525    else
21526      continue
21527    fi
21528    # Extract the definition of DEPDIR, am__include, and am__quote
21529    # from the Makefile without running `make'.
21530    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21531    test -z "$DEPDIR" && continue
21532    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21533    test -z "am__include" && continue
21534    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21535    # When using ansi2knr, U may be empty or an underscore; expand it
21536    U=`sed -n 's/^U = //p' < "$mf"`
21537    # Find all dependency output files, they are included files with
21538    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21539    # simplest approach to changing $(DEPDIR) to its actual value in the
21540    # expansion.
21541    for file in `sed -n "
21542      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21543	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21544      # Make sure the directory exists.
21545      test -f "$dirpart/$file" && continue
21546      fdir=`$as_dirname -- "$file" ||
21547$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548	 X"$file" : 'X\(//\)[^/]' \| \
21549	 X"$file" : 'X\(//\)$' \| \
21550	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21551$as_echo X"$file" |
21552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21553	    s//\1/
21554	    q
21555	  }
21556	  /^X\(\/\/\)[^/].*/{
21557	    s//\1/
21558	    q
21559	  }
21560	  /^X\(\/\/\)$/{
21561	    s//\1/
21562	    q
21563	  }
21564	  /^X\(\/\).*/{
21565	    s//\1/
21566	    q
21567	  }
21568	  s/.*/./; q'`
21569      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21570      # echo "creating $dirpart/$file"
21571      echo '# dummy' > "$dirpart/$file"
21572    done
21573  done
21574}
21575 ;;
21576    "libtool":C)
21577
21578    # See if we are running on zsh, and set the options which allow our
21579    # commands through without removal of \ escapes.
21580    if test -n "${ZSH_VERSION+set}" ; then
21581      setopt NO_GLOB_SUBST
21582    fi
21583
21584    cfgfile="${ofile}T"
21585    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21586    $RM "$cfgfile"
21587
21588    cat <<_LT_EOF >> "$cfgfile"
21589#! $SHELL
21590
21591# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21592# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21594# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21595#
21596#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21597#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21598#                 Inc.
21599#   Written by Gordon Matzigkeit, 1996
21600#
21601#   This file is part of GNU Libtool.
21602#
21603# GNU Libtool is free software; you can redistribute it and/or
21604# modify it under the terms of the GNU General Public License as
21605# published by the Free Software Foundation; either version 2 of
21606# the License, or (at your option) any later version.
21607#
21608# As a special exception to the GNU General Public License,
21609# if you distribute this file as part of a program or library that
21610# is built using GNU Libtool, you may include this file under the
21611# same distribution terms that you use for the rest of that program.
21612#
21613# GNU Libtool is distributed in the hope that it will be useful,
21614# but WITHOUT ANY WARRANTY; without even the implied warranty of
21615# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21616# GNU General Public License for more details.
21617#
21618# You should have received a copy of the GNU General Public License
21619# along with GNU Libtool; see the file COPYING.  If not, a copy
21620# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21621# obtained by writing to the Free Software Foundation, Inc.,
21622# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21623
21624
21625# The names of the tagged configurations supported by this script.
21626available_tags="CXX "
21627
21628# ### BEGIN LIBTOOL CONFIG
21629
21630# Which release of libtool.m4 was used?
21631macro_version=$macro_version
21632macro_revision=$macro_revision
21633
21634# Assembler program.
21635AS=$lt_AS
21636
21637# DLL creation program.
21638DLLTOOL=$lt_DLLTOOL
21639
21640# Object dumper program.
21641OBJDUMP=$lt_OBJDUMP
21642
21643# Whether or not to build shared libraries.
21644build_libtool_libs=$enable_shared
21645
21646# Whether or not to build static libraries.
21647build_old_libs=$enable_static
21648
21649# What type of objects to build.
21650pic_mode=$pic_mode
21651
21652# Whether or not to optimize for fast installation.
21653fast_install=$enable_fast_install
21654
21655# Shell to use when invoking shell scripts.
21656SHELL=$lt_SHELL
21657
21658# An echo program that protects backslashes.
21659ECHO=$lt_ECHO
21660
21661# The host system.
21662host_alias=$host_alias
21663host=$host
21664host_os=$host_os
21665
21666# The build system.
21667build_alias=$build_alias
21668build=$build
21669build_os=$build_os
21670
21671# A sed program that does not truncate output.
21672SED=$lt_SED
21673
21674# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21675Xsed="\$SED -e 1s/^X//"
21676
21677# A grep program that handles long lines.
21678GREP=$lt_GREP
21679
21680# An ERE matcher.
21681EGREP=$lt_EGREP
21682
21683# A literal string matcher.
21684FGREP=$lt_FGREP
21685
21686# A BSD- or MS-compatible name lister.
21687NM=$lt_NM
21688
21689# Whether we need soft or hard links.
21690LN_S=$lt_LN_S
21691
21692# What is the maximum length of a command?
21693max_cmd_len=$max_cmd_len
21694
21695# Object file suffix (normally "o").
21696objext=$ac_objext
21697
21698# Executable file suffix (normally "").
21699exeext=$exeext
21700
21701# whether the shell understands "unset".
21702lt_unset=$lt_unset
21703
21704# turn spaces into newlines.
21705SP2NL=$lt_lt_SP2NL
21706
21707# turn newlines into spaces.
21708NL2SP=$lt_lt_NL2SP
21709
21710# convert \$build file names to \$host format.
21711to_host_file_cmd=$lt_cv_to_host_file_cmd
21712
21713# convert \$build files to toolchain format.
21714to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21715
21716# Method to check whether dependent libraries are shared objects.
21717deplibs_check_method=$lt_deplibs_check_method
21718
21719# Command to use when deplibs_check_method = "file_magic".
21720file_magic_cmd=$lt_file_magic_cmd
21721
21722# How to find potential files when deplibs_check_method = "file_magic".
21723file_magic_glob=$lt_file_magic_glob
21724
21725# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21726want_nocaseglob=$lt_want_nocaseglob
21727
21728# Command to associate shared and link libraries.
21729sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21730
21731# The archiver.
21732AR=$lt_AR
21733
21734# Flags to create an archive.
21735AR_FLAGS=$lt_AR_FLAGS
21736
21737# How to feed a file listing to the archiver.
21738archiver_list_spec=$lt_archiver_list_spec
21739
21740# A symbol stripping program.
21741STRIP=$lt_STRIP
21742
21743# Commands used to install an old-style archive.
21744RANLIB=$lt_RANLIB
21745old_postinstall_cmds=$lt_old_postinstall_cmds
21746old_postuninstall_cmds=$lt_old_postuninstall_cmds
21747
21748# Whether to use a lock for old archive extraction.
21749lock_old_archive_extraction=$lock_old_archive_extraction
21750
21751# A C compiler.
21752LTCC=$lt_CC
21753
21754# LTCC compiler flags.
21755LTCFLAGS=$lt_CFLAGS
21756
21757# Take the output of nm and produce a listing of raw symbols and C names.
21758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21759
21760# Transform the output of nm in a proper C declaration.
21761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21762
21763# Transform the output of nm in a C name address pair.
21764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21765
21766# Transform the output of nm in a C name address pair when lib prefix is needed.
21767global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21768
21769# Specify filename containing input files for \$NM.
21770nm_file_list_spec=$lt_nm_file_list_spec
21771
21772# The root where to search for dependent libraries,and in which our libraries should be installed.
21773lt_sysroot=$lt_sysroot
21774
21775# The name of the directory that contains temporary libtool files.
21776objdir=$objdir
21777
21778# Used to examine libraries when file_magic_cmd begins with "file".
21779MAGIC_CMD=$MAGIC_CMD
21780
21781# Must we lock files when doing compilation?
21782need_locks=$lt_need_locks
21783
21784# Manifest tool.
21785MANIFEST_TOOL=$lt_MANIFEST_TOOL
21786
21787# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21788DSYMUTIL=$lt_DSYMUTIL
21789
21790# Tool to change global to local symbols on Mac OS X.
21791NMEDIT=$lt_NMEDIT
21792
21793# Tool to manipulate fat objects and archives on Mac OS X.
21794LIPO=$lt_LIPO
21795
21796# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21797OTOOL=$lt_OTOOL
21798
21799# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21800OTOOL64=$lt_OTOOL64
21801
21802# Old archive suffix (normally "a").
21803libext=$libext
21804
21805# Shared library suffix (normally ".so").
21806shrext_cmds=$lt_shrext_cmds
21807
21808# The commands to extract the exported symbol list from a shared archive.
21809extract_expsyms_cmds=$lt_extract_expsyms_cmds
21810
21811# Variables whose values should be saved in libtool wrapper scripts and
21812# restored at link time.
21813variables_saved_for_relink=$lt_variables_saved_for_relink
21814
21815# Do we need the "lib" prefix for modules?
21816need_lib_prefix=$need_lib_prefix
21817
21818# Do we need a version for libraries?
21819need_version=$need_version
21820
21821# Library versioning type.
21822version_type=$version_type
21823
21824# Shared library runtime path variable.
21825runpath_var=$runpath_var
21826
21827# Shared library path variable.
21828shlibpath_var=$shlibpath_var
21829
21830# Is shlibpath searched before the hard-coded library search path?
21831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21832
21833# Format of library name prefix.
21834libname_spec=$lt_libname_spec
21835
21836# List of archive names.  First name is the real one, the rest are links.
21837# The last name is the one that the linker finds with -lNAME
21838library_names_spec=$lt_library_names_spec
21839
21840# The coded name of the library, if different from the real name.
21841soname_spec=$lt_soname_spec
21842
21843# Permission mode override for installation of shared libraries.
21844install_override_mode=$lt_install_override_mode
21845
21846# Command to use after installation of a shared archive.
21847postinstall_cmds=$lt_postinstall_cmds
21848
21849# Command to use after uninstallation of a shared archive.
21850postuninstall_cmds=$lt_postuninstall_cmds
21851
21852# Commands used to finish a libtool library installation in a directory.
21853finish_cmds=$lt_finish_cmds
21854
21855# As "finish_cmds", except a single script fragment to be evaled but
21856# not shown.
21857finish_eval=$lt_finish_eval
21858
21859# Whether we should hardcode library paths into libraries.
21860hardcode_into_libs=$hardcode_into_libs
21861
21862# Compile-time system search path for libraries.
21863sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21864
21865# Run-time system search path for libraries.
21866sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21867
21868# Whether dlopen is supported.
21869dlopen_support=$enable_dlopen
21870
21871# Whether dlopen of programs is supported.
21872dlopen_self=$enable_dlopen_self
21873
21874# Whether dlopen of statically linked programs is supported.
21875dlopen_self_static=$enable_dlopen_self_static
21876
21877# Commands to strip libraries.
21878old_striplib=$lt_old_striplib
21879striplib=$lt_striplib
21880
21881
21882# The linker used to build libraries.
21883LD=$lt_LD
21884
21885# How to create reloadable object files.
21886reload_flag=$lt_reload_flag
21887reload_cmds=$lt_reload_cmds
21888
21889# Commands used to build an old-style archive.
21890old_archive_cmds=$lt_old_archive_cmds
21891
21892# A language specific compiler.
21893CC=$lt_compiler
21894
21895# Is the compiler the GNU compiler?
21896with_gcc=$GCC
21897
21898# Compiler flag to turn off builtin functions.
21899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21900
21901# Additional compiler flags for building library objects.
21902pic_flag=$lt_lt_prog_compiler_pic
21903
21904# How to pass a linker flag through the compiler.
21905wl=$lt_lt_prog_compiler_wl
21906
21907# Compiler flag to prevent dynamic linking.
21908link_static_flag=$lt_lt_prog_compiler_static
21909
21910# Does compiler simultaneously support -c and -o options?
21911compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21912
21913# Whether or not to add -lc for building shared libraries.
21914build_libtool_need_lc=$archive_cmds_need_lc
21915
21916# Whether or not to disallow shared libs when runtime libs are static.
21917allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21918
21919# Compiler flag to allow reflexive dlopens.
21920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21921
21922# Compiler flag to generate shared objects directly from archives.
21923whole_archive_flag_spec=$lt_whole_archive_flag_spec
21924
21925# Whether the compiler copes with passing no objects directly.
21926compiler_needs_object=$lt_compiler_needs_object
21927
21928# Create an old-style archive from a shared archive.
21929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21930
21931# Create a temporary old-style archive to link instead of a shared archive.
21932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21933
21934# Commands used to build a shared archive.
21935archive_cmds=$lt_archive_cmds
21936archive_expsym_cmds=$lt_archive_expsym_cmds
21937
21938# Commands used to build a loadable module if different from building
21939# a shared archive.
21940module_cmds=$lt_module_cmds
21941module_expsym_cmds=$lt_module_expsym_cmds
21942
21943# Whether we are building with GNU ld or not.
21944with_gnu_ld=$lt_with_gnu_ld
21945
21946# Flag that allows shared libraries with undefined symbols to be built.
21947allow_undefined_flag=$lt_allow_undefined_flag
21948
21949# Flag that enforces no undefined symbols.
21950no_undefined_flag=$lt_no_undefined_flag
21951
21952# Flag to hardcode \$libdir into a binary during linking.
21953# This must work even if \$libdir does not exist
21954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21955
21956# If ld is used when linking, flag to hardcode \$libdir into a binary
21957# during linking.  This must work even if \$libdir does not exist.
21958hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21959
21960# Whether we need a single "-rpath" flag with a separated argument.
21961hardcode_libdir_separator=$lt_hardcode_libdir_separator
21962
21963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21964# DIR into the resulting binary.
21965hardcode_direct=$hardcode_direct
21966
21967# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21968# DIR into the resulting binary and the resulting library dependency is
21969# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21970# library is relocated.
21971hardcode_direct_absolute=$hardcode_direct_absolute
21972
21973# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21974# into the resulting binary.
21975hardcode_minus_L=$hardcode_minus_L
21976
21977# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21978# into the resulting binary.
21979hardcode_shlibpath_var=$hardcode_shlibpath_var
21980
21981# Set to "yes" if building a shared library automatically hardcodes DIR
21982# into the library and all subsequent libraries and executables linked
21983# against it.
21984hardcode_automatic=$hardcode_automatic
21985
21986# Set to yes if linker adds runtime paths of dependent libraries
21987# to runtime path list.
21988inherit_rpath=$inherit_rpath
21989
21990# Whether libtool must link a program against all its dependency libraries.
21991link_all_deplibs=$link_all_deplibs
21992
21993# Set to "yes" if exported symbols are required.
21994always_export_symbols=$always_export_symbols
21995
21996# The commands to list exported symbols.
21997export_symbols_cmds=$lt_export_symbols_cmds
21998
21999# Symbols that should not be listed in the preloaded symbols.
22000exclude_expsyms=$lt_exclude_expsyms
22001
22002# Symbols that must always be exported.
22003include_expsyms=$lt_include_expsyms
22004
22005# Commands necessary for linking programs (against libraries) with templates.
22006prelink_cmds=$lt_prelink_cmds
22007
22008# Commands necessary for finishing linking programs.
22009postlink_cmds=$lt_postlink_cmds
22010
22011# Specify filename containing input files.
22012file_list_spec=$lt_file_list_spec
22013
22014# How to hardcode a shared library path into an executable.
22015hardcode_action=$hardcode_action
22016
22017# The directories searched by this compiler when creating a shared library.
22018compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22019
22020# Dependencies to place before and after the objects being linked to
22021# create a shared library.
22022predep_objects=$lt_predep_objects
22023postdep_objects=$lt_postdep_objects
22024predeps=$lt_predeps
22025postdeps=$lt_postdeps
22026
22027# The library search path used internally by the compiler when linking
22028# a shared library.
22029compiler_lib_search_path=$lt_compiler_lib_search_path
22030
22031# ### END LIBTOOL CONFIG
22032
22033_LT_EOF
22034
22035  case $host_os in
22036  aix3*)
22037    cat <<\_LT_EOF >> "$cfgfile"
22038# AIX sometimes has problems with the GCC collect2 program.  For some
22039# reason, if we set the COLLECT_NAMES environment variable, the problems
22040# vanish in a puff of smoke.
22041if test "X${COLLECT_NAMES+set}" != Xset; then
22042  COLLECT_NAMES=
22043  export COLLECT_NAMES
22044fi
22045_LT_EOF
22046    ;;
22047  esac
22048
22049
22050ltmain="$ac_aux_dir/ltmain.sh"
22051
22052
22053  # We use sed instead of cat because bash on DJGPP gets confused if
22054  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22055  # text mode, it properly converts lines to CR/LF.  This bash problem
22056  # is reportedly fixed, but why not run on old versions too?
22057  sed '$q' "$ltmain" >> "$cfgfile" \
22058     || (rm -f "$cfgfile"; exit 1)
22059
22060  if test x"$xsi_shell" = xyes; then
22061  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22062func_dirname ()\
22063{\
22064\    case ${1} in\
22065\      */*) func_dirname_result="${1%/*}${2}" ;;\
22066\      *  ) func_dirname_result="${3}" ;;\
22067\    esac\
22068} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22069  && mv -f "$cfgfile.tmp" "$cfgfile" \
22070    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22071test 0 -eq $? || _lt_function_replace_fail=:
22072
22073
22074  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22075func_basename ()\
22076{\
22077\    func_basename_result="${1##*/}"\
22078} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22079  && mv -f "$cfgfile.tmp" "$cfgfile" \
22080    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22081test 0 -eq $? || _lt_function_replace_fail=:
22082
22083
22084  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22085func_dirname_and_basename ()\
22086{\
22087\    case ${1} in\
22088\      */*) func_dirname_result="${1%/*}${2}" ;;\
22089\      *  ) func_dirname_result="${3}" ;;\
22090\    esac\
22091\    func_basename_result="${1##*/}"\
22092} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22093  && mv -f "$cfgfile.tmp" "$cfgfile" \
22094    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22095test 0 -eq $? || _lt_function_replace_fail=:
22096
22097
22098  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22099func_stripname ()\
22100{\
22101\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22102\    # positional parameters, so assign one to ordinary parameter first.\
22103\    func_stripname_result=${3}\
22104\    func_stripname_result=${func_stripname_result#"${1}"}\
22105\    func_stripname_result=${func_stripname_result%"${2}"}\
22106} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22107  && mv -f "$cfgfile.tmp" "$cfgfile" \
22108    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22109test 0 -eq $? || _lt_function_replace_fail=:
22110
22111
22112  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22113func_split_long_opt ()\
22114{\
22115\    func_split_long_opt_name=${1%%=*}\
22116\    func_split_long_opt_arg=${1#*=}\
22117} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22118  && mv -f "$cfgfile.tmp" "$cfgfile" \
22119    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22120test 0 -eq $? || _lt_function_replace_fail=:
22121
22122
22123  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22124func_split_short_opt ()\
22125{\
22126\    func_split_short_opt_arg=${1#??}\
22127\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22128} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22129  && mv -f "$cfgfile.tmp" "$cfgfile" \
22130    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22131test 0 -eq $? || _lt_function_replace_fail=:
22132
22133
22134  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22135func_lo2o ()\
22136{\
22137\    case ${1} in\
22138\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22139\      *)    func_lo2o_result=${1} ;;\
22140\    esac\
22141} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22142  && mv -f "$cfgfile.tmp" "$cfgfile" \
22143    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22144test 0 -eq $? || _lt_function_replace_fail=:
22145
22146
22147  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22148func_xform ()\
22149{\
22150    func_xform_result=${1%.*}.lo\
22151} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22152  && mv -f "$cfgfile.tmp" "$cfgfile" \
22153    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22154test 0 -eq $? || _lt_function_replace_fail=:
22155
22156
22157  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22158func_arith ()\
22159{\
22160    func_arith_result=$(( $* ))\
22161} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22162  && mv -f "$cfgfile.tmp" "$cfgfile" \
22163    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22164test 0 -eq $? || _lt_function_replace_fail=:
22165
22166
22167  sed -e '/^func_len ()$/,/^} # func_len /c\
22168func_len ()\
22169{\
22170    func_len_result=${#1}\
22171} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22172  && mv -f "$cfgfile.tmp" "$cfgfile" \
22173    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22174test 0 -eq $? || _lt_function_replace_fail=:
22175
22176fi
22177
22178if test x"$lt_shell_append" = xyes; then
22179  sed -e '/^func_append ()$/,/^} # func_append /c\
22180func_append ()\
22181{\
22182    eval "${1}+=\\${2}"\
22183} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22184  && mv -f "$cfgfile.tmp" "$cfgfile" \
22185    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22186test 0 -eq $? || _lt_function_replace_fail=:
22187
22188
22189  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22190func_append_quoted ()\
22191{\
22192\    func_quote_for_eval "${2}"\
22193\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22194} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22195  && mv -f "$cfgfile.tmp" "$cfgfile" \
22196    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22197test 0 -eq $? || _lt_function_replace_fail=:
22198
22199
22200  # Save a `func_append' function call where possible by direct use of '+='
22201  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22202    && mv -f "$cfgfile.tmp" "$cfgfile" \
22203      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22204  test 0 -eq $? || _lt_function_replace_fail=:
22205else
22206  # Save a `func_append' function call even when '+=' is not available
22207  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22208    && mv -f "$cfgfile.tmp" "$cfgfile" \
22209      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22210  test 0 -eq $? || _lt_function_replace_fail=:
22211fi
22212
22213if test x"$_lt_function_replace_fail" = x":"; then
22214  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22215$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22216fi
22217
22218
22219   mv -f "$cfgfile" "$ofile" ||
22220    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22221  chmod +x "$ofile"
22222
22223
22224    cat <<_LT_EOF >> "$ofile"
22225
22226# ### BEGIN LIBTOOL TAG CONFIG: CXX
22227
22228# The linker used to build libraries.
22229LD=$lt_LD_CXX
22230
22231# How to create reloadable object files.
22232reload_flag=$lt_reload_flag_CXX
22233reload_cmds=$lt_reload_cmds_CXX
22234
22235# Commands used to build an old-style archive.
22236old_archive_cmds=$lt_old_archive_cmds_CXX
22237
22238# A language specific compiler.
22239CC=$lt_compiler_CXX
22240
22241# Is the compiler the GNU compiler?
22242with_gcc=$GCC_CXX
22243
22244# Compiler flag to turn off builtin functions.
22245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22246
22247# Additional compiler flags for building library objects.
22248pic_flag=$lt_lt_prog_compiler_pic_CXX
22249
22250# How to pass a linker flag through the compiler.
22251wl=$lt_lt_prog_compiler_wl_CXX
22252
22253# Compiler flag to prevent dynamic linking.
22254link_static_flag=$lt_lt_prog_compiler_static_CXX
22255
22256# Does compiler simultaneously support -c and -o options?
22257compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22258
22259# Whether or not to add -lc for building shared libraries.
22260build_libtool_need_lc=$archive_cmds_need_lc_CXX
22261
22262# Whether or not to disallow shared libs when runtime libs are static.
22263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22264
22265# Compiler flag to allow reflexive dlopens.
22266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22267
22268# Compiler flag to generate shared objects directly from archives.
22269whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22270
22271# Whether the compiler copes with passing no objects directly.
22272compiler_needs_object=$lt_compiler_needs_object_CXX
22273
22274# Create an old-style archive from a shared archive.
22275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22276
22277# Create a temporary old-style archive to link instead of a shared archive.
22278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22279
22280# Commands used to build a shared archive.
22281archive_cmds=$lt_archive_cmds_CXX
22282archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22283
22284# Commands used to build a loadable module if different from building
22285# a shared archive.
22286module_cmds=$lt_module_cmds_CXX
22287module_expsym_cmds=$lt_module_expsym_cmds_CXX
22288
22289# Whether we are building with GNU ld or not.
22290with_gnu_ld=$lt_with_gnu_ld_CXX
22291
22292# Flag that allows shared libraries with undefined symbols to be built.
22293allow_undefined_flag=$lt_allow_undefined_flag_CXX
22294
22295# Flag that enforces no undefined symbols.
22296no_undefined_flag=$lt_no_undefined_flag_CXX
22297
22298# Flag to hardcode \$libdir into a binary during linking.
22299# This must work even if \$libdir does not exist
22300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22301
22302# If ld is used when linking, flag to hardcode \$libdir into a binary
22303# during linking.  This must work even if \$libdir does not exist.
22304hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22305
22306# Whether we need a single "-rpath" flag with a separated argument.
22307hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22308
22309# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22310# DIR into the resulting binary.
22311hardcode_direct=$hardcode_direct_CXX
22312
22313# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22314# DIR into the resulting binary and the resulting library dependency is
22315# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22316# library is relocated.
22317hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22318
22319# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22320# into the resulting binary.
22321hardcode_minus_L=$hardcode_minus_L_CXX
22322
22323# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22324# into the resulting binary.
22325hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22326
22327# Set to "yes" if building a shared library automatically hardcodes DIR
22328# into the library and all subsequent libraries and executables linked
22329# against it.
22330hardcode_automatic=$hardcode_automatic_CXX
22331
22332# Set to yes if linker adds runtime paths of dependent libraries
22333# to runtime path list.
22334inherit_rpath=$inherit_rpath_CXX
22335
22336# Whether libtool must link a program against all its dependency libraries.
22337link_all_deplibs=$link_all_deplibs_CXX
22338
22339# Set to "yes" if exported symbols are required.
22340always_export_symbols=$always_export_symbols_CXX
22341
22342# The commands to list exported symbols.
22343export_symbols_cmds=$lt_export_symbols_cmds_CXX
22344
22345# Symbols that should not be listed in the preloaded symbols.
22346exclude_expsyms=$lt_exclude_expsyms_CXX
22347
22348# Symbols that must always be exported.
22349include_expsyms=$lt_include_expsyms_CXX
22350
22351# Commands necessary for linking programs (against libraries) with templates.
22352prelink_cmds=$lt_prelink_cmds_CXX
22353
22354# Commands necessary for finishing linking programs.
22355postlink_cmds=$lt_postlink_cmds_CXX
22356
22357# Specify filename containing input files.
22358file_list_spec=$lt_file_list_spec_CXX
22359
22360# How to hardcode a shared library path into an executable.
22361hardcode_action=$hardcode_action_CXX
22362
22363# The directories searched by this compiler when creating a shared library.
22364compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22365
22366# Dependencies to place before and after the objects being linked to
22367# create a shared library.
22368predep_objects=$lt_predep_objects_CXX
22369postdep_objects=$lt_postdep_objects_CXX
22370predeps=$lt_predeps_CXX
22371postdeps=$lt_postdeps_CXX
22372
22373# The library search path used internally by the compiler when linking
22374# a shared library.
22375compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22376
22377# ### END LIBTOOL TAG CONFIG: CXX
22378_LT_EOF
22379
22380 ;;
22381
22382  esac
22383done # for ac_tag
22384
22385
22386as_fn_exit 0
22387_ACEOF
22388ac_clean_files=$ac_clean_files_save
22389
22390test $ac_write_fail = 0 ||
22391  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22392
22393
22394# configure is writing to config.log, and then calls config.status.
22395# config.status does its own redirection, appending to config.log.
22396# Unfortunately, on DOS this fails, as config.log is still kept open
22397# by configure, so config.status won't be able to write to it; its
22398# output is simply discarded.  So we exec the FD to /dev/null,
22399# effectively closing config.log, so it can be properly (re)opened and
22400# appended to by config.status.  When coming back to configure, we
22401# need to make the FD available again.
22402if test "$no_create" != yes; then
22403  ac_cs_success=:
22404  ac_config_status_args=
22405  test "$silent" = yes &&
22406    ac_config_status_args="$ac_config_status_args --quiet"
22407  exec 5>/dev/null
22408  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22409  exec 5>>config.log
22410  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22411  # would make configure fail if this is the last instruction.
22412  $ac_cs_success || as_fn_exit 1
22413fi
22414if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22415  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22416$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22417fi
22418
22419
22420
22421echo ""
22422echo "Libtiff is now configured for ${host}"
22423echo ""
22424echo "  Installation directory:             ${prefix}"
22425echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
22426echo "  C compiler:                         ${CC} ${CFLAGS}"
22427echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
22428echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
22429echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
22430echo "  Use win32 IO:                       ${win32_io_ok}"
22431echo ""
22432echo " Support for internal codecs:"
22433echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
22434echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
22435echo "  LZW algorithm:                      ${HAVE_LZW}"
22436echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
22437echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
22438echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22439echo ""
22440echo " Support for external codecs:"
22441echo "  ZLIB support:                       ${HAVE_ZLIB}"
22442echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
22443echo "  JPEG support:                       ${HAVE_JPEG}"
22444echo "  Old JPEG support:                   ${HAVE_OJPEG}"
22445echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
22446echo "  ISO JBIG support:                   ${HAVE_JBIG}"
22447echo "  LZMA2 support:                      ${HAVE_LZMA}"
22448echo ""
22449echo "  C++ support:                        ${HAVE_CXX}"
22450echo ""
22451echo "  OpenGL support:                     ${HAVE_OPENGL}"
22452echo ""
22453
22454