xref: /libtiff-4.0.7/configure (revision bd0ea9c5)
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.1.
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.1'
574PACKAGE_STRING='LibTIFF Software 4.0.1'
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
646AM_DEFAULT_V
647AM_V
648CXXCPP
649am__fastdepCXX_FALSE
650am__fastdepCXX_TRUE
651CXXDEPMODE
652ac_ct_CXX
653CXXFLAGS
654CXX
655CPP
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661MANIFEST_TOOL
662RANLIB
663ac_ct_AR
664AR
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670EGREP
671GREP
672SED
673LIBTOOL
674OBJDUMP
675DLLTOOL
676AS
677HAVE_LD_VERSION_SCRIPT_FALSE
678HAVE_LD_VERSION_SCRIPT_TRUE
679LN_S
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683am__nodep
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697LIBTIFF_RELEASE_DATE
698LIBTIFF_VERSION_INFO
699LIBTIFF_VERSION
700LIBTIFF_ALPHA_VERSION
701LIBTIFF_MICRO_VERSION
702LIBTIFF_MINOR_VERSION
703LIBTIFF_MAJOR_VERSION
704MAINT
705MAINTAINER_MODE_FALSE
706MAINTAINER_MODE_TRUE
707am__untar
708am__tar
709AMTAR
710am__leading_dot
711SET_MAKE
712AWK
713mkdir_p
714MKDIR_P
715INSTALL_STRIP_PROGRAM
716STRIP
717install_sh
718MAKEINFO
719AUTOHEADER
720AUTOMAKE
721AUTOCONF
722ACLOCAL
723VERSION
724PACKAGE
725CYGPATH_W
726am__isrc
727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_maintainer_mode
780enable_dependency_tracking
781enable_ld_version_script
782enable_shared
783enable_static
784with_pic
785enable_fast_install
786with_gnu_ld
787with_sysroot
788enable_libtool_lock
789enable_silent_rules
790enable_rpath
791enable_largefile
792with_docdir
793enable_ccitt
794enable_packbits
795enable_lzw
796enable_thunder
797enable_next
798enable_logluv
799enable_mdi
800enable_zlib
801with_zlib_include_dir
802with_zlib_lib_dir
803enable_pixarlog
804enable_jpeg
805with_jpeg_include_dir
806with_jpeg_lib_dir
807enable_old_jpeg
808enable_jbig
809with_jbig_include_dir
810with_jbig_lib_dir
811enable_lzma
812with_lzma_include_dir
813with_lzma_lib_dir
814enable_jpeg12
815with_jpeg12_include_dir
816with_jpeg12_lib
817enable_cxx
818with_x
819enable_strip_chopping
820with_default_strip_size
821enable_defer_strile_load
822enable_chunky_strip_read
823enable_extrasample_as_alpha
824enable_check_ycbcr_subsampling
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CPP
835CXX
836CXXFLAGS
837CCC
838CXXCPP
839XMKMF'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *=)   ac_optarg= ;;
904  *)    ac_optarg=yes ;;
905  esac
906
907  # Accept the important Cygnus configure options, so we can diagnose typos.
908
909  case $ac_dashdash$ac_option in
910  --)
911    ac_dashdash=yes ;;
912
913  -bindir | --bindir | --bindi | --bind | --bin | --bi)
914    ac_prev=bindir ;;
915  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916    bindir=$ac_optarg ;;
917
918  -build | --build | --buil | --bui | --bu)
919    ac_prev=build_alias ;;
920  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921    build_alias=$ac_optarg ;;
922
923  -cache-file | --cache-file | --cache-fil | --cache-fi \
924  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925    ac_prev=cache_file ;;
926  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928    cache_file=$ac_optarg ;;
929
930  --config-cache | -C)
931    cache_file=config.cache ;;
932
933  -datadir | --datadir | --datadi | --datad)
934    ac_prev=datadir ;;
935  -datadir=* | --datadir=* | --datadi=* | --datad=*)
936    datadir=$ac_optarg ;;
937
938  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939  | --dataroo | --dataro | --datar)
940    ac_prev=datarootdir ;;
941  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943    datarootdir=$ac_optarg ;;
944
945  -disable-* | --disable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: $ac_useropt"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=no ;;
960
961  -docdir | --docdir | --docdi | --doc | --do)
962    ac_prev=docdir ;;
963  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964    docdir=$ac_optarg ;;
965
966  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967    ac_prev=dvidir ;;
968  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969    dvidir=$ac_optarg ;;
970
971  -enable-* | --enable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: $ac_useropt"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=\$ac_optarg ;;
986
987  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989  | --exec | --exe | --ex)
990    ac_prev=exec_prefix ;;
991  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993  | --exec=* | --exe=* | --ex=*)
994    exec_prefix=$ac_optarg ;;
995
996  -gas | --gas | --ga | --g)
997    # Obsolete; use --with-gas.
998    with_gas=yes ;;
999
1000  -help | --help | --hel | --he | -h)
1001    ac_init_help=long ;;
1002  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003    ac_init_help=recursive ;;
1004  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005    ac_init_help=short ;;
1006
1007  -host | --host | --hos | --ho)
1008    ac_prev=host_alias ;;
1009  -host=* | --host=* | --hos=* | --ho=*)
1010    host_alias=$ac_optarg ;;
1011
1012  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013    ac_prev=htmldir ;;
1014  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015  | --ht=*)
1016    htmldir=$ac_optarg ;;
1017
1018  -includedir | --includedir | --includedi | --included | --include \
1019  | --includ | --inclu | --incl | --inc)
1020    ac_prev=includedir ;;
1021  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022  | --includ=* | --inclu=* | --incl=* | --inc=*)
1023    includedir=$ac_optarg ;;
1024
1025  -infodir | --infodir | --infodi | --infod | --info | --inf)
1026    ac_prev=infodir ;;
1027  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028    infodir=$ac_optarg ;;
1029
1030  -libdir | --libdir | --libdi | --libd)
1031    ac_prev=libdir ;;
1032  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033    libdir=$ac_optarg ;;
1034
1035  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036  | --libexe | --libex | --libe)
1037    ac_prev=libexecdir ;;
1038  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039  | --libexe=* | --libex=* | --libe=*)
1040    libexecdir=$ac_optarg ;;
1041
1042  -localedir | --localedir | --localedi | --localed | --locale)
1043    ac_prev=localedir ;;
1044  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045    localedir=$ac_optarg ;;
1046
1047  -localstatedir | --localstatedir | --localstatedi | --localstated \
1048  | --localstate | --localstat | --localsta | --localst | --locals)
1049    ac_prev=localstatedir ;;
1050  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052    localstatedir=$ac_optarg ;;
1053
1054  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055    ac_prev=mandir ;;
1056  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057    mandir=$ac_optarg ;;
1058
1059  -nfp | --nfp | --nf)
1060    # Obsolete; use --without-fp.
1061    with_fp=no ;;
1062
1063  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064  | --no-cr | --no-c | -n)
1065    no_create=yes ;;
1066
1067  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069    no_recursion=yes ;;
1070
1071  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073  | --oldin | --oldi | --old | --ol | --o)
1074    ac_prev=oldincludedir ;;
1075  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078    oldincludedir=$ac_optarg ;;
1079
1080  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081    ac_prev=prefix ;;
1082  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083    prefix=$ac_optarg ;;
1084
1085  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086  | --program-pre | --program-pr | --program-p)
1087    ac_prev=program_prefix ;;
1088  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090    program_prefix=$ac_optarg ;;
1091
1092  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093  | --program-suf | --program-su | --program-s)
1094    ac_prev=program_suffix ;;
1095  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097    program_suffix=$ac_optarg ;;
1098
1099  -program-transform-name | --program-transform-name \
1100  | --program-transform-nam | --program-transform-na \
1101  | --program-transform-n | --program-transform- \
1102  | --program-transform | --program-transfor \
1103  | --program-transfo | --program-transf \
1104  | --program-trans | --program-tran \
1105  | --progr-tra | --program-tr | --program-t)
1106    ac_prev=program_transform_name ;;
1107  -program-transform-name=* | --program-transform-name=* \
1108  | --program-transform-nam=* | --program-transform-na=* \
1109  | --program-transform-n=* | --program-transform-=* \
1110  | --program-transform=* | --program-transfor=* \
1111  | --program-transfo=* | --program-transf=* \
1112  | --program-trans=* | --program-tran=* \
1113  | --progr-tra=* | --program-tr=* | --program-t=*)
1114    program_transform_name=$ac_optarg ;;
1115
1116  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117    ac_prev=pdfdir ;;
1118  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119    pdfdir=$ac_optarg ;;
1120
1121  -psdir | --psdir | --psdi | --psd | --ps)
1122    ac_prev=psdir ;;
1123  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124    psdir=$ac_optarg ;;
1125
1126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127  | -silent | --silent | --silen | --sile | --sil)
1128    silent=yes ;;
1129
1130  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131    ac_prev=sbindir ;;
1132  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133  | --sbi=* | --sb=*)
1134    sbindir=$ac_optarg ;;
1135
1136  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138  | --sharedst | --shareds | --shared | --share | --shar \
1139  | --sha | --sh)
1140    ac_prev=sharedstatedir ;;
1141  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144  | --sha=* | --sh=*)
1145    sharedstatedir=$ac_optarg ;;
1146
1147  -site | --site | --sit)
1148    ac_prev=site ;;
1149  -site=* | --site=* | --sit=*)
1150    site=$ac_optarg ;;
1151
1152  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153    ac_prev=srcdir ;;
1154  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155    srcdir=$ac_optarg ;;
1156
1157  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158  | --syscon | --sysco | --sysc | --sys | --sy)
1159    ac_prev=sysconfdir ;;
1160  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162    sysconfdir=$ac_optarg ;;
1163
1164  -target | --target | --targe | --targ | --tar | --ta | --t)
1165    ac_prev=target_alias ;;
1166  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167    target_alias=$ac_optarg ;;
1168
1169  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170    verbose=yes ;;
1171
1172  -version | --version | --versio | --versi | --vers | -V)
1173    ac_init_version=: ;;
1174
1175  -with-* | --with-*)
1176    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179      as_fn_error $? "invalid package name: $ac_useropt"
1180    ac_useropt_orig=$ac_useropt
1181    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182    case $ac_user_opts in
1183      *"
1184"with_$ac_useropt"
1185"*) ;;
1186      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187	 ac_unrecognized_sep=', ';;
1188    esac
1189    eval with_$ac_useropt=\$ac_optarg ;;
1190
1191  -without-* | --without-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=no ;;
1206
1207  --x)
1208    # Obsolete; use --with-x.
1209    with_x=yes ;;
1210
1211  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212  | --x-incl | --x-inc | --x-in | --x-i)
1213    ac_prev=x_includes ;;
1214  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216    x_includes=$ac_optarg ;;
1217
1218  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220    ac_prev=x_libraries ;;
1221  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223    x_libraries=$ac_optarg ;;
1224
1225  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
1227    ;;
1228
1229  *=*)
1230    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231    # Reject names that are not valid shell variable names.
1232    case $ac_envvar in #(
1233      '' | [0-9]* | *[!_$as_cr_alnum]* )
1234      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235    esac
1236    eval $ac_envvar=\$ac_optarg
1237    export $ac_envvar ;;
1238
1239  *)
1240    # FIXME: should be removed in autoconf 3.0.
1241    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245    ;;
1246
1247  esac
1248done
1249
1250if test -n "$ac_prev"; then
1251  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252  as_fn_error $? "missing argument to $ac_option"
1253fi
1254
1255if test -n "$ac_unrecognized_opts"; then
1256  case $enable_option_checking in
1257    no) ;;
1258    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260  esac
1261fi
1262
1263# Check all directory arguments for consistency.
1264for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265		datadir sysconfdir sharedstatedir localstatedir includedir \
1266		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267		libdir localedir mandir
1268do
1269  eval ac_val=\$$ac_var
1270  # Remove trailing slashes.
1271  case $ac_val in
1272    */ )
1273      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274      eval $ac_var=\$ac_val;;
1275  esac
1276  # Be sure to have absolute directory names.
1277  case $ac_val in
1278    [\\/$]* | ?:[\\/]* )  continue;;
1279    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280  esac
1281  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293  if test "x$build_alias" = x; then
1294    cross_compiling=maybe
1295    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296    If a cross compiler is detected then cross compile mode will be used" >&2
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382\`configure' configures LibTIFF Software 4.0.1 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print \`checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for \`--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439Program names:
1440  --program-prefix=PREFIX            prepend PREFIX to installed program names
1441  --program-suffix=SUFFIX            append SUFFIX to installed program names
1442  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1443
1444X features:
1445  --x-includes=DIR    X include files are in DIR
1446  --x-libraries=DIR   X library files are in DIR
1447
1448System types:
1449  --build=BUILD     configure for building on BUILD [guessed]
1450  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455  case $ac_init_help in
1456     short | recursive ) echo "Configuration of LibTIFF Software 4.0.1:";;
1457   esac
1458  cat <<\_ACEOF
1459
1460Optional Features:
1461  --disable-option-checking  ignore unrecognized --enable/--with options
1462  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464  --enable-maintainer-mode  enable make rules and dependencies not useful
1465			  (and sometimes confusing) to the casual installer
1466  --disable-dependency-tracking  speeds up one-time build
1467  --enable-dependency-tracking   do not reject slow dependency extractors
1468  --enable-ld-version-script
1469                          enable linker version script (default is disabled)
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  --enable-defer-strile-load
1508                          enable deferred strip/tile offset/size loading
1509                          (experimental)
1510  --enable-chunky-strip-read
1511                          enable reading large strips in chunks for
1512                          TIFFReadScanline() (experimental)
1513  --disable-extrasample-as-alpha
1514                          the RGBA interface will treat a fourth sample with
1515                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1516                          packages produce RGBA files but don't mark the alpha
1517                          properly
1518  --disable-check-ycbcr-subsampling
1519                          disable picking up YCbCr subsampling info from the
1520                          JPEG data stream to support files lacking the tag
1521
1522Optional Packages:
1523  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1526                          both]
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528  --with-sysroot=DIR Search for dependent libraries within DIR
1529                        (or the compiler's sysroot if not specified).
1530  --with-docdir=DIR       directory where documentation should be installed
1531  --with-zlib-include-dir=DIR
1532                          location of Zlib headers
1533  --with-zlib-lib-dir=DIR location of Zlib library binary
1534  --with-jpeg-include-dir=DIR
1535                          location of IJG JPEG library headers
1536  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1537  --with-jbig-include-dir=DIR
1538                          location of JBIG-KIT headers
1539  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1540  --with-lzma-include-dir=DIR
1541                          location of liblzma headers
1542  --with-lzma-lib-dir=DIR location of liblzma library binary
1543  --with-jpeg12-include-dir=DIR
1544                          location of libjpeg 12bit headers
1545  --with-jpeg12-lib=LIBRARY
1546                          path to libjpeg 12bit library
1547  --with-x                use the X Window System
1548  --with-default-strip-size=SIZE
1549                          default size of the strip in bytes (when strip
1550                          chopping enabled) [[default=8192]]
1551
1552Some influential environment variables:
1553  CC          C compiler command
1554  CFLAGS      C compiler flags
1555  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556              nonstandard directory <lib dir>
1557  LIBS        libraries to pass to the linker, e.g. -l<library>
1558  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559              you have headers in a nonstandard directory <include dir>
1560  CPP         C preprocessor
1561  CXX         C++ compiler command
1562  CXXFLAGS    C++ compiler flags
1563  CXXCPP      C++ preprocessor
1564  XMKMF       Path to xmkmf, Makefile generator for X Window System
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <[email protected]>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632LibTIFF Software configure 4.0.1
1633generated by GNU Autoconf 2.68
1634
1635Copyright (C) 2010 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
1684# ac_fn_c_try_link LINENO
1685# -----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_link ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  rm -f conftest.$ac_objext conftest$ac_exeext
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && {
1707	 test -z "$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       } && test -s conftest$ac_exeext && {
1710	 test "$cross_compiling" = yes ||
1711	 $as_test_x conftest$ac_exeext
1712       }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722  # interfere with the next link command; also delete a directory that is
1723  # left behind by Apple's compiler.  We do this before executing the actions.
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_link
1729
1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists and can be compiled using the include files in
1733# INCLUDES, setting the cache variable VAR accordingly.
1734ac_fn_c_check_header_compile ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748  eval "$3=yes"
1749else
1750  eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759} # ac_fn_c_check_header_compile
1760
1761# ac_fn_c_try_cpp LINENO
1762# ----------------------
1763# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_cpp ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  if { { ac_try="$ac_cpp conftest.$ac_ext"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } > conftest.i && {
1783	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784	 test ! -s conftest.err
1785       }; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791    ac_retval=1
1792fi
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_cpp
1797
1798# ac_fn_c_try_run LINENO
1799# ----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801# that executables *can* be run.
1802ac_fn_c_try_run ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_link") 2>&5
1813  ac_status=$?
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816  { { case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_try") 2>&5
1823  ac_status=$?
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; }; }; then :
1826  ac_retval=0
1827else
1828  $as_echo "$as_me: program exited with status $ac_status" >&5
1829       $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832       ac_retval=$ac_status
1833fi
1834  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836  as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_run
1839
1840# ac_fn_c_check_func LINENO FUNC VAR
1841# ----------------------------------
1842# Tests whether FUNC exists, setting the cache variable VAR accordingly
1843ac_fn_c_check_func ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849  $as_echo_n "(cached) " >&6
1850else
1851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h.  */
1853/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855#define $2 innocuous_$2
1856
1857/* System header to define __stub macros and hopefully few prototypes,
1858    which can conflict with char $2 (); below.
1859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860    <limits.h> exists even on freestanding compilers.  */
1861
1862#ifdef __STDC__
1863# include <limits.h>
1864#else
1865# include <assert.h>
1866#endif
1867
1868#undef $2
1869
1870/* Override any GCC internal prototype to avoid an error.
1871   Use char because int might match the return type of a GCC
1872   builtin and then its argument prototype would still apply.  */
1873#ifdef __cplusplus
1874extern "C"
1875#endif
1876char $2 ();
1877/* The GNU C library defines this for functions which it implements
1878    to always fail with ENOSYS.  Some functions are actually named
1879    something starting with __ and the normal name is an alias.  */
1880#if defined __stub_$2 || defined __stub___$2
1881choke me
1882#endif
1883
1884int
1885main ()
1886{
1887return $2 ();
1888  ;
1889  return 0;
1890}
1891_ACEOF
1892if ac_fn_c_try_link "$LINENO"; then :
1893  eval "$3=yes"
1894else
1895  eval "$3=no"
1896fi
1897rm -f core conftest.err conftest.$ac_objext \
1898    conftest$ac_exeext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_func
1906
1907# ac_fn_cxx_try_compile LINENO
1908# ----------------------------
1909# Try to compile conftest.$ac_ext, and return whether this succeeded.
1910ac_fn_cxx_try_compile ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  rm -f conftest.$ac_objext
1914  if { { ac_try="$ac_compile"
1915case "(($ac_try" in
1916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917  *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921  (eval "$ac_compile") 2>conftest.err
1922  ac_status=$?
1923  if test -s conftest.err; then
1924    grep -v '^ *+' conftest.err >conftest.er1
1925    cat conftest.er1 >&5
1926    mv -f conftest.er1 conftest.err
1927  fi
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } && {
1930	 test -z "$ac_cxx_werror_flag" ||
1931	 test ! -s conftest.err
1932       } && test -s conftest.$ac_objext; then :
1933  ac_retval=0
1934else
1935  $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938	ac_retval=1
1939fi
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941  as_fn_set_status $ac_retval
1942
1943} # ac_fn_cxx_try_compile
1944
1945# ac_fn_cxx_try_cpp LINENO
1946# ------------------------
1947# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_cxx_try_cpp ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_cpp conftest.$ac_ext"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959  ac_status=$?
1960  if test -s conftest.err; then
1961    grep -v '^ *+' conftest.err >conftest.er1
1962    cat conftest.er1 >&5
1963    mv -f conftest.er1 conftest.err
1964  fi
1965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966  test $ac_status = 0; } > conftest.i && {
1967	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968	 test ! -s conftest.err
1969       }; then :
1970  ac_retval=0
1971else
1972  $as_echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975    ac_retval=1
1976fi
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  as_fn_set_status $ac_retval
1979
1980} # ac_fn_cxx_try_cpp
1981
1982# ac_fn_cxx_try_link LINENO
1983# -------------------------
1984# Try to link conftest.$ac_ext, and return whether this succeeded.
1985ac_fn_cxx_try_link ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  rm -f conftest.$ac_objext conftest$ac_exeext
1989  if { { ac_try="$ac_link"
1990case "(($ac_try" in
1991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992  *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996  (eval "$ac_link") 2>conftest.err
1997  ac_status=$?
1998  if test -s conftest.err; then
1999    grep -v '^ *+' conftest.err >conftest.er1
2000    cat conftest.er1 >&5
2001    mv -f conftest.er1 conftest.err
2002  fi
2003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004  test $ac_status = 0; } && {
2005	 test -z "$ac_cxx_werror_flag" ||
2006	 test ! -s conftest.err
2007       } && test -s conftest$ac_exeext && {
2008	 test "$cross_compiling" = yes ||
2009	 $as_test_x conftest$ac_exeext
2010       }; then :
2011  ac_retval=0
2012else
2013  $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016	ac_retval=1
2017fi
2018  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020  # interfere with the next link command; also delete a directory that is
2021  # left behind by Apple's compiler.  We do this before executing the actions.
2022  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024  as_fn_set_status $ac_retval
2025
2026} # ac_fn_cxx_try_link
2027
2028# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2029# -------------------------------------------------------
2030# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2031# the include files in INCLUDES and setting the cache variable VAR
2032# accordingly.
2033ac_fn_c_check_header_mongrel ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  if eval \${$3+:} false; then :
2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
2039if eval \${$3+:} false; then :
2040  $as_echo_n "(cached) " >&6
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045else
2046  # Is the header compilable?
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2048$as_echo_n "checking $2 usability... " >&6; }
2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051$4
2052#include <$2>
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055  ac_header_compiler=yes
2056else
2057  ac_header_compiler=no
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2061$as_echo "$ac_header_compiler" >&6; }
2062
2063# Is the header present?
2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2065$as_echo_n "checking $2 presence... " >&6; }
2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068#include <$2>
2069_ACEOF
2070if ac_fn_c_try_cpp "$LINENO"; then :
2071  ac_header_preproc=yes
2072else
2073  ac_header_preproc=no
2074fi
2075rm -f conftest.err conftest.i conftest.$ac_ext
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2077$as_echo "$ac_header_preproc" >&6; }
2078
2079# So?  What about this header?
2080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081  yes:no: )
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2083$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086    ;;
2087  no:yes:* )
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2089$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2091$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2093$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2095$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2096    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098( $as_echo "## -------------------------------------- ##
2099## Report this to [email protected] ##
2100## -------------------------------------- ##"
2101     ) | sed "s/^/$as_me: WARNING:     /" >&2
2102    ;;
2103esac
2104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105$as_echo_n "checking for $2... " >&6; }
2106if eval \${$3+:} false; then :
2107  $as_echo_n "(cached) " >&6
2108else
2109  eval "$3=\$ac_header_compiler"
2110fi
2111eval ac_res=\$$3
2112	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113$as_echo "$ac_res" >&6; }
2114fi
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117} # ac_fn_c_check_header_mongrel
2118
2119# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120# -------------------------------------------
2121# Tests whether TYPE exists after having included INCLUDES, setting cache
2122# variable VAR accordingly.
2123ac_fn_c_check_type ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127$as_echo_n "checking for $2... " >&6; }
2128if eval \${$3+:} false; then :
2129  $as_echo_n "(cached) " >&6
2130else
2131  eval "$3=no"
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138if (sizeof ($2))
2139	 return 0;
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h.  */
2147$4
2148int
2149main ()
2150{
2151if (sizeof (($2)))
2152	    return 0;
2153  ;
2154  return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158
2159else
2160  eval "$3=yes"
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166eval ac_res=\$$3
2167	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171} # ac_fn_c_check_type
2172
2173# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2174# --------------------------------------------
2175# Tries to find the compile-time value of EXPR in a program that includes
2176# INCLUDES, setting VAR accordingly. Returns whether the value could be
2177# computed
2178ac_fn_c_compute_int ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  if test "$cross_compiling" = yes; then
2182    # Depending upon the size, compute the lo and hi bounds.
2183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) >= 0)];
2190test_array [0] = 0
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197  ac_lo=0 ac_mid=0
2198  while :; do
2199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206test_array [0] = 0
2207
2208  ;
2209  return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213  ac_hi=$ac_mid; break
2214else
2215  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216			if test $ac_lo -le $ac_mid; then
2217			  ac_lo= ac_hi=
2218			  break
2219			fi
2220			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223  done
2224else
2225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228int
2229main ()
2230{
2231static int test_array [1 - 2 * !(($2) < 0)];
2232test_array [0] = 0
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239  ac_hi=-1 ac_mid=-1
2240  while :; do
2241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h.  */
2243$4
2244int
2245main ()
2246{
2247static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248test_array [0] = 0
2249
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254if ac_fn_c_try_compile "$LINENO"; then :
2255  ac_lo=$ac_mid; break
2256else
2257  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258			if test $ac_mid -le $ac_hi; then
2259			  ac_lo= ac_hi=
2260			  break
2261			fi
2262			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265  done
2266else
2267  ac_lo= ac_hi=
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272# Binary search between lo and hi bounds.
2273while test "x$ac_lo" != "x$ac_hi"; do
2274  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277$4
2278int
2279main ()
2280{
2281static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282test_array [0] = 0
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289  ac_hi=$ac_mid
2290else
2291  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294done
2295case $ac_lo in #((
2296?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2297'') ac_retval=1 ;;
2298esac
2299  else
2300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303static long int longval () { return $2; }
2304static unsigned long int ulongval () { return $2; }
2305#include <stdio.h>
2306#include <stdlib.h>
2307int
2308main ()
2309{
2310
2311  FILE *f = fopen ("conftest.val", "w");
2312  if (! f)
2313    return 1;
2314  if (($2) < 0)
2315    {
2316      long int i = longval ();
2317      if (i != ($2))
2318	return 1;
2319      fprintf (f, "%ld", i);
2320    }
2321  else
2322    {
2323      unsigned long int i = ulongval ();
2324      if (i != ($2))
2325	return 1;
2326      fprintf (f, "%lu", i);
2327    }
2328  /* Do not output a trailing newline, as this causes \r\n confusion
2329     on some platforms.  */
2330  return ferror (f) || fclose (f) != 0;
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_run "$LINENO"; then :
2337  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2338else
2339  ac_retval=1
2340fi
2341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2342  conftest.$ac_objext conftest.beam conftest.$ac_ext
2343rm -f conftest.val
2344
2345  fi
2346  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347  as_fn_set_status $ac_retval
2348
2349} # ac_fn_c_compute_int
2350cat >config.log <<_ACEOF
2351This file contains any messages produced by compilers while
2352running configure, to aid debugging if configure makes a mistake.
2353
2354It was created by LibTIFF Software $as_me 4.0.1, which was
2355generated by GNU Autoconf 2.68.  Invocation command line was
2356
2357  $ $0 $@
2358
2359_ACEOF
2360exec 5>>config.log
2361{
2362cat <<_ASUNAME
2363## --------- ##
2364## Platform. ##
2365## --------- ##
2366
2367hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2368uname -m = `(uname -m) 2>/dev/null || echo unknown`
2369uname -r = `(uname -r) 2>/dev/null || echo unknown`
2370uname -s = `(uname -s) 2>/dev/null || echo unknown`
2371uname -v = `(uname -v) 2>/dev/null || echo unknown`
2372
2373/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2374/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2375
2376/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2377/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2378/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2379/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2380/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2381/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2382/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2383
2384_ASUNAME
2385
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391    $as_echo "PATH: $as_dir"
2392  done
2393IFS=$as_save_IFS
2394
2395} >&5
2396
2397cat >&5 <<_ACEOF
2398
2399
2400## ----------- ##
2401## Core tests. ##
2402## ----------- ##
2403
2404_ACEOF
2405
2406
2407# Keep a trace of the command line.
2408# Strip out --no-create and --no-recursion so they do not pile up.
2409# Strip out --silent because we don't want to record it for future runs.
2410# Also quote any args containing shell meta-characters.
2411# Make two passes to allow for proper duplicate-argument suppression.
2412ac_configure_args=
2413ac_configure_args0=
2414ac_configure_args1=
2415ac_must_keep_next=false
2416for ac_pass in 1 2
2417do
2418  for ac_arg
2419  do
2420    case $ac_arg in
2421    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423    | -silent | --silent | --silen | --sile | --sil)
2424      continue ;;
2425    *\'*)
2426      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427    esac
2428    case $ac_pass in
2429    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2430    2)
2431      as_fn_append ac_configure_args1 " '$ac_arg'"
2432      if test $ac_must_keep_next = true; then
2433	ac_must_keep_next=false # Got value, back to normal.
2434      else
2435	case $ac_arg in
2436	  *=* | --config-cache | -C | -disable-* | --disable-* \
2437	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439	  | -with-* | --with-* | -without-* | --without-* | --x)
2440	    case "$ac_configure_args0 " in
2441	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442	    esac
2443	    ;;
2444	  -* ) ac_must_keep_next=true ;;
2445	esac
2446      fi
2447      as_fn_append ac_configure_args " '$ac_arg'"
2448      ;;
2449    esac
2450  done
2451done
2452{ ac_configure_args0=; unset ac_configure_args0;}
2453{ ac_configure_args1=; unset ac_configure_args1;}
2454
2455# When interrupted or exit'd, cleanup temporary files, and complete
2456# config.log.  We remove comments because anyway the quotes in there
2457# would cause problems or look ugly.
2458# WARNING: Use '\'' to represent an apostrophe within the trap.
2459# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460trap 'exit_status=$?
2461  # Save into config.log some information that might help in debugging.
2462  {
2463    echo
2464
2465    $as_echo "## ---------------- ##
2466## Cache variables. ##
2467## ---------------- ##"
2468    echo
2469    # The following way of writing the cache mishandles newlines in values,
2470(
2471  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472    eval ac_val=\$$ac_var
2473    case $ac_val in #(
2474    *${as_nl}*)
2475      case $ac_var in #(
2476      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478      esac
2479      case $ac_var in #(
2480      _ | IFS | as_nl) ;; #(
2481      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482      *) { eval $ac_var=; unset $ac_var;} ;;
2483      esac ;;
2484    esac
2485  done
2486  (set) 2>&1 |
2487    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488    *${as_nl}ac_space=\ *)
2489      sed -n \
2490	"s/'\''/'\''\\\\'\'''\''/g;
2491	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492      ;; #(
2493    *)
2494      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2495      ;;
2496    esac |
2497    sort
2498)
2499    echo
2500
2501    $as_echo "## ----------------- ##
2502## Output variables. ##
2503## ----------------- ##"
2504    echo
2505    for ac_var in $ac_subst_vars
2506    do
2507      eval ac_val=\$$ac_var
2508      case $ac_val in
2509      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510      esac
2511      $as_echo "$ac_var='\''$ac_val'\''"
2512    done | sort
2513    echo
2514
2515    if test -n "$ac_subst_files"; then
2516      $as_echo "## ------------------- ##
2517## File substitutions. ##
2518## ------------------- ##"
2519      echo
2520      for ac_var in $ac_subst_files
2521      do
2522	eval ac_val=\$$ac_var
2523	case $ac_val in
2524	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525	esac
2526	$as_echo "$ac_var='\''$ac_val'\''"
2527      done | sort
2528      echo
2529    fi
2530
2531    if test -s confdefs.h; then
2532      $as_echo "## ----------- ##
2533## confdefs.h. ##
2534## ----------- ##"
2535      echo
2536      cat confdefs.h
2537      echo
2538    fi
2539    test "$ac_signal" != 0 &&
2540      $as_echo "$as_me: caught signal $ac_signal"
2541    $as_echo "$as_me: exit $exit_status"
2542  } >&5
2543  rm -f core *.core core.conftest.* &&
2544    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545    exit $exit_status
2546' 0
2547for ac_signal in 1 2 13 15; do
2548  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549done
2550ac_signal=0
2551
2552# confdefs.h avoids OS command line length limits that DEFS can exceed.
2553rm -f -r conftest* confdefs.h
2554
2555$as_echo "/* confdefs.h */" > confdefs.h
2556
2557# Predefined preprocessor variables.
2558
2559cat >>confdefs.h <<_ACEOF
2560#define PACKAGE_NAME "$PACKAGE_NAME"
2561_ACEOF
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565_ACEOF
2566
2567cat >>confdefs.h <<_ACEOF
2568#define PACKAGE_VERSION "$PACKAGE_VERSION"
2569_ACEOF
2570
2571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_STRING "$PACKAGE_STRING"
2573_ACEOF
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577_ACEOF
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_URL "$PACKAGE_URL"
2581_ACEOF
2582
2583
2584# Let the site file select an alternate cache file if it wants to.
2585# Prefer an explicitly selected file to automatically selected ones.
2586ac_site_file1=NONE
2587ac_site_file2=NONE
2588if test -n "$CONFIG_SITE"; then
2589  # We do not want a PATH search for config.site.
2590  case $CONFIG_SITE in #((
2591    -*)  ac_site_file1=./$CONFIG_SITE;;
2592    */*) ac_site_file1=$CONFIG_SITE;;
2593    *)   ac_site_file1=./$CONFIG_SITE;;
2594  esac
2595elif test "x$prefix" != xNONE; then
2596  ac_site_file1=$prefix/share/config.site
2597  ac_site_file2=$prefix/etc/config.site
2598else
2599  ac_site_file1=$ac_default_prefix/share/config.site
2600  ac_site_file2=$ac_default_prefix/etc/config.site
2601fi
2602for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2603do
2604  test "x$ac_site_file" = xNONE && continue
2605  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2606    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2607$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2608    sed 's/^/| /' "$ac_site_file" >&5
2609    . "$ac_site_file" \
2610      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612as_fn_error $? "failed to load site script $ac_site_file
2613See \`config.log' for more details" "$LINENO" 5; }
2614  fi
2615done
2616
2617if test -r "$cache_file"; then
2618  # Some versions of bash will fail to source /dev/null (special files
2619  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2620  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2621    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2622$as_echo "$as_me: loading cache $cache_file" >&6;}
2623    case $cache_file in
2624      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625      *)                      . "./$cache_file";;
2626    esac
2627  fi
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2630$as_echo "$as_me: creating cache $cache_file" >&6;}
2631  >$cache_file
2632fi
2633
2634# Check that the precious variables saved in the cache have kept the same
2635# value.
2636ac_cache_corrupted=false
2637for ac_var in $ac_precious_vars; do
2638  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2639  eval ac_new_set=\$ac_env_${ac_var}_set
2640  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2641  eval ac_new_val=\$ac_env_${ac_var}_value
2642  case $ac_old_set,$ac_new_set in
2643    set,)
2644      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2645$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2646      ac_cache_corrupted=: ;;
2647    ,set)
2648      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2649$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2650      ac_cache_corrupted=: ;;
2651    ,);;
2652    *)
2653      if test "x$ac_old_val" != "x$ac_new_val"; then
2654	# differences in whitespace do not lead to failure.
2655	ac_old_val_w=`echo x $ac_old_val`
2656	ac_new_val_w=`echo x $ac_new_val`
2657	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2658	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2659$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2660	  ac_cache_corrupted=:
2661	else
2662	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2663$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2664	  eval $ac_var=\$ac_old_val
2665	fi
2666	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2667$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2668	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2669$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2670      fi;;
2671  esac
2672  # Pass precious variables to config.status.
2673  if test "$ac_new_set" = set; then
2674    case $ac_new_val in
2675    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2676    *) ac_arg=$ac_var=$ac_new_val ;;
2677    esac
2678    case " $ac_configure_args " in
2679      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2680      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681    esac
2682  fi
2683done
2684if $ac_cache_corrupted; then
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2688$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2689  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2690fi
2691## -------------------- ##
2692## Main body of script. ##
2693## -------------------- ##
2694
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701
2702ac_aux_dir=
2703for ac_dir in config "$srcdir"/config; do
2704  if test -f "$ac_dir/install-sh"; then
2705    ac_aux_dir=$ac_dir
2706    ac_install_sh="$ac_aux_dir/install-sh -c"
2707    break
2708  elif test -f "$ac_dir/install.sh"; then
2709    ac_aux_dir=$ac_dir
2710    ac_install_sh="$ac_aux_dir/install.sh -c"
2711    break
2712  elif test -f "$ac_dir/shtool"; then
2713    ac_aux_dir=$ac_dir
2714    ac_install_sh="$ac_aux_dir/shtool install -c"
2715    break
2716  fi
2717done
2718if test -z "$ac_aux_dir"; then
2719  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2720fi
2721
2722# These three variables are undocumented and unsupported,
2723# and are intended to be withdrawn in a future Autoconf release.
2724# They can cause serious problems if a builder's source tree is in a directory
2725# whose full name contains unusual characters.
2726ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2727ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2728ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2729
2730
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739# Make sure we can run config.sub.
2740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744$as_echo_n "checking build system type... " >&6; }
2745if ${ac_cv_build+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  ac_build_alias=$build_alias
2749test "x$ac_build_alias" = x &&
2750  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751test "x$ac_build_alias" = x &&
2752  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758$as_echo "$ac_cv_build" >&6; }
2759case $ac_cv_build in
2760*-*-*) ;;
2761*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762esac
2763build=$ac_cv_build
2764ac_save_IFS=$IFS; IFS='-'
2765set x $ac_cv_build
2766shift
2767build_cpu=$1
2768build_vendor=$2
2769shift; shift
2770# Remember, the first character of IFS is used to create $*,
2771# except with old shells:
2772build_os=$*
2773IFS=$ac_save_IFS
2774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775
2776
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778$as_echo_n "checking host system type... " >&6; }
2779if ${ac_cv_host+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test "x$host_alias" = x; then
2783  ac_cv_host=$ac_cv_build
2784else
2785  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787fi
2788
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791$as_echo "$ac_cv_host" >&6; }
2792case $ac_cv_host in
2793*-*-*) ;;
2794*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795esac
2796host=$ac_cv_host
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_host
2799shift
2800host_cpu=$1
2801host_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805host_os=$*
2806IFS=$ac_save_IFS
2807case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808
2809
2810
2811am__api_version='1.11'
2812
2813# Find a good install program.  We prefer a C program (faster),
2814# so one script is as good as another.  But avoid the broken or
2815# incompatible versions:
2816# SysV /etc/install, /usr/sbin/install
2817# SunOS /usr/etc/install
2818# IRIX /sbin/install
2819# AIX /bin/install
2820# AmigaOS /C/install, which installs bootblocks on floppy discs
2821# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2822# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2823# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2824# OS/2's system install, which has a completely different semantic
2825# ./install, which can be erroneously created by make from ./install.sh.
2826# Reject install programs that cannot install multiple files.
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2828$as_echo_n "checking for a BSD-compatible install... " >&6; }
2829if test -z "$INSTALL"; then
2830if ${ac_cv_path_install+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838    # Account for people who put trailing slashes in PATH elements.
2839case $as_dir/ in #((
2840  ./ | .// | /[cC]/* | \
2841  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2842  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2843  /usr/ucb/* ) ;;
2844  *)
2845    # OSF1 and SCO ODT 3.0 have their own names for install.
2846    # Don't use installbsd from OSF since it installs stuff as root
2847    # by default.
2848    for ac_prog in ginstall scoinst install; do
2849      for ac_exec_ext in '' $ac_executable_extensions; do
2850	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2851	  if test $ac_prog = install &&
2852	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2853	    # AIX install.  It has an incompatible calling convention.
2854	    :
2855	  elif test $ac_prog = install &&
2856	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2857	    # program-specific install script used by HP pwplus--don't use.
2858	    :
2859	  else
2860	    rm -rf conftest.one conftest.two conftest.dir
2861	    echo one > conftest.one
2862	    echo two > conftest.two
2863	    mkdir conftest.dir
2864	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2865	      test -s conftest.one && test -s conftest.two &&
2866	      test -s conftest.dir/conftest.one &&
2867	      test -s conftest.dir/conftest.two
2868	    then
2869	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2870	      break 3
2871	    fi
2872	  fi
2873	fi
2874      done
2875    done
2876    ;;
2877esac
2878
2879  done
2880IFS=$as_save_IFS
2881
2882rm -rf conftest.one conftest.two conftest.dir
2883
2884fi
2885  if test "${ac_cv_path_install+set}" = set; then
2886    INSTALL=$ac_cv_path_install
2887  else
2888    # As a last resort, use the slow shell script.  Don't cache a
2889    # value for INSTALL within a source directory, because that will
2890    # break other packages using the cache if that directory is
2891    # removed, or if the value is a relative name.
2892    INSTALL=$ac_install_sh
2893  fi
2894fi
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2896$as_echo "$INSTALL" >&6; }
2897
2898# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2899# It thinks the first close brace ends the variable substitution.
2900test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2901
2902test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2903
2904test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2905
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2907$as_echo_n "checking whether build environment is sane... " >&6; }
2908# Just in case
2909sleep 1
2910echo timestamp > conftest.file
2911# Reject unsafe characters in $srcdir or the absolute working directory
2912# name.  Accept space and tab only in the latter.
2913am_lf='
2914'
2915case `pwd` in
2916  *[\\\"\#\$\&\'\`$am_lf]*)
2917    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2918esac
2919case $srcdir in
2920  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2921    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2922esac
2923
2924# Do `set' in a subshell so we don't clobber the current shell's
2925# arguments.  Must try -L first in case configure is actually a
2926# symlink; some systems play weird games with the mod time of symlinks
2927# (eg FreeBSD returns the mod time of the symlink's containing
2928# directory).
2929if (
2930   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2931   if test "$*" = "X"; then
2932      # -L didn't work.
2933      set X `ls -t "$srcdir/configure" conftest.file`
2934   fi
2935   rm -f conftest.file
2936   if test "$*" != "X $srcdir/configure conftest.file" \
2937      && test "$*" != "X conftest.file $srcdir/configure"; then
2938
2939      # If neither matched, then we have a broken ls.  This can happen
2940      # if, for instance, CONFIG_SHELL is bash and it inherits a
2941      # broken ls alias from the environment.  This has actually
2942      # happened.  Such a system could not be considered "sane".
2943      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2944alias in your environment" "$LINENO" 5
2945   fi
2946
2947   test "$2" = conftest.file
2948   )
2949then
2950   # Ok.
2951   :
2952else
2953   as_fn_error $? "newly created file is older than distributed files!
2954Check your system clock" "$LINENO" 5
2955fi
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957$as_echo "yes" >&6; }
2958test "$program_prefix" != NONE &&
2959  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2960# Use a double $ so make ignores it.
2961test "$program_suffix" != NONE &&
2962  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2963# Double any \ or $.
2964# By default was `s,x,x', remove it if useless.
2965ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2966program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2967
2968# expand $ac_aux_dir to an absolute path
2969am_aux_dir=`cd $ac_aux_dir && pwd`
2970
2971if test x"${MISSING+set}" != xset; then
2972  case $am_aux_dir in
2973  *\ * | *\	*)
2974    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2975  *)
2976    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2977  esac
2978fi
2979# Use eval to expand $SHELL
2980if eval "$MISSING --run true"; then
2981  am_missing_run="$MISSING --run "
2982else
2983  am_missing_run=
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2985$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2986fi
2987
2988if test x"${install_sh}" != xset; then
2989  case $am_aux_dir in
2990  *\ * | *\	*)
2991    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2992  *)
2993    install_sh="\${SHELL} $am_aux_dir/install-sh"
2994  esac
2995fi
2996
2997# Installed binaries are usually stripped using `strip' when the user
2998# run `make install-strip'.  However `strip' might not be the right
2999# tool to use in cross-compilation environments, therefore Automake
3000# will honor the `STRIP' environment variable to overrule this program.
3001if test "$cross_compiling" != no; then
3002  if test -n "$ac_tool_prefix"; then
3003  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3004set dummy ${ac_tool_prefix}strip; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_STRIP+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$STRIP"; then
3011  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030STRIP=$ac_cv_prog_STRIP
3031if test -n "$STRIP"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3033$as_echo "$STRIP" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039
3040fi
3041if test -z "$ac_cv_prog_STRIP"; then
3042  ac_ct_STRIP=$STRIP
3043  # Extract the first word of "strip", so it can be a program name with args.
3044set dummy strip; ac_word=$2
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  if test -n "$ac_ct_STRIP"; then
3051  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060    ac_cv_prog_ac_ct_STRIP="strip"
3061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062    break 2
3063  fi
3064done
3065  done
3066IFS=$as_save_IFS
3067
3068fi
3069fi
3070ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3071if test -n "$ac_ct_STRIP"; then
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3073$as_echo "$ac_ct_STRIP" >&6; }
3074else
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077fi
3078
3079  if test "x$ac_ct_STRIP" = x; then
3080    STRIP=":"
3081  else
3082    case $cross_compiling:$ac_tool_warned in
3083yes:)
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086ac_tool_warned=yes ;;
3087esac
3088    STRIP=$ac_ct_STRIP
3089  fi
3090else
3091  STRIP="$ac_cv_prog_STRIP"
3092fi
3093
3094fi
3095INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3096
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3098$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3099if test -z "$MKDIR_P"; then
3100  if ${ac_cv_path_mkdir+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_prog in mkdir gmkdir; do
3109	 for ac_exec_ext in '' $ac_executable_extensions; do
3110	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3111	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3112	     'mkdir (GNU coreutils) '* | \
3113	     'mkdir (coreutils) '* | \
3114	     'mkdir (fileutils) '4.1*)
3115	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3116	       break 3;;
3117	   esac
3118	 done
3119       done
3120  done
3121IFS=$as_save_IFS
3122
3123fi
3124
3125  test -d ./--version && rmdir ./--version
3126  if test "${ac_cv_path_mkdir+set}" = set; then
3127    MKDIR_P="$ac_cv_path_mkdir -p"
3128  else
3129    # As a last resort, use the slow shell script.  Don't cache a
3130    # value for MKDIR_P within a source directory, because that will
3131    # break other packages using the cache if that directory is
3132    # removed, or if the value is a relative name.
3133    MKDIR_P="$ac_install_sh -d"
3134  fi
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3137$as_echo "$MKDIR_P" >&6; }
3138
3139mkdir_p="$MKDIR_P"
3140case $mkdir_p in
3141  [\\/$]* | ?:[\\/]*) ;;
3142  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3143esac
3144
3145for ac_prog in gawk mawk nawk awk
3146do
3147  # Extract the first word of "$ac_prog", so it can be a program name with args.
3148set dummy $ac_prog; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_AWK+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$AWK"; then
3155  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164    ac_cv_prog_AWK="$ac_prog"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174AWK=$ac_cv_prog_AWK
3175if test -n "$AWK"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3177$as_echo "$AWK" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184  test -n "$AWK" && break
3185done
3186
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3189set x ${MAKE-make}
3190ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3191if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  cat >conftest.make <<\_ACEOF
3195SHELL = /bin/sh
3196all:
3197	@echo '@@@%%%=$(MAKE)=@@@%%%'
3198_ACEOF
3199# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3200case `${MAKE-make} -f conftest.make 2>/dev/null` in
3201  *@@@%%%=?*=@@@%%%*)
3202    eval ac_cv_prog_make_${ac_make}_set=yes;;
3203  *)
3204    eval ac_cv_prog_make_${ac_make}_set=no;;
3205esac
3206rm -f conftest.make
3207fi
3208if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210$as_echo "yes" >&6; }
3211  SET_MAKE=
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215  SET_MAKE="MAKE=${MAKE-make}"
3216fi
3217
3218rm -rf .tst 2>/dev/null
3219mkdir .tst 2>/dev/null
3220if test -d .tst; then
3221  am__leading_dot=.
3222else
3223  am__leading_dot=_
3224fi
3225rmdir .tst 2>/dev/null
3226
3227if test "`cd $srcdir && pwd`" != "`pwd`"; then
3228  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3229  # is not polluted with repeated "-I."
3230  am__isrc=' -I$(srcdir)'
3231  # test to see if srcdir already configured
3232  if test -f $srcdir/config.status; then
3233    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3234  fi
3235fi
3236
3237# test whether we have cygpath
3238if test -z "$CYGPATH_W"; then
3239  if (cygpath --version) >/dev/null 2>/dev/null; then
3240    CYGPATH_W='cygpath -w'
3241  else
3242    CYGPATH_W=echo
3243  fi
3244fi
3245
3246
3247# Define the identity of the package.
3248 PACKAGE='tiff'
3249 VERSION='4.0.1'
3250
3251
3252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE "$PACKAGE"
3254_ACEOF
3255
3256
3257cat >>confdefs.h <<_ACEOF
3258#define VERSION "$VERSION"
3259_ACEOF
3260
3261# Some tools Automake needs.
3262
3263ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3264
3265
3266AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3267
3268
3269AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3270
3271
3272AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3273
3274
3275MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3276
3277# We need awk for the "check" target.  The system "awk" is bad on
3278# some platforms.
3279# Always define AMTAR for backward compatibility.  Yes, it's still used
3280# in the wild :-(  We should find a proper way to deprecate it ...
3281AMTAR='$${TAR-tar}'
3282
3283am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3284
3285
3286
3287
3288
3289
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3291$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3292    # Check whether --enable-maintainer-mode was given.
3293if test "${enable_maintainer_mode+set}" = set; then :
3294  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3295else
3296  USE_MAINTAINER_MODE=no
3297fi
3298
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3300$as_echo "$USE_MAINTAINER_MODE" >&6; }
3301   if test $USE_MAINTAINER_MODE = yes; then
3302  MAINTAINER_MODE_TRUE=
3303  MAINTAINER_MODE_FALSE='#'
3304else
3305  MAINTAINER_MODE_TRUE='#'
3306  MAINTAINER_MODE_FALSE=
3307fi
3308
3309  MAINT=$MAINTAINER_MODE_TRUE
3310
3311
3312
3313LIBTIFF_MAJOR_VERSION=4
3314LIBTIFF_MINOR_VERSION=0
3315LIBTIFF_MICRO_VERSION=1
3316LIBTIFF_ALPHA_VERSION=
3317LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3318LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3319
3320LIBTIFF_CURRENT=5
3321LIBTIFF_REVISION=6
3322LIBTIFF_AGE=0
3323LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3324
3325# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3326# in OpenBSD uses some special semantics for shared libraries. Their soname
3327# contains only two numbers, major and minor.
3328# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3329#case "$host_os" in
3330#    openbsd* | mirbsd*)
3331#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3332#	;;
3333#    *)
3334#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3335#	;;
3336#esac
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351if test -n "$ac_tool_prefix"; then
3352  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}gcc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382$as_echo "$CC" >&6; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388
3389fi
3390if test -z "$ac_cv_prog_CC"; then
3391  ac_ct_CC=$CC
3392  # Extract the first word of "gcc", so it can be a program name with args.
3393set dummy gcc; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$ac_ct_CC"; then
3400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  test -z "$as_dir" && as_dir=.
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409    ac_cv_prog_ac_ct_CC="gcc"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422$as_echo "$ac_ct_CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428  if test "x$ac_ct_CC" = x; then
3429    CC=""
3430  else
3431    case $cross_compiling:$ac_tool_warned in
3432yes:)
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435ac_tool_warned=yes ;;
3436esac
3437    CC=$ac_ct_CC
3438  fi
3439else
3440  CC="$ac_cv_prog_CC"
3441fi
3442
3443if test -z "$CC"; then
3444          if test -n "$ac_tool_prefix"; then
3445    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446set dummy ${ac_tool_prefix}cc; ac_word=$2
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448$as_echo_n "checking for $ac_word... " >&6; }
3449if ${ac_cv_prog_CC+:} false; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  if test -n "$CC"; then
3453  ac_cv_prog_CC="$CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  test -z "$as_dir" && as_dir=.
3460    for ac_exec_ext in '' $ac_executable_extensions; do
3461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462    ac_cv_prog_CC="${ac_tool_prefix}cc"
3463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464    break 2
3465  fi
3466done
3467  done
3468IFS=$as_save_IFS
3469
3470fi
3471fi
3472CC=$ac_cv_prog_CC
3473if test -n "$CC"; then
3474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475$as_echo "$CC" >&6; }
3476else
3477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478$as_echo "no" >&6; }
3479fi
3480
3481
3482  fi
3483fi
3484if test -z "$CC"; then
3485  # Extract the first word of "cc", so it can be a program name with args.
3486set dummy cc; ac_word=$2
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488$as_echo_n "checking for $ac_word... " >&6; }
3489if ${ac_cv_prog_CC+:} false; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  if test -n "$CC"; then
3493  ac_cv_prog_CC="$CC" # Let the user override the test.
3494else
3495  ac_prog_rejected=no
3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499  IFS=$as_save_IFS
3500  test -z "$as_dir" && as_dir=.
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504       ac_prog_rejected=yes
3505       continue
3506     fi
3507    ac_cv_prog_CC="cc"
3508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509    break 2
3510  fi
3511done
3512  done
3513IFS=$as_save_IFS
3514
3515if test $ac_prog_rejected = yes; then
3516  # We found a bogon in the path, so make sure we never use it.
3517  set dummy $ac_cv_prog_CC
3518  shift
3519  if test $# != 0; then
3520    # We chose a different compiler from the bogus one.
3521    # However, it has the same basename, so the bogon will be chosen
3522    # first if we set CC to just the basename; use the full file name.
3523    shift
3524    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3525  fi
3526fi
3527fi
3528fi
3529CC=$ac_cv_prog_CC
3530if test -n "$CC"; then
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532$as_echo "$CC" >&6; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535$as_echo "no" >&6; }
3536fi
3537
3538
3539fi
3540if test -z "$CC"; then
3541  if test -n "$ac_tool_prefix"; then
3542  for ac_prog in cl.exe
3543  do
3544    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547$as_echo_n "checking for $ac_word... " >&6; }
3548if ${ac_cv_prog_CC+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  if test -n "$CC"; then
3552  ac_cv_prog_CC="$CC" # Let the user override the test.
3553else
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557  IFS=$as_save_IFS
3558  test -z "$as_dir" && as_dir=.
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563    break 2
3564  fi
3565done
3566  done
3567IFS=$as_save_IFS
3568
3569fi
3570fi
3571CC=$ac_cv_prog_CC
3572if test -n "$CC"; then
3573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574$as_echo "$CC" >&6; }
3575else
3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577$as_echo "no" >&6; }
3578fi
3579
3580
3581    test -n "$CC" && break
3582  done
3583fi
3584if test -z "$CC"; then
3585  ac_ct_CC=$CC
3586  for ac_prog in cl.exe
3587do
3588  # Extract the first word of "$ac_prog", so it can be a program name with args.
3589set dummy $ac_prog; ac_word=$2
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591$as_echo_n "checking for $ac_word... " >&6; }
3592if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  if test -n "$ac_ct_CC"; then
3596  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_exec_ext in '' $ac_executable_extensions; do
3604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605    ac_cv_prog_ac_ct_CC="$ac_prog"
3606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610  done
3611IFS=$as_save_IFS
3612
3613fi
3614fi
3615ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616if test -n "$ac_ct_CC"; then
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618$as_echo "$ac_ct_CC" >&6; }
3619else
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621$as_echo "no" >&6; }
3622fi
3623
3624
3625  test -n "$ac_ct_CC" && break
3626done
3627
3628  if test "x$ac_ct_CC" = x; then
3629    CC=""
3630  else
3631    case $cross_compiling:$ac_tool_warned in
3632yes:)
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635ac_tool_warned=yes ;;
3636esac
3637    CC=$ac_ct_CC
3638  fi
3639fi
3640
3641fi
3642
3643
3644test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646as_fn_error $? "no acceptable C compiler found in \$PATH
3647See \`config.log' for more details" "$LINENO" 5; }
3648
3649# Provide some information about the compiler.
3650$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3651set X $ac_compile
3652ac_compiler=$2
3653for ac_option in --version -v -V -qversion; do
3654  { { ac_try="$ac_compiler $ac_option >&5"
3655case "(($ac_try" in
3656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657  *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3662  ac_status=$?
3663  if test -s conftest.err; then
3664    sed '10a\
3665... rest of stderr output deleted ...
3666         10q' conftest.err >conftest.er1
3667    cat conftest.er1 >&5
3668  fi
3669  rm -f conftest.er1 conftest.err
3670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671  test $ac_status = 0; }
3672done
3673
3674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685ac_clean_files_save=$ac_clean_files
3686ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3687# Try to create an executable without -o first, disregard a.out.
3688# It will help us diagnose broken compilers, and finding out an intuition
3689# of exeext.
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3691$as_echo_n "checking whether the C compiler works... " >&6; }
3692ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3693
3694# The possible output files:
3695ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3696
3697ac_rmfiles=
3698for ac_file in $ac_files
3699do
3700  case $ac_file in
3701    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3703  esac
3704done
3705rm -f $ac_rmfiles
3706
3707if { { ac_try="$ac_link_default"
3708case "(($ac_try" in
3709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710  *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714  (eval "$ac_link_default") 2>&5
3715  ac_status=$?
3716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }; then :
3718  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3719# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3720# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3721# so that the user can short-circuit this test for compilers unknown to
3722# Autoconf.
3723for ac_file in $ac_files ''
3724do
3725  test -f "$ac_file" || continue
3726  case $ac_file in
3727    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3728	;;
3729    [ab].out )
3730	# We found the default executable, but exeext='' is most
3731	# certainly right.
3732	break;;
3733    *.* )
3734	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3735	then :; else
3736	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737	fi
3738	# We set ac_cv_exeext here because the later test for it is not
3739	# safe: cross compilers may not add the suffix if given an `-o'
3740	# argument, so we may need to know it at that point already.
3741	# Even if this section looks crufty: it has the advantage of
3742	# actually working.
3743	break;;
3744    * )
3745	break;;
3746  esac
3747done
3748test "$ac_cv_exeext" = no && ac_cv_exeext=
3749
3750else
3751  ac_file=''
3752fi
3753if test -z "$ac_file"; then :
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756$as_echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761as_fn_error 77 "C compiler cannot create executables
3762See \`config.log' for more details" "$LINENO" 5; }
3763else
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765$as_echo "yes" >&6; }
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3768$as_echo_n "checking for C compiler default output file name... " >&6; }
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3770$as_echo "$ac_file" >&6; }
3771ac_exeext=$ac_cv_exeext
3772
3773rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3774ac_clean_files=$ac_clean_files_save
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3776$as_echo_n "checking for suffix of executables... " >&6; }
3777if { { ac_try="$ac_link"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
3784  (eval "$ac_link") 2>&5
3785  ac_status=$?
3786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787  test $ac_status = 0; }; then :
3788  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3789# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3790# work properly (i.e., refer to `conftest.exe'), while it won't with
3791# `rm'.
3792for ac_file in conftest.exe conftest conftest.*; do
3793  test -f "$ac_file" || continue
3794  case $ac_file in
3795    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3796    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797	  break;;
3798    * ) break;;
3799  esac
3800done
3801else
3802  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3805See \`config.log' for more details" "$LINENO" 5; }
3806fi
3807rm -f conftest conftest$ac_cv_exeext
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3809$as_echo "$ac_cv_exeext" >&6; }
3810
3811rm -f conftest.$ac_ext
3812EXEEXT=$ac_cv_exeext
3813ac_exeext=$EXEEXT
3814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816#include <stdio.h>
3817int
3818main ()
3819{
3820FILE *f = fopen ("conftest.out", "w");
3821 return ferror (f) || fclose (f) != 0;
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827ac_clean_files="$ac_clean_files conftest.out"
3828# Check that the compiler produces executables we can run.  If not, either
3829# the compiler is broken, or we cross compile.
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3831$as_echo_n "checking whether we are cross compiling... " >&6; }
3832if test "$cross_compiling" != yes; then
3833  { { ac_try="$ac_link"
3834case "(($ac_try" in
3835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836  *) ac_try_echo=$ac_try;;
3837esac
3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839$as_echo "$ac_try_echo"; } >&5
3840  (eval "$ac_link") 2>&5
3841  ac_status=$?
3842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843  test $ac_status = 0; }
3844  if { ac_try='./conftest$ac_cv_exeext'
3845  { { case "(($ac_try" in
3846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847  *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851  (eval "$ac_try") 2>&5
3852  ac_status=$?
3853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854  test $ac_status = 0; }; }; then
3855    cross_compiling=no
3856  else
3857    if test "$cross_compiling" = maybe; then
3858	cross_compiling=yes
3859    else
3860	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862as_fn_error $? "cannot run C compiled programs.
3863If you meant to cross compile, use \`--host'.
3864See \`config.log' for more details" "$LINENO" 5; }
3865    fi
3866  fi
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3869$as_echo "$cross_compiling" >&6; }
3870
3871rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3872ac_clean_files=$ac_clean_files_save
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3874$as_echo_n "checking for suffix of object files... " >&6; }
3875if ${ac_cv_objext+:} false; then :
3876  $as_echo_n "(cached) " >&6
3877else
3878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889rm -f conftest.o conftest.obj
3890if { { ac_try="$ac_compile"
3891case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897  (eval "$ac_compile") 2>&5
3898  ac_status=$?
3899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900  test $ac_status = 0; }; then :
3901  for ac_file in conftest.o conftest.obj conftest.*; do
3902  test -f "$ac_file" || continue;
3903  case $ac_file in
3904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3905    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3906       break;;
3907  esac
3908done
3909else
3910  $as_echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915as_fn_error $? "cannot compute suffix of object files: cannot compile
3916See \`config.log' for more details" "$LINENO" 5; }
3917fi
3918rm -f conftest.$ac_cv_objext conftest.$ac_ext
3919fi
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3921$as_echo "$ac_cv_objext" >&6; }
3922OBJEXT=$ac_cv_objext
3923ac_objext=$OBJEXT
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3925$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3926if ${ac_cv_c_compiler_gnu+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h.  */
3931
3932int
3933main ()
3934{
3935#ifndef __GNUC__
3936       choke me
3937#endif
3938
3939  ;
3940  return 0;
3941}
3942_ACEOF
3943if ac_fn_c_try_compile "$LINENO"; then :
3944  ac_compiler_gnu=yes
3945else
3946  ac_compiler_gnu=no
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949ac_cv_c_compiler_gnu=$ac_compiler_gnu
3950
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3954if test $ac_compiler_gnu = yes; then
3955  GCC=yes
3956else
3957  GCC=
3958fi
3959ac_test_CFLAGS=${CFLAGS+set}
3960ac_save_CFLAGS=$CFLAGS
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3962$as_echo_n "checking whether $CC accepts -g... " >&6; }
3963if ${ac_cv_prog_cc_g+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  ac_save_c_werror_flag=$ac_c_werror_flag
3967   ac_c_werror_flag=yes
3968   ac_cv_prog_cc_g=no
3969   CFLAGS="-g"
3970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976
3977  ;
3978  return 0;
3979}
3980_ACEOF
3981if ac_fn_c_try_compile "$LINENO"; then :
3982  ac_cv_prog_cc_g=yes
3983else
3984  CFLAGS=""
3985      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988int
3989main ()
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"; then :
3997
3998else
3999  ac_c_werror_flag=$ac_save_c_werror_flag
4000	 CFLAGS="-g"
4001	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003
4004int
4005main ()
4006{
4007
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_compile "$LINENO"; then :
4013  ac_cv_prog_cc_g=yes
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018fi
4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020   ac_c_werror_flag=$ac_save_c_werror_flag
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4023$as_echo "$ac_cv_prog_cc_g" >&6; }
4024if test "$ac_test_CFLAGS" = set; then
4025  CFLAGS=$ac_save_CFLAGS
4026elif test $ac_cv_prog_cc_g = yes; then
4027  if test "$GCC" = yes; then
4028    CFLAGS="-g -O2"
4029  else
4030    CFLAGS="-g"
4031  fi
4032else
4033  if test "$GCC" = yes; then
4034    CFLAGS="-O2"
4035  else
4036    CFLAGS=
4037  fi
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041if ${ac_cv_prog_cc_c89+:} false; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044  ac_cv_prog_cc_c89=no
4045ac_save_CC=$CC
4046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048#include <stdarg.h>
4049#include <stdio.h>
4050#include <sys/types.h>
4051#include <sys/stat.h>
4052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4053struct buf { int x; };
4054FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055static char *e (p, i)
4056     char **p;
4057     int i;
4058{
4059  return p[i];
4060}
4061static char *f (char * (*g) (char **, int), char **p, ...)
4062{
4063  char *s;
4064  va_list v;
4065  va_start (v,p);
4066  s = g (p, va_arg (v,int));
4067  va_end (v);
4068  return s;
4069}
4070
4071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4072   function prototypes and stuff, but not '\xHH' hex character constants.
4073   These don't provoke an error unfortunately, instead are silently treated
4074   as 'x'.  The following induces an error, until -std is added to get
4075   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4076   array size at least.  It's necessary to write '\x00'==0 to get something
4077   that's true only with -std.  */
4078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079
4080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081   inside strings and character constants.  */
4082#define FOO(x) 'x'
4083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084
4085int test (int i, double x);
4086struct s1 {int (*f) (int a);};
4087struct s2 {int (*f) (double a);};
4088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4089int argc;
4090char **argv;
4091int
4092main ()
4093{
4094return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101do
4102  CC="$ac_save_CC $ac_arg"
4103  if ac_fn_c_try_compile "$LINENO"; then :
4104  ac_cv_prog_cc_c89=$ac_arg
4105fi
4106rm -f core conftest.err conftest.$ac_objext
4107  test "x$ac_cv_prog_cc_c89" != "xno" && break
4108done
4109rm -f conftest.$ac_ext
4110CC=$ac_save_CC
4111
4112fi
4113# AC_CACHE_VAL
4114case "x$ac_cv_prog_cc_c89" in
4115  x)
4116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117$as_echo "none needed" >&6; } ;;
4118  xno)
4119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120$as_echo "unsupported" >&6; } ;;
4121  *)
4122    CC="$CC $ac_cv_prog_cc_c89"
4123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4125esac
4126if test "x$ac_cv_prog_cc_c89" != xno; then :
4127
4128fi
4129
4130ac_ext=c
4131ac_cpp='$CPP $CPPFLAGS'
4132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135DEPDIR="${am__leading_dot}deps"
4136
4137ac_config_commands="$ac_config_commands depfiles"
4138
4139
4140am_make=${MAKE-make}
4141cat > confinc << 'END'
4142am__doit:
4143	@echo this is the am__doit target
4144.PHONY: am__doit
4145END
4146# If we don't find an include directive, just comment out the code.
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4148$as_echo_n "checking for style of include used by $am_make... " >&6; }
4149am__include="#"
4150am__quote=
4151_am_result=none
4152# First try GNU make style include.
4153echo "include confinc" > confmf
4154# Ignore all kinds of additional output from `make'.
4155case `$am_make -s -f confmf 2> /dev/null` in #(
4156*the\ am__doit\ target*)
4157  am__include=include
4158  am__quote=
4159  _am_result=GNU
4160  ;;
4161esac
4162# Now try BSD make style include.
4163if test "$am__include" = "#"; then
4164   echo '.include "confinc"' > confmf
4165   case `$am_make -s -f confmf 2> /dev/null` in #(
4166   *the\ am__doit\ target*)
4167     am__include=.include
4168     am__quote="\""
4169     _am_result=BSD
4170     ;;
4171   esac
4172fi
4173
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4176$as_echo "$_am_result" >&6; }
4177rm -f confinc confmf
4178
4179# Check whether --enable-dependency-tracking was given.
4180if test "${enable_dependency_tracking+set}" = set; then :
4181  enableval=$enable_dependency_tracking;
4182fi
4183
4184if test "x$enable_dependency_tracking" != xno; then
4185  am_depcomp="$ac_aux_dir/depcomp"
4186  AMDEPBACKSLASH='\'
4187  am__nodep='_no'
4188fi
4189 if test "x$enable_dependency_tracking" != xno; then
4190  AMDEP_TRUE=
4191  AMDEP_FALSE='#'
4192else
4193  AMDEP_TRUE='#'
4194  AMDEP_FALSE=
4195fi
4196
4197
4198
4199depcc="$CC"   am_compiler_list=
4200
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4202$as_echo_n "checking dependency style of $depcc... " >&6; }
4203if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4207  # We make a subdir and do the tests there.  Otherwise we can end up
4208  # making bogus files that we don't know about and never remove.  For
4209  # instance it was reported that on HP-UX the gcc test will end up
4210  # making a dummy file named `D' -- because `-MD' means `put the output
4211  # in D'.
4212  rm -rf conftest.dir
4213  mkdir conftest.dir
4214  # Copy depcomp to subdir because otherwise we won't find it if we're
4215  # using a relative directory.
4216  cp "$am_depcomp" conftest.dir
4217  cd conftest.dir
4218  # We will build objects and dependencies in a subdirectory because
4219  # it helps to detect inapplicable dependency modes.  For instance
4220  # both Tru64's cc and ICC support -MD to output dependencies as a
4221  # side effect of compilation, but ICC will put the dependencies in
4222  # the current directory while Tru64 will put them in the object
4223  # directory.
4224  mkdir sub
4225
4226  am_cv_CC_dependencies_compiler_type=none
4227  if test "$am_compiler_list" = ""; then
4228     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4229  fi
4230  am__universal=false
4231  case " $depcc " in #(
4232     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4233     esac
4234
4235  for depmode in $am_compiler_list; do
4236    # Setup a source with many dependencies, because some compilers
4237    # like to wrap large dependency lists on column 80 (with \), and
4238    # we should not choose a depcomp mode which is confused by this.
4239    #
4240    # We need to recreate these files for each test, as the compiler may
4241    # overwrite some of them when testing with obscure command lines.
4242    # This happens at least with the AIX C compiler.
4243    : > sub/conftest.c
4244    for i in 1 2 3 4 5 6; do
4245      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4246      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4247      # Solaris 8's {/usr,}/bin/sh.
4248      touch sub/conftst$i.h
4249    done
4250    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4251
4252    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4253    # mode.  It turns out that the SunPro C++ compiler does not properly
4254    # handle `-M -o', and we need to detect this.  Also, some Intel
4255    # versions had trouble with output in subdirs
4256    am__obj=sub/conftest.${OBJEXT-o}
4257    am__minus_obj="-o $am__obj"
4258    case $depmode in
4259    gcc)
4260      # This depmode causes a compiler race in universal mode.
4261      test "$am__universal" = false || continue
4262      ;;
4263    nosideeffect)
4264      # after this tag, mechanisms are not by side-effect, so they'll
4265      # only be used when explicitly requested
4266      if test "x$enable_dependency_tracking" = xyes; then
4267	continue
4268      else
4269	break
4270      fi
4271      ;;
4272    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4273      # This compiler won't grok `-c -o', but also, the minuso test has
4274      # not run yet.  These depmodes are late enough in the game, and
4275      # so weak that their functioning should not be impacted.
4276      am__obj=conftest.${OBJEXT-o}
4277      am__minus_obj=
4278      ;;
4279    none) break ;;
4280    esac
4281    if depmode=$depmode \
4282       source=sub/conftest.c object=$am__obj \
4283       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4284       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4285         >/dev/null 2>conftest.err &&
4286       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4287       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4288       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4289       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4290      # icc doesn't choke on unknown options, it will just issue warnings
4291      # or remarks (even with -Werror).  So we grep stderr for any message
4292      # that says an option was ignored or not supported.
4293      # When given -MP, icc 7.0 and 7.1 complain thusly:
4294      #   icc: Command line warning: ignoring option '-M'; no argument required
4295      # The diagnosis changed in icc 8.0:
4296      #   icc: Command line remark: option '-MP' not supported
4297      if (grep 'ignoring option' conftest.err ||
4298          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4299        am_cv_CC_dependencies_compiler_type=$depmode
4300        break
4301      fi
4302    fi
4303  done
4304
4305  cd ..
4306  rm -rf conftest.dir
4307else
4308  am_cv_CC_dependencies_compiler_type=none
4309fi
4310
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4313$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4314CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4315
4316 if
4317  test "x$enable_dependency_tracking" != xno \
4318  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4319  am__fastdepCC_TRUE=
4320  am__fastdepCC_FALSE='#'
4321else
4322  am__fastdepCC_TRUE='#'
4323  am__fastdepCC_FALSE=
4324fi
4325
4326
4327if test "x$CC" != xcc; then
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4329$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4330else
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4332$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4333fi
4334set dummy $CC; ac_cc=`$as_echo "$2" |
4335		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4336if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341
4342int
4343main ()
4344{
4345
4346  ;
4347  return 0;
4348}
4349_ACEOF
4350# Make sure it works both with $CC and with simple cc.
4351# We do the test twice because some compilers refuse to overwrite an
4352# existing .o file with -o, though they will create one.
4353ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4354rm -f conftest2.*
4355if { { case "(($ac_try" in
4356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357  *) ac_try_echo=$ac_try;;
4358esac
4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360$as_echo "$ac_try_echo"; } >&5
4361  (eval "$ac_try") 2>&5
4362  ac_status=$?
4363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364  test $ac_status = 0; } &&
4365   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367  *) ac_try_echo=$ac_try;;
4368esac
4369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370$as_echo "$ac_try_echo"; } >&5
4371  (eval "$ac_try") 2>&5
4372  ac_status=$?
4373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374  test $ac_status = 0; };
4375then
4376  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4377  if test "x$CC" != xcc; then
4378    # Test first that cc exists at all.
4379    if { ac_try='cc -c conftest.$ac_ext >&5'
4380  { { case "(($ac_try" in
4381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382  *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386  (eval "$ac_try") 2>&5
4387  ac_status=$?
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }; }; then
4390      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4391      rm -f conftest2.*
4392      if { { case "(($ac_try" in
4393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394  *) ac_try_echo=$ac_try;;
4395esac
4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397$as_echo "$ac_try_echo"; } >&5
4398  (eval "$ac_try") 2>&5
4399  ac_status=$?
4400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401  test $ac_status = 0; } &&
4402	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404  *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408  (eval "$ac_try") 2>&5
4409  ac_status=$?
4410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411  test $ac_status = 0; };
4412      then
4413	# cc works too.
4414	:
4415      else
4416	# cc exists but doesn't like -o.
4417	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4418      fi
4419    fi
4420  fi
4421else
4422  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4423fi
4424rm -f core conftest*
4425
4426fi
4427if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429$as_echo "yes" >&6; }
4430else
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432$as_echo "no" >&6; }
4433
4434$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4435
4436fi
4437
4438# FIXME: we rely on the cache variable name because
4439# there is no other way.
4440set dummy $CC
4441am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4442eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4443if test "$am_t" != yes; then
4444   # Losing compiler, so override with the script.
4445   # FIXME: It is wrong to rewrite CC.
4446   # But if we don't then we get into trouble of one sort or another.
4447   # A longer-term fix would be to have automake use am__CC in this case,
4448   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4449   CC="$am_aux_dir/compile $CC"
4450fi
4451
4452
4453
4454
4455  ansi=
4456  if test -z "$ansi"; then
4457    msg="for C compiler warning flags"
4458  else
4459    msg="for C compiler warning and ANSI conformance flags"
4460  fi
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4462$as_echo_n "checking $msg... " >&6; }
4463if ${vl_cv_prog_cc_warnings+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466
4467    if test -n "$CC"; then
4468      cat > conftest.c <<EOF
4469int main(int argc, char **argv) { return 0; }
4470EOF
4471
4472            if test "$GCC" = "yes"; then
4473        if test -z "$ansi"; then
4474          vl_cv_prog_cc_warnings="-Wall -W"
4475        else
4476          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4477        fi
4478
4479
4480            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4481           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4482           test -f conftest.o; then
4483        if test -z "$ansi"; then
4484          vl_cv_prog_cc_warnings="-v"
4485        else
4486          vl_cv_prog_cc_warnings="-v -Xc"
4487        fi
4488
4489            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4490           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4491           test -f conftest.o; then
4492        if test -z "$ansi"; then
4493          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4494        else
4495          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4496        fi
4497
4498            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4499           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4500           test -f conftest.o; then
4501        if test -z "$ansi"; then
4502          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4503        else
4504          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4505        fi
4506
4507            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4508           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4509           test -f conftest.o; then
4510        if test -z "$ansi"; then
4511          vl_cv_prog_cc_warnings="-fullwarn"
4512        else
4513          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4514        fi
4515
4516            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4517           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4518           test -f conftest.o; then
4519        if test -z "$ansi"; then
4520          vl_cv_prog_cc_warnings="+w1"
4521        else
4522          vl_cv_prog_cc_warnings="+w1 -Aa"
4523        fi
4524
4525            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4526           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4527           test -f conftest.o; then
4528        if test -z "$ansi"; then
4529          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4530        else
4531          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4532        fi
4533
4534            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4535           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4536           test -f conftest.o; then
4537        if test -z "$ansi"; then
4538          vl_cv_prog_cc_warnings="-h msglevel 2"
4539        else
4540          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4541        fi
4542
4543      fi
4544      rm -f conftest.*
4545    fi
4546    if test -n "$vl_cv_prog_cc_warnings"; then
4547      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4548    else
4549      vl_cv_prog_cc_warnings="unknown"
4550    fi
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4554$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4555
4556
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4559$as_echo_n "checking whether ln -s works... " >&6; }
4560LN_S=$as_ln_s
4561if test "$LN_S" = "ln -s"; then
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563$as_echo "yes" >&6; }
4564else
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4566$as_echo "no, using $LN_S" >&6; }
4567fi
4568
4569
4570
4571# Check if LD supports linker scripts, and define automake conditional
4572# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4573# constrained to compilers using GNU ld on ELF systems or systems
4574# which provide an adequate emulation thereof.
4575# Check whether --enable-ld-version-script was given.
4576if test "${enable_ld_version_script+set}" = set; then :
4577  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4578else
4579  have_ld_version_script=no
4580fi
4581
4582if test "$have_ld_version_script" != no; then
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4584$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4585  save_LDFLAGS="$LDFLAGS"
4586  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4587  cat > conftest.map <<EOF
4588VERS_1 {
4589        global: sym;
4590};
4591
4592VERS_2 {
4593        global: sym;
4594} VERS_1;
4595EOF
4596
4597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h.  */
4599
4600int
4601main ()
4602{
4603
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608if ac_fn_c_try_link "$LINENO"; then :
4609  have_ld_version_script=yes
4610else
4611  have_ld_version_script=no
4612fi
4613rm -f core conftest.err conftest.$ac_objext \
4614    conftest$ac_exeext conftest.$ac_ext
4615  rm -f conftest.map
4616  LDFLAGS="$save_LDFLAGS"
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4618$as_echo "$have_ld_version_script" >&6; }
4619fi
4620 if test "$have_ld_version_script" = "yes"; then
4621  HAVE_LD_VERSION_SCRIPT_TRUE=
4622  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4623else
4624  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4625  HAVE_LD_VERSION_SCRIPT_FALSE=
4626fi
4627
4628
4629
4630
4631
4632
4633case `pwd` in
4634  *\ * | *\	*)
4635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4636$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4637esac
4638
4639
4640
4641macro_version='2.4.2'
4642macro_revision='1.3337'
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656ltmain="$ac_aux_dir/ltmain.sh"
4657
4658# Backslashify metacharacters that are still active within
4659# double-quoted strings.
4660sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4661
4662# Same as above, but do not quote variable references.
4663double_quote_subst='s/\(["`\\]\)/\\\1/g'
4664
4665# Sed substitution to delay expansion of an escaped shell variable in a
4666# double_quote_subst'ed string.
4667delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4668
4669# Sed substitution to delay expansion of an escaped single quote.
4670delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4671
4672# Sed substitution to avoid accidental globbing in evaled expressions
4673no_glob_subst='s/\*/\\\*/g'
4674
4675ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4676ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4677ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4680$as_echo_n "checking how to print strings... " >&6; }
4681# Test print first, because it will be a builtin if present.
4682if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4683   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4684  ECHO='print -r --'
4685elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4686  ECHO='printf %s\n'
4687else
4688  # Use this function as a fallback that always works.
4689  func_fallback_echo ()
4690  {
4691    eval 'cat <<_LTECHO_EOF
4692$1
4693_LTECHO_EOF'
4694  }
4695  ECHO='func_fallback_echo'
4696fi
4697
4698# func_echo_all arg...
4699# Invoke $ECHO with all args, space-separated.
4700func_echo_all ()
4701{
4702    $ECHO ""
4703}
4704
4705case "$ECHO" in
4706  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4707$as_echo "printf" >&6; } ;;
4708  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4709$as_echo "print -r" >&6; } ;;
4710  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4711$as_echo "cat" >&6; } ;;
4712esac
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4728$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4729if ${ac_cv_path_SED+:} false; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4733     for ac_i in 1 2 3 4 5 6 7; do
4734       ac_script="$ac_script$as_nl$ac_script"
4735     done
4736     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4737     { ac_script=; unset ac_script;}
4738     if test -z "$SED"; then
4739  ac_path_SED_found=false
4740  # Loop through the user's path and test for each of PROGNAME-LIST
4741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746    for ac_prog in sed gsed; do
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4749      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4750# Check for GNU ac_path_SED and select it if it is found.
4751  # Check for GNU $ac_path_SED
4752case `"$ac_path_SED" --version 2>&1` in
4753*GNU*)
4754  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4755*)
4756  ac_count=0
4757  $as_echo_n 0123456789 >"conftest.in"
4758  while :
4759  do
4760    cat "conftest.in" "conftest.in" >"conftest.tmp"
4761    mv "conftest.tmp" "conftest.in"
4762    cp "conftest.in" "conftest.nl"
4763    $as_echo '' >> "conftest.nl"
4764    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766    as_fn_arith $ac_count + 1 && ac_count=$as_val
4767    if test $ac_count -gt ${ac_path_SED_max-0}; then
4768      # Best one so far, save it but keep looking for a better one
4769      ac_cv_path_SED="$ac_path_SED"
4770      ac_path_SED_max=$ac_count
4771    fi
4772    # 10*(2^10) chars as input seems more than enough
4773    test $ac_count -gt 10 && break
4774  done
4775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776esac
4777
4778      $ac_path_SED_found && break 3
4779    done
4780  done
4781  done
4782IFS=$as_save_IFS
4783  if test -z "$ac_cv_path_SED"; then
4784    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4785  fi
4786else
4787  ac_cv_path_SED=$SED
4788fi
4789
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4792$as_echo "$ac_cv_path_SED" >&6; }
4793 SED="$ac_cv_path_SED"
4794  rm -f conftest.sed
4795
4796test -z "$SED" && SED=sed
4797Xsed="$SED -e 1s/^X//"
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4810$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4811if ${ac_cv_path_GREP+:} false; then :
4812  $as_echo_n "(cached) " >&6
4813else
4814  if test -z "$GREP"; then
4815  ac_path_GREP_found=false
4816  # Loop through the user's path and test for each of PROGNAME-LIST
4817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822    for ac_prog in grep ggrep; do
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4825      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4826# Check for GNU ac_path_GREP and select it if it is found.
4827  # Check for GNU $ac_path_GREP
4828case `"$ac_path_GREP" --version 2>&1` in
4829*GNU*)
4830  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4831*)
4832  ac_count=0
4833  $as_echo_n 0123456789 >"conftest.in"
4834  while :
4835  do
4836    cat "conftest.in" "conftest.in" >"conftest.tmp"
4837    mv "conftest.tmp" "conftest.in"
4838    cp "conftest.in" "conftest.nl"
4839    $as_echo 'GREP' >> "conftest.nl"
4840    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842    as_fn_arith $ac_count + 1 && ac_count=$as_val
4843    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4844      # Best one so far, save it but keep looking for a better one
4845      ac_cv_path_GREP="$ac_path_GREP"
4846      ac_path_GREP_max=$ac_count
4847    fi
4848    # 10*(2^10) chars as input seems more than enough
4849    test $ac_count -gt 10 && break
4850  done
4851  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852esac
4853
4854      $ac_path_GREP_found && break 3
4855    done
4856  done
4857  done
4858IFS=$as_save_IFS
4859  if test -z "$ac_cv_path_GREP"; then
4860    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4861  fi
4862else
4863  ac_cv_path_GREP=$GREP
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4868$as_echo "$ac_cv_path_GREP" >&6; }
4869 GREP="$ac_cv_path_GREP"
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4873$as_echo_n "checking for egrep... " >&6; }
4874if ${ac_cv_path_EGREP+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4878   then ac_cv_path_EGREP="$GREP -E"
4879   else
4880     if test -z "$EGREP"; then
4881  ac_path_EGREP_found=false
4882  # Loop through the user's path and test for each of PROGNAME-LIST
4883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4885do
4886  IFS=$as_save_IFS
4887  test -z "$as_dir" && as_dir=.
4888    for ac_prog in egrep; do
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4891      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4892# Check for GNU ac_path_EGREP and select it if it is found.
4893  # Check for GNU $ac_path_EGREP
4894case `"$ac_path_EGREP" --version 2>&1` in
4895*GNU*)
4896  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4897*)
4898  ac_count=0
4899  $as_echo_n 0123456789 >"conftest.in"
4900  while :
4901  do
4902    cat "conftest.in" "conftest.in" >"conftest.tmp"
4903    mv "conftest.tmp" "conftest.in"
4904    cp "conftest.in" "conftest.nl"
4905    $as_echo 'EGREP' >> "conftest.nl"
4906    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4907    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4908    as_fn_arith $ac_count + 1 && ac_count=$as_val
4909    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4910      # Best one so far, save it but keep looking for a better one
4911      ac_cv_path_EGREP="$ac_path_EGREP"
4912      ac_path_EGREP_max=$ac_count
4913    fi
4914    # 10*(2^10) chars as input seems more than enough
4915    test $ac_count -gt 10 && break
4916  done
4917  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918esac
4919
4920      $ac_path_EGREP_found && break 3
4921    done
4922  done
4923  done
4924IFS=$as_save_IFS
4925  if test -z "$ac_cv_path_EGREP"; then
4926    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4927  fi
4928else
4929  ac_cv_path_EGREP=$EGREP
4930fi
4931
4932   fi
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4935$as_echo "$ac_cv_path_EGREP" >&6; }
4936 EGREP="$ac_cv_path_EGREP"
4937
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4940$as_echo_n "checking for fgrep... " >&6; }
4941if ${ac_cv_path_FGREP+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4945   then ac_cv_path_FGREP="$GREP -F"
4946   else
4947     if test -z "$FGREP"; then
4948  ac_path_FGREP_found=false
4949  # Loop through the user's path and test for each of PROGNAME-LIST
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_prog in fgrep; do
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4958      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4959# Check for GNU ac_path_FGREP and select it if it is found.
4960  # Check for GNU $ac_path_FGREP
4961case `"$ac_path_FGREP" --version 2>&1` in
4962*GNU*)
4963  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4964*)
4965  ac_count=0
4966  $as_echo_n 0123456789 >"conftest.in"
4967  while :
4968  do
4969    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970    mv "conftest.tmp" "conftest.in"
4971    cp "conftest.in" "conftest.nl"
4972    $as_echo 'FGREP' >> "conftest.nl"
4973    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975    as_fn_arith $ac_count + 1 && ac_count=$as_val
4976    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4977      # Best one so far, save it but keep looking for a better one
4978      ac_cv_path_FGREP="$ac_path_FGREP"
4979      ac_path_FGREP_max=$ac_count
4980    fi
4981    # 10*(2^10) chars as input seems more than enough
4982    test $ac_count -gt 10 && break
4983  done
4984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985esac
4986
4987      $ac_path_FGREP_found && break 3
4988    done
4989  done
4990  done
4991IFS=$as_save_IFS
4992  if test -z "$ac_cv_path_FGREP"; then
4993    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994  fi
4995else
4996  ac_cv_path_FGREP=$FGREP
4997fi
4998
4999   fi
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5002$as_echo "$ac_cv_path_FGREP" >&6; }
5003 FGREP="$ac_cv_path_FGREP"
5004
5005
5006test -z "$GREP" && GREP=grep
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026# Check whether --with-gnu-ld was given.
5027if test "${with_gnu_ld+set}" = set; then :
5028  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5029else
5030  with_gnu_ld=no
5031fi
5032
5033ac_prog=ld
5034if test "$GCC" = yes; then
5035  # Check if gcc -print-prog-name=ld gives a path.
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5037$as_echo_n "checking for ld used by $CC... " >&6; }
5038  case $host in
5039  *-*-mingw*)
5040    # gcc leaves a trailing carriage return which upsets mingw
5041    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5042  *)
5043    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5044  esac
5045  case $ac_prog in
5046    # Accept absolute paths.
5047    [\\/]* | ?:[\\/]*)
5048      re_direlt='/[^/][^/]*/\.\./'
5049      # Canonicalize the pathname of ld
5050      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5051      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5052	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5053      done
5054      test -z "$LD" && LD="$ac_prog"
5055      ;;
5056  "")
5057    # If it fails, then pretend we aren't using GCC.
5058    ac_prog=ld
5059    ;;
5060  *)
5061    # If it is relative, then search for the first ld in PATH.
5062    with_gnu_ld=unknown
5063    ;;
5064  esac
5065elif test "$with_gnu_ld" = yes; then
5066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5067$as_echo_n "checking for GNU ld... " >&6; }
5068else
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5070$as_echo_n "checking for non-GNU ld... " >&6; }
5071fi
5072if ${lt_cv_path_LD+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  if test -z "$LD"; then
5076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5077  for ac_dir in $PATH; do
5078    IFS="$lt_save_ifs"
5079    test -z "$ac_dir" && ac_dir=.
5080    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5081      lt_cv_path_LD="$ac_dir/$ac_prog"
5082      # Check to see if the program is GNU ld.  I'd rather use --version,
5083      # but apparently some variants of GNU ld only accept -v.
5084      # Break only if it was the GNU/non-GNU ld that we prefer.
5085      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5086      *GNU* | *'with BFD'*)
5087	test "$with_gnu_ld" != no && break
5088	;;
5089      *)
5090	test "$with_gnu_ld" != yes && break
5091	;;
5092      esac
5093    fi
5094  done
5095  IFS="$lt_save_ifs"
5096else
5097  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5098fi
5099fi
5100
5101LD="$lt_cv_path_LD"
5102if test -n "$LD"; then
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5104$as_echo "$LD" >&6; }
5105else
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5111$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5112if ${lt_cv_prog_gnu_ld+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5116case `$LD -v 2>&1 </dev/null` in
5117*GNU* | *'with BFD'*)
5118  lt_cv_prog_gnu_ld=yes
5119  ;;
5120*)
5121  lt_cv_prog_gnu_ld=no
5122  ;;
5123esac
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5126$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5127with_gnu_ld=$lt_cv_prog_gnu_ld
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5138$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5139if ${lt_cv_path_NM+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -n "$NM"; then
5143  # Let the user override the test.
5144  lt_cv_path_NM="$NM"
5145else
5146  lt_nm_to_check="${ac_tool_prefix}nm"
5147  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5148    lt_nm_to_check="$lt_nm_to_check nm"
5149  fi
5150  for lt_tmp_nm in $lt_nm_to_check; do
5151    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5152    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5153      IFS="$lt_save_ifs"
5154      test -z "$ac_dir" && ac_dir=.
5155      tmp_nm="$ac_dir/$lt_tmp_nm"
5156      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5157	# Check to see if the nm accepts a BSD-compat flag.
5158	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5159	#   nm: unknown option "B" ignored
5160	# Tru64's nm complains that /dev/null is an invalid object file
5161	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5162	*/dev/null* | *'Invalid file or object type'*)
5163	  lt_cv_path_NM="$tmp_nm -B"
5164	  break
5165	  ;;
5166	*)
5167	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5168	  */dev/null*)
5169	    lt_cv_path_NM="$tmp_nm -p"
5170	    break
5171	    ;;
5172	  *)
5173	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5174	    continue # so that we can try to find one that supports BSD flags
5175	    ;;
5176	  esac
5177	  ;;
5178	esac
5179      fi
5180    done
5181    IFS="$lt_save_ifs"
5182  done
5183  : ${lt_cv_path_NM=no}
5184fi
5185fi
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5187$as_echo "$lt_cv_path_NM" >&6; }
5188if test "$lt_cv_path_NM" != "no"; then
5189  NM="$lt_cv_path_NM"
5190else
5191  # Didn't find any BSD compatible name lister, look for dumpbin.
5192  if test -n "$DUMPBIN"; then :
5193    # Let the user override the test.
5194  else
5195    if test -n "$ac_tool_prefix"; then
5196  for ac_prog in dumpbin "link -dump"
5197  do
5198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if ${ac_cv_prog_DUMPBIN+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  if test -n "$DUMPBIN"; then
5206  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213    for ac_exec_ext in '' $ac_executable_extensions; do
5214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220  done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225DUMPBIN=$ac_cv_prog_DUMPBIN
5226if test -n "$DUMPBIN"; then
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5228$as_echo "$DUMPBIN" >&6; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235    test -n "$DUMPBIN" && break
5236  done
5237fi
5238if test -z "$DUMPBIN"; then
5239  ac_ct_DUMPBIN=$DUMPBIN
5240  for ac_prog in dumpbin "link -dump"
5241do
5242  # Extract the first word of "$ac_prog", so it can be a program name with args.
5243set dummy $ac_prog; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if test -n "$ac_ct_DUMPBIN"; then
5250  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5270if test -n "$ac_ct_DUMPBIN"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5272$as_echo "$ac_ct_DUMPBIN" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278
5279  test -n "$ac_ct_DUMPBIN" && break
5280done
5281
5282  if test "x$ac_ct_DUMPBIN" = x; then
5283    DUMPBIN=":"
5284  else
5285    case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291    DUMPBIN=$ac_ct_DUMPBIN
5292  fi
5293fi
5294
5295    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5296    *COFF*)
5297      DUMPBIN="$DUMPBIN -symbols"
5298      ;;
5299    *)
5300      DUMPBIN=:
5301      ;;
5302    esac
5303  fi
5304
5305  if test "$DUMPBIN" != ":"; then
5306    NM="$DUMPBIN"
5307  fi
5308fi
5309test -z "$NM" && NM=nm
5310
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5317$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5318if ${lt_cv_nm_interface+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  lt_cv_nm_interface="BSD nm"
5322  echo "int some_variable = 0;" > conftest.$ac_ext
5323  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5324  (eval "$ac_compile" 2>conftest.err)
5325  cat conftest.err >&5
5326  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5327  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5328  cat conftest.err >&5
5329  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5330  cat conftest.out >&5
5331  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5332    lt_cv_nm_interface="MS dumpbin"
5333  fi
5334  rm -f conftest*
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5337$as_echo "$lt_cv_nm_interface" >&6; }
5338
5339# find the maximum length of command line arguments
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5341$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5342if ${lt_cv_sys_max_cmd_len+:} false; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345    i=0
5346  teststring="ABCD"
5347
5348  case $build_os in
5349  msdosdjgpp*)
5350    # On DJGPP, this test can blow up pretty badly due to problems in libc
5351    # (any single argument exceeding 2000 bytes causes a buffer overrun
5352    # during glob expansion).  Even if it were fixed, the result of this
5353    # check would be larger than it should be.
5354    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5355    ;;
5356
5357  gnu*)
5358    # Under GNU Hurd, this test is not required because there is
5359    # no limit to the length of command line arguments.
5360    # Libtool will interpret -1 as no limit whatsoever
5361    lt_cv_sys_max_cmd_len=-1;
5362    ;;
5363
5364  cygwin* | mingw* | cegcc*)
5365    # On Win9x/ME, this test blows up -- it succeeds, but takes
5366    # about 5 minutes as the teststring grows exponentially.
5367    # Worse, since 9x/ME are not pre-emptively multitasking,
5368    # you end up with a "frozen" computer, even though with patience
5369    # the test eventually succeeds (with a max line length of 256k).
5370    # Instead, let's just punt: use the minimum linelength reported by
5371    # all of the supported platforms: 8192 (on NT/2K/XP).
5372    lt_cv_sys_max_cmd_len=8192;
5373    ;;
5374
5375  mint*)
5376    # On MiNT this can take a long time and run out of memory.
5377    lt_cv_sys_max_cmd_len=8192;
5378    ;;
5379
5380  amigaos*)
5381    # On AmigaOS with pdksh, this test takes hours, literally.
5382    # So we just punt and use a minimum line length of 8192.
5383    lt_cv_sys_max_cmd_len=8192;
5384    ;;
5385
5386  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5387    # This has been around since 386BSD, at least.  Likely further.
5388    if test -x /sbin/sysctl; then
5389      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5390    elif test -x /usr/sbin/sysctl; then
5391      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5392    else
5393      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5394    fi
5395    # And add a safety zone
5396    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5397    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5398    ;;
5399
5400  interix*)
5401    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5402    lt_cv_sys_max_cmd_len=196608
5403    ;;
5404
5405  os2*)
5406    # The test takes a long time on OS/2.
5407    lt_cv_sys_max_cmd_len=8192
5408    ;;
5409
5410  osf*)
5411    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5412    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5413    # nice to cause kernel panics so lets avoid the loop below.
5414    # First set a reasonable default.
5415    lt_cv_sys_max_cmd_len=16384
5416    #
5417    if test -x /sbin/sysconfig; then
5418      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5419        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5420      esac
5421    fi
5422    ;;
5423  sco3.2v5*)
5424    lt_cv_sys_max_cmd_len=102400
5425    ;;
5426  sysv5* | sco5v6* | sysv4.2uw2*)
5427    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5428    if test -n "$kargmax"; then
5429      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5430    else
5431      lt_cv_sys_max_cmd_len=32768
5432    fi
5433    ;;
5434  *)
5435    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5436    if test -n "$lt_cv_sys_max_cmd_len"; then
5437      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5438      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5439    else
5440      # Make teststring a little bigger before we do anything with it.
5441      # a 1K string should be a reasonable start.
5442      for i in 1 2 3 4 5 6 7 8 ; do
5443        teststring=$teststring$teststring
5444      done
5445      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5446      # If test is not a shell built-in, we'll probably end up computing a
5447      # maximum length that is only half of the actual maximum length, but
5448      # we can't tell.
5449      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5450	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5451	      test $i != 17 # 1/2 MB should be enough
5452      do
5453        i=`expr $i + 1`
5454        teststring=$teststring$teststring
5455      done
5456      # Only check the string length outside the loop.
5457      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5458      teststring=
5459      # Add a significant safety factor because C++ compilers can tack on
5460      # massive amounts of additional arguments before passing them to the
5461      # linker.  It appears as though 1/2 is a usable value.
5462      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5463    fi
5464    ;;
5465  esac
5466
5467fi
5468
5469if test -n $lt_cv_sys_max_cmd_len ; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5471$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5474$as_echo "none" >&6; }
5475fi
5476max_cmd_len=$lt_cv_sys_max_cmd_len
5477
5478
5479
5480
5481
5482
5483: ${CP="cp -f"}
5484: ${MV="mv -f"}
5485: ${RM="rm -f"}
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5488$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5489# Try some XSI features
5490xsi_shell=no
5491( _lt_dummy="a/b/c"
5492  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5493      = c,a/b,b/c, \
5494    && eval 'test $(( 1 + 1 )) -eq 2 \
5495    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5496  && xsi_shell=yes
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5498$as_echo "$xsi_shell" >&6; }
5499
5500
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5502$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5503lt_shell_append=no
5504( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5505    >/dev/null 2>&1 \
5506  && lt_shell_append=yes
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5508$as_echo "$lt_shell_append" >&6; }
5509
5510
5511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5512  lt_unset=unset
5513else
5514  lt_unset=false
5515fi
5516
5517
5518
5519
5520
5521# test EBCDIC or ASCII
5522case `echo X|tr X '\101'` in
5523 A) # ASCII based system
5524    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5525  lt_SP2NL='tr \040 \012'
5526  lt_NL2SP='tr \015\012 \040\040'
5527  ;;
5528 *) # EBCDIC based system
5529  lt_SP2NL='tr \100 \n'
5530  lt_NL2SP='tr \r\n \100\100'
5531  ;;
5532esac
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5543$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5544if ${lt_cv_to_host_file_cmd+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  case $host in
5548  *-*-mingw* )
5549    case $build in
5550      *-*-mingw* ) # actually msys
5551        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5552        ;;
5553      *-*-cygwin* )
5554        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5555        ;;
5556      * ) # otherwise, assume *nix
5557        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5558        ;;
5559    esac
5560    ;;
5561  *-*-cygwin* )
5562    case $build in
5563      *-*-mingw* ) # actually msys
5564        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5565        ;;
5566      *-*-cygwin* )
5567        lt_cv_to_host_file_cmd=func_convert_file_noop
5568        ;;
5569      * ) # otherwise, assume *nix
5570        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5571        ;;
5572    esac
5573    ;;
5574  * ) # unhandled hosts (and "normal" native builds)
5575    lt_cv_to_host_file_cmd=func_convert_file_noop
5576    ;;
5577esac
5578
5579fi
5580
5581to_host_file_cmd=$lt_cv_to_host_file_cmd
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5583$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5584
5585
5586
5587
5588
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5590$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5591if ${lt_cv_to_tool_file_cmd+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  #assume ordinary cross tools, or native build.
5595lt_cv_to_tool_file_cmd=func_convert_file_noop
5596case $host in
5597  *-*-mingw* )
5598    case $build in
5599      *-*-mingw* ) # actually msys
5600        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5601        ;;
5602    esac
5603    ;;
5604esac
5605
5606fi
5607
5608to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5610$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5611
5612
5613
5614
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5617$as_echo_n "checking for $LD option to reload object files... " >&6; }
5618if ${lt_cv_ld_reload_flag+:} false; then :
5619  $as_echo_n "(cached) " >&6
5620else
5621  lt_cv_ld_reload_flag='-r'
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5624$as_echo "$lt_cv_ld_reload_flag" >&6; }
5625reload_flag=$lt_cv_ld_reload_flag
5626case $reload_flag in
5627"" | " "*) ;;
5628*) reload_flag=" $reload_flag" ;;
5629esac
5630reload_cmds='$LD$reload_flag -o $output$reload_objs'
5631case $host_os in
5632  cygwin* | mingw* | pw32* | cegcc*)
5633    if test "$GCC" != yes; then
5634      reload_cmds=false
5635    fi
5636    ;;
5637  darwin*)
5638    if test "$GCC" = yes; then
5639      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5640    else
5641      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5642    fi
5643    ;;
5644esac
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654if test -n "$ac_tool_prefix"; then
5655  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5656set dummy ${ac_tool_prefix}objdump; ac_word=$2
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658$as_echo_n "checking for $ac_word... " >&6; }
5659if ${ac_cv_prog_OBJDUMP+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  if test -n "$OBJDUMP"; then
5663  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668  IFS=$as_save_IFS
5669  test -z "$as_dir" && as_dir=.
5670    for ac_exec_ext in '' $ac_executable_extensions; do
5671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674    break 2
5675  fi
5676done
5677  done
5678IFS=$as_save_IFS
5679
5680fi
5681fi
5682OBJDUMP=$ac_cv_prog_OBJDUMP
5683if test -n "$OBJDUMP"; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5685$as_echo "$OBJDUMP" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691
5692fi
5693if test -z "$ac_cv_prog_OBJDUMP"; then
5694  ac_ct_OBJDUMP=$OBJDUMP
5695  # Extract the first word of "objdump", so it can be a program name with args.
5696set dummy objdump; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  if test -n "$ac_ct_OBJDUMP"; then
5703  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710    for ac_exec_ext in '' $ac_executable_extensions; do
5711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717  done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5723if test -n "$ac_ct_OBJDUMP"; then
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5725$as_echo "$ac_ct_OBJDUMP" >&6; }
5726else
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731  if test "x$ac_ct_OBJDUMP" = x; then
5732    OBJDUMP="false"
5733  else
5734    case $cross_compiling:$ac_tool_warned in
5735yes:)
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738ac_tool_warned=yes ;;
5739esac
5740    OBJDUMP=$ac_ct_OBJDUMP
5741  fi
5742else
5743  OBJDUMP="$ac_cv_prog_OBJDUMP"
5744fi
5745
5746test -z "$OBJDUMP" && OBJDUMP=objdump
5747
5748
5749
5750
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5754$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5755if ${lt_cv_deplibs_check_method+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  lt_cv_file_magic_cmd='$MAGIC_CMD'
5759lt_cv_file_magic_test_file=
5760lt_cv_deplibs_check_method='unknown'
5761# Need to set the preceding variable on all platforms that support
5762# interlibrary dependencies.
5763# 'none' -- dependencies not supported.
5764# `unknown' -- same as none, but documents that we really don't know.
5765# 'pass_all' -- all dependencies passed with no checks.
5766# 'test_compile' -- check by making test program.
5767# 'file_magic [[regex]]' -- check by looking for files in library path
5768# which responds to the $file_magic_cmd with a given extended regex.
5769# If you have `file' or equivalent on your system and you're not sure
5770# whether `pass_all' will *always* work, you probably want this one.
5771
5772case $host_os in
5773aix[4-9]*)
5774  lt_cv_deplibs_check_method=pass_all
5775  ;;
5776
5777beos*)
5778  lt_cv_deplibs_check_method=pass_all
5779  ;;
5780
5781bsdi[45]*)
5782  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5783  lt_cv_file_magic_cmd='/usr/bin/file -L'
5784  lt_cv_file_magic_test_file=/shlib/libc.so
5785  ;;
5786
5787cygwin*)
5788  # func_win32_libid is a shell function defined in ltmain.sh
5789  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5790  lt_cv_file_magic_cmd='func_win32_libid'
5791  ;;
5792
5793mingw* | pw32*)
5794  # Base MSYS/MinGW do not provide the 'file' command needed by
5795  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5796  # unless we find 'file', for example because we are cross-compiling.
5797  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5798  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5799    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5800    lt_cv_file_magic_cmd='func_win32_libid'
5801  else
5802    # Keep this pattern in sync with the one in func_win32_libid.
5803    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5804    lt_cv_file_magic_cmd='$OBJDUMP -f'
5805  fi
5806  ;;
5807
5808cegcc*)
5809  # use the weaker test based on 'objdump'. See mingw*.
5810  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5811  lt_cv_file_magic_cmd='$OBJDUMP -f'
5812  ;;
5813
5814darwin* | rhapsody*)
5815  lt_cv_deplibs_check_method=pass_all
5816  ;;
5817
5818freebsd* | dragonfly*)
5819  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5820    case $host_cpu in
5821    i*86 )
5822      # Not sure whether the presence of OpenBSD here was a mistake.
5823      # Let's accept both of them until this is cleared up.
5824      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5825      lt_cv_file_magic_cmd=/usr/bin/file
5826      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5827      ;;
5828    esac
5829  else
5830    lt_cv_deplibs_check_method=pass_all
5831  fi
5832  ;;
5833
5834gnu*)
5835  lt_cv_deplibs_check_method=pass_all
5836  ;;
5837
5838haiku*)
5839  lt_cv_deplibs_check_method=pass_all
5840  ;;
5841
5842hpux10.20* | hpux11*)
5843  lt_cv_file_magic_cmd=/usr/bin/file
5844  case $host_cpu in
5845  ia64*)
5846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5847    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5848    ;;
5849  hppa*64*)
5850    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]'
5851    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5852    ;;
5853  *)
5854    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5855    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5856    ;;
5857  esac
5858  ;;
5859
5860interix[3-9]*)
5861  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5862  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5863  ;;
5864
5865irix5* | irix6* | nonstopux*)
5866  case $LD in
5867  *-32|*"-32 ") libmagic=32-bit;;
5868  *-n32|*"-n32 ") libmagic=N32;;
5869  *-64|*"-64 ") libmagic=64-bit;;
5870  *) libmagic=never-match;;
5871  esac
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874
5875# This must be glibc/ELF.
5876linux* | k*bsd*-gnu | kopensolaris*-gnu)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880netbsd*)
5881  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5883  else
5884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5885  fi
5886  ;;
5887
5888newos6*)
5889  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5890  lt_cv_file_magic_cmd=/usr/bin/file
5891  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5892  ;;
5893
5894*nto* | *qnx*)
5895  lt_cv_deplibs_check_method=pass_all
5896  ;;
5897
5898openbsd*)
5899  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5901  else
5902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5903  fi
5904  ;;
5905
5906osf3* | osf4* | osf5*)
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910rdos*)
5911  lt_cv_deplibs_check_method=pass_all
5912  ;;
5913
5914solaris*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921
5922sysv4 | sysv4.3*)
5923  case $host_vendor in
5924  motorola)
5925    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]'
5926    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5927    ;;
5928  ncr)
5929    lt_cv_deplibs_check_method=pass_all
5930    ;;
5931  sequent)
5932    lt_cv_file_magic_cmd='/bin/file'
5933    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5934    ;;
5935  sni)
5936    lt_cv_file_magic_cmd='/bin/file'
5937    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5938    lt_cv_file_magic_test_file=/lib/libc.so
5939    ;;
5940  siemens)
5941    lt_cv_deplibs_check_method=pass_all
5942    ;;
5943  pc)
5944    lt_cv_deplibs_check_method=pass_all
5945    ;;
5946  esac
5947  ;;
5948
5949tpf*)
5950  lt_cv_deplibs_check_method=pass_all
5951  ;;
5952esac
5953
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5956$as_echo "$lt_cv_deplibs_check_method" >&6; }
5957
5958file_magic_glob=
5959want_nocaseglob=no
5960if test "$build" = "$host"; then
5961  case $host_os in
5962  mingw* | pw32*)
5963    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5964      want_nocaseglob=yes
5965    else
5966      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5967    fi
5968    ;;
5969  esac
5970fi
5971
5972file_magic_cmd=$lt_cv_file_magic_cmd
5973deplibs_check_method=$lt_cv_deplibs_check_method
5974test -z "$deplibs_check_method" && deplibs_check_method=unknown
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997if test -n "$ac_tool_prefix"; then
5998  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
6002if ${ac_cv_prog_DLLTOOL+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  if test -n "$DLLTOOL"; then
6006  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011  IFS=$as_save_IFS
6012  test -z "$as_dir" && as_dir=.
6013    for ac_exec_ext in '' $ac_executable_extensions; do
6014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017    break 2
6018  fi
6019done
6020  done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025DLLTOOL=$ac_cv_prog_DLLTOOL
6026if test -n "$DLLTOOL"; then
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6028$as_echo "$DLLTOOL" >&6; }
6029else
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_DLLTOOL"; then
6037  ac_ct_DLLTOOL=$DLLTOOL
6038  # Extract the first word of "dlltool", so it can be a program name with args.
6039set dummy dlltool; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test -n "$ac_ct_DLLTOOL"; then
6046  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053    for ac_exec_ext in '' $ac_executable_extensions; do
6054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060  done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6066if test -n "$ac_ct_DLLTOOL"; then
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6068$as_echo "$ac_ct_DLLTOOL" >&6; }
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074  if test "x$ac_ct_DLLTOOL" = x; then
6075    DLLTOOL="false"
6076  else
6077    case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081ac_tool_warned=yes ;;
6082esac
6083    DLLTOOL=$ac_ct_DLLTOOL
6084  fi
6085else
6086  DLLTOOL="$ac_cv_prog_DLLTOOL"
6087fi
6088
6089test -z "$DLLTOOL" && DLLTOOL=dlltool
6090
6091
6092
6093
6094
6095
6096
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6098$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6099if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  lt_cv_sharedlib_from_linklib_cmd='unknown'
6103
6104case $host_os in
6105cygwin* | mingw* | pw32* | cegcc*)
6106  # two different shell functions defined in ltmain.sh
6107  # decide which to use based on capabilities of $DLLTOOL
6108  case `$DLLTOOL --help 2>&1` in
6109  *--identify-strict*)
6110    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6111    ;;
6112  *)
6113    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6114    ;;
6115  esac
6116  ;;
6117*)
6118  # fallback: assume linklib IS sharedlib
6119  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6120  ;;
6121esac
6122
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6125$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6126sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6127test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6128
6129
6130
6131
6132
6133
6134
6135if test -n "$ac_tool_prefix"; then
6136  for ac_prog in ar
6137  do
6138    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_AR+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$AR"; then
6146  ac_cv_prog_AR="$AR" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165AR=$ac_cv_prog_AR
6166if test -n "$AR"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6168$as_echo "$AR" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174
6175    test -n "$AR" && break
6176  done
6177fi
6178if test -z "$AR"; then
6179  ac_ct_AR=$AR
6180  for ac_prog in ar
6181do
6182  # Extract the first word of "$ac_prog", so it can be a program name with args.
6183set dummy $ac_prog; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if ${ac_cv_prog_ac_ct_AR+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  if test -n "$ac_ct_AR"; then
6190  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195  IFS=$as_save_IFS
6196  test -z "$as_dir" && as_dir=.
6197    for ac_exec_ext in '' $ac_executable_extensions; do
6198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199    ac_cv_prog_ac_ct_AR="$ac_prog"
6200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204  done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209ac_ct_AR=$ac_cv_prog_ac_ct_AR
6210if test -n "$ac_ct_AR"; then
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6212$as_echo "$ac_ct_AR" >&6; }
6213else
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219  test -n "$ac_ct_AR" && break
6220done
6221
6222  if test "x$ac_ct_AR" = x; then
6223    AR="false"
6224  else
6225    case $cross_compiling:$ac_tool_warned in
6226yes:)
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229ac_tool_warned=yes ;;
6230esac
6231    AR=$ac_ct_AR
6232  fi
6233fi
6234
6235: ${AR=ar}
6236: ${AR_FLAGS=cru}
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6249$as_echo_n "checking for archiver @FILE support... " >&6; }
6250if ${lt_cv_ar_at_file+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  lt_cv_ar_at_file=no
6254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256
6257int
6258main ()
6259{
6260
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"; then :
6266  echo conftest.$ac_objext > conftest.lst
6267      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6268      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6269  (eval $lt_ar_try) 2>&5
6270  ac_status=$?
6271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272  test $ac_status = 0; }
6273      if test "$ac_status" -eq 0; then
6274	# Ensure the archiver fails upon bogus file names.
6275	rm -f conftest.$ac_objext libconftest.a
6276	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6277  (eval $lt_ar_try) 2>&5
6278  ac_status=$?
6279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280  test $ac_status = 0; }
6281	if test "$ac_status" -ne 0; then
6282          lt_cv_ar_at_file=@
6283        fi
6284      fi
6285      rm -f conftest.* libconftest.a
6286
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6292$as_echo "$lt_cv_ar_at_file" >&6; }
6293
6294if test "x$lt_cv_ar_at_file" = xno; then
6295  archiver_list_spec=
6296else
6297  archiver_list_spec=$lt_cv_ar_at_file
6298fi
6299
6300
6301
6302
6303
6304
6305
6306if test -n "$ac_tool_prefix"; then
6307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308set dummy ${ac_tool_prefix}strip; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if ${ac_cv_prog_STRIP+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$STRIP"; then
6315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329  done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334STRIP=$ac_cv_prog_STRIP
6335if test -n "$STRIP"; then
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6337$as_echo "$STRIP" >&6; }
6338else
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343
6344fi
6345if test -z "$ac_cv_prog_STRIP"; then
6346  ac_ct_STRIP=$STRIP
6347  # Extract the first word of "strip", so it can be a program name with args.
6348set dummy strip; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$ac_ct_STRIP"; then
6355  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362    for ac_exec_ext in '' $ac_executable_extensions; do
6363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364    ac_cv_prog_ac_ct_STRIP="strip"
6365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369  done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6375if test -n "$ac_ct_STRIP"; then
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6377$as_echo "$ac_ct_STRIP" >&6; }
6378else
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383  if test "x$ac_ct_STRIP" = x; then
6384    STRIP=":"
6385  else
6386    case $cross_compiling:$ac_tool_warned in
6387yes:)
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390ac_tool_warned=yes ;;
6391esac
6392    STRIP=$ac_ct_STRIP
6393  fi
6394else
6395  STRIP="$ac_cv_prog_STRIP"
6396fi
6397
6398test -z "$STRIP" && STRIP=:
6399
6400
6401
6402
6403
6404
6405if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_RANLIB+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$RANLIB"; then
6414  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433RANLIB=$ac_cv_prog_RANLIB
6434if test -n "$RANLIB"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6436$as_echo "$RANLIB" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_RANLIB"; then
6445  ac_ct_RANLIB=$RANLIB
6446  # Extract the first word of "ranlib", so it can be a program name with args.
6447set dummy ranlib; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_RANLIB"; then
6454  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463    ac_cv_prog_ac_ct_RANLIB="ranlib"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6474if test -n "$ac_ct_RANLIB"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6476$as_echo "$ac_ct_RANLIB" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_RANLIB" = x; then
6483    RANLIB=":"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    RANLIB=$ac_ct_RANLIB
6492  fi
6493else
6494  RANLIB="$ac_cv_prog_RANLIB"
6495fi
6496
6497test -z "$RANLIB" && RANLIB=:
6498
6499
6500
6501
6502
6503
6504# Determine commands to create old-style static archives.
6505old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6506old_postinstall_cmds='chmod 644 $oldlib'
6507old_postuninstall_cmds=
6508
6509if test -n "$RANLIB"; then
6510  case $host_os in
6511  openbsd*)
6512    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6513    ;;
6514  *)
6515    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6516    ;;
6517  esac
6518  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6519fi
6520
6521case $host_os in
6522  darwin*)
6523    lock_old_archive_extraction=yes ;;
6524  *)
6525    lock_old_archive_extraction=no ;;
6526esac
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566# If no C compiler was specified, use CC.
6567LTCC=${LTCC-"$CC"}
6568
6569# If no C compiler flags were specified, use CFLAGS.
6570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6571
6572# Allow CC to be a program name with arguments.
6573compiler=$CC
6574
6575
6576# Check for command to grab the raw symbol name followed by C symbol from nm.
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6578$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6579if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582
6583# These are sane defaults that work on at least a few old systems.
6584# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6585
6586# Character class describing NM global symbol codes.
6587symcode='[BCDEGRST]'
6588
6589# Regexp to match symbols that can be accessed directly from C.
6590sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6591
6592# Define system-specific variables.
6593case $host_os in
6594aix*)
6595  symcode='[BCDT]'
6596  ;;
6597cygwin* | mingw* | pw32* | cegcc*)
6598  symcode='[ABCDGISTW]'
6599  ;;
6600hpux*)
6601  if test "$host_cpu" = ia64; then
6602    symcode='[ABCDEGRST]'
6603  fi
6604  ;;
6605irix* | nonstopux*)
6606  symcode='[BCDEGRST]'
6607  ;;
6608osf*)
6609  symcode='[BCDEGQRST]'
6610  ;;
6611solaris*)
6612  symcode='[BDRT]'
6613  ;;
6614sco3.2v5*)
6615  symcode='[DT]'
6616  ;;
6617sysv4.2uw2*)
6618  symcode='[DT]'
6619  ;;
6620sysv5* | sco5v6* | unixware* | OpenUNIX*)
6621  symcode='[ABDT]'
6622  ;;
6623sysv4)
6624  symcode='[DFNSTU]'
6625  ;;
6626esac
6627
6628# If we're using GNU nm, then use its standard symbol codes.
6629case `$NM -V 2>&1` in
6630*GNU* | *'with BFD'*)
6631  symcode='[ABCDGIRSTW]' ;;
6632esac
6633
6634# Transform an extracted symbol line into a proper C declaration.
6635# Some systems (esp. on ia64) link data and code symbols differently,
6636# so use this general approach.
6637lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6638
6639# Transform an extracted symbol line into symbol name and symbol address
6640lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6641lt_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'"
6642
6643# Handle CRLF in mingw tool chain
6644opt_cr=
6645case $build_os in
6646mingw*)
6647  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6648  ;;
6649esac
6650
6651# Try without a prefix underscore, then with it.
6652for ac_symprfx in "" "_"; do
6653
6654  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6655  symxfrm="\\1 $ac_symprfx\\2 \\2"
6656
6657  # Write the raw and C identifiers.
6658  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659    # Fake it for dumpbin and say T for any non-static function
6660    # and D for any global variable.
6661    # Also find C++ and __fastcall symbols from MSVC++,
6662    # which start with @ or ?.
6663    lt_cv_sys_global_symbol_pipe="$AWK '"\
6664"     {last_section=section; section=\$ 3};"\
6665"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6666"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6667"     \$ 0!~/External *\|/{next};"\
6668"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6669"     {if(hide[section]) next};"\
6670"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6671"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6672"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6673"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6674"     ' prfx=^$ac_symprfx"
6675  else
6676    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6677  fi
6678  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6679
6680  # Check to see that the pipe works correctly.
6681  pipe_works=no
6682
6683  rm -f conftest*
6684  cat > conftest.$ac_ext <<_LT_EOF
6685#ifdef __cplusplus
6686extern "C" {
6687#endif
6688char nm_test_var;
6689void nm_test_func(void);
6690void nm_test_func(void){}
6691#ifdef __cplusplus
6692}
6693#endif
6694int main(){nm_test_var='a';nm_test_func();return(0);}
6695_LT_EOF
6696
6697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698  (eval $ac_compile) 2>&5
6699  ac_status=$?
6700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701  test $ac_status = 0; }; then
6702    # Now try to grab the symbols.
6703    nlist=conftest.nm
6704    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6705  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6706  ac_status=$?
6707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708  test $ac_status = 0; } && test -s "$nlist"; then
6709      # Try sorting and uniquifying the output.
6710      if sort "$nlist" | uniq > "$nlist"T; then
6711	mv -f "$nlist"T "$nlist"
6712      else
6713	rm -f "$nlist"T
6714      fi
6715
6716      # Make sure that we snagged all the symbols we need.
6717      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6718	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6719	  cat <<_LT_EOF > conftest.$ac_ext
6720/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6721#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6722/* DATA imports from DLLs on WIN32 con't be const, because runtime
6723   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6724# define LT_DLSYM_CONST
6725#elif defined(__osf__)
6726/* This system does not cope well with relocations in const data.  */
6727# define LT_DLSYM_CONST
6728#else
6729# define LT_DLSYM_CONST const
6730#endif
6731
6732#ifdef __cplusplus
6733extern "C" {
6734#endif
6735
6736_LT_EOF
6737	  # Now generate the symbol file.
6738	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6739
6740	  cat <<_LT_EOF >> conftest.$ac_ext
6741
6742/* The mapping between symbol names and symbols.  */
6743LT_DLSYM_CONST struct {
6744  const char *name;
6745  void       *address;
6746}
6747lt__PROGRAM__LTX_preloaded_symbols[] =
6748{
6749  { "@PROGRAM@", (void *) 0 },
6750_LT_EOF
6751	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6752	  cat <<\_LT_EOF >> conftest.$ac_ext
6753  {0, (void *) 0}
6754};
6755
6756/* This works around a problem in FreeBSD linker */
6757#ifdef FREEBSD_WORKAROUND
6758static const void *lt_preloaded_setup() {
6759  return lt__PROGRAM__LTX_preloaded_symbols;
6760}
6761#endif
6762
6763#ifdef __cplusplus
6764}
6765#endif
6766_LT_EOF
6767	  # Now try linking the two files.
6768	  mv conftest.$ac_objext conftstm.$ac_objext
6769	  lt_globsym_save_LIBS=$LIBS
6770	  lt_globsym_save_CFLAGS=$CFLAGS
6771	  LIBS="conftstm.$ac_objext"
6772	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6773	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6774  (eval $ac_link) 2>&5
6775  ac_status=$?
6776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6778	    pipe_works=yes
6779	  fi
6780	  LIBS=$lt_globsym_save_LIBS
6781	  CFLAGS=$lt_globsym_save_CFLAGS
6782	else
6783	  echo "cannot find nm_test_func in $nlist" >&5
6784	fi
6785      else
6786	echo "cannot find nm_test_var in $nlist" >&5
6787      fi
6788    else
6789      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6790    fi
6791  else
6792    echo "$progname: failed program was:" >&5
6793    cat conftest.$ac_ext >&5
6794  fi
6795  rm -rf conftest* conftst*
6796
6797  # Do not use the global_symbol_pipe unless it works.
6798  if test "$pipe_works" = yes; then
6799    break
6800  else
6801    lt_cv_sys_global_symbol_pipe=
6802  fi
6803done
6804
6805fi
6806
6807if test -z "$lt_cv_sys_global_symbol_pipe"; then
6808  lt_cv_sys_global_symbol_to_cdecl=
6809fi
6810if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6812$as_echo "failed" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6815$as_echo "ok" >&6; }
6816fi
6817
6818# Response file support.
6819if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6820  nm_file_list_spec='@'
6821elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6822  nm_file_list_spec='@'
6823fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6852$as_echo_n "checking for sysroot... " >&6; }
6853
6854# Check whether --with-sysroot was given.
6855if test "${with_sysroot+set}" = set; then :
6856  withval=$with_sysroot;
6857else
6858  with_sysroot=no
6859fi
6860
6861
6862lt_sysroot=
6863case ${with_sysroot} in #(
6864 yes)
6865   if test "$GCC" = yes; then
6866     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6867   fi
6868   ;; #(
6869 /*)
6870   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6871   ;; #(
6872 no|'')
6873   ;; #(
6874 *)
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6876$as_echo "${with_sysroot}" >&6; }
6877   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6878   ;;
6879esac
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6882$as_echo "${lt_sysroot:-no}" >&6; }
6883
6884
6885
6886
6887
6888# Check whether --enable-libtool-lock was given.
6889if test "${enable_libtool_lock+set}" = set; then :
6890  enableval=$enable_libtool_lock;
6891fi
6892
6893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6894
6895# Some flags need to be propagated to the compiler or linker for good
6896# libtool support.
6897case $host in
6898ia64-*-hpux*)
6899  # Find out which ABI we are using.
6900  echo 'int i;' > conftest.$ac_ext
6901  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902  (eval $ac_compile) 2>&5
6903  ac_status=$?
6904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905  test $ac_status = 0; }; then
6906    case `/usr/bin/file conftest.$ac_objext` in
6907      *ELF-32*)
6908	HPUX_IA64_MODE="32"
6909	;;
6910      *ELF-64*)
6911	HPUX_IA64_MODE="64"
6912	;;
6913    esac
6914  fi
6915  rm -rf conftest*
6916  ;;
6917*-*-irix6*)
6918  # Find out which ABI we are using.
6919  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6920  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921  (eval $ac_compile) 2>&5
6922  ac_status=$?
6923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924  test $ac_status = 0; }; then
6925    if test "$lt_cv_prog_gnu_ld" = yes; then
6926      case `/usr/bin/file conftest.$ac_objext` in
6927	*32-bit*)
6928	  LD="${LD-ld} -melf32bsmip"
6929	  ;;
6930	*N32*)
6931	  LD="${LD-ld} -melf32bmipn32"
6932	  ;;
6933	*64-bit*)
6934	  LD="${LD-ld} -melf64bmip"
6935	;;
6936      esac
6937    else
6938      case `/usr/bin/file conftest.$ac_objext` in
6939	*32-bit*)
6940	  LD="${LD-ld} -32"
6941	  ;;
6942	*N32*)
6943	  LD="${LD-ld} -n32"
6944	  ;;
6945	*64-bit*)
6946	  LD="${LD-ld} -64"
6947	  ;;
6948      esac
6949    fi
6950  fi
6951  rm -rf conftest*
6952  ;;
6953
6954x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6955s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6956  # Find out which ABI we are using.
6957  echo 'int i;' > conftest.$ac_ext
6958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6959  (eval $ac_compile) 2>&5
6960  ac_status=$?
6961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6962  test $ac_status = 0; }; then
6963    case `/usr/bin/file conftest.o` in
6964      *32-bit*)
6965	case $host in
6966	  x86_64-*kfreebsd*-gnu)
6967	    LD="${LD-ld} -m elf_i386_fbsd"
6968	    ;;
6969	  x86_64-*linux*)
6970	    LD="${LD-ld} -m elf_i386"
6971	    ;;
6972	  ppc64-*linux*|powerpc64-*linux*)
6973	    LD="${LD-ld} -m elf32ppclinux"
6974	    ;;
6975	  s390x-*linux*)
6976	    LD="${LD-ld} -m elf_s390"
6977	    ;;
6978	  sparc64-*linux*)
6979	    LD="${LD-ld} -m elf32_sparc"
6980	    ;;
6981	esac
6982	;;
6983      *64-bit*)
6984	case $host in
6985	  x86_64-*kfreebsd*-gnu)
6986	    LD="${LD-ld} -m elf_x86_64_fbsd"
6987	    ;;
6988	  x86_64-*linux*)
6989	    LD="${LD-ld} -m elf_x86_64"
6990	    ;;
6991	  ppc*-*linux*|powerpc*-*linux*)
6992	    LD="${LD-ld} -m elf64ppc"
6993	    ;;
6994	  s390*-*linux*|s390*-*tpf*)
6995	    LD="${LD-ld} -m elf64_s390"
6996	    ;;
6997	  sparc*-*linux*)
6998	    LD="${LD-ld} -m elf64_sparc"
6999	    ;;
7000	esac
7001	;;
7002    esac
7003  fi
7004  rm -rf conftest*
7005  ;;
7006
7007*-*-sco3.2v5*)
7008  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7009  SAVE_CFLAGS="$CFLAGS"
7010  CFLAGS="$CFLAGS -belf"
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7012$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7013if ${lt_cv_cc_needs_belf+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  ac_ext=c
7017ac_cpp='$CPP $CPPFLAGS'
7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024
7025int
7026main ()
7027{
7028
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033if ac_fn_c_try_link "$LINENO"; then :
7034  lt_cv_cc_needs_belf=yes
7035else
7036  lt_cv_cc_needs_belf=no
7037fi
7038rm -f core conftest.err conftest.$ac_objext \
7039    conftest$ac_exeext conftest.$ac_ext
7040     ac_ext=c
7041ac_cpp='$CPP $CPPFLAGS'
7042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7048$as_echo "$lt_cv_cc_needs_belf" >&6; }
7049  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7050    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7051    CFLAGS="$SAVE_CFLAGS"
7052  fi
7053  ;;
7054*-*solaris*)
7055  # Find out which ABI we are using.
7056  echo 'int i;' > conftest.$ac_ext
7057  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7058  (eval $ac_compile) 2>&5
7059  ac_status=$?
7060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061  test $ac_status = 0; }; then
7062    case `/usr/bin/file conftest.o` in
7063    *64-bit*)
7064      case $lt_cv_prog_gnu_ld in
7065      yes*)
7066        case $host in
7067        i?86-*-solaris*)
7068          LD="${LD-ld} -m elf_x86_64"
7069          ;;
7070        sparc*-*-solaris*)
7071          LD="${LD-ld} -m elf64_sparc"
7072          ;;
7073        esac
7074        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7075        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7076          LD="${LD-ld}_sol2"
7077        fi
7078        ;;
7079      *)
7080	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7081	  LD="${LD-ld} -64"
7082	fi
7083	;;
7084      esac
7085      ;;
7086    esac
7087  fi
7088  rm -rf conftest*
7089  ;;
7090esac
7091
7092need_locks="$enable_libtool_lock"
7093
7094if test -n "$ac_tool_prefix"; then
7095  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}mt; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  if test -n "$MANIFEST_TOOL"; then
7103  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_exec_ext in '' $ac_executable_extensions; do
7111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117  done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7123if test -n "$MANIFEST_TOOL"; then
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7125$as_echo "$MANIFEST_TOOL" >&6; }
7126else
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7134  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7135  # Extract the first word of "mt", so it can be a program name with args.
7136set dummy mt; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$ac_ct_MANIFEST_TOOL"; then
7143  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7163if test -n "$ac_ct_MANIFEST_TOOL"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7165$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7172    MANIFEST_TOOL=":"
7173  else
7174    case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7181  fi
7182else
7183  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7184fi
7185
7186test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7188$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7189if ${lt_cv_path_mainfest_tool+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  lt_cv_path_mainfest_tool=no
7193  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7194  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7195  cat conftest.err >&5
7196  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7197    lt_cv_path_mainfest_tool=yes
7198  fi
7199  rm -f conftest*
7200fi
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7202$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7203if test "x$lt_cv_path_mainfest_tool" != xyes; then
7204  MANIFEST_TOOL=:
7205fi
7206
7207
7208
7209
7210
7211
7212  case $host_os in
7213    rhapsody* | darwin*)
7214    if test -n "$ac_tool_prefix"; then
7215  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7216set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if ${ac_cv_prog_DSYMUTIL+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$DSYMUTIL"; then
7223  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230    for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237  done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242DSYMUTIL=$ac_cv_prog_DSYMUTIL
7243if test -n "$DSYMUTIL"; then
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7245$as_echo "$DSYMUTIL" >&6; }
7246else
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251
7252fi
7253if test -z "$ac_cv_prog_DSYMUTIL"; then
7254  ac_ct_DSYMUTIL=$DSYMUTIL
7255  # Extract the first word of "dsymutil", so it can be a program name with args.
7256set dummy dsymutil; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$ac_ct_DSYMUTIL"; then
7263  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7283if test -n "$ac_ct_DSYMUTIL"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7285$as_echo "$ac_ct_DSYMUTIL" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291  if test "x$ac_ct_DSYMUTIL" = x; then
7292    DSYMUTIL=":"
7293  else
7294    case $cross_compiling:$ac_tool_warned in
7295yes:)
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298ac_tool_warned=yes ;;
7299esac
7300    DSYMUTIL=$ac_ct_DSYMUTIL
7301  fi
7302else
7303  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7304fi
7305
7306    if test -n "$ac_tool_prefix"; then
7307  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if ${ac_cv_prog_NMEDIT+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  if test -n "$NMEDIT"; then
7315  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322    for ac_exec_ext in '' $ac_executable_extensions; do
7323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329  done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334NMEDIT=$ac_cv_prog_NMEDIT
7335if test -n "$NMEDIT"; then
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7337$as_echo "$NMEDIT" >&6; }
7338else
7339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343
7344fi
7345if test -z "$ac_cv_prog_NMEDIT"; then
7346  ac_ct_NMEDIT=$NMEDIT
7347  # Extract the first word of "nmedit", so it can be a program name with args.
7348set dummy nmedit; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$ac_ct_NMEDIT"; then
7355  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7375if test -n "$ac_ct_NMEDIT"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7377$as_echo "$ac_ct_NMEDIT" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383  if test "x$ac_ct_NMEDIT" = x; then
7384    NMEDIT=":"
7385  else
7386    case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390ac_tool_warned=yes ;;
7391esac
7392    NMEDIT=$ac_ct_NMEDIT
7393  fi
7394else
7395  NMEDIT="$ac_cv_prog_NMEDIT"
7396fi
7397
7398    if test -n "$ac_tool_prefix"; then
7399  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7400set dummy ${ac_tool_prefix}lipo; ac_word=$2
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402$as_echo_n "checking for $ac_word... " >&6; }
7403if ${ac_cv_prog_LIPO+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  if test -n "$LIPO"; then
7407  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7408else
7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424fi
7425fi
7426LIPO=$ac_cv_prog_LIPO
7427if test -n "$LIPO"; then
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7429$as_echo "$LIPO" >&6; }
7430else
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432$as_echo "no" >&6; }
7433fi
7434
7435
7436fi
7437if test -z "$ac_cv_prog_LIPO"; then
7438  ac_ct_LIPO=$LIPO
7439  # Extract the first word of "lipo", so it can be a program name with args.
7440set dummy lipo; ac_word=$2
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  if test -n "$ac_ct_LIPO"; then
7447  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454    for ac_exec_ext in '' $ac_executable_extensions; do
7455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456    ac_cv_prog_ac_ct_LIPO="lipo"
7457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461  done
7462IFS=$as_save_IFS
7463
7464fi
7465fi
7466ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7467if test -n "$ac_ct_LIPO"; then
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7469$as_echo "$ac_ct_LIPO" >&6; }
7470else
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
7473fi
7474
7475  if test "x$ac_ct_LIPO" = x; then
7476    LIPO=":"
7477  else
7478    case $cross_compiling:$ac_tool_warned in
7479yes:)
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482ac_tool_warned=yes ;;
7483esac
7484    LIPO=$ac_ct_LIPO
7485  fi
7486else
7487  LIPO="$ac_cv_prog_LIPO"
7488fi
7489
7490    if test -n "$ac_tool_prefix"; then
7491  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7492set dummy ${ac_tool_prefix}otool; ac_word=$2
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if ${ac_cv_prog_OTOOL+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  if test -n "$OTOOL"; then
7499  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506    for ac_exec_ext in '' $ac_executable_extensions; do
7507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513  done
7514IFS=$as_save_IFS
7515
7516fi
7517fi
7518OTOOL=$ac_cv_prog_OTOOL
7519if test -n "$OTOOL"; then
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7521$as_echo "$OTOOL" >&6; }
7522else
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527
7528fi
7529if test -z "$ac_cv_prog_OTOOL"; then
7530  ac_ct_OTOOL=$OTOOL
7531  # Extract the first word of "otool", so it can be a program name with args.
7532set dummy otool; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$ac_ct_OTOOL"; then
7539  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546    for ac_exec_ext in '' $ac_executable_extensions; do
7547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548    ac_cv_prog_ac_ct_OTOOL="otool"
7549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553  done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7559if test -n "$ac_ct_OTOOL"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7561$as_echo "$ac_ct_OTOOL" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567  if test "x$ac_ct_OTOOL" = x; then
7568    OTOOL=":"
7569  else
7570    case $cross_compiling:$ac_tool_warned in
7571yes:)
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574ac_tool_warned=yes ;;
7575esac
7576    OTOOL=$ac_ct_OTOOL
7577  fi
7578else
7579  OTOOL="$ac_cv_prog_OTOOL"
7580fi
7581
7582    if test -n "$ac_tool_prefix"; then
7583  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7584set dummy ${ac_tool_prefix}otool64; ac_word=$2
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if ${ac_cv_prog_OTOOL64+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  if test -n "$OTOOL64"; then
7591  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598    for ac_exec_ext in '' $ac_executable_extensions; do
7599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605  done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
7610OTOOL64=$ac_cv_prog_OTOOL64
7611if test -n "$OTOOL64"; then
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7613$as_echo "$OTOOL64" >&6; }
7614else
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
7619
7620fi
7621if test -z "$ac_cv_prog_OTOOL64"; then
7622  ac_ct_OTOOL64=$OTOOL64
7623  # Extract the first word of "otool64", so it can be a program name with args.
7624set dummy otool64; ac_word=$2
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$ac_ct_OTOOL64"; then
7631  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638    for ac_exec_ext in '' $ac_executable_extensions; do
7639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640    ac_cv_prog_ac_ct_OTOOL64="otool64"
7641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645  done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7651if test -n "$ac_ct_OTOOL64"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7653$as_echo "$ac_ct_OTOOL64" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
7658
7659  if test "x$ac_ct_OTOOL64" = x; then
7660    OTOOL64=":"
7661  else
7662    case $cross_compiling:$ac_tool_warned in
7663yes:)
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666ac_tool_warned=yes ;;
7667esac
7668    OTOOL64=$ac_ct_OTOOL64
7669  fi
7670else
7671  OTOOL64="$ac_cv_prog_OTOOL64"
7672fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7701$as_echo_n "checking for -single_module linker flag... " >&6; }
7702if ${lt_cv_apple_cc_single_mod+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  lt_cv_apple_cc_single_mod=no
7706      if test -z "${LT_MULTI_MODULE}"; then
7707	# By default we will add the -single_module flag. You can override
7708	# by either setting the environment variable LT_MULTI_MODULE
7709	# non-empty at configure time, or by adding -multi_module to the
7710	# link flags.
7711	rm -rf libconftest.dylib*
7712	echo "int foo(void){return 1;}" > conftest.c
7713	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7714-dynamiclib -Wl,-single_module conftest.c" >&5
7715	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7716	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7717        _lt_result=$?
7718	# If there is a non-empty error log, and "single_module"
7719	# appears in it, assume the flag caused a linker warning
7720        if test -s conftest.err && $GREP single_module conftest.err; then
7721	  cat conftest.err >&5
7722	# Otherwise, if the output was created with a 0 exit code from
7723	# the compiler, it worked.
7724	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7725	  lt_cv_apple_cc_single_mod=yes
7726	else
7727	  cat conftest.err >&5
7728	fi
7729	rm -rf libconftest.dylib*
7730	rm -f conftest.*
7731      fi
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7734$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7735
7736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7737$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7738if ${lt_cv_ld_exported_symbols_list+:} false; then :
7739  $as_echo_n "(cached) " >&6
7740else
7741  lt_cv_ld_exported_symbols_list=no
7742      save_LDFLAGS=$LDFLAGS
7743      echo "_main" > conftest.sym
7744      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h.  */
7747
7748int
7749main ()
7750{
7751
7752  ;
7753  return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_link "$LINENO"; then :
7757  lt_cv_ld_exported_symbols_list=yes
7758else
7759  lt_cv_ld_exported_symbols_list=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext \
7762    conftest$ac_exeext conftest.$ac_ext
7763	LDFLAGS="$save_LDFLAGS"
7764
7765fi
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7767$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7768
7769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7770$as_echo_n "checking for -force_load linker flag... " >&6; }
7771if ${lt_cv_ld_force_load+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  lt_cv_ld_force_load=no
7775      cat > conftest.c << _LT_EOF
7776int forced_loaded() { return 2;}
7777_LT_EOF
7778      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7779      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7780      echo "$AR cru libconftest.a conftest.o" >&5
7781      $AR cru libconftest.a conftest.o 2>&5
7782      echo "$RANLIB libconftest.a" >&5
7783      $RANLIB libconftest.a 2>&5
7784      cat > conftest.c << _LT_EOF
7785int main() { return 0;}
7786_LT_EOF
7787      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7788      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7789      _lt_result=$?
7790      if test -s conftest.err && $GREP force_load conftest.err; then
7791	cat conftest.err >&5
7792      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7793	lt_cv_ld_force_load=yes
7794      else
7795	cat conftest.err >&5
7796      fi
7797        rm -f conftest.err libconftest.a conftest conftest.c
7798        rm -rf conftest.dSYM
7799
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7802$as_echo "$lt_cv_ld_force_load" >&6; }
7803    case $host_os in
7804    rhapsody* | darwin1.[012])
7805      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7806    darwin1.*)
7807      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7808    darwin*) # darwin 5.x on
7809      # if running on 10.5 or later, the deployment target defaults
7810      # to the OS version, if on x86, and 10.4, the deployment
7811      # target defaults to 10.4. Don't you love it?
7812      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7813	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7814	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7815	10.[012]*)
7816	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7817	10.*)
7818	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7819      esac
7820    ;;
7821  esac
7822    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7823      _lt_dar_single_mod='$single_module'
7824    fi
7825    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7826      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7827    else
7828      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7829    fi
7830    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7831      _lt_dsymutil='~$DSYMUTIL $lib || :'
7832    else
7833      _lt_dsymutil=
7834    fi
7835    ;;
7836  esac
7837
7838ac_ext=c
7839ac_cpp='$CPP $CPPFLAGS'
7840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7844$as_echo_n "checking how to run the C preprocessor... " >&6; }
7845# On Suns, sometimes $CPP names a directory.
7846if test -n "$CPP" && test -d "$CPP"; then
7847  CPP=
7848fi
7849if test -z "$CPP"; then
7850  if ${ac_cv_prog_CPP+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853      # Double quotes because CPP needs to be expanded
7854    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7855    do
7856      ac_preproc_ok=false
7857for ac_c_preproc_warn_flag in '' yes
7858do
7859  # Use a header file that comes with gcc, so configuring glibc
7860  # with a fresh cross-compiler works.
7861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7862  # <limits.h> exists even on freestanding compilers.
7863  # On the NeXT, cc -E runs the code through the compiler's parser,
7864  # not just through cpp. "Syntax error" is here to catch this case.
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867#ifdef __STDC__
7868# include <limits.h>
7869#else
7870# include <assert.h>
7871#endif
7872		     Syntax error
7873_ACEOF
7874if ac_fn_c_try_cpp "$LINENO"; then :
7875
7876else
7877  # Broken: fails on valid input.
7878continue
7879fi
7880rm -f conftest.err conftest.i conftest.$ac_ext
7881
7882  # OK, works on sane cases.  Now check whether nonexistent headers
7883  # can be detected and how.
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886#include <ac_nonexistent.h>
7887_ACEOF
7888if ac_fn_c_try_cpp "$LINENO"; then :
7889  # Broken: success on invalid input.
7890continue
7891else
7892  # Passes both tests.
7893ac_preproc_ok=:
7894break
7895fi
7896rm -f conftest.err conftest.i conftest.$ac_ext
7897
7898done
7899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7900rm -f conftest.i conftest.err conftest.$ac_ext
7901if $ac_preproc_ok; then :
7902  break
7903fi
7904
7905    done
7906    ac_cv_prog_CPP=$CPP
7907
7908fi
7909  CPP=$ac_cv_prog_CPP
7910else
7911  ac_cv_prog_CPP=$CPP
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7914$as_echo "$CPP" >&6; }
7915ac_preproc_ok=false
7916for ac_c_preproc_warn_flag in '' yes
7917do
7918  # Use a header file that comes with gcc, so configuring glibc
7919  # with a fresh cross-compiler works.
7920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7921  # <limits.h> exists even on freestanding compilers.
7922  # On the NeXT, cc -E runs the code through the compiler's parser,
7923  # not just through cpp. "Syntax error" is here to catch this case.
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926#ifdef __STDC__
7927# include <limits.h>
7928#else
7929# include <assert.h>
7930#endif
7931		     Syntax error
7932_ACEOF
7933if ac_fn_c_try_cpp "$LINENO"; then :
7934
7935else
7936  # Broken: fails on valid input.
7937continue
7938fi
7939rm -f conftest.err conftest.i conftest.$ac_ext
7940
7941  # OK, works on sane cases.  Now check whether nonexistent headers
7942  # can be detected and how.
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945#include <ac_nonexistent.h>
7946_ACEOF
7947if ac_fn_c_try_cpp "$LINENO"; then :
7948  # Broken: success on invalid input.
7949continue
7950else
7951  # Passes both tests.
7952ac_preproc_ok=:
7953break
7954fi
7955rm -f conftest.err conftest.i conftest.$ac_ext
7956
7957done
7958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7959rm -f conftest.i conftest.err conftest.$ac_ext
7960if $ac_preproc_ok; then :
7961
7962else
7963  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7965as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7966See \`config.log' for more details" "$LINENO" 5; }
7967fi
7968
7969ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7977$as_echo_n "checking for ANSI C header files... " >&6; }
7978if ${ac_cv_header_stdc+:} false; then :
7979  $as_echo_n "(cached) " >&6
7980else
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983#include <stdlib.h>
7984#include <stdarg.h>
7985#include <string.h>
7986#include <float.h>
7987
7988int
7989main ()
7990{
7991
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996if ac_fn_c_try_compile "$LINENO"; then :
7997  ac_cv_header_stdc=yes
7998else
7999  ac_cv_header_stdc=no
8000fi
8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002
8003if test $ac_cv_header_stdc = yes; then
8004  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007#include <string.h>
8008
8009_ACEOF
8010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011  $EGREP "memchr" >/dev/null 2>&1; then :
8012
8013else
8014  ac_cv_header_stdc=no
8015fi
8016rm -f conftest*
8017
8018fi
8019
8020if test $ac_cv_header_stdc = yes; then
8021  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h.  */
8024#include <stdlib.h>
8025
8026_ACEOF
8027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028  $EGREP "free" >/dev/null 2>&1; then :
8029
8030else
8031  ac_cv_header_stdc=no
8032fi
8033rm -f conftest*
8034
8035fi
8036
8037if test $ac_cv_header_stdc = yes; then
8038  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8039  if test "$cross_compiling" = yes; then :
8040  :
8041else
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044#include <ctype.h>
8045#include <stdlib.h>
8046#if ((' ' & 0x0FF) == 0x020)
8047# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8048# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8049#else
8050# define ISLOWER(c) \
8051		   (('a' <= (c) && (c) <= 'i') \
8052		     || ('j' <= (c) && (c) <= 'r') \
8053		     || ('s' <= (c) && (c) <= 'z'))
8054# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8055#endif
8056
8057#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8058int
8059main ()
8060{
8061  int i;
8062  for (i = 0; i < 256; i++)
8063    if (XOR (islower (i), ISLOWER (i))
8064	|| toupper (i) != TOUPPER (i))
8065      return 2;
8066  return 0;
8067}
8068_ACEOF
8069if ac_fn_c_try_run "$LINENO"; then :
8070
8071else
8072  ac_cv_header_stdc=no
8073fi
8074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8075  conftest.$ac_objext conftest.beam conftest.$ac_ext
8076fi
8077
8078fi
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8081$as_echo "$ac_cv_header_stdc" >&6; }
8082if test $ac_cv_header_stdc = yes; then
8083
8084$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8085
8086fi
8087
8088# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8089for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8090		  inttypes.h stdint.h unistd.h
8091do :
8092  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8093ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8094"
8095if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8096  cat >>confdefs.h <<_ACEOF
8097#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098_ACEOF
8099
8100fi
8101
8102done
8103
8104
8105for ac_header in dlfcn.h
8106do :
8107  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8108"
8109if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8110  cat >>confdefs.h <<_ACEOF
8111#define HAVE_DLFCN_H 1
8112_ACEOF
8113
8114fi
8115
8116done
8117
8118
8119
8120
8121
8122# Set options
8123enable_win32_dll=yes
8124
8125case $host in
8126*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8127  if test -n "$ac_tool_prefix"; then
8128  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8129set dummy ${ac_tool_prefix}as; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_prog_AS+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  if test -n "$AS"; then
8136  ac_cv_prog_AS="$AS" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141  IFS=$as_save_IFS
8142  test -z "$as_dir" && as_dir=.
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145    ac_cv_prog_AS="${ac_tool_prefix}as"
8146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155AS=$ac_cv_prog_AS
8156if test -n "$AS"; then
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8158$as_echo "$AS" >&6; }
8159else
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164
8165fi
8166if test -z "$ac_cv_prog_AS"; then
8167  ac_ct_AS=$AS
8168  # Extract the first word of "as", so it can be a program name with args.
8169set dummy as; ac_word=$2
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if ${ac_cv_prog_ac_ct_AS+:} false; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  if test -n "$ac_ct_AS"; then
8176  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8177else
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181  IFS=$as_save_IFS
8182  test -z "$as_dir" && as_dir=.
8183    for ac_exec_ext in '' $ac_executable_extensions; do
8184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185    ac_cv_prog_ac_ct_AS="as"
8186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187    break 2
8188  fi
8189done
8190  done
8191IFS=$as_save_IFS
8192
8193fi
8194fi
8195ac_ct_AS=$ac_cv_prog_ac_ct_AS
8196if test -n "$ac_ct_AS"; then
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8198$as_echo "$ac_ct_AS" >&6; }
8199else
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8202fi
8203
8204  if test "x$ac_ct_AS" = x; then
8205    AS="false"
8206  else
8207    case $cross_compiling:$ac_tool_warned in
8208yes:)
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211ac_tool_warned=yes ;;
8212esac
8213    AS=$ac_ct_AS
8214  fi
8215else
8216  AS="$ac_cv_prog_AS"
8217fi
8218
8219  if test -n "$ac_tool_prefix"; then
8220  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8221set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if ${ac_cv_prog_DLLTOOL+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  if test -n "$DLLTOOL"; then
8228  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247DLLTOOL=$ac_cv_prog_DLLTOOL
8248if test -n "$DLLTOOL"; then
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8250$as_echo "$DLLTOOL" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256
8257fi
8258if test -z "$ac_cv_prog_DLLTOOL"; then
8259  ac_ct_DLLTOOL=$DLLTOOL
8260  # Extract the first word of "dlltool", so it can be a program name with args.
8261set dummy dlltool; ac_word=$2
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  if test -n "$ac_ct_DLLTOOL"; then
8268  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273  IFS=$as_save_IFS
8274  test -z "$as_dir" && as_dir=.
8275    for ac_exec_ext in '' $ac_executable_extensions; do
8276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279    break 2
8280  fi
8281done
8282  done
8283IFS=$as_save_IFS
8284
8285fi
8286fi
8287ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8288if test -n "$ac_ct_DLLTOOL"; then
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8290$as_echo "$ac_ct_DLLTOOL" >&6; }
8291else
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8295
8296  if test "x$ac_ct_DLLTOOL" = x; then
8297    DLLTOOL="false"
8298  else
8299    case $cross_compiling:$ac_tool_warned in
8300yes:)
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303ac_tool_warned=yes ;;
8304esac
8305    DLLTOOL=$ac_ct_DLLTOOL
8306  fi
8307else
8308  DLLTOOL="$ac_cv_prog_DLLTOOL"
8309fi
8310
8311  if test -n "$ac_tool_prefix"; then
8312  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8313set dummy ${ac_tool_prefix}objdump; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_prog_OBJDUMP+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  if test -n "$OBJDUMP"; then
8320  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  test -z "$as_dir" && as_dir=.
8327    for ac_exec_ext in '' $ac_executable_extensions; do
8328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331    break 2
8332  fi
8333done
8334  done
8335IFS=$as_save_IFS
8336
8337fi
8338fi
8339OBJDUMP=$ac_cv_prog_OBJDUMP
8340if test -n "$OBJDUMP"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8342$as_echo "$OBJDUMP" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348
8349fi
8350if test -z "$ac_cv_prog_OBJDUMP"; then
8351  ac_ct_OBJDUMP=$OBJDUMP
8352  # Extract the first word of "objdump", so it can be a program name with args.
8353set dummy objdump; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$ac_ct_OBJDUMP"; then
8360  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365  IFS=$as_save_IFS
8366  test -z "$as_dir" && as_dir=.
8367    for ac_exec_ext in '' $ac_executable_extensions; do
8368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371    break 2
8372  fi
8373done
8374  done
8375IFS=$as_save_IFS
8376
8377fi
8378fi
8379ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8380if test -n "$ac_ct_OBJDUMP"; then
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8382$as_echo "$ac_ct_OBJDUMP" >&6; }
8383else
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8387
8388  if test "x$ac_ct_OBJDUMP" = x; then
8389    OBJDUMP="false"
8390  else
8391    case $cross_compiling:$ac_tool_warned in
8392yes:)
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8395ac_tool_warned=yes ;;
8396esac
8397    OBJDUMP=$ac_ct_OBJDUMP
8398  fi
8399else
8400  OBJDUMP="$ac_cv_prog_OBJDUMP"
8401fi
8402
8403  ;;
8404esac
8405
8406test -z "$AS" && AS=as
8407
8408
8409
8410
8411
8412test -z "$DLLTOOL" && DLLTOOL=dlltool
8413
8414
8415
8416
8417
8418test -z "$OBJDUMP" && OBJDUMP=objdump
8419
8420
8421
8422
8423
8424
8425
8426        enable_dlopen=no
8427
8428
8429
8430            # Check whether --enable-shared was given.
8431if test "${enable_shared+set}" = set; then :
8432  enableval=$enable_shared; p=${PACKAGE-default}
8433    case $enableval in
8434    yes) enable_shared=yes ;;
8435    no) enable_shared=no ;;
8436    *)
8437      enable_shared=no
8438      # Look at the argument we got.  We use all the common list separators.
8439      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8440      for pkg in $enableval; do
8441	IFS="$lt_save_ifs"
8442	if test "X$pkg" = "X$p"; then
8443	  enable_shared=yes
8444	fi
8445      done
8446      IFS="$lt_save_ifs"
8447      ;;
8448    esac
8449else
8450  enable_shared=yes
8451fi
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461  # Check whether --enable-static was given.
8462if test "${enable_static+set}" = set; then :
8463  enableval=$enable_static; p=${PACKAGE-default}
8464    case $enableval in
8465    yes) enable_static=yes ;;
8466    no) enable_static=no ;;
8467    *)
8468     enable_static=no
8469      # Look at the argument we got.  We use all the common list separators.
8470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8471      for pkg in $enableval; do
8472	IFS="$lt_save_ifs"
8473	if test "X$pkg" = "X$p"; then
8474	  enable_static=yes
8475	fi
8476      done
8477      IFS="$lt_save_ifs"
8478      ;;
8479    esac
8480else
8481  enable_static=yes
8482fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493# Check whether --with-pic was given.
8494if test "${with_pic+set}" = set; then :
8495  withval=$with_pic; lt_p=${PACKAGE-default}
8496    case $withval in
8497    yes|no) pic_mode=$withval ;;
8498    *)
8499      pic_mode=default
8500      # Look at the argument we got.  We use all the common list separators.
8501      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8502      for lt_pkg in $withval; do
8503	IFS="$lt_save_ifs"
8504	if test "X$lt_pkg" = "X$lt_p"; then
8505	  pic_mode=yes
8506	fi
8507      done
8508      IFS="$lt_save_ifs"
8509      ;;
8510    esac
8511else
8512  pic_mode=default
8513fi
8514
8515
8516test -z "$pic_mode" && pic_mode=default
8517
8518
8519
8520
8521
8522
8523
8524  # Check whether --enable-fast-install was given.
8525if test "${enable_fast_install+set}" = set; then :
8526  enableval=$enable_fast_install; p=${PACKAGE-default}
8527    case $enableval in
8528    yes) enable_fast_install=yes ;;
8529    no) enable_fast_install=no ;;
8530    *)
8531      enable_fast_install=no
8532      # Look at the argument we got.  We use all the common list separators.
8533      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8534      for pkg in $enableval; do
8535	IFS="$lt_save_ifs"
8536	if test "X$pkg" = "X$p"; then
8537	  enable_fast_install=yes
8538	fi
8539      done
8540      IFS="$lt_save_ifs"
8541      ;;
8542    esac
8543else
8544  enable_fast_install=yes
8545fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557# This can be used to rebuild libtool when needed
8558LIBTOOL_DEPS="$ltmain"
8559
8560# Always use our own libtool.
8561LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592test -z "$LN_S" && LN_S="ln -s"
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607if test -n "${ZSH_VERSION+set}" ; then
8608   setopt NO_GLOB_SUBST
8609fi
8610
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8612$as_echo_n "checking for objdir... " >&6; }
8613if ${lt_cv_objdir+:} false; then :
8614  $as_echo_n "(cached) " >&6
8615else
8616  rm -f .libs 2>/dev/null
8617mkdir .libs 2>/dev/null
8618if test -d .libs; then
8619  lt_cv_objdir=.libs
8620else
8621  # MS-DOS does not allow filenames that begin with a dot.
8622  lt_cv_objdir=_libs
8623fi
8624rmdir .libs 2>/dev/null
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8627$as_echo "$lt_cv_objdir" >&6; }
8628objdir=$lt_cv_objdir
8629
8630
8631
8632
8633
8634cat >>confdefs.h <<_ACEOF
8635#define LT_OBJDIR "$lt_cv_objdir/"
8636_ACEOF
8637
8638
8639
8640
8641case $host_os in
8642aix3*)
8643  # AIX sometimes has problems with the GCC collect2 program.  For some
8644  # reason, if we set the COLLECT_NAMES environment variable, the problems
8645  # vanish in a puff of smoke.
8646  if test "X${COLLECT_NAMES+set}" != Xset; then
8647    COLLECT_NAMES=
8648    export COLLECT_NAMES
8649  fi
8650  ;;
8651esac
8652
8653# Global variables:
8654ofile=libtool
8655can_build_shared=yes
8656
8657# All known linkers require a `.a' archive for static linking (except MSVC,
8658# which needs '.lib').
8659libext=a
8660
8661with_gnu_ld="$lt_cv_prog_gnu_ld"
8662
8663old_CC="$CC"
8664old_CFLAGS="$CFLAGS"
8665
8666# Set sane defaults for various variables
8667test -z "$CC" && CC=cc
8668test -z "$LTCC" && LTCC=$CC
8669test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8670test -z "$LD" && LD=ld
8671test -z "$ac_objext" && ac_objext=o
8672
8673for cc_temp in $compiler""; do
8674  case $cc_temp in
8675    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8676    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8677    \-*) ;;
8678    *) break;;
8679  esac
8680done
8681cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8682
8683
8684# Only perform the check for file, if the check method requires it
8685test -z "$MAGIC_CMD" && MAGIC_CMD=file
8686case $deplibs_check_method in
8687file_magic*)
8688  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8690$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8691if ${lt_cv_path_MAGIC_CMD+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  case $MAGIC_CMD in
8695[\\/*] |  ?:[\\/]*)
8696  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8697  ;;
8698*)
8699  lt_save_MAGIC_CMD="$MAGIC_CMD"
8700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8701  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8702  for ac_dir in $ac_dummy; do
8703    IFS="$lt_save_ifs"
8704    test -z "$ac_dir" && ac_dir=.
8705    if test -f $ac_dir/${ac_tool_prefix}file; then
8706      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8707      if test -n "$file_magic_test_file"; then
8708	case $deplibs_check_method in
8709	"file_magic "*)
8710	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8711	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8712	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8713	    $EGREP "$file_magic_regex" > /dev/null; then
8714	    :
8715	  else
8716	    cat <<_LT_EOF 1>&2
8717
8718*** Warning: the command libtool uses to detect shared libraries,
8719*** $file_magic_cmd, produces output that libtool cannot recognize.
8720*** The result is that libtool may fail to recognize shared libraries
8721*** as such.  This will affect the creation of libtool libraries that
8722*** depend on shared libraries, but programs linked with such libtool
8723*** libraries will work regardless of this problem.  Nevertheless, you
8724*** may want to report the problem to your system manager and/or to
8725*** [email protected]
8726
8727_LT_EOF
8728	  fi ;;
8729	esac
8730      fi
8731      break
8732    fi
8733  done
8734  IFS="$lt_save_ifs"
8735  MAGIC_CMD="$lt_save_MAGIC_CMD"
8736  ;;
8737esac
8738fi
8739
8740MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8741if test -n "$MAGIC_CMD"; then
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8743$as_echo "$MAGIC_CMD" >&6; }
8744else
8745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746$as_echo "no" >&6; }
8747fi
8748
8749
8750
8751
8752
8753if test -z "$lt_cv_path_MAGIC_CMD"; then
8754  if test -n "$ac_tool_prefix"; then
8755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8756$as_echo_n "checking for file... " >&6; }
8757if ${lt_cv_path_MAGIC_CMD+:} false; then :
8758  $as_echo_n "(cached) " >&6
8759else
8760  case $MAGIC_CMD in
8761[\\/*] |  ?:[\\/]*)
8762  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8763  ;;
8764*)
8765  lt_save_MAGIC_CMD="$MAGIC_CMD"
8766  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8767  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8768  for ac_dir in $ac_dummy; do
8769    IFS="$lt_save_ifs"
8770    test -z "$ac_dir" && ac_dir=.
8771    if test -f $ac_dir/file; then
8772      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8773      if test -n "$file_magic_test_file"; then
8774	case $deplibs_check_method in
8775	"file_magic "*)
8776	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8777	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8778	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8779	    $EGREP "$file_magic_regex" > /dev/null; then
8780	    :
8781	  else
8782	    cat <<_LT_EOF 1>&2
8783
8784*** Warning: the command libtool uses to detect shared libraries,
8785*** $file_magic_cmd, produces output that libtool cannot recognize.
8786*** The result is that libtool may fail to recognize shared libraries
8787*** as such.  This will affect the creation of libtool libraries that
8788*** depend on shared libraries, but programs linked with such libtool
8789*** libraries will work regardless of this problem.  Nevertheless, you
8790*** may want to report the problem to your system manager and/or to
8791*** [email protected]
8792
8793_LT_EOF
8794	  fi ;;
8795	esac
8796      fi
8797      break
8798    fi
8799  done
8800  IFS="$lt_save_ifs"
8801  MAGIC_CMD="$lt_save_MAGIC_CMD"
8802  ;;
8803esac
8804fi
8805
8806MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8807if test -n "$MAGIC_CMD"; then
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8809$as_echo "$MAGIC_CMD" >&6; }
8810else
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816  else
8817    MAGIC_CMD=:
8818  fi
8819fi
8820
8821  fi
8822  ;;
8823esac
8824
8825# Use C for the default configuration in the libtool script
8826
8827lt_save_CC="$CC"
8828ac_ext=c
8829ac_cpp='$CPP $CPPFLAGS'
8830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
8834
8835# Source file extension for C test sources.
8836ac_ext=c
8837
8838# Object file extension for compiled C test sources.
8839objext=o
8840objext=$objext
8841
8842# Code to be used in simple compile tests
8843lt_simple_compile_test_code="int some_variable = 0;"
8844
8845# Code to be used in simple link tests
8846lt_simple_link_test_code='int main(){return(0);}'
8847
8848
8849
8850
8851
8852
8853
8854# If no C compiler was specified, use CC.
8855LTCC=${LTCC-"$CC"}
8856
8857# If no C compiler flags were specified, use CFLAGS.
8858LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8859
8860# Allow CC to be a program name with arguments.
8861compiler=$CC
8862
8863# Save the default compiler, since it gets overwritten when the other
8864# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8865compiler_DEFAULT=$CC
8866
8867# save warnings/boilerplate of simple test code
8868ac_outfile=conftest.$ac_objext
8869echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8871_lt_compiler_boilerplate=`cat conftest.err`
8872$RM conftest*
8873
8874ac_outfile=conftest.$ac_objext
8875echo "$lt_simple_link_test_code" >conftest.$ac_ext
8876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8877_lt_linker_boilerplate=`cat conftest.err`
8878$RM -r conftest*
8879
8880
8881## CAVEAT EMPTOR:
8882## There is no encapsulation within the following macros, do not change
8883## the running order or otherwise move them around unless you know exactly
8884## what you are doing...
8885if test -n "$compiler"; then
8886
8887lt_prog_compiler_no_builtin_flag=
8888
8889if test "$GCC" = yes; then
8890  case $cc_basename in
8891  nvcc*)
8892    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8893  *)
8894    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8895  esac
8896
8897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8898$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8899if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  lt_cv_prog_compiler_rtti_exceptions=no
8903   ac_outfile=conftest.$ac_objext
8904   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905   lt_compiler_flag="-fno-rtti -fno-exceptions"
8906   # Insert the option either (1) after the last *FLAGS variable, or
8907   # (2) before a word containing "conftest.", or (3) at the end.
8908   # Note that $ac_compile itself does not contain backslashes and begins
8909   # with a dollar sign (not a hyphen), so the echo should work correctly.
8910   # The option is referenced via a variable to avoid confusing sed.
8911   lt_compile=`echo "$ac_compile" | $SED \
8912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914   -e 's:$: $lt_compiler_flag:'`
8915   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916   (eval "$lt_compile" 2>conftest.err)
8917   ac_status=$?
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   if (exit $ac_status) && test -s "$ac_outfile"; then
8921     # The compiler can only warn and ignore the option if not recognized
8922     # So say no if there are warnings other than the usual output.
8923     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8924     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8925     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8926       lt_cv_prog_compiler_rtti_exceptions=yes
8927     fi
8928   fi
8929   $RM conftest*
8930
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8933$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8934
8935if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8936    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8937else
8938    :
8939fi
8940
8941fi
8942
8943
8944
8945
8946
8947
8948  lt_prog_compiler_wl=
8949lt_prog_compiler_pic=
8950lt_prog_compiler_static=
8951
8952
8953  if test "$GCC" = yes; then
8954    lt_prog_compiler_wl='-Wl,'
8955    lt_prog_compiler_static='-static'
8956
8957    case $host_os in
8958      aix*)
8959      # All AIX code is PIC.
8960      if test "$host_cpu" = ia64; then
8961	# AIX 5 now supports IA64 processor
8962	lt_prog_compiler_static='-Bstatic'
8963      fi
8964      ;;
8965
8966    amigaos*)
8967      case $host_cpu in
8968      powerpc)
8969            # see comment about AmigaOS4 .so support
8970            lt_prog_compiler_pic='-fPIC'
8971        ;;
8972      m68k)
8973            # FIXME: we need at least 68020 code to build shared libraries, but
8974            # adding the `-m68020' flag to GCC prevents building anything better,
8975            # like `-m68040'.
8976            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8977        ;;
8978      esac
8979      ;;
8980
8981    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8982      # PIC is the default for these OSes.
8983      ;;
8984
8985    mingw* | cygwin* | pw32* | os2* | cegcc*)
8986      # This hack is so that the source file can tell whether it is being
8987      # built for inclusion in a dll (and should export symbols for example).
8988      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8989      # (--disable-auto-import) libraries
8990      lt_prog_compiler_pic='-DDLL_EXPORT'
8991      ;;
8992
8993    darwin* | rhapsody*)
8994      # PIC is the default on this platform
8995      # Common symbols not allowed in MH_DYLIB files
8996      lt_prog_compiler_pic='-fno-common'
8997      ;;
8998
8999    haiku*)
9000      # PIC is the default for Haiku.
9001      # The "-static" flag exists, but is broken.
9002      lt_prog_compiler_static=
9003      ;;
9004
9005    hpux*)
9006      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9007      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9008      # sets the default TLS model and affects inlining.
9009      case $host_cpu in
9010      hppa*64*)
9011	# +Z the default
9012	;;
9013      *)
9014	lt_prog_compiler_pic='-fPIC'
9015	;;
9016      esac
9017      ;;
9018
9019    interix[3-9]*)
9020      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9021      # Instead, we relocate shared libraries at runtime.
9022      ;;
9023
9024    msdosdjgpp*)
9025      # Just because we use GCC doesn't mean we suddenly get shared libraries
9026      # on systems that don't support them.
9027      lt_prog_compiler_can_build_shared=no
9028      enable_shared=no
9029      ;;
9030
9031    *nto* | *qnx*)
9032      # QNX uses GNU C++, but need to define -shared option too, otherwise
9033      # it will coredump.
9034      lt_prog_compiler_pic='-fPIC -shared'
9035      ;;
9036
9037    sysv4*MP*)
9038      if test -d /usr/nec; then
9039	lt_prog_compiler_pic=-Kconform_pic
9040      fi
9041      ;;
9042
9043    *)
9044      lt_prog_compiler_pic='-fPIC'
9045      ;;
9046    esac
9047
9048    case $cc_basename in
9049    nvcc*) # Cuda Compiler Driver 2.2
9050      lt_prog_compiler_wl='-Xlinker '
9051      if test -n "$lt_prog_compiler_pic"; then
9052        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9053      fi
9054      ;;
9055    esac
9056  else
9057    # PORTME Check for flag to pass linker flags through the system compiler.
9058    case $host_os in
9059    aix*)
9060      lt_prog_compiler_wl='-Wl,'
9061      if test "$host_cpu" = ia64; then
9062	# AIX 5 now supports IA64 processor
9063	lt_prog_compiler_static='-Bstatic'
9064      else
9065	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9066      fi
9067      ;;
9068
9069    mingw* | cygwin* | pw32* | os2* | cegcc*)
9070      # This hack is so that the source file can tell whether it is being
9071      # built for inclusion in a dll (and should export symbols for example).
9072      lt_prog_compiler_pic='-DDLL_EXPORT'
9073      ;;
9074
9075    hpux9* | hpux10* | hpux11*)
9076      lt_prog_compiler_wl='-Wl,'
9077      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9078      # not for PA HP-UX.
9079      case $host_cpu in
9080      hppa*64*|ia64*)
9081	# +Z the default
9082	;;
9083      *)
9084	lt_prog_compiler_pic='+Z'
9085	;;
9086      esac
9087      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9088      lt_prog_compiler_static='${wl}-a ${wl}archive'
9089      ;;
9090
9091    irix5* | irix6* | nonstopux*)
9092      lt_prog_compiler_wl='-Wl,'
9093      # PIC (with -KPIC) is the default.
9094      lt_prog_compiler_static='-non_shared'
9095      ;;
9096
9097    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9098      case $cc_basename in
9099      # old Intel for x86_64 which still supported -KPIC.
9100      ecc*)
9101	lt_prog_compiler_wl='-Wl,'
9102	lt_prog_compiler_pic='-KPIC'
9103	lt_prog_compiler_static='-static'
9104        ;;
9105      # icc used to be incompatible with GCC.
9106      # ICC 10 doesn't accept -KPIC any more.
9107      icc* | ifort*)
9108	lt_prog_compiler_wl='-Wl,'
9109	lt_prog_compiler_pic='-fPIC'
9110	lt_prog_compiler_static='-static'
9111        ;;
9112      # Lahey Fortran 8.1.
9113      lf95*)
9114	lt_prog_compiler_wl='-Wl,'
9115	lt_prog_compiler_pic='--shared'
9116	lt_prog_compiler_static='--static'
9117	;;
9118      nagfor*)
9119	# NAG Fortran compiler
9120	lt_prog_compiler_wl='-Wl,-Wl,,'
9121	lt_prog_compiler_pic='-PIC'
9122	lt_prog_compiler_static='-Bstatic'
9123	;;
9124      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9125        # Portland Group compilers (*not* the Pentium gcc compiler,
9126	# which looks to be a dead project)
9127	lt_prog_compiler_wl='-Wl,'
9128	lt_prog_compiler_pic='-fpic'
9129	lt_prog_compiler_static='-Bstatic'
9130        ;;
9131      ccc*)
9132        lt_prog_compiler_wl='-Wl,'
9133        # All Alpha code is PIC.
9134        lt_prog_compiler_static='-non_shared'
9135        ;;
9136      xl* | bgxl* | bgf* | mpixl*)
9137	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9138	lt_prog_compiler_wl='-Wl,'
9139	lt_prog_compiler_pic='-qpic'
9140	lt_prog_compiler_static='-qstaticlink'
9141	;;
9142      *)
9143	case `$CC -V 2>&1 | sed 5q` in
9144	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9145	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9146	  lt_prog_compiler_pic='-KPIC'
9147	  lt_prog_compiler_static='-Bstatic'
9148	  lt_prog_compiler_wl=''
9149	  ;;
9150	*Sun\ F* | *Sun*Fortran*)
9151	  lt_prog_compiler_pic='-KPIC'
9152	  lt_prog_compiler_static='-Bstatic'
9153	  lt_prog_compiler_wl='-Qoption ld '
9154	  ;;
9155	*Sun\ C*)
9156	  # Sun C 5.9
9157	  lt_prog_compiler_pic='-KPIC'
9158	  lt_prog_compiler_static='-Bstatic'
9159	  lt_prog_compiler_wl='-Wl,'
9160	  ;;
9161        *Intel*\ [CF]*Compiler*)
9162	  lt_prog_compiler_wl='-Wl,'
9163	  lt_prog_compiler_pic='-fPIC'
9164	  lt_prog_compiler_static='-static'
9165	  ;;
9166	*Portland\ Group*)
9167	  lt_prog_compiler_wl='-Wl,'
9168	  lt_prog_compiler_pic='-fpic'
9169	  lt_prog_compiler_static='-Bstatic'
9170	  ;;
9171	esac
9172	;;
9173      esac
9174      ;;
9175
9176    newsos6)
9177      lt_prog_compiler_pic='-KPIC'
9178      lt_prog_compiler_static='-Bstatic'
9179      ;;
9180
9181    *nto* | *qnx*)
9182      # QNX uses GNU C++, but need to define -shared option too, otherwise
9183      # it will coredump.
9184      lt_prog_compiler_pic='-fPIC -shared'
9185      ;;
9186
9187    osf3* | osf4* | osf5*)
9188      lt_prog_compiler_wl='-Wl,'
9189      # All OSF/1 code is PIC.
9190      lt_prog_compiler_static='-non_shared'
9191      ;;
9192
9193    rdos*)
9194      lt_prog_compiler_static='-non_shared'
9195      ;;
9196
9197    solaris*)
9198      lt_prog_compiler_pic='-KPIC'
9199      lt_prog_compiler_static='-Bstatic'
9200      case $cc_basename in
9201      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9202	lt_prog_compiler_wl='-Qoption ld ';;
9203      *)
9204	lt_prog_compiler_wl='-Wl,';;
9205      esac
9206      ;;
9207
9208    sunos4*)
9209      lt_prog_compiler_wl='-Qoption ld '
9210      lt_prog_compiler_pic='-PIC'
9211      lt_prog_compiler_static='-Bstatic'
9212      ;;
9213
9214    sysv4 | sysv4.2uw2* | sysv4.3*)
9215      lt_prog_compiler_wl='-Wl,'
9216      lt_prog_compiler_pic='-KPIC'
9217      lt_prog_compiler_static='-Bstatic'
9218      ;;
9219
9220    sysv4*MP*)
9221      if test -d /usr/nec ;then
9222	lt_prog_compiler_pic='-Kconform_pic'
9223	lt_prog_compiler_static='-Bstatic'
9224      fi
9225      ;;
9226
9227    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9228      lt_prog_compiler_wl='-Wl,'
9229      lt_prog_compiler_pic='-KPIC'
9230      lt_prog_compiler_static='-Bstatic'
9231      ;;
9232
9233    unicos*)
9234      lt_prog_compiler_wl='-Wl,'
9235      lt_prog_compiler_can_build_shared=no
9236      ;;
9237
9238    uts4*)
9239      lt_prog_compiler_pic='-pic'
9240      lt_prog_compiler_static='-Bstatic'
9241      ;;
9242
9243    *)
9244      lt_prog_compiler_can_build_shared=no
9245      ;;
9246    esac
9247  fi
9248
9249case $host_os in
9250  # For platforms which do not support PIC, -DPIC is meaningless:
9251  *djgpp*)
9252    lt_prog_compiler_pic=
9253    ;;
9254  *)
9255    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9256    ;;
9257esac
9258
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9260$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9261if ${lt_cv_prog_compiler_pic+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9267$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9268lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9269
9270#
9271# Check to make sure the PIC flag actually works.
9272#
9273if test -n "$lt_prog_compiler_pic"; then
9274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9275$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9276if ${lt_cv_prog_compiler_pic_works+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  lt_cv_prog_compiler_pic_works=no
9280   ac_outfile=conftest.$ac_objext
9281   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9282   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9283   # Insert the option either (1) after the last *FLAGS variable, or
9284   # (2) before a word containing "conftest.", or (3) at the end.
9285   # Note that $ac_compile itself does not contain backslashes and begins
9286   # with a dollar sign (not a hyphen), so the echo should work correctly.
9287   # The option is referenced via a variable to avoid confusing sed.
9288   lt_compile=`echo "$ac_compile" | $SED \
9289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291   -e 's:$: $lt_compiler_flag:'`
9292   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9293   (eval "$lt_compile" 2>conftest.err)
9294   ac_status=$?
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   if (exit $ac_status) && test -s "$ac_outfile"; then
9298     # The compiler can only warn and ignore the option if not recognized
9299     # So say no if there are warnings other than the usual output.
9300     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9301     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9302     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9303       lt_cv_prog_compiler_pic_works=yes
9304     fi
9305   fi
9306   $RM conftest*
9307
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9310$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9311
9312if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9313    case $lt_prog_compiler_pic in
9314     "" | " "*) ;;
9315     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9316     esac
9317else
9318    lt_prog_compiler_pic=
9319     lt_prog_compiler_can_build_shared=no
9320fi
9321
9322fi
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334#
9335# Check to make sure the static flag actually works.
9336#
9337wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9339$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9340if ${lt_cv_prog_compiler_static_works+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343  lt_cv_prog_compiler_static_works=no
9344   save_LDFLAGS="$LDFLAGS"
9345   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9346   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9347   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9348     # The linker can only warn and ignore the option if not recognized
9349     # So say no if there are warnings
9350     if test -s conftest.err; then
9351       # Append any errors to the config.log.
9352       cat conftest.err 1>&5
9353       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9354       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9355       if diff conftest.exp conftest.er2 >/dev/null; then
9356         lt_cv_prog_compiler_static_works=yes
9357       fi
9358     else
9359       lt_cv_prog_compiler_static_works=yes
9360     fi
9361   fi
9362   $RM -r conftest*
9363   LDFLAGS="$save_LDFLAGS"
9364
9365fi
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9367$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9368
9369if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9370    :
9371else
9372    lt_prog_compiler_static=
9373fi
9374
9375
9376
9377
9378
9379
9380
9381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9383if ${lt_cv_prog_compiler_c_o+:} false; then :
9384  $as_echo_n "(cached) " >&6
9385else
9386  lt_cv_prog_compiler_c_o=no
9387   $RM -r conftest 2>/dev/null
9388   mkdir conftest
9389   cd conftest
9390   mkdir out
9391   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392
9393   lt_compiler_flag="-o out/conftest2.$ac_objext"
9394   # Insert the option either (1) after the last *FLAGS variable, or
9395   # (2) before a word containing "conftest.", or (3) at the end.
9396   # Note that $ac_compile itself does not contain backslashes and begins
9397   # with a dollar sign (not a hyphen), so the echo should work correctly.
9398   lt_compile=`echo "$ac_compile" | $SED \
9399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401   -e 's:$: $lt_compiler_flag:'`
9402   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9403   (eval "$lt_compile" 2>out/conftest.err)
9404   ac_status=$?
9405   cat out/conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9408   then
9409     # The compiler can only warn and ignore the option if not recognized
9410     # So say no if there are warnings
9411     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9412     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9413     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9414       lt_cv_prog_compiler_c_o=yes
9415     fi
9416   fi
9417   chmod u+w . 2>&5
9418   $RM conftest*
9419   # SGI C++ compiler will create directory out/ii_files/ for
9420   # template instantiation
9421   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9422   $RM out/* && rmdir out
9423   cd ..
9424   $RM -r conftest
9425   $RM conftest*
9426
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9429$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9430
9431
9432
9433
9434
9435
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9437$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9438if ${lt_cv_prog_compiler_c_o+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  lt_cv_prog_compiler_c_o=no
9442   $RM -r conftest 2>/dev/null
9443   mkdir conftest
9444   cd conftest
9445   mkdir out
9446   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9447
9448   lt_compiler_flag="-o out/conftest2.$ac_objext"
9449   # Insert the option either (1) after the last *FLAGS variable, or
9450   # (2) before a word containing "conftest.", or (3) at the end.
9451   # Note that $ac_compile itself does not contain backslashes and begins
9452   # with a dollar sign (not a hyphen), so the echo should work correctly.
9453   lt_compile=`echo "$ac_compile" | $SED \
9454   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9455   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9456   -e 's:$: $lt_compiler_flag:'`
9457   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9458   (eval "$lt_compile" 2>out/conftest.err)
9459   ac_status=$?
9460   cat out/conftest.err >&5
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9463   then
9464     # The compiler can only warn and ignore the option if not recognized
9465     # So say no if there are warnings
9466     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9467     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9468     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9469       lt_cv_prog_compiler_c_o=yes
9470     fi
9471   fi
9472   chmod u+w . 2>&5
9473   $RM conftest*
9474   # SGI C++ compiler will create directory out/ii_files/ for
9475   # template instantiation
9476   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9477   $RM out/* && rmdir out
9478   cd ..
9479   $RM -r conftest
9480   $RM conftest*
9481
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9484$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9485
9486
9487
9488
9489hard_links="nottested"
9490if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9491  # do not overwrite the value of need_locks provided by the user
9492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9493$as_echo_n "checking if we can lock with hard links... " >&6; }
9494  hard_links=yes
9495  $RM conftest*
9496  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497  touch conftest.a
9498  ln conftest.a conftest.b 2>&5 || hard_links=no
9499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9501$as_echo "$hard_links" >&6; }
9502  if test "$hard_links" = no; then
9503    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9504$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9505    need_locks=warn
9506  fi
9507else
9508  need_locks=no
9509fi
9510
9511
9512
9513
9514
9515
9516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9517$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9518
9519  runpath_var=
9520  allow_undefined_flag=
9521  always_export_symbols=no
9522  archive_cmds=
9523  archive_expsym_cmds=
9524  compiler_needs_object=no
9525  enable_shared_with_static_runtimes=no
9526  export_dynamic_flag_spec=
9527  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9528  hardcode_automatic=no
9529  hardcode_direct=no
9530  hardcode_direct_absolute=no
9531  hardcode_libdir_flag_spec=
9532  hardcode_libdir_separator=
9533  hardcode_minus_L=no
9534  hardcode_shlibpath_var=unsupported
9535  inherit_rpath=no
9536  link_all_deplibs=unknown
9537  module_cmds=
9538  module_expsym_cmds=
9539  old_archive_from_new_cmds=
9540  old_archive_from_expsyms_cmds=
9541  thread_safe_flag_spec=
9542  whole_archive_flag_spec=
9543  # include_expsyms should be a list of space-separated symbols to be *always*
9544  # included in the symbol list
9545  include_expsyms=
9546  # exclude_expsyms can be an extended regexp of symbols to exclude
9547  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9548  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9549  # as well as any symbol that contains `d'.
9550  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9551  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9552  # platforms (ab)use it in PIC code, but their linkers get confused if
9553  # the symbol is explicitly referenced.  Since portable code cannot
9554  # rely on this symbol name, it's probably fine to never include it in
9555  # preloaded symbol tables.
9556  # Exclude shared library initialization/finalization symbols.
9557  extract_expsyms_cmds=
9558
9559  case $host_os in
9560  cygwin* | mingw* | pw32* | cegcc*)
9561    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9562    # When not using gcc, we currently assume that we are using
9563    # Microsoft Visual C++.
9564    if test "$GCC" != yes; then
9565      with_gnu_ld=no
9566    fi
9567    ;;
9568  interix*)
9569    # we just hope/assume this is gcc and not c89 (= MSVC++)
9570    with_gnu_ld=yes
9571    ;;
9572  openbsd*)
9573    with_gnu_ld=no
9574    ;;
9575  esac
9576
9577  ld_shlibs=yes
9578
9579  # On some targets, GNU ld is compatible enough with the native linker
9580  # that we're better off using the native interface for both.
9581  lt_use_gnu_ld_interface=no
9582  if test "$with_gnu_ld" = yes; then
9583    case $host_os in
9584      aix*)
9585	# The AIX port of GNU ld has always aspired to compatibility
9586	# with the native linker.  However, as the warning in the GNU ld
9587	# block says, versions before 2.19.5* couldn't really create working
9588	# shared libraries, regardless of the interface used.
9589	case `$LD -v 2>&1` in
9590	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9591	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9592	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9593	  *)
9594	    lt_use_gnu_ld_interface=yes
9595	    ;;
9596	esac
9597	;;
9598      *)
9599	lt_use_gnu_ld_interface=yes
9600	;;
9601    esac
9602  fi
9603
9604  if test "$lt_use_gnu_ld_interface" = yes; then
9605    # If archive_cmds runs LD, not CC, wlarc should be empty
9606    wlarc='${wl}'
9607
9608    # Set some defaults for GNU ld with shared library support. These
9609    # are reset later if shared libraries are not supported. Putting them
9610    # here allows them to be overridden if necessary.
9611    runpath_var=LD_RUN_PATH
9612    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613    export_dynamic_flag_spec='${wl}--export-dynamic'
9614    # ancient GNU ld didn't support --whole-archive et. al.
9615    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9616      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9617    else
9618      whole_archive_flag_spec=
9619    fi
9620    supports_anon_versioning=no
9621    case `$LD -v 2>&1` in
9622      *GNU\ gold*) supports_anon_versioning=yes ;;
9623      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9624      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9625      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9626      *\ 2.11.*) ;; # other 2.11 versions
9627      *) supports_anon_versioning=yes ;;
9628    esac
9629
9630    # See if GNU ld supports shared libraries.
9631    case $host_os in
9632    aix[3-9]*)
9633      # On AIX/PPC, the GNU linker is very broken
9634      if test "$host_cpu" != ia64; then
9635	ld_shlibs=no
9636	cat <<_LT_EOF 1>&2
9637
9638*** Warning: the GNU linker, at least up to release 2.19, is reported
9639*** to be unable to reliably create shared libraries on AIX.
9640*** Therefore, libtool is disabling shared libraries support.  If you
9641*** really care for shared libraries, you may want to install binutils
9642*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9643*** You will then need to restart the configuration process.
9644
9645_LT_EOF
9646      fi
9647      ;;
9648
9649    amigaos*)
9650      case $host_cpu in
9651      powerpc)
9652            # see comment about AmigaOS4 .so support
9653            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654            archive_expsym_cmds=''
9655        ;;
9656      m68k)
9657            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)'
9658            hardcode_libdir_flag_spec='-L$libdir'
9659            hardcode_minus_L=yes
9660        ;;
9661      esac
9662      ;;
9663
9664    beos*)
9665      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9666	allow_undefined_flag=unsupported
9667	# Joseph Beckenbach <[email protected]> says some releases of gcc
9668	# support --undefined.  This deserves some investigation.  FIXME
9669	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670      else
9671	ld_shlibs=no
9672      fi
9673      ;;
9674
9675    cygwin* | mingw* | pw32* | cegcc*)
9676      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9677      # as there is no search path for DLLs.
9678      hardcode_libdir_flag_spec='-L$libdir'
9679      export_dynamic_flag_spec='${wl}--export-all-symbols'
9680      allow_undefined_flag=unsupported
9681      always_export_symbols=no
9682      enable_shared_with_static_runtimes=yes
9683      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'
9684      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9685
9686      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9687        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688	# If the export-symbols file already is a .def file (1st line
9689	# is EXPORTS), use it as is; otherwise, prepend...
9690	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9691	  cp $export_symbols $output_objdir/$soname.def;
9692	else
9693	  echo EXPORTS > $output_objdir/$soname.def;
9694	  cat $export_symbols >> $output_objdir/$soname.def;
9695	fi~
9696	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697      else
9698	ld_shlibs=no
9699      fi
9700      ;;
9701
9702    haiku*)
9703      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704      link_all_deplibs=yes
9705      ;;
9706
9707    interix[3-9]*)
9708      hardcode_direct=no
9709      hardcode_shlibpath_var=no
9710      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9711      export_dynamic_flag_spec='${wl}-E'
9712      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9713      # Instead, shared libraries are loaded at an image base (0x10000000 by
9714      # default) and relocated if they conflict, which is a slow very memory
9715      # consuming and fragmenting process.  To avoid this, we pick a random,
9716      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9717      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9718      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9719      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'
9720      ;;
9721
9722    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9723      tmp_diet=no
9724      if test "$host_os" = linux-dietlibc; then
9725	case $cc_basename in
9726	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9727	esac
9728      fi
9729      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9730	 && test "$tmp_diet" = no
9731      then
9732	tmp_addflag=' $pic_flag'
9733	tmp_sharedflag='-shared'
9734	case $cc_basename,$host_cpu in
9735        pgcc*)				# Portland Group C compiler
9736	  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'
9737	  tmp_addflag=' $pic_flag'
9738	  ;;
9739	pgf77* | pgf90* | pgf95* | pgfortran*)
9740					# Portland Group f77 and f90 compilers
9741	  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'
9742	  tmp_addflag=' $pic_flag -Mnomain' ;;
9743	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9744	  tmp_addflag=' -i_dynamic' ;;
9745	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9746	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9747	ifc* | ifort*)			# Intel Fortran compiler
9748	  tmp_addflag=' -nofor_main' ;;
9749	lf95*)				# Lahey Fortran 8.1
9750	  whole_archive_flag_spec=
9751	  tmp_sharedflag='--shared' ;;
9752	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9753	  tmp_sharedflag='-qmkshrobj'
9754	  tmp_addflag= ;;
9755	nvcc*)	# Cuda Compiler Driver 2.2
9756	  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'
9757	  compiler_needs_object=yes
9758	  ;;
9759	esac
9760	case `$CC -V 2>&1 | sed 5q` in
9761	*Sun\ C*)			# Sun C 5.9
9762	  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'
9763	  compiler_needs_object=yes
9764	  tmp_sharedflag='-G' ;;
9765	*Sun\ F*)			# Sun Fortran 8.3
9766	  tmp_sharedflag='-G' ;;
9767	esac
9768	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769
9770        if test "x$supports_anon_versioning" = xyes; then
9771          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773	    echo "local: *; };" >> $output_objdir/$libname.ver~
9774	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9775        fi
9776
9777	case $cc_basename in
9778	xlf* | bgf* | bgxlf* | mpixlf*)
9779	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9780	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9781	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9783	  if test "x$supports_anon_versioning" = xyes; then
9784	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9785	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9786	      echo "local: *; };" >> $output_objdir/$libname.ver~
9787	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9788	  fi
9789	  ;;
9790	esac
9791      else
9792        ld_shlibs=no
9793      fi
9794      ;;
9795
9796    netbsd*)
9797      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9798	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9799	wlarc=
9800      else
9801	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9803      fi
9804      ;;
9805
9806    solaris*)
9807      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9808	ld_shlibs=no
9809	cat <<_LT_EOF 1>&2
9810
9811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9812*** create shared libraries on Solaris systems.  Therefore, libtool
9813*** is disabling shared libraries support.  We urge you to upgrade GNU
9814*** binutils to release 2.9.1 or newer.  Another option is to modify
9815*** your PATH or compiler configuration so that the native linker is
9816*** used, and then restart.
9817
9818_LT_EOF
9819      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9820	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9822      else
9823	ld_shlibs=no
9824      fi
9825      ;;
9826
9827    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9828      case `$LD -v 2>&1` in
9829        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9830	ld_shlibs=no
9831	cat <<_LT_EOF 1>&2
9832
9833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9834*** reliably create shared libraries on SCO systems.  Therefore, libtool
9835*** is disabling shared libraries support.  We urge you to upgrade GNU
9836*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9837*** your PATH or compiler configuration so that the native linker is
9838*** used, and then restart.
9839
9840_LT_EOF
9841	;;
9842	*)
9843	  # For security reasons, it is highly recommended that you always
9844	  # use absolute paths for naming shared libraries, and exclude the
9845	  # DT_RUNPATH tag from executables and libraries.  But doing so
9846	  # requires that you compile everything twice, which is a pain.
9847	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9849	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9851	  else
9852	    ld_shlibs=no
9853	  fi
9854	;;
9855      esac
9856      ;;
9857
9858    sunos4*)
9859      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860      wlarc=
9861      hardcode_direct=yes
9862      hardcode_shlibpath_var=no
9863      ;;
9864
9865    *)
9866      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9867	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9869      else
9870	ld_shlibs=no
9871      fi
9872      ;;
9873    esac
9874
9875    if test "$ld_shlibs" = no; then
9876      runpath_var=
9877      hardcode_libdir_flag_spec=
9878      export_dynamic_flag_spec=
9879      whole_archive_flag_spec=
9880    fi
9881  else
9882    # PORTME fill in a description of your system's linker (not GNU ld)
9883    case $host_os in
9884    aix3*)
9885      allow_undefined_flag=unsupported
9886      always_export_symbols=yes
9887      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'
9888      # Note: this linker hardcodes the directories in LIBPATH if there
9889      # are no directories specified by -L.
9890      hardcode_minus_L=yes
9891      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9892	# Neither direct hardcoding nor static linking is supported with a
9893	# broken collect2.
9894	hardcode_direct=unsupported
9895      fi
9896      ;;
9897
9898    aix[4-9]*)
9899      if test "$host_cpu" = ia64; then
9900	# On IA64, the linker does run time linking by default, so we don't
9901	# have to do anything special.
9902	aix_use_runtimelinking=no
9903	exp_sym_flag='-Bexport'
9904	no_entry_flag=""
9905      else
9906	# If we're using GNU nm, then we don't want the "-C" option.
9907	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9908	# Also, AIX nm treats weak defined symbols like other global
9909	# defined symbols, whereas GNU nm marks them as "W".
9910	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9911	  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'
9912	else
9913	  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'
9914	fi
9915	aix_use_runtimelinking=no
9916
9917	# Test if we are trying to use run time linking or normal
9918	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9919	# need to do runtime linking.
9920	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9921	  for ld_flag in $LDFLAGS; do
9922	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9923	    aix_use_runtimelinking=yes
9924	    break
9925	  fi
9926	  done
9927	  ;;
9928	esac
9929
9930	exp_sym_flag='-bexport'
9931	no_entry_flag='-bnoentry'
9932      fi
9933
9934      # When large executables or shared objects are built, AIX ld can
9935      # have problems creating the table of contents.  If linking a library
9936      # or program results in "error TOC overflow" add -mminimal-toc to
9937      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9938      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9939
9940      archive_cmds=''
9941      hardcode_direct=yes
9942      hardcode_direct_absolute=yes
9943      hardcode_libdir_separator=':'
9944      link_all_deplibs=yes
9945      file_list_spec='${wl}-f,'
9946
9947      if test "$GCC" = yes; then
9948	case $host_os in aix4.[012]|aix4.[012].*)
9949	# We only want to do this on AIX 4.2 and lower, the check
9950	# below for broken collect2 doesn't work under 4.3+
9951	  collect2name=`${CC} -print-prog-name=collect2`
9952	  if test -f "$collect2name" &&
9953	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9954	  then
9955	  # We have reworked collect2
9956	  :
9957	  else
9958	  # We have old collect2
9959	  hardcode_direct=unsupported
9960	  # It fails to find uninstalled libraries when the uninstalled
9961	  # path is not listed in the libpath.  Setting hardcode_minus_L
9962	  # to unsupported forces relinking
9963	  hardcode_minus_L=yes
9964	  hardcode_libdir_flag_spec='-L$libdir'
9965	  hardcode_libdir_separator=
9966	  fi
9967	  ;;
9968	esac
9969	shared_flag='-shared'
9970	if test "$aix_use_runtimelinking" = yes; then
9971	  shared_flag="$shared_flag "'${wl}-G'
9972	fi
9973      else
9974	# not using gcc
9975	if test "$host_cpu" = ia64; then
9976	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9977	# chokes on -Wl,-G. The following line is correct:
9978	  shared_flag='-G'
9979	else
9980	  if test "$aix_use_runtimelinking" = yes; then
9981	    shared_flag='${wl}-G'
9982	  else
9983	    shared_flag='${wl}-bM:SRE'
9984	  fi
9985	fi
9986      fi
9987
9988      export_dynamic_flag_spec='${wl}-bexpall'
9989      # It seems that -bexpall does not export symbols beginning with
9990      # underscore (_), so it is better to generate a list of symbols to export.
9991      always_export_symbols=yes
9992      if test "$aix_use_runtimelinking" = yes; then
9993	# Warning - without using the other runtime loading flags (-brtl),
9994	# -berok will link without error, but may produce a broken library.
9995	allow_undefined_flag='-berok'
9996        # Determine the default libpath from the value encoded in an
9997        # empty executable.
9998        if test "${lt_cv_aix_libpath+set}" = set; then
9999  aix_libpath=$lt_cv_aix_libpath
10000else
10001  if ${lt_cv_aix_libpath_+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006
10007int
10008main ()
10009{
10010
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"; then :
10016
10017  lt_aix_libpath_sed='
10018      /Import File Strings/,/^$/ {
10019	  /^0/ {
10020	      s/^0  *\([^ ]*\) *$/\1/
10021	      p
10022	  }
10023      }'
10024  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10025  # Check for a 64-bit object if we didn't find anything.
10026  if test -z "$lt_cv_aix_libpath_"; then
10027    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10028  fi
10029fi
10030rm -f core conftest.err conftest.$ac_objext \
10031    conftest$ac_exeext conftest.$ac_ext
10032  if test -z "$lt_cv_aix_libpath_"; then
10033    lt_cv_aix_libpath_="/usr/lib:/lib"
10034  fi
10035
10036fi
10037
10038  aix_libpath=$lt_cv_aix_libpath_
10039fi
10040
10041        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10042        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"
10043      else
10044	if test "$host_cpu" = ia64; then
10045	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10046	  allow_undefined_flag="-z nodefs"
10047	  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"
10048	else
10049	 # Determine the default libpath from the value encoded in an
10050	 # empty executable.
10051	 if test "${lt_cv_aix_libpath+set}" = set; then
10052  aix_libpath=$lt_cv_aix_libpath
10053else
10054  if ${lt_cv_aix_libpath_+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h.  */
10059
10060int
10061main ()
10062{
10063
10064  ;
10065  return 0;
10066}
10067_ACEOF
10068if ac_fn_c_try_link "$LINENO"; then :
10069
10070  lt_aix_libpath_sed='
10071      /Import File Strings/,/^$/ {
10072	  /^0/ {
10073	      s/^0  *\([^ ]*\) *$/\1/
10074	      p
10075	  }
10076      }'
10077  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078  # Check for a 64-bit object if we didn't find anything.
10079  if test -z "$lt_cv_aix_libpath_"; then
10080    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10081  fi
10082fi
10083rm -f core conftest.err conftest.$ac_objext \
10084    conftest$ac_exeext conftest.$ac_ext
10085  if test -z "$lt_cv_aix_libpath_"; then
10086    lt_cv_aix_libpath_="/usr/lib:/lib"
10087  fi
10088
10089fi
10090
10091  aix_libpath=$lt_cv_aix_libpath_
10092fi
10093
10094	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10095	  # Warning - without using the other run time loading flags,
10096	  # -berok will link without error, but may produce a broken library.
10097	  no_undefined_flag=' ${wl}-bernotok'
10098	  allow_undefined_flag=' ${wl}-berok'
10099	  if test "$with_gnu_ld" = yes; then
10100	    # We only use this code for GNU lds that support --whole-archive.
10101	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10102	  else
10103	    # Exported symbols can be pulled into shared objects from archives
10104	    whole_archive_flag_spec='$convenience'
10105	  fi
10106	  archive_cmds_need_lc=yes
10107	  # This is similar to how AIX traditionally builds its shared libraries.
10108	  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'
10109	fi
10110      fi
10111      ;;
10112
10113    amigaos*)
10114      case $host_cpu in
10115      powerpc)
10116            # see comment about AmigaOS4 .so support
10117            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118            archive_expsym_cmds=''
10119        ;;
10120      m68k)
10121            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)'
10122            hardcode_libdir_flag_spec='-L$libdir'
10123            hardcode_minus_L=yes
10124        ;;
10125      esac
10126      ;;
10127
10128    bsdi[45]*)
10129      export_dynamic_flag_spec=-rdynamic
10130      ;;
10131
10132    cygwin* | mingw* | pw32* | cegcc*)
10133      # When not using gcc, we currently assume that we are using
10134      # Microsoft Visual C++.
10135      # hardcode_libdir_flag_spec is actually meaningless, as there is
10136      # no search path for DLLs.
10137      case $cc_basename in
10138      cl*)
10139	# Native MSVC
10140	hardcode_libdir_flag_spec=' '
10141	allow_undefined_flag=unsupported
10142	always_export_symbols=yes
10143	file_list_spec='@'
10144	# Tell ltmain to make .lib files, not .a files.
10145	libext=lib
10146	# Tell ltmain to make .dll files, not .so files.
10147	shrext_cmds=".dll"
10148	# FIXME: Setting linknames here is a bad hack.
10149	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10150	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10151	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10152	  else
10153	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10154	  fi~
10155	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10156	  linknames='
10157	# The linker will not automatically build a static lib if we build a DLL.
10158	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10159	enable_shared_with_static_runtimes=yes
10160	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10161	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10162	# Don't use ranlib
10163	old_postinstall_cmds='chmod 644 $oldlib'
10164	postlink_cmds='lt_outputfile="@OUTPUT@"~
10165	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10166	  case $lt_outputfile in
10167	    *.exe|*.EXE) ;;
10168	    *)
10169	      lt_outputfile="$lt_outputfile.exe"
10170	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10171	      ;;
10172	  esac~
10173	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10174	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10175	    $RM "$lt_outputfile.manifest";
10176	  fi'
10177	;;
10178      *)
10179	# Assume MSVC wrapper
10180	hardcode_libdir_flag_spec=' '
10181	allow_undefined_flag=unsupported
10182	# Tell ltmain to make .lib files, not .a files.
10183	libext=lib
10184	# Tell ltmain to make .dll files, not .so files.
10185	shrext_cmds=".dll"
10186	# FIXME: Setting linknames here is a bad hack.
10187	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10188	# The linker will automatically build a .lib file if we build a DLL.
10189	old_archive_from_new_cmds='true'
10190	# FIXME: Should let the user specify the lib program.
10191	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10192	enable_shared_with_static_runtimes=yes
10193	;;
10194      esac
10195      ;;
10196
10197    darwin* | rhapsody*)
10198
10199
10200  archive_cmds_need_lc=no
10201  hardcode_direct=no
10202  hardcode_automatic=yes
10203  hardcode_shlibpath_var=unsupported
10204  if test "$lt_cv_ld_force_load" = "yes"; then
10205    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\"`'
10206
10207  else
10208    whole_archive_flag_spec=''
10209  fi
10210  link_all_deplibs=yes
10211  allow_undefined_flag="$_lt_dar_allow_undefined"
10212  case $cc_basename in
10213     ifort*) _lt_dar_can_shared=yes ;;
10214     *) _lt_dar_can_shared=$GCC ;;
10215  esac
10216  if test "$_lt_dar_can_shared" = "yes"; then
10217    output_verbose_link_cmd=func_echo_all
10218    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10219    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10220    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}"
10221    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}"
10222
10223  else
10224  ld_shlibs=no
10225  fi
10226
10227      ;;
10228
10229    dgux*)
10230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231      hardcode_libdir_flag_spec='-L$libdir'
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10236    # support.  Future versions do this automatically, but an explicit c++rt0.o
10237    # does not break anything, and helps significantly (at the cost of a little
10238    # extra space).
10239    freebsd2.2*)
10240      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10241      hardcode_libdir_flag_spec='-R$libdir'
10242      hardcode_direct=yes
10243      hardcode_shlibpath_var=no
10244      ;;
10245
10246    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10247    freebsd2.*)
10248      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10249      hardcode_direct=yes
10250      hardcode_minus_L=yes
10251      hardcode_shlibpath_var=no
10252      ;;
10253
10254    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10255    freebsd* | dragonfly*)
10256      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10257      hardcode_libdir_flag_spec='-R$libdir'
10258      hardcode_direct=yes
10259      hardcode_shlibpath_var=no
10260      ;;
10261
10262    hpux9*)
10263      if test "$GCC" = yes; then
10264	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'
10265      else
10266	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'
10267      fi
10268      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10269      hardcode_libdir_separator=:
10270      hardcode_direct=yes
10271
10272      # hardcode_minus_L: Not really in the search PATH,
10273      # but as the default location of the library.
10274      hardcode_minus_L=yes
10275      export_dynamic_flag_spec='${wl}-E'
10276      ;;
10277
10278    hpux10*)
10279      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10280	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10281      else
10282	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10283      fi
10284      if test "$with_gnu_ld" = no; then
10285	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10286	hardcode_libdir_separator=:
10287	hardcode_direct=yes
10288	hardcode_direct_absolute=yes
10289	export_dynamic_flag_spec='${wl}-E'
10290	# hardcode_minus_L: Not really in the search PATH,
10291	# but as the default location of the library.
10292	hardcode_minus_L=yes
10293      fi
10294      ;;
10295
10296    hpux11*)
10297      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10298	case $host_cpu in
10299	hppa*64*)
10300	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10301	  ;;
10302	ia64*)
10303	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10304	  ;;
10305	*)
10306	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10307	  ;;
10308	esac
10309      else
10310	case $host_cpu in
10311	hppa*64*)
10312	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10313	  ;;
10314	ia64*)
10315	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10316	  ;;
10317	*)
10318
10319	  # Older versions of the 11.00 compiler do not understand -b yet
10320	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10321	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10322$as_echo_n "checking if $CC understands -b... " >&6; }
10323if ${lt_cv_prog_compiler__b+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  lt_cv_prog_compiler__b=no
10327   save_LDFLAGS="$LDFLAGS"
10328   LDFLAGS="$LDFLAGS -b"
10329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10331     # The linker can only warn and ignore the option if not recognized
10332     # So say no if there are warnings
10333     if test -s conftest.err; then
10334       # Append any errors to the config.log.
10335       cat conftest.err 1>&5
10336       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10338       if diff conftest.exp conftest.er2 >/dev/null; then
10339         lt_cv_prog_compiler__b=yes
10340       fi
10341     else
10342       lt_cv_prog_compiler__b=yes
10343     fi
10344   fi
10345   $RM -r conftest*
10346   LDFLAGS="$save_LDFLAGS"
10347
10348fi
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10350$as_echo "$lt_cv_prog_compiler__b" >&6; }
10351
10352if test x"$lt_cv_prog_compiler__b" = xyes; then
10353    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10354else
10355    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10356fi
10357
10358	  ;;
10359	esac
10360      fi
10361      if test "$with_gnu_ld" = no; then
10362	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10363	hardcode_libdir_separator=:
10364
10365	case $host_cpu in
10366	hppa*64*|ia64*)
10367	  hardcode_direct=no
10368	  hardcode_shlibpath_var=no
10369	  ;;
10370	*)
10371	  hardcode_direct=yes
10372	  hardcode_direct_absolute=yes
10373	  export_dynamic_flag_spec='${wl}-E'
10374
10375	  # hardcode_minus_L: Not really in the search PATH,
10376	  # but as the default location of the library.
10377	  hardcode_minus_L=yes
10378	  ;;
10379	esac
10380      fi
10381      ;;
10382
10383    irix5* | irix6* | nonstopux*)
10384      if test "$GCC" = yes; then
10385	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'
10386	# Try to use the -exported_symbol ld option, if it does not
10387	# work, assume that -exports_file does not work either and
10388	# implicitly export all symbols.
10389	# This should be the same for all languages, so no per-tag cache variable.
10390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10391$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10392if ${lt_cv_irix_exported_symbol+:} false; then :
10393  $as_echo_n "(cached) " >&6
10394else
10395  save_LDFLAGS="$LDFLAGS"
10396	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10397	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399int foo (void) { return 0; }
10400_ACEOF
10401if ac_fn_c_try_link "$LINENO"; then :
10402  lt_cv_irix_exported_symbol=yes
10403else
10404  lt_cv_irix_exported_symbol=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext \
10407    conftest$ac_exeext conftest.$ac_ext
10408           LDFLAGS="$save_LDFLAGS"
10409fi
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10411$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10412	if test "$lt_cv_irix_exported_symbol" = yes; then
10413          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'
10414	fi
10415      else
10416	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'
10417	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'
10418      fi
10419      archive_cmds_need_lc='no'
10420      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10421      hardcode_libdir_separator=:
10422      inherit_rpath=yes
10423      link_all_deplibs=yes
10424      ;;
10425
10426    netbsd*)
10427      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10428	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10429      else
10430	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10431      fi
10432      hardcode_libdir_flag_spec='-R$libdir'
10433      hardcode_direct=yes
10434      hardcode_shlibpath_var=no
10435      ;;
10436
10437    newsos6)
10438      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439      hardcode_direct=yes
10440      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441      hardcode_libdir_separator=:
10442      hardcode_shlibpath_var=no
10443      ;;
10444
10445    *nto* | *qnx*)
10446      ;;
10447
10448    openbsd*)
10449      if test -f /usr/libexec/ld.so; then
10450	hardcode_direct=yes
10451	hardcode_shlibpath_var=no
10452	hardcode_direct_absolute=yes
10453	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10454	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10456	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10457	  export_dynamic_flag_spec='${wl}-E'
10458	else
10459	  case $host_os in
10460	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10461	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10462	     hardcode_libdir_flag_spec='-R$libdir'
10463	     ;;
10464	   *)
10465	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10466	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10467	     ;;
10468	  esac
10469	fi
10470      else
10471	ld_shlibs=no
10472      fi
10473      ;;
10474
10475    os2*)
10476      hardcode_libdir_flag_spec='-L$libdir'
10477      hardcode_minus_L=yes
10478      allow_undefined_flag=unsupported
10479      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'
10480      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10481      ;;
10482
10483    osf3*)
10484      if test "$GCC" = yes; then
10485	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10486	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'
10487      else
10488	allow_undefined_flag=' -expect_unresolved \*'
10489	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'
10490      fi
10491      archive_cmds_need_lc='no'
10492      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10493      hardcode_libdir_separator=:
10494      ;;
10495
10496    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10497      if test "$GCC" = yes; then
10498	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10499	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'
10500	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10501      else
10502	allow_undefined_flag=' -expect_unresolved \*'
10503	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'
10504	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~
10505	$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'
10506
10507	# Both c and cxx compiler support -rpath directly
10508	hardcode_libdir_flag_spec='-rpath $libdir'
10509      fi
10510      archive_cmds_need_lc='no'
10511      hardcode_libdir_separator=:
10512      ;;
10513
10514    solaris*)
10515      no_undefined_flag=' -z defs'
10516      if test "$GCC" = yes; then
10517	wlarc='${wl}'
10518	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10519	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10520	  $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'
10521      else
10522	case `$CC -V 2>&1` in
10523	*"Compilers 5.0"*)
10524	  wlarc=''
10525	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10528	  ;;
10529	*)
10530	  wlarc='${wl}'
10531	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10532	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10534	  ;;
10535	esac
10536      fi
10537      hardcode_libdir_flag_spec='-R$libdir'
10538      hardcode_shlibpath_var=no
10539      case $host_os in
10540      solaris2.[0-5] | solaris2.[0-5].*) ;;
10541      *)
10542	# The compiler driver will combine and reorder linker options,
10543	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10544	# but is careful enough not to reorder.
10545	# Supported since Solaris 2.6 (maybe 2.5.1?)
10546	if test "$GCC" = yes; then
10547	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10548	else
10549	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10550	fi
10551	;;
10552      esac
10553      link_all_deplibs=yes
10554      ;;
10555
10556    sunos4*)
10557      if test "x$host_vendor" = xsequent; then
10558	# Use $CC to link under sequent, because it throws in some extra .o
10559	# files that make .init and .fini sections work.
10560	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10561      else
10562	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10563      fi
10564      hardcode_libdir_flag_spec='-L$libdir'
10565      hardcode_direct=yes
10566      hardcode_minus_L=yes
10567      hardcode_shlibpath_var=no
10568      ;;
10569
10570    sysv4)
10571      case $host_vendor in
10572	sni)
10573	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574	  hardcode_direct=yes # is this really true???
10575	;;
10576	siemens)
10577	  ## LD is ld it makes a PLAMLIB
10578	  ## CC just makes a GrossModule.
10579	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10580	  reload_cmds='$CC -r -o $output$reload_objs'
10581	  hardcode_direct=no
10582        ;;
10583	motorola)
10584	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10586	;;
10587      esac
10588      runpath_var='LD_RUN_PATH'
10589      hardcode_shlibpath_var=no
10590      ;;
10591
10592    sysv4.3*)
10593      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594      hardcode_shlibpath_var=no
10595      export_dynamic_flag_spec='-Bexport'
10596      ;;
10597
10598    sysv4*MP*)
10599      if test -d /usr/nec; then
10600	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601	hardcode_shlibpath_var=no
10602	runpath_var=LD_RUN_PATH
10603	hardcode_runpath_var=yes
10604	ld_shlibs=yes
10605      fi
10606      ;;
10607
10608    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10609      no_undefined_flag='${wl}-z,text'
10610      archive_cmds_need_lc=no
10611      hardcode_shlibpath_var=no
10612      runpath_var='LD_RUN_PATH'
10613
10614      if test "$GCC" = yes; then
10615	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617      else
10618	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620      fi
10621      ;;
10622
10623    sysv5* | sco3.2v5* | sco5v6*)
10624      # Note: We can NOT use -z defs as we might desire, because we do not
10625      # link with -lc, and that would cause any symbols used from libc to
10626      # always be unresolved, which means just about no library would
10627      # ever link correctly.  If we're not using GNU ld we use -z text
10628      # though, which does catch some bad symbols but isn't as heavy-handed
10629      # as -z defs.
10630      no_undefined_flag='${wl}-z,text'
10631      allow_undefined_flag='${wl}-z,nodefs'
10632      archive_cmds_need_lc=no
10633      hardcode_shlibpath_var=no
10634      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10635      hardcode_libdir_separator=':'
10636      link_all_deplibs=yes
10637      export_dynamic_flag_spec='${wl}-Bexport'
10638      runpath_var='LD_RUN_PATH'
10639
10640      if test "$GCC" = yes; then
10641	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643      else
10644	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646      fi
10647      ;;
10648
10649    uts4*)
10650      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651      hardcode_libdir_flag_spec='-L$libdir'
10652      hardcode_shlibpath_var=no
10653      ;;
10654
10655    *)
10656      ld_shlibs=no
10657      ;;
10658    esac
10659
10660    if test x$host_vendor = xsni; then
10661      case $host in
10662      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10663	export_dynamic_flag_spec='${wl}-Blargedynsym'
10664	;;
10665      esac
10666    fi
10667  fi
10668
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10670$as_echo "$ld_shlibs" >&6; }
10671test "$ld_shlibs" = no && can_build_shared=no
10672
10673with_gnu_ld=$with_gnu_ld
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689#
10690# Do we need to explicitly link libc?
10691#
10692case "x$archive_cmds_need_lc" in
10693x|xyes)
10694  # Assume -lc should be added
10695  archive_cmds_need_lc=yes
10696
10697  if test "$enable_shared" = yes && test "$GCC" = yes; then
10698    case $archive_cmds in
10699    *'~'*)
10700      # FIXME: we may have to deal with multi-command sequences.
10701      ;;
10702    '$CC '*)
10703      # Test whether the compiler implicitly links with -lc since on some
10704      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10705      # to ld, don't add -lc before -lgcc.
10706      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10707$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10708if ${lt_cv_archive_cmds_need_lc+:} false; then :
10709  $as_echo_n "(cached) " >&6
10710else
10711  $RM conftest*
10712	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10713
10714	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10715  (eval $ac_compile) 2>&5
10716  ac_status=$?
10717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718  test $ac_status = 0; } 2>conftest.err; then
10719	  soname=conftest
10720	  lib=conftest
10721	  libobjs=conftest.$ac_objext
10722	  deplibs=
10723	  wl=$lt_prog_compiler_wl
10724	  pic_flag=$lt_prog_compiler_pic
10725	  compiler_flags=-v
10726	  linker_flags=-v
10727	  verstring=
10728	  output_objdir=.
10729	  libname=conftest
10730	  lt_save_allow_undefined_flag=$allow_undefined_flag
10731	  allow_undefined_flag=
10732	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10733  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10734  ac_status=$?
10735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10736  test $ac_status = 0; }
10737	  then
10738	    lt_cv_archive_cmds_need_lc=no
10739	  else
10740	    lt_cv_archive_cmds_need_lc=yes
10741	  fi
10742	  allow_undefined_flag=$lt_save_allow_undefined_flag
10743	else
10744	  cat conftest.err 1>&5
10745	fi
10746	$RM conftest*
10747
10748fi
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10750$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10751      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10752      ;;
10753    esac
10754  fi
10755  ;;
10756esac
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
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10910$as_echo_n "checking dynamic linker characteristics... " >&6; }
10911
10912if test "$GCC" = yes; then
10913  case $host_os in
10914    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10915    *) lt_awk_arg="/^libraries:/" ;;
10916  esac
10917  case $host_os in
10918    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10919    *) lt_sed_strip_eq="s,=/,/,g" ;;
10920  esac
10921  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10922  case $lt_search_path_spec in
10923  *\;*)
10924    # if the path contains ";" then we assume it to be the separator
10925    # otherwise default to the standard path separator (i.e. ":") - it is
10926    # assumed that no part of a normal pathname contains ";" but that should
10927    # okay in the real world where ";" in dirpaths is itself problematic.
10928    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10929    ;;
10930  *)
10931    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10932    ;;
10933  esac
10934  # Ok, now we have the path, separated by spaces, we can step through it
10935  # and add multilib dir if necessary.
10936  lt_tmp_lt_search_path_spec=
10937  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10938  for lt_sys_path in $lt_search_path_spec; do
10939    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10940      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10941    else
10942      test -d "$lt_sys_path" && \
10943	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10944    fi
10945  done
10946  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10947BEGIN {RS=" "; FS="/|\n";} {
10948  lt_foo="";
10949  lt_count=0;
10950  for (lt_i = NF; lt_i > 0; lt_i--) {
10951    if ($lt_i != "" && $lt_i != ".") {
10952      if ($lt_i == "..") {
10953        lt_count++;
10954      } else {
10955        if (lt_count == 0) {
10956          lt_foo="/" $lt_i lt_foo;
10957        } else {
10958          lt_count--;
10959        }
10960      }
10961    }
10962  }
10963  if (lt_foo != "") { lt_freq[lt_foo]++; }
10964  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10965}'`
10966  # AWK program above erroneously prepends '/' to C:/dos/paths
10967  # for these hosts.
10968  case $host_os in
10969    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10970      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10971  esac
10972  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10973else
10974  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10975fi
10976library_names_spec=
10977libname_spec='lib$name'
10978soname_spec=
10979shrext_cmds=".so"
10980postinstall_cmds=
10981postuninstall_cmds=
10982finish_cmds=
10983finish_eval=
10984shlibpath_var=
10985shlibpath_overrides_runpath=unknown
10986version_type=none
10987dynamic_linker="$host_os ld.so"
10988sys_lib_dlsearch_path_spec="/lib /usr/lib"
10989need_lib_prefix=unknown
10990hardcode_into_libs=no
10991
10992# when you set need_version to no, make sure it does not cause -set_version
10993# flags to be left without arguments
10994need_version=unknown
10995
10996case $host_os in
10997aix3*)
10998  version_type=linux # correct to gnu/linux during the next big refactor
10999  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11000  shlibpath_var=LIBPATH
11001
11002  # AIX 3 has no versioning support, so we append a major version to the name.
11003  soname_spec='${libname}${release}${shared_ext}$major'
11004  ;;
11005
11006aix[4-9]*)
11007  version_type=linux # correct to gnu/linux during the next big refactor
11008  need_lib_prefix=no
11009  need_version=no
11010  hardcode_into_libs=yes
11011  if test "$host_cpu" = ia64; then
11012    # AIX 5 supports IA64
11013    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11014    shlibpath_var=LD_LIBRARY_PATH
11015  else
11016    # With GCC up to 2.95.x, collect2 would create an import file
11017    # for dependence libraries.  The import file would start with
11018    # the line `#! .'.  This would cause the generated library to
11019    # depend on `.', always an invalid library.  This was fixed in
11020    # development snapshots of GCC prior to 3.0.
11021    case $host_os in
11022      aix4 | aix4.[01] | aix4.[01].*)
11023      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11024	   echo ' yes '
11025	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11026	:
11027      else
11028	can_build_shared=no
11029      fi
11030      ;;
11031    esac
11032    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11033    # soname into executable. Probably we can add versioning support to
11034    # collect2, so additional links can be useful in future.
11035    if test "$aix_use_runtimelinking" = yes; then
11036      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11037      # instead of lib<name>.a to let people know that these are not
11038      # typical AIX shared libraries.
11039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040    else
11041      # We preserve .a as extension for shared libraries through AIX4.2
11042      # and later when we are not doing run time linking.
11043      library_names_spec='${libname}${release}.a $libname.a'
11044      soname_spec='${libname}${release}${shared_ext}$major'
11045    fi
11046    shlibpath_var=LIBPATH
11047  fi
11048  ;;
11049
11050amigaos*)
11051  case $host_cpu in
11052  powerpc)
11053    # Since July 2007 AmigaOS4 officially supports .so libraries.
11054    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056    ;;
11057  m68k)
11058    library_names_spec='$libname.ixlibrary $libname.a'
11059    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11060    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'
11061    ;;
11062  esac
11063  ;;
11064
11065beos*)
11066  library_names_spec='${libname}${shared_ext}'
11067  dynamic_linker="$host_os ld.so"
11068  shlibpath_var=LIBRARY_PATH
11069  ;;
11070
11071bsdi[45]*)
11072  version_type=linux # correct to gnu/linux during the next big refactor
11073  need_version=no
11074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075  soname_spec='${libname}${release}${shared_ext}$major'
11076  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11077  shlibpath_var=LD_LIBRARY_PATH
11078  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11079  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11080  # the default ld.so.conf also contains /usr/contrib/lib and
11081  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11082  # libtool to hard-code these into programs
11083  ;;
11084
11085cygwin* | mingw* | pw32* | cegcc*)
11086  version_type=windows
11087  shrext_cmds=".dll"
11088  need_version=no
11089  need_lib_prefix=no
11090
11091  case $GCC,$cc_basename in
11092  yes,*)
11093    # gcc
11094    library_names_spec='$libname.dll.a'
11095    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11096    postinstall_cmds='base_file=`basename \${file}`~
11097      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11098      dldir=$destdir/`dirname \$dlpath`~
11099      test -d \$dldir || mkdir -p \$dldir~
11100      $install_prog $dir/$dlname \$dldir/$dlname~
11101      chmod a+x \$dldir/$dlname~
11102      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11103        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11104      fi'
11105    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11106      dlpath=$dir/\$dldll~
11107       $RM \$dlpath'
11108    shlibpath_overrides_runpath=yes
11109
11110    case $host_os in
11111    cygwin*)
11112      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11113      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11114
11115      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11116      ;;
11117    mingw* | cegcc*)
11118      # MinGW DLLs use traditional 'lib' prefix
11119      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11120      ;;
11121    pw32*)
11122      # pw32 DLLs use 'pw' prefix rather than 'lib'
11123      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124      ;;
11125    esac
11126    dynamic_linker='Win32 ld.exe'
11127    ;;
11128
11129  *,cl*)
11130    # Native MSVC
11131    libname_spec='$name'
11132    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133    library_names_spec='${libname}.dll.lib'
11134
11135    case $build_os in
11136    mingw*)
11137      sys_lib_search_path_spec=
11138      lt_save_ifs=$IFS
11139      IFS=';'
11140      for lt_path in $LIB
11141      do
11142        IFS=$lt_save_ifs
11143        # Let DOS variable expansion print the short 8.3 style file name.
11144        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11145        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11146      done
11147      IFS=$lt_save_ifs
11148      # Convert to MSYS style.
11149      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11150      ;;
11151    cygwin*)
11152      # Convert to unix form, then to dos form, then back to unix form
11153      # but this time dos style (no spaces!) so that the unix form looks
11154      # like /cygdrive/c/PROGRA~1:/cygdr...
11155      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11156      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11157      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11158      ;;
11159    *)
11160      sys_lib_search_path_spec="$LIB"
11161      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11162        # It is most probably a Windows format PATH.
11163        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11164      else
11165        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11166      fi
11167      # FIXME: find the short name or the path components, as spaces are
11168      # common. (e.g. "Program Files" -> "PROGRA~1")
11169      ;;
11170    esac
11171
11172    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11173    postinstall_cmds='base_file=`basename \${file}`~
11174      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11175      dldir=$destdir/`dirname \$dlpath`~
11176      test -d \$dldir || mkdir -p \$dldir~
11177      $install_prog $dir/$dlname \$dldir/$dlname'
11178    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11179      dlpath=$dir/\$dldll~
11180       $RM \$dlpath'
11181    shlibpath_overrides_runpath=yes
11182    dynamic_linker='Win32 link.exe'
11183    ;;
11184
11185  *)
11186    # Assume MSVC wrapper
11187    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11188    dynamic_linker='Win32 ld.exe'
11189    ;;
11190  esac
11191  # FIXME: first we should search . and the directory the executable is in
11192  shlibpath_var=PATH
11193  ;;
11194
11195darwin* | rhapsody*)
11196  dynamic_linker="$host_os dyld"
11197  version_type=darwin
11198  need_lib_prefix=no
11199  need_version=no
11200  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11201  soname_spec='${libname}${release}${major}$shared_ext'
11202  shlibpath_overrides_runpath=yes
11203  shlibpath_var=DYLD_LIBRARY_PATH
11204  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11205
11206  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11207  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11208  ;;
11209
11210dgux*)
11211  version_type=linux # correct to gnu/linux during the next big refactor
11212  need_lib_prefix=no
11213  need_version=no
11214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11215  soname_spec='${libname}${release}${shared_ext}$major'
11216  shlibpath_var=LD_LIBRARY_PATH
11217  ;;
11218
11219freebsd* | dragonfly*)
11220  # DragonFly does not have aout.  When/if they implement a new
11221  # versioning mechanism, adjust this.
11222  if test -x /usr/bin/objformat; then
11223    objformat=`/usr/bin/objformat`
11224  else
11225    case $host_os in
11226    freebsd[23].*) objformat=aout ;;
11227    *) objformat=elf ;;
11228    esac
11229  fi
11230  version_type=freebsd-$objformat
11231  case $version_type in
11232    freebsd-elf*)
11233      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11234      need_version=no
11235      need_lib_prefix=no
11236      ;;
11237    freebsd-*)
11238      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11239      need_version=yes
11240      ;;
11241  esac
11242  shlibpath_var=LD_LIBRARY_PATH
11243  case $host_os in
11244  freebsd2.*)
11245    shlibpath_overrides_runpath=yes
11246    ;;
11247  freebsd3.[01]* | freebsdelf3.[01]*)
11248    shlibpath_overrides_runpath=yes
11249    hardcode_into_libs=yes
11250    ;;
11251  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11252  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11253    shlibpath_overrides_runpath=no
11254    hardcode_into_libs=yes
11255    ;;
11256  *) # from 4.6 on, and DragonFly
11257    shlibpath_overrides_runpath=yes
11258    hardcode_into_libs=yes
11259    ;;
11260  esac
11261  ;;
11262
11263gnu*)
11264  version_type=linux # correct to gnu/linux during the next big refactor
11265  need_lib_prefix=no
11266  need_version=no
11267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11268  soname_spec='${libname}${release}${shared_ext}$major'
11269  shlibpath_var=LD_LIBRARY_PATH
11270  shlibpath_overrides_runpath=no
11271  hardcode_into_libs=yes
11272  ;;
11273
11274haiku*)
11275  version_type=linux # correct to gnu/linux during the next big refactor
11276  need_lib_prefix=no
11277  need_version=no
11278  dynamic_linker="$host_os runtime_loader"
11279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11280  soname_spec='${libname}${release}${shared_ext}$major'
11281  shlibpath_var=LIBRARY_PATH
11282  shlibpath_overrides_runpath=yes
11283  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11284  hardcode_into_libs=yes
11285  ;;
11286
11287hpux9* | hpux10* | hpux11*)
11288  # Give a soname corresponding to the major version so that dld.sl refuses to
11289  # link against other versions.
11290  version_type=sunos
11291  need_lib_prefix=no
11292  need_version=no
11293  case $host_cpu in
11294  ia64*)
11295    shrext_cmds='.so'
11296    hardcode_into_libs=yes
11297    dynamic_linker="$host_os dld.so"
11298    shlibpath_var=LD_LIBRARY_PATH
11299    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301    soname_spec='${libname}${release}${shared_ext}$major'
11302    if test "X$HPUX_IA64_MODE" = X32; then
11303      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11304    else
11305      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11306    fi
11307    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11308    ;;
11309  hppa*64*)
11310    shrext_cmds='.sl'
11311    hardcode_into_libs=yes
11312    dynamic_linker="$host_os dld.sl"
11313    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11314    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316    soname_spec='${libname}${release}${shared_ext}$major'
11317    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11318    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319    ;;
11320  *)
11321    shrext_cmds='.sl'
11322    dynamic_linker="$host_os dld.sl"
11323    shlibpath_var=SHLIB_PATH
11324    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326    soname_spec='${libname}${release}${shared_ext}$major'
11327    ;;
11328  esac
11329  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11330  postinstall_cmds='chmod 555 $lib'
11331  # or fails outright, so override atomically:
11332  install_override_mode=555
11333  ;;
11334
11335interix[3-9]*)
11336  version_type=linux # correct to gnu/linux during the next big refactor
11337  need_lib_prefix=no
11338  need_version=no
11339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11340  soname_spec='${libname}${release}${shared_ext}$major'
11341  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11342  shlibpath_var=LD_LIBRARY_PATH
11343  shlibpath_overrides_runpath=no
11344  hardcode_into_libs=yes
11345  ;;
11346
11347irix5* | irix6* | nonstopux*)
11348  case $host_os in
11349    nonstopux*) version_type=nonstopux ;;
11350    *)
11351	if test "$lt_cv_prog_gnu_ld" = yes; then
11352		version_type=linux # correct to gnu/linux during the next big refactor
11353	else
11354		version_type=irix
11355	fi ;;
11356  esac
11357  need_lib_prefix=no
11358  need_version=no
11359  soname_spec='${libname}${release}${shared_ext}$major'
11360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11361  case $host_os in
11362  irix5* | nonstopux*)
11363    libsuff= shlibsuff=
11364    ;;
11365  *)
11366    case $LD in # libtool.m4 will add one of these switches to LD
11367    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11368      libsuff= shlibsuff= libmagic=32-bit;;
11369    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11370      libsuff=32 shlibsuff=N32 libmagic=N32;;
11371    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11372      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11373    *) libsuff= shlibsuff= libmagic=never-match;;
11374    esac
11375    ;;
11376  esac
11377  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11378  shlibpath_overrides_runpath=no
11379  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11380  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11381  hardcode_into_libs=yes
11382  ;;
11383
11384# No shared lib support for Linux oldld, aout, or coff.
11385linux*oldld* | linux*aout* | linux*coff*)
11386  dynamic_linker=no
11387  ;;
11388
11389# This must be glibc/ELF.
11390linux* | k*bsd*-gnu | kopensolaris*-gnu)
11391  version_type=linux # correct to gnu/linux during the next big refactor
11392  need_lib_prefix=no
11393  need_version=no
11394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395  soname_spec='${libname}${release}${shared_ext}$major'
11396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11397  shlibpath_var=LD_LIBRARY_PATH
11398  shlibpath_overrides_runpath=no
11399
11400  # Some binutils ld are patched to set DT_RUNPATH
11401  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11402  $as_echo_n "(cached) " >&6
11403else
11404  lt_cv_shlibpath_overrides_runpath=no
11405    save_LDFLAGS=$LDFLAGS
11406    save_libdir=$libdir
11407    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11408	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11409    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h.  */
11411
11412int
11413main ()
11414{
11415
11416  ;
11417  return 0;
11418}
11419_ACEOF
11420if ac_fn_c_try_link "$LINENO"; then :
11421  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11422  lt_cv_shlibpath_overrides_runpath=yes
11423fi
11424fi
11425rm -f core conftest.err conftest.$ac_objext \
11426    conftest$ac_exeext conftest.$ac_ext
11427    LDFLAGS=$save_LDFLAGS
11428    libdir=$save_libdir
11429
11430fi
11431
11432  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11433
11434  # This implies no fast_install, which is unacceptable.
11435  # Some rework will be needed to allow for fast_install
11436  # before this can be enabled.
11437  hardcode_into_libs=yes
11438
11439  # Append ld.so.conf contents to the search path
11440  if test -f /etc/ld.so.conf; then
11441    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' ' '`
11442    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11443  fi
11444
11445  # We used to test for /lib/ld.so.1 and disable shared libraries on
11446  # powerpc, because MkLinux only supported shared libraries with the
11447  # GNU dynamic linker.  Since this was broken with cross compilers,
11448  # most powerpc-linux boxes support dynamic linking these days and
11449  # people can always --disable-shared, the test was removed, and we
11450  # assume the GNU/Linux dynamic linker is in use.
11451  dynamic_linker='GNU/Linux ld.so'
11452  ;;
11453
11454netbsd*)
11455  version_type=sunos
11456  need_lib_prefix=no
11457  need_version=no
11458  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461    dynamic_linker='NetBSD (a.out) ld.so'
11462  else
11463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464    soname_spec='${libname}${release}${shared_ext}$major'
11465    dynamic_linker='NetBSD ld.elf_so'
11466  fi
11467  shlibpath_var=LD_LIBRARY_PATH
11468  shlibpath_overrides_runpath=yes
11469  hardcode_into_libs=yes
11470  ;;
11471
11472newsos6)
11473  version_type=linux # correct to gnu/linux during the next big refactor
11474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475  shlibpath_var=LD_LIBRARY_PATH
11476  shlibpath_overrides_runpath=yes
11477  ;;
11478
11479*nto* | *qnx*)
11480  version_type=qnx
11481  need_lib_prefix=no
11482  need_version=no
11483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484  soname_spec='${libname}${release}${shared_ext}$major'
11485  shlibpath_var=LD_LIBRARY_PATH
11486  shlibpath_overrides_runpath=no
11487  hardcode_into_libs=yes
11488  dynamic_linker='ldqnx.so'
11489  ;;
11490
11491openbsd*)
11492  version_type=sunos
11493  sys_lib_dlsearch_path_spec="/usr/lib"
11494  need_lib_prefix=no
11495  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11496  case $host_os in
11497    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11498    *)				need_version=no  ;;
11499  esac
11500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502  shlibpath_var=LD_LIBRARY_PATH
11503  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11504    case $host_os in
11505      openbsd2.[89] | openbsd2.[89].*)
11506	shlibpath_overrides_runpath=no
11507	;;
11508      *)
11509	shlibpath_overrides_runpath=yes
11510	;;
11511      esac
11512  else
11513    shlibpath_overrides_runpath=yes
11514  fi
11515  ;;
11516
11517os2*)
11518  libname_spec='$name'
11519  shrext_cmds=".dll"
11520  need_lib_prefix=no
11521  library_names_spec='$libname${shared_ext} $libname.a'
11522  dynamic_linker='OS/2 ld.exe'
11523  shlibpath_var=LIBPATH
11524  ;;
11525
11526osf3* | osf4* | osf5*)
11527  version_type=osf
11528  need_lib_prefix=no
11529  need_version=no
11530  soname_spec='${libname}${release}${shared_ext}$major'
11531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532  shlibpath_var=LD_LIBRARY_PATH
11533  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11534  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11535  ;;
11536
11537rdos*)
11538  dynamic_linker=no
11539  ;;
11540
11541solaris*)
11542  version_type=linux # correct to gnu/linux during the next big refactor
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  soname_spec='${libname}${release}${shared_ext}$major'
11547  shlibpath_var=LD_LIBRARY_PATH
11548  shlibpath_overrides_runpath=yes
11549  hardcode_into_libs=yes
11550  # ldd complains unless libraries are executable
11551  postinstall_cmds='chmod +x $lib'
11552  ;;
11553
11554sunos4*)
11555  version_type=sunos
11556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11557  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11558  shlibpath_var=LD_LIBRARY_PATH
11559  shlibpath_overrides_runpath=yes
11560  if test "$with_gnu_ld" = yes; then
11561    need_lib_prefix=no
11562  fi
11563  need_version=yes
11564  ;;
11565
11566sysv4 | sysv4.3*)
11567  version_type=linux # correct to gnu/linux during the next big refactor
11568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569  soname_spec='${libname}${release}${shared_ext}$major'
11570  shlibpath_var=LD_LIBRARY_PATH
11571  case $host_vendor in
11572    sni)
11573      shlibpath_overrides_runpath=no
11574      need_lib_prefix=no
11575      runpath_var=LD_RUN_PATH
11576      ;;
11577    siemens)
11578      need_lib_prefix=no
11579      ;;
11580    motorola)
11581      need_lib_prefix=no
11582      need_version=no
11583      shlibpath_overrides_runpath=no
11584      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11585      ;;
11586  esac
11587  ;;
11588
11589sysv4*MP*)
11590  if test -d /usr/nec ;then
11591    version_type=linux # correct to gnu/linux during the next big refactor
11592    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11593    soname_spec='$libname${shared_ext}.$major'
11594    shlibpath_var=LD_LIBRARY_PATH
11595  fi
11596  ;;
11597
11598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11599  version_type=freebsd-elf
11600  need_lib_prefix=no
11601  need_version=no
11602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11603  soname_spec='${libname}${release}${shared_ext}$major'
11604  shlibpath_var=LD_LIBRARY_PATH
11605  shlibpath_overrides_runpath=yes
11606  hardcode_into_libs=yes
11607  if test "$with_gnu_ld" = yes; then
11608    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11609  else
11610    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11611    case $host_os in
11612      sco3.2v5*)
11613        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11614	;;
11615    esac
11616  fi
11617  sys_lib_dlsearch_path_spec='/usr/lib'
11618  ;;
11619
11620tpf*)
11621  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11622  version_type=linux # correct to gnu/linux during the next big refactor
11623  need_lib_prefix=no
11624  need_version=no
11625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626  shlibpath_var=LD_LIBRARY_PATH
11627  shlibpath_overrides_runpath=no
11628  hardcode_into_libs=yes
11629  ;;
11630
11631uts4*)
11632  version_type=linux # correct to gnu/linux during the next big refactor
11633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634  soname_spec='${libname}${release}${shared_ext}$major'
11635  shlibpath_var=LD_LIBRARY_PATH
11636  ;;
11637
11638*)
11639  dynamic_linker=no
11640  ;;
11641esac
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11643$as_echo "$dynamic_linker" >&6; }
11644test "$dynamic_linker" = no && can_build_shared=no
11645
11646variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11647if test "$GCC" = yes; then
11648  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11649fi
11650
11651if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11652  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11653fi
11654if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11655  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11656fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11750$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11751hardcode_action=
11752if test -n "$hardcode_libdir_flag_spec" ||
11753   test -n "$runpath_var" ||
11754   test "X$hardcode_automatic" = "Xyes" ; then
11755
11756  # We can hardcode non-existent directories.
11757  if test "$hardcode_direct" != no &&
11758     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11759     # have to relink, otherwise we might link with an installed library
11760     # when we should be linking with a yet-to-be-installed one
11761     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11762     test "$hardcode_minus_L" != no; then
11763    # Linking always hardcodes the temporary library directory.
11764    hardcode_action=relink
11765  else
11766    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11767    hardcode_action=immediate
11768  fi
11769else
11770  # We cannot hardcode anything, or else we can only hardcode existing
11771  # directories.
11772  hardcode_action=unsupported
11773fi
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11775$as_echo "$hardcode_action" >&6; }
11776
11777if test "$hardcode_action" = relink ||
11778   test "$inherit_rpath" = yes; then
11779  # Fast installation is not supported
11780  enable_fast_install=no
11781elif test "$shlibpath_overrides_runpath" = yes ||
11782     test "$enable_shared" = no; then
11783  # Fast installation is not necessary
11784  enable_fast_install=needless
11785fi
11786
11787
11788
11789
11790
11791
11792  if test "x$enable_dlopen" != xyes; then
11793  enable_dlopen=unknown
11794  enable_dlopen_self=unknown
11795  enable_dlopen_self_static=unknown
11796else
11797  lt_cv_dlopen=no
11798  lt_cv_dlopen_libs=
11799
11800  case $host_os in
11801  beos*)
11802    lt_cv_dlopen="load_add_on"
11803    lt_cv_dlopen_libs=
11804    lt_cv_dlopen_self=yes
11805    ;;
11806
11807  mingw* | pw32* | cegcc*)
11808    lt_cv_dlopen="LoadLibrary"
11809    lt_cv_dlopen_libs=
11810    ;;
11811
11812  cygwin*)
11813    lt_cv_dlopen="dlopen"
11814    lt_cv_dlopen_libs=
11815    ;;
11816
11817  darwin*)
11818  # if libdl is installed we need to link against it
11819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11820$as_echo_n "checking for dlopen in -ldl... " >&6; }
11821if ${ac_cv_lib_dl_dlopen+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  ac_check_lib_save_LIBS=$LIBS
11825LIBS="-ldl  $LIBS"
11826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827/* end confdefs.h.  */
11828
11829/* Override any GCC internal prototype to avoid an error.
11830   Use char because int might match the return type of a GCC
11831   builtin and then its argument prototype would still apply.  */
11832#ifdef __cplusplus
11833extern "C"
11834#endif
11835char dlopen ();
11836int
11837main ()
11838{
11839return dlopen ();
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844if ac_fn_c_try_link "$LINENO"; then :
11845  ac_cv_lib_dl_dlopen=yes
11846else
11847  ac_cv_lib_dl_dlopen=no
11848fi
11849rm -f core conftest.err conftest.$ac_objext \
11850    conftest$ac_exeext conftest.$ac_ext
11851LIBS=$ac_check_lib_save_LIBS
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11854$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11855if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11856  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11857else
11858
11859    lt_cv_dlopen="dyld"
11860    lt_cv_dlopen_libs=
11861    lt_cv_dlopen_self=yes
11862
11863fi
11864
11865    ;;
11866
11867  *)
11868    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11869if test "x$ac_cv_func_shl_load" = xyes; then :
11870  lt_cv_dlopen="shl_load"
11871else
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11873$as_echo_n "checking for shl_load in -ldld... " >&6; }
11874if ${ac_cv_lib_dld_shl_load+:} false; then :
11875  $as_echo_n "(cached) " >&6
11876else
11877  ac_check_lib_save_LIBS=$LIBS
11878LIBS="-ldld  $LIBS"
11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880/* end confdefs.h.  */
11881
11882/* Override any GCC internal prototype to avoid an error.
11883   Use char because int might match the return type of a GCC
11884   builtin and then its argument prototype would still apply.  */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char shl_load ();
11889int
11890main ()
11891{
11892return shl_load ();
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"; then :
11898  ac_cv_lib_dld_shl_load=yes
11899else
11900  ac_cv_lib_dld_shl_load=no
11901fi
11902rm -f core conftest.err conftest.$ac_objext \
11903    conftest$ac_exeext conftest.$ac_ext
11904LIBS=$ac_check_lib_save_LIBS
11905fi
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11907$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11908if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11909  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11910else
11911  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11912if test "x$ac_cv_func_dlopen" = xyes; then :
11913  lt_cv_dlopen="dlopen"
11914else
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11916$as_echo_n "checking for dlopen in -ldl... " >&6; }
11917if ${ac_cv_lib_dl_dlopen+:} false; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  ac_check_lib_save_LIBS=$LIBS
11921LIBS="-ldl  $LIBS"
11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924
11925/* Override any GCC internal prototype to avoid an error.
11926   Use char because int might match the return type of a GCC
11927   builtin and then its argument prototype would still apply.  */
11928#ifdef __cplusplus
11929extern "C"
11930#endif
11931char dlopen ();
11932int
11933main ()
11934{
11935return dlopen ();
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_link "$LINENO"; then :
11941  ac_cv_lib_dl_dlopen=yes
11942else
11943  ac_cv_lib_dl_dlopen=no
11944fi
11945rm -f core conftest.err conftest.$ac_objext \
11946    conftest$ac_exeext conftest.$ac_ext
11947LIBS=$ac_check_lib_save_LIBS
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11950$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11951if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11952  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11953else
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11955$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11956if ${ac_cv_lib_svld_dlopen+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_check_lib_save_LIBS=$LIBS
11960LIBS="-lsvld  $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964/* Override any GCC internal prototype to avoid an error.
11965   Use char because int might match the return type of a GCC
11966   builtin and then its argument prototype would still apply.  */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char dlopen ();
11971int
11972main ()
11973{
11974return dlopen ();
11975  ;
11976  return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980  ac_cv_lib_svld_dlopen=yes
11981else
11982  ac_cv_lib_svld_dlopen=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985    conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11989$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11990if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11991  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11994$as_echo_n "checking for dld_link in -ldld... " >&6; }
11995if ${ac_cv_lib_dld_dld_link+:} false; then :
11996  $as_echo_n "(cached) " >&6
11997else
11998  ac_check_lib_save_LIBS=$LIBS
11999LIBS="-ldld  $LIBS"
12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003/* Override any GCC internal prototype to avoid an error.
12004   Use char because int might match the return type of a GCC
12005   builtin and then its argument prototype would still apply.  */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char dld_link ();
12010int
12011main ()
12012{
12013return dld_link ();
12014  ;
12015  return 0;
12016}
12017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019  ac_cv_lib_dld_dld_link=yes
12020else
12021  ac_cv_lib_dld_dld_link=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024    conftest$ac_exeext conftest.$ac_ext
12025LIBS=$ac_check_lib_save_LIBS
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12028$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12029if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12030  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12031fi
12032
12033
12034fi
12035
12036
12037fi
12038
12039
12040fi
12041
12042
12043fi
12044
12045
12046fi
12047
12048    ;;
12049  esac
12050
12051  if test "x$lt_cv_dlopen" != xno; then
12052    enable_dlopen=yes
12053  else
12054    enable_dlopen=no
12055  fi
12056
12057  case $lt_cv_dlopen in
12058  dlopen)
12059    save_CPPFLAGS="$CPPFLAGS"
12060    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12061
12062    save_LDFLAGS="$LDFLAGS"
12063    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12064
12065    save_LIBS="$LIBS"
12066    LIBS="$lt_cv_dlopen_libs $LIBS"
12067
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12069$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12070if ${lt_cv_dlopen_self+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  	  if test "$cross_compiling" = yes; then :
12074  lt_cv_dlopen_self=cross
12075else
12076  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12077  lt_status=$lt_dlunknown
12078  cat > conftest.$ac_ext <<_LT_EOF
12079#line $LINENO "configure"
12080#include "confdefs.h"
12081
12082#if HAVE_DLFCN_H
12083#include <dlfcn.h>
12084#endif
12085
12086#include <stdio.h>
12087
12088#ifdef RTLD_GLOBAL
12089#  define LT_DLGLOBAL		RTLD_GLOBAL
12090#else
12091#  ifdef DL_GLOBAL
12092#    define LT_DLGLOBAL		DL_GLOBAL
12093#  else
12094#    define LT_DLGLOBAL		0
12095#  endif
12096#endif
12097
12098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12099   find out it does not work in some platform. */
12100#ifndef LT_DLLAZY_OR_NOW
12101#  ifdef RTLD_LAZY
12102#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12103#  else
12104#    ifdef DL_LAZY
12105#      define LT_DLLAZY_OR_NOW		DL_LAZY
12106#    else
12107#      ifdef RTLD_NOW
12108#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12109#      else
12110#        ifdef DL_NOW
12111#          define LT_DLLAZY_OR_NOW	DL_NOW
12112#        else
12113#          define LT_DLLAZY_OR_NOW	0
12114#        endif
12115#      endif
12116#    endif
12117#  endif
12118#endif
12119
12120/* When -fvisbility=hidden is used, assume the code has been annotated
12121   correspondingly for the symbols needed.  */
12122#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12123int fnord () __attribute__((visibility("default")));
12124#endif
12125
12126int fnord () { return 42; }
12127int main ()
12128{
12129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12130  int status = $lt_dlunknown;
12131
12132  if (self)
12133    {
12134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12135      else
12136        {
12137	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12138          else puts (dlerror ());
12139	}
12140      /* dlclose (self); */
12141    }
12142  else
12143    puts (dlerror ());
12144
12145  return status;
12146}
12147_LT_EOF
12148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12149  (eval $ac_link) 2>&5
12150  ac_status=$?
12151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12153    (./conftest; exit; ) >&5 2>/dev/null
12154    lt_status=$?
12155    case x$lt_status in
12156      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12157      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12158      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12159    esac
12160  else :
12161    # compilation failed
12162    lt_cv_dlopen_self=no
12163  fi
12164fi
12165rm -fr conftest*
12166
12167
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12170$as_echo "$lt_cv_dlopen_self" >&6; }
12171
12172    if test "x$lt_cv_dlopen_self" = xyes; then
12173      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12175$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12176if ${lt_cv_dlopen_self_static+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  	  if test "$cross_compiling" = yes; then :
12180  lt_cv_dlopen_self_static=cross
12181else
12182  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183  lt_status=$lt_dlunknown
12184  cat > conftest.$ac_ext <<_LT_EOF
12185#line $LINENO "configure"
12186#include "confdefs.h"
12187
12188#if HAVE_DLFCN_H
12189#include <dlfcn.h>
12190#endif
12191
12192#include <stdio.h>
12193
12194#ifdef RTLD_GLOBAL
12195#  define LT_DLGLOBAL		RTLD_GLOBAL
12196#else
12197#  ifdef DL_GLOBAL
12198#    define LT_DLGLOBAL		DL_GLOBAL
12199#  else
12200#    define LT_DLGLOBAL		0
12201#  endif
12202#endif
12203
12204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205   find out it does not work in some platform. */
12206#ifndef LT_DLLAZY_OR_NOW
12207#  ifdef RTLD_LAZY
12208#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12209#  else
12210#    ifdef DL_LAZY
12211#      define LT_DLLAZY_OR_NOW		DL_LAZY
12212#    else
12213#      ifdef RTLD_NOW
12214#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12215#      else
12216#        ifdef DL_NOW
12217#          define LT_DLLAZY_OR_NOW	DL_NOW
12218#        else
12219#          define LT_DLLAZY_OR_NOW	0
12220#        endif
12221#      endif
12222#    endif
12223#  endif
12224#endif
12225
12226/* When -fvisbility=hidden is used, assume the code has been annotated
12227   correspondingly for the symbols needed.  */
12228#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12229int fnord () __attribute__((visibility("default")));
12230#endif
12231
12232int fnord () { return 42; }
12233int main ()
12234{
12235  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12236  int status = $lt_dlunknown;
12237
12238  if (self)
12239    {
12240      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12241      else
12242        {
12243	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12244          else puts (dlerror ());
12245	}
12246      /* dlclose (self); */
12247    }
12248  else
12249    puts (dlerror ());
12250
12251  return status;
12252}
12253_LT_EOF
12254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12255  (eval $ac_link) 2>&5
12256  ac_status=$?
12257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12259    (./conftest; exit; ) >&5 2>/dev/null
12260    lt_status=$?
12261    case x$lt_status in
12262      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12265    esac
12266  else :
12267    # compilation failed
12268    lt_cv_dlopen_self_static=no
12269  fi
12270fi
12271rm -fr conftest*
12272
12273
12274fi
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12276$as_echo "$lt_cv_dlopen_self_static" >&6; }
12277    fi
12278
12279    CPPFLAGS="$save_CPPFLAGS"
12280    LDFLAGS="$save_LDFLAGS"
12281    LIBS="$save_LIBS"
12282    ;;
12283  esac
12284
12285  case $lt_cv_dlopen_self in
12286  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287  *) enable_dlopen_self=unknown ;;
12288  esac
12289
12290  case $lt_cv_dlopen_self_static in
12291  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292  *) enable_dlopen_self_static=unknown ;;
12293  esac
12294fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312striplib=
12313old_striplib=
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12315$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12316if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320$as_echo "yes" >&6; }
12321else
12322# FIXME - insert some real tests, host_os isn't really good enough
12323  case $host_os in
12324  darwin*)
12325    if test -n "$STRIP" ; then
12326      striplib="$STRIP -x"
12327      old_striplib="$STRIP -S"
12328      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329$as_echo "yes" >&6; }
12330    else
12331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332$as_echo "no" >&6; }
12333    fi
12334    ;;
12335  *)
12336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338    ;;
12339  esac
12340fi
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353  # Report which library types will actually be built
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12355$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12357$as_echo "$can_build_shared" >&6; }
12358
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12360$as_echo_n "checking whether to build shared libraries... " >&6; }
12361  test "$can_build_shared" = "no" && enable_shared=no
12362
12363  # On AIX, shared libraries and static libraries use the same namespace, and
12364  # are all built from PIC.
12365  case $host_os in
12366  aix3*)
12367    test "$enable_shared" = yes && enable_static=no
12368    if test -n "$RANLIB"; then
12369      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370      postinstall_cmds='$RANLIB $lib'
12371    fi
12372    ;;
12373
12374  aix[4-9]*)
12375    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376      test "$enable_shared" = yes && enable_static=no
12377    fi
12378    ;;
12379  esac
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12381$as_echo "$enable_shared" >&6; }
12382
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12384$as_echo_n "checking whether to build static libraries... " >&6; }
12385  # Make sure either enable_shared or enable_static is yes.
12386  test "$enable_shared" = yes || enable_static=yes
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12388$as_echo "$enable_static" >&6; }
12389
12390
12391
12392
12393fi
12394ac_ext=c
12395ac_cpp='$CPP $CPPFLAGS'
12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400CC="$lt_save_CC"
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416        ac_config_commands="$ac_config_commands libtool"
12417
12418
12419
12420
12421# Only expand once:
12422
12423
12424ac_ext=cpp
12425ac_cpp='$CXXCPP $CPPFLAGS'
12426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12429if test -z "$CXX"; then
12430  if test -n "$CCC"; then
12431    CXX=$CCC
12432  else
12433    if test -n "$ac_tool_prefix"; then
12434  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12435  do
12436    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
12440if ${ac_cv_prog_CXX+:} false; then :
12441  $as_echo_n "(cached) " >&6
12442else
12443  if test -n "$CXX"; then
12444  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449  IFS=$as_save_IFS
12450  test -z "$as_dir" && as_dir=.
12451    for ac_exec_ext in '' $ac_executable_extensions; do
12452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12453    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455    break 2
12456  fi
12457done
12458  done
12459IFS=$as_save_IFS
12460
12461fi
12462fi
12463CXX=$ac_cv_prog_CXX
12464if test -n "$CXX"; then
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12466$as_echo "$CXX" >&6; }
12467else
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
12470fi
12471
12472
12473    test -n "$CXX" && break
12474  done
12475fi
12476if test -z "$CXX"; then
12477  ac_ct_CXX=$CXX
12478  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12479do
12480  # Extract the first word of "$ac_prog", so it can be a program name with args.
12481set dummy $ac_prog; ac_word=$2
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483$as_echo_n "checking for $ac_word... " >&6; }
12484if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  if test -n "$ac_ct_CXX"; then
12488  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12489else
12490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $PATH
12492do
12493  IFS=$as_save_IFS
12494  test -z "$as_dir" && as_dir=.
12495    for ac_exec_ext in '' $ac_executable_extensions; do
12496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497    ac_cv_prog_ac_ct_CXX="$ac_prog"
12498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499    break 2
12500  fi
12501done
12502  done
12503IFS=$as_save_IFS
12504
12505fi
12506fi
12507ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12508if test -n "$ac_ct_CXX"; then
12509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12510$as_echo "$ac_ct_CXX" >&6; }
12511else
12512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513$as_echo "no" >&6; }
12514fi
12515
12516
12517  test -n "$ac_ct_CXX" && break
12518done
12519
12520  if test "x$ac_ct_CXX" = x; then
12521    CXX="g++"
12522  else
12523    case $cross_compiling:$ac_tool_warned in
12524yes:)
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12527ac_tool_warned=yes ;;
12528esac
12529    CXX=$ac_ct_CXX
12530  fi
12531fi
12532
12533  fi
12534fi
12535# Provide some information about the compiler.
12536$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12537set X $ac_compile
12538ac_compiler=$2
12539for ac_option in --version -v -V -qversion; do
12540  { { ac_try="$ac_compiler $ac_option >&5"
12541case "(($ac_try" in
12542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543  *) ac_try_echo=$ac_try;;
12544esac
12545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12546$as_echo "$ac_try_echo"; } >&5
12547  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12548  ac_status=$?
12549  if test -s conftest.err; then
12550    sed '10a\
12551... rest of stderr output deleted ...
12552         10q' conftest.err >conftest.er1
12553    cat conftest.er1 >&5
12554  fi
12555  rm -f conftest.er1 conftest.err
12556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12557  test $ac_status = 0; }
12558done
12559
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12561$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12562if ${ac_cv_cxx_compiler_gnu+:} false; then :
12563  $as_echo_n "(cached) " >&6
12564else
12565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h.  */
12567
12568int
12569main ()
12570{
12571#ifndef __GNUC__
12572       choke me
12573#endif
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_cxx_try_compile "$LINENO"; then :
12580  ac_compiler_gnu=yes
12581else
12582  ac_compiler_gnu=no
12583fi
12584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12586
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12589$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12590if test $ac_compiler_gnu = yes; then
12591  GXX=yes
12592else
12593  GXX=
12594fi
12595ac_test_CXXFLAGS=${CXXFLAGS+set}
12596ac_save_CXXFLAGS=$CXXFLAGS
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12598$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12599if ${ac_cv_prog_cxx_g+:} false; then :
12600  $as_echo_n "(cached) " >&6
12601else
12602  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12603   ac_cxx_werror_flag=yes
12604   ac_cv_prog_cxx_g=no
12605   CXXFLAGS="-g"
12606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608
12609int
12610main ()
12611{
12612
12613  ;
12614  return 0;
12615}
12616_ACEOF
12617if ac_fn_cxx_try_compile "$LINENO"; then :
12618  ac_cv_prog_cxx_g=yes
12619else
12620  CXXFLAGS=""
12621      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622/* end confdefs.h.  */
12623
12624int
12625main ()
12626{
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_cxx_try_compile "$LINENO"; then :
12633
12634else
12635  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12636	 CXXFLAGS="-g"
12637	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639
12640int
12641main ()
12642{
12643
12644  ;
12645  return 0;
12646}
12647_ACEOF
12648if ac_fn_cxx_try_compile "$LINENO"; then :
12649  ac_cv_prog_cxx_g=yes
12650fi
12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652fi
12653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654fi
12655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12657fi
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12659$as_echo "$ac_cv_prog_cxx_g" >&6; }
12660if test "$ac_test_CXXFLAGS" = set; then
12661  CXXFLAGS=$ac_save_CXXFLAGS
12662elif test $ac_cv_prog_cxx_g = yes; then
12663  if test "$GXX" = yes; then
12664    CXXFLAGS="-g -O2"
12665  else
12666    CXXFLAGS="-g"
12667  fi
12668else
12669  if test "$GXX" = yes; then
12670    CXXFLAGS="-O2"
12671  else
12672    CXXFLAGS=
12673  fi
12674fi
12675ac_ext=c
12676ac_cpp='$CPP $CPPFLAGS'
12677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680
12681depcc="$CXX"  am_compiler_list=
12682
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12684$as_echo_n "checking dependency style of $depcc... " >&6; }
12685if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12689  # We make a subdir and do the tests there.  Otherwise we can end up
12690  # making bogus files that we don't know about and never remove.  For
12691  # instance it was reported that on HP-UX the gcc test will end up
12692  # making a dummy file named `D' -- because `-MD' means `put the output
12693  # in D'.
12694  rm -rf conftest.dir
12695  mkdir conftest.dir
12696  # Copy depcomp to subdir because otherwise we won't find it if we're
12697  # using a relative directory.
12698  cp "$am_depcomp" conftest.dir
12699  cd conftest.dir
12700  # We will build objects and dependencies in a subdirectory because
12701  # it helps to detect inapplicable dependency modes.  For instance
12702  # both Tru64's cc and ICC support -MD to output dependencies as a
12703  # side effect of compilation, but ICC will put the dependencies in
12704  # the current directory while Tru64 will put them in the object
12705  # directory.
12706  mkdir sub
12707
12708  am_cv_CXX_dependencies_compiler_type=none
12709  if test "$am_compiler_list" = ""; then
12710     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12711  fi
12712  am__universal=false
12713  case " $depcc " in #(
12714     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12715     esac
12716
12717  for depmode in $am_compiler_list; do
12718    # Setup a source with many dependencies, because some compilers
12719    # like to wrap large dependency lists on column 80 (with \), and
12720    # we should not choose a depcomp mode which is confused by this.
12721    #
12722    # We need to recreate these files for each test, as the compiler may
12723    # overwrite some of them when testing with obscure command lines.
12724    # This happens at least with the AIX C compiler.
12725    : > sub/conftest.c
12726    for i in 1 2 3 4 5 6; do
12727      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12728      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12729      # Solaris 8's {/usr,}/bin/sh.
12730      touch sub/conftst$i.h
12731    done
12732    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12733
12734    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12735    # mode.  It turns out that the SunPro C++ compiler does not properly
12736    # handle `-M -o', and we need to detect this.  Also, some Intel
12737    # versions had trouble with output in subdirs
12738    am__obj=sub/conftest.${OBJEXT-o}
12739    am__minus_obj="-o $am__obj"
12740    case $depmode in
12741    gcc)
12742      # This depmode causes a compiler race in universal mode.
12743      test "$am__universal" = false || continue
12744      ;;
12745    nosideeffect)
12746      # after this tag, mechanisms are not by side-effect, so they'll
12747      # only be used when explicitly requested
12748      if test "x$enable_dependency_tracking" = xyes; then
12749	continue
12750      else
12751	break
12752      fi
12753      ;;
12754    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12755      # This compiler won't grok `-c -o', but also, the minuso test has
12756      # not run yet.  These depmodes are late enough in the game, and
12757      # so weak that their functioning should not be impacted.
12758      am__obj=conftest.${OBJEXT-o}
12759      am__minus_obj=
12760      ;;
12761    none) break ;;
12762    esac
12763    if depmode=$depmode \
12764       source=sub/conftest.c object=$am__obj \
12765       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12766       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12767         >/dev/null 2>conftest.err &&
12768       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12769       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12770       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12771       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12772      # icc doesn't choke on unknown options, it will just issue warnings
12773      # or remarks (even with -Werror).  So we grep stderr for any message
12774      # that says an option was ignored or not supported.
12775      # When given -MP, icc 7.0 and 7.1 complain thusly:
12776      #   icc: Command line warning: ignoring option '-M'; no argument required
12777      # The diagnosis changed in icc 8.0:
12778      #   icc: Command line remark: option '-MP' not supported
12779      if (grep 'ignoring option' conftest.err ||
12780          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12781        am_cv_CXX_dependencies_compiler_type=$depmode
12782        break
12783      fi
12784    fi
12785  done
12786
12787  cd ..
12788  rm -rf conftest.dir
12789else
12790  am_cv_CXX_dependencies_compiler_type=none
12791fi
12792
12793fi
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12795$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12796CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12797
12798 if
12799  test "x$enable_dependency_tracking" != xno \
12800  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12801  am__fastdepCXX_TRUE=
12802  am__fastdepCXX_FALSE='#'
12803else
12804  am__fastdepCXX_TRUE='#'
12805  am__fastdepCXX_FALSE=
12806fi
12807
12808
12809
12810
12811
12812func_stripname_cnf ()
12813{
12814  case ${2} in
12815  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12816  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12817  esac
12818} # func_stripname_cnf
12819
12820      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12821    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12822    (test "X$CXX" != "Xg++"))) ; then
12823  ac_ext=cpp
12824ac_cpp='$CXXCPP $CPPFLAGS'
12825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12829$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12830if test -z "$CXXCPP"; then
12831  if ${ac_cv_prog_CXXCPP+:} false; then :
12832  $as_echo_n "(cached) " >&6
12833else
12834      # Double quotes because CXXCPP needs to be expanded
12835    for CXXCPP in "$CXX -E" "/lib/cpp"
12836    do
12837      ac_preproc_ok=false
12838for ac_cxx_preproc_warn_flag in '' yes
12839do
12840  # Use a header file that comes with gcc, so configuring glibc
12841  # with a fresh cross-compiler works.
12842  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12843  # <limits.h> exists even on freestanding compilers.
12844  # On the NeXT, cc -E runs the code through the compiler's parser,
12845  # not just through cpp. "Syntax error" is here to catch this case.
12846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848#ifdef __STDC__
12849# include <limits.h>
12850#else
12851# include <assert.h>
12852#endif
12853		     Syntax error
12854_ACEOF
12855if ac_fn_cxx_try_cpp "$LINENO"; then :
12856
12857else
12858  # Broken: fails on valid input.
12859continue
12860fi
12861rm -f conftest.err conftest.i conftest.$ac_ext
12862
12863  # OK, works on sane cases.  Now check whether nonexistent headers
12864  # can be detected and how.
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867#include <ac_nonexistent.h>
12868_ACEOF
12869if ac_fn_cxx_try_cpp "$LINENO"; then :
12870  # Broken: success on invalid input.
12871continue
12872else
12873  # Passes both tests.
12874ac_preproc_ok=:
12875break
12876fi
12877rm -f conftest.err conftest.i conftest.$ac_ext
12878
12879done
12880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12881rm -f conftest.i conftest.err conftest.$ac_ext
12882if $ac_preproc_ok; then :
12883  break
12884fi
12885
12886    done
12887    ac_cv_prog_CXXCPP=$CXXCPP
12888
12889fi
12890  CXXCPP=$ac_cv_prog_CXXCPP
12891else
12892  ac_cv_prog_CXXCPP=$CXXCPP
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12895$as_echo "$CXXCPP" >&6; }
12896ac_preproc_ok=false
12897for ac_cxx_preproc_warn_flag in '' yes
12898do
12899  # Use a header file that comes with gcc, so configuring glibc
12900  # with a fresh cross-compiler works.
12901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902  # <limits.h> exists even on freestanding compilers.
12903  # On the NeXT, cc -E runs the code through the compiler's parser,
12904  # not just through cpp. "Syntax error" is here to catch this case.
12905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907#ifdef __STDC__
12908# include <limits.h>
12909#else
12910# include <assert.h>
12911#endif
12912		     Syntax error
12913_ACEOF
12914if ac_fn_cxx_try_cpp "$LINENO"; then :
12915
12916else
12917  # Broken: fails on valid input.
12918continue
12919fi
12920rm -f conftest.err conftest.i conftest.$ac_ext
12921
12922  # OK, works on sane cases.  Now check whether nonexistent headers
12923  # can be detected and how.
12924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925/* end confdefs.h.  */
12926#include <ac_nonexistent.h>
12927_ACEOF
12928if ac_fn_cxx_try_cpp "$LINENO"; then :
12929  # Broken: success on invalid input.
12930continue
12931else
12932  # Passes both tests.
12933ac_preproc_ok=:
12934break
12935fi
12936rm -f conftest.err conftest.i conftest.$ac_ext
12937
12938done
12939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12940rm -f conftest.i conftest.err conftest.$ac_ext
12941if $ac_preproc_ok; then :
12942
12943else
12944  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12946as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12947See \`config.log' for more details" "$LINENO" 5; }
12948fi
12949
12950ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956else
12957  _lt_caught_CXX_error=yes
12958fi
12959
12960ac_ext=cpp
12961ac_cpp='$CXXCPP $CPPFLAGS'
12962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12965
12966archive_cmds_need_lc_CXX=no
12967allow_undefined_flag_CXX=
12968always_export_symbols_CXX=no
12969archive_expsym_cmds_CXX=
12970compiler_needs_object_CXX=no
12971export_dynamic_flag_spec_CXX=
12972hardcode_direct_CXX=no
12973hardcode_direct_absolute_CXX=no
12974hardcode_libdir_flag_spec_CXX=
12975hardcode_libdir_separator_CXX=
12976hardcode_minus_L_CXX=no
12977hardcode_shlibpath_var_CXX=unsupported
12978hardcode_automatic_CXX=no
12979inherit_rpath_CXX=no
12980module_cmds_CXX=
12981module_expsym_cmds_CXX=
12982link_all_deplibs_CXX=unknown
12983old_archive_cmds_CXX=$old_archive_cmds
12984reload_flag_CXX=$reload_flag
12985reload_cmds_CXX=$reload_cmds
12986no_undefined_flag_CXX=
12987whole_archive_flag_spec_CXX=
12988enable_shared_with_static_runtimes_CXX=no
12989
12990# Source file extension for C++ test sources.
12991ac_ext=cpp
12992
12993# Object file extension for compiled C++ test sources.
12994objext=o
12995objext_CXX=$objext
12996
12997# No sense in running all these tests if we already determined that
12998# the CXX compiler isn't working.  Some variables (like enable_shared)
12999# are currently assumed to apply to all compilers on this platform,
13000# and will be corrupted by setting them based on a non-working compiler.
13001if test "$_lt_caught_CXX_error" != yes; then
13002  # Code to be used in simple compile tests
13003  lt_simple_compile_test_code="int some_variable = 0;"
13004
13005  # Code to be used in simple link tests
13006  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13007
13008  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13009
13010
13011
13012
13013
13014
13015# If no C compiler was specified, use CC.
13016LTCC=${LTCC-"$CC"}
13017
13018# If no C compiler flags were specified, use CFLAGS.
13019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13020
13021# Allow CC to be a program name with arguments.
13022compiler=$CC
13023
13024
13025  # save warnings/boilerplate of simple test code
13026  ac_outfile=conftest.$ac_objext
13027echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13028eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13029_lt_compiler_boilerplate=`cat conftest.err`
13030$RM conftest*
13031
13032  ac_outfile=conftest.$ac_objext
13033echo "$lt_simple_link_test_code" >conftest.$ac_ext
13034eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13035_lt_linker_boilerplate=`cat conftest.err`
13036$RM -r conftest*
13037
13038
13039  # Allow CC to be a program name with arguments.
13040  lt_save_CC=$CC
13041  lt_save_CFLAGS=$CFLAGS
13042  lt_save_LD=$LD
13043  lt_save_GCC=$GCC
13044  GCC=$GXX
13045  lt_save_with_gnu_ld=$with_gnu_ld
13046  lt_save_path_LD=$lt_cv_path_LD
13047  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13048    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13049  else
13050    $as_unset lt_cv_prog_gnu_ld
13051  fi
13052  if test -n "${lt_cv_path_LDCXX+set}"; then
13053    lt_cv_path_LD=$lt_cv_path_LDCXX
13054  else
13055    $as_unset lt_cv_path_LD
13056  fi
13057  test -z "${LDCXX+set}" || LD=$LDCXX
13058  CC=${CXX-"c++"}
13059  CFLAGS=$CXXFLAGS
13060  compiler=$CC
13061  compiler_CXX=$CC
13062  for cc_temp in $compiler""; do
13063  case $cc_temp in
13064    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13065    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13066    \-*) ;;
13067    *) break;;
13068  esac
13069done
13070cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13071
13072
13073  if test -n "$compiler"; then
13074    # We don't want -fno-exception when compiling C++ code, so set the
13075    # no_builtin_flag separately
13076    if test "$GXX" = yes; then
13077      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13078    else
13079      lt_prog_compiler_no_builtin_flag_CXX=
13080    fi
13081
13082    if test "$GXX" = yes; then
13083      # Set up default GNU C++ configuration
13084
13085
13086
13087# Check whether --with-gnu-ld was given.
13088if test "${with_gnu_ld+set}" = set; then :
13089  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13090else
13091  with_gnu_ld=no
13092fi
13093
13094ac_prog=ld
13095if test "$GCC" = yes; then
13096  # Check if gcc -print-prog-name=ld gives a path.
13097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13098$as_echo_n "checking for ld used by $CC... " >&6; }
13099  case $host in
13100  *-*-mingw*)
13101    # gcc leaves a trailing carriage return which upsets mingw
13102    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13103  *)
13104    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13105  esac
13106  case $ac_prog in
13107    # Accept absolute paths.
13108    [\\/]* | ?:[\\/]*)
13109      re_direlt='/[^/][^/]*/\.\./'
13110      # Canonicalize the pathname of ld
13111      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13112      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13113	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13114      done
13115      test -z "$LD" && LD="$ac_prog"
13116      ;;
13117  "")
13118    # If it fails, then pretend we aren't using GCC.
13119    ac_prog=ld
13120    ;;
13121  *)
13122    # If it is relative, then search for the first ld in PATH.
13123    with_gnu_ld=unknown
13124    ;;
13125  esac
13126elif test "$with_gnu_ld" = yes; then
13127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13128$as_echo_n "checking for GNU ld... " >&6; }
13129else
13130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13131$as_echo_n "checking for non-GNU ld... " >&6; }
13132fi
13133if ${lt_cv_path_LD+:} false; then :
13134  $as_echo_n "(cached) " >&6
13135else
13136  if test -z "$LD"; then
13137  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13138  for ac_dir in $PATH; do
13139    IFS="$lt_save_ifs"
13140    test -z "$ac_dir" && ac_dir=.
13141    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13142      lt_cv_path_LD="$ac_dir/$ac_prog"
13143      # Check to see if the program is GNU ld.  I'd rather use --version,
13144      # but apparently some variants of GNU ld only accept -v.
13145      # Break only if it was the GNU/non-GNU ld that we prefer.
13146      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13147      *GNU* | *'with BFD'*)
13148	test "$with_gnu_ld" != no && break
13149	;;
13150      *)
13151	test "$with_gnu_ld" != yes && break
13152	;;
13153      esac
13154    fi
13155  done
13156  IFS="$lt_save_ifs"
13157else
13158  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13159fi
13160fi
13161
13162LD="$lt_cv_path_LD"
13163if test -n "$LD"; then
13164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13165$as_echo "$LD" >&6; }
13166else
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13172$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13173if ${lt_cv_prog_gnu_ld+:} false; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13177case `$LD -v 2>&1 </dev/null` in
13178*GNU* | *'with BFD'*)
13179  lt_cv_prog_gnu_ld=yes
13180  ;;
13181*)
13182  lt_cv_prog_gnu_ld=no
13183  ;;
13184esac
13185fi
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13187$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13188with_gnu_ld=$lt_cv_prog_gnu_ld
13189
13190
13191
13192
13193
13194
13195
13196      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13197      # archiving commands below assume that GNU ld is being used.
13198      if test "$with_gnu_ld" = yes; then
13199        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13200        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'
13201
13202        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13203        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13204
13205        # If archive_cmds runs LD, not CC, wlarc should be empty
13206        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13207        #     investigate it a little bit more. (MM)
13208        wlarc='${wl}'
13209
13210        # ancient GNU ld didn't support --whole-archive et. al.
13211        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13212	  $GREP 'no-whole-archive' > /dev/null; then
13213          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13214        else
13215          whole_archive_flag_spec_CXX=
13216        fi
13217      else
13218        with_gnu_ld=no
13219        wlarc=
13220
13221        # A generic and very simple default shared library creation
13222        # command for GNU C++ for the case where it uses the native
13223        # linker, instead of GNU ld.  If possible, this setting should
13224        # overridden to take advantage of the native linker features on
13225        # the platform it is being used on.
13226        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13227      fi
13228
13229      # Commands to make compiler produce verbose output that lists
13230      # what "hidden" libraries, object files and flags are used when
13231      # linking a shared library.
13232      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13233
13234    else
13235      GXX=no
13236      with_gnu_ld=no
13237      wlarc=
13238    fi
13239
13240    # PORTME: fill in a description of your system's C++ link characteristics
13241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13242$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13243    ld_shlibs_CXX=yes
13244    case $host_os in
13245      aix3*)
13246        # FIXME: insert proper C++ library support
13247        ld_shlibs_CXX=no
13248        ;;
13249      aix[4-9]*)
13250        if test "$host_cpu" = ia64; then
13251          # On IA64, the linker does run time linking by default, so we don't
13252          # have to do anything special.
13253          aix_use_runtimelinking=no
13254          exp_sym_flag='-Bexport'
13255          no_entry_flag=""
13256        else
13257          aix_use_runtimelinking=no
13258
13259          # Test if we are trying to use run time linking or normal
13260          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13261          # need to do runtime linking.
13262          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13263	    for ld_flag in $LDFLAGS; do
13264	      case $ld_flag in
13265	      *-brtl*)
13266	        aix_use_runtimelinking=yes
13267	        break
13268	        ;;
13269	      esac
13270	    done
13271	    ;;
13272          esac
13273
13274          exp_sym_flag='-bexport'
13275          no_entry_flag='-bnoentry'
13276        fi
13277
13278        # When large executables or shared objects are built, AIX ld can
13279        # have problems creating the table of contents.  If linking a library
13280        # or program results in "error TOC overflow" add -mminimal-toc to
13281        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13282        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13283
13284        archive_cmds_CXX=''
13285        hardcode_direct_CXX=yes
13286        hardcode_direct_absolute_CXX=yes
13287        hardcode_libdir_separator_CXX=':'
13288        link_all_deplibs_CXX=yes
13289        file_list_spec_CXX='${wl}-f,'
13290
13291        if test "$GXX" = yes; then
13292          case $host_os in aix4.[012]|aix4.[012].*)
13293          # We only want to do this on AIX 4.2 and lower, the check
13294          # below for broken collect2 doesn't work under 4.3+
13295	  collect2name=`${CC} -print-prog-name=collect2`
13296	  if test -f "$collect2name" &&
13297	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13298	  then
13299	    # We have reworked collect2
13300	    :
13301	  else
13302	    # We have old collect2
13303	    hardcode_direct_CXX=unsupported
13304	    # It fails to find uninstalled libraries when the uninstalled
13305	    # path is not listed in the libpath.  Setting hardcode_minus_L
13306	    # to unsupported forces relinking
13307	    hardcode_minus_L_CXX=yes
13308	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13309	    hardcode_libdir_separator_CXX=
13310	  fi
13311          esac
13312          shared_flag='-shared'
13313	  if test "$aix_use_runtimelinking" = yes; then
13314	    shared_flag="$shared_flag "'${wl}-G'
13315	  fi
13316        else
13317          # not using gcc
13318          if test "$host_cpu" = ia64; then
13319	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13320	  # chokes on -Wl,-G. The following line is correct:
13321	  shared_flag='-G'
13322          else
13323	    if test "$aix_use_runtimelinking" = yes; then
13324	      shared_flag='${wl}-G'
13325	    else
13326	      shared_flag='${wl}-bM:SRE'
13327	    fi
13328          fi
13329        fi
13330
13331        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13332        # It seems that -bexpall does not export symbols beginning with
13333        # underscore (_), so it is better to generate a list of symbols to
13334	# export.
13335        always_export_symbols_CXX=yes
13336        if test "$aix_use_runtimelinking" = yes; then
13337          # Warning - without using the other runtime loading flags (-brtl),
13338          # -berok will link without error, but may produce a broken library.
13339          allow_undefined_flag_CXX='-berok'
13340          # Determine the default libpath from the value encoded in an empty
13341          # executable.
13342          if test "${lt_cv_aix_libpath+set}" = set; then
13343  aix_libpath=$lt_cv_aix_libpath
13344else
13345  if ${lt_cv_aix_libpath__CXX+:} false; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350
13351int
13352main ()
13353{
13354
13355  ;
13356  return 0;
13357}
13358_ACEOF
13359if ac_fn_cxx_try_link "$LINENO"; then :
13360
13361  lt_aix_libpath_sed='
13362      /Import File Strings/,/^$/ {
13363	  /^0/ {
13364	      s/^0  *\([^ ]*\) *$/\1/
13365	      p
13366	  }
13367      }'
13368  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13369  # Check for a 64-bit object if we didn't find anything.
13370  if test -z "$lt_cv_aix_libpath__CXX"; then
13371    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372  fi
13373fi
13374rm -f core conftest.err conftest.$ac_objext \
13375    conftest$ac_exeext conftest.$ac_ext
13376  if test -z "$lt_cv_aix_libpath__CXX"; then
13377    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13378  fi
13379
13380fi
13381
13382  aix_libpath=$lt_cv_aix_libpath__CXX
13383fi
13384
13385          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13386
13387          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"
13388        else
13389          if test "$host_cpu" = ia64; then
13390	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13391	    allow_undefined_flag_CXX="-z nodefs"
13392	    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"
13393          else
13394	    # Determine the default libpath from the value encoded in an
13395	    # empty executable.
13396	    if test "${lt_cv_aix_libpath+set}" = set; then
13397  aix_libpath=$lt_cv_aix_libpath
13398else
13399  if ${lt_cv_aix_libpath__CXX+:} false; then :
13400  $as_echo_n "(cached) " >&6
13401else
13402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h.  */
13404
13405int
13406main ()
13407{
13408
13409  ;
13410  return 0;
13411}
13412_ACEOF
13413if ac_fn_cxx_try_link "$LINENO"; then :
13414
13415  lt_aix_libpath_sed='
13416      /Import File Strings/,/^$/ {
13417	  /^0/ {
13418	      s/^0  *\([^ ]*\) *$/\1/
13419	      p
13420	  }
13421      }'
13422  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13423  # Check for a 64-bit object if we didn't find anything.
13424  if test -z "$lt_cv_aix_libpath__CXX"; then
13425    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426  fi
13427fi
13428rm -f core conftest.err conftest.$ac_objext \
13429    conftest$ac_exeext conftest.$ac_ext
13430  if test -z "$lt_cv_aix_libpath__CXX"; then
13431    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13432  fi
13433
13434fi
13435
13436  aix_libpath=$lt_cv_aix_libpath__CXX
13437fi
13438
13439	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13440	    # Warning - without using the other run time loading flags,
13441	    # -berok will link without error, but may produce a broken library.
13442	    no_undefined_flag_CXX=' ${wl}-bernotok'
13443	    allow_undefined_flag_CXX=' ${wl}-berok'
13444	    if test "$with_gnu_ld" = yes; then
13445	      # We only use this code for GNU lds that support --whole-archive.
13446	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13447	    else
13448	      # Exported symbols can be pulled into shared objects from archives
13449	      whole_archive_flag_spec_CXX='$convenience'
13450	    fi
13451	    archive_cmds_need_lc_CXX=yes
13452	    # This is similar to how AIX traditionally builds its shared
13453	    # libraries.
13454	    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'
13455          fi
13456        fi
13457        ;;
13458
13459      beos*)
13460	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13461	  allow_undefined_flag_CXX=unsupported
13462	  # Joseph Beckenbach <[email protected]> says some releases of gcc
13463	  # support --undefined.  This deserves some investigation.  FIXME
13464	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465	else
13466	  ld_shlibs_CXX=no
13467	fi
13468	;;
13469
13470      chorus*)
13471        case $cc_basename in
13472          *)
13473	  # FIXME: insert proper C++ library support
13474	  ld_shlibs_CXX=no
13475	  ;;
13476        esac
13477        ;;
13478
13479      cygwin* | mingw* | pw32* | cegcc*)
13480	case $GXX,$cc_basename in
13481	,cl* | no,cl*)
13482	  # Native MSVC
13483	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13484	  # no search path for DLLs.
13485	  hardcode_libdir_flag_spec_CXX=' '
13486	  allow_undefined_flag_CXX=unsupported
13487	  always_export_symbols_CXX=yes
13488	  file_list_spec_CXX='@'
13489	  # Tell ltmain to make .lib files, not .a files.
13490	  libext=lib
13491	  # Tell ltmain to make .dll files, not .so files.
13492	  shrext_cmds=".dll"
13493	  # FIXME: Setting linknames here is a bad hack.
13494	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13495	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13496	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13497	    else
13498	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13499	    fi~
13500	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13501	    linknames='
13502	  # The linker will not automatically build a static lib if we build a DLL.
13503	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13504	  enable_shared_with_static_runtimes_CXX=yes
13505	  # Don't use ranlib
13506	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13507	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13508	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13509	    case $lt_outputfile in
13510	      *.exe|*.EXE) ;;
13511	      *)
13512		lt_outputfile="$lt_outputfile.exe"
13513		lt_tool_outputfile="$lt_tool_outputfile.exe"
13514		;;
13515	    esac~
13516	    func_to_tool_file "$lt_outputfile"~
13517	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13518	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13519	      $RM "$lt_outputfile.manifest";
13520	    fi'
13521	  ;;
13522	*)
13523	  # g++
13524	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13525	  # as there is no search path for DLLs.
13526	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13527	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13528	  allow_undefined_flag_CXX=unsupported
13529	  always_export_symbols_CXX=no
13530	  enable_shared_with_static_runtimes_CXX=yes
13531
13532	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13533	    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'
13534	    # If the export-symbols file already is a .def file (1st line
13535	    # is EXPORTS), use it as is; otherwise, prepend...
13536	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13537	      cp $export_symbols $output_objdir/$soname.def;
13538	    else
13539	      echo EXPORTS > $output_objdir/$soname.def;
13540	      cat $export_symbols >> $output_objdir/$soname.def;
13541	    fi~
13542	    $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'
13543	  else
13544	    ld_shlibs_CXX=no
13545	  fi
13546	  ;;
13547	esac
13548	;;
13549      darwin* | rhapsody*)
13550
13551
13552  archive_cmds_need_lc_CXX=no
13553  hardcode_direct_CXX=no
13554  hardcode_automatic_CXX=yes
13555  hardcode_shlibpath_var_CXX=unsupported
13556  if test "$lt_cv_ld_force_load" = "yes"; then
13557    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\"`'
13558
13559  else
13560    whole_archive_flag_spec_CXX=''
13561  fi
13562  link_all_deplibs_CXX=yes
13563  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13564  case $cc_basename in
13565     ifort*) _lt_dar_can_shared=yes ;;
13566     *) _lt_dar_can_shared=$GCC ;;
13567  esac
13568  if test "$_lt_dar_can_shared" = "yes"; then
13569    output_verbose_link_cmd=func_echo_all
13570    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}"
13571    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13572    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}"
13573    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}"
13574       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13575      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}"
13576      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}"
13577    fi
13578
13579  else
13580  ld_shlibs_CXX=no
13581  fi
13582
13583	;;
13584
13585      dgux*)
13586        case $cc_basename in
13587          ec++*)
13588	    # FIXME: insert proper C++ library support
13589	    ld_shlibs_CXX=no
13590	    ;;
13591          ghcx*)
13592	    # Green Hills C++ Compiler
13593	    # FIXME: insert proper C++ library support
13594	    ld_shlibs_CXX=no
13595	    ;;
13596          *)
13597	    # FIXME: insert proper C++ library support
13598	    ld_shlibs_CXX=no
13599	    ;;
13600        esac
13601        ;;
13602
13603      freebsd2.*)
13604        # C++ shared libraries reported to be fairly broken before
13605	# switch to ELF
13606        ld_shlibs_CXX=no
13607        ;;
13608
13609      freebsd-elf*)
13610        archive_cmds_need_lc_CXX=no
13611        ;;
13612
13613      freebsd* | dragonfly*)
13614        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13615        # conventions
13616        ld_shlibs_CXX=yes
13617        ;;
13618
13619      gnu*)
13620        ;;
13621
13622      haiku*)
13623        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624        link_all_deplibs_CXX=yes
13625        ;;
13626
13627      hpux9*)
13628        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629        hardcode_libdir_separator_CXX=:
13630        export_dynamic_flag_spec_CXX='${wl}-E'
13631        hardcode_direct_CXX=yes
13632        hardcode_minus_L_CXX=yes # Not in the search PATH,
13633				             # but as the default
13634				             # location of the library.
13635
13636        case $cc_basename in
13637          CC*)
13638            # FIXME: insert proper C++ library support
13639            ld_shlibs_CXX=no
13640            ;;
13641          aCC*)
13642            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'
13643            # Commands to make compiler produce verbose output that lists
13644            # what "hidden" libraries, object files and flags are used when
13645            # linking a shared library.
13646            #
13647            # There doesn't appear to be a way to prevent this compiler from
13648            # explicitly linking system object files so we need to strip them
13649            # from the output so that they don't get included in the library
13650            # dependencies.
13651            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"'
13652            ;;
13653          *)
13654            if test "$GXX" = yes; then
13655              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'
13656            else
13657              # FIXME: insert proper C++ library support
13658              ld_shlibs_CXX=no
13659            fi
13660            ;;
13661        esac
13662        ;;
13663
13664      hpux10*|hpux11*)
13665        if test $with_gnu_ld = no; then
13666	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13667	  hardcode_libdir_separator_CXX=:
13668
13669          case $host_cpu in
13670            hppa*64*|ia64*)
13671              ;;
13672            *)
13673	      export_dynamic_flag_spec_CXX='${wl}-E'
13674              ;;
13675          esac
13676        fi
13677        case $host_cpu in
13678          hppa*64*|ia64*)
13679            hardcode_direct_CXX=no
13680            hardcode_shlibpath_var_CXX=no
13681            ;;
13682          *)
13683            hardcode_direct_CXX=yes
13684            hardcode_direct_absolute_CXX=yes
13685            hardcode_minus_L_CXX=yes # Not in the search PATH,
13686					         # but as the default
13687					         # location of the library.
13688            ;;
13689        esac
13690
13691        case $cc_basename in
13692          CC*)
13693	    # FIXME: insert proper C++ library support
13694	    ld_shlibs_CXX=no
13695	    ;;
13696          aCC*)
13697	    case $host_cpu in
13698	      hppa*64*)
13699	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700	        ;;
13701	      ia64*)
13702	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703	        ;;
13704	      *)
13705	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706	        ;;
13707	    esac
13708	    # Commands to make compiler produce verbose output that lists
13709	    # what "hidden" libraries, object files and flags are used when
13710	    # linking a shared library.
13711	    #
13712	    # There doesn't appear to be a way to prevent this compiler from
13713	    # explicitly linking system object files so we need to strip them
13714	    # from the output so that they don't get included in the library
13715	    # dependencies.
13716	    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"'
13717	    ;;
13718          *)
13719	    if test "$GXX" = yes; then
13720	      if test $with_gnu_ld = no; then
13721	        case $host_cpu in
13722	          hppa*64*)
13723	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724	            ;;
13725	          ia64*)
13726	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727	            ;;
13728	          *)
13729	            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'
13730	            ;;
13731	        esac
13732	      fi
13733	    else
13734	      # FIXME: insert proper C++ library support
13735	      ld_shlibs_CXX=no
13736	    fi
13737	    ;;
13738        esac
13739        ;;
13740
13741      interix[3-9]*)
13742	hardcode_direct_CXX=no
13743	hardcode_shlibpath_var_CXX=no
13744	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745	export_dynamic_flag_spec_CXX='${wl}-E'
13746	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13747	# Instead, shared libraries are loaded at an image base (0x10000000 by
13748	# default) and relocated if they conflict, which is a slow very memory
13749	# consuming and fragmenting process.  To avoid this, we pick a random,
13750	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13751	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13752	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'
13753	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'
13754	;;
13755      irix5* | irix6*)
13756        case $cc_basename in
13757          CC*)
13758	    # SGI C++
13759	    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'
13760
13761	    # Archives containing C++ object files must be created using
13762	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13763	    # necessary to make sure instantiated templates are included
13764	    # in the archive.
13765	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13766	    ;;
13767          *)
13768	    if test "$GXX" = yes; then
13769	      if test "$with_gnu_ld" = no; then
13770	        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'
13771	      else
13772	        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'
13773	      fi
13774	    fi
13775	    link_all_deplibs_CXX=yes
13776	    ;;
13777        esac
13778        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779        hardcode_libdir_separator_CXX=:
13780        inherit_rpath_CXX=yes
13781        ;;
13782
13783      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13784        case $cc_basename in
13785          KCC*)
13786	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13787
13788	    # KCC will only create a shared library if the output file
13789	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790	    # to its proper name (with version) after linking.
13791	    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'
13792	    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'
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 $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"'
13802
13803	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13804	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805
13806	    # Archives containing C++ object files must be created using
13807	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13808	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13809	    ;;
13810	  icpc* | ecpc* )
13811	    # Intel C++
13812	    with_gnu_ld=yes
13813	    # version 8.0 and above of icpc choke on multiply defined symbols
13814	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13815	    # earlier do not add the objects themselves.
13816	    case `$CC -V 2>&1` in
13817	      *"Version 7."*)
13818	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819		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'
13820		;;
13821	      *)  # Version 8.0 or newer
13822	        tmp_idyn=
13823	        case $host_cpu in
13824		  ia64*) tmp_idyn=' -i_dynamic';;
13825		esac
13826	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827		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'
13828		;;
13829	    esac
13830	    archive_cmds_need_lc_CXX=no
13831	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13833	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13834	    ;;
13835          pgCC* | pgcpp*)
13836            # Portland Group C++ compiler
13837	    case `$CC -V` in
13838	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13839	      prelink_cmds_CXX='tpldir=Template.dir~
13840		rm -rf $tpldir~
13841		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13842		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13843	      old_archive_cmds_CXX='tpldir=Template.dir~
13844		rm -rf $tpldir~
13845		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13846		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13847		$RANLIB $oldlib'
13848	      archive_cmds_CXX='tpldir=Template.dir~
13849		rm -rf $tpldir~
13850		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13851		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13853		rm -rf $tpldir~
13854		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855		$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'
13856	      ;;
13857	    *) # Version 6 and above use weak symbols
13858	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859	      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'
13860	      ;;
13861	    esac
13862
13863	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13864	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13865	    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'
13866            ;;
13867	  cxx*)
13868	    # Compaq C++
13869	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870	    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'
13871
13872	    runpath_var=LD_RUN_PATH
13873	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874	    hardcode_libdir_separator_CXX=:
13875
13876	    # Commands to make compiler produce verbose output that lists
13877	    # what "hidden" libraries, object files and flags are used when
13878	    # linking a shared library.
13879	    #
13880	    # There doesn't appear to be a way to prevent this compiler from
13881	    # explicitly linking system object files so we need to strip them
13882	    # from the output so that they don't get included in the library
13883	    # dependencies.
13884	    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'
13885	    ;;
13886	  xl* | mpixl* | bgxl*)
13887	    # IBM XL 8.0 on PPC, with GNU ld
13888	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891	    if test "x$supports_anon_versioning" = xyes; then
13892	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13893		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13894		echo "local: *; };" >> $output_objdir/$libname.ver~
13895		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13896	    fi
13897	    ;;
13898	  *)
13899	    case `$CC -V 2>&1 | sed 5q` in
13900	    *Sun\ C*)
13901	      # Sun C++ 5.9
13902	      no_undefined_flag_CXX=' -zdefs'
13903	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904	      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'
13905	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13906	      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'
13907	      compiler_needs_object_CXX=yes
13908
13909	      # Not sure whether something based on
13910	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13911	      # would be better.
13912	      output_verbose_link_cmd='func_echo_all'
13913
13914	      # Archives containing C++ object files must be created using
13915	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13916	      # necessary to make sure instantiated templates are included
13917	      # in the archive.
13918	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13919	      ;;
13920	    esac
13921	    ;;
13922	esac
13923	;;
13924
13925      lynxos*)
13926        # FIXME: insert proper C++ library support
13927	ld_shlibs_CXX=no
13928	;;
13929
13930      m88k*)
13931        # FIXME: insert proper C++ library support
13932        ld_shlibs_CXX=no
13933	;;
13934
13935      mvs*)
13936        case $cc_basename in
13937          cxx*)
13938	    # FIXME: insert proper C++ library support
13939	    ld_shlibs_CXX=no
13940	    ;;
13941	  *)
13942	    # FIXME: insert proper C++ library support
13943	    ld_shlibs_CXX=no
13944	    ;;
13945	esac
13946	;;
13947
13948      netbsd*)
13949        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13950	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13951	  wlarc=
13952	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13953	  hardcode_direct_CXX=yes
13954	  hardcode_shlibpath_var_CXX=no
13955	fi
13956	# Workaround some broken pre-1.5 toolchains
13957	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13958	;;
13959
13960      *nto* | *qnx*)
13961        ld_shlibs_CXX=yes
13962	;;
13963
13964      openbsd2*)
13965        # C++ shared libraries are fairly broken
13966	ld_shlibs_CXX=no
13967	;;
13968
13969      openbsd*)
13970	if test -f /usr/libexec/ld.so; then
13971	  hardcode_direct_CXX=yes
13972	  hardcode_shlibpath_var_CXX=no
13973	  hardcode_direct_absolute_CXX=yes
13974	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13977	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13978	    export_dynamic_flag_spec_CXX='${wl}-E'
13979	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13980	  fi
13981	  output_verbose_link_cmd=func_echo_all
13982	else
13983	  ld_shlibs_CXX=no
13984	fi
13985	;;
13986
13987      osf3* | osf4* | osf5*)
13988        case $cc_basename in
13989          KCC*)
13990	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13991
13992	    # KCC will only create a shared library if the output file
13993	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13994	    # to its proper name (with version) after linking.
13995	    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'
13996
13997	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13998	    hardcode_libdir_separator_CXX=:
13999
14000	    # Archives containing C++ object files must be created using
14001	    # the KAI C++ compiler.
14002	    case $host in
14003	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14004	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14005	    esac
14006	    ;;
14007          RCC*)
14008	    # Rational C++ 2.4.1
14009	    # FIXME: insert proper C++ library support
14010	    ld_shlibs_CXX=no
14011	    ;;
14012          cxx*)
14013	    case $host in
14014	      osf3*)
14015	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14016	        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'
14017	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14018		;;
14019	      *)
14020	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14021	        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'
14022	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14023	          echo "-hidden">> $lib.exp~
14024	          $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~
14025	          $RM $lib.exp'
14026	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14027		;;
14028	    esac
14029
14030	    hardcode_libdir_separator_CXX=:
14031
14032	    # Commands to make compiler produce verbose output that lists
14033	    # what "hidden" libraries, object files and flags are used when
14034	    # linking a shared library.
14035	    #
14036	    # There doesn't appear to be a way to prevent this compiler from
14037	    # explicitly linking system object files so we need to strip them
14038	    # from the output so that they don't get included in the library
14039	    # dependencies.
14040	    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"'
14041	    ;;
14042	  *)
14043	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14044	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14045	      case $host in
14046	        osf3*)
14047	          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'
14048		  ;;
14049	        *)
14050	          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'
14051		  ;;
14052	      esac
14053
14054	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14055	      hardcode_libdir_separator_CXX=:
14056
14057	      # Commands to make compiler produce verbose output that lists
14058	      # what "hidden" libraries, object files and flags are used when
14059	      # linking a shared library.
14060	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14061
14062	    else
14063	      # FIXME: insert proper C++ library support
14064	      ld_shlibs_CXX=no
14065	    fi
14066	    ;;
14067        esac
14068        ;;
14069
14070      psos*)
14071        # FIXME: insert proper C++ library support
14072        ld_shlibs_CXX=no
14073        ;;
14074
14075      sunos4*)
14076        case $cc_basename in
14077          CC*)
14078	    # Sun C++ 4.x
14079	    # FIXME: insert proper C++ library support
14080	    ld_shlibs_CXX=no
14081	    ;;
14082          lcc*)
14083	    # Lucid
14084	    # FIXME: insert proper C++ library support
14085	    ld_shlibs_CXX=no
14086	    ;;
14087          *)
14088	    # FIXME: insert proper C++ library support
14089	    ld_shlibs_CXX=no
14090	    ;;
14091        esac
14092        ;;
14093
14094      solaris*)
14095        case $cc_basename in
14096          CC* | sunCC*)
14097	    # Sun C++ 4.2, 5.x and Centerline C++
14098            archive_cmds_need_lc_CXX=yes
14099	    no_undefined_flag_CXX=' -zdefs'
14100	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14102	      $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'
14103
14104	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14105	    hardcode_shlibpath_var_CXX=no
14106	    case $host_os in
14107	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14108	      *)
14109		# The compiler driver will combine and reorder linker options,
14110		# but understands `-z linker_flag'.
14111	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14112		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14113	        ;;
14114	    esac
14115	    link_all_deplibs_CXX=yes
14116
14117	    output_verbose_link_cmd='func_echo_all'
14118
14119	    # Archives containing C++ object files must be created using
14120	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14121	    # necessary to make sure instantiated templates are included
14122	    # in the archive.
14123	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14124	    ;;
14125          gcx*)
14126	    # Green Hills C++ Compiler
14127	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14128
14129	    # The C++ compiler must be used to create the archive.
14130	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14131	    ;;
14132          *)
14133	    # GNU C++ compiler with Solaris linker
14134	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14135	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14136	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14137	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14140
14141	        # Commands to make compiler produce verbose output that lists
14142	        # what "hidden" libraries, object files and flags are used when
14143	        # linking a shared library.
14144	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14145	      else
14146	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14147	        # platform.
14148	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14149	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14150		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14151
14152	        # Commands to make compiler produce verbose output that lists
14153	        # what "hidden" libraries, object files and flags are used when
14154	        # linking a shared library.
14155	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14156	      fi
14157
14158	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14159	      case $host_os in
14160		solaris2.[0-5] | solaris2.[0-5].*) ;;
14161		*)
14162		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14163		  ;;
14164	      esac
14165	    fi
14166	    ;;
14167        esac
14168        ;;
14169
14170    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14171      no_undefined_flag_CXX='${wl}-z,text'
14172      archive_cmds_need_lc_CXX=no
14173      hardcode_shlibpath_var_CXX=no
14174      runpath_var='LD_RUN_PATH'
14175
14176      case $cc_basename in
14177        CC*)
14178	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180	  ;;
14181	*)
14182	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184	  ;;
14185      esac
14186      ;;
14187
14188      sysv5* | sco3.2v5* | sco5v6*)
14189	# Note: We can NOT use -z defs as we might desire, because we do not
14190	# link with -lc, and that would cause any symbols used from libc to
14191	# always be unresolved, which means just about no library would
14192	# ever link correctly.  If we're not using GNU ld we use -z text
14193	# though, which does catch some bad symbols but isn't as heavy-handed
14194	# as -z defs.
14195	no_undefined_flag_CXX='${wl}-z,text'
14196	allow_undefined_flag_CXX='${wl}-z,nodefs'
14197	archive_cmds_need_lc_CXX=no
14198	hardcode_shlibpath_var_CXX=no
14199	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14200	hardcode_libdir_separator_CXX=':'
14201	link_all_deplibs_CXX=yes
14202	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14203	runpath_var='LD_RUN_PATH'
14204
14205	case $cc_basename in
14206          CC*)
14207	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14210	      '"$old_archive_cmds_CXX"
14211	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14212	      '"$reload_cmds_CXX"
14213	    ;;
14214	  *)
14215	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14217	    ;;
14218	esac
14219      ;;
14220
14221      tandem*)
14222        case $cc_basename in
14223          NCC*)
14224	    # NonStop-UX NCC 3.20
14225	    # FIXME: insert proper C++ library support
14226	    ld_shlibs_CXX=no
14227	    ;;
14228          *)
14229	    # FIXME: insert proper C++ library support
14230	    ld_shlibs_CXX=no
14231	    ;;
14232        esac
14233        ;;
14234
14235      vxworks*)
14236        # FIXME: insert proper C++ library support
14237        ld_shlibs_CXX=no
14238        ;;
14239
14240      *)
14241        # FIXME: insert proper C++ library support
14242        ld_shlibs_CXX=no
14243        ;;
14244    esac
14245
14246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14247$as_echo "$ld_shlibs_CXX" >&6; }
14248    test "$ld_shlibs_CXX" = no && can_build_shared=no
14249
14250    GCC_CXX="$GXX"
14251    LD_CXX="$LD"
14252
14253    ## CAVEAT EMPTOR:
14254    ## There is no encapsulation within the following macros, do not change
14255    ## the running order or otherwise move them around unless you know exactly
14256    ## what you are doing...
14257    # Dependencies to place before and after the object being linked:
14258predep_objects_CXX=
14259postdep_objects_CXX=
14260predeps_CXX=
14261postdeps_CXX=
14262compiler_lib_search_path_CXX=
14263
14264cat > conftest.$ac_ext <<_LT_EOF
14265class Foo
14266{
14267public:
14268  Foo (void) { a = 0; }
14269private:
14270  int a;
14271};
14272_LT_EOF
14273
14274
14275_lt_libdeps_save_CFLAGS=$CFLAGS
14276case "$CC $CFLAGS " in #(
14277*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14278*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14279*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14280esac
14281
14282if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14283  (eval $ac_compile) 2>&5
14284  ac_status=$?
14285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286  test $ac_status = 0; }; then
14287  # Parse the compiler output and extract the necessary
14288  # objects, libraries and library flags.
14289
14290  # Sentinel used to keep track of whether or not we are before
14291  # the conftest object file.
14292  pre_test_object_deps_done=no
14293
14294  for p in `eval "$output_verbose_link_cmd"`; do
14295    case ${prev}${p} in
14296
14297    -L* | -R* | -l*)
14298       # Some compilers place space between "-{L,R}" and the path.
14299       # Remove the space.
14300       if test $p = "-L" ||
14301          test $p = "-R"; then
14302	 prev=$p
14303	 continue
14304       fi
14305
14306       # Expand the sysroot to ease extracting the directories later.
14307       if test -z "$prev"; then
14308         case $p in
14309         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14310         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14311         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14312         esac
14313       fi
14314       case $p in
14315       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14316       esac
14317       if test "$pre_test_object_deps_done" = no; then
14318	 case ${prev} in
14319	 -L | -R)
14320	   # Internal compiler library paths should come after those
14321	   # provided the user.  The postdeps already come after the
14322	   # user supplied libs so there is no need to process them.
14323	   if test -z "$compiler_lib_search_path_CXX"; then
14324	     compiler_lib_search_path_CXX="${prev}${p}"
14325	   else
14326	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14327	   fi
14328	   ;;
14329	 # The "-l" case would never come before the object being
14330	 # linked, so don't bother handling this case.
14331	 esac
14332       else
14333	 if test -z "$postdeps_CXX"; then
14334	   postdeps_CXX="${prev}${p}"
14335	 else
14336	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14337	 fi
14338       fi
14339       prev=
14340       ;;
14341
14342    *.lto.$objext) ;; # Ignore GCC LTO objects
14343    *.$objext)
14344       # This assumes that the test object file only shows up
14345       # once in the compiler output.
14346       if test "$p" = "conftest.$objext"; then
14347	 pre_test_object_deps_done=yes
14348	 continue
14349       fi
14350
14351       if test "$pre_test_object_deps_done" = no; then
14352	 if test -z "$predep_objects_CXX"; then
14353	   predep_objects_CXX="$p"
14354	 else
14355	   predep_objects_CXX="$predep_objects_CXX $p"
14356	 fi
14357       else
14358	 if test -z "$postdep_objects_CXX"; then
14359	   postdep_objects_CXX="$p"
14360	 else
14361	   postdep_objects_CXX="$postdep_objects_CXX $p"
14362	 fi
14363       fi
14364       ;;
14365
14366    *) ;; # Ignore the rest.
14367
14368    esac
14369  done
14370
14371  # Clean up.
14372  rm -f a.out a.exe
14373else
14374  echo "libtool.m4: error: problem compiling CXX test program"
14375fi
14376
14377$RM -f confest.$objext
14378CFLAGS=$_lt_libdeps_save_CFLAGS
14379
14380# PORTME: override above test on systems where it is broken
14381case $host_os in
14382interix[3-9]*)
14383  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14384  # hack all around it, let's just trust "g++" to DTRT.
14385  predep_objects_CXX=
14386  postdep_objects_CXX=
14387  postdeps_CXX=
14388  ;;
14389
14390linux*)
14391  case `$CC -V 2>&1 | sed 5q` in
14392  *Sun\ C*)
14393    # Sun C++ 5.9
14394
14395    # The more standards-conforming stlport4 library is
14396    # incompatible with the Cstd library. Avoid specifying
14397    # it if it's in CXXFLAGS. Ignore libCrun as
14398    # -library=stlport4 depends on it.
14399    case " $CXX $CXXFLAGS " in
14400    *" -library=stlport4 "*)
14401      solaris_use_stlport4=yes
14402      ;;
14403    esac
14404
14405    if test "$solaris_use_stlport4" != yes; then
14406      postdeps_CXX='-library=Cstd -library=Crun'
14407    fi
14408    ;;
14409  esac
14410  ;;
14411
14412solaris*)
14413  case $cc_basename in
14414  CC* | sunCC*)
14415    # The more standards-conforming stlport4 library is
14416    # incompatible with the Cstd library. Avoid specifying
14417    # it if it's in CXXFLAGS. Ignore libCrun as
14418    # -library=stlport4 depends on it.
14419    case " $CXX $CXXFLAGS " in
14420    *" -library=stlport4 "*)
14421      solaris_use_stlport4=yes
14422      ;;
14423    esac
14424
14425    # Adding this requires a known-good setup of shared libraries for
14426    # Sun compiler versions before 5.6, else PIC objects from an old
14427    # archive will be linked into the output, leading to subtle bugs.
14428    if test "$solaris_use_stlport4" != yes; then
14429      postdeps_CXX='-library=Cstd -library=Crun'
14430    fi
14431    ;;
14432  esac
14433  ;;
14434esac
14435
14436
14437case " $postdeps_CXX " in
14438*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14439esac
14440 compiler_lib_search_dirs_CXX=
14441if test -n "${compiler_lib_search_path_CXX}"; then
14442 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14443fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475    lt_prog_compiler_wl_CXX=
14476lt_prog_compiler_pic_CXX=
14477lt_prog_compiler_static_CXX=
14478
14479
14480  # C++ specific cases for pic, static, wl, etc.
14481  if test "$GXX" = yes; then
14482    lt_prog_compiler_wl_CXX='-Wl,'
14483    lt_prog_compiler_static_CXX='-static'
14484
14485    case $host_os in
14486    aix*)
14487      # All AIX code is PIC.
14488      if test "$host_cpu" = ia64; then
14489	# AIX 5 now supports IA64 processor
14490	lt_prog_compiler_static_CXX='-Bstatic'
14491      fi
14492      ;;
14493
14494    amigaos*)
14495      case $host_cpu in
14496      powerpc)
14497            # see comment about AmigaOS4 .so support
14498            lt_prog_compiler_pic_CXX='-fPIC'
14499        ;;
14500      m68k)
14501            # FIXME: we need at least 68020 code to build shared libraries, but
14502            # adding the `-m68020' flag to GCC prevents building anything better,
14503            # like `-m68040'.
14504            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14505        ;;
14506      esac
14507      ;;
14508
14509    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14510      # PIC is the default for these OSes.
14511      ;;
14512    mingw* | cygwin* | os2* | pw32* | cegcc*)
14513      # This hack is so that the source file can tell whether it is being
14514      # built for inclusion in a dll (and should export symbols for example).
14515      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14516      # (--disable-auto-import) libraries
14517      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14518      ;;
14519    darwin* | rhapsody*)
14520      # PIC is the default on this platform
14521      # Common symbols not allowed in MH_DYLIB files
14522      lt_prog_compiler_pic_CXX='-fno-common'
14523      ;;
14524    *djgpp*)
14525      # DJGPP does not support shared libraries at all
14526      lt_prog_compiler_pic_CXX=
14527      ;;
14528    haiku*)
14529      # PIC is the default for Haiku.
14530      # The "-static" flag exists, but is broken.
14531      lt_prog_compiler_static_CXX=
14532      ;;
14533    interix[3-9]*)
14534      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14535      # Instead, we relocate shared libraries at runtime.
14536      ;;
14537    sysv4*MP*)
14538      if test -d /usr/nec; then
14539	lt_prog_compiler_pic_CXX=-Kconform_pic
14540      fi
14541      ;;
14542    hpux*)
14543      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14544      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14545      # sets the default TLS model and affects inlining.
14546      case $host_cpu in
14547      hppa*64*)
14548	;;
14549      *)
14550	lt_prog_compiler_pic_CXX='-fPIC'
14551	;;
14552      esac
14553      ;;
14554    *qnx* | *nto*)
14555      # QNX uses GNU C++, but need to define -shared option too, otherwise
14556      # it will coredump.
14557      lt_prog_compiler_pic_CXX='-fPIC -shared'
14558      ;;
14559    *)
14560      lt_prog_compiler_pic_CXX='-fPIC'
14561      ;;
14562    esac
14563  else
14564    case $host_os in
14565      aix[4-9]*)
14566	# All AIX code is PIC.
14567	if test "$host_cpu" = ia64; then
14568	  # AIX 5 now supports IA64 processor
14569	  lt_prog_compiler_static_CXX='-Bstatic'
14570	else
14571	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14572	fi
14573	;;
14574      chorus*)
14575	case $cc_basename in
14576	cxch68*)
14577	  # Green Hills C++ Compiler
14578	  # _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"
14579	  ;;
14580	esac
14581	;;
14582      mingw* | cygwin* | os2* | pw32* | cegcc*)
14583	# This hack is so that the source file can tell whether it is being
14584	# built for inclusion in a dll (and should export symbols for example).
14585	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14586	;;
14587      dgux*)
14588	case $cc_basename in
14589	  ec++*)
14590	    lt_prog_compiler_pic_CXX='-KPIC'
14591	    ;;
14592	  ghcx*)
14593	    # Green Hills C++ Compiler
14594	    lt_prog_compiler_pic_CXX='-pic'
14595	    ;;
14596	  *)
14597	    ;;
14598	esac
14599	;;
14600      freebsd* | dragonfly*)
14601	# FreeBSD uses GNU C++
14602	;;
14603      hpux9* | hpux10* | hpux11*)
14604	case $cc_basename in
14605	  CC*)
14606	    lt_prog_compiler_wl_CXX='-Wl,'
14607	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14608	    if test "$host_cpu" != ia64; then
14609	      lt_prog_compiler_pic_CXX='+Z'
14610	    fi
14611	    ;;
14612	  aCC*)
14613	    lt_prog_compiler_wl_CXX='-Wl,'
14614	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14615	    case $host_cpu in
14616	    hppa*64*|ia64*)
14617	      # +Z the default
14618	      ;;
14619	    *)
14620	      lt_prog_compiler_pic_CXX='+Z'
14621	      ;;
14622	    esac
14623	    ;;
14624	  *)
14625	    ;;
14626	esac
14627	;;
14628      interix*)
14629	# This is c89, which is MS Visual C++ (no shared libs)
14630	# Anyone wants to do a port?
14631	;;
14632      irix5* | irix6* | nonstopux*)
14633	case $cc_basename in
14634	  CC*)
14635	    lt_prog_compiler_wl_CXX='-Wl,'
14636	    lt_prog_compiler_static_CXX='-non_shared'
14637	    # CC pic flag -KPIC is the default.
14638	    ;;
14639	  *)
14640	    ;;
14641	esac
14642	;;
14643      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14644	case $cc_basename in
14645	  KCC*)
14646	    # KAI C++ Compiler
14647	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14648	    lt_prog_compiler_pic_CXX='-fPIC'
14649	    ;;
14650	  ecpc* )
14651	    # old Intel C++ for x86_64 which still supported -KPIC.
14652	    lt_prog_compiler_wl_CXX='-Wl,'
14653	    lt_prog_compiler_pic_CXX='-KPIC'
14654	    lt_prog_compiler_static_CXX='-static'
14655	    ;;
14656	  icpc* )
14657	    # Intel C++, used to be incompatible with GCC.
14658	    # ICC 10 doesn't accept -KPIC any more.
14659	    lt_prog_compiler_wl_CXX='-Wl,'
14660	    lt_prog_compiler_pic_CXX='-fPIC'
14661	    lt_prog_compiler_static_CXX='-static'
14662	    ;;
14663	  pgCC* | pgcpp*)
14664	    # Portland Group C++ compiler
14665	    lt_prog_compiler_wl_CXX='-Wl,'
14666	    lt_prog_compiler_pic_CXX='-fpic'
14667	    lt_prog_compiler_static_CXX='-Bstatic'
14668	    ;;
14669	  cxx*)
14670	    # Compaq C++
14671	    # Make sure the PIC flag is empty.  It appears that all Alpha
14672	    # Linux and Compaq Tru64 Unix objects are PIC.
14673	    lt_prog_compiler_pic_CXX=
14674	    lt_prog_compiler_static_CXX='-non_shared'
14675	    ;;
14676	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14677	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14678	    lt_prog_compiler_wl_CXX='-Wl,'
14679	    lt_prog_compiler_pic_CXX='-qpic'
14680	    lt_prog_compiler_static_CXX='-qstaticlink'
14681	    ;;
14682	  *)
14683	    case `$CC -V 2>&1 | sed 5q` in
14684	    *Sun\ C*)
14685	      # Sun C++ 5.9
14686	      lt_prog_compiler_pic_CXX='-KPIC'
14687	      lt_prog_compiler_static_CXX='-Bstatic'
14688	      lt_prog_compiler_wl_CXX='-Qoption ld '
14689	      ;;
14690	    esac
14691	    ;;
14692	esac
14693	;;
14694      lynxos*)
14695	;;
14696      m88k*)
14697	;;
14698      mvs*)
14699	case $cc_basename in
14700	  cxx*)
14701	    lt_prog_compiler_pic_CXX='-W c,exportall'
14702	    ;;
14703	  *)
14704	    ;;
14705	esac
14706	;;
14707      netbsd*)
14708	;;
14709      *qnx* | *nto*)
14710        # QNX uses GNU C++, but need to define -shared option too, otherwise
14711        # it will coredump.
14712        lt_prog_compiler_pic_CXX='-fPIC -shared'
14713        ;;
14714      osf3* | osf4* | osf5*)
14715	case $cc_basename in
14716	  KCC*)
14717	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14718	    ;;
14719	  RCC*)
14720	    # Rational C++ 2.4.1
14721	    lt_prog_compiler_pic_CXX='-pic'
14722	    ;;
14723	  cxx*)
14724	    # Digital/Compaq C++
14725	    lt_prog_compiler_wl_CXX='-Wl,'
14726	    # Make sure the PIC flag is empty.  It appears that all Alpha
14727	    # Linux and Compaq Tru64 Unix objects are PIC.
14728	    lt_prog_compiler_pic_CXX=
14729	    lt_prog_compiler_static_CXX='-non_shared'
14730	    ;;
14731	  *)
14732	    ;;
14733	esac
14734	;;
14735      psos*)
14736	;;
14737      solaris*)
14738	case $cc_basename in
14739	  CC* | sunCC*)
14740	    # Sun C++ 4.2, 5.x and Centerline C++
14741	    lt_prog_compiler_pic_CXX='-KPIC'
14742	    lt_prog_compiler_static_CXX='-Bstatic'
14743	    lt_prog_compiler_wl_CXX='-Qoption ld '
14744	    ;;
14745	  gcx*)
14746	    # Green Hills C++ Compiler
14747	    lt_prog_compiler_pic_CXX='-PIC'
14748	    ;;
14749	  *)
14750	    ;;
14751	esac
14752	;;
14753      sunos4*)
14754	case $cc_basename in
14755	  CC*)
14756	    # Sun C++ 4.x
14757	    lt_prog_compiler_pic_CXX='-pic'
14758	    lt_prog_compiler_static_CXX='-Bstatic'
14759	    ;;
14760	  lcc*)
14761	    # Lucid
14762	    lt_prog_compiler_pic_CXX='-pic'
14763	    ;;
14764	  *)
14765	    ;;
14766	esac
14767	;;
14768      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14769	case $cc_basename in
14770	  CC*)
14771	    lt_prog_compiler_wl_CXX='-Wl,'
14772	    lt_prog_compiler_pic_CXX='-KPIC'
14773	    lt_prog_compiler_static_CXX='-Bstatic'
14774	    ;;
14775	esac
14776	;;
14777      tandem*)
14778	case $cc_basename in
14779	  NCC*)
14780	    # NonStop-UX NCC 3.20
14781	    lt_prog_compiler_pic_CXX='-KPIC'
14782	    ;;
14783	  *)
14784	    ;;
14785	esac
14786	;;
14787      vxworks*)
14788	;;
14789      *)
14790	lt_prog_compiler_can_build_shared_CXX=no
14791	;;
14792    esac
14793  fi
14794
14795case $host_os in
14796  # For platforms which do not support PIC, -DPIC is meaningless:
14797  *djgpp*)
14798    lt_prog_compiler_pic_CXX=
14799    ;;
14800  *)
14801    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14802    ;;
14803esac
14804
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14806$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14807if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14808  $as_echo_n "(cached) " >&6
14809else
14810  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14811fi
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14813$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14814lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14815
14816#
14817# Check to make sure the PIC flag actually works.
14818#
14819if test -n "$lt_prog_compiler_pic_CXX"; then
14820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14821$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14822if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14823  $as_echo_n "(cached) " >&6
14824else
14825  lt_cv_prog_compiler_pic_works_CXX=no
14826   ac_outfile=conftest.$ac_objext
14827   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14828   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14829   # Insert the option either (1) after the last *FLAGS variable, or
14830   # (2) before a word containing "conftest.", or (3) at the end.
14831   # Note that $ac_compile itself does not contain backslashes and begins
14832   # with a dollar sign (not a hyphen), so the echo should work correctly.
14833   # The option is referenced via a variable to avoid confusing sed.
14834   lt_compile=`echo "$ac_compile" | $SED \
14835   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837   -e 's:$: $lt_compiler_flag:'`
14838   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14839   (eval "$lt_compile" 2>conftest.err)
14840   ac_status=$?
14841   cat conftest.err >&5
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   if (exit $ac_status) && test -s "$ac_outfile"; then
14844     # The compiler can only warn and ignore the option if not recognized
14845     # So say no if there are warnings other than the usual output.
14846     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14847     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14848     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14849       lt_cv_prog_compiler_pic_works_CXX=yes
14850     fi
14851   fi
14852   $RM conftest*
14853
14854fi
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14856$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14857
14858if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14859    case $lt_prog_compiler_pic_CXX in
14860     "" | " "*) ;;
14861     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14862     esac
14863else
14864    lt_prog_compiler_pic_CXX=
14865     lt_prog_compiler_can_build_shared_CXX=no
14866fi
14867
14868fi
14869
14870
14871
14872
14873
14874#
14875# Check to make sure the static flag actually works.
14876#
14877wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14879$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14880if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14881  $as_echo_n "(cached) " >&6
14882else
14883  lt_cv_prog_compiler_static_works_CXX=no
14884   save_LDFLAGS="$LDFLAGS"
14885   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14886   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14887   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14888     # The linker can only warn and ignore the option if not recognized
14889     # So say no if there are warnings
14890     if test -s conftest.err; then
14891       # Append any errors to the config.log.
14892       cat conftest.err 1>&5
14893       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14894       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14895       if diff conftest.exp conftest.er2 >/dev/null; then
14896         lt_cv_prog_compiler_static_works_CXX=yes
14897       fi
14898     else
14899       lt_cv_prog_compiler_static_works_CXX=yes
14900     fi
14901   fi
14902   $RM -r conftest*
14903   LDFLAGS="$save_LDFLAGS"
14904
14905fi
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14907$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14908
14909if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14910    :
14911else
14912    lt_prog_compiler_static_CXX=
14913fi
14914
14915
14916
14917
14918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14919$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14920if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14921  $as_echo_n "(cached) " >&6
14922else
14923  lt_cv_prog_compiler_c_o_CXX=no
14924   $RM -r conftest 2>/dev/null
14925   mkdir conftest
14926   cd conftest
14927   mkdir out
14928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14929
14930   lt_compiler_flag="-o out/conftest2.$ac_objext"
14931   # Insert the option either (1) after the last *FLAGS variable, or
14932   # (2) before a word containing "conftest.", or (3) at the end.
14933   # Note that $ac_compile itself does not contain backslashes and begins
14934   # with a dollar sign (not a hyphen), so the echo should work correctly.
14935   lt_compile=`echo "$ac_compile" | $SED \
14936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14938   -e 's:$: $lt_compiler_flag:'`
14939   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14940   (eval "$lt_compile" 2>out/conftest.err)
14941   ac_status=$?
14942   cat out/conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14945   then
14946     # The compiler can only warn and ignore the option if not recognized
14947     # So say no if there are warnings
14948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14949     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14950     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14951       lt_cv_prog_compiler_c_o_CXX=yes
14952     fi
14953   fi
14954   chmod u+w . 2>&5
14955   $RM conftest*
14956   # SGI C++ compiler will create directory out/ii_files/ for
14957   # template instantiation
14958   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14959   $RM out/* && rmdir out
14960   cd ..
14961   $RM -r conftest
14962   $RM conftest*
14963
14964fi
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14966$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14967
14968
14969
14970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14972if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14973  $as_echo_n "(cached) " >&6
14974else
14975  lt_cv_prog_compiler_c_o_CXX=no
14976   $RM -r conftest 2>/dev/null
14977   mkdir conftest
14978   cd conftest
14979   mkdir out
14980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14981
14982   lt_compiler_flag="-o out/conftest2.$ac_objext"
14983   # Insert the option either (1) after the last *FLAGS variable, or
14984   # (2) before a word containing "conftest.", or (3) at the end.
14985   # Note that $ac_compile itself does not contain backslashes and begins
14986   # with a dollar sign (not a hyphen), so the echo should work correctly.
14987   lt_compile=`echo "$ac_compile" | $SED \
14988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14990   -e 's:$: $lt_compiler_flag:'`
14991   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14992   (eval "$lt_compile" 2>out/conftest.err)
14993   ac_status=$?
14994   cat out/conftest.err >&5
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14997   then
14998     # The compiler can only warn and ignore the option if not recognized
14999     # So say no if there are warnings
15000     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15001     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15002     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15003       lt_cv_prog_compiler_c_o_CXX=yes
15004     fi
15005   fi
15006   chmod u+w . 2>&5
15007   $RM conftest*
15008   # SGI C++ compiler will create directory out/ii_files/ for
15009   # template instantiation
15010   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15011   $RM out/* && rmdir out
15012   cd ..
15013   $RM -r conftest
15014   $RM conftest*
15015
15016fi
15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15018$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15019
15020
15021
15022
15023hard_links="nottested"
15024if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15025  # do not overwrite the value of need_locks provided by the user
15026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15027$as_echo_n "checking if we can lock with hard links... " >&6; }
15028  hard_links=yes
15029  $RM conftest*
15030  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15031  touch conftest.a
15032  ln conftest.a conftest.b 2>&5 || hard_links=no
15033  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15035$as_echo "$hard_links" >&6; }
15036  if test "$hard_links" = no; then
15037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15038$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15039    need_locks=warn
15040  fi
15041else
15042  need_locks=no
15043fi
15044
15045
15046
15047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15048$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15049
15050  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15051  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15052  case $host_os in
15053  aix[4-9]*)
15054    # If we're using GNU nm, then we don't want the "-C" option.
15055    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056    # Also, AIX nm treats weak defined symbols like other global defined
15057    # symbols, whereas GNU nm marks them as "W".
15058    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15059      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'
15060    else
15061      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'
15062    fi
15063    ;;
15064  pw32*)
15065    export_symbols_cmds_CXX="$ltdll_cmds"
15066    ;;
15067  cygwin* | mingw* | cegcc*)
15068    case $cc_basename in
15069    cl*)
15070      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15071      ;;
15072    *)
15073      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'
15074      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15075      ;;
15076    esac
15077    ;;
15078  *)
15079    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15080    ;;
15081  esac
15082
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15084$as_echo "$ld_shlibs_CXX" >&6; }
15085test "$ld_shlibs_CXX" = no && can_build_shared=no
15086
15087with_gnu_ld_CXX=$with_gnu_ld
15088
15089
15090
15091
15092
15093
15094#
15095# Do we need to explicitly link libc?
15096#
15097case "x$archive_cmds_need_lc_CXX" in
15098x|xyes)
15099  # Assume -lc should be added
15100  archive_cmds_need_lc_CXX=yes
15101
15102  if test "$enable_shared" = yes && test "$GCC" = yes; then
15103    case $archive_cmds_CXX in
15104    *'~'*)
15105      # FIXME: we may have to deal with multi-command sequences.
15106      ;;
15107    '$CC '*)
15108      # Test whether the compiler implicitly links with -lc since on some
15109      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15110      # to ld, don't add -lc before -lgcc.
15111      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15112$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15113if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15114  $as_echo_n "(cached) " >&6
15115else
15116  $RM conftest*
15117	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15118
15119	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15120  (eval $ac_compile) 2>&5
15121  ac_status=$?
15122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15123  test $ac_status = 0; } 2>conftest.err; then
15124	  soname=conftest
15125	  lib=conftest
15126	  libobjs=conftest.$ac_objext
15127	  deplibs=
15128	  wl=$lt_prog_compiler_wl_CXX
15129	  pic_flag=$lt_prog_compiler_pic_CXX
15130	  compiler_flags=-v
15131	  linker_flags=-v
15132	  verstring=
15133	  output_objdir=.
15134	  libname=conftest
15135	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15136	  allow_undefined_flag_CXX=
15137	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15138  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15139  ac_status=$?
15140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15141  test $ac_status = 0; }
15142	  then
15143	    lt_cv_archive_cmds_need_lc_CXX=no
15144	  else
15145	    lt_cv_archive_cmds_need_lc_CXX=yes
15146	  fi
15147	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15148	else
15149	  cat conftest.err 1>&5
15150	fi
15151	$RM conftest*
15152
15153fi
15154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15155$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15156      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15157      ;;
15158    esac
15159  fi
15160  ;;
15161esac
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15225$as_echo_n "checking dynamic linker characteristics... " >&6; }
15226
15227library_names_spec=
15228libname_spec='lib$name'
15229soname_spec=
15230shrext_cmds=".so"
15231postinstall_cmds=
15232postuninstall_cmds=
15233finish_cmds=
15234finish_eval=
15235shlibpath_var=
15236shlibpath_overrides_runpath=unknown
15237version_type=none
15238dynamic_linker="$host_os ld.so"
15239sys_lib_dlsearch_path_spec="/lib /usr/lib"
15240need_lib_prefix=unknown
15241hardcode_into_libs=no
15242
15243# when you set need_version to no, make sure it does not cause -set_version
15244# flags to be left without arguments
15245need_version=unknown
15246
15247case $host_os in
15248aix3*)
15249  version_type=linux # correct to gnu/linux during the next big refactor
15250  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15251  shlibpath_var=LIBPATH
15252
15253  # AIX 3 has no versioning support, so we append a major version to the name.
15254  soname_spec='${libname}${release}${shared_ext}$major'
15255  ;;
15256
15257aix[4-9]*)
15258  version_type=linux # correct to gnu/linux during the next big refactor
15259  need_lib_prefix=no
15260  need_version=no
15261  hardcode_into_libs=yes
15262  if test "$host_cpu" = ia64; then
15263    # AIX 5 supports IA64
15264    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15265    shlibpath_var=LD_LIBRARY_PATH
15266  else
15267    # With GCC up to 2.95.x, collect2 would create an import file
15268    # for dependence libraries.  The import file would start with
15269    # the line `#! .'.  This would cause the generated library to
15270    # depend on `.', always an invalid library.  This was fixed in
15271    # development snapshots of GCC prior to 3.0.
15272    case $host_os in
15273      aix4 | aix4.[01] | aix4.[01].*)
15274      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15275	   echo ' yes '
15276	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15277	:
15278      else
15279	can_build_shared=no
15280      fi
15281      ;;
15282    esac
15283    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15284    # soname into executable. Probably we can add versioning support to
15285    # collect2, so additional links can be useful in future.
15286    if test "$aix_use_runtimelinking" = yes; then
15287      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15288      # instead of lib<name>.a to let people know that these are not
15289      # typical AIX shared libraries.
15290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291    else
15292      # We preserve .a as extension for shared libraries through AIX4.2
15293      # and later when we are not doing run time linking.
15294      library_names_spec='${libname}${release}.a $libname.a'
15295      soname_spec='${libname}${release}${shared_ext}$major'
15296    fi
15297    shlibpath_var=LIBPATH
15298  fi
15299  ;;
15300
15301amigaos*)
15302  case $host_cpu in
15303  powerpc)
15304    # Since July 2007 AmigaOS4 officially supports .so libraries.
15305    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307    ;;
15308  m68k)
15309    library_names_spec='$libname.ixlibrary $libname.a'
15310    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15311    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'
15312    ;;
15313  esac
15314  ;;
15315
15316beos*)
15317  library_names_spec='${libname}${shared_ext}'
15318  dynamic_linker="$host_os ld.so"
15319  shlibpath_var=LIBRARY_PATH
15320  ;;
15321
15322bsdi[45]*)
15323  version_type=linux # correct to gnu/linux during the next big refactor
15324  need_version=no
15325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326  soname_spec='${libname}${release}${shared_ext}$major'
15327  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15328  shlibpath_var=LD_LIBRARY_PATH
15329  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15330  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15331  # the default ld.so.conf also contains /usr/contrib/lib and
15332  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15333  # libtool to hard-code these into programs
15334  ;;
15335
15336cygwin* | mingw* | pw32* | cegcc*)
15337  version_type=windows
15338  shrext_cmds=".dll"
15339  need_version=no
15340  need_lib_prefix=no
15341
15342  case $GCC,$cc_basename in
15343  yes,*)
15344    # gcc
15345    library_names_spec='$libname.dll.a'
15346    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15347    postinstall_cmds='base_file=`basename \${file}`~
15348      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15349      dldir=$destdir/`dirname \$dlpath`~
15350      test -d \$dldir || mkdir -p \$dldir~
15351      $install_prog $dir/$dlname \$dldir/$dlname~
15352      chmod a+x \$dldir/$dlname~
15353      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15354        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15355      fi'
15356    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15357      dlpath=$dir/\$dldll~
15358       $RM \$dlpath'
15359    shlibpath_overrides_runpath=yes
15360
15361    case $host_os in
15362    cygwin*)
15363      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15364      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15365
15366      ;;
15367    mingw* | cegcc*)
15368      # MinGW DLLs use traditional 'lib' prefix
15369      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15370      ;;
15371    pw32*)
15372      # pw32 DLLs use 'pw' prefix rather than 'lib'
15373      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15374      ;;
15375    esac
15376    dynamic_linker='Win32 ld.exe'
15377    ;;
15378
15379  *,cl*)
15380    # Native MSVC
15381    libname_spec='$name'
15382    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15383    library_names_spec='${libname}.dll.lib'
15384
15385    case $build_os in
15386    mingw*)
15387      sys_lib_search_path_spec=
15388      lt_save_ifs=$IFS
15389      IFS=';'
15390      for lt_path in $LIB
15391      do
15392        IFS=$lt_save_ifs
15393        # Let DOS variable expansion print the short 8.3 style file name.
15394        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15395        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15396      done
15397      IFS=$lt_save_ifs
15398      # Convert to MSYS style.
15399      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15400      ;;
15401    cygwin*)
15402      # Convert to unix form, then to dos form, then back to unix form
15403      # but this time dos style (no spaces!) so that the unix form looks
15404      # like /cygdrive/c/PROGRA~1:/cygdr...
15405      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15406      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15407      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15408      ;;
15409    *)
15410      sys_lib_search_path_spec="$LIB"
15411      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15412        # It is most probably a Windows format PATH.
15413        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15414      else
15415        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15416      fi
15417      # FIXME: find the short name or the path components, as spaces are
15418      # common. (e.g. "Program Files" -> "PROGRA~1")
15419      ;;
15420    esac
15421
15422    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15423    postinstall_cmds='base_file=`basename \${file}`~
15424      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15425      dldir=$destdir/`dirname \$dlpath`~
15426      test -d \$dldir || mkdir -p \$dldir~
15427      $install_prog $dir/$dlname \$dldir/$dlname'
15428    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15429      dlpath=$dir/\$dldll~
15430       $RM \$dlpath'
15431    shlibpath_overrides_runpath=yes
15432    dynamic_linker='Win32 link.exe'
15433    ;;
15434
15435  *)
15436    # Assume MSVC wrapper
15437    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15438    dynamic_linker='Win32 ld.exe'
15439    ;;
15440  esac
15441  # FIXME: first we should search . and the directory the executable is in
15442  shlibpath_var=PATH
15443  ;;
15444
15445darwin* | rhapsody*)
15446  dynamic_linker="$host_os dyld"
15447  version_type=darwin
15448  need_lib_prefix=no
15449  need_version=no
15450  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15451  soname_spec='${libname}${release}${major}$shared_ext'
15452  shlibpath_overrides_runpath=yes
15453  shlibpath_var=DYLD_LIBRARY_PATH
15454  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15455
15456  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15457  ;;
15458
15459dgux*)
15460  version_type=linux # correct to gnu/linux during the next big refactor
15461  need_lib_prefix=no
15462  need_version=no
15463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15464  soname_spec='${libname}${release}${shared_ext}$major'
15465  shlibpath_var=LD_LIBRARY_PATH
15466  ;;
15467
15468freebsd* | dragonfly*)
15469  # DragonFly does not have aout.  When/if they implement a new
15470  # versioning mechanism, adjust this.
15471  if test -x /usr/bin/objformat; then
15472    objformat=`/usr/bin/objformat`
15473  else
15474    case $host_os in
15475    freebsd[23].*) objformat=aout ;;
15476    *) objformat=elf ;;
15477    esac
15478  fi
15479  version_type=freebsd-$objformat
15480  case $version_type in
15481    freebsd-elf*)
15482      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15483      need_version=no
15484      need_lib_prefix=no
15485      ;;
15486    freebsd-*)
15487      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15488      need_version=yes
15489      ;;
15490  esac
15491  shlibpath_var=LD_LIBRARY_PATH
15492  case $host_os in
15493  freebsd2.*)
15494    shlibpath_overrides_runpath=yes
15495    ;;
15496  freebsd3.[01]* | freebsdelf3.[01]*)
15497    shlibpath_overrides_runpath=yes
15498    hardcode_into_libs=yes
15499    ;;
15500  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15501  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15502    shlibpath_overrides_runpath=no
15503    hardcode_into_libs=yes
15504    ;;
15505  *) # from 4.6 on, and DragonFly
15506    shlibpath_overrides_runpath=yes
15507    hardcode_into_libs=yes
15508    ;;
15509  esac
15510  ;;
15511
15512gnu*)
15513  version_type=linux # correct to gnu/linux during the next big refactor
15514  need_lib_prefix=no
15515  need_version=no
15516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15517  soname_spec='${libname}${release}${shared_ext}$major'
15518  shlibpath_var=LD_LIBRARY_PATH
15519  shlibpath_overrides_runpath=no
15520  hardcode_into_libs=yes
15521  ;;
15522
15523haiku*)
15524  version_type=linux # correct to gnu/linux during the next big refactor
15525  need_lib_prefix=no
15526  need_version=no
15527  dynamic_linker="$host_os runtime_loader"
15528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15529  soname_spec='${libname}${release}${shared_ext}$major'
15530  shlibpath_var=LIBRARY_PATH
15531  shlibpath_overrides_runpath=yes
15532  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15533  hardcode_into_libs=yes
15534  ;;
15535
15536hpux9* | hpux10* | hpux11*)
15537  # Give a soname corresponding to the major version so that dld.sl refuses to
15538  # link against other versions.
15539  version_type=sunos
15540  need_lib_prefix=no
15541  need_version=no
15542  case $host_cpu in
15543  ia64*)
15544    shrext_cmds='.so'
15545    hardcode_into_libs=yes
15546    dynamic_linker="$host_os dld.so"
15547    shlibpath_var=LD_LIBRARY_PATH
15548    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15549    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550    soname_spec='${libname}${release}${shared_ext}$major'
15551    if test "X$HPUX_IA64_MODE" = X32; then
15552      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15553    else
15554      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15555    fi
15556    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15557    ;;
15558  hppa*64*)
15559    shrext_cmds='.sl'
15560    hardcode_into_libs=yes
15561    dynamic_linker="$host_os dld.sl"
15562    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15563    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565    soname_spec='${libname}${release}${shared_ext}$major'
15566    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15567    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568    ;;
15569  *)
15570    shrext_cmds='.sl'
15571    dynamic_linker="$host_os dld.sl"
15572    shlibpath_var=SHLIB_PATH
15573    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575    soname_spec='${libname}${release}${shared_ext}$major'
15576    ;;
15577  esac
15578  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15579  postinstall_cmds='chmod 555 $lib'
15580  # or fails outright, so override atomically:
15581  install_override_mode=555
15582  ;;
15583
15584interix[3-9]*)
15585  version_type=linux # correct to gnu/linux during the next big refactor
15586  need_lib_prefix=no
15587  need_version=no
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15589  soname_spec='${libname}${release}${shared_ext}$major'
15590  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15591  shlibpath_var=LD_LIBRARY_PATH
15592  shlibpath_overrides_runpath=no
15593  hardcode_into_libs=yes
15594  ;;
15595
15596irix5* | irix6* | nonstopux*)
15597  case $host_os in
15598    nonstopux*) version_type=nonstopux ;;
15599    *)
15600	if test "$lt_cv_prog_gnu_ld" = yes; then
15601		version_type=linux # correct to gnu/linux during the next big refactor
15602	else
15603		version_type=irix
15604	fi ;;
15605  esac
15606  need_lib_prefix=no
15607  need_version=no
15608  soname_spec='${libname}${release}${shared_ext}$major'
15609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15610  case $host_os in
15611  irix5* | nonstopux*)
15612    libsuff= shlibsuff=
15613    ;;
15614  *)
15615    case $LD in # libtool.m4 will add one of these switches to LD
15616    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15617      libsuff= shlibsuff= libmagic=32-bit;;
15618    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15619      libsuff=32 shlibsuff=N32 libmagic=N32;;
15620    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15621      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15622    *) libsuff= shlibsuff= libmagic=never-match;;
15623    esac
15624    ;;
15625  esac
15626  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15627  shlibpath_overrides_runpath=no
15628  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15629  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15630  hardcode_into_libs=yes
15631  ;;
15632
15633# No shared lib support for Linux oldld, aout, or coff.
15634linux*oldld* | linux*aout* | linux*coff*)
15635  dynamic_linker=no
15636  ;;
15637
15638# This must be glibc/ELF.
15639linux* | k*bsd*-gnu | kopensolaris*-gnu)
15640  version_type=linux # correct to gnu/linux during the next big refactor
15641  need_lib_prefix=no
15642  need_version=no
15643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644  soname_spec='${libname}${release}${shared_ext}$major'
15645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15646  shlibpath_var=LD_LIBRARY_PATH
15647  shlibpath_overrides_runpath=no
15648
15649  # Some binutils ld are patched to set DT_RUNPATH
15650  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15651  $as_echo_n "(cached) " >&6
15652else
15653  lt_cv_shlibpath_overrides_runpath=no
15654    save_LDFLAGS=$LDFLAGS
15655    save_libdir=$libdir
15656    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15657	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h.  */
15660
15661int
15662main ()
15663{
15664
15665  ;
15666  return 0;
15667}
15668_ACEOF
15669if ac_fn_cxx_try_link "$LINENO"; then :
15670  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15671  lt_cv_shlibpath_overrides_runpath=yes
15672fi
15673fi
15674rm -f core conftest.err conftest.$ac_objext \
15675    conftest$ac_exeext conftest.$ac_ext
15676    LDFLAGS=$save_LDFLAGS
15677    libdir=$save_libdir
15678
15679fi
15680
15681  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15682
15683  # This implies no fast_install, which is unacceptable.
15684  # Some rework will be needed to allow for fast_install
15685  # before this can be enabled.
15686  hardcode_into_libs=yes
15687
15688  # Append ld.so.conf contents to the search path
15689  if test -f /etc/ld.so.conf; then
15690    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' ' '`
15691    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15692  fi
15693
15694  # We used to test for /lib/ld.so.1 and disable shared libraries on
15695  # powerpc, because MkLinux only supported shared libraries with the
15696  # GNU dynamic linker.  Since this was broken with cross compilers,
15697  # most powerpc-linux boxes support dynamic linking these days and
15698  # people can always --disable-shared, the test was removed, and we
15699  # assume the GNU/Linux dynamic linker is in use.
15700  dynamic_linker='GNU/Linux ld.so'
15701  ;;
15702
15703netbsd*)
15704  version_type=sunos
15705  need_lib_prefix=no
15706  need_version=no
15707  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15709    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15710    dynamic_linker='NetBSD (a.out) ld.so'
15711  else
15712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15713    soname_spec='${libname}${release}${shared_ext}$major'
15714    dynamic_linker='NetBSD ld.elf_so'
15715  fi
15716  shlibpath_var=LD_LIBRARY_PATH
15717  shlibpath_overrides_runpath=yes
15718  hardcode_into_libs=yes
15719  ;;
15720
15721newsos6)
15722  version_type=linux # correct to gnu/linux during the next big refactor
15723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724  shlibpath_var=LD_LIBRARY_PATH
15725  shlibpath_overrides_runpath=yes
15726  ;;
15727
15728*nto* | *qnx*)
15729  version_type=qnx
15730  need_lib_prefix=no
15731  need_version=no
15732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733  soname_spec='${libname}${release}${shared_ext}$major'
15734  shlibpath_var=LD_LIBRARY_PATH
15735  shlibpath_overrides_runpath=no
15736  hardcode_into_libs=yes
15737  dynamic_linker='ldqnx.so'
15738  ;;
15739
15740openbsd*)
15741  version_type=sunos
15742  sys_lib_dlsearch_path_spec="/usr/lib"
15743  need_lib_prefix=no
15744  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15745  case $host_os in
15746    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15747    *)				need_version=no  ;;
15748  esac
15749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15750  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15751  shlibpath_var=LD_LIBRARY_PATH
15752  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753    case $host_os in
15754      openbsd2.[89] | openbsd2.[89].*)
15755	shlibpath_overrides_runpath=no
15756	;;
15757      *)
15758	shlibpath_overrides_runpath=yes
15759	;;
15760      esac
15761  else
15762    shlibpath_overrides_runpath=yes
15763  fi
15764  ;;
15765
15766os2*)
15767  libname_spec='$name'
15768  shrext_cmds=".dll"
15769  need_lib_prefix=no
15770  library_names_spec='$libname${shared_ext} $libname.a'
15771  dynamic_linker='OS/2 ld.exe'
15772  shlibpath_var=LIBPATH
15773  ;;
15774
15775osf3* | osf4* | osf5*)
15776  version_type=osf
15777  need_lib_prefix=no
15778  need_version=no
15779  soname_spec='${libname}${release}${shared_ext}$major'
15780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781  shlibpath_var=LD_LIBRARY_PATH
15782  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15783  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15784  ;;
15785
15786rdos*)
15787  dynamic_linker=no
15788  ;;
15789
15790solaris*)
15791  version_type=linux # correct to gnu/linux during the next big refactor
15792  need_lib_prefix=no
15793  need_version=no
15794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795  soname_spec='${libname}${release}${shared_ext}$major'
15796  shlibpath_var=LD_LIBRARY_PATH
15797  shlibpath_overrides_runpath=yes
15798  hardcode_into_libs=yes
15799  # ldd complains unless libraries are executable
15800  postinstall_cmds='chmod +x $lib'
15801  ;;
15802
15803sunos4*)
15804  version_type=sunos
15805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15806  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15807  shlibpath_var=LD_LIBRARY_PATH
15808  shlibpath_overrides_runpath=yes
15809  if test "$with_gnu_ld" = yes; then
15810    need_lib_prefix=no
15811  fi
15812  need_version=yes
15813  ;;
15814
15815sysv4 | sysv4.3*)
15816  version_type=linux # correct to gnu/linux during the next big refactor
15817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818  soname_spec='${libname}${release}${shared_ext}$major'
15819  shlibpath_var=LD_LIBRARY_PATH
15820  case $host_vendor in
15821    sni)
15822      shlibpath_overrides_runpath=no
15823      need_lib_prefix=no
15824      runpath_var=LD_RUN_PATH
15825      ;;
15826    siemens)
15827      need_lib_prefix=no
15828      ;;
15829    motorola)
15830      need_lib_prefix=no
15831      need_version=no
15832      shlibpath_overrides_runpath=no
15833      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15834      ;;
15835  esac
15836  ;;
15837
15838sysv4*MP*)
15839  if test -d /usr/nec ;then
15840    version_type=linux # correct to gnu/linux during the next big refactor
15841    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15842    soname_spec='$libname${shared_ext}.$major'
15843    shlibpath_var=LD_LIBRARY_PATH
15844  fi
15845  ;;
15846
15847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15848  version_type=freebsd-elf
15849  need_lib_prefix=no
15850  need_version=no
15851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15852  soname_spec='${libname}${release}${shared_ext}$major'
15853  shlibpath_var=LD_LIBRARY_PATH
15854  shlibpath_overrides_runpath=yes
15855  hardcode_into_libs=yes
15856  if test "$with_gnu_ld" = yes; then
15857    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15858  else
15859    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15860    case $host_os in
15861      sco3.2v5*)
15862        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15863	;;
15864    esac
15865  fi
15866  sys_lib_dlsearch_path_spec='/usr/lib'
15867  ;;
15868
15869tpf*)
15870  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15871  version_type=linux # correct to gnu/linux during the next big refactor
15872  need_lib_prefix=no
15873  need_version=no
15874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875  shlibpath_var=LD_LIBRARY_PATH
15876  shlibpath_overrides_runpath=no
15877  hardcode_into_libs=yes
15878  ;;
15879
15880uts4*)
15881  version_type=linux # correct to gnu/linux during the next big refactor
15882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883  soname_spec='${libname}${release}${shared_ext}$major'
15884  shlibpath_var=LD_LIBRARY_PATH
15885  ;;
15886
15887*)
15888  dynamic_linker=no
15889  ;;
15890esac
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15892$as_echo "$dynamic_linker" >&6; }
15893test "$dynamic_linker" = no && can_build_shared=no
15894
15895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15896if test "$GCC" = yes; then
15897  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15898fi
15899
15900if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15901  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15902fi
15903if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15904  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15905fi
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15945$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15946hardcode_action_CXX=
15947if test -n "$hardcode_libdir_flag_spec_CXX" ||
15948   test -n "$runpath_var_CXX" ||
15949   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15950
15951  # We can hardcode non-existent directories.
15952  if test "$hardcode_direct_CXX" != no &&
15953     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15954     # have to relink, otherwise we might link with an installed library
15955     # when we should be linking with a yet-to-be-installed one
15956     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15957     test "$hardcode_minus_L_CXX" != no; then
15958    # Linking always hardcodes the temporary library directory.
15959    hardcode_action_CXX=relink
15960  else
15961    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15962    hardcode_action_CXX=immediate
15963  fi
15964else
15965  # We cannot hardcode anything, or else we can only hardcode existing
15966  # directories.
15967  hardcode_action_CXX=unsupported
15968fi
15969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15970$as_echo "$hardcode_action_CXX" >&6; }
15971
15972if test "$hardcode_action_CXX" = relink ||
15973   test "$inherit_rpath_CXX" = yes; then
15974  # Fast installation is not supported
15975  enable_fast_install=no
15976elif test "$shlibpath_overrides_runpath" = yes ||
15977     test "$enable_shared" = no; then
15978  # Fast installation is not necessary
15979  enable_fast_install=needless
15980fi
15981
15982
15983
15984
15985
15986
15987
15988  fi # test -n "$compiler"
15989
15990  CC=$lt_save_CC
15991  CFLAGS=$lt_save_CFLAGS
15992  LDCXX=$LD
15993  LD=$lt_save_LD
15994  GCC=$lt_save_GCC
15995  with_gnu_ld=$lt_save_with_gnu_ld
15996  lt_cv_path_LDCXX=$lt_cv_path_LD
15997  lt_cv_path_LD=$lt_save_path_LD
15998  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15999  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16000fi # test "$_lt_caught_CXX_error" != yes
16001
16002ac_ext=c
16003ac_cpp='$CPP $CPPFLAGS'
16004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16006ac_compiler_gnu=$ac_cv_c_compiler_gnu
16007
16008
16009
16010# Enable support for silent build rules
16011# Check whether --enable-silent-rules was given.
16012if test "${enable_silent_rules+set}" = set; then :
16013  enableval=$enable_silent_rules;
16014fi
16015
16016case $enable_silent_rules in
16017yes) AM_DEFAULT_VERBOSITY=0;;
16018no)  AM_DEFAULT_VERBOSITY=1;;
16019*)   AM_DEFAULT_VERBOSITY=1;;
16020esac
16021am_make=${MAKE-make}
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16023$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16024if ${am_cv_make_support_nested_variables+:} false; then :
16025  $as_echo_n "(cached) " >&6
16026else
16027  if $as_echo 'TRUE=$(BAR$(V))
16028BAR0=false
16029BAR1=true
16030V=1
16031am__doit:
16032	@$(TRUE)
16033.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16034  am_cv_make_support_nested_variables=yes
16035else
16036  am_cv_make_support_nested_variables=no
16037fi
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16040$as_echo "$am_cv_make_support_nested_variables" >&6; }
16041if test $am_cv_make_support_nested_variables = yes; then
16042    AM_V='$(V)'
16043  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16044else
16045  AM_V=$AM_DEFAULT_VERBOSITY
16046  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16047fi
16048AM_BACKSLASH='\'
16049
16050
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
16052$as_echo_n "checking for main in -lc... " >&6; }
16053if ${ac_cv_lib_c_main+:} false; then :
16054  $as_echo_n "(cached) " >&6
16055else
16056  ac_check_lib_save_LIBS=$LIBS
16057LIBS="-lc  $LIBS"
16058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h.  */
16060
16061
16062int
16063main ()
16064{
16065return main ();
16066  ;
16067  return 0;
16068}
16069_ACEOF
16070if ac_fn_c_try_link "$LINENO"; then :
16071  ac_cv_lib_c_main=yes
16072else
16073  ac_cv_lib_c_main=no
16074fi
16075rm -f core conftest.err conftest.$ac_objext \
16076    conftest$ac_exeext conftest.$ac_ext
16077LIBS=$ac_check_lib_save_LIBS
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
16080$as_echo "$ac_cv_lib_c_main" >&6; }
16081if test "x$ac_cv_lib_c_main" = xyes; then :
16082  cat >>confdefs.h <<_ACEOF
16083#define HAVE_LIBC 1
16084_ACEOF
16085
16086  LIBS="-lc $LIBS"
16087
16088fi
16089
16090
16091case "${host_os}" in
16092    cygwin* | mingw32* | beos* | darwin*)
16093        ;;
16094    *)
16095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16096$as_echo_n "checking for sin in -lm... " >&6; }
16097if ${ac_cv_lib_m_sin+:} false; then :
16098  $as_echo_n "(cached) " >&6
16099else
16100  ac_check_lib_save_LIBS=$LIBS
16101LIBS="-lm  $LIBS"
16102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103/* end confdefs.h.  */
16104
16105/* Override any GCC internal prototype to avoid an error.
16106   Use char because int might match the return type of a GCC
16107   builtin and then its argument prototype would still apply.  */
16108#ifdef __cplusplus
16109extern "C"
16110#endif
16111char sin ();
16112int
16113main ()
16114{
16115return sin ();
16116  ;
16117  return 0;
16118}
16119_ACEOF
16120if ac_fn_c_try_link "$LINENO"; then :
16121  ac_cv_lib_m_sin=yes
16122else
16123  ac_cv_lib_m_sin=no
16124fi
16125rm -f core conftest.err conftest.$ac_objext \
16126    conftest$ac_exeext conftest.$ac_ext
16127LIBS=$ac_check_lib_save_LIBS
16128fi
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16130$as_echo "$ac_cv_lib_m_sin" >&6; }
16131if test "x$ac_cv_lib_m_sin" = xyes; then :
16132  cat >>confdefs.h <<_ACEOF
16133#define HAVE_LIBM 1
16134_ACEOF
16135
16136  LIBS="-lm $LIBS"
16137
16138fi
16139
16140        ;;
16141esac
16142
16143tiff_libs_private=
16144
16145
16146for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16147do :
16148  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16151  cat >>confdefs.h <<_ACEOF
16152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153_ACEOF
16154
16155fi
16156
16157done
16158
16159
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16161$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16162if ${ac_cv_c_const+:} false; then :
16163  $as_echo_n "(cached) " >&6
16164else
16165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166/* end confdefs.h.  */
16167
16168int
16169main ()
16170{
16171/* FIXME: Include the comments suggested by Paul. */
16172#ifndef __cplusplus
16173  /* Ultrix mips cc rejects this.  */
16174  typedef int charset[2];
16175  const charset cs;
16176  /* SunOS 4.1.1 cc rejects this.  */
16177  char const *const *pcpcc;
16178  char **ppc;
16179  /* NEC SVR4.0.2 mips cc rejects this.  */
16180  struct point {int x, y;};
16181  static struct point const zero = {0,0};
16182  /* AIX XL C 1.02.0.0 rejects this.
16183     It does not let you subtract one const X* pointer from another in
16184     an arm of an if-expression whose if-part is not a constant
16185     expression */
16186  const char *g = "string";
16187  pcpcc = &g + (g ? g-g : 0);
16188  /* HPUX 7.0 cc rejects these. */
16189  ++pcpcc;
16190  ppc = (char**) pcpcc;
16191  pcpcc = (char const *const *) ppc;
16192  { /* SCO 3.2v4 cc rejects this.  */
16193    char *t;
16194    char const *s = 0 ? (char *) 0 : (char const *) 0;
16195
16196    *t++ = 0;
16197    if (s) return 0;
16198  }
16199  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16200    int x[] = {25, 17};
16201    const int *foo = &x[0];
16202    ++foo;
16203  }
16204  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16205    typedef const int *iptr;
16206    iptr p = 0;
16207    ++p;
16208  }
16209  { /* AIX XL C 1.02.0.0 rejects this saying
16210       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16211    struct s { int j; const int *ap[3]; };
16212    struct s *b; b->j = 5;
16213  }
16214  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16215    const int foo = 10;
16216    if (!foo) return 0;
16217  }
16218  return !cs[0] && !zero.x;
16219#endif
16220
16221  ;
16222  return 0;
16223}
16224_ACEOF
16225if ac_fn_c_try_compile "$LINENO"; then :
16226  ac_cv_c_const=yes
16227else
16228  ac_cv_c_const=no
16229fi
16230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231fi
16232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16233$as_echo "$ac_cv_c_const" >&6; }
16234if test $ac_cv_c_const = no; then
16235
16236$as_echo "#define const /**/" >>confdefs.h
16237
16238fi
16239
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16241$as_echo_n "checking for inline... " >&6; }
16242if ${ac_cv_c_inline+:} false; then :
16243  $as_echo_n "(cached) " >&6
16244else
16245  ac_cv_c_inline=no
16246for ac_kw in inline __inline__ __inline; do
16247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249#ifndef __cplusplus
16250typedef int foo_t;
16251static $ac_kw foo_t static_foo () {return 0; }
16252$ac_kw foo_t foo () {return 0; }
16253#endif
16254
16255_ACEOF
16256if ac_fn_c_try_compile "$LINENO"; then :
16257  ac_cv_c_inline=$ac_kw
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260  test "$ac_cv_c_inline" != no && break
16261done
16262
16263fi
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16265$as_echo "$ac_cv_c_inline" >&6; }
16266
16267case $ac_cv_c_inline in
16268  inline | yes) ;;
16269  *)
16270    case $ac_cv_c_inline in
16271      no) ac_val=;;
16272      *) ac_val=$ac_cv_c_inline;;
16273    esac
16274    cat >>confdefs.h <<_ACEOF
16275#ifndef __cplusplus
16276#define inline $ac_val
16277#endif
16278_ACEOF
16279    ;;
16280esac
16281
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16283$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16284if ${ac_cv_c_bigendian+:} false; then :
16285  $as_echo_n "(cached) " >&6
16286else
16287  ac_cv_c_bigendian=unknown
16288    # See if we're dealing with a universal compiler.
16289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291#ifndef __APPLE_CC__
16292	       not a universal capable compiler
16293	     #endif
16294	     typedef int dummy;
16295
16296_ACEOF
16297if ac_fn_c_try_compile "$LINENO"; then :
16298
16299	# Check for potential -arch flags.  It is not universal unless
16300	# there are at least two -arch flags with different values.
16301	ac_arch=
16302	ac_prev=
16303	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16304	 if test -n "$ac_prev"; then
16305	   case $ac_word in
16306	     i?86 | x86_64 | ppc | ppc64)
16307	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16308		 ac_arch=$ac_word
16309	       else
16310		 ac_cv_c_bigendian=universal
16311		 break
16312	       fi
16313	       ;;
16314	   esac
16315	   ac_prev=
16316	 elif test "x$ac_word" = "x-arch"; then
16317	   ac_prev=arch
16318	 fi
16319       done
16320fi
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322    if test $ac_cv_c_bigendian = unknown; then
16323      # See if sys/param.h defines the BYTE_ORDER macro.
16324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325/* end confdefs.h.  */
16326#include <sys/types.h>
16327	     #include <sys/param.h>
16328
16329int
16330main ()
16331{
16332#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16333		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16334		     && LITTLE_ENDIAN)
16335	      bogus endian macros
16336	     #endif
16337
16338  ;
16339  return 0;
16340}
16341_ACEOF
16342if ac_fn_c_try_compile "$LINENO"; then :
16343  # It does; now see whether it defined to BIG_ENDIAN or not.
16344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345/* end confdefs.h.  */
16346#include <sys/types.h>
16347		#include <sys/param.h>
16348
16349int
16350main ()
16351{
16352#if BYTE_ORDER != BIG_ENDIAN
16353		 not big endian
16354		#endif
16355
16356  ;
16357  return 0;
16358}
16359_ACEOF
16360if ac_fn_c_try_compile "$LINENO"; then :
16361  ac_cv_c_bigendian=yes
16362else
16363  ac_cv_c_bigendian=no
16364fi
16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366fi
16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368    fi
16369    if test $ac_cv_c_bigendian = unknown; then
16370      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372/* end confdefs.h.  */
16373#include <limits.h>
16374
16375int
16376main ()
16377{
16378#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16379	      bogus endian macros
16380	     #endif
16381
16382  ;
16383  return 0;
16384}
16385_ACEOF
16386if ac_fn_c_try_compile "$LINENO"; then :
16387  # It does; now see whether it defined to _BIG_ENDIAN or not.
16388	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389/* end confdefs.h.  */
16390#include <limits.h>
16391
16392int
16393main ()
16394{
16395#ifndef _BIG_ENDIAN
16396		 not big endian
16397		#endif
16398
16399  ;
16400  return 0;
16401}
16402_ACEOF
16403if ac_fn_c_try_compile "$LINENO"; then :
16404  ac_cv_c_bigendian=yes
16405else
16406  ac_cv_c_bigendian=no
16407fi
16408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409fi
16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411    fi
16412    if test $ac_cv_c_bigendian = unknown; then
16413      # Compile a test program.
16414      if test "$cross_compiling" = yes; then :
16415  # Try to guess by grepping values from an object file.
16416	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h.  */
16418short int ascii_mm[] =
16419		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16420		short int ascii_ii[] =
16421		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16422		int use_ascii (int i) {
16423		  return ascii_mm[i] + ascii_ii[i];
16424		}
16425		short int ebcdic_ii[] =
16426		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16427		short int ebcdic_mm[] =
16428		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16429		int use_ebcdic (int i) {
16430		  return ebcdic_mm[i] + ebcdic_ii[i];
16431		}
16432		extern int foo;
16433
16434int
16435main ()
16436{
16437return use_ascii (foo) == use_ebcdic (foo);
16438  ;
16439  return 0;
16440}
16441_ACEOF
16442if ac_fn_c_try_compile "$LINENO"; then :
16443  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16444	      ac_cv_c_bigendian=yes
16445	    fi
16446	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16447	      if test "$ac_cv_c_bigendian" = unknown; then
16448		ac_cv_c_bigendian=no
16449	      else
16450		# finding both strings is unlikely to happen, but who knows?
16451		ac_cv_c_bigendian=unknown
16452	      fi
16453	    fi
16454fi
16455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456else
16457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458/* end confdefs.h.  */
16459$ac_includes_default
16460int
16461main ()
16462{
16463
16464	     /* Are we little or big endian?  From Harbison&Steele.  */
16465	     union
16466	     {
16467	       long int l;
16468	       char c[sizeof (long int)];
16469	     } u;
16470	     u.l = 1;
16471	     return u.c[sizeof (long int) - 1] == 1;
16472
16473  ;
16474  return 0;
16475}
16476_ACEOF
16477if ac_fn_c_try_run "$LINENO"; then :
16478  ac_cv_c_bigendian=no
16479else
16480  ac_cv_c_bigendian=yes
16481fi
16482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16483  conftest.$ac_objext conftest.beam conftest.$ac_ext
16484fi
16485
16486    fi
16487fi
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16489$as_echo "$ac_cv_c_bigendian" >&6; }
16490 case $ac_cv_c_bigendian in #(
16491   yes)
16492     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16493;; #(
16494   no)
16495      ;; #(
16496   universal)
16497
16498$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16499
16500     ;; #(
16501   *)
16502     as_fn_error $? "unknown endianness
16503 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16504 esac
16505
16506ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16507if test "x$ac_cv_type_off_t" = xyes; then :
16508
16509else
16510
16511cat >>confdefs.h <<_ACEOF
16512#define off_t long int
16513_ACEOF
16514
16515fi
16516
16517ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16518if test "x$ac_cv_type_size_t" = xyes; then :
16519
16520else
16521
16522cat >>confdefs.h <<_ACEOF
16523#define size_t unsigned int
16524_ACEOF
16525
16526fi
16527
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16529$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16530if ${ac_cv_header_time+:} false; then :
16531  $as_echo_n "(cached) " >&6
16532else
16533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534/* end confdefs.h.  */
16535#include <sys/types.h>
16536#include <sys/time.h>
16537#include <time.h>
16538
16539int
16540main ()
16541{
16542if ((struct tm *) 0)
16543return 0;
16544  ;
16545  return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_compile "$LINENO"; then :
16549  ac_cv_header_time=yes
16550else
16551  ac_cv_header_time=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554fi
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16556$as_echo "$ac_cv_header_time" >&6; }
16557if test $ac_cv_header_time = yes; then
16558
16559$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16560
16561fi
16562
16563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16564$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16565if ${ac_cv_struct_tm+:} false; then :
16566  $as_echo_n "(cached) " >&6
16567else
16568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569/* end confdefs.h.  */
16570#include <sys/types.h>
16571#include <time.h>
16572
16573int
16574main ()
16575{
16576struct tm tm;
16577				     int *p = &tm.tm_sec;
16578				     return !p;
16579  ;
16580  return 0;
16581}
16582_ACEOF
16583if ac_fn_c_try_compile "$LINENO"; then :
16584  ac_cv_struct_tm=time.h
16585else
16586  ac_cv_struct_tm=sys/time.h
16587fi
16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589fi
16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16591$as_echo "$ac_cv_struct_tm" >&6; }
16592if test $ac_cv_struct_tm = sys/time.h; then
16593
16594$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16595
16596fi
16597
16598
16599
16600# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
16601# The cast to long int works around a bug in the HP C Compiler
16602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16604# This bug is HP SR number 8606223364.
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
16606$as_echo_n "checking size of signed short... " >&6; }
16607if ${ac_cv_sizeof_signed_short+:} false; then :
16608  $as_echo_n "(cached) " >&6
16609else
16610  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
16611
16612else
16613  if test "$ac_cv_type_signed_short" = yes; then
16614     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16616as_fn_error 77 "cannot compute sizeof (signed short)
16617See \`config.log' for more details" "$LINENO" 5; }
16618   else
16619     ac_cv_sizeof_signed_short=0
16620   fi
16621fi
16622
16623fi
16624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
16625$as_echo "$ac_cv_sizeof_signed_short" >&6; }
16626
16627
16628
16629cat >>confdefs.h <<_ACEOF
16630#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
16631_ACEOF
16632
16633
16634
16635# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
16636# The cast to long int works around a bug in the HP C Compiler
16637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16639# This bug is HP SR number 8606223364.
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16641$as_echo_n "checking size of unsigned short... " >&6; }
16642if ${ac_cv_sizeof_unsigned_short+:} false; then :
16643  $as_echo_n "(cached) " >&6
16644else
16645  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
16646
16647else
16648  if test "$ac_cv_type_unsigned_short" = yes; then
16649     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16651as_fn_error 77 "cannot compute sizeof (unsigned short)
16652See \`config.log' for more details" "$LINENO" 5; }
16653   else
16654     ac_cv_sizeof_unsigned_short=0
16655   fi
16656fi
16657
16658fi
16659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16660$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16661
16662
16663
16664cat >>confdefs.h <<_ACEOF
16665#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16666_ACEOF
16667
16668
16669
16670# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
16671# The cast to long int works around a bug in the HP C Compiler
16672# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16673# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16674# This bug is HP SR number 8606223364.
16675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
16676$as_echo_n "checking size of signed int... " >&6; }
16677if ${ac_cv_sizeof_signed_int+:} false; then :
16678  $as_echo_n "(cached) " >&6
16679else
16680  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
16681
16682else
16683  if test "$ac_cv_type_signed_int" = yes; then
16684     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16686as_fn_error 77 "cannot compute sizeof (signed int)
16687See \`config.log' for more details" "$LINENO" 5; }
16688   else
16689     ac_cv_sizeof_signed_int=0
16690   fi
16691fi
16692
16693fi
16694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16695$as_echo "$ac_cv_sizeof_signed_int" >&6; }
16696
16697
16698
16699cat >>confdefs.h <<_ACEOF
16700#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16701_ACEOF
16702
16703
16704
16705# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
16706# The cast to long int works around a bug in the HP C Compiler
16707# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16708# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16709# This bug is HP SR number 8606223364.
16710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16711$as_echo_n "checking size of unsigned int... " >&6; }
16712if ${ac_cv_sizeof_unsigned_int+:} false; then :
16713  $as_echo_n "(cached) " >&6
16714else
16715  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16716
16717else
16718  if test "$ac_cv_type_unsigned_int" = yes; then
16719     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16721as_fn_error 77 "cannot compute sizeof (unsigned int)
16722See \`config.log' for more details" "$LINENO" 5; }
16723   else
16724     ac_cv_sizeof_unsigned_int=0
16725   fi
16726fi
16727
16728fi
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16730$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16731
16732
16733
16734cat >>confdefs.h <<_ACEOF
16735#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16736_ACEOF
16737
16738
16739
16740# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
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 signed long" >&5
16746$as_echo_n "checking size of signed long... " >&6; }
16747if ${ac_cv_sizeof_signed_long+:} false; then :
16748  $as_echo_n "(cached) " >&6
16749else
16750  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
16751
16752else
16753  if test "$ac_cv_type_signed_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 (signed long)
16757See \`config.log' for more details" "$LINENO" 5; }
16758   else
16759     ac_cv_sizeof_signed_long=0
16760   fi
16761fi
16762
16763fi
16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16765$as_echo "$ac_cv_sizeof_signed_long" >&6; }
16766
16767
16768
16769cat >>confdefs.h <<_ACEOF
16770#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
16771_ACEOF
16772
16773
16774
16775# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
16776# The cast to long int works around a bug in the HP C Compiler
16777# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16778# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16779# This bug is HP SR number 8606223364.
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16781$as_echo_n "checking size of unsigned long... " >&6; }
16782if ${ac_cv_sizeof_unsigned_long+:} false; then :
16783  $as_echo_n "(cached) " >&6
16784else
16785  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16786
16787else
16788  if test "$ac_cv_type_unsigned_long" = yes; then
16789     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16791as_fn_error 77 "cannot compute sizeof (unsigned long)
16792See \`config.log' for more details" "$LINENO" 5; }
16793   else
16794     ac_cv_sizeof_unsigned_long=0
16795   fi
16796fi
16797
16798fi
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16800$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16801
16802
16803
16804cat >>confdefs.h <<_ACEOF
16805#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16806_ACEOF
16807
16808
16809
16810# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
16811# If 'long long' is not supported then the value defined is zero.
16812# The cast to long int works around a bug in the HP C Compiler
16813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16815# This bug is HP SR number 8606223364.
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
16817$as_echo_n "checking size of signed long long... " >&6; }
16818if ${ac_cv_sizeof_signed_long_long+:} false; then :
16819  $as_echo_n "(cached) " >&6
16820else
16821  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
16822
16823else
16824  if test "$ac_cv_type_signed_long_long" = yes; then
16825     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16827as_fn_error 77 "cannot compute sizeof (signed long long)
16828See \`config.log' for more details" "$LINENO" 5; }
16829   else
16830     ac_cv_sizeof_signed_long_long=0
16831   fi
16832fi
16833
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
16836$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
16837
16838
16839
16840cat >>confdefs.h <<_ACEOF
16841#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
16842_ACEOF
16843
16844
16845
16846# Obtain size of a 'unsigned long long' and define as
16847# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
16848# supported then the value defined is zero.
16849# The cast to long int works around a bug in the HP C Compiler
16850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16852# This bug is HP SR number 8606223364.
16853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16854$as_echo_n "checking size of unsigned long long... " >&6; }
16855if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16856  $as_echo_n "(cached) " >&6
16857else
16858  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
16859
16860else
16861  if test "$ac_cv_type_unsigned_long_long" = yes; then
16862     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16864as_fn_error 77 "cannot compute sizeof (unsigned long long)
16865See \`config.log' for more details" "$LINENO" 5; }
16866   else
16867     ac_cv_sizeof_unsigned_long_long=0
16868   fi
16869fi
16870
16871fi
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16873$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
16874
16875
16876
16877cat >>confdefs.h <<_ACEOF
16878#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16879_ACEOF
16880
16881
16882
16883# Obtain the size of an 'unsigned char *' and define as
16884# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
16885# ac_cv_sizeof_unsigned_char_p.
16886# The cast to long int works around a bug in the HP C Compiler
16887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16889# This bug is HP SR number 8606223364.
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
16891$as_echo_n "checking size of unsigned char *... " >&6; }
16892if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
16893  $as_echo_n "(cached) " >&6
16894else
16895  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
16896
16897else
16898  if test "$ac_cv_type_unsigned_char_p" = yes; then
16899     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16901as_fn_error 77 "cannot compute sizeof (unsigned char *)
16902See \`config.log' for more details" "$LINENO" 5; }
16903   else
16904     ac_cv_sizeof_unsigned_char_p=0
16905   fi
16906fi
16907
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
16910$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
16911
16912
16913
16914cat >>confdefs.h <<_ACEOF
16915#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
16916_ACEOF
16917
16918
16919
16920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
16921$as_echo_n "checking for signed 8-bit type... " >&6; }
16922INT8_T='signed char'
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
16924$as_echo "$INT8_T" >&6; }
16925
16926cat >>confdefs.h <<_ACEOF
16927#define TIFF_INT8_T $INT8_T
16928_ACEOF
16929
16930
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
16932$as_echo_n "checking for unsigned 8-bit type... " >&6; }
16933UINT8_T='unsigned char'
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
16935$as_echo "$UINT8_T" >&6; }
16936
16937cat >>confdefs.h <<_ACEOF
16938#define TIFF_UINT8_T $UINT8_T
16939_ACEOF
16940
16941
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
16943$as_echo_n "checking for signed 16-bit type... " >&6; }
16944INT16_T='signed short'
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
16946$as_echo "$INT16_T" >&6; }
16947
16948cat >>confdefs.h <<_ACEOF
16949#define TIFF_INT16_T $INT16_T
16950_ACEOF
16951
16952
16953
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
16955$as_echo_n "checking for unsigned 16-bit type... " >&6; }
16956UINT16_T='unsigned short'
16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
16958$as_echo "$UINT16_T" >&6; }
16959
16960cat >>confdefs.h <<_ACEOF
16961#define TIFF_UINT16_T $UINT16_T
16962_ACEOF
16963
16964
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
16966$as_echo_n "checking for signed 32-bit type... " >&6; }
16967INT32_T='none'
16968INT32_FORMAT='none'
16969if test $ac_cv_sizeof_signed_int -eq 4
16970then
16971  INT32_T='signed int'
16972  INT32_FORMAT='"%d"'
16973elif test $ac_cv_sizeof_signed_long -eq 4
16974then
16975  INT32_T='signed long'
16976  INT32_FORMAT='"%ld"'
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
16979$as_echo "$INT32_T" >&6; }
16980
16981cat >>confdefs.h <<_ACEOF
16982#define TIFF_INT32_T $INT32_T
16983_ACEOF
16984
16985
16986cat >>confdefs.h <<_ACEOF
16987#define TIFF_INT32_FORMAT $INT32_FORMAT
16988_ACEOF
16989
16990
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
16992$as_echo_n "checking for unsigned 32-bit type... " >&6; }
16993UINT32_T='none'
16994UINT32_FORMAT='none'
16995if test $ac_cv_sizeof_unsigned_int -eq 4
16996then
16997  UINT32_T='unsigned int'
16998  UINT32_FORMAT='"%u"'
16999elif test $ac_cv_sizeof_unsigned_long -eq 4
17000then
17001  UINT32_T='unsigned long'
17002  UINT32_FORMAT='"%lu"'
17003fi
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17005$as_echo "$UINT32_T" >&6; }
17006
17007cat >>confdefs.h <<_ACEOF
17008#define TIFF_UINT32_T $UINT32_T
17009_ACEOF
17010
17011
17012cat >>confdefs.h <<_ACEOF
17013#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17014_ACEOF
17015
17016
17017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17018$as_echo_n "checking for signed 64-bit type... " >&6; }
17019INT64_T='none'
17020INT64_FORMAT='none'
17021if test $ac_cv_sizeof_signed_long -eq 8
17022then
17023  INT64_T='signed long'
17024  INT64_FORMAT='"%ld"'
17025elif test $ac_cv_sizeof_signed_long_long -eq 8
17026then
17027  INT64_T='signed long long'
17028  case "${host_os}" in
17029    mingw32*)
17030      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17031      INT64_FORMAT='"%I64d"'
17032      ;;
17033    *)
17034      INT64_FORMAT='"%lld"'
17035      ;;
17036  esac
17037fi
17038
17039
17040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17041$as_echo "$INT64_T" >&6; }
17042
17043cat >>confdefs.h <<_ACEOF
17044#define TIFF_INT64_T $INT64_T
17045_ACEOF
17046
17047
17048cat >>confdefs.h <<_ACEOF
17049#define TIFF_INT64_FORMAT $INT64_FORMAT
17050_ACEOF
17051
17052
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17054$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17055UINT64_T='none'
17056UINT64_FORMAT='none'
17057if test $ac_cv_sizeof_unsigned_long -eq 8
17058then
17059  UINT64_T='unsigned long'
17060  UINT64_FORMAT='"%lu"'
17061elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17062then
17063  UINT64_T='unsigned long long'
17064  case "${host_os}" in
17065    mingw32*)
17066      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17067      UINT64_FORMAT='"%I64u"'
17068      ;;
17069    *)
17070      UINT64_FORMAT='"%llu"'
17071      ;;
17072  esac
17073fi
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17075$as_echo "$UINT64_T" >&6; }
17076
17077cat >>confdefs.h <<_ACEOF
17078#define TIFF_UINT64_T $UINT64_T
17079_ACEOF
17080
17081
17082cat >>confdefs.h <<_ACEOF
17083#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17084_ACEOF
17085
17086
17087# Determine TIFF equivalent of ssize_t
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17089$as_echo_n "checking for signed size type... " >&6; }
17090SSIZE_T='unknown'
17091SSIZE_FORMAT='unknown'
17092if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17093then
17094  SSIZE_T='signed long'
17095  SSIZE_FORMAT='"%ld"'
17096elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17097then
17098  SSIZE_T='signed long long'
17099  SSIZE_FORMAT='"%lld"'
17100fi
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17102$as_echo "$SSIZE_T" >&6; }
17103
17104cat >>confdefs.h <<_ACEOF
17105#define TIFF_SSIZE_T $SSIZE_T
17106_ACEOF
17107
17108
17109cat >>confdefs.h <<_ACEOF
17110#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17111_ACEOF
17112
17113
17114# Determine the type to use for the difference between two pointers.
17115# We will default to the POSIX ptrdiff_t if it is available, but will
17116# be prepared for the case when it is not.
17117PTRDIFF_T='unknown'
17118PTRDIFF_FORMAT='"%ld"'
17119ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17120if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17121  PTRDIFF_T=ptrdiff_t
17122fi
17123
17124if test $PTRDIFF_T = unknown
17125then
17126  PTRDIFF_T=$SSIZE_T
17127  PTRDIFF_FORMAT=$SSIZE_FORMAT
17128fi
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17130$as_echo_n "checking for pointer difference type... " >&6; }
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17132$as_echo "$PTRDIFF_T" >&6; }
17133
17134cat >>confdefs.h <<_ACEOF
17135#define TIFF_PTRDIFF_T $PTRDIFF_T
17136_ACEOF
17137
17138
17139cat >>confdefs.h <<_ACEOF
17140#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17141_ACEOF
17142
17143
17144ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17145#if HAVE_INTTYPES_H
17146# include <inttypes.h>
17147#endif
17148
17149"
17150if test "x$ac_cv_type_int8" = xyes; then :
17151
17152cat >>confdefs.h <<_ACEOF
17153#define HAVE_INT8 1
17154_ACEOF
17155
17156
17157fi
17158ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17159#if HAVE_INTTYPES_H
17160# include <inttypes.h>
17161#endif
17162
17163"
17164if test "x$ac_cv_type_int16" = xyes; then :
17165
17166cat >>confdefs.h <<_ACEOF
17167#define HAVE_INT16 1
17168_ACEOF
17169
17170
17171fi
17172ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17173#if HAVE_INTTYPES_H
17174# include <inttypes.h>
17175#endif
17176
17177"
17178if test "x$ac_cv_type_int32" = xyes; then :
17179
17180cat >>confdefs.h <<_ACEOF
17181#define HAVE_INT32 1
17182_ACEOF
17183
17184
17185fi
17186
17187
17188for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17189do :
17190  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17192if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17193  cat >>confdefs.h <<_ACEOF
17194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195_ACEOF
17196
17197fi
17198done
17199
17200
17201ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17202if test "x$ac_cv_func_getopt" = xyes; then :
17203  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17204
17205else
17206  case " $LIBOBJS " in
17207  *" getopt.$ac_objext "* ) ;;
17208  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17209 ;;
17210esac
17211
17212fi
17213
17214
17215ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17216if test "x$ac_cv_func_strcasecmp" = xyes; then :
17217  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17218
17219else
17220  case " $LIBOBJS " in
17221  *" strcasecmp.$ac_objext "* ) ;;
17222  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17223 ;;
17224esac
17225
17226fi
17227
17228
17229ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17230if test "x$ac_cv_func_strtoul" = xyes; then :
17231  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17232
17233else
17234  case " $LIBOBJS " in
17235  *" strtoul.$ac_objext "* ) ;;
17236  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17237 ;;
17238esac
17239
17240fi
17241
17242
17243ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17244if test "x$ac_cv_func_strtoull" = xyes; then :
17245  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17246
17247else
17248  case " $LIBOBJS " in
17249  *" strtoull.$ac_objext "* ) ;;
17250  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17251 ;;
17252esac
17253
17254fi
17255
17256
17257ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17258if test "x$ac_cv_func_lfind" = xyes; then :
17259  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17260
17261else
17262  case " $LIBOBJS " in
17263  *" lfind.$ac_objext "* ) ;;
17264  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17265 ;;
17266esac
17267
17268fi
17269
17270
17271
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17273$as_echo_n "checking native cpu bit order... " >&6; }
17274case "$host_cpu" in
17275    i*86*|x86_64*)
17276        HOST_FILLORDER=FILLORDER_LSB2MSB
17277	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17278$as_echo "lsb2msb" >&6; }
17279	;;
17280    *)
17281	HOST_FILLORDER=FILLORDER_MSB2LSB
17282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17283$as_echo "msb2lsb" >&6; }
17284        ;;
17285esac
17286
17287cat >>confdefs.h <<_ACEOF
17288#define HOST_FILLORDER $HOST_FILLORDER
17289_ACEOF
17290
17291
17292if test "$ac_cv_c_bigendian" = yes ; then
17293    HOST_BIGENDIAN=1
17294else
17295    HOST_BIGENDIAN=0
17296fi
17297
17298cat >>confdefs.h <<_ACEOF
17299#define HOST_BIGENDIAN $HOST_BIGENDIAN
17300_ACEOF
17301
17302
17303#_POSIX_C_SOURCE=2
17304#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17305
17306HAVE_IEEEFP=1
17307
17308cat >>confdefs.h <<_ACEOF
17309#define HAVE_IEEEFP $HAVE_IEEEFP
17310_ACEOF
17311
17312
17313
17314# Check whether --enable-rpath was given.
17315if test "${enable_rpath+set}" = set; then :
17316  enableval=$enable_rpath; HAVE_RPATH=$enableval
17317else
17318  HAVE_RPATH=no
17319fi
17320
17321 if test "$HAVE_RPATH" = "yes"; then
17322  HAVE_RPATH_TRUE=
17323  HAVE_RPATH_FALSE='#'
17324else
17325  HAVE_RPATH_TRUE='#'
17326  HAVE_RPATH_FALSE=
17327fi
17328
17329
17330
17331# Check whether --enable-largefile was given.
17332if test "${enable_largefile+set}" = set; then :
17333  enableval=$enable_largefile;
17334fi
17335
17336if test "$enable_largefile" != no; then
17337
17338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17339$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17340if ${ac_cv_sys_largefile_CC+:} false; then :
17341  $as_echo_n "(cached) " >&6
17342else
17343  ac_cv_sys_largefile_CC=no
17344     if test "$GCC" != yes; then
17345       ac_save_CC=$CC
17346       while :; do
17347	 # IRIX 6.2 and later do not support large files by default,
17348	 # so use the C compiler's -n32 option if that helps.
17349	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h.  */
17351#include <sys/types.h>
17352 /* Check that off_t can represent 2**63 - 1 correctly.
17353    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17354    since some C++ compilers masquerading as C compilers
17355    incorrectly reject 9223372036854775807.  */
17356#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17357  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17358		       && LARGE_OFF_T % 2147483647 == 1)
17359		      ? 1 : -1];
17360int
17361main ()
17362{
17363
17364  ;
17365  return 0;
17366}
17367_ACEOF
17368	 if ac_fn_c_try_compile "$LINENO"; then :
17369  break
17370fi
17371rm -f core conftest.err conftest.$ac_objext
17372	 CC="$CC -n32"
17373	 if ac_fn_c_try_compile "$LINENO"; then :
17374  ac_cv_sys_largefile_CC=' -n32'; break
17375fi
17376rm -f core conftest.err conftest.$ac_objext
17377	 break
17378       done
17379       CC=$ac_save_CC
17380       rm -f conftest.$ac_ext
17381    fi
17382fi
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17384$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17385  if test "$ac_cv_sys_largefile_CC" != no; then
17386    CC=$CC$ac_cv_sys_largefile_CC
17387  fi
17388
17389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17390$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17391if ${ac_cv_sys_file_offset_bits+:} false; then :
17392  $as_echo_n "(cached) " >&6
17393else
17394  while :; do
17395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396/* end confdefs.h.  */
17397#include <sys/types.h>
17398 /* Check that off_t can represent 2**63 - 1 correctly.
17399    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17400    since some C++ compilers masquerading as C compilers
17401    incorrectly reject 9223372036854775807.  */
17402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17403  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17404		       && LARGE_OFF_T % 2147483647 == 1)
17405		      ? 1 : -1];
17406int
17407main ()
17408{
17409
17410  ;
17411  return 0;
17412}
17413_ACEOF
17414if ac_fn_c_try_compile "$LINENO"; then :
17415  ac_cv_sys_file_offset_bits=no; break
17416fi
17417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419/* end confdefs.h.  */
17420#define _FILE_OFFSET_BITS 64
17421#include <sys/types.h>
17422 /* Check that off_t can represent 2**63 - 1 correctly.
17423    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17424    since some C++ compilers masquerading as C compilers
17425    incorrectly reject 9223372036854775807.  */
17426#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17427  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17428		       && LARGE_OFF_T % 2147483647 == 1)
17429		      ? 1 : -1];
17430int
17431main ()
17432{
17433
17434  ;
17435  return 0;
17436}
17437_ACEOF
17438if ac_fn_c_try_compile "$LINENO"; then :
17439  ac_cv_sys_file_offset_bits=64; break
17440fi
17441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442  ac_cv_sys_file_offset_bits=unknown
17443  break
17444done
17445fi
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17447$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17448case $ac_cv_sys_file_offset_bits in #(
17449  no | unknown) ;;
17450  *)
17451cat >>confdefs.h <<_ACEOF
17452#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17453_ACEOF
17454;;
17455esac
17456rm -rf conftest*
17457  if test $ac_cv_sys_file_offset_bits = unknown; then
17458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17459$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17460if ${ac_cv_sys_large_files+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  while :; do
17464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465/* end confdefs.h.  */
17466#include <sys/types.h>
17467 /* Check that off_t can represent 2**63 - 1 correctly.
17468    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17469    since some C++ compilers masquerading as C compilers
17470    incorrectly reject 9223372036854775807.  */
17471#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17472  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17473		       && LARGE_OFF_T % 2147483647 == 1)
17474		      ? 1 : -1];
17475int
17476main ()
17477{
17478
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_compile "$LINENO"; then :
17484  ac_cv_sys_large_files=no; break
17485fi
17486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488/* end confdefs.h.  */
17489#define _LARGE_FILES 1
17490#include <sys/types.h>
17491 /* Check that off_t can represent 2**63 - 1 correctly.
17492    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17493    since some C++ compilers masquerading as C compilers
17494    incorrectly reject 9223372036854775807.  */
17495#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17496  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17497		       && LARGE_OFF_T % 2147483647 == 1)
17498		      ? 1 : -1];
17499int
17500main ()
17501{
17502
17503  ;
17504  return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_compile "$LINENO"; then :
17508  ac_cv_sys_large_files=1; break
17509fi
17510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511  ac_cv_sys_large_files=unknown
17512  break
17513done
17514fi
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17516$as_echo "$ac_cv_sys_large_files" >&6; }
17517case $ac_cv_sys_large_files in #(
17518  no | unknown) ;;
17519  *)
17520cat >>confdefs.h <<_ACEOF
17521#define _LARGE_FILES $ac_cv_sys_large_files
17522_ACEOF
17523;;
17524esac
17525rm -rf conftest*
17526  fi
17527fi
17528
17529
17530
17531LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17532
17533
17534# Check whether --with-docdir was given.
17535if test "${with_docdir+set}" = set; then :
17536  withval=$with_docdir;
17537fi
17538
17539if test "x$with_docdir" != "x" ; then
17540  LIBTIFF_DOCDIR=$with_docdir
17541fi
17542
17543
17544
17545
17546# Check whether --enable-ccitt was given.
17547if test "${enable_ccitt+set}" = set; then :
17548  enableval=$enable_ccitt; HAVE_CCITT=$enableval
17549else
17550  HAVE_CCITT=yes
17551fi
17552
17553
17554if test "$HAVE_CCITT" = "yes" ; then
17555
17556$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
17557
17558fi
17559
17560# Check whether --enable-packbits was given.
17561if test "${enable_packbits+set}" = set; then :
17562  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17563else
17564  HAVE_PACKBITS=yes
17565fi
17566
17567
17568if test "$HAVE_PACKBITS" = "yes" ; then
17569
17570$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
17571
17572fi
17573
17574# Check whether --enable-lzw was given.
17575if test "${enable_lzw+set}" = set; then :
17576  enableval=$enable_lzw; HAVE_LZW=$enableval
17577else
17578  HAVE_LZW=yes
17579fi
17580
17581
17582if test "$HAVE_LZW" = "yes" ; then
17583
17584$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
17585
17586fi
17587
17588# Check whether --enable-thunder was given.
17589if test "${enable_thunder+set}" = set; then :
17590  enableval=$enable_thunder; HAVE_THUNDER=$enableval
17591else
17592  HAVE_THUNDER=yes
17593fi
17594
17595
17596if test "$HAVE_THUNDER" = "yes" ; then
17597
17598$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
17599
17600fi
17601
17602HAVE_NEXT=yes
17603
17604# Check whether --enable-next was given.
17605if test "${enable_next+set}" = set; then :
17606  enableval=$enable_next; HAVE_NEXT=$enableval
17607else
17608  HAVE_NEXT=yes
17609fi
17610
17611
17612if test "$HAVE_NEXT" = "yes" ; then
17613
17614$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
17615
17616fi
17617
17618# Check whether --enable-logluv was given.
17619if test "${enable_logluv+set}" = set; then :
17620  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
17621else
17622  HAVE_LOGLUV=yes
17623fi
17624
17625
17626if test "$HAVE_LOGLUV" = "yes" ; then
17627
17628$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17629
17630fi
17631
17632
17633# Check whether --enable-mdi was given.
17634if test "${enable_mdi+set}" = set; then :
17635  enableval=$enable_mdi; HAVE_MDI=$enableval
17636else
17637  HAVE_MDI=yes
17638fi
17639
17640
17641if test "$HAVE_MDI" = "yes" ; then
17642
17643$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
17644
17645fi
17646
17647
17648HAVE_ZLIB=no
17649
17650# Check whether --enable-zlib was given.
17651if test "${enable_zlib+set}" = set; then :
17652  enableval=$enable_zlib;
17653fi
17654
17655
17656# Check whether --with-zlib-include-dir was given.
17657if test "${with_zlib_include_dir+set}" = set; then :
17658  withval=$with_zlib_include_dir;
17659fi
17660
17661
17662# Check whether --with-zlib-lib-dir was given.
17663if test "${with_zlib_lib_dir+set}" = set; then :
17664  withval=$with_zlib_lib_dir;
17665fi
17666
17667
17668if test "x$enable_zlib" != "xno" ; then
17669
17670  if test "x$with_zlib_lib_dir" != "x" ; then
17671    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17672  fi
17673
17674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17675$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17676if ${ac_cv_lib_z_inflateEnd+:} false; then :
17677  $as_echo_n "(cached) " >&6
17678else
17679  ac_check_lib_save_LIBS=$LIBS
17680LIBS="-lz  $LIBS"
17681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682/* end confdefs.h.  */
17683
17684/* Override any GCC internal prototype to avoid an error.
17685   Use char because int might match the return type of a GCC
17686   builtin and then its argument prototype would still apply.  */
17687#ifdef __cplusplus
17688extern "C"
17689#endif
17690char inflateEnd ();
17691int
17692main ()
17693{
17694return inflateEnd ();
17695  ;
17696  return 0;
17697}
17698_ACEOF
17699if ac_fn_c_try_link "$LINENO"; then :
17700  ac_cv_lib_z_inflateEnd=yes
17701else
17702  ac_cv_lib_z_inflateEnd=no
17703fi
17704rm -f core conftest.err conftest.$ac_objext \
17705    conftest$ac_exeext conftest.$ac_ext
17706LIBS=$ac_check_lib_save_LIBS
17707fi
17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17709$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17710if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17711  zlib_lib=yes
17712else
17713  zlib_lib=no
17714fi
17715
17716  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
17717    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
17718  fi
17719
17720  if test "x$with_zlib_include_dir" != "x" ; then
17721    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
17722  fi
17723  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17724if test "x$ac_cv_header_zlib_h" = xyes; then :
17725  zlib_h=yes
17726else
17727  zlib_h=no
17728fi
17729
17730
17731  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
17732    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
17733  fi
17734
17735  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17736    HAVE_ZLIB=yes
17737  fi
17738
17739fi
17740
17741if test "$HAVE_ZLIB" = "yes" ; then
17742
17743$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
17744
17745  LIBS="-lz $LIBS"
17746  tiff_libs_private="-lz ${tiff_libs_private}"
17747
17748  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
17749    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
17750  fi
17751
17752fi
17753
17754
17755# Check whether --enable-pixarlog was given.
17756if test "${enable_pixarlog+set}" = set; then :
17757  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17758else
17759  HAVE_PIXARLOG=yes
17760fi
17761
17762
17763if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
17764
17765$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
17766
17767else
17768  HAVE_PIXARLOG=no
17769fi
17770
17771
17772HAVE_JPEG=no
17773
17774# Check whether --enable-jpeg was given.
17775if test "${enable_jpeg+set}" = set; then :
17776  enableval=$enable_jpeg;
17777fi
17778
17779
17780# Check whether --with-jpeg-include-dir was given.
17781if test "${with_jpeg_include_dir+set}" = set; then :
17782  withval=$with_jpeg_include_dir;
17783fi
17784
17785
17786# Check whether --with-jpeg-lib-dir was given.
17787if test "${with_jpeg_lib_dir+set}" = set; then :
17788  withval=$with_jpeg_lib_dir;
17789fi
17790
17791
17792if test "x$enable_jpeg" != "xno" ; then
17793
17794  if test "x$with_jpeg_lib_dir" != "x" ; then
17795    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
17796
17797  fi
17798
17799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
17800$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
17801if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17802  $as_echo_n "(cached) " >&6
17803else
17804  ac_check_lib_save_LIBS=$LIBS
17805LIBS="-ljpeg  $LIBS"
17806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807/* end confdefs.h.  */
17808
17809/* Override any GCC internal prototype to avoid an error.
17810   Use char because int might match the return type of a GCC
17811   builtin and then its argument prototype would still apply.  */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815char jpeg_read_scanlines ();
17816int
17817main ()
17818{
17819return jpeg_read_scanlines ();
17820  ;
17821  return 0;
17822}
17823_ACEOF
17824if ac_fn_c_try_link "$LINENO"; then :
17825  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17826else
17827  ac_cv_lib_jpeg_jpeg_read_scanlines=no
17828fi
17829rm -f core conftest.err conftest.$ac_objext \
17830    conftest$ac_exeext conftest.$ac_ext
17831LIBS=$ac_check_lib_save_LIBS
17832fi
17833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
17834$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
17835if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
17836  jpeg_lib=yes
17837else
17838  jpeg_lib=no
17839fi
17840
17841  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
17842    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
17843  fi
17844
17845  if test "x$with_jpeg_include_dir" != "x" ; then
17846    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
17847  fi
17848  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17849if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17850  jpeg_h=yes
17851else
17852  jpeg_h=no
17853fi
17854
17855
17856  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
17857    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
17858  fi
17859
17860  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
17861    HAVE_JPEG=yes
17862  fi
17863
17864fi
17865
17866if test "$HAVE_JPEG" = "yes" ; then
17867
17868$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
17869
17870  LIBS="-ljpeg $LIBS"
17871  tiff_libs_private="-ljpeg ${tiff_libs_private}"
17872
17873  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
17874    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
17875  fi
17876
17877fi
17878
17879
17880# Check whether --enable-old-jpeg was given.
17881if test "${enable_old_jpeg+set}" = set; then :
17882  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
17883else
17884  HAVE_OJPEG=yes
17885fi
17886
17887
17888if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
17889
17890$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
17891
17892else
17893  HAVE_OJPEG=no
17894fi
17895
17896
17897HAVE_JBIG=no
17898
17899# Check whether --enable-jbig was given.
17900if test "${enable_jbig+set}" = set; then :
17901  enableval=$enable_jbig;
17902fi
17903
17904
17905# Check whether --with-jbig-include-dir was given.
17906if test "${with_jbig_include_dir+set}" = set; then :
17907  withval=$with_jbig_include_dir;
17908fi
17909
17910
17911# Check whether --with-jbig-lib-dir was given.
17912if test "${with_jbig_lib_dir+set}" = set; then :
17913  withval=$with_jbig_lib_dir;
17914fi
17915
17916
17917if test "x$enable_jbig" != "xno" ; then
17918
17919  if test "x$with_jbig_lib_dir" != "x" ; then
17920    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
17921
17922  fi
17923
17924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
17925$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
17926if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
17927  $as_echo_n "(cached) " >&6
17928else
17929  ac_check_lib_save_LIBS=$LIBS
17930LIBS="-ljbig  $LIBS"
17931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h.  */
17933
17934/* Override any GCC internal prototype to avoid an error.
17935   Use char because int might match the return type of a GCC
17936   builtin and then its argument prototype would still apply.  */
17937#ifdef __cplusplus
17938extern "C"
17939#endif
17940char jbg_dec_init ();
17941int
17942main ()
17943{
17944return jbg_dec_init ();
17945  ;
17946  return 0;
17947}
17948_ACEOF
17949if ac_fn_c_try_link "$LINENO"; then :
17950  ac_cv_lib_jbig_jbg_dec_init=yes
17951else
17952  ac_cv_lib_jbig_jbg_dec_init=no
17953fi
17954rm -f core conftest.err conftest.$ac_objext \
17955    conftest$ac_exeext conftest.$ac_ext
17956LIBS=$ac_check_lib_save_LIBS
17957fi
17958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
17959$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
17960if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
17961  jbig_lib=yes
17962else
17963  jbig_lib=no
17964fi
17965
17966  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
17967    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
17968  fi
17969
17970  if test "x$with_jbig_include_dir" != "x" ; then
17971    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
17972  fi
17973  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
17974if test "x$ac_cv_header_jbig_h" = xyes; then :
17975  jbig_h=yes
17976else
17977  jbig_h=no
17978fi
17979
17980
17981  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
17982    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
17983  fi
17984
17985  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
17986    HAVE_JBIG=yes
17987  fi
17988
17989fi
17990
17991if test "$HAVE_JBIG" = "yes" ; then
17992
17993$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
17994
17995  LIBS="-ljbig $LIBS"
17996  tiff_libs_private="-ljbig ${tiff_libs_private}"
17997
17998  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
17999    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18000  fi
18001
18002  # Older versions of jbigkit lack jbg_newlen
18003  for ac_func in jbg_newlen
18004do :
18005  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18006if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18007  cat >>confdefs.h <<_ACEOF
18008#define HAVE_JBG_NEWLEN 1
18009_ACEOF
18010
18011fi
18012done
18013
18014
18015fi
18016
18017
18018HAVE_LZMA=no
18019
18020# Check whether --enable-lzma was given.
18021if test "${enable_lzma+set}" = set; then :
18022  enableval=$enable_lzma;
18023fi
18024
18025
18026# Check whether --with-lzma-include-dir was given.
18027if test "${with_lzma_include_dir+set}" = set; then :
18028  withval=$with_lzma_include_dir;
18029fi
18030
18031
18032# Check whether --with-lzma-lib-dir was given.
18033if test "${with_lzma_lib_dir+set}" = set; then :
18034  withval=$with_lzma_lib_dir;
18035fi
18036
18037
18038if test "x$enable_lzma" != "xno" ; then
18039
18040  if test "x$with_lzma_lib_dir" != "x" ; then
18041    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18042  fi
18043
18044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18045$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18046if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18047  $as_echo_n "(cached) " >&6
18048else
18049  ac_check_lib_save_LIBS=$LIBS
18050LIBS="-llzma  $LIBS"
18051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053
18054/* Override any GCC internal prototype to avoid an error.
18055   Use char because int might match the return type of a GCC
18056   builtin and then its argument prototype would still apply.  */
18057#ifdef __cplusplus
18058extern "C"
18059#endif
18060char lzma_code ();
18061int
18062main ()
18063{
18064return lzma_code ();
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069if ac_fn_c_try_link "$LINENO"; then :
18070  ac_cv_lib_lzma_lzma_code=yes
18071else
18072  ac_cv_lib_lzma_lzma_code=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext \
18075    conftest$ac_exeext conftest.$ac_ext
18076LIBS=$ac_check_lib_save_LIBS
18077fi
18078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18079$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18080if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18081  lzma_lib=yes
18082else
18083  lzma_lib=no
18084fi
18085
18086  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18087    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18088  fi
18089
18090  if test "x$with_lzma_include_dir" != "x" ; then
18091    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18092  fi
18093  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18094if test "x$ac_cv_header_lzma_h" = xyes; then :
18095  lzma_h=yes
18096else
18097  lzma_h=no
18098fi
18099
18100
18101  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18102    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18103  fi
18104
18105  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18106    HAVE_LZMA=yes
18107  fi
18108
18109fi
18110
18111if test "$HAVE_LZMA" = "yes" ; then
18112
18113$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18114
18115  LIBS="-llzma $LIBS"
18116  tiff_libs_private="-llzma ${tiff_libs_private}"
18117
18118  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18119    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18120  fi
18121
18122fi
18123
18124
18125HAVE_JPEG12=no
18126
18127# Check whether --enable-jpeg12 was given.
18128if test "${enable_jpeg12+set}" = set; then :
18129  enableval=$enable_jpeg12;
18130fi
18131
18132
18133# Check whether --with-jpeg12-include-dir was given.
18134if test "${with_jpeg12_include_dir+set}" = set; then :
18135  withval=$with_jpeg12_include_dir;
18136fi
18137
18138
18139# Check whether --with-jpeg12-lib was given.
18140if test "${with_jpeg12_lib+set}" = set; then :
18141  withval=$with_jpeg12_lib;
18142fi
18143
18144
18145if test "x$enable_jpeg12" == "xyes" ; then
18146
18147  if test "x$with_jpeg12_lib" != "x" ; then
18148    LIBS="$with_jpeg12_lib $LIBS"
18149  fi
18150
18151  HAVE_JPEG12=yes
18152
18153
18154$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18155
18156  if test "x$with_jpeg12_include_dir" != "x" ; then
18157
18158cat >>confdefs.h <<_ACEOF
18159#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18160_ACEOF
18161
18162  fi
18163fi
18164
18165
18166
18167# Check whether --enable-cxx was given.
18168if test "${enable_cxx+set}" = set; then :
18169  enableval=$enable_cxx; HAVE_CXX=$enableval
18170else
18171  HAVE_CXX=yes
18172fi
18173
18174
18175if test "$HAVE_CXX" = "yes" ; then
18176
18177$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18178
18179else
18180  HAVE_CXX=no
18181fi
18182
18183 if test "$HAVE_CXX" = "yes"; then
18184  HAVE_CXX_TRUE=
18185  HAVE_CXX_FALSE='#'
18186else
18187  HAVE_CXX_TRUE='#'
18188  HAVE_CXX_FALSE=
18189fi
18190
18191
18192
18193HAVE_OPENGL=no
18194
18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18196$as_echo_n "checking for X... " >&6; }
18197
18198
18199# Check whether --with-x was given.
18200if test "${with_x+set}" = set; then :
18201  withval=$with_x;
18202fi
18203
18204# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18205if test "x$with_x" = xno; then
18206  # The user explicitly disabled X.
18207  have_x=disabled
18208else
18209  case $x_includes,$x_libraries in #(
18210    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18211    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18212  $as_echo_n "(cached) " >&6
18213else
18214  # One or both of the vars are not set, and there is no cached value.
18215ac_x_includes=no ac_x_libraries=no
18216rm -f -r conftest.dir
18217if mkdir conftest.dir; then
18218  cd conftest.dir
18219  cat >Imakefile <<'_ACEOF'
18220incroot:
18221	@echo incroot='${INCROOT}'
18222usrlibdir:
18223	@echo usrlibdir='${USRLIBDIR}'
18224libdir:
18225	@echo libdir='${LIBDIR}'
18226_ACEOF
18227  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18228    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18229    for ac_var in incroot usrlibdir libdir; do
18230      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18231    done
18232    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18233    for ac_extension in a so sl dylib la dll; do
18234      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18235	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18236	ac_im_usrlibdir=$ac_im_libdir; break
18237      fi
18238    done
18239    # Screen out bogus values from the imake configuration.  They are
18240    # bogus both because they are the default anyway, and because
18241    # using them would break gcc on systems where it needs fixed includes.
18242    case $ac_im_incroot in
18243	/usr/include) ac_x_includes= ;;
18244	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18245    esac
18246    case $ac_im_usrlibdir in
18247	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18248	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18249    esac
18250  fi
18251  cd ..
18252  rm -f -r conftest.dir
18253fi
18254
18255# Standard set of common directories for X headers.
18256# Check X11 before X11Rn because it is often a symlink to the current release.
18257ac_x_header_dirs='
18258/usr/X11/include
18259/usr/X11R7/include
18260/usr/X11R6/include
18261/usr/X11R5/include
18262/usr/X11R4/include
18263
18264/usr/include/X11
18265/usr/include/X11R7
18266/usr/include/X11R6
18267/usr/include/X11R5
18268/usr/include/X11R4
18269
18270/usr/local/X11/include
18271/usr/local/X11R7/include
18272/usr/local/X11R6/include
18273/usr/local/X11R5/include
18274/usr/local/X11R4/include
18275
18276/usr/local/include/X11
18277/usr/local/include/X11R7
18278/usr/local/include/X11R6
18279/usr/local/include/X11R5
18280/usr/local/include/X11R4
18281
18282/usr/X386/include
18283/usr/x386/include
18284/usr/XFree86/include/X11
18285
18286/usr/include
18287/usr/local/include
18288/usr/unsupported/include
18289/usr/athena/include
18290/usr/local/x11r5/include
18291/usr/lpp/Xamples/include
18292
18293/usr/openwin/include
18294/usr/openwin/share/include'
18295
18296if test "$ac_x_includes" = no; then
18297  # Guess where to find include files, by looking for Xlib.h.
18298  # First, try using that file with no special directory specified.
18299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300/* end confdefs.h.  */
18301#include <X11/Xlib.h>
18302_ACEOF
18303if ac_fn_c_try_cpp "$LINENO"; then :
18304  # We can compile using X headers with no special include directory.
18305ac_x_includes=
18306else
18307  for ac_dir in $ac_x_header_dirs; do
18308  if test -r "$ac_dir/X11/Xlib.h"; then
18309    ac_x_includes=$ac_dir
18310    break
18311  fi
18312done
18313fi
18314rm -f conftest.err conftest.i conftest.$ac_ext
18315fi # $ac_x_includes = no
18316
18317if test "$ac_x_libraries" = no; then
18318  # Check for the libraries.
18319  # See if we find them without any special options.
18320  # Don't add to $LIBS permanently.
18321  ac_save_LIBS=$LIBS
18322  LIBS="-lX11 $LIBS"
18323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324/* end confdefs.h.  */
18325#include <X11/Xlib.h>
18326int
18327main ()
18328{
18329XrmInitialize ()
18330  ;
18331  return 0;
18332}
18333_ACEOF
18334if ac_fn_c_try_link "$LINENO"; then :
18335  LIBS=$ac_save_LIBS
18336# We can link X programs with no special library path.
18337ac_x_libraries=
18338else
18339  LIBS=$ac_save_LIBS
18340for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18341do
18342  # Don't even attempt the hair of trying to link an X program!
18343  for ac_extension in a so sl dylib la dll; do
18344    if test -r "$ac_dir/libX11.$ac_extension"; then
18345      ac_x_libraries=$ac_dir
18346      break 2
18347    fi
18348  done
18349done
18350fi
18351rm -f core conftest.err conftest.$ac_objext \
18352    conftest$ac_exeext conftest.$ac_ext
18353fi # $ac_x_libraries = no
18354
18355case $ac_x_includes,$ac_x_libraries in #(
18356  no,* | *,no | *\'*)
18357    # Didn't find X, or a directory has "'" in its name.
18358    ac_cv_have_x="have_x=no";; #(
18359  *)
18360    # Record where we found X for the cache.
18361    ac_cv_have_x="have_x=yes\
18362	ac_x_includes='$ac_x_includes'\
18363	ac_x_libraries='$ac_x_libraries'"
18364esac
18365fi
18366;; #(
18367    *) have_x=yes;;
18368  esac
18369  eval "$ac_cv_have_x"
18370fi # $with_x != no
18371
18372if test "$have_x" != yes; then
18373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18374$as_echo "$have_x" >&6; }
18375  no_x=yes
18376else
18377  # If each of the values was on the command line, it overrides each guess.
18378  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18379  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18380  # Update the cache value to reflect the command line values.
18381  ac_cv_have_x="have_x=yes\
18382	ac_x_includes='$x_includes'\
18383	ac_x_libraries='$x_libraries'"
18384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18385$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18386fi
18387
18388if test "$no_x" = yes; then
18389  # Not all programs may use this symbol, but it does not hurt to define it.
18390
18391$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18392
18393  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18394else
18395  if test -n "$x_includes"; then
18396    X_CFLAGS="$X_CFLAGS -I$x_includes"
18397  fi
18398
18399  # It would also be nice to do this for all -L options, not just this one.
18400  if test -n "$x_libraries"; then
18401    X_LIBS="$X_LIBS -L$x_libraries"
18402    # For Solaris; some versions of Sun CC require a space after -R and
18403    # others require no space.  Words are not sufficient . . . .
18404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18405$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18406    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18407    ac_xsave_c_werror_flag=$ac_c_werror_flag
18408    ac_c_werror_flag=yes
18409    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410/* end confdefs.h.  */
18411
18412int
18413main ()
18414{
18415
18416  ;
18417  return 0;
18418}
18419_ACEOF
18420if ac_fn_c_try_link "$LINENO"; then :
18421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422$as_echo "no" >&6; }
18423       X_LIBS="$X_LIBS -R$x_libraries"
18424else
18425  LIBS="$ac_xsave_LIBS -R $x_libraries"
18426       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427/* end confdefs.h.  */
18428
18429int
18430main ()
18431{
18432
18433  ;
18434  return 0;
18435}
18436_ACEOF
18437if ac_fn_c_try_link "$LINENO"; then :
18438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18439$as_echo "yes" >&6; }
18440	  X_LIBS="$X_LIBS -R $x_libraries"
18441else
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18443$as_echo "neither works" >&6; }
18444fi
18445rm -f core conftest.err conftest.$ac_objext \
18446    conftest$ac_exeext conftest.$ac_ext
18447fi
18448rm -f core conftest.err conftest.$ac_objext \
18449    conftest$ac_exeext conftest.$ac_ext
18450    ac_c_werror_flag=$ac_xsave_c_werror_flag
18451    LIBS=$ac_xsave_LIBS
18452  fi
18453
18454  # Check for system-dependent libraries X programs must link with.
18455  # Do this before checking for the system-independent R6 libraries
18456  # (-lICE), since we may need -lsocket or whatever for X linking.
18457
18458  if test "$ISC" = yes; then
18459    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18460  else
18461    # Martyn Johnson says this is needed for Ultrix, if the X
18462    # libraries were built with DECnet support.  And Karl Berry says
18463    # the Alpha needs dnet_stub (dnet does not exist).
18464    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466/* end confdefs.h.  */
18467
18468/* Override any GCC internal prototype to avoid an error.
18469   Use char because int might match the return type of a GCC
18470   builtin and then its argument prototype would still apply.  */
18471#ifdef __cplusplus
18472extern "C"
18473#endif
18474char XOpenDisplay ();
18475int
18476main ()
18477{
18478return XOpenDisplay ();
18479  ;
18480  return 0;
18481}
18482_ACEOF
18483if ac_fn_c_try_link "$LINENO"; then :
18484
18485else
18486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18487$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18488if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18489  $as_echo_n "(cached) " >&6
18490else
18491  ac_check_lib_save_LIBS=$LIBS
18492LIBS="-ldnet  $LIBS"
18493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494/* end confdefs.h.  */
18495
18496/* Override any GCC internal prototype to avoid an error.
18497   Use char because int might match the return type of a GCC
18498   builtin and then its argument prototype would still apply.  */
18499#ifdef __cplusplus
18500extern "C"
18501#endif
18502char dnet_ntoa ();
18503int
18504main ()
18505{
18506return dnet_ntoa ();
18507  ;
18508  return 0;
18509}
18510_ACEOF
18511if ac_fn_c_try_link "$LINENO"; then :
18512  ac_cv_lib_dnet_dnet_ntoa=yes
18513else
18514  ac_cv_lib_dnet_dnet_ntoa=no
18515fi
18516rm -f core conftest.err conftest.$ac_objext \
18517    conftest$ac_exeext conftest.$ac_ext
18518LIBS=$ac_check_lib_save_LIBS
18519fi
18520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18521$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18522if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18523  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18524fi
18525
18526    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18527      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18528$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18529if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18530  $as_echo_n "(cached) " >&6
18531else
18532  ac_check_lib_save_LIBS=$LIBS
18533LIBS="-ldnet_stub  $LIBS"
18534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535/* end confdefs.h.  */
18536
18537/* Override any GCC internal prototype to avoid an error.
18538   Use char because int might match the return type of a GCC
18539   builtin and then its argument prototype would still apply.  */
18540#ifdef __cplusplus
18541extern "C"
18542#endif
18543char dnet_ntoa ();
18544int
18545main ()
18546{
18547return dnet_ntoa ();
18548  ;
18549  return 0;
18550}
18551_ACEOF
18552if ac_fn_c_try_link "$LINENO"; then :
18553  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18554else
18555  ac_cv_lib_dnet_stub_dnet_ntoa=no
18556fi
18557rm -f core conftest.err conftest.$ac_objext \
18558    conftest$ac_exeext conftest.$ac_ext
18559LIBS=$ac_check_lib_save_LIBS
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18562$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18563if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18564  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18565fi
18566
18567    fi
18568fi
18569rm -f core conftest.err conftest.$ac_objext \
18570    conftest$ac_exeext conftest.$ac_ext
18571    LIBS="$ac_xsave_LIBS"
18572
18573    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
18574    # to get the SysV transport functions.
18575    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18576    # needs -lnsl.
18577    # The nsl library prevents programs from opening the X display
18578    # on Irix 5.2, according to T.E. Dickey.
18579    # The functions gethostbyname, getservbyname, and inet_addr are
18580    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18581    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18582if test "x$ac_cv_func_gethostbyname" = xyes; then :
18583
18584fi
18585
18586    if test $ac_cv_func_gethostbyname = no; then
18587      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18588$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18589if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18590  $as_echo_n "(cached) " >&6
18591else
18592  ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lnsl  $LIBS"
18594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595/* end confdefs.h.  */
18596
18597/* Override any GCC internal prototype to avoid an error.
18598   Use char because int might match the return type of a GCC
18599   builtin and then its argument prototype would still apply.  */
18600#ifdef __cplusplus
18601extern "C"
18602#endif
18603char gethostbyname ();
18604int
18605main ()
18606{
18607return gethostbyname ();
18608  ;
18609  return 0;
18610}
18611_ACEOF
18612if ac_fn_c_try_link "$LINENO"; then :
18613  ac_cv_lib_nsl_gethostbyname=yes
18614else
18615  ac_cv_lib_nsl_gethostbyname=no
18616fi
18617rm -f core conftest.err conftest.$ac_objext \
18618    conftest$ac_exeext conftest.$ac_ext
18619LIBS=$ac_check_lib_save_LIBS
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18622$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18623if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18624  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18625fi
18626
18627      if test $ac_cv_lib_nsl_gethostbyname = no; then
18628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18629$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18630if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18631  $as_echo_n "(cached) " >&6
18632else
18633  ac_check_lib_save_LIBS=$LIBS
18634LIBS="-lbsd  $LIBS"
18635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636/* end confdefs.h.  */
18637
18638/* Override any GCC internal prototype to avoid an error.
18639   Use char because int might match the return type of a GCC
18640   builtin and then its argument prototype would still apply.  */
18641#ifdef __cplusplus
18642extern "C"
18643#endif
18644char gethostbyname ();
18645int
18646main ()
18647{
18648return gethostbyname ();
18649  ;
18650  return 0;
18651}
18652_ACEOF
18653if ac_fn_c_try_link "$LINENO"; then :
18654  ac_cv_lib_bsd_gethostbyname=yes
18655else
18656  ac_cv_lib_bsd_gethostbyname=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext \
18659    conftest$ac_exeext conftest.$ac_ext
18660LIBS=$ac_check_lib_save_LIBS
18661fi
18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18663$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18664if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18665  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18666fi
18667
18668      fi
18669    fi
18670
18671    # [email protected] says without -lsocket,
18672    # socket/setsockopt and other routines are undefined under SCO ODT
18673    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18674    # on later versions), says Simon Leinen: it contains gethostby*
18675    # variants that don't use the name server (or something).  -lsocket
18676    # must be given before -lnsl if both are needed.  We assume that
18677    # if connect needs -lnsl, so does gethostbyname.
18678    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18679if test "x$ac_cv_func_connect" = xyes; then :
18680
18681fi
18682
18683    if test $ac_cv_func_connect = no; then
18684      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18685$as_echo_n "checking for connect in -lsocket... " >&6; }
18686if ${ac_cv_lib_socket_connect+:} false; then :
18687  $as_echo_n "(cached) " >&6
18688else
18689  ac_check_lib_save_LIBS=$LIBS
18690LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692/* end confdefs.h.  */
18693
18694/* Override any GCC internal prototype to avoid an error.
18695   Use char because int might match the return type of a GCC
18696   builtin and then its argument prototype would still apply.  */
18697#ifdef __cplusplus
18698extern "C"
18699#endif
18700char connect ();
18701int
18702main ()
18703{
18704return connect ();
18705  ;
18706  return 0;
18707}
18708_ACEOF
18709if ac_fn_c_try_link "$LINENO"; then :
18710  ac_cv_lib_socket_connect=yes
18711else
18712  ac_cv_lib_socket_connect=no
18713fi
18714rm -f core conftest.err conftest.$ac_objext \
18715    conftest$ac_exeext conftest.$ac_ext
18716LIBS=$ac_check_lib_save_LIBS
18717fi
18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18719$as_echo "$ac_cv_lib_socket_connect" >&6; }
18720if test "x$ac_cv_lib_socket_connect" = xyes; then :
18721  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18722fi
18723
18724    fi
18725
18726    # Guillermo Gomez says -lposix is necessary on A/UX.
18727    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18728if test "x$ac_cv_func_remove" = xyes; then :
18729
18730fi
18731
18732    if test $ac_cv_func_remove = no; then
18733      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18734$as_echo_n "checking for remove in -lposix... " >&6; }
18735if ${ac_cv_lib_posix_remove+:} false; then :
18736  $as_echo_n "(cached) " >&6
18737else
18738  ac_check_lib_save_LIBS=$LIBS
18739LIBS="-lposix  $LIBS"
18740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h.  */
18742
18743/* Override any GCC internal prototype to avoid an error.
18744   Use char because int might match the return type of a GCC
18745   builtin and then its argument prototype would still apply.  */
18746#ifdef __cplusplus
18747extern "C"
18748#endif
18749char remove ();
18750int
18751main ()
18752{
18753return remove ();
18754  ;
18755  return 0;
18756}
18757_ACEOF
18758if ac_fn_c_try_link "$LINENO"; then :
18759  ac_cv_lib_posix_remove=yes
18760else
18761  ac_cv_lib_posix_remove=no
18762fi
18763rm -f core conftest.err conftest.$ac_objext \
18764    conftest$ac_exeext conftest.$ac_ext
18765LIBS=$ac_check_lib_save_LIBS
18766fi
18767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18768$as_echo "$ac_cv_lib_posix_remove" >&6; }
18769if test "x$ac_cv_lib_posix_remove" = xyes; then :
18770  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18771fi
18772
18773    fi
18774
18775    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18776    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18777if test "x$ac_cv_func_shmat" = xyes; then :
18778
18779fi
18780
18781    if test $ac_cv_func_shmat = no; then
18782      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18783$as_echo_n "checking for shmat in -lipc... " >&6; }
18784if ${ac_cv_lib_ipc_shmat+:} false; then :
18785  $as_echo_n "(cached) " >&6
18786else
18787  ac_check_lib_save_LIBS=$LIBS
18788LIBS="-lipc  $LIBS"
18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790/* end confdefs.h.  */
18791
18792/* Override any GCC internal prototype to avoid an error.
18793   Use char because int might match the return type of a GCC
18794   builtin and then its argument prototype would still apply.  */
18795#ifdef __cplusplus
18796extern "C"
18797#endif
18798char shmat ();
18799int
18800main ()
18801{
18802return shmat ();
18803  ;
18804  return 0;
18805}
18806_ACEOF
18807if ac_fn_c_try_link "$LINENO"; then :
18808  ac_cv_lib_ipc_shmat=yes
18809else
18810  ac_cv_lib_ipc_shmat=no
18811fi
18812rm -f core conftest.err conftest.$ac_objext \
18813    conftest$ac_exeext conftest.$ac_ext
18814LIBS=$ac_check_lib_save_LIBS
18815fi
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18817$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18818if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18819  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18820fi
18821
18822    fi
18823  fi
18824
18825  # Check for libraries that X11R6 Xt/Xaw programs need.
18826  ac_save_LDFLAGS=$LDFLAGS
18827  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18828  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18829  # check for ICE first), but we must link in the order -lSM -lICE or
18830  # we get undefined symbols.  So assume we have SM if we have ICE.
18831  # These have to be linked with before -lX11, unlike the other
18832  # libraries we check for below, so use a different variable.
18833  # John Interrante, Karl Berry
18834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18835$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18836if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18837  $as_echo_n "(cached) " >&6
18838else
18839  ac_check_lib_save_LIBS=$LIBS
18840LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h.  */
18843
18844/* Override any GCC internal prototype to avoid an error.
18845   Use char because int might match the return type of a GCC
18846   builtin and then its argument prototype would still apply.  */
18847#ifdef __cplusplus
18848extern "C"
18849#endif
18850char IceConnectionNumber ();
18851int
18852main ()
18853{
18854return IceConnectionNumber ();
18855  ;
18856  return 0;
18857}
18858_ACEOF
18859if ac_fn_c_try_link "$LINENO"; then :
18860  ac_cv_lib_ICE_IceConnectionNumber=yes
18861else
18862  ac_cv_lib_ICE_IceConnectionNumber=no
18863fi
18864rm -f core conftest.err conftest.$ac_objext \
18865    conftest$ac_exeext conftest.$ac_ext
18866LIBS=$ac_check_lib_save_LIBS
18867fi
18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18869$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18870if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18871  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18872fi
18873
18874  LDFLAGS=$ac_save_LDFLAGS
18875
18876fi
18877
18878
18879
18880
18881
18882ac_ext=c
18883ac_cpp='$CPP $CPPFLAGS'
18884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887
18888ax_pthread_ok=no
18889
18890
18891if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18892        save_CFLAGS="$CFLAGS"
18893        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18894        save_LIBS="$LIBS"
18895        LIBS="$PTHREAD_LIBS $LIBS"
18896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18897$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18898        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899/* end confdefs.h.  */
18900
18901/* Override any GCC internal prototype to avoid an error.
18902   Use char because int might match the return type of a GCC
18903   builtin and then its argument prototype would still apply.  */
18904#ifdef __cplusplus
18905extern "C"
18906#endif
18907char pthread_join ();
18908int
18909main ()
18910{
18911return pthread_join ();
18912  ;
18913  return 0;
18914}
18915_ACEOF
18916if ac_fn_c_try_link "$LINENO"; then :
18917  ax_pthread_ok=yes
18918fi
18919rm -f core conftest.err conftest.$ac_objext \
18920    conftest$ac_exeext conftest.$ac_ext
18921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18922$as_echo "$ax_pthread_ok" >&6; }
18923        if test x"$ax_pthread_ok" = xno; then
18924                PTHREAD_LIBS=""
18925                PTHREAD_CFLAGS=""
18926        fi
18927        LIBS="$save_LIBS"
18928        CFLAGS="$save_CFLAGS"
18929fi
18930
18931
18932
18933ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18934
18935
18936
18937case "${host_cpu}-${host_os}" in
18938        *solaris*)
18939
18940
18941        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18942        ;;
18943
18944	*-darwin*)
18945	ax_pthread_flags="-pthread $ax_pthread_flags"
18946	;;
18947esac
18948
18949if test x"$ax_pthread_ok" = xno; then
18950for flag in $ax_pthread_flags; do
18951
18952        case $flag in
18953                none)
18954                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18955$as_echo_n "checking whether pthreads work without any flags... " >&6; }
18956                ;;
18957
18958                -*)
18959                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18960$as_echo_n "checking whether pthreads work with $flag... " >&6; }
18961                PTHREAD_CFLAGS="$flag"
18962                ;;
18963
18964		pthread-config)
18965		# Extract the first word of "pthread-config", so it can be a program name with args.
18966set dummy pthread-config; ac_word=$2
18967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18968$as_echo_n "checking for $ac_word... " >&6; }
18969if ${ac_cv_prog_ax_pthread_config+:} false; then :
18970  $as_echo_n "(cached) " >&6
18971else
18972  if test -n "$ax_pthread_config"; then
18973  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18974else
18975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18976for as_dir in $PATH
18977do
18978  IFS=$as_save_IFS
18979  test -z "$as_dir" && as_dir=.
18980    for ac_exec_ext in '' $ac_executable_extensions; do
18981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18982    ac_cv_prog_ax_pthread_config="yes"
18983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18984    break 2
18985  fi
18986done
18987  done
18988IFS=$as_save_IFS
18989
18990  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18991fi
18992fi
18993ax_pthread_config=$ac_cv_prog_ax_pthread_config
18994if test -n "$ax_pthread_config"; then
18995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18996$as_echo "$ax_pthread_config" >&6; }
18997else
18998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999$as_echo "no" >&6; }
19000fi
19001
19002
19003		if test x"$ax_pthread_config" = xno; then continue; fi
19004		PTHREAD_CFLAGS="`pthread-config --cflags`"
19005		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19006		;;
19007
19008                *)
19009                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19010$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19011                PTHREAD_LIBS="-l$flag"
19012                ;;
19013        esac
19014
19015        save_LIBS="$LIBS"
19016        save_CFLAGS="$CFLAGS"
19017        LIBS="$PTHREAD_LIBS $LIBS"
19018        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19019
19020                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022#include <pthread.h>
19023	             static void routine(void* a) {a=0;}
19024	             static void* start_routine(void* a) {return a;}
19025int
19026main ()
19027{
19028pthread_t th; pthread_attr_t attr;
19029                     pthread_create(&th,0,start_routine,0);
19030                     pthread_join(th, 0);
19031                     pthread_attr_init(&attr);
19032                     pthread_cleanup_push(routine, 0);
19033                     pthread_cleanup_pop(0);
19034  ;
19035  return 0;
19036}
19037_ACEOF
19038if ac_fn_c_try_link "$LINENO"; then :
19039  ax_pthread_ok=yes
19040fi
19041rm -f core conftest.err conftest.$ac_objext \
19042    conftest$ac_exeext conftest.$ac_ext
19043
19044        LIBS="$save_LIBS"
19045        CFLAGS="$save_CFLAGS"
19046
19047        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19048$as_echo "$ax_pthread_ok" >&6; }
19049        if test "x$ax_pthread_ok" = xyes; then
19050                break;
19051        fi
19052
19053        PTHREAD_LIBS=""
19054        PTHREAD_CFLAGS=""
19055done
19056fi
19057
19058if test "x$ax_pthread_ok" = xyes; then
19059        save_LIBS="$LIBS"
19060        LIBS="$PTHREAD_LIBS $LIBS"
19061        save_CFLAGS="$CFLAGS"
19062        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19063
19064        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19065$as_echo_n "checking for joinable pthread attribute... " >&6; }
19066	attr_name=unknown
19067	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19068	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069/* end confdefs.h.  */
19070#include <pthread.h>
19071int
19072main ()
19073{
19074int attr=$attr; return attr;
19075  ;
19076  return 0;
19077}
19078_ACEOF
19079if ac_fn_c_try_link "$LINENO"; then :
19080  attr_name=$attr; break
19081fi
19082rm -f core conftest.err conftest.$ac_objext \
19083    conftest$ac_exeext conftest.$ac_ext
19084	done
19085        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19086$as_echo "$attr_name" >&6; }
19087        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19088
19089cat >>confdefs.h <<_ACEOF
19090#define PTHREAD_CREATE_JOINABLE $attr_name
19091_ACEOF
19092
19093        fi
19094
19095        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19096$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19097        flag=no
19098        case "${host_cpu}-${host_os}" in
19099            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19100            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19101        esac
19102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19103$as_echo "${flag}" >&6; }
19104        if test "x$flag" != xno; then
19105            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19106        fi
19107
19108        LIBS="$save_LIBS"
19109        CFLAGS="$save_CFLAGS"
19110
19111        	if test x"$GCC" != xyes; then
19112          for ac_prog in xlc_r cc_r
19113do
19114  # Extract the first word of "$ac_prog", so it can be a program name with args.
19115set dummy $ac_prog; ac_word=$2
19116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19117$as_echo_n "checking for $ac_word... " >&6; }
19118if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19119  $as_echo_n "(cached) " >&6
19120else
19121  if test -n "$PTHREAD_CC"; then
19122  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19123else
19124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125for as_dir in $PATH
19126do
19127  IFS=$as_save_IFS
19128  test -z "$as_dir" && as_dir=.
19129    for ac_exec_ext in '' $ac_executable_extensions; do
19130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19131    ac_cv_prog_PTHREAD_CC="$ac_prog"
19132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19133    break 2
19134  fi
19135done
19136  done
19137IFS=$as_save_IFS
19138
19139fi
19140fi
19141PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19142if test -n "$PTHREAD_CC"; then
19143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19144$as_echo "$PTHREAD_CC" >&6; }
19145else
19146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19147$as_echo "no" >&6; }
19148fi
19149
19150
19151  test -n "$PTHREAD_CC" && break
19152done
19153test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19154
19155        else
19156          PTHREAD_CC=$CC
19157	fi
19158else
19159        PTHREAD_CC="$CC"
19160fi
19161
19162
19163
19164
19165
19166if test x"$ax_pthread_ok" = xyes; then
19167
19168$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19169
19170        :
19171else
19172        ax_pthread_ok=no
19173
19174fi
19175ac_ext=c
19176ac_cpp='$CPP $CPPFLAGS'
19177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181
19182
19183
19184ac_ext=c
19185ac_cpp='$CPP $CPPFLAGS'
19186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189
19190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19191$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19192if ${ax_cv_c_compiler_ms+:} false; then :
19193  $as_echo_n "(cached) " >&6
19194else
19195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19196/* end confdefs.h.  */
19197
19198int
19199main ()
19200{
19201#ifndef _MSC_VER
19202       choke me
19203#endif
19204
19205  ;
19206  return 0;
19207}
19208_ACEOF
19209if ac_fn_c_try_compile "$LINENO"; then :
19210  ax_compiler_ms=yes
19211else
19212  ax_compiler_ms=no
19213fi
19214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215ax_cv_c_compiler_ms=$ax_compiler_ms
19216
19217fi
19218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19219$as_echo "$ax_cv_c_compiler_ms" >&6; }
19220if test X$ax_compiler_ms = Xno; then :
19221  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19222fi
19223
19224if test "X$no_x" != "Xyes"; then :
19225  if test -n "$x_includes"; then :
19226  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19227fi
19228       if test -n "$x_libraries"; then :
19229  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19230fi
19231fi
19232
19233ax_save_CPPFLAGS="${CPPFLAGS}"
19234CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19235for ac_header in GL/gl.h OpenGL/gl.h
19236do :
19237  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19240  cat >>confdefs.h <<_ACEOF
19241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19242_ACEOF
19243
19244fi
19245
19246done
19247
19248CPPFLAGS="${ax_save_CPPFLAGS}"
19249
19250for ac_header in windows.h
19251do :
19252  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19253if test "x$ac_cv_header_windows_h" = xyes; then :
19254  cat >>confdefs.h <<_ACEOF
19255#define HAVE_WINDOWS_H 1
19256_ACEOF
19257
19258fi
19259
19260done
19261
19262
19263
19264
19265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19266$as_echo_n "checking for OpenGL library... " >&6; }
19267if ${ax_cv_check_gl_libgl+:} false; then :
19268  $as_echo_n "(cached) " >&6
19269else
19270  ax_cv_check_gl_libgl="no"
19271case $host_cpu in
19272  x86_64) ax_check_gl_libdir=lib64 ;;
19273  *)      ax_check_gl_libdir=lib ;;
19274esac
19275ax_save_CPPFLAGS="${CPPFLAGS}"
19276CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19277ax_save_LIBS="${LIBS}"
19278LIBS=""
19279ax_check_libs="-lopengl32 -lGL"
19280for ax_lib in ${ax_check_libs}; do
19281  if test X$ax_compiler_ms = Xyes; then :
19282  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19283else
19284  ax_try_lib="${ax_lib}"
19285fi
19286  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288/* end confdefs.h.  */
19289
19290# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19291#   include <windows.h>
19292# endif
19293# ifdef HAVE_GL_GL_H
19294#   include <GL/gl.h>
19295# elif defined(HAVE_OPENGL_GL_H)
19296#   include <OpenGL/gl.h>
19297# else
19298#   error no gl.h
19299# endif
19300int
19301main ()
19302{
19303glBegin(0)
19304  ;
19305  return 0;
19306}
19307_ACEOF
19308if ac_fn_c_try_link "$LINENO"; then :
19309  ax_cv_check_gl_libgl="${ax_try_lib}"; break
19310else
19311  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}"
19312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313/* end confdefs.h.  */
19314
19315# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19316#   include <windows.h>
19317# endif
19318# ifdef HAVE_GL_GL_H
19319#   include <GL/gl.h>
19320# elif defined(HAVE_OPENGL_GL_H)
19321#   include <OpenGL/gl.h>
19322# else
19323#   error no gl.h
19324# endif
19325int
19326main ()
19327{
19328glBegin(0)
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333if ac_fn_c_try_link "$LINENO"; then :
19334  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19335else
19336  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}"
19337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338/* end confdefs.h.  */
19339
19340# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19341#   include <windows.h>
19342# endif
19343# ifdef HAVE_GL_GL_H
19344#   include <GL/gl.h>
19345# elif defined(HAVE_OPENGL_GL_H)
19346#   include <OpenGL/gl.h>
19347# else
19348#   error no gl.h
19349# endif
19350int
19351main ()
19352{
19353glBegin(0)
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358if ac_fn_c_try_link "$LINENO"; then :
19359  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19360fi
19361rm -f core conftest.err conftest.$ac_objext \
19362    conftest$ac_exeext conftest.$ac_ext
19363fi
19364rm -f core conftest.err conftest.$ac_objext \
19365    conftest$ac_exeext conftest.$ac_ext
19366fi
19367rm -f core conftest.err conftest.$ac_objext \
19368    conftest$ac_exeext conftest.$ac_ext
19369done
19370
19371if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19372  LIBS='-framework OpenGL'
19373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374/* end confdefs.h.  */
19375
19376# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19377#   include <windows.h>
19378# endif
19379# ifdef HAVE_GL_GL_H
19380#   include <GL/gl.h>
19381# elif defined(HAVE_OPENGL_GL_H)
19382#   include <OpenGL/gl.h>
19383# else
19384#   error no gl.h
19385# endif
19386int
19387main ()
19388{
19389glBegin(0)
19390  ;
19391  return 0;
19392}
19393_ACEOF
19394if ac_fn_c_try_link "$LINENO"; then :
19395  ax_cv_check_gl_libgl="$LIBS"
19396fi
19397rm -f core conftest.err conftest.$ac_objext \
19398    conftest$ac_exeext conftest.$ac_ext
19399fi
19400
19401LIBS=${ax_save_LIBS}
19402CPPFLAGS=${ax_save_CPPFLAGS}
19403fi
19404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19405$as_echo "$ax_cv_check_gl_libgl" >&6; }
19406
19407if test "X$ax_cv_check_gl_libgl" = Xno; then :
19408  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
19409else
19410  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
19411fi
19412ac_ext=c
19413ac_cpp='$CPP $CPPFLAGS'
19414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416ac_compiler_gnu=$ac_cv_c_compiler_gnu
19417
19418
19419
19420
19421
19422GLU_CFLAGS="${GL_CFLAGS}"
19423
19424ax_save_CPPFLAGS="${CPPFLAGS}"
19425CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19426for ac_header in GL/glu.h OpenGL/glu.h
19427do :
19428  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19429ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19431  cat >>confdefs.h <<_ACEOF
19432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19433_ACEOF
19434
19435fi
19436
19437done
19438
19439CPPFLAGS="${ax_save_CPPFLAGS}"
19440
19441
19442
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
19444$as_echo_n "checking for OpenGL Utility library... " >&6; }
19445if ${ax_cv_check_glu_libglu+:} false; then :
19446  $as_echo_n "(cached) " >&6
19447else
19448  ax_cv_check_glu_libglu="no"
19449ax_save_CPPFLAGS="${CPPFLAGS}"
19450CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19451ax_save_LIBS="${LIBS}"
19452
19453LIBS="${GL_LIBS} ${ax_save_LIBS}"
19454ac_ext=cpp
19455ac_cpp='$CXXCPP $CPPFLAGS'
19456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19459
19460if test X$ax_compiler_ms = Xyes; then :
19461  ac_ext=c
19462ac_cpp='$CPP $CPPFLAGS'
19463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465ac_compiler_gnu=$ac_cv_c_compiler_gnu
19466
19467fi
19468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469/* end confdefs.h.  */
19470
19471# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19472#   include <windows.h>
19473# endif
19474# ifdef HAVE_GL_GLU_H
19475#   include <GL/glu.h>
19476# elif defined(HAVE_OPENGL_GLU_H)
19477#   include <OpenGL/glu.h>
19478# else
19479#   error no glu.h
19480# endif
19481int
19482main ()
19483{
19484gluBeginCurve(0)
19485  ;
19486  return 0;
19487}
19488_ACEOF
19489if ac_fn_c_try_link "$LINENO"; then :
19490  ax_cv_check_glu_libglu=yes
19491else
19492  LIBS=""
19493ax_check_libs="-lglu32 -lGLU"
19494for ax_lib in ${ax_check_libs}; do
19495  if test X$ax_compiler_ms = Xyes; then :
19496  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19497else
19498  ax_try_lib="${ax_lib}"
19499fi
19500  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502/* end confdefs.h.  */
19503
19504# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19505#   include <windows.h>
19506# endif
19507# ifdef HAVE_GL_GLU_H
19508#   include <GL/glu.h>
19509# elif defined(HAVE_OPENGL_GLU_H)
19510#   include <OpenGL/glu.h>
19511# else
19512#   error no glu.h
19513# endif
19514int
19515main ()
19516{
19517gluBeginCurve(0)
19518  ;
19519  return 0;
19520}
19521_ACEOF
19522if ac_fn_c_try_link "$LINENO"; then :
19523  ax_cv_check_glu_libglu="${ax_try_lib}"; break
19524fi
19525rm -f core conftest.err conftest.$ac_objext \
19526    conftest$ac_exeext conftest.$ac_ext
19527done
19528
19529fi
19530rm -f core conftest.err conftest.$ac_objext \
19531    conftest$ac_exeext conftest.$ac_ext
19532if test X$ax_compiler_ms = Xyes; then :
19533  ac_ext=cpp
19534ac_cpp='$CXXCPP $CPPFLAGS'
19535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19538
19539fi
19540ac_ext=c
19541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546
19547LIBS=${ax_save_LIBS}
19548CPPFLAGS=${ax_save_CPPFLAGS}
19549fi
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19551$as_echo "$ax_cv_check_glu_libglu" >&6; }
19552if test "X$ax_cv_check_glu_libglu" = Xno; then :
19553  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19554else
19555  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19556  GLU_LIBS="$GL_LIBS"
19557else
19558  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19559fi
19560fi
19561
19562
19563
19564if test "X$ax_cv_check_glu_libglu" != Xno; then :
19565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
19566$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
19567if ${ax_cv_varargs_glu_tesscb+:} false; then :
19568  $as_echo_n "(cached) " >&6
19569else
19570  ax_cv_varargs_glu_tesscb=no
19571ax_save_CFLAGS="$CFLAGS"
19572CFLAGS="$GL_CFLAGS $CFLAGS"
19573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574/* end confdefs.h.  */
19575
19576# ifdef HAVE_GL_GLU_H
19577#   include <GL/glu.h>
19578# else
19579#   include <OpenGL/glu.h>
19580# endif
19581int
19582main ()
19583{
19584GLvoid (*func)(...); gluTessCallback(0, 0, func)
19585  ;
19586  return 0;
19587}
19588_ACEOF
19589if ac_fn_c_try_compile "$LINENO"; then :
19590  ax_cv_varargs_glu_tesscb=yes
19591fi
19592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593CFLAGS="$ax_save_CFLAGS"
19594fi
19595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19596$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19597if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
19598
19599$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19600
19601fi
19602fi
19603
19604
19605ax_save_CPPFLAGS="${CPPFLAGS}"
19606CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19607for ac_header in GL/glut.h GLUT/glut.h
19608do :
19609  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19612  cat >>confdefs.h <<_ACEOF
19613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19614_ACEOF
19615
19616fi
19617
19618done
19619
19620CPPFLAGS="${ax_save_CPPFLAGS}"
19621
19622GLUT_CFLAGS=${GLU_CFLAGS}
19623GLUT_LIBS=${GLU_LIBS}
19624
19625
19626
19627if test X$no_x != Xyes; then :
19628  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19629fi
19630
19631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19632$as_echo_n "checking for GLUT library... " >&6; }
19633if ${ax_cv_check_glut_libglut+:} false; then :
19634  $as_echo_n "(cached) " >&6
19635else
19636  ax_cv_check_glut_libglut="no"
19637ac_ext=c
19638ac_cpp='$CPP $CPPFLAGS'
19639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641ac_compiler_gnu=$ac_cv_c_compiler_gnu
19642
19643ax_save_CPPFLAGS="${CPPFLAGS}"
19644CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19645ax_save_LIBS="${LIBS}"
19646LIBS=""
19647ax_check_libs="-lglut32 -lglut"
19648for ax_lib in ${ax_check_libs}; do
19649  if test X$ax_compiler_ms = Xyes; then :
19650  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19651else
19652  ax_try_lib="${ax_lib}"
19653fi
19654  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656/* end confdefs.h.  */
19657
19658# if HAVE_WINDOWS_H && defined(_WIN32)
19659#   include <windows.h>
19660# endif
19661# ifdef HAVE_GL_GLUT_H
19662#   include <GL/glut.h>
19663# elif defined(HAVE_GLUT_GLUT_H)
19664#   include <GLUT/glut.h>
19665# else
19666#   error no glut.h
19667# endif
19668int
19669main ()
19670{
19671glutMainLoop()
19672  ;
19673  return 0;
19674}
19675_ACEOF
19676if ac_fn_c_try_link "$LINENO"; then :
19677  ax_cv_check_glut_libglut="${ax_try_lib}"; break
19678fi
19679rm -f core conftest.err conftest.$ac_objext \
19680    conftest$ac_exeext conftest.$ac_ext
19681done
19682
19683if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19684  LIBS='-framework GLUT'
19685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h.  */
19687
19688# if HAVE_WINDOWS_H && defined(_WIN32)
19689#   include <windows.h>
19690# endif
19691# ifdef HAVE_GL_GLUT_H
19692#   include <GL/glut.h>
19693# elif defined(HAVE_GLUT_GLUT_H)
19694#   include <GLUT/glut.h>
19695# else
19696#   error no glut.h
19697# endif
19698int
19699main ()
19700{
19701glutMainLoop()
19702  ;
19703  return 0;
19704}
19705_ACEOF
19706if ac_fn_c_try_link "$LINENO"; then :
19707  ax_cv_check_glut_libglut="$LIBS"
19708fi
19709rm -f core conftest.err conftest.$ac_objext \
19710    conftest$ac_exeext conftest.$ac_ext
19711fi
19712
19713CPPFLAGS="${ax_save_CPPFLAGS}"
19714LIBS="${ax_save_LIBS}"
19715ac_ext=c
19716ac_cpp='$CPP $CPPFLAGS'
19717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719ac_compiler_gnu=$ac_cv_c_compiler_gnu
19720
19721fi
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19723$as_echo "$ax_cv_check_glut_libglut" >&6; }
19724
19725if test "X$ax_cv_check_glut_libglut" = Xno; then :
19726  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19727else
19728  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19729fi
19730
19731
19732
19733
19734
19735if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19736	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19737  HAVE_OPENGL=yes
19738fi
19739
19740 if test "$HAVE_OPENGL" = "yes"; then
19741  HAVE_OPENGL_TRUE=
19742  HAVE_OPENGL_FALSE='#'
19743else
19744  HAVE_OPENGL_TRUE='#'
19745  HAVE_OPENGL_FALSE=
19746fi
19747
19748
19749
19750win32_io_ok=no
19751case "${host_os}" in
19752    cygwin*)
19753        ;;
19754    *)
19755        if test x"$ac_cv_header_windows_h" = xyes; then
19756            win32_io_ok=yes
19757
19758$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
19759
19760	fi
19761        ;;
19762esac
19763 if test "$win32_io_ok" = yes; then
19764  WIN32_IO_TRUE=
19765  WIN32_IO_FALSE='#'
19766else
19767  WIN32_IO_TRUE='#'
19768  WIN32_IO_FALSE=
19769fi
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779# Check whether --enable-strip-chopping was given.
19780if test "${enable_strip_chopping+set}" = set; then :
19781  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
19782else
19783  HAVE_STRIPCHOP=yes
19784fi
19785
19786
19787# Check whether --with-default-strip-size was given.
19788if test "${with_default_strip_size+set}" = set; then :
19789  withval=$with_default_strip_size;
19790fi
19791
19792
19793if test "$HAVE_STRIPCHOP" = "yes" \
19794	-a "x$with_default_strip_size" != "xno"; then
19795
19796$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
19797
19798
19799  if test "x$with_default_strip_size" = "x" \
19800	  -o "x$with_default_strip_size" = "xyes"; then
19801    with_default_strip_size="8192"
19802  fi
19803
19804
19805cat >>confdefs.h <<_ACEOF
19806#define STRIP_SIZE_DEFAULT $with_default_strip_size
19807_ACEOF
19808
19809
19810fi
19811
19812
19813# Check whether --enable-defer-strile-load was given.
19814if test "${enable_defer_strile_load+set}" = set; then :
19815  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
19816else
19817  HAVE_DEFER_STRILE_LOAD=no
19818fi
19819
19820
19821if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
19822
19823$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
19824
19825
19826fi
19827
19828
19829# Check whether --enable-chunky-strip-read was given.
19830if test "${enable_chunky_strip_read+set}" = set; then :
19831  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
19832else
19833  HAVE_CHUNKY_STRIP_READ=no
19834fi
19835
19836
19837if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
19838
19839$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
19840
19841
19842fi
19843
19844
19845$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
19846
19847
19848
19849# Check whether --enable-extrasample-as-alpha was given.
19850if test "${enable_extrasample_as_alpha+set}" = set; then :
19851  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
19852else
19853  HAVE_EXTRASAMPLE_AS_ALPHA=yes
19854fi
19855
19856
19857if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
19858
19859$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
19860
19861fi
19862
19863
19864# Check whether --enable-check-ycbcr-subsampling was given.
19865if test "${enable_check_ycbcr_subsampling+set}" = set; then :
19866  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
19867else
19868  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
19869fi
19870
19871
19872if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
19873
19874$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
19875
19876fi
19877
19878
19879
19880
19881ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
19882
19883
19884ac_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"
19885
19886cat >confcache <<\_ACEOF
19887# This file is a shell script that caches the results of configure
19888# tests run on this system so they can be shared between configure
19889# scripts and configure runs, see configure's option --config-cache.
19890# It is not useful on other systems.  If it contains results you don't
19891# want to keep, you may remove or edit it.
19892#
19893# config.status only pays attention to the cache file if you give it
19894# the --recheck option to rerun configure.
19895#
19896# `ac_cv_env_foo' variables (set or unset) will be overridden when
19897# loading this file, other *unset* `ac_cv_foo' will be assigned the
19898# following values.
19899
19900_ACEOF
19901
19902# The following way of writing the cache mishandles newlines in values,
19903# but we know of no workaround that is simple, portable, and efficient.
19904# So, we kill variables containing newlines.
19905# Ultrix sh set writes to stderr and can't be redirected directly,
19906# and sets the high bit in the cache file unless we assign to the vars.
19907(
19908  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19909    eval ac_val=\$$ac_var
19910    case $ac_val in #(
19911    *${as_nl}*)
19912      case $ac_var in #(
19913      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19914$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19915      esac
19916      case $ac_var in #(
19917      _ | IFS | as_nl) ;; #(
19918      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19919      *) { eval $ac_var=; unset $ac_var;} ;;
19920      esac ;;
19921    esac
19922  done
19923
19924  (set) 2>&1 |
19925    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19926    *${as_nl}ac_space=\ *)
19927      # `set' does not quote correctly, so add quotes: double-quote
19928      # substitution turns \\\\ into \\, and sed turns \\ into \.
19929      sed -n \
19930	"s/'/'\\\\''/g;
19931	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19932      ;; #(
19933    *)
19934      # `set' quotes correctly as required by POSIX, so do not add quotes.
19935      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19936      ;;
19937    esac |
19938    sort
19939) |
19940  sed '
19941     /^ac_cv_env_/b end
19942     t clear
19943     :clear
19944     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19945     t end
19946     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19947     :end' >>confcache
19948if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19949  if test -w "$cache_file"; then
19950    if test "x$cache_file" != "x/dev/null"; then
19951      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19952$as_echo "$as_me: updating cache $cache_file" >&6;}
19953      if test ! -f "$cache_file" || test -h "$cache_file"; then
19954	cat confcache >"$cache_file"
19955      else
19956        case $cache_file in #(
19957        */* | ?:*)
19958	  mv -f confcache "$cache_file"$$ &&
19959	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19960        *)
19961	  mv -f confcache "$cache_file" ;;
19962	esac
19963      fi
19964    fi
19965  else
19966    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19967$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19968  fi
19969fi
19970rm -f confcache
19971
19972test "x$prefix" = xNONE && prefix=$ac_default_prefix
19973# Let make expand exec_prefix.
19974test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19975
19976DEFS=-DHAVE_CONFIG_H
19977
19978ac_libobjs=
19979ac_ltlibobjs=
19980U=
19981for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19982  # 1. Remove the extension, and $U if already installed.
19983  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19984  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19985  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19986  #    will be set to the directory where LIBOBJS objects are built.
19987  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19988  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19989done
19990LIBOBJS=$ac_libobjs
19991
19992LTLIBOBJS=$ac_ltlibobjs
19993
19994
19995 if test -n "$EXEEXT"; then
19996  am__EXEEXT_TRUE=
19997  am__EXEEXT_FALSE='#'
19998else
19999  am__EXEEXT_TRUE='#'
20000  am__EXEEXT_FALSE=
20001fi
20002
20003if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20004  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20005Usually this means the macro was only invoked conditionally." "$LINENO" 5
20006fi
20007if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20008  as_fn_error $? "conditional \"AMDEP\" was never defined.
20009Usually this means the macro was only invoked conditionally." "$LINENO" 5
20010fi
20011if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20012  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20013Usually this means the macro was only invoked conditionally." "$LINENO" 5
20014fi
20015if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20016  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20017Usually this means the macro was only invoked conditionally." "$LINENO" 5
20018fi
20019if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20020  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20021Usually this means the macro was only invoked conditionally." "$LINENO" 5
20022fi
20023
20024if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20025  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20026Usually this means the macro was only invoked conditionally." "$LINENO" 5
20027fi
20028if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20029  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20030Usually this means the macro was only invoked conditionally." "$LINENO" 5
20031fi
20032if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20033  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20034Usually this means the macro was only invoked conditionally." "$LINENO" 5
20035fi
20036if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20037  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20038Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039fi
20040
20041: "${CONFIG_STATUS=./config.status}"
20042ac_write_fail=0
20043ac_clean_files_save=$ac_clean_files
20044ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20047as_write_fail=0
20048cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20049#! $SHELL
20050# Generated by $as_me.
20051# Run this file to recreate the current configuration.
20052# Compiler output produced by configure, useful for debugging
20053# configure, is in config.log if it exists.
20054
20055debug=false
20056ac_cs_recheck=false
20057ac_cs_silent=false
20058
20059SHELL=\${CONFIG_SHELL-$SHELL}
20060export SHELL
20061_ASEOF
20062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20063## -------------------- ##
20064## M4sh Initialization. ##
20065## -------------------- ##
20066
20067# Be more Bourne compatible
20068DUALCASE=1; export DUALCASE # for MKS sh
20069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20070  emulate sh
20071  NULLCMD=:
20072  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20073  # is contrary to our usage.  Disable this feature.
20074  alias -g '${1+"$@"}'='"$@"'
20075  setopt NO_GLOB_SUBST
20076else
20077  case `(set -o) 2>/dev/null` in #(
20078  *posix*) :
20079    set -o posix ;; #(
20080  *) :
20081     ;;
20082esac
20083fi
20084
20085
20086as_nl='
20087'
20088export as_nl
20089# Printing a long string crashes Solaris 7 /usr/bin/printf.
20090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20093# Prefer a ksh shell builtin over an external printf program on Solaris,
20094# but without wasting forks for bash or zsh.
20095if test -z "$BASH_VERSION$ZSH_VERSION" \
20096    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20097  as_echo='print -r --'
20098  as_echo_n='print -rn --'
20099elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20100  as_echo='printf %s\n'
20101  as_echo_n='printf %s'
20102else
20103  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20104    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20105    as_echo_n='/usr/ucb/echo -n'
20106  else
20107    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20108    as_echo_n_body='eval
20109      arg=$1;
20110      case $arg in #(
20111      *"$as_nl"*)
20112	expr "X$arg" : "X\\(.*\\)$as_nl";
20113	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20114      esac;
20115      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20116    '
20117    export as_echo_n_body
20118    as_echo_n='sh -c $as_echo_n_body as_echo'
20119  fi
20120  export as_echo_body
20121  as_echo='sh -c $as_echo_body as_echo'
20122fi
20123
20124# The user is always right.
20125if test "${PATH_SEPARATOR+set}" != set; then
20126  PATH_SEPARATOR=:
20127  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20128    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20129      PATH_SEPARATOR=';'
20130  }
20131fi
20132
20133
20134# IFS
20135# We need space, tab and new line, in precisely that order.  Quoting is
20136# there to prevent editors from complaining about space-tab.
20137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20138# splitting by setting IFS to empty value.)
20139IFS=" ""	$as_nl"
20140
20141# Find who we are.  Look in the path if we contain no directory separator.
20142as_myself=
20143case $0 in #((
20144  *[\\/]* ) as_myself=$0 ;;
20145  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146for as_dir in $PATH
20147do
20148  IFS=$as_save_IFS
20149  test -z "$as_dir" && as_dir=.
20150    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20151  done
20152IFS=$as_save_IFS
20153
20154     ;;
20155esac
20156# We did not find ourselves, most probably we were run as `sh COMMAND'
20157# in which case we are not to be found in the path.
20158if test "x$as_myself" = x; then
20159  as_myself=$0
20160fi
20161if test ! -f "$as_myself"; then
20162  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20163  exit 1
20164fi
20165
20166# Unset variables that we do not need and which cause bugs (e.g. in
20167# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20168# suppresses any "Segmentation fault" message there.  '((' could
20169# trigger a bug in pdksh 5.2.14.
20170for as_var in BASH_ENV ENV MAIL MAILPATH
20171do eval test x\${$as_var+set} = xset \
20172  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20173done
20174PS1='$ '
20175PS2='> '
20176PS4='+ '
20177
20178# NLS nuisances.
20179LC_ALL=C
20180export LC_ALL
20181LANGUAGE=C
20182export LANGUAGE
20183
20184# CDPATH.
20185(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20186
20187
20188# as_fn_error STATUS ERROR [LINENO LOG_FD]
20189# ----------------------------------------
20190# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20191# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20192# script with STATUS, using 1 if that was 0.
20193as_fn_error ()
20194{
20195  as_status=$1; test $as_status -eq 0 && as_status=1
20196  if test "$4"; then
20197    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20198    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20199  fi
20200  $as_echo "$as_me: error: $2" >&2
20201  as_fn_exit $as_status
20202} # as_fn_error
20203
20204
20205# as_fn_set_status STATUS
20206# -----------------------
20207# Set $? to STATUS, without forking.
20208as_fn_set_status ()
20209{
20210  return $1
20211} # as_fn_set_status
20212
20213# as_fn_exit STATUS
20214# -----------------
20215# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20216as_fn_exit ()
20217{
20218  set +e
20219  as_fn_set_status $1
20220  exit $1
20221} # as_fn_exit
20222
20223# as_fn_unset VAR
20224# ---------------
20225# Portably unset VAR.
20226as_fn_unset ()
20227{
20228  { eval $1=; unset $1;}
20229}
20230as_unset=as_fn_unset
20231# as_fn_append VAR VALUE
20232# ----------------------
20233# Append the text in VALUE to the end of the definition contained in VAR. Take
20234# advantage of any shell optimizations that allow amortized linear growth over
20235# repeated appends, instead of the typical quadratic growth present in naive
20236# implementations.
20237if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20238  eval 'as_fn_append ()
20239  {
20240    eval $1+=\$2
20241  }'
20242else
20243  as_fn_append ()
20244  {
20245    eval $1=\$$1\$2
20246  }
20247fi # as_fn_append
20248
20249# as_fn_arith ARG...
20250# ------------------
20251# Perform arithmetic evaluation on the ARGs, and store the result in the
20252# global $as_val. Take advantage of shells that can avoid forks. The arguments
20253# must be portable across $(()) and expr.
20254if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20255  eval 'as_fn_arith ()
20256  {
20257    as_val=$(( $* ))
20258  }'
20259else
20260  as_fn_arith ()
20261  {
20262    as_val=`expr "$@" || test $? -eq 1`
20263  }
20264fi # as_fn_arith
20265
20266
20267if expr a : '\(a\)' >/dev/null 2>&1 &&
20268   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20269  as_expr=expr
20270else
20271  as_expr=false
20272fi
20273
20274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20275  as_basename=basename
20276else
20277  as_basename=false
20278fi
20279
20280if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20281  as_dirname=dirname
20282else
20283  as_dirname=false
20284fi
20285
20286as_me=`$as_basename -- "$0" ||
20287$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20288	 X"$0" : 'X\(//\)$' \| \
20289	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20290$as_echo X/"$0" |
20291    sed '/^.*\/\([^/][^/]*\)\/*$/{
20292	    s//\1/
20293	    q
20294	  }
20295	  /^X\/\(\/\/\)$/{
20296	    s//\1/
20297	    q
20298	  }
20299	  /^X\/\(\/\).*/{
20300	    s//\1/
20301	    q
20302	  }
20303	  s/.*/./; q'`
20304
20305# Avoid depending upon Character Ranges.
20306as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20308as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20309as_cr_digits='0123456789'
20310as_cr_alnum=$as_cr_Letters$as_cr_digits
20311
20312ECHO_C= ECHO_N= ECHO_T=
20313case `echo -n x` in #(((((
20314-n*)
20315  case `echo 'xy\c'` in
20316  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20317  xy)  ECHO_C='\c';;
20318  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20319       ECHO_T='	';;
20320  esac;;
20321*)
20322  ECHO_N='-n';;
20323esac
20324
20325rm -f conf$$ conf$$.exe conf$$.file
20326if test -d conf$$.dir; then
20327  rm -f conf$$.dir/conf$$.file
20328else
20329  rm -f conf$$.dir
20330  mkdir conf$$.dir 2>/dev/null
20331fi
20332if (echo >conf$$.file) 2>/dev/null; then
20333  if ln -s conf$$.file conf$$ 2>/dev/null; then
20334    as_ln_s='ln -s'
20335    # ... but there are two gotchas:
20336    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20337    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20338    # In both cases, we have to default to `cp -p'.
20339    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20340      as_ln_s='cp -p'
20341  elif ln conf$$.file conf$$ 2>/dev/null; then
20342    as_ln_s=ln
20343  else
20344    as_ln_s='cp -p'
20345  fi
20346else
20347  as_ln_s='cp -p'
20348fi
20349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20350rmdir conf$$.dir 2>/dev/null
20351
20352
20353# as_fn_mkdir_p
20354# -------------
20355# Create "$as_dir" as a directory, including parents if necessary.
20356as_fn_mkdir_p ()
20357{
20358
20359  case $as_dir in #(
20360  -*) as_dir=./$as_dir;;
20361  esac
20362  test -d "$as_dir" || eval $as_mkdir_p || {
20363    as_dirs=
20364    while :; do
20365      case $as_dir in #(
20366      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20367      *) as_qdir=$as_dir;;
20368      esac
20369      as_dirs="'$as_qdir' $as_dirs"
20370      as_dir=`$as_dirname -- "$as_dir" ||
20371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20372	 X"$as_dir" : 'X\(//\)[^/]' \| \
20373	 X"$as_dir" : 'X\(//\)$' \| \
20374	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20375$as_echo X"$as_dir" |
20376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20377	    s//\1/
20378	    q
20379	  }
20380	  /^X\(\/\/\)[^/].*/{
20381	    s//\1/
20382	    q
20383	  }
20384	  /^X\(\/\/\)$/{
20385	    s//\1/
20386	    q
20387	  }
20388	  /^X\(\/\).*/{
20389	    s//\1/
20390	    q
20391	  }
20392	  s/.*/./; q'`
20393      test -d "$as_dir" && break
20394    done
20395    test -z "$as_dirs" || eval "mkdir $as_dirs"
20396  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20397
20398
20399} # as_fn_mkdir_p
20400if mkdir -p . 2>/dev/null; then
20401  as_mkdir_p='mkdir -p "$as_dir"'
20402else
20403  test -d ./-p && rmdir ./-p
20404  as_mkdir_p=false
20405fi
20406
20407if test -x / >/dev/null 2>&1; then
20408  as_test_x='test -x'
20409else
20410  if ls -dL / >/dev/null 2>&1; then
20411    as_ls_L_option=L
20412  else
20413    as_ls_L_option=
20414  fi
20415  as_test_x='
20416    eval sh -c '\''
20417      if test -d "$1"; then
20418	test -d "$1/.";
20419      else
20420	case $1 in #(
20421	-*)set "./$1";;
20422	esac;
20423	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20424	???[sx]*):;;*)false;;esac;fi
20425    '\'' sh
20426  '
20427fi
20428as_executable_p=$as_test_x
20429
20430# Sed expression to map a string onto a valid CPP name.
20431as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20432
20433# Sed expression to map a string onto a valid variable name.
20434as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20435
20436
20437exec 6>&1
20438## ----------------------------------- ##
20439## Main body of $CONFIG_STATUS script. ##
20440## ----------------------------------- ##
20441_ASEOF
20442test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20443
20444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20445# Save the log message, to keep $0 and so on meaningful, and to
20446# report actual input values of CONFIG_FILES etc. instead of their
20447# values after options handling.
20448ac_log="
20449This file was extended by LibTIFF Software $as_me 4.0.1, which was
20450generated by GNU Autoconf 2.68.  Invocation command line was
20451
20452  CONFIG_FILES    = $CONFIG_FILES
20453  CONFIG_HEADERS  = $CONFIG_HEADERS
20454  CONFIG_LINKS    = $CONFIG_LINKS
20455  CONFIG_COMMANDS = $CONFIG_COMMANDS
20456  $ $0 $@
20457
20458on `(hostname || uname -n) 2>/dev/null | sed 1q`
20459"
20460
20461_ACEOF
20462
20463case $ac_config_files in *"
20464"*) set x $ac_config_files; shift; ac_config_files=$*;;
20465esac
20466
20467case $ac_config_headers in *"
20468"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20469esac
20470
20471
20472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473# Files that config.status was made for.
20474config_files="$ac_config_files"
20475config_headers="$ac_config_headers"
20476config_commands="$ac_config_commands"
20477
20478_ACEOF
20479
20480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20481ac_cs_usage="\
20482\`$as_me' instantiates files and other configuration actions
20483from templates according to the current configuration.  Unless the files
20484and actions are specified as TAGs, all are instantiated by default.
20485
20486Usage: $0 [OPTION]... [TAG]...
20487
20488  -h, --help       print this help, then exit
20489  -V, --version    print version number and configuration settings, then exit
20490      --config     print configuration, then exit
20491  -q, --quiet, --silent
20492                   do not print progress messages
20493  -d, --debug      don't remove temporary files
20494      --recheck    update $as_me by reconfiguring in the same conditions
20495      --file=FILE[:TEMPLATE]
20496                   instantiate the configuration file FILE
20497      --header=FILE[:TEMPLATE]
20498                   instantiate the configuration header FILE
20499
20500Configuration files:
20501$config_files
20502
20503Configuration headers:
20504$config_headers
20505
20506Configuration commands:
20507$config_commands
20508
20509Report bugs to <[email protected]>."
20510
20511_ACEOF
20512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20513ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20514ac_cs_version="\\
20515LibTIFF Software config.status 4.0.1
20516configured by $0, generated by GNU Autoconf 2.68,
20517  with options \\"\$ac_cs_config\\"
20518
20519Copyright (C) 2010 Free Software Foundation, Inc.
20520This config.status script is free software; the Free Software Foundation
20521gives unlimited permission to copy, distribute and modify it."
20522
20523ac_pwd='$ac_pwd'
20524srcdir='$srcdir'
20525INSTALL='$INSTALL'
20526MKDIR_P='$MKDIR_P'
20527AWK='$AWK'
20528test -n "\$AWK" || AWK=awk
20529_ACEOF
20530
20531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20532# The default lists apply if the user does not specify any file.
20533ac_need_defaults=:
20534while test $# != 0
20535do
20536  case $1 in
20537  --*=?*)
20538    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20539    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20540    ac_shift=:
20541    ;;
20542  --*=)
20543    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20544    ac_optarg=
20545    ac_shift=:
20546    ;;
20547  *)
20548    ac_option=$1
20549    ac_optarg=$2
20550    ac_shift=shift
20551    ;;
20552  esac
20553
20554  case $ac_option in
20555  # Handling of the options.
20556  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20557    ac_cs_recheck=: ;;
20558  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20559    $as_echo "$ac_cs_version"; exit ;;
20560  --config | --confi | --conf | --con | --co | --c )
20561    $as_echo "$ac_cs_config"; exit ;;
20562  --debug | --debu | --deb | --de | --d | -d )
20563    debug=: ;;
20564  --file | --fil | --fi | --f )
20565    $ac_shift
20566    case $ac_optarg in
20567    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20568    '') as_fn_error $? "missing file argument" ;;
20569    esac
20570    as_fn_append CONFIG_FILES " '$ac_optarg'"
20571    ac_need_defaults=false;;
20572  --header | --heade | --head | --hea )
20573    $ac_shift
20574    case $ac_optarg in
20575    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20576    esac
20577    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20578    ac_need_defaults=false;;
20579  --he | --h)
20580    # Conflict between --help and --header
20581    as_fn_error $? "ambiguous option: \`$1'
20582Try \`$0 --help' for more information.";;
20583  --help | --hel | -h )
20584    $as_echo "$ac_cs_usage"; exit ;;
20585  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20586  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20587    ac_cs_silent=: ;;
20588
20589  # This is an error.
20590  -*) as_fn_error $? "unrecognized option: \`$1'
20591Try \`$0 --help' for more information." ;;
20592
20593  *) as_fn_append ac_config_targets " $1"
20594     ac_need_defaults=false ;;
20595
20596  esac
20597  shift
20598done
20599
20600ac_configure_extra_args=
20601
20602if $ac_cs_silent; then
20603  exec 6>/dev/null
20604  ac_configure_extra_args="$ac_configure_extra_args --silent"
20605fi
20606
20607_ACEOF
20608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20609if \$ac_cs_recheck; then
20610  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20611  shift
20612  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20613  CONFIG_SHELL='$SHELL'
20614  export CONFIG_SHELL
20615  exec "\$@"
20616fi
20617
20618_ACEOF
20619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20620exec 5>>config.log
20621{
20622  echo
20623  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20624## Running $as_me. ##
20625_ASBOX
20626  $as_echo "$ac_log"
20627} >&5
20628
20629_ACEOF
20630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20631#
20632# INIT-COMMANDS
20633#
20634AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20635
20636
20637# The HP-UX ksh and POSIX shell print the target directory to stdout
20638# if CDPATH is set.
20639(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20640
20641sed_quote_subst='$sed_quote_subst'
20642double_quote_subst='$double_quote_subst'
20643delay_variable_subst='$delay_variable_subst'
20644macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20645macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20646AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20647DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20648OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20649enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20650enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20651pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20652enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20653SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20654ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20655PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20656host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20657host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20658host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20659build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20660build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20661build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20662SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20663Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20664GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20665EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20666FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20667LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20668NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20669LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20670max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20671ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20672exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20673lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20674lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20675lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20676lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20677lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20678reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20679reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20680deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20681file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20682file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20683want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20684sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20685AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20686AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20687archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20688STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20689RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20690old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20691old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20692old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20693lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20694CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20695CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20696compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20697GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20698lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20699lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20700lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20701lt_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"`'
20702nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20703lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20704objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20705MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20706lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20707lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20708lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20709lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20710lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20711need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20712MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20713DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20714NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20715LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20716OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20717OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20718libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20719shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20720extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20721archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20722enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20723export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20724whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20725compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20726old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20727old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20728archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20729archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20730module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20731module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20732with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20733allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20734no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20735hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20736hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20737hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20738hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20739hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20740hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20741hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20742inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20743link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20744always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20745export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20746exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20747include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20748prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20749postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20750file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20751variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20752need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20753need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20754version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20755runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20756shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20757shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20758libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20759library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20760soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20761install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20762postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20763postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20764finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20765finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20766hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20767sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20768sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20769hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20770enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20771enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20772enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20773old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20774striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20775compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20776predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20777postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20778predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20779postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20780compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20781LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20782reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20783reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20784old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20785compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20786GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20787lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20788lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20789lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20790lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20791lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20792archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20793enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20794export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20795whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20796compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20797old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20798old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20799archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20800archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20803with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20804allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20805no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20806hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20807hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20808hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20809hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20810hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20811hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20812hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20813inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20814link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20815always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20816export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20817exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20818include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20819prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20820postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20821file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20822hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20823compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20824predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20825postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20826predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20827postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20828compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20829
20830LTCC='$LTCC'
20831LTCFLAGS='$LTCFLAGS'
20832compiler='$compiler_DEFAULT'
20833
20834# A function that is used when there is no print builtin or printf.
20835func_fallback_echo ()
20836{
20837  eval 'cat <<_LTECHO_EOF
20838\$1
20839_LTECHO_EOF'
20840}
20841
20842# Quote evaled strings.
20843for var in AS \
20844DLLTOOL \
20845OBJDUMP \
20846SHELL \
20847ECHO \
20848PATH_SEPARATOR \
20849SED \
20850GREP \
20851EGREP \
20852FGREP \
20853LD \
20854NM \
20855LN_S \
20856lt_SP2NL \
20857lt_NL2SP \
20858reload_flag \
20859deplibs_check_method \
20860file_magic_cmd \
20861file_magic_glob \
20862want_nocaseglob \
20863sharedlib_from_linklib_cmd \
20864AR \
20865AR_FLAGS \
20866archiver_list_spec \
20867STRIP \
20868RANLIB \
20869CC \
20870CFLAGS \
20871compiler \
20872lt_cv_sys_global_symbol_pipe \
20873lt_cv_sys_global_symbol_to_cdecl \
20874lt_cv_sys_global_symbol_to_c_name_address \
20875lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20876nm_file_list_spec \
20877lt_prog_compiler_no_builtin_flag \
20878lt_prog_compiler_pic \
20879lt_prog_compiler_wl \
20880lt_prog_compiler_static \
20881lt_cv_prog_compiler_c_o \
20882need_locks \
20883MANIFEST_TOOL \
20884DSYMUTIL \
20885NMEDIT \
20886LIPO \
20887OTOOL \
20888OTOOL64 \
20889shrext_cmds \
20890export_dynamic_flag_spec \
20891whole_archive_flag_spec \
20892compiler_needs_object \
20893with_gnu_ld \
20894allow_undefined_flag \
20895no_undefined_flag \
20896hardcode_libdir_flag_spec \
20897hardcode_libdir_separator \
20898exclude_expsyms \
20899include_expsyms \
20900file_list_spec \
20901variables_saved_for_relink \
20902libname_spec \
20903library_names_spec \
20904soname_spec \
20905install_override_mode \
20906finish_eval \
20907old_striplib \
20908striplib \
20909compiler_lib_search_dirs \
20910predep_objects \
20911postdep_objects \
20912predeps \
20913postdeps \
20914compiler_lib_search_path \
20915LD_CXX \
20916reload_flag_CXX \
20917compiler_CXX \
20918lt_prog_compiler_no_builtin_flag_CXX \
20919lt_prog_compiler_pic_CXX \
20920lt_prog_compiler_wl_CXX \
20921lt_prog_compiler_static_CXX \
20922lt_cv_prog_compiler_c_o_CXX \
20923export_dynamic_flag_spec_CXX \
20924whole_archive_flag_spec_CXX \
20925compiler_needs_object_CXX \
20926with_gnu_ld_CXX \
20927allow_undefined_flag_CXX \
20928no_undefined_flag_CXX \
20929hardcode_libdir_flag_spec_CXX \
20930hardcode_libdir_separator_CXX \
20931exclude_expsyms_CXX \
20932include_expsyms_CXX \
20933file_list_spec_CXX \
20934compiler_lib_search_dirs_CXX \
20935predep_objects_CXX \
20936postdep_objects_CXX \
20937predeps_CXX \
20938postdeps_CXX \
20939compiler_lib_search_path_CXX; do
20940    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20941    *[\\\\\\\`\\"\\\$]*)
20942      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20943      ;;
20944    *)
20945      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20946      ;;
20947    esac
20948done
20949
20950# Double-quote double-evaled strings.
20951for var in reload_cmds \
20952old_postinstall_cmds \
20953old_postuninstall_cmds \
20954old_archive_cmds \
20955extract_expsyms_cmds \
20956old_archive_from_new_cmds \
20957old_archive_from_expsyms_cmds \
20958archive_cmds \
20959archive_expsym_cmds \
20960module_cmds \
20961module_expsym_cmds \
20962export_symbols_cmds \
20963prelink_cmds \
20964postlink_cmds \
20965postinstall_cmds \
20966postuninstall_cmds \
20967finish_cmds \
20968sys_lib_search_path_spec \
20969sys_lib_dlsearch_path_spec \
20970reload_cmds_CXX \
20971old_archive_cmds_CXX \
20972old_archive_from_new_cmds_CXX \
20973old_archive_from_expsyms_cmds_CXX \
20974archive_cmds_CXX \
20975archive_expsym_cmds_CXX \
20976module_cmds_CXX \
20977module_expsym_cmds_CXX \
20978export_symbols_cmds_CXX \
20979prelink_cmds_CXX \
20980postlink_cmds_CXX; do
20981    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20982    *[\\\\\\\`\\"\\\$]*)
20983      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20984      ;;
20985    *)
20986      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20987      ;;
20988    esac
20989done
20990
20991ac_aux_dir='$ac_aux_dir'
20992xsi_shell='$xsi_shell'
20993lt_shell_append='$lt_shell_append'
20994
20995# See if we are running on zsh, and set the options which allow our
20996# commands through without removal of \ escapes INIT.
20997if test -n "\${ZSH_VERSION+set}" ; then
20998   setopt NO_GLOB_SUBST
20999fi
21000
21001
21002    PACKAGE='$PACKAGE'
21003    VERSION='$VERSION'
21004    TIMESTAMP='$TIMESTAMP'
21005    RM='$RM'
21006    ofile='$ofile'
21007
21008
21009
21010
21011
21012
21013_ACEOF
21014
21015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21016
21017# Handling of arguments.
21018for ac_config_target in $ac_config_targets
21019do
21020  case $ac_config_target in
21021    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21022    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21023    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21024    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21025    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21026    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21027    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21028    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21029    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21030    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21031    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21032    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21033    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21034    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21035    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21036    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21037    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21038    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21039    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21040    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21041    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
21042    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21043    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21044    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21045    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21046    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21047
21048  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21049  esac
21050done
21051
21052
21053# If the user did not use the arguments to specify the items to instantiate,
21054# then the envvar interface is used.  Set only those that are not.
21055# We use the long form for the default assignment because of an extremely
21056# bizarre bug on SunOS 4.1.3.
21057if $ac_need_defaults; then
21058  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21059  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21060  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21061fi
21062
21063# Have a temporary directory for convenience.  Make it in the build tree
21064# simply because there is no reason against having it here, and in addition,
21065# creating and moving files from /tmp can sometimes cause problems.
21066# Hook for its removal unless debugging.
21067# Note that there is a small window in which the directory will not be cleaned:
21068# after its creation but before its name has been assigned to `$tmp'.
21069$debug ||
21070{
21071  tmp= ac_tmp=
21072  trap 'exit_status=$?
21073  : "${ac_tmp:=$tmp}"
21074  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21075' 0
21076  trap 'as_fn_exit 1' 1 2 13 15
21077}
21078# Create a (secure) tmp directory for tmp files.
21079
21080{
21081  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21082  test -d "$tmp"
21083}  ||
21084{
21085  tmp=./conf$$-$RANDOM
21086  (umask 077 && mkdir "$tmp")
21087} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21088ac_tmp=$tmp
21089
21090# Set up the scripts for CONFIG_FILES section.
21091# No need to generate them if there are no CONFIG_FILES.
21092# This happens for instance with `./config.status config.h'.
21093if test -n "$CONFIG_FILES"; then
21094
21095
21096ac_cr=`echo X | tr X '\015'`
21097# On cygwin, bash can eat \r inside `` if the user requested igncr.
21098# But we know of no other shell where ac_cr would be empty at this
21099# point, so we can use a bashism as a fallback.
21100if test "x$ac_cr" = x; then
21101  eval ac_cr=\$\'\\r\'
21102fi
21103ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21104if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21105  ac_cs_awk_cr='\\r'
21106else
21107  ac_cs_awk_cr=$ac_cr
21108fi
21109
21110echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21111_ACEOF
21112
21113
21114{
21115  echo "cat >conf$$subs.awk <<_ACEOF" &&
21116  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21117  echo "_ACEOF"
21118} >conf$$subs.sh ||
21119  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21121ac_delim='%!_!# '
21122for ac_last_try in false false false false false :; do
21123  . ./conf$$subs.sh ||
21124    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21125
21126  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21127  if test $ac_delim_n = $ac_delim_num; then
21128    break
21129  elif $ac_last_try; then
21130    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21131  else
21132    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21133  fi
21134done
21135rm -f conf$$subs.sh
21136
21137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21138cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21139_ACEOF
21140sed -n '
21141h
21142s/^/S["/; s/!.*/"]=/
21143p
21144g
21145s/^[^!]*!//
21146:repl
21147t repl
21148s/'"$ac_delim"'$//
21149t delim
21150:nl
21151h
21152s/\(.\{148\}\)..*/\1/
21153t more1
21154s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21155p
21156n
21157b repl
21158:more1
21159s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21160p
21161g
21162s/.\{148\}//
21163t nl
21164:delim
21165h
21166s/\(.\{148\}\)..*/\1/
21167t more2
21168s/["\\]/\\&/g; s/^/"/; s/$/"/
21169p
21170b
21171:more2
21172s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21173p
21174g
21175s/.\{148\}//
21176t delim
21177' <conf$$subs.awk | sed '
21178/^[^""]/{
21179  N
21180  s/\n//
21181}
21182' >>$CONFIG_STATUS || ac_write_fail=1
21183rm -f conf$$subs.awk
21184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185_ACAWK
21186cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21187  for (key in S) S_is_set[key] = 1
21188  FS = ""
21189
21190}
21191{
21192  line = $ 0
21193  nfields = split(line, field, "@")
21194  substed = 0
21195  len = length(field[1])
21196  for (i = 2; i < nfields; i++) {
21197    key = field[i]
21198    keylen = length(key)
21199    if (S_is_set[key]) {
21200      value = S[key]
21201      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21202      len += length(value) + length(field[++i])
21203      substed = 1
21204    } else
21205      len += 1 + keylen
21206  }
21207
21208  print line
21209}
21210
21211_ACAWK
21212_ACEOF
21213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21214if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21215  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21216else
21217  cat
21218fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21219  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21220_ACEOF
21221
21222# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21223# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21224# trailing colons and then remove the whole line if VPATH becomes empty
21225# (actually we leave an empty line to preserve line numbers).
21226if test "x$srcdir" = x.; then
21227  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21228h
21229s///
21230s/^/:/
21231s/[	 ]*$/:/
21232s/:\$(srcdir):/:/g
21233s/:\${srcdir}:/:/g
21234s/:@srcdir@:/:/g
21235s/^:*//
21236s/:*$//
21237x
21238s/\(=[	 ]*\).*/\1/
21239G
21240s/\n//
21241s/^[^=]*=[	 ]*$//
21242}'
21243fi
21244
21245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246fi # test -n "$CONFIG_FILES"
21247
21248# Set up the scripts for CONFIG_HEADERS section.
21249# No need to generate them if there are no CONFIG_HEADERS.
21250# This happens for instance with `./config.status Makefile'.
21251if test -n "$CONFIG_HEADERS"; then
21252cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21253BEGIN {
21254_ACEOF
21255
21256# Transform confdefs.h into an awk script `defines.awk', embedded as
21257# here-document in config.status, that substitutes the proper values into
21258# config.h.in to produce config.h.
21259
21260# Create a delimiter string that does not exist in confdefs.h, to ease
21261# handling of long lines.
21262ac_delim='%!_!# '
21263for ac_last_try in false false :; do
21264  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21265  if test -z "$ac_tt"; then
21266    break
21267  elif $ac_last_try; then
21268    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21269  else
21270    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21271  fi
21272done
21273
21274# For the awk script, D is an array of macro values keyed by name,
21275# likewise P contains macro parameters if any.  Preserve backslash
21276# newline sequences.
21277
21278ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21279sed -n '
21280s/.\{148\}/&'"$ac_delim"'/g
21281t rset
21282:rset
21283s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21284t def
21285d
21286:def
21287s/\\$//
21288t bsnl
21289s/["\\]/\\&/g
21290s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21291D["\1"]=" \3"/p
21292s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21293d
21294:bsnl
21295s/["\\]/\\&/g
21296s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21297D["\1"]=" \3\\\\\\n"\\/p
21298t cont
21299s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21300t cont
21301d
21302:cont
21303n
21304s/.\{148\}/&'"$ac_delim"'/g
21305t clear
21306:clear
21307s/\\$//
21308t bsnlc
21309s/["\\]/\\&/g; s/^/"/; s/$/"/p
21310d
21311:bsnlc
21312s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21313b cont
21314' <confdefs.h | sed '
21315s/'"$ac_delim"'/"\\\
21316"/g' >>$CONFIG_STATUS || ac_write_fail=1
21317
21318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319  for (key in D) D_is_set[key] = 1
21320  FS = ""
21321}
21322/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21323  line = \$ 0
21324  split(line, arg, " ")
21325  if (arg[1] == "#") {
21326    defundef = arg[2]
21327    mac1 = arg[3]
21328  } else {
21329    defundef = substr(arg[1], 2)
21330    mac1 = arg[2]
21331  }
21332  split(mac1, mac2, "(") #)
21333  macro = mac2[1]
21334  prefix = substr(line, 1, index(line, defundef) - 1)
21335  if (D_is_set[macro]) {
21336    # Preserve the white space surrounding the "#".
21337    print prefix "define", macro P[macro] D[macro]
21338    next
21339  } else {
21340    # Replace #undef with comments.  This is necessary, for example,
21341    # in the case of _POSIX_SOURCE, which is predefined and required
21342    # on some systems where configure will not decide to define it.
21343    if (defundef == "undef") {
21344      print "/*", prefix defundef, macro, "*/"
21345      next
21346    }
21347  }
21348}
21349{ print }
21350_ACAWK
21351_ACEOF
21352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21353  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21354fi # test -n "$CONFIG_HEADERS"
21355
21356
21357eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21358shift
21359for ac_tag
21360do
21361  case $ac_tag in
21362  :[FHLC]) ac_mode=$ac_tag; continue;;
21363  esac
21364  case $ac_mode$ac_tag in
21365  :[FHL]*:*);;
21366  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21367  :[FH]-) ac_tag=-:-;;
21368  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21369  esac
21370  ac_save_IFS=$IFS
21371  IFS=:
21372  set x $ac_tag
21373  IFS=$ac_save_IFS
21374  shift
21375  ac_file=$1
21376  shift
21377
21378  case $ac_mode in
21379  :L) ac_source=$1;;
21380  :[FH])
21381    ac_file_inputs=
21382    for ac_f
21383    do
21384      case $ac_f in
21385      -) ac_f="$ac_tmp/stdin";;
21386      *) # Look for the file first in the build tree, then in the source tree
21387	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21388	 # because $ac_f cannot contain `:'.
21389	 test -f "$ac_f" ||
21390	   case $ac_f in
21391	   [\\/$]*) false;;
21392	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21393	   esac ||
21394	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21395      esac
21396      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21397      as_fn_append ac_file_inputs " '$ac_f'"
21398    done
21399
21400    # Let's still pretend it is `configure' which instantiates (i.e., don't
21401    # use $as_me), people would be surprised to read:
21402    #    /* config.h.  Generated by config.status.  */
21403    configure_input='Generated from '`
21404	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21405	`' by configure.'
21406    if test x"$ac_file" != x-; then
21407      configure_input="$ac_file.  $configure_input"
21408      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21409$as_echo "$as_me: creating $ac_file" >&6;}
21410    fi
21411    # Neutralize special characters interpreted by sed in replacement strings.
21412    case $configure_input in #(
21413    *\&* | *\|* | *\\* )
21414       ac_sed_conf_input=`$as_echo "$configure_input" |
21415       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21416    *) ac_sed_conf_input=$configure_input;;
21417    esac
21418
21419    case $ac_tag in
21420    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21421      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21422    esac
21423    ;;
21424  esac
21425
21426  ac_dir=`$as_dirname -- "$ac_file" ||
21427$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428	 X"$ac_file" : 'X\(//\)[^/]' \| \
21429	 X"$ac_file" : 'X\(//\)$' \| \
21430	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21431$as_echo X"$ac_file" |
21432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21433	    s//\1/
21434	    q
21435	  }
21436	  /^X\(\/\/\)[^/].*/{
21437	    s//\1/
21438	    q
21439	  }
21440	  /^X\(\/\/\)$/{
21441	    s//\1/
21442	    q
21443	  }
21444	  /^X\(\/\).*/{
21445	    s//\1/
21446	    q
21447	  }
21448	  s/.*/./; q'`
21449  as_dir="$ac_dir"; as_fn_mkdir_p
21450  ac_builddir=.
21451
21452case "$ac_dir" in
21453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21454*)
21455  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21456  # A ".." for each directory in $ac_dir_suffix.
21457  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21458  case $ac_top_builddir_sub in
21459  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21461  esac ;;
21462esac
21463ac_abs_top_builddir=$ac_pwd
21464ac_abs_builddir=$ac_pwd$ac_dir_suffix
21465# for backward compatibility:
21466ac_top_builddir=$ac_top_build_prefix
21467
21468case $srcdir in
21469  .)  # We are building in place.
21470    ac_srcdir=.
21471    ac_top_srcdir=$ac_top_builddir_sub
21472    ac_abs_top_srcdir=$ac_pwd ;;
21473  [\\/]* | ?:[\\/]* )  # Absolute name.
21474    ac_srcdir=$srcdir$ac_dir_suffix;
21475    ac_top_srcdir=$srcdir
21476    ac_abs_top_srcdir=$srcdir ;;
21477  *) # Relative name.
21478    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21479    ac_top_srcdir=$ac_top_build_prefix$srcdir
21480    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21481esac
21482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21483
21484
21485  case $ac_mode in
21486  :F)
21487  #
21488  # CONFIG_FILE
21489  #
21490
21491  case $INSTALL in
21492  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21493  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21494  esac
21495  ac_MKDIR_P=$MKDIR_P
21496  case $MKDIR_P in
21497  [\\/$]* | ?:[\\/]* ) ;;
21498  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21499  esac
21500_ACEOF
21501
21502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21503# If the template does not know about datarootdir, expand it.
21504# FIXME: This hack should be removed a few years after 2.60.
21505ac_datarootdir_hack=; ac_datarootdir_seen=
21506ac_sed_dataroot='
21507/datarootdir/ {
21508  p
21509  q
21510}
21511/@datadir@/p
21512/@docdir@/p
21513/@infodir@/p
21514/@localedir@/p
21515/@mandir@/p'
21516case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21517*datarootdir*) ac_datarootdir_seen=yes;;
21518*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21519  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21520$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21521_ACEOF
21522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21523  ac_datarootdir_hack='
21524  s&@datadir@&$datadir&g
21525  s&@docdir@&$docdir&g
21526  s&@infodir@&$infodir&g
21527  s&@localedir@&$localedir&g
21528  s&@mandir@&$mandir&g
21529  s&\\\${datarootdir}&$datarootdir&g' ;;
21530esac
21531_ACEOF
21532
21533# Neutralize VPATH when `$srcdir' = `.'.
21534# Shell code in configure.ac might set extrasub.
21535# FIXME: do we really want to maintain this feature?
21536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537ac_sed_extra="$ac_vpsub
21538$extrasub
21539_ACEOF
21540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21541:t
21542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21543s|@configure_input@|$ac_sed_conf_input|;t t
21544s&@top_builddir@&$ac_top_builddir_sub&;t t
21545s&@top_build_prefix@&$ac_top_build_prefix&;t t
21546s&@srcdir@&$ac_srcdir&;t t
21547s&@abs_srcdir@&$ac_abs_srcdir&;t t
21548s&@top_srcdir@&$ac_top_srcdir&;t t
21549s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21550s&@builddir@&$ac_builddir&;t t
21551s&@abs_builddir@&$ac_abs_builddir&;t t
21552s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21553s&@INSTALL@&$ac_INSTALL&;t t
21554s&@MKDIR_P@&$ac_MKDIR_P&;t t
21555$ac_datarootdir_hack
21556"
21557eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21558  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21559
21560test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21561  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21562  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21563      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21565which seems to be undefined.  Please make sure it is defined" >&5
21566$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21567which seems to be undefined.  Please make sure it is defined" >&2;}
21568
21569  rm -f "$ac_tmp/stdin"
21570  case $ac_file in
21571  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21572  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21573  esac \
21574  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21575 ;;
21576  :H)
21577  #
21578  # CONFIG_HEADER
21579  #
21580  if test x"$ac_file" != x-; then
21581    {
21582      $as_echo "/* $configure_input  */" \
21583      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21584    } >"$ac_tmp/config.h" \
21585      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21586    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21587      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21588$as_echo "$as_me: $ac_file is unchanged" >&6;}
21589    else
21590      rm -f "$ac_file"
21591      mv "$ac_tmp/config.h" "$ac_file" \
21592	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21593    fi
21594  else
21595    $as_echo "/* $configure_input  */" \
21596      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21597      || as_fn_error $? "could not create -" "$LINENO" 5
21598  fi
21599# Compute "$ac_file"'s index in $config_headers.
21600_am_arg="$ac_file"
21601_am_stamp_count=1
21602for _am_header in $config_headers :; do
21603  case $_am_header in
21604    $_am_arg | $_am_arg:* )
21605      break ;;
21606    * )
21607      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21608  esac
21609done
21610echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21611$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21613	 X"$_am_arg" : 'X\(//\)$' \| \
21614	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21615$as_echo X"$_am_arg" |
21616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21617	    s//\1/
21618	    q
21619	  }
21620	  /^X\(\/\/\)[^/].*/{
21621	    s//\1/
21622	    q
21623	  }
21624	  /^X\(\/\/\)$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\).*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  s/.*/./; q'`/stamp-h$_am_stamp_count
21633 ;;
21634
21635  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21636$as_echo "$as_me: executing $ac_file commands" >&6;}
21637 ;;
21638  esac
21639
21640
21641  case $ac_file$ac_mode in
21642    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21643  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21644  # are listed without --file.  Let's play safe and only enable the eval
21645  # if we detect the quoting.
21646  case $CONFIG_FILES in
21647  *\'*) eval set x "$CONFIG_FILES" ;;
21648  *)   set x $CONFIG_FILES ;;
21649  esac
21650  shift
21651  for mf
21652  do
21653    # Strip MF so we end up with the name of the file.
21654    mf=`echo "$mf" | sed -e 's/:.*$//'`
21655    # Check whether this is an Automake generated Makefile or not.
21656    # We used to match only the files named `Makefile.in', but
21657    # some people rename them; so instead we look at the file content.
21658    # Grep'ing the first line is not enough: some people post-process
21659    # each Makefile.in and add a new line on top of each file to say so.
21660    # Grep'ing the whole file is not good either: AIX grep has a line
21661    # limit of 2048, but all sed's we know have understand at least 4000.
21662    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21663      dirpart=`$as_dirname -- "$mf" ||
21664$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21665	 X"$mf" : 'X\(//\)[^/]' \| \
21666	 X"$mf" : 'X\(//\)$' \| \
21667	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21668$as_echo X"$mf" |
21669    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21670	    s//\1/
21671	    q
21672	  }
21673	  /^X\(\/\/\)[^/].*/{
21674	    s//\1/
21675	    q
21676	  }
21677	  /^X\(\/\/\)$/{
21678	    s//\1/
21679	    q
21680	  }
21681	  /^X\(\/\).*/{
21682	    s//\1/
21683	    q
21684	  }
21685	  s/.*/./; q'`
21686    else
21687      continue
21688    fi
21689    # Extract the definition of DEPDIR, am__include, and am__quote
21690    # from the Makefile without running `make'.
21691    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21692    test -z "$DEPDIR" && continue
21693    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21694    test -z "am__include" && continue
21695    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21696    # When using ansi2knr, U may be empty or an underscore; expand it
21697    U=`sed -n 's/^U = //p' < "$mf"`
21698    # Find all dependency output files, they are included files with
21699    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21700    # simplest approach to changing $(DEPDIR) to its actual value in the
21701    # expansion.
21702    for file in `sed -n "
21703      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21704	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21705      # Make sure the directory exists.
21706      test -f "$dirpart/$file" && continue
21707      fdir=`$as_dirname -- "$file" ||
21708$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709	 X"$file" : 'X\(//\)[^/]' \| \
21710	 X"$file" : 'X\(//\)$' \| \
21711	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21712$as_echo X"$file" |
21713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21714	    s//\1/
21715	    q
21716	  }
21717	  /^X\(\/\/\)[^/].*/{
21718	    s//\1/
21719	    q
21720	  }
21721	  /^X\(\/\/\)$/{
21722	    s//\1/
21723	    q
21724	  }
21725	  /^X\(\/\).*/{
21726	    s//\1/
21727	    q
21728	  }
21729	  s/.*/./; q'`
21730      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21731      # echo "creating $dirpart/$file"
21732      echo '# dummy' > "$dirpart/$file"
21733    done
21734  done
21735}
21736 ;;
21737    "libtool":C)
21738
21739    # See if we are running on zsh, and set the options which allow our
21740    # commands through without removal of \ escapes.
21741    if test -n "${ZSH_VERSION+set}" ; then
21742      setopt NO_GLOB_SUBST
21743    fi
21744
21745    cfgfile="${ofile}T"
21746    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21747    $RM "$cfgfile"
21748
21749    cat <<_LT_EOF >> "$cfgfile"
21750#! $SHELL
21751
21752# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21753# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21755# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21756#
21757#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21758#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21759#                 Foundation, Inc.
21760#   Written by Gordon Matzigkeit, 1996
21761#
21762#   This file is part of GNU Libtool.
21763#
21764# GNU Libtool is free software; you can redistribute it and/or
21765# modify it under the terms of the GNU General Public License as
21766# published by the Free Software Foundation; either version 2 of
21767# the License, or (at your option) any later version.
21768#
21769# As a special exception to the GNU General Public License,
21770# if you distribute this file as part of a program or library that
21771# is built using GNU Libtool, you may include this file under the
21772# same distribution terms that you use for the rest of that program.
21773#
21774# GNU Libtool is distributed in the hope that it will be useful,
21775# but WITHOUT ANY WARRANTY; without even the implied warranty of
21776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21777# GNU General Public License for more details.
21778#
21779# You should have received a copy of the GNU General Public License
21780# along with GNU Libtool; see the file COPYING.  If not, a copy
21781# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21782# obtained by writing to the Free Software Foundation, Inc.,
21783# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21784
21785
21786# The names of the tagged configurations supported by this script.
21787available_tags="CXX "
21788
21789# ### BEGIN LIBTOOL CONFIG
21790
21791# Which release of libtool.m4 was used?
21792macro_version=$macro_version
21793macro_revision=$macro_revision
21794
21795# Assembler program.
21796AS=$lt_AS
21797
21798# DLL creation program.
21799DLLTOOL=$lt_DLLTOOL
21800
21801# Object dumper program.
21802OBJDUMP=$lt_OBJDUMP
21803
21804# Whether or not to build shared libraries.
21805build_libtool_libs=$enable_shared
21806
21807# Whether or not to build static libraries.
21808build_old_libs=$enable_static
21809
21810# What type of objects to build.
21811pic_mode=$pic_mode
21812
21813# Whether or not to optimize for fast installation.
21814fast_install=$enable_fast_install
21815
21816# Shell to use when invoking shell scripts.
21817SHELL=$lt_SHELL
21818
21819# An echo program that protects backslashes.
21820ECHO=$lt_ECHO
21821
21822# The PATH separator for the build system.
21823PATH_SEPARATOR=$lt_PATH_SEPARATOR
21824
21825# The host system.
21826host_alias=$host_alias
21827host=$host
21828host_os=$host_os
21829
21830# The build system.
21831build_alias=$build_alias
21832build=$build
21833build_os=$build_os
21834
21835# A sed program that does not truncate output.
21836SED=$lt_SED
21837
21838# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21839Xsed="\$SED -e 1s/^X//"
21840
21841# A grep program that handles long lines.
21842GREP=$lt_GREP
21843
21844# An ERE matcher.
21845EGREP=$lt_EGREP
21846
21847# A literal string matcher.
21848FGREP=$lt_FGREP
21849
21850# A BSD- or MS-compatible name lister.
21851NM=$lt_NM
21852
21853# Whether we need soft or hard links.
21854LN_S=$lt_LN_S
21855
21856# What is the maximum length of a command?
21857max_cmd_len=$max_cmd_len
21858
21859# Object file suffix (normally "o").
21860objext=$ac_objext
21861
21862# Executable file suffix (normally "").
21863exeext=$exeext
21864
21865# whether the shell understands "unset".
21866lt_unset=$lt_unset
21867
21868# turn spaces into newlines.
21869SP2NL=$lt_lt_SP2NL
21870
21871# turn newlines into spaces.
21872NL2SP=$lt_lt_NL2SP
21873
21874# convert \$build file names to \$host format.
21875to_host_file_cmd=$lt_cv_to_host_file_cmd
21876
21877# convert \$build files to toolchain format.
21878to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21879
21880# Method to check whether dependent libraries are shared objects.
21881deplibs_check_method=$lt_deplibs_check_method
21882
21883# Command to use when deplibs_check_method = "file_magic".
21884file_magic_cmd=$lt_file_magic_cmd
21885
21886# How to find potential files when deplibs_check_method = "file_magic".
21887file_magic_glob=$lt_file_magic_glob
21888
21889# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21890want_nocaseglob=$lt_want_nocaseglob
21891
21892# Command to associate shared and link libraries.
21893sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21894
21895# The archiver.
21896AR=$lt_AR
21897
21898# Flags to create an archive.
21899AR_FLAGS=$lt_AR_FLAGS
21900
21901# How to feed a file listing to the archiver.
21902archiver_list_spec=$lt_archiver_list_spec
21903
21904# A symbol stripping program.
21905STRIP=$lt_STRIP
21906
21907# Commands used to install an old-style archive.
21908RANLIB=$lt_RANLIB
21909old_postinstall_cmds=$lt_old_postinstall_cmds
21910old_postuninstall_cmds=$lt_old_postuninstall_cmds
21911
21912# Whether to use a lock for old archive extraction.
21913lock_old_archive_extraction=$lock_old_archive_extraction
21914
21915# A C compiler.
21916LTCC=$lt_CC
21917
21918# LTCC compiler flags.
21919LTCFLAGS=$lt_CFLAGS
21920
21921# Take the output of nm and produce a listing of raw symbols and C names.
21922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21923
21924# Transform the output of nm in a proper C declaration.
21925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21926
21927# Transform the output of nm in a C name address pair.
21928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21929
21930# Transform the output of nm in a C name address pair when lib prefix is needed.
21931global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21932
21933# Specify filename containing input files for \$NM.
21934nm_file_list_spec=$lt_nm_file_list_spec
21935
21936# The root where to search for dependent libraries,and in which our libraries should be installed.
21937lt_sysroot=$lt_sysroot
21938
21939# The name of the directory that contains temporary libtool files.
21940objdir=$objdir
21941
21942# Used to examine libraries when file_magic_cmd begins with "file".
21943MAGIC_CMD=$MAGIC_CMD
21944
21945# Must we lock files when doing compilation?
21946need_locks=$lt_need_locks
21947
21948# Manifest tool.
21949MANIFEST_TOOL=$lt_MANIFEST_TOOL
21950
21951# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21952DSYMUTIL=$lt_DSYMUTIL
21953
21954# Tool to change global to local symbols on Mac OS X.
21955NMEDIT=$lt_NMEDIT
21956
21957# Tool to manipulate fat objects and archives on Mac OS X.
21958LIPO=$lt_LIPO
21959
21960# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21961OTOOL=$lt_OTOOL
21962
21963# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21964OTOOL64=$lt_OTOOL64
21965
21966# Old archive suffix (normally "a").
21967libext=$libext
21968
21969# Shared library suffix (normally ".so").
21970shrext_cmds=$lt_shrext_cmds
21971
21972# The commands to extract the exported symbol list from a shared archive.
21973extract_expsyms_cmds=$lt_extract_expsyms_cmds
21974
21975# Variables whose values should be saved in libtool wrapper scripts and
21976# restored at link time.
21977variables_saved_for_relink=$lt_variables_saved_for_relink
21978
21979# Do we need the "lib" prefix for modules?
21980need_lib_prefix=$need_lib_prefix
21981
21982# Do we need a version for libraries?
21983need_version=$need_version
21984
21985# Library versioning type.
21986version_type=$version_type
21987
21988# Shared library runtime path variable.
21989runpath_var=$runpath_var
21990
21991# Shared library path variable.
21992shlibpath_var=$shlibpath_var
21993
21994# Is shlibpath searched before the hard-coded library search path?
21995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21996
21997# Format of library name prefix.
21998libname_spec=$lt_libname_spec
21999
22000# List of archive names.  First name is the real one, the rest are links.
22001# The last name is the one that the linker finds with -lNAME
22002library_names_spec=$lt_library_names_spec
22003
22004# The coded name of the library, if different from the real name.
22005soname_spec=$lt_soname_spec
22006
22007# Permission mode override for installation of shared libraries.
22008install_override_mode=$lt_install_override_mode
22009
22010# Command to use after installation of a shared archive.
22011postinstall_cmds=$lt_postinstall_cmds
22012
22013# Command to use after uninstallation of a shared archive.
22014postuninstall_cmds=$lt_postuninstall_cmds
22015
22016# Commands used to finish a libtool library installation in a directory.
22017finish_cmds=$lt_finish_cmds
22018
22019# As "finish_cmds", except a single script fragment to be evaled but
22020# not shown.
22021finish_eval=$lt_finish_eval
22022
22023# Whether we should hardcode library paths into libraries.
22024hardcode_into_libs=$hardcode_into_libs
22025
22026# Compile-time system search path for libraries.
22027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22028
22029# Run-time system search path for libraries.
22030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22031
22032# Whether dlopen is supported.
22033dlopen_support=$enable_dlopen
22034
22035# Whether dlopen of programs is supported.
22036dlopen_self=$enable_dlopen_self
22037
22038# Whether dlopen of statically linked programs is supported.
22039dlopen_self_static=$enable_dlopen_self_static
22040
22041# Commands to strip libraries.
22042old_striplib=$lt_old_striplib
22043striplib=$lt_striplib
22044
22045
22046# The linker used to build libraries.
22047LD=$lt_LD
22048
22049# How to create reloadable object files.
22050reload_flag=$lt_reload_flag
22051reload_cmds=$lt_reload_cmds
22052
22053# Commands used to build an old-style archive.
22054old_archive_cmds=$lt_old_archive_cmds
22055
22056# A language specific compiler.
22057CC=$lt_compiler
22058
22059# Is the compiler the GNU compiler?
22060with_gcc=$GCC
22061
22062# Compiler flag to turn off builtin functions.
22063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22064
22065# Additional compiler flags for building library objects.
22066pic_flag=$lt_lt_prog_compiler_pic
22067
22068# How to pass a linker flag through the compiler.
22069wl=$lt_lt_prog_compiler_wl
22070
22071# Compiler flag to prevent dynamic linking.
22072link_static_flag=$lt_lt_prog_compiler_static
22073
22074# Does compiler simultaneously support -c and -o options?
22075compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22076
22077# Whether or not to add -lc for building shared libraries.
22078build_libtool_need_lc=$archive_cmds_need_lc
22079
22080# Whether or not to disallow shared libs when runtime libs are static.
22081allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22082
22083# Compiler flag to allow reflexive dlopens.
22084export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22085
22086# Compiler flag to generate shared objects directly from archives.
22087whole_archive_flag_spec=$lt_whole_archive_flag_spec
22088
22089# Whether the compiler copes with passing no objects directly.
22090compiler_needs_object=$lt_compiler_needs_object
22091
22092# Create an old-style archive from a shared archive.
22093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22094
22095# Create a temporary old-style archive to link instead of a shared archive.
22096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22097
22098# Commands used to build a shared archive.
22099archive_cmds=$lt_archive_cmds
22100archive_expsym_cmds=$lt_archive_expsym_cmds
22101
22102# Commands used to build a loadable module if different from building
22103# a shared archive.
22104module_cmds=$lt_module_cmds
22105module_expsym_cmds=$lt_module_expsym_cmds
22106
22107# Whether we are building with GNU ld or not.
22108with_gnu_ld=$lt_with_gnu_ld
22109
22110# Flag that allows shared libraries with undefined symbols to be built.
22111allow_undefined_flag=$lt_allow_undefined_flag
22112
22113# Flag that enforces no undefined symbols.
22114no_undefined_flag=$lt_no_undefined_flag
22115
22116# Flag to hardcode \$libdir into a binary during linking.
22117# This must work even if \$libdir does not exist
22118hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22119
22120# Whether we need a single "-rpath" flag with a separated argument.
22121hardcode_libdir_separator=$lt_hardcode_libdir_separator
22122
22123# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22124# DIR into the resulting binary.
22125hardcode_direct=$hardcode_direct
22126
22127# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22128# DIR into the resulting binary and the resulting library dependency is
22129# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22130# library is relocated.
22131hardcode_direct_absolute=$hardcode_direct_absolute
22132
22133# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22134# into the resulting binary.
22135hardcode_minus_L=$hardcode_minus_L
22136
22137# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22138# into the resulting binary.
22139hardcode_shlibpath_var=$hardcode_shlibpath_var
22140
22141# Set to "yes" if building a shared library automatically hardcodes DIR
22142# into the library and all subsequent libraries and executables linked
22143# against it.
22144hardcode_automatic=$hardcode_automatic
22145
22146# Set to yes if linker adds runtime paths of dependent libraries
22147# to runtime path list.
22148inherit_rpath=$inherit_rpath
22149
22150# Whether libtool must link a program against all its dependency libraries.
22151link_all_deplibs=$link_all_deplibs
22152
22153# Set to "yes" if exported symbols are required.
22154always_export_symbols=$always_export_symbols
22155
22156# The commands to list exported symbols.
22157export_symbols_cmds=$lt_export_symbols_cmds
22158
22159# Symbols that should not be listed in the preloaded symbols.
22160exclude_expsyms=$lt_exclude_expsyms
22161
22162# Symbols that must always be exported.
22163include_expsyms=$lt_include_expsyms
22164
22165# Commands necessary for linking programs (against libraries) with templates.
22166prelink_cmds=$lt_prelink_cmds
22167
22168# Commands necessary for finishing linking programs.
22169postlink_cmds=$lt_postlink_cmds
22170
22171# Specify filename containing input files.
22172file_list_spec=$lt_file_list_spec
22173
22174# How to hardcode a shared library path into an executable.
22175hardcode_action=$hardcode_action
22176
22177# The directories searched by this compiler when creating a shared library.
22178compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22179
22180# Dependencies to place before and after the objects being linked to
22181# create a shared library.
22182predep_objects=$lt_predep_objects
22183postdep_objects=$lt_postdep_objects
22184predeps=$lt_predeps
22185postdeps=$lt_postdeps
22186
22187# The library search path used internally by the compiler when linking
22188# a shared library.
22189compiler_lib_search_path=$lt_compiler_lib_search_path
22190
22191# ### END LIBTOOL CONFIG
22192
22193_LT_EOF
22194
22195  case $host_os in
22196  aix3*)
22197    cat <<\_LT_EOF >> "$cfgfile"
22198# AIX sometimes has problems with the GCC collect2 program.  For some
22199# reason, if we set the COLLECT_NAMES environment variable, the problems
22200# vanish in a puff of smoke.
22201if test "X${COLLECT_NAMES+set}" != Xset; then
22202  COLLECT_NAMES=
22203  export COLLECT_NAMES
22204fi
22205_LT_EOF
22206    ;;
22207  esac
22208
22209
22210ltmain="$ac_aux_dir/ltmain.sh"
22211
22212
22213  # We use sed instead of cat because bash on DJGPP gets confused if
22214  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22215  # text mode, it properly converts lines to CR/LF.  This bash problem
22216  # is reportedly fixed, but why not run on old versions too?
22217  sed '$q' "$ltmain" >> "$cfgfile" \
22218     || (rm -f "$cfgfile"; exit 1)
22219
22220  if test x"$xsi_shell" = xyes; then
22221  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22222func_dirname ()\
22223{\
22224\    case ${1} in\
22225\      */*) func_dirname_result="${1%/*}${2}" ;;\
22226\      *  ) func_dirname_result="${3}" ;;\
22227\    esac\
22228} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22229  && mv -f "$cfgfile.tmp" "$cfgfile" \
22230    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22231test 0 -eq $? || _lt_function_replace_fail=:
22232
22233
22234  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22235func_basename ()\
22236{\
22237\    func_basename_result="${1##*/}"\
22238} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22239  && mv -f "$cfgfile.tmp" "$cfgfile" \
22240    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22241test 0 -eq $? || _lt_function_replace_fail=:
22242
22243
22244  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22245func_dirname_and_basename ()\
22246{\
22247\    case ${1} in\
22248\      */*) func_dirname_result="${1%/*}${2}" ;;\
22249\      *  ) func_dirname_result="${3}" ;;\
22250\    esac\
22251\    func_basename_result="${1##*/}"\
22252} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22253  && mv -f "$cfgfile.tmp" "$cfgfile" \
22254    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22255test 0 -eq $? || _lt_function_replace_fail=:
22256
22257
22258  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22259func_stripname ()\
22260{\
22261\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22262\    # positional parameters, so assign one to ordinary parameter first.\
22263\    func_stripname_result=${3}\
22264\    func_stripname_result=${func_stripname_result#"${1}"}\
22265\    func_stripname_result=${func_stripname_result%"${2}"}\
22266} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22267  && mv -f "$cfgfile.tmp" "$cfgfile" \
22268    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22269test 0 -eq $? || _lt_function_replace_fail=:
22270
22271
22272  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22273func_split_long_opt ()\
22274{\
22275\    func_split_long_opt_name=${1%%=*}\
22276\    func_split_long_opt_arg=${1#*=}\
22277} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22278  && mv -f "$cfgfile.tmp" "$cfgfile" \
22279    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280test 0 -eq $? || _lt_function_replace_fail=:
22281
22282
22283  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22284func_split_short_opt ()\
22285{\
22286\    func_split_short_opt_arg=${1#??}\
22287\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22288} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22289  && mv -f "$cfgfile.tmp" "$cfgfile" \
22290    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291test 0 -eq $? || _lt_function_replace_fail=:
22292
22293
22294  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22295func_lo2o ()\
22296{\
22297\    case ${1} in\
22298\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22299\      *)    func_lo2o_result=${1} ;;\
22300\    esac\
22301} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22302  && mv -f "$cfgfile.tmp" "$cfgfile" \
22303    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22304test 0 -eq $? || _lt_function_replace_fail=:
22305
22306
22307  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22308func_xform ()\
22309{\
22310    func_xform_result=${1%.*}.lo\
22311} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22312  && mv -f "$cfgfile.tmp" "$cfgfile" \
22313    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22314test 0 -eq $? || _lt_function_replace_fail=:
22315
22316
22317  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22318func_arith ()\
22319{\
22320    func_arith_result=$(( $* ))\
22321} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22322  && mv -f "$cfgfile.tmp" "$cfgfile" \
22323    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22324test 0 -eq $? || _lt_function_replace_fail=:
22325
22326
22327  sed -e '/^func_len ()$/,/^} # func_len /c\
22328func_len ()\
22329{\
22330    func_len_result=${#1}\
22331} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22332  && mv -f "$cfgfile.tmp" "$cfgfile" \
22333    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22334test 0 -eq $? || _lt_function_replace_fail=:
22335
22336fi
22337
22338if test x"$lt_shell_append" = xyes; then
22339  sed -e '/^func_append ()$/,/^} # func_append /c\
22340func_append ()\
22341{\
22342    eval "${1}+=\\${2}"\
22343} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22344  && mv -f "$cfgfile.tmp" "$cfgfile" \
22345    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22346test 0 -eq $? || _lt_function_replace_fail=:
22347
22348
22349  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22350func_append_quoted ()\
22351{\
22352\    func_quote_for_eval "${2}"\
22353\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22354} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22355  && mv -f "$cfgfile.tmp" "$cfgfile" \
22356    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22357test 0 -eq $? || _lt_function_replace_fail=:
22358
22359
22360  # Save a `func_append' function call where possible by direct use of '+='
22361  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22362    && mv -f "$cfgfile.tmp" "$cfgfile" \
22363      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22364  test 0 -eq $? || _lt_function_replace_fail=:
22365else
22366  # Save a `func_append' function call even when '+=' is not available
22367  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22368    && mv -f "$cfgfile.tmp" "$cfgfile" \
22369      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22370  test 0 -eq $? || _lt_function_replace_fail=:
22371fi
22372
22373if test x"$_lt_function_replace_fail" = x":"; then
22374  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22375$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22376fi
22377
22378
22379   mv -f "$cfgfile" "$ofile" ||
22380    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22381  chmod +x "$ofile"
22382
22383
22384    cat <<_LT_EOF >> "$ofile"
22385
22386# ### BEGIN LIBTOOL TAG CONFIG: CXX
22387
22388# The linker used to build libraries.
22389LD=$lt_LD_CXX
22390
22391# How to create reloadable object files.
22392reload_flag=$lt_reload_flag_CXX
22393reload_cmds=$lt_reload_cmds_CXX
22394
22395# Commands used to build an old-style archive.
22396old_archive_cmds=$lt_old_archive_cmds_CXX
22397
22398# A language specific compiler.
22399CC=$lt_compiler_CXX
22400
22401# Is the compiler the GNU compiler?
22402with_gcc=$GCC_CXX
22403
22404# Compiler flag to turn off builtin functions.
22405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22406
22407# Additional compiler flags for building library objects.
22408pic_flag=$lt_lt_prog_compiler_pic_CXX
22409
22410# How to pass a linker flag through the compiler.
22411wl=$lt_lt_prog_compiler_wl_CXX
22412
22413# Compiler flag to prevent dynamic linking.
22414link_static_flag=$lt_lt_prog_compiler_static_CXX
22415
22416# Does compiler simultaneously support -c and -o options?
22417compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22418
22419# Whether or not to add -lc for building shared libraries.
22420build_libtool_need_lc=$archive_cmds_need_lc_CXX
22421
22422# Whether or not to disallow shared libs when runtime libs are static.
22423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22424
22425# Compiler flag to allow reflexive dlopens.
22426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22427
22428# Compiler flag to generate shared objects directly from archives.
22429whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22430
22431# Whether the compiler copes with passing no objects directly.
22432compiler_needs_object=$lt_compiler_needs_object_CXX
22433
22434# Create an old-style archive from a shared archive.
22435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22436
22437# Create a temporary old-style archive to link instead of a shared archive.
22438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22439
22440# Commands used to build a shared archive.
22441archive_cmds=$lt_archive_cmds_CXX
22442archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22443
22444# Commands used to build a loadable module if different from building
22445# a shared archive.
22446module_cmds=$lt_module_cmds_CXX
22447module_expsym_cmds=$lt_module_expsym_cmds_CXX
22448
22449# Whether we are building with GNU ld or not.
22450with_gnu_ld=$lt_with_gnu_ld_CXX
22451
22452# Flag that allows shared libraries with undefined symbols to be built.
22453allow_undefined_flag=$lt_allow_undefined_flag_CXX
22454
22455# Flag that enforces no undefined symbols.
22456no_undefined_flag=$lt_no_undefined_flag_CXX
22457
22458# Flag to hardcode \$libdir into a binary during linking.
22459# This must work even if \$libdir does not exist
22460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22461
22462# Whether we need a single "-rpath" flag with a separated argument.
22463hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22464
22465# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22466# DIR into the resulting binary.
22467hardcode_direct=$hardcode_direct_CXX
22468
22469# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22470# DIR into the resulting binary and the resulting library dependency is
22471# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22472# library is relocated.
22473hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22474
22475# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22476# into the resulting binary.
22477hardcode_minus_L=$hardcode_minus_L_CXX
22478
22479# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22480# into the resulting binary.
22481hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22482
22483# Set to "yes" if building a shared library automatically hardcodes DIR
22484# into the library and all subsequent libraries and executables linked
22485# against it.
22486hardcode_automatic=$hardcode_automatic_CXX
22487
22488# Set to yes if linker adds runtime paths of dependent libraries
22489# to runtime path list.
22490inherit_rpath=$inherit_rpath_CXX
22491
22492# Whether libtool must link a program against all its dependency libraries.
22493link_all_deplibs=$link_all_deplibs_CXX
22494
22495# Set to "yes" if exported symbols are required.
22496always_export_symbols=$always_export_symbols_CXX
22497
22498# The commands to list exported symbols.
22499export_symbols_cmds=$lt_export_symbols_cmds_CXX
22500
22501# Symbols that should not be listed in the preloaded symbols.
22502exclude_expsyms=$lt_exclude_expsyms_CXX
22503
22504# Symbols that must always be exported.
22505include_expsyms=$lt_include_expsyms_CXX
22506
22507# Commands necessary for linking programs (against libraries) with templates.
22508prelink_cmds=$lt_prelink_cmds_CXX
22509
22510# Commands necessary for finishing linking programs.
22511postlink_cmds=$lt_postlink_cmds_CXX
22512
22513# Specify filename containing input files.
22514file_list_spec=$lt_file_list_spec_CXX
22515
22516# How to hardcode a shared library path into an executable.
22517hardcode_action=$hardcode_action_CXX
22518
22519# The directories searched by this compiler when creating a shared library.
22520compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22521
22522# Dependencies to place before and after the objects being linked to
22523# create a shared library.
22524predep_objects=$lt_predep_objects_CXX
22525postdep_objects=$lt_postdep_objects_CXX
22526predeps=$lt_predeps_CXX
22527postdeps=$lt_postdeps_CXX
22528
22529# The library search path used internally by the compiler when linking
22530# a shared library.
22531compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22532
22533# ### END LIBTOOL TAG CONFIG: CXX
22534_LT_EOF
22535
22536 ;;
22537
22538  esac
22539done # for ac_tag
22540
22541
22542as_fn_exit 0
22543_ACEOF
22544ac_clean_files=$ac_clean_files_save
22545
22546test $ac_write_fail = 0 ||
22547  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22548
22549
22550# configure is writing to config.log, and then calls config.status.
22551# config.status does its own redirection, appending to config.log.
22552# Unfortunately, on DOS this fails, as config.log is still kept open
22553# by configure, so config.status won't be able to write to it; its
22554# output is simply discarded.  So we exec the FD to /dev/null,
22555# effectively closing config.log, so it can be properly (re)opened and
22556# appended to by config.status.  When coming back to configure, we
22557# need to make the FD available again.
22558if test "$no_create" != yes; then
22559  ac_cs_success=:
22560  ac_config_status_args=
22561  test "$silent" = yes &&
22562    ac_config_status_args="$ac_config_status_args --quiet"
22563  exec 5>/dev/null
22564  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22565  exec 5>>config.log
22566  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22567  # would make configure fail if this is the last instruction.
22568  $ac_cs_success || as_fn_exit 1
22569fi
22570if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22572$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22573fi
22574
22575
22576
22577echo ""
22578echo "Libtiff is now configured for ${host}"
22579echo ""
22580echo "  Installation directory:             ${prefix}"
22581echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
22582echo "  C compiler:                         ${CC} ${CFLAGS}"
22583echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
22584echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
22585echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
22586echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
22587echo "  Use win32 IO:                       ${win32_io_ok}"
22588echo ""
22589echo " Support for internal codecs:"
22590echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
22591echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
22592echo "  LZW algorithm:                      ${HAVE_LZW}"
22593echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
22594echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
22595echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22596echo ""
22597echo " Support for external codecs:"
22598echo "  ZLIB support:                       ${HAVE_ZLIB}"
22599echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
22600echo "  JPEG support:                       ${HAVE_JPEG}"
22601echo "  Old JPEG support:                   ${HAVE_OJPEG}"
22602echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
22603echo "  ISO JBIG support:                   ${HAVE_JBIG}"
22604echo "  LZMA2 support:                      ${HAVE_LZMA}"
22605echo ""
22606echo "  C++ support:                        ${HAVE_CXX}"
22607echo ""
22608echo "  OpenGL support:                     ${HAVE_OPENGL}"
22609echo ""
22610
22611