xref: /libtiff-4.0.7/configure (revision e90c73e6)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.3.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell [email protected] and
278$0: [email protected] about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='LibTIFF Software'
592PACKAGE_TARNAME='tiff'
593PACKAGE_VERSION='4.0.3'
594PACKAGE_STRING='LibTIFF Software 4.0.3'
595PACKAGE_BUGREPORT='[email protected]'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBDIR
638WIN32_IO_FALSE
639WIN32_IO_TRUE
640HAVE_OPENGL_FALSE
641HAVE_OPENGL_TRUE
642GLUT_LIBS
643GLUT_CFLAGS
644GLU_LIBS
645GLU_CFLAGS
646GL_LIBS
647GL_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657HAVE_CXX_FALSE
658HAVE_CXX_TRUE
659LIBTIFF_DOCDIR
660HAVE_RPATH_FALSE
661HAVE_RPATH_TRUE
662LIBOBJS
663tiff_libs_private
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
668CXXCPP
669am__fastdepCXX_FALSE
670am__fastdepCXX_TRUE
671CXXDEPMODE
672ac_ct_CXX
673CXXFLAGS
674CXX
675CPP
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692SED
693LIBTOOL
694OBJDUMP
695DLLTOOL
696AS
697HAVE_LD_VERSION_SCRIPT_FALSE
698HAVE_LD_VERSION_SCRIPT_TRUE
699LN_S
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717LIBTIFF_RELEASE_DATE
718LIBTIFF_VERSION_INFO
719LIBTIFF_VERSION
720LIBTIFF_ALPHA_VERSION
721LIBTIFF_MICRO_VERSION
722LIBTIFF_MINOR_VERSION
723LIBTIFF_MAJOR_VERSION
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799enable_maintainer_mode
800enable_dependency_tracking
801enable_ld_version_script
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809enable_silent_rules
810enable_rpath
811enable_largefile
812with_docdir
813enable_ccitt
814enable_packbits
815enable_lzw
816enable_thunder
817enable_next
818enable_logluv
819enable_mdi
820enable_zlib
821with_zlib_include_dir
822with_zlib_lib_dir
823enable_pixarlog
824enable_jpeg
825with_jpeg_include_dir
826with_jpeg_lib_dir
827enable_old_jpeg
828enable_jbig
829with_jbig_include_dir
830with_jbig_lib_dir
831enable_lzma
832with_lzma_include_dir
833with_lzma_lib_dir
834enable_jpeg12
835with_jpeg12_include_dir
836with_jpeg12_lib
837enable_cxx
838with_x
839enable_strip_chopping
840with_default_strip_size
841enable_defer_strile_load
842enable_chunky_strip_read
843enable_extrasample_as_alpha
844enable_check_ycbcr_subsampling
845'
846      ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP
855CXX
856CXXFLAGS
857CCC
858CXXCPP
859XMKMF'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
909
910ac_prev=
911ac_dashdash=
912for ac_option
913do
914  # If the previous option needs an argument, assign it.
915  if test -n "$ac_prev"; then
916    eval $ac_prev=\$ac_option
917    ac_prev=
918    continue
919  fi
920
921  case $ac_option in
922  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923  *=)   ac_optarg= ;;
924  *)    ac_optarg=yes ;;
925  esac
926
927  # Accept the important Cygnus configure options, so we can diagnose typos.
928
929  case $ac_dashdash$ac_option in
930  --)
931    ac_dashdash=yes ;;
932
933  -bindir | --bindir | --bindi | --bind | --bin | --bi)
934    ac_prev=bindir ;;
935  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936    bindir=$ac_optarg ;;
937
938  -build | --build | --buil | --bui | --bu)
939    ac_prev=build_alias ;;
940  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941    build_alias=$ac_optarg ;;
942
943  -cache-file | --cache-file | --cache-fil | --cache-fi \
944  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945    ac_prev=cache_file ;;
946  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948    cache_file=$ac_optarg ;;
949
950  --config-cache | -C)
951    cache_file=config.cache ;;
952
953  -datadir | --datadir | --datadi | --datad)
954    ac_prev=datadir ;;
955  -datadir=* | --datadir=* | --datadi=* | --datad=*)
956    datadir=$ac_optarg ;;
957
958  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959  | --dataroo | --dataro | --datar)
960    ac_prev=datarootdir ;;
961  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963    datarootdir=$ac_optarg ;;
964
965  -disable-* | --disable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=no ;;
980
981  -docdir | --docdir | --docdi | --doc | --do)
982    ac_prev=docdir ;;
983  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984    docdir=$ac_optarg ;;
985
986  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987    ac_prev=dvidir ;;
988  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989    dvidir=$ac_optarg ;;
990
991  -enable-* | --enable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009  | --exec | --exe | --ex)
1010    ac_prev=exec_prefix ;;
1011  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013  | --exec=* | --exe=* | --ex=*)
1014    exec_prefix=$ac_optarg ;;
1015
1016  -gas | --gas | --ga | --g)
1017    # Obsolete; use --with-gas.
1018    with_gas=yes ;;
1019
1020  -help | --help | --hel | --he | -h)
1021    ac_init_help=long ;;
1022  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023    ac_init_help=recursive ;;
1024  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025    ac_init_help=short ;;
1026
1027  -host | --host | --hos | --ho)
1028    ac_prev=host_alias ;;
1029  -host=* | --host=* | --hos=* | --ho=*)
1030    host_alias=$ac_optarg ;;
1031
1032  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033    ac_prev=htmldir ;;
1034  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035  | --ht=*)
1036    htmldir=$ac_optarg ;;
1037
1038  -includedir | --includedir | --includedi | --included | --include \
1039  | --includ | --inclu | --incl | --inc)
1040    ac_prev=includedir ;;
1041  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042  | --includ=* | --inclu=* | --incl=* | --inc=*)
1043    includedir=$ac_optarg ;;
1044
1045  -infodir | --infodir | --infodi | --infod | --info | --inf)
1046    ac_prev=infodir ;;
1047  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048    infodir=$ac_optarg ;;
1049
1050  -libdir | --libdir | --libdi | --libd)
1051    ac_prev=libdir ;;
1052  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053    libdir=$ac_optarg ;;
1054
1055  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056  | --libexe | --libex | --libe)
1057    ac_prev=libexecdir ;;
1058  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059  | --libexe=* | --libex=* | --libe=*)
1060    libexecdir=$ac_optarg ;;
1061
1062  -localedir | --localedir | --localedi | --localed | --locale)
1063    ac_prev=localedir ;;
1064  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065    localedir=$ac_optarg ;;
1066
1067  -localstatedir | --localstatedir | --localstatedi | --localstated \
1068  | --localstate | --localstat | --localsta | --localst | --locals)
1069    ac_prev=localstatedir ;;
1070  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072    localstatedir=$ac_optarg ;;
1073
1074  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075    ac_prev=mandir ;;
1076  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077    mandir=$ac_optarg ;;
1078
1079  -nfp | --nfp | --nf)
1080    # Obsolete; use --without-fp.
1081    with_fp=no ;;
1082
1083  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084  | --no-cr | --no-c | -n)
1085    no_create=yes ;;
1086
1087  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089    no_recursion=yes ;;
1090
1091  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093  | --oldin | --oldi | --old | --ol | --o)
1094    ac_prev=oldincludedir ;;
1095  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098    oldincludedir=$ac_optarg ;;
1099
1100  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101    ac_prev=prefix ;;
1102  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103    prefix=$ac_optarg ;;
1104
1105  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106  | --program-pre | --program-pr | --program-p)
1107    ac_prev=program_prefix ;;
1108  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110    program_prefix=$ac_optarg ;;
1111
1112  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113  | --program-suf | --program-su | --program-s)
1114    ac_prev=program_suffix ;;
1115  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117    program_suffix=$ac_optarg ;;
1118
1119  -program-transform-name | --program-transform-name \
1120  | --program-transform-nam | --program-transform-na \
1121  | --program-transform-n | --program-transform- \
1122  | --program-transform | --program-transfor \
1123  | --program-transfo | --program-transf \
1124  | --program-trans | --program-tran \
1125  | --progr-tra | --program-tr | --program-t)
1126    ac_prev=program_transform_name ;;
1127  -program-transform-name=* | --program-transform-name=* \
1128  | --program-transform-nam=* | --program-transform-na=* \
1129  | --program-transform-n=* | --program-transform-=* \
1130  | --program-transform=* | --program-transfor=* \
1131  | --program-transfo=* | --program-transf=* \
1132  | --program-trans=* | --program-tran=* \
1133  | --progr-tra=* | --program-tr=* | --program-t=*)
1134    program_transform_name=$ac_optarg ;;
1135
1136  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137    ac_prev=pdfdir ;;
1138  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139    pdfdir=$ac_optarg ;;
1140
1141  -psdir | --psdir | --psdi | --psd | --ps)
1142    ac_prev=psdir ;;
1143  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144    psdir=$ac_optarg ;;
1145
1146  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147  | -silent | --silent | --silen | --sile | --sil)
1148    silent=yes ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --libdir=DIR            object code libraries [EPREFIX/lib]
1441  --includedir=DIR        C header files [PREFIX/include]
1442  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445  --infodir=DIR           info documentation [DATAROOTDIR/info]
1446  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447  --mandir=DIR            man documentation [DATAROOTDIR/man]
1448  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1449  --htmldir=DIR           html documentation [DOCDIR]
1450  --dvidir=DIR            dvi documentation [DOCDIR]
1451  --pdfdir=DIR            pdf documentation [DOCDIR]
1452  --psdir=DIR             ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462X features:
1463  --x-includes=DIR    X include files are in DIR
1464  --x-libraries=DIR   X library files are in DIR
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-maintainer-mode
1483                          enable make rules and dependencies not useful (and
1484                          sometimes confusing) to the casual installer
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --enable-ld-version-script
1490                          enable linker version script (default is disabled)
1491  --enable-shared[=PKGS]  build shared libraries [default=yes]
1492  --enable-static[=PKGS]  build static libraries [default=yes]
1493  --enable-fast-install[=PKGS]
1494                          optimize for fast installation [default=yes]
1495  --disable-libtool-lock  avoid locking (might break parallel builds)
1496  --enable-silent-rules   less verbose build output (undo: "make V=1")
1497  --disable-silent-rules  verbose build output (undo: "make V=0")
1498  --enable-rpath          Enable runtime linker paths (-R libtool option)
1499  --disable-largefile     omit support for large files
1500  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1501  --disable-packbits      disable support for Macintosh PackBits algorithm
1502  --disable-lzw           disable support for LZW algorithm
1503  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1504  --disable-next          disable support for NeXT 2-bit RLE algorithm
1505  --disable-logluv        disable support for LogLuv high dynamic range
1506                          encoding
1507  --disable-mdi           disable support for Microsoft Document Imaging
1508  --disable-zlib          disable Zlib usage (required for Deflate
1509                          compression, enabled by default)
1510  --disable-pixarlog      disable support for Pixar log-format algorithm
1511                          (requires Zlib)
1512  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1513                          compression, enabled by default)
1514  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1515                          enabled by default)
1516  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1517                          compression, enabled by default)
1518  --disable-lzma          disable liblzma usage (required for LZMA2
1519                          compression, enabled by default)
1520  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1521  --enable-cxx            enable C++ stream API building (requires C++
1522                          compiler)
1523  --disable-strip-chopping
1524                          disable support for strip chopping (whether or not
1525                          to convert single-strip uncompressed images to
1526                          mutiple strips of specified size to reduce memory
1527                          usage)
1528  --enable-defer-strile-load
1529                          enable deferred strip/tile offset/size loading
1530                          (experimental)
1531  --enable-chunky-strip-read
1532                          enable reading large strips in chunks for
1533                          TIFFReadScanline() (experimental)
1534  --disable-extrasample-as-alpha
1535                          the RGBA interface will treat a fourth sample with
1536                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1537                          packages produce RGBA files but don't mark the alpha
1538                          properly
1539  --disable-check-ycbcr-subsampling
1540                          disable picking up YCbCr subsampling info from the
1541                          JPEG data stream to support files lacking the tag
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1547                          both]
1548  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549  --with-sysroot=DIR Search for dependent libraries within DIR
1550                        (or the compiler's sysroot if not specified).
1551  --with-docdir=DIR       directory where documentation should be installed
1552  --with-zlib-include-dir=DIR
1553                          location of Zlib headers
1554  --with-zlib-lib-dir=DIR location of Zlib library binary
1555  --with-jpeg-include-dir=DIR
1556                          location of IJG JPEG library headers
1557  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1558  --with-jbig-include-dir=DIR
1559                          location of JBIG-KIT headers
1560  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1561  --with-lzma-include-dir=DIR
1562                          location of liblzma headers
1563  --with-lzma-lib-dir=DIR location of liblzma library binary
1564  --with-jpeg12-include-dir=DIR
1565                          location of libjpeg 12bit headers
1566  --with-jpeg12-lib=LIBRARY
1567                          path to libjpeg 12bit library
1568  --with-x                use the X Window System
1569  --with-default-strip-size=SIZE
1570                          default size of the strip in bytes (when strip
1571                          chopping enabled) [[default=8192]]
1572
1573Some influential environment variables:
1574  CC          C compiler command
1575  CFLAGS      C compiler flags
1576  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577              nonstandard directory <lib dir>
1578  LIBS        libraries to pass to the linker, e.g. -l<library>
1579  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580              you have headers in a nonstandard directory <include dir>
1581  CPP         C preprocessor
1582  CXX         C++ compiler command
1583  CXXFLAGS    C++ compiler flags
1584  CXXCPP      C++ preprocessor
1585  XMKMF       Path to xmkmf, Makefile generator for X Window System
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <[email protected]>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596  # If there are subdirs, report their specific --help.
1597  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598    test -d "$ac_dir" ||
1599      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600      continue
1601    ac_builddir=.
1602
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
1606  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607  # A ".." for each directory in $ac_dir_suffix.
1608  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609  case $ac_top_builddir_sub in
1610  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612  esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
1618
1619case $srcdir in
1620  .)  # We are building in place.
1621    ac_srcdir=.
1622    ac_top_srcdir=$ac_top_builddir_sub
1623    ac_abs_top_srcdir=$ac_pwd ;;
1624  [\\/]* | ?:[\\/]* )  # Absolute name.
1625    ac_srcdir=$srcdir$ac_dir_suffix;
1626    ac_top_srcdir=$srcdir
1627    ac_abs_top_srcdir=$srcdir ;;
1628  *) # Relative name.
1629    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630    ac_top_srcdir=$ac_top_build_prefix$srcdir
1631    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632esac
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635    cd "$ac_dir" || { ac_status=$?; continue; }
1636    # Check for guested configure.
1637    if test -f "$ac_srcdir/configure.gnu"; then
1638      echo &&
1639      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640    elif test -f "$ac_srcdir/configure"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure" --help=recursive
1643    else
1644      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645    fi || ac_status=$?
1646    cd "$ac_pwd" || { ac_status=$?; break; }
1647  done
1648fi
1649
1650test -n "$ac_init_help" && exit $ac_status
1651if $ac_init_version; then
1652  cat <<\_ACEOF
1653LibTIFF Software configure 4.0.3
1654generated by GNU Autoconf 2.69
1655
1656Copyright (C) 2012 Free Software Foundation, Inc.
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
1660  exit
1661fi
1662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  rm -f conftest.$ac_objext
1674  if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677  *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681  (eval "$ac_compile") 2>conftest.err
1682  ac_status=$?
1683  if test -s conftest.err; then
1684    grep -v '^ *+' conftest.err >conftest.er1
1685    cat conftest.er1 >&5
1686    mv -f conftest.er1 conftest.err
1687  fi
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && {
1690	 test -z "$ac_c_werror_flag" ||
1691	 test ! -s conftest.err
1692       } && test -s conftest.$ac_objext; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  rm -f conftest.$ac_objext conftest$ac_exeext
1712  if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_link") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && {
1728	 test -z "$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       } && test -s conftest$ac_exeext && {
1731	 test "$cross_compiling" = yes ||
1732	 test -x conftest$ac_exeext
1733       }; then :
1734  ac_retval=0
1735else
1736  $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739	ac_retval=1
1740fi
1741  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743  # interfere with the next link command; also delete a directory that is
1744  # left behind by Apple's compiler.  We do this before executing the actions.
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_link
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_cpp LINENO
1783# ----------------------
1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_cpp ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  if { { ac_try="$ac_cpp conftest.$ac_ext"
1789case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796  ac_status=$?
1797  if test -s conftest.err; then
1798    grep -v '^ *+' conftest.err >conftest.er1
1799    cat conftest.er1 >&5
1800    mv -f conftest.er1 conftest.err
1801  fi
1802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803  test $ac_status = 0; } > conftest.i && {
1804	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805	 test ! -s conftest.err
1806       }; then :
1807  ac_retval=0
1808else
1809  $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812    ac_retval=1
1813fi
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815  as_fn_set_status $ac_retval
1816
1817} # ac_fn_c_try_cpp
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>&5
1834  ac_status=$?
1835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837  { { case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_try") 2>&5
1844  ac_status=$?
1845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; }; }; then :
1847  ac_retval=0
1848else
1849  $as_echo "$as_me: program exited with status $ac_status" >&5
1850       $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853       ac_retval=$ac_status
1854fi
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_cxx_try_compile LINENO
1929# ----------------------------
1930# Try to compile conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_cxx_try_compile ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  rm -f conftest.$ac_objext
1935  if { { ac_try="$ac_compile"
1936case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_compile") 2>conftest.err
1943  ac_status=$?
1944  if test -s conftest.err; then
1945    grep -v '^ *+' conftest.err >conftest.er1
1946    cat conftest.er1 >&5
1947    mv -f conftest.er1 conftest.err
1948  fi
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && {
1951	 test -z "$ac_cxx_werror_flag" ||
1952	 test ! -s conftest.err
1953       } && test -s conftest.$ac_objext; then :
1954  ac_retval=0
1955else
1956  $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959	ac_retval=1
1960fi
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_cxx_try_compile
1965
1966# ac_fn_cxx_try_cpp LINENO
1967# ------------------------
1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969ac_fn_cxx_try_cpp ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if { { ac_try="$ac_cpp conftest.$ac_ext"
1973case "(($ac_try" in
1974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975  *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980  ac_status=$?
1981  if test -s conftest.err; then
1982    grep -v '^ *+' conftest.err >conftest.er1
1983    cat conftest.er1 >&5
1984    mv -f conftest.er1 conftest.err
1985  fi
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; } > conftest.i && {
1988	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1989	 test ! -s conftest.err
1990       }; then :
1991  ac_retval=0
1992else
1993  $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996    ac_retval=1
1997fi
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999  as_fn_set_status $ac_retval
2000
2001} # ac_fn_cxx_try_cpp
2002
2003# ac_fn_cxx_try_link LINENO
2004# -------------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_cxx_try_link ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  rm -f conftest.$ac_objext conftest$ac_exeext
2010  if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013  *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017  (eval "$ac_link") 2>conftest.err
2018  ac_status=$?
2019  if test -s conftest.err; then
2020    grep -v '^ *+' conftest.err >conftest.er1
2021    cat conftest.er1 >&5
2022    mv -f conftest.er1 conftest.err
2023  fi
2024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025  test $ac_status = 0; } && {
2026	 test -z "$ac_cxx_werror_flag" ||
2027	 test ! -s conftest.err
2028       } && test -s conftest$ac_exeext && {
2029	 test "$cross_compiling" = yes ||
2030	 test -x conftest$ac_exeext
2031       }; then :
2032  ac_retval=0
2033else
2034  $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037	ac_retval=1
2038fi
2039  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041  # interfere with the next link command; also delete a directory that is
2042  # left behind by Apple's compiler.  We do this before executing the actions.
2043  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_cxx_try_link
2048
2049# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2050# -------------------------------------------------------
2051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2052# the include files in INCLUDES and setting the cache variable VAR
2053# accordingly.
2054ac_fn_c_check_header_mongrel ()
2055{
2056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057  if eval \${$3+:} false; then :
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061  $as_echo_n "(cached) " >&6
2062fi
2063eval ac_res=\$$3
2064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066else
2067  # Is the header compilable?
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2069$as_echo_n "checking $2 usability... " >&6; }
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$4
2073#include <$2>
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  ac_header_compiler=yes
2077else
2078  ac_header_compiler=no
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2082$as_echo "$ac_header_compiler" >&6; }
2083
2084# Is the header present?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2086$as_echo_n "checking $2 presence... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h.  */
2089#include <$2>
2090_ACEOF
2091if ac_fn_c_try_cpp "$LINENO"; then :
2092  ac_header_preproc=yes
2093else
2094  ac_header_preproc=no
2095fi
2096rm -f conftest.err conftest.i conftest.$ac_ext
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2098$as_echo "$ac_header_preproc" >&6; }
2099
2100# So?  What about this header?
2101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2102  yes:no: )
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107    ;;
2108  no:yes:* )
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2112$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2116$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119( $as_echo "## -------------------------------------- ##
2120## Report this to [email protected] ##
2121## -------------------------------------- ##"
2122     ) | sed "s/^/$as_me: WARNING:     /" >&2
2123    ;;
2124esac
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
2127if eval \${$3+:} false; then :
2128  $as_echo_n "(cached) " >&6
2129else
2130  eval "$3=\$ac_header_compiler"
2131fi
2132eval ac_res=\$$3
2133	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135fi
2136  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138} # ac_fn_c_check_header_mongrel
2139
2140# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2141# -------------------------------------------
2142# Tests whether TYPE exists after having included INCLUDES, setting cache
2143# variable VAR accordingly.
2144ac_fn_c_check_type ()
2145{
2146  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148$as_echo_n "checking for $2... " >&6; }
2149if eval \${$3+:} false; then :
2150  $as_echo_n "(cached) " >&6
2151else
2152  eval "$3=no"
2153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156int
2157main ()
2158{
2159if (sizeof ($2))
2160	 return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169int
2170main ()
2171{
2172if (sizeof (($2)))
2173	    return 0;
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179
2180else
2181  eval "$3=yes"
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187eval ac_res=\$$3
2188	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189$as_echo "$ac_res" >&6; }
2190  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192} # ac_fn_c_check_type
2193
2194# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2195# --------------------------------------------
2196# Tries to find the compile-time value of EXPR in a program that includes
2197# INCLUDES, setting VAR accordingly. Returns whether the value could be
2198# computed
2199ac_fn_c_compute_int ()
2200{
2201  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202  if test "$cross_compiling" = yes; then
2203    # Depending upon the size, compute the lo and hi bounds.
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) >= 0)];
2211test_array [0] = 0;
2212return test_array [0];
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219  ac_lo=0 ac_mid=0
2220  while :; do
2221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h.  */
2223$4
2224int
2225main ()
2226{
2227static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228test_array [0] = 0;
2229return test_array [0];
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236  ac_hi=$ac_mid; break
2237else
2238  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2239			if test $ac_lo -le $ac_mid; then
2240			  ac_lo= ac_hi=
2241			  break
2242			fi
2243			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246  done
2247else
2248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h.  */
2250$4
2251int
2252main ()
2253{
2254static int test_array [1 - 2 * !(($2) < 0)];
2255test_array [0] = 0;
2256return test_array [0];
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  ac_hi=-1 ac_mid=-1
2264  while :; do
2265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272test_array [0] = 0;
2273return test_array [0];
2274
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280  ac_lo=$ac_mid; break
2281else
2282  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2283			if test $ac_mid -le $ac_hi; then
2284			  ac_lo= ac_hi=
2285			  break
2286			fi
2287			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290  done
2291else
2292  ac_lo= ac_hi=
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297# Binary search between lo and hi bounds.
2298while test "x$ac_lo" != "x$ac_hi"; do
2299  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303int
2304main ()
2305{
2306static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307test_array [0] = 0;
2308return test_array [0];
2309
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314if ac_fn_c_try_compile "$LINENO"; then :
2315  ac_hi=$ac_mid
2316else
2317  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318fi
2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320done
2321case $ac_lo in #((
2322?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323'') ac_retval=1 ;;
2324esac
2325  else
2326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h.  */
2328$4
2329static long int longval () { return $2; }
2330static unsigned long int ulongval () { return $2; }
2331#include <stdio.h>
2332#include <stdlib.h>
2333int
2334main ()
2335{
2336
2337  FILE *f = fopen ("conftest.val", "w");
2338  if (! f)
2339    return 1;
2340  if (($2) < 0)
2341    {
2342      long int i = longval ();
2343      if (i != ($2))
2344	return 1;
2345      fprintf (f, "%ld", i);
2346    }
2347  else
2348    {
2349      unsigned long int i = ulongval ();
2350      if (i != ($2))
2351	return 1;
2352      fprintf (f, "%lu", i);
2353    }
2354  /* Do not output a trailing newline, as this causes \r\n confusion
2355     on some platforms.  */
2356  return ferror (f) || fclose (f) != 0;
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_run "$LINENO"; then :
2363  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364else
2365  ac_retval=1
2366fi
2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368  conftest.$ac_objext conftest.beam conftest.$ac_ext
2369rm -f conftest.val
2370
2371  fi
2372  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373  as_fn_set_status $ac_retval
2374
2375} # ac_fn_c_compute_int
2376cat >config.log <<_ACEOF
2377This file contains any messages produced by compilers while
2378running configure, to aid debugging if configure makes a mistake.
2379
2380It was created by LibTIFF Software $as_me 4.0.3, which was
2381generated by GNU Autoconf 2.69.  Invocation command line was
2382
2383  $ $0 $@
2384
2385_ACEOF
2386exec 5>>config.log
2387{
2388cat <<_ASUNAME
2389## --------- ##
2390## Platform. ##
2391## --------- ##
2392
2393hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
2399/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2401
2402/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2403/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2406/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2407/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2408/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2409
2410_ASUNAME
2411
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417    $as_echo "PATH: $as_dir"
2418  done
2419IFS=$as_save_IFS
2420
2421} >&5
2422
2423cat >&5 <<_ACEOF
2424
2425
2426## ----------- ##
2427## Core tests. ##
2428## ----------- ##
2429
2430_ACEOF
2431
2432
2433# Keep a trace of the command line.
2434# Strip out --no-create and --no-recursion so they do not pile up.
2435# Strip out --silent because we don't want to record it for future runs.
2436# Also quote any args containing shell meta-characters.
2437# Make two passes to allow for proper duplicate-argument suppression.
2438ac_configure_args=
2439ac_configure_args0=
2440ac_configure_args1=
2441ac_must_keep_next=false
2442for ac_pass in 1 2
2443do
2444  for ac_arg
2445  do
2446    case $ac_arg in
2447    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449    | -silent | --silent | --silen | --sile | --sil)
2450      continue ;;
2451    *\'*)
2452      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453    esac
2454    case $ac_pass in
2455    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456    2)
2457      as_fn_append ac_configure_args1 " '$ac_arg'"
2458      if test $ac_must_keep_next = true; then
2459	ac_must_keep_next=false # Got value, back to normal.
2460      else
2461	case $ac_arg in
2462	  *=* | --config-cache | -C | -disable-* | --disable-* \
2463	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465	  | -with-* | --with-* | -without-* | --without-* | --x)
2466	    case "$ac_configure_args0 " in
2467	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468	    esac
2469	    ;;
2470	  -* ) ac_must_keep_next=true ;;
2471	esac
2472      fi
2473      as_fn_append ac_configure_args " '$ac_arg'"
2474      ;;
2475    esac
2476  done
2477done
2478{ ac_configure_args0=; unset ac_configure_args0;}
2479{ ac_configure_args1=; unset ac_configure_args1;}
2480
2481# When interrupted or exit'd, cleanup temporary files, and complete
2482# config.log.  We remove comments because anyway the quotes in there
2483# would cause problems or look ugly.
2484# WARNING: Use '\'' to represent an apostrophe within the trap.
2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486trap 'exit_status=$?
2487  # Save into config.log some information that might help in debugging.
2488  {
2489    echo
2490
2491    $as_echo "## ---------------- ##
2492## Cache variables. ##
2493## ---------------- ##"
2494    echo
2495    # The following way of writing the cache mishandles newlines in values,
2496(
2497  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498    eval ac_val=\$$ac_var
2499    case $ac_val in #(
2500    *${as_nl}*)
2501      case $ac_var in #(
2502      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504      esac
2505      case $ac_var in #(
2506      _ | IFS | as_nl) ;; #(
2507      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508      *) { eval $ac_var=; unset $ac_var;} ;;
2509      esac ;;
2510    esac
2511  done
2512  (set) 2>&1 |
2513    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2514    *${as_nl}ac_space=\ *)
2515      sed -n \
2516	"s/'\''/'\''\\\\'\'''\''/g;
2517	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518      ;; #(
2519    *)
2520      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521      ;;
2522    esac |
2523    sort
2524)
2525    echo
2526
2527    $as_echo "## ----------------- ##
2528## Output variables. ##
2529## ----------------- ##"
2530    echo
2531    for ac_var in $ac_subst_vars
2532    do
2533      eval ac_val=\$$ac_var
2534      case $ac_val in
2535      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536      esac
2537      $as_echo "$ac_var='\''$ac_val'\''"
2538    done | sort
2539    echo
2540
2541    if test -n "$ac_subst_files"; then
2542      $as_echo "## ------------------- ##
2543## File substitutions. ##
2544## ------------------- ##"
2545      echo
2546      for ac_var in $ac_subst_files
2547      do
2548	eval ac_val=\$$ac_var
2549	case $ac_val in
2550	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551	esac
2552	$as_echo "$ac_var='\''$ac_val'\''"
2553      done | sort
2554      echo
2555    fi
2556
2557    if test -s confdefs.h; then
2558      $as_echo "## ----------- ##
2559## confdefs.h. ##
2560## ----------- ##"
2561      echo
2562      cat confdefs.h
2563      echo
2564    fi
2565    test "$ac_signal" != 0 &&
2566      $as_echo "$as_me: caught signal $ac_signal"
2567    $as_echo "$as_me: exit $exit_status"
2568  } >&5
2569  rm -f core *.core core.conftest.* &&
2570    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571    exit $exit_status
2572' 0
2573for ac_signal in 1 2 13 15; do
2574  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575done
2576ac_signal=0
2577
2578# confdefs.h avoids OS command line length limits that DEFS can exceed.
2579rm -f -r conftest* confdefs.h
2580
2581$as_echo "/* confdefs.h */" > confdefs.h
2582
2583# Predefined preprocessor variables.
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_NAME "$PACKAGE_NAME"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_STRING "$PACKAGE_STRING"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608
2609
2610# Let the site file select an alternate cache file if it wants to.
2611# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
2614if test -n "$CONFIG_SITE"; then
2615  # We do not want a PATH search for config.site.
2616  case $CONFIG_SITE in #((
2617    -*)  ac_site_file1=./$CONFIG_SITE;;
2618    */*) ac_site_file1=$CONFIG_SITE;;
2619    *)   ac_site_file1=./$CONFIG_SITE;;
2620  esac
2621elif test "x$prefix" != xNONE; then
2622  ac_site_file1=$prefix/share/config.site
2623  ac_site_file2=$prefix/etc/config.site
2624else
2625  ac_site_file1=$ac_default_prefix/share/config.site
2626  ac_site_file2=$ac_default_prefix/etc/config.site
2627fi
2628for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629do
2630  test "x$ac_site_file" = xNONE && continue
2631  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2632    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2633$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2634    sed 's/^/| /' "$ac_site_file" >&5
2635    . "$ac_site_file" \
2636      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; }
2640  fi
2641done
2642
2643if test -r "$cache_file"; then
2644  # Some versions of bash will fail to source /dev/null (special files
2645  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2646  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2647    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648$as_echo "$as_me: loading cache $cache_file" >&6;}
2649    case $cache_file in
2650      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651      *)                      . "./$cache_file";;
2652    esac
2653  fi
2654else
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656$as_echo "$as_me: creating cache $cache_file" >&6;}
2657  >$cache_file
2658fi
2659
2660# Check that the precious variables saved in the cache have kept the same
2661# value.
2662ac_cache_corrupted=false
2663for ac_var in $ac_precious_vars; do
2664  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665  eval ac_new_set=\$ac_env_${ac_var}_set
2666  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667  eval ac_new_val=\$ac_env_${ac_var}_value
2668  case $ac_old_set,$ac_new_set in
2669    set,)
2670      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672      ac_cache_corrupted=: ;;
2673    ,set)
2674      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2676      ac_cache_corrupted=: ;;
2677    ,);;
2678    *)
2679      if test "x$ac_old_val" != "x$ac_new_val"; then
2680	# differences in whitespace do not lead to failure.
2681	ac_old_val_w=`echo x $ac_old_val`
2682	ac_new_val_w=`echo x $ac_new_val`
2683	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2686	  ac_cache_corrupted=:
2687	else
2688	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690	  eval $ac_var=\$ac_old_val
2691	fi
2692	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2693$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2694	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2696      fi;;
2697  esac
2698  # Pass precious variables to config.status.
2699  if test "$ac_new_set" = set; then
2700    case $ac_new_val in
2701    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702    *) ac_arg=$ac_var=$ac_new_val ;;
2703    esac
2704    case " $ac_configure_args " in
2705      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2706      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707    esac
2708  fi
2709done
2710if $ac_cache_corrupted; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2715  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728ac_aux_dir=
2729for ac_dir in config "$srcdir"/config; do
2730  if test -f "$ac_dir/install-sh"; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/install-sh -c"
2733    break
2734  elif test -f "$ac_dir/install.sh"; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install.sh -c"
2737    break
2738  elif test -f "$ac_dir/shtool"; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/shtool install -c"
2741    break
2742  fi
2743done
2744if test -z "$ac_aux_dir"; then
2745  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2746fi
2747
2748# These three variables are undocumented and unsupported,
2749# and are intended to be withdrawn in a future Autoconf release.
2750# They can cause serious problems if a builder's source tree is in a directory
2751# whose full name contains unusual characters.
2752ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2753ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2754ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2755
2756
2757
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765# Make sure we can run config.sub.
2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770$as_echo_n "checking build system type... " >&6; }
2771if ${ac_cv_build+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  ac_build_alias=$build_alias
2775test "x$ac_build_alias" = x &&
2776  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777test "x$ac_build_alias" = x &&
2778  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782fi
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784$as_echo "$ac_cv_build" >&6; }
2785case $ac_cv_build in
2786*-*-*) ;;
2787*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788esac
2789build=$ac_cv_build
2790ac_save_IFS=$IFS; IFS='-'
2791set x $ac_cv_build
2792shift
2793build_cpu=$1
2794build_vendor=$2
2795shift; shift
2796# Remember, the first character of IFS is used to create $*,
2797# except with old shells:
2798build_os=$*
2799IFS=$ac_save_IFS
2800case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804$as_echo_n "checking host system type... " >&6; }
2805if ${ac_cv_host+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test "x$host_alias" = x; then
2809  ac_cv_host=$ac_cv_build
2810else
2811  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813fi
2814
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817$as_echo "$ac_cv_host" >&6; }
2818case $ac_cv_host in
2819*-*-*) ;;
2820*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821esac
2822host=$ac_cv_host
2823ac_save_IFS=$IFS; IFS='-'
2824set x $ac_cv_host
2825shift
2826host_cpu=$1
2827host_vendor=$2
2828shift; shift
2829# Remember, the first character of IFS is used to create $*,
2830# except with old shells:
2831host_os=$*
2832IFS=$ac_save_IFS
2833case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834
2835
2836
2837am__api_version='1.12'
2838
2839# Find a good install program.  We prefer a C program (faster),
2840# so one script is as good as another.  But avoid the broken or
2841# incompatible versions:
2842# SysV /etc/install, /usr/sbin/install
2843# SunOS /usr/etc/install
2844# IRIX /sbin/install
2845# AIX /bin/install
2846# AmigaOS /C/install, which installs bootblocks on floppy discs
2847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2848# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2850# OS/2's system install, which has a completely different semantic
2851# ./install, which can be erroneously created by make from ./install.sh.
2852# Reject install programs that cannot install multiple files.
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2854$as_echo_n "checking for a BSD-compatible install... " >&6; }
2855if test -z "$INSTALL"; then
2856if ${ac_cv_path_install+:} false; then :
2857  $as_echo_n "(cached) " >&6
2858else
2859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864    # Account for people who put trailing slashes in PATH elements.
2865case $as_dir/ in #((
2866  ./ | .// | /[cC]/* | \
2867  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2868  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2869  /usr/ucb/* ) ;;
2870  *)
2871    # OSF1 and SCO ODT 3.0 have their own names for install.
2872    # Don't use installbsd from OSF since it installs stuff as root
2873    # by default.
2874    for ac_prog in ginstall scoinst install; do
2875      for ac_exec_ext in '' $ac_executable_extensions; do
2876	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2877	  if test $ac_prog = install &&
2878	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879	    # AIX install.  It has an incompatible calling convention.
2880	    :
2881	  elif test $ac_prog = install &&
2882	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883	    # program-specific install script used by HP pwplus--don't use.
2884	    :
2885	  else
2886	    rm -rf conftest.one conftest.two conftest.dir
2887	    echo one > conftest.one
2888	    echo two > conftest.two
2889	    mkdir conftest.dir
2890	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2891	      test -s conftest.one && test -s conftest.two &&
2892	      test -s conftest.dir/conftest.one &&
2893	      test -s conftest.dir/conftest.two
2894	    then
2895	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2896	      break 3
2897	    fi
2898	  fi
2899	fi
2900      done
2901    done
2902    ;;
2903esac
2904
2905  done
2906IFS=$as_save_IFS
2907
2908rm -rf conftest.one conftest.two conftest.dir
2909
2910fi
2911  if test "${ac_cv_path_install+set}" = set; then
2912    INSTALL=$ac_cv_path_install
2913  else
2914    # As a last resort, use the slow shell script.  Don't cache a
2915    # value for INSTALL within a source directory, because that will
2916    # break other packages using the cache if that directory is
2917    # removed, or if the value is a relative name.
2918    INSTALL=$ac_install_sh
2919  fi
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2922$as_echo "$INSTALL" >&6; }
2923
2924# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2925# It thinks the first close brace ends the variable substitution.
2926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2927
2928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929
2930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2933$as_echo_n "checking whether build environment is sane... " >&6; }
2934# Reject unsafe characters in $srcdir or the absolute working directory
2935# name.  Accept space and tab only in the latter.
2936am_lf='
2937'
2938case `pwd` in
2939  *[\\\"\#\$\&\'\`$am_lf]*)
2940    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2941esac
2942case $srcdir in
2943  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2944    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2945esac
2946
2947# Do 'set' in a subshell so we don't clobber the current shell's
2948# arguments.  Must try -L first in case configure is actually a
2949# symlink; some systems play weird games with the mod time of symlinks
2950# (eg FreeBSD returns the mod time of the symlink's containing
2951# directory).
2952if (
2953   am_has_slept=no
2954   for am_try in 1 2; do
2955     echo "timestamp, slept: $am_has_slept" > conftest.file
2956     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2957     if test "$*" = "X"; then
2958	# -L didn't work.
2959	set X `ls -t "$srcdir/configure" conftest.file`
2960     fi
2961     if test "$*" != "X $srcdir/configure conftest.file" \
2962	&& test "$*" != "X conftest.file $srcdir/configure"; then
2963
2964	# If neither matched, then we have a broken ls.  This can happen
2965	# if, for instance, CONFIG_SHELL is bash and it inherits a
2966	# broken ls alias from the environment.  This has actually
2967	# happened.  Such a system could not be considered "sane".
2968	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2969  alias in your environment" "$LINENO" 5
2970     fi
2971     if test "$2" = conftest.file || test $am_try -eq 2; then
2972       break
2973     fi
2974     # Just in case.
2975     sleep 1
2976     am_has_slept=yes
2977   done
2978   test "$2" = conftest.file
2979   )
2980then
2981   # Ok.
2982   :
2983else
2984   as_fn_error $? "newly created file is older than distributed files!
2985Check your system clock" "$LINENO" 5
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988$as_echo "yes" >&6; }
2989# If we didn't sleep, we still need to ensure time stamps of config.status and
2990# generated files are strictly newer.
2991am_sleep_pid=
2992if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2993  ( sleep 1 ) &
2994  am_sleep_pid=$!
2995fi
2996
2997rm -f conftest.file
2998
2999test "$program_prefix" != NONE &&
3000  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3001# Use a double $ so make ignores it.
3002test "$program_suffix" != NONE &&
3003  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004# Double any \ or $.
3005# By default was `s,x,x', remove it if useless.
3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3008
3009# expand $ac_aux_dir to an absolute path
3010am_aux_dir=`cd $ac_aux_dir && pwd`
3011
3012if test x"${MISSING+set}" != xset; then
3013  case $am_aux_dir in
3014  *\ * | *\	*)
3015    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016  *)
3017    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018  esac
3019fi
3020# Use eval to expand $SHELL
3021if eval "$MISSING --run true"; then
3022  am_missing_run="$MISSING --run "
3023else
3024  am_missing_run=
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3026$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3027fi
3028
3029if test x"${install_sh}" != xset; then
3030  case $am_aux_dir in
3031  *\ * | *\	*)
3032    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033  *)
3034    install_sh="\${SHELL} $am_aux_dir/install-sh"
3035  esac
3036fi
3037
3038# Installed binaries are usually stripped using 'strip' when the user
3039# run "make install-strip".  However 'strip' might not be the right
3040# tool to use in cross-compilation environments, therefore Automake
3041# will honor the 'STRIP' environment variable to overrule this program.
3042if test "$cross_compiling" != no; then
3043  if test -n "$ac_tool_prefix"; then
3044  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}strip; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_STRIP+:} false; then :
3049  $as_echo_n "(cached) " >&6
3050else
3051  if test -n "$STRIP"; then
3052  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  test -z "$as_dir" && as_dir=.
3059    for ac_exec_ext in '' $ac_executable_extensions; do
3060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063    break 2
3064  fi
3065done
3066  done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074$as_echo "$STRIP" >&6; }
3075else
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$ac_cv_prog_STRIP"; then
3083  ac_ct_STRIP=$STRIP
3084  # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$ac_ct_STRIP"; then
3092  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097  IFS=$as_save_IFS
3098  test -z "$as_dir" && as_dir=.
3099    for ac_exec_ext in '' $ac_executable_extensions; do
3100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101    ac_cv_prog_ac_ct_STRIP="strip"
3102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103    break 2
3104  fi
3105done
3106  done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114$as_echo "$ac_ct_STRIP" >&6; }
3115else
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120  if test "x$ac_ct_STRIP" = x; then
3121    STRIP=":"
3122  else
3123    case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129    STRIP=$ac_ct_STRIP
3130  fi
3131else
3132  STRIP="$ac_cv_prog_STRIP"
3133fi
3134
3135fi
3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140if test -z "$MKDIR_P"; then
3141  if ${ac_cv_path_mkdir+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_prog in mkdir gmkdir; do
3150	 for ac_exec_ext in '' $ac_executable_extensions; do
3151	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3152	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153	     'mkdir (GNU coreutils) '* | \
3154	     'mkdir (coreutils) '* | \
3155	     'mkdir (fileutils) '4.1*)
3156	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157	       break 3;;
3158	   esac
3159	 done
3160       done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165
3166  test -d ./--version && rmdir ./--version
3167  if test "${ac_cv_path_mkdir+set}" = set; then
3168    MKDIR_P="$ac_cv_path_mkdir -p"
3169  else
3170    # As a last resort, use the slow shell script.  Don't cache a
3171    # value for MKDIR_P within a source directory, because that will
3172    # break other packages using the cache if that directory is
3173    # removed, or if the value is a relative name.
3174    MKDIR_P="$ac_install_sh -d"
3175  fi
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178$as_echo "$MKDIR_P" >&6; }
3179
3180for ac_prog in gawk mawk nawk awk
3181do
3182  # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_AWK+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if test -n "$AWK"; then
3190  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_AWK="$ac_prog"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204  done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209AWK=$ac_cv_prog_AWK
3210if test -n "$AWK"; then
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3212$as_echo "$AWK" >&6; }
3213else
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218
3219  test -n "$AWK" && break
3220done
3221
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3223$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3224set x ${MAKE-make}
3225ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3226if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  cat >conftest.make <<\_ACEOF
3230SHELL = /bin/sh
3231all:
3232	@echo '@@@%%%=$(MAKE)=@@@%%%'
3233_ACEOF
3234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3235case `${MAKE-make} -f conftest.make 2>/dev/null` in
3236  *@@@%%%=?*=@@@%%%*)
3237    eval ac_cv_prog_make_${ac_make}_set=yes;;
3238  *)
3239    eval ac_cv_prog_make_${ac_make}_set=no;;
3240esac
3241rm -f conftest.make
3242fi
3243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245$as_echo "yes" >&6; }
3246  SET_MAKE=
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250  SET_MAKE="MAKE=${MAKE-make}"
3251fi
3252
3253rm -rf .tst 2>/dev/null
3254mkdir .tst 2>/dev/null
3255if test -d .tst; then
3256  am__leading_dot=.
3257else
3258  am__leading_dot=_
3259fi
3260rmdir .tst 2>/dev/null
3261
3262if test "`cd $srcdir && pwd`" != "`pwd`"; then
3263  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3264  # is not polluted with repeated "-I."
3265  am__isrc=' -I$(srcdir)'
3266  # test to see if srcdir already configured
3267  if test -f $srcdir/config.status; then
3268    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3269  fi
3270fi
3271
3272# test whether we have cygpath
3273if test -z "$CYGPATH_W"; then
3274  if (cygpath --version) >/dev/null 2>/dev/null; then
3275    CYGPATH_W='cygpath -w'
3276  else
3277    CYGPATH_W=echo
3278  fi
3279fi
3280
3281
3282# Define the identity of the package.
3283 PACKAGE='tiff'
3284 VERSION='4.0.3'
3285
3286
3287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE "$PACKAGE"
3289_ACEOF
3290
3291
3292cat >>confdefs.h <<_ACEOF
3293#define VERSION "$VERSION"
3294_ACEOF
3295
3296# Some tools Automake needs.
3297
3298ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
3312# For better backward compatibility.  To be removed once Automake 1.9.x
3313# dies out for good.  For more background, see:
3314# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3315# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3316mkdir_p='$(MKDIR_P)'
3317
3318# We need awk for the "check" target.  The system "awk" is bad on
3319# some platforms.
3320# Always define AMTAR for backward compatibility.  Yes, it's still used
3321# in the wild :-(  We should find a proper way to deprecate it ...
3322AMTAR='$${TAR-tar}'
3323
3324am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3325
3326
3327
3328
3329
3330
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3332$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3333    # Check whether --enable-maintainer-mode was given.
3334if test "${enable_maintainer_mode+set}" = set; then :
3335  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3336else
3337  USE_MAINTAINER_MODE=no
3338fi
3339
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3341$as_echo "$USE_MAINTAINER_MODE" >&6; }
3342   if test $USE_MAINTAINER_MODE = yes; then
3343  MAINTAINER_MODE_TRUE=
3344  MAINTAINER_MODE_FALSE='#'
3345else
3346  MAINTAINER_MODE_TRUE='#'
3347  MAINTAINER_MODE_FALSE=
3348fi
3349
3350  MAINT=$MAINTAINER_MODE_TRUE
3351
3352
3353
3354LIBTIFF_MAJOR_VERSION=4
3355LIBTIFF_MINOR_VERSION=0
3356LIBTIFF_MICRO_VERSION=3
3357LIBTIFF_ALPHA_VERSION=
3358LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3359LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3360
3361LIBTIFF_CURRENT=7
3362LIBTIFF_REVISION=0
3363LIBTIFF_AGE=2
3364LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3365
3366# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3367# in OpenBSD uses some special semantics for shared libraries. Their soname
3368# contains only two numbers, major and minor.
3369# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3370#case "$host_os" in
3371#    openbsd* | mirbsd*)
3372#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3373#	;;
3374#    *)
3375#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3376#	;;
3377#esac
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392if test -n "$ac_tool_prefix"; then
3393  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if ${ac_cv_prog_CC+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  if test -n "$CC"; then
3401  ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415  done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423$as_echo "$CC" >&6; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
3427fi
3428
3429
3430fi
3431if test -z "$ac_cv_prog_CC"; then
3432  ac_ct_CC=$CC
3433  # Extract the first word of "gcc", so it can be a program name with args.
3434set dummy gcc; ac_word=$2
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  if test -n "$ac_ct_CC"; then
3441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448    for ac_exec_ext in '' $ac_executable_extensions; do
3449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450    ac_cv_prog_ac_ct_CC="gcc"
3451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455  done
3456IFS=$as_save_IFS
3457
3458fi
3459fi
3460ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461if test -n "$ac_ct_CC"; then
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463$as_echo "$ac_ct_CC" >&6; }
3464else
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467fi
3468
3469  if test "x$ac_ct_CC" = x; then
3470    CC=""
3471  else
3472    case $cross_compiling:$ac_tool_warned in
3473yes:)
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476ac_tool_warned=yes ;;
3477esac
3478    CC=$ac_ct_CC
3479  fi
3480else
3481  CC="$ac_cv_prog_CC"
3482fi
3483
3484if test -z "$CC"; then
3485          if test -n "$ac_tool_prefix"; then
3486    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3487set dummy ${ac_tool_prefix}cc; ac_word=$2
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489$as_echo_n "checking for $ac_word... " >&6; }
3490if ${ac_cv_prog_CC+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  if test -n "$CC"; then
3494  ac_cv_prog_CC="$CC" # Let the user override the test.
3495else
3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499  IFS=$as_save_IFS
3500  test -z "$as_dir" && as_dir=.
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503    ac_cv_prog_CC="${ac_tool_prefix}cc"
3504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516$as_echo "$CC" >&6; }
3517else
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519$as_echo "no" >&6; }
3520fi
3521
3522
3523  fi
3524fi
3525if test -z "$CC"; then
3526  # Extract the first word of "cc", so it can be a program name with args.
3527set dummy cc; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_CC+:} false; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  if test -n "$CC"; then
3534  ac_cv_prog_CC="$CC" # Let the user override the test.
3535else
3536  ac_prog_rejected=no
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540  IFS=$as_save_IFS
3541  test -z "$as_dir" && as_dir=.
3542    for ac_exec_ext in '' $ac_executable_extensions; do
3543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3545       ac_prog_rejected=yes
3546       continue
3547     fi
3548    ac_cv_prog_CC="cc"
3549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556if test $ac_prog_rejected = yes; then
3557  # We found a bogon in the path, so make sure we never use it.
3558  set dummy $ac_cv_prog_CC
3559  shift
3560  if test $# != 0; then
3561    # We chose a different compiler from the bogus one.
3562    # However, it has the same basename, so the bogon will be chosen
3563    # first if we set CC to just the basename; use the full file name.
3564    shift
3565    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3566  fi
3567fi
3568fi
3569fi
3570CC=$ac_cv_prog_CC
3571if test -n "$CC"; then
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573$as_echo "$CC" >&6; }
3574else
3575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576$as_echo "no" >&6; }
3577fi
3578
3579
3580fi
3581if test -z "$CC"; then
3582  if test -n "$ac_tool_prefix"; then
3583  for ac_prog in cl.exe
3584  do
3585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588$as_echo_n "checking for $ac_word... " >&6; }
3589if ${ac_cv_prog_CC+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  if test -n "$CC"; then
3593  ac_cv_prog_CC="$CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  test -z "$as_dir" && as_dir=.
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607  done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615$as_echo "$CC" >&6; }
3616else
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
3619fi
3620
3621
3622    test -n "$CC" && break
3623  done
3624fi
3625if test -z "$CC"; then
3626  ac_ct_CC=$CC
3627  for ac_prog in cl.exe
3628do
3629  # Extract the first word of "$ac_prog", so it can be a program name with args.
3630set dummy $ac_prog; ac_word=$2
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_ac_ct_CC+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  if test -n "$ac_ct_CC"; then
3637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  test -z "$as_dir" && as_dir=.
3644    for ac_exec_ext in '' $ac_executable_extensions; do
3645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646    ac_cv_prog_ac_ct_CC="$ac_prog"
3647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648    break 2
3649  fi
3650done
3651  done
3652IFS=$as_save_IFS
3653
3654fi
3655fi
3656ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657if test -n "$ac_ct_CC"; then
3658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659$as_echo "$ac_ct_CC" >&6; }
3660else
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663fi
3664
3665
3666  test -n "$ac_ct_CC" && break
3667done
3668
3669  if test "x$ac_ct_CC" = x; then
3670    CC=""
3671  else
3672    case $cross_compiling:$ac_tool_warned in
3673yes:)
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676ac_tool_warned=yes ;;
3677esac
3678    CC=$ac_ct_CC
3679  fi
3680fi
3681
3682fi
3683
3684
3685test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687as_fn_error $? "no acceptable C compiler found in \$PATH
3688See \`config.log' for more details" "$LINENO" 5; }
3689
3690# Provide some information about the compiler.
3691$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3692set X $ac_compile
3693ac_compiler=$2
3694for ac_option in --version -v -V -qversion; do
3695  { { ac_try="$ac_compiler $ac_option >&5"
3696case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703  ac_status=$?
3704  if test -s conftest.err; then
3705    sed '10a\
3706... rest of stderr output deleted ...
3707         10q' conftest.err >conftest.er1
3708    cat conftest.er1 >&5
3709  fi
3710  rm -f conftest.er1 conftest.err
3711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }
3713done
3714
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726ac_clean_files_save=$ac_clean_files
3727ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3728# Try to create an executable without -o first, disregard a.out.
3729# It will help us diagnose broken compilers, and finding out an intuition
3730# of exeext.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3732$as_echo_n "checking whether the C compiler works... " >&6; }
3733ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734
3735# The possible output files:
3736ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737
3738ac_rmfiles=
3739for ac_file in $ac_files
3740do
3741  case $ac_file in
3742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744  esac
3745done
3746rm -f $ac_rmfiles
3747
3748if { { ac_try="$ac_link_default"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755  (eval "$ac_link_default") 2>&5
3756  ac_status=$?
3757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758  test $ac_status = 0; }; then :
3759  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3762# so that the user can short-circuit this test for compilers unknown to
3763# Autoconf.
3764for ac_file in $ac_files ''
3765do
3766  test -f "$ac_file" || continue
3767  case $ac_file in
3768    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769	;;
3770    [ab].out )
3771	# We found the default executable, but exeext='' is most
3772	# certainly right.
3773	break;;
3774    *.* )
3775	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776	then :; else
3777	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778	fi
3779	# We set ac_cv_exeext here because the later test for it is not
3780	# safe: cross compilers may not add the suffix if given an `-o'
3781	# argument, so we may need to know it at that point already.
3782	# Even if this section looks crufty: it has the advantage of
3783	# actually working.
3784	break;;
3785    * )
3786	break;;
3787  esac
3788done
3789test "$ac_cv_exeext" = no && ac_cv_exeext=
3790
3791else
3792  ac_file=''
3793fi
3794if test -z "$ac_file"; then :
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797$as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error 77 "C compiler cannot create executables
3803See \`config.log' for more details" "$LINENO" 5; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806$as_echo "yes" >&6; }
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3809$as_echo_n "checking for C compiler default output file name... " >&6; }
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811$as_echo "$ac_file" >&6; }
3812ac_exeext=$ac_cv_exeext
3813
3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815ac_clean_files=$ac_clean_files_save
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817$as_echo_n "checking for suffix of executables... " >&6; }
3818if { { ac_try="$ac_link"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_link") 2>&5
3826  ac_status=$?
3827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828  test $ac_status = 0; }; then :
3829  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3831# work properly (i.e., refer to `conftest.exe'), while it won't with
3832# `rm'.
3833for ac_file in conftest.exe conftest conftest.*; do
3834  test -f "$ac_file" || continue
3835  case $ac_file in
3836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838	  break;;
3839    * ) break;;
3840  esac
3841done
3842else
3843  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846See \`config.log' for more details" "$LINENO" 5; }
3847fi
3848rm -f conftest conftest$ac_cv_exeext
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850$as_echo "$ac_cv_exeext" >&6; }
3851
3852rm -f conftest.$ac_ext
3853EXEEXT=$ac_cv_exeext
3854ac_exeext=$EXEEXT
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857#include <stdio.h>
3858int
3859main ()
3860{
3861FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files="$ac_clean_files conftest.out"
3869# Check that the compiler produces executables we can run.  If not, either
3870# the compiler is broken, or we cross compile.
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872$as_echo_n "checking whether we are cross compiling... " >&6; }
3873if test "$cross_compiling" != yes; then
3874  { { ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885  if { ac_try='./conftest$ac_cv_exeext'
3886  { { case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892  (eval "$ac_try") 2>&5
3893  ac_status=$?
3894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; }; then
3896    cross_compiling=no
3897  else
3898    if test "$cross_compiling" = maybe; then
3899	cross_compiling=yes
3900    else
3901	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error $? "cannot run C compiled programs.
3904If you meant to cross compile, use \`--host'.
3905See \`config.log' for more details" "$LINENO" 5; }
3906    fi
3907  fi
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910$as_echo "$cross_compiling" >&6; }
3911
3912rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915$as_echo_n "checking for suffix of object files... " >&6; }
3916if ${ac_cv_objext+:} false; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.o conftest.obj
3931if { { ac_try="$ac_compile"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938  (eval "$ac_compile") 2>&5
3939  ac_status=$?
3940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }; then :
3942  for ac_file in conftest.o conftest.obj conftest.*; do
3943  test -f "$ac_file" || continue;
3944  case $ac_file in
3945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947       break;;
3948  esac
3949done
3950else
3951  $as_echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error $? "cannot compute suffix of object files: cannot compile
3957See \`config.log' for more details" "$LINENO" 5; }
3958fi
3959rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962$as_echo "$ac_cv_objext" >&6; }
3963OBJEXT=$ac_cv_objext
3964ac_objext=$OBJEXT
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3966$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3967if ${ac_cv_c_compiler_gnu+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976#ifndef __GNUC__
3977       choke me
3978#endif
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984if ac_fn_c_try_compile "$LINENO"; then :
3985  ac_compiler_gnu=yes
3986else
3987  ac_compiler_gnu=no
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995if test $ac_compiler_gnu = yes; then
3996  GCC=yes
3997else
3998  GCC=
3999fi
4000ac_test_CFLAGS=${CFLAGS+set}
4001ac_save_CFLAGS=$CFLAGS
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003$as_echo_n "checking whether $CC accepts -g... " >&6; }
4004if ${ac_cv_prog_cc_g+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  ac_save_c_werror_flag=$ac_c_werror_flag
4008   ac_c_werror_flag=yes
4009   ac_cv_prog_cc_g=no
4010   CFLAGS="-g"
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023  ac_cv_prog_cc_g=yes
4024else
4025  CFLAGS=""
4026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_c_try_compile "$LINENO"; then :
4038
4039else
4040  ac_c_werror_flag=$ac_save_c_werror_flag
4041	 CFLAGS="-g"
4042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053if ac_fn_c_try_compile "$LINENO"; then :
4054  ac_cv_prog_cc_g=yes
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061   ac_c_werror_flag=$ac_save_c_werror_flag
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064$as_echo "$ac_cv_prog_cc_g" >&6; }
4065if test "$ac_test_CFLAGS" = set; then
4066  CFLAGS=$ac_save_CFLAGS
4067elif test $ac_cv_prog_cc_g = yes; then
4068  if test "$GCC" = yes; then
4069    CFLAGS="-g -O2"
4070  else
4071    CFLAGS="-g"
4072  fi
4073else
4074  if test "$GCC" = yes; then
4075    CFLAGS="-O2"
4076  else
4077    CFLAGS=
4078  fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4081$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4082if ${ac_cv_prog_cc_c89+:} false; then :
4083  $as_echo_n "(cached) " >&6
4084else
4085  ac_cv_prog_cc_c89=no
4086ac_save_CC=$CC
4087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#include <stdarg.h>
4090#include <stdio.h>
4091struct stat;
4092/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4093struct buf { int x; };
4094FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095static char *e (p, i)
4096     char **p;
4097     int i;
4098{
4099  return p[i];
4100}
4101static char *f (char * (*g) (char **, int), char **p, ...)
4102{
4103  char *s;
4104  va_list v;
4105  va_start (v,p);
4106  s = g (p, va_arg (v,int));
4107  va_end (v);
4108  return s;
4109}
4110
4111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4112   function prototypes and stuff, but not '\xHH' hex character constants.
4113   These don't provoke an error unfortunately, instead are silently treated
4114   as 'x'.  The following induces an error, until -std is added to get
4115   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4116   array size at least.  It's necessary to write '\x00'==0 to get something
4117   that's true only with -std.  */
4118int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119
4120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121   inside strings and character constants.  */
4122#define FOO(x) 'x'
4123int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124
4125int test (int i, double x);
4126struct s1 {int (*f) (int a);};
4127struct s2 {int (*f) (double a);};
4128int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129int argc;
4130char **argv;
4131int
4132main ()
4133{
4134return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141do
4142  CC="$ac_save_CC $ac_arg"
4143  if ac_fn_c_try_compile "$LINENO"; then :
4144  ac_cv_prog_cc_c89=$ac_arg
4145fi
4146rm -f core conftest.err conftest.$ac_objext
4147  test "x$ac_cv_prog_cc_c89" != "xno" && break
4148done
4149rm -f conftest.$ac_ext
4150CC=$ac_save_CC
4151
4152fi
4153# AC_CACHE_VAL
4154case "x$ac_cv_prog_cc_c89" in
4155  x)
4156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157$as_echo "none needed" >&6; } ;;
4158  xno)
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160$as_echo "unsupported" >&6; } ;;
4161  *)
4162    CC="$CC $ac_cv_prog_cc_c89"
4163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4165esac
4166if test "x$ac_cv_prog_cc_c89" != xno; then :
4167
4168fi
4169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175DEPDIR="${am__leading_dot}deps"
4176
4177ac_config_commands="$ac_config_commands depfiles"
4178
4179
4180am_make=${MAKE-make}
4181cat > confinc << 'END'
4182am__doit:
4183	@echo this is the am__doit target
4184.PHONY: am__doit
4185END
4186# If we don't find an include directive, just comment out the code.
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4188$as_echo_n "checking for style of include used by $am_make... " >&6; }
4189am__include="#"
4190am__quote=
4191_am_result=none
4192# First try GNU make style include.
4193echo "include confinc" > confmf
4194# Ignore all kinds of additional output from 'make'.
4195case `$am_make -s -f confmf 2> /dev/null` in #(
4196*the\ am__doit\ target*)
4197  am__include=include
4198  am__quote=
4199  _am_result=GNU
4200  ;;
4201esac
4202# Now try BSD make style include.
4203if test "$am__include" = "#"; then
4204   echo '.include "confinc"' > confmf
4205   case `$am_make -s -f confmf 2> /dev/null` in #(
4206   *the\ am__doit\ target*)
4207     am__include=.include
4208     am__quote="\""
4209     _am_result=BSD
4210     ;;
4211   esac
4212fi
4213
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4216$as_echo "$_am_result" >&6; }
4217rm -f confinc confmf
4218
4219# Check whether --enable-dependency-tracking was given.
4220if test "${enable_dependency_tracking+set}" = set; then :
4221  enableval=$enable_dependency_tracking;
4222fi
4223
4224if test "x$enable_dependency_tracking" != xno; then
4225  am_depcomp="$ac_aux_dir/depcomp"
4226  AMDEPBACKSLASH='\'
4227  am__nodep='_no'
4228fi
4229 if test "x$enable_dependency_tracking" != xno; then
4230  AMDEP_TRUE=
4231  AMDEP_FALSE='#'
4232else
4233  AMDEP_TRUE='#'
4234  AMDEP_FALSE=
4235fi
4236
4237
4238
4239depcc="$CC"   am_compiler_list=
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242$as_echo_n "checking dependency style of $depcc... " >&6; }
4243if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4247  # We make a subdir and do the tests there.  Otherwise we can end up
4248  # making bogus files that we don't know about and never remove.  For
4249  # instance it was reported that on HP-UX the gcc test will end up
4250  # making a dummy file named 'D' -- because '-MD' means "put the output
4251  # in D".
4252  rm -rf conftest.dir
4253  mkdir conftest.dir
4254  # Copy depcomp to subdir because otherwise we won't find it if we're
4255  # using a relative directory.
4256  cp "$am_depcomp" conftest.dir
4257  cd conftest.dir
4258  # We will build objects and dependencies in a subdirectory because
4259  # it helps to detect inapplicable dependency modes.  For instance
4260  # both Tru64's cc and ICC support -MD to output dependencies as a
4261  # side effect of compilation, but ICC will put the dependencies in
4262  # the current directory while Tru64 will put them in the object
4263  # directory.
4264  mkdir sub
4265
4266  am_cv_CC_dependencies_compiler_type=none
4267  if test "$am_compiler_list" = ""; then
4268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269  fi
4270  am__universal=false
4271  case " $depcc " in #(
4272     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273     esac
4274
4275  for depmode in $am_compiler_list; do
4276    # Setup a source with many dependencies, because some compilers
4277    # like to wrap large dependency lists on column 80 (with \), and
4278    # we should not choose a depcomp mode which is confused by this.
4279    #
4280    # We need to recreate these files for each test, as the compiler may
4281    # overwrite some of them when testing with obscure command lines.
4282    # This happens at least with the AIX C compiler.
4283    : > sub/conftest.c
4284    for i in 1 2 3 4 5 6; do
4285      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4286      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287      # Solaris 10 /bin/sh.
4288      echo '/* dummy */' > sub/conftst$i.h
4289    done
4290    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
4292    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4293    # mode.  It turns out that the SunPro C++ compiler does not properly
4294    # handle '-M -o', and we need to detect this.  Also, some Intel
4295    # versions had trouble with output in subdirs.
4296    am__obj=sub/conftest.${OBJEXT-o}
4297    am__minus_obj="-o $am__obj"
4298    case $depmode in
4299    gcc)
4300      # This depmode causes a compiler race in universal mode.
4301      test "$am__universal" = false || continue
4302      ;;
4303    nosideeffect)
4304      # After this tag, mechanisms are not by side-effect, so they'll
4305      # only be used when explicitly requested.
4306      if test "x$enable_dependency_tracking" = xyes; then
4307	continue
4308      else
4309	break
4310      fi
4311      ;;
4312    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4313      # This compiler won't grok '-c -o', but also, the minuso test has
4314      # not run yet.  These depmodes are late enough in the game, and
4315      # so weak that their functioning should not be impacted.
4316      am__obj=conftest.${OBJEXT-o}
4317      am__minus_obj=
4318      ;;
4319    none) break ;;
4320    esac
4321    if depmode=$depmode \
4322       source=sub/conftest.c object=$am__obj \
4323       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325         >/dev/null 2>conftest.err &&
4326       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4329       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330      # icc doesn't choke on unknown options, it will just issue warnings
4331      # or remarks (even with -Werror).  So we grep stderr for any message
4332      # that says an option was ignored or not supported.
4333      # When given -MP, icc 7.0 and 7.1 complain thusly:
4334      #   icc: Command line warning: ignoring option '-M'; no argument required
4335      # The diagnosis changed in icc 8.0:
4336      #   icc: Command line remark: option '-MP' not supported
4337      if (grep 'ignoring option' conftest.err ||
4338          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339        am_cv_CC_dependencies_compiler_type=$depmode
4340        break
4341      fi
4342    fi
4343  done
4344
4345  cd ..
4346  rm -rf conftest.dir
4347else
4348  am_cv_CC_dependencies_compiler_type=none
4349fi
4350
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4353$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
4356 if
4357  test "x$enable_dependency_tracking" != xno \
4358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359  am__fastdepCC_TRUE=
4360  am__fastdepCC_FALSE='#'
4361else
4362  am__fastdepCC_TRUE='#'
4363  am__fastdepCC_FALSE=
4364fi
4365
4366
4367if test "x$CC" != xcc; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4369$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4372$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4373fi
4374set dummy $CC; ac_cc=`$as_echo "$2" |
4375		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4376if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381
4382int
4383main ()
4384{
4385
4386  ;
4387  return 0;
4388}
4389_ACEOF
4390# Make sure it works both with $CC and with simple cc.
4391# We do the test twice because some compilers refuse to overwrite an
4392# existing .o file with -o, though they will create one.
4393ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394rm -f conftest2.*
4395if { { case "(($ac_try" in
4396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397  *) ac_try_echo=$ac_try;;
4398esac
4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400$as_echo "$ac_try_echo"; } >&5
4401  (eval "$ac_try") 2>&5
4402  ac_status=$?
4403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404  test $ac_status = 0; } &&
4405   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407  *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411  (eval "$ac_try") 2>&5
4412  ac_status=$?
4413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414  test $ac_status = 0; };
4415then
4416  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4417  if test "x$CC" != xcc; then
4418    # Test first that cc exists at all.
4419    if { ac_try='cc -c conftest.$ac_ext >&5'
4420  { { case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426  (eval "$ac_try") 2>&5
4427  ac_status=$?
4428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429  test $ac_status = 0; }; }; then
4430      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4431      rm -f conftest2.*
4432      if { { case "(($ac_try" in
4433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434  *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438  (eval "$ac_try") 2>&5
4439  ac_status=$?
4440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441  test $ac_status = 0; } &&
4442	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444  *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
4448  (eval "$ac_try") 2>&5
4449  ac_status=$?
4450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451  test $ac_status = 0; };
4452      then
4453	# cc works too.
4454	:
4455      else
4456	# cc exists but doesn't like -o.
4457	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4458      fi
4459    fi
4460  fi
4461else
4462  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463fi
4464rm -f core conftest*
4465
4466fi
4467if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469$as_echo "yes" >&6; }
4470else
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473
4474$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4475
4476fi
4477
4478# FIXME: we rely on the cache variable name because
4479# there is no other way.
4480set dummy $CC
4481am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4483if test "$am_t" != yes; then
4484   # Losing compiler, so override with the script.
4485   # FIXME: It is wrong to rewrite CC.
4486   # But if we don't then we get into trouble of one sort or another.
4487   # A longer-term fix would be to have automake use am__CC in this case,
4488   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4489   CC="$am_aux_dir/compile $CC"
4490fi
4491
4492
4493
4494
4495  ansi=
4496  if test -z "$ansi"; then
4497    msg="for C compiler warning flags"
4498  else
4499    msg="for C compiler warning and ANSI conformance flags"
4500  fi
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4502$as_echo_n "checking $msg... " >&6; }
4503if ${vl_cv_prog_cc_warnings+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506
4507    if test -n "$CC"; then
4508      cat > conftest.c <<EOF
4509int main(int argc, char **argv) { return 0; }
4510EOF
4511
4512            if test "$GCC" = "yes"; then
4513        if test -z "$ansi"; then
4514          vl_cv_prog_cc_warnings="-Wall -W"
4515        else
4516          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4517        fi
4518
4519
4520            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4521           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4522           test -f conftest.o; then
4523        if test -z "$ansi"; then
4524          vl_cv_prog_cc_warnings="-v"
4525        else
4526          vl_cv_prog_cc_warnings="-v -Xc"
4527        fi
4528
4529            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4530           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4531           test -f conftest.o; then
4532        if test -z "$ansi"; then
4533          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4534        else
4535          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4536        fi
4537
4538            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4539           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4540           test -f conftest.o; then
4541        if test -z "$ansi"; then
4542          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4543        else
4544          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4545        fi
4546
4547            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4548           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4549           test -f conftest.o; then
4550        if test -z "$ansi"; then
4551          vl_cv_prog_cc_warnings="-fullwarn"
4552        else
4553          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4554        fi
4555
4556            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4557           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4558           test -f conftest.o; then
4559        if test -z "$ansi"; then
4560          vl_cv_prog_cc_warnings="+w1"
4561        else
4562          vl_cv_prog_cc_warnings="+w1 -Aa"
4563        fi
4564
4565            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4566           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4567           test -f conftest.o; then
4568        if test -z "$ansi"; then
4569          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4570        else
4571          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4572        fi
4573
4574            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4575           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4576           test -f conftest.o; then
4577        if test -z "$ansi"; then
4578          vl_cv_prog_cc_warnings="-h msglevel 2"
4579        else
4580          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4581        fi
4582
4583      fi
4584      rm -f conftest.*
4585    fi
4586    if test -n "$vl_cv_prog_cc_warnings"; then
4587      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4588    else
4589      vl_cv_prog_cc_warnings="unknown"
4590    fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4594$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4595
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4599$as_echo_n "checking whether ln -s works... " >&6; }
4600LN_S=$as_ln_s
4601if test "$LN_S" = "ln -s"; then
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603$as_echo "yes" >&6; }
4604else
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606$as_echo "no, using $LN_S" >&6; }
4607fi
4608
4609
4610
4611# Check if LD supports linker scripts, and define automake conditional
4612# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4613# constrained to compilers using GNU ld on ELF systems or systems
4614# which provide an adequate emulation thereof.
4615# Check whether --enable-ld-version-script was given.
4616if test "${enable_ld_version_script+set}" = set; then :
4617  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4618else
4619  have_ld_version_script=no
4620fi
4621
4622if test "$have_ld_version_script" != no; then
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4624$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4625  save_LDFLAGS="$LDFLAGS"
4626  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4627  cat > conftest.map <<EOF
4628VERS_1 {
4629        global: sym;
4630};
4631
4632VERS_2 {
4633        global: sym;
4634} VERS_1;
4635EOF
4636
4637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h.  */
4639
4640int
4641main ()
4642{
4643
4644  ;
4645  return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_link "$LINENO"; then :
4649  have_ld_version_script=yes
4650else
4651  have_ld_version_script=no
4652fi
4653rm -f core conftest.err conftest.$ac_objext \
4654    conftest$ac_exeext conftest.$ac_ext
4655  rm -f conftest.map
4656  LDFLAGS="$save_LDFLAGS"
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4658$as_echo "$have_ld_version_script" >&6; }
4659fi
4660 if test "$have_ld_version_script" = "yes"; then
4661  HAVE_LD_VERSION_SCRIPT_TRUE=
4662  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4663else
4664  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4665  HAVE_LD_VERSION_SCRIPT_FALSE=
4666fi
4667
4668
4669
4670
4671
4672
4673case `pwd` in
4674  *\ * | *\	*)
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4676$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4677esac
4678
4679
4680
4681macro_version='2.4.2'
4682macro_revision='1.3337'
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696ltmain="$ac_aux_dir/ltmain.sh"
4697
4698# Backslashify metacharacters that are still active within
4699# double-quoted strings.
4700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4701
4702# Same as above, but do not quote variable references.
4703double_quote_subst='s/\(["`\\]\)/\\\1/g'
4704
4705# Sed substitution to delay expansion of an escaped shell variable in a
4706# double_quote_subst'ed string.
4707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4708
4709# Sed substitution to delay expansion of an escaped single quote.
4710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4711
4712# Sed substitution to avoid accidental globbing in evaled expressions
4713no_glob_subst='s/\*/\\\*/g'
4714
4715ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4717ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4720$as_echo_n "checking how to print strings... " >&6; }
4721# Test print first, because it will be a builtin if present.
4722if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4723   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4724  ECHO='print -r --'
4725elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4726  ECHO='printf %s\n'
4727else
4728  # Use this function as a fallback that always works.
4729  func_fallback_echo ()
4730  {
4731    eval 'cat <<_LTECHO_EOF
4732$1
4733_LTECHO_EOF'
4734  }
4735  ECHO='func_fallback_echo'
4736fi
4737
4738# func_echo_all arg...
4739# Invoke $ECHO with all args, space-separated.
4740func_echo_all ()
4741{
4742    $ECHO ""
4743}
4744
4745case "$ECHO" in
4746  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4747$as_echo "printf" >&6; } ;;
4748  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4749$as_echo "print -r" >&6; } ;;
4750  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4751$as_echo "cat" >&6; } ;;
4752esac
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773     for ac_i in 1 2 3 4 5 6 7; do
4774       ac_script="$ac_script$as_nl$ac_script"
4775     done
4776     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777     { ac_script=; unset ac_script;}
4778     if test -z "$SED"; then
4779  ac_path_SED_found=false
4780  # Loop through the user's path and test for each of PROGNAME-LIST
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_prog in sed gsed; do
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789      as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
4791  # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796  ac_count=0
4797  $as_echo_n 0123456789 >"conftest.in"
4798  while :
4799  do
4800    cat "conftest.in" "conftest.in" >"conftest.tmp"
4801    mv "conftest.tmp" "conftest.in"
4802    cp "conftest.in" "conftest.nl"
4803    $as_echo '' >> "conftest.nl"
4804    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806    as_fn_arith $ac_count + 1 && ac_count=$as_val
4807    if test $ac_count -gt ${ac_path_SED_max-0}; then
4808      # Best one so far, save it but keep looking for a better one
4809      ac_cv_path_SED="$ac_path_SED"
4810      ac_path_SED_max=$ac_count
4811    fi
4812    # 10*(2^10) chars as input seems more than enough
4813    test $ac_count -gt 10 && break
4814  done
4815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818      $ac_path_SED_found && break 3
4819    done
4820  done
4821  done
4822IFS=$as_save_IFS
4823  if test -z "$ac_cv_path_SED"; then
4824    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825  fi
4826else
4827  ac_cv_path_SED=$SED
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834  rm -f conftest.sed
4835
4836test -z "$SED" && SED=sed
4837Xsed="$SED -e 1s/^X//"
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851if ${ac_cv_path_GREP+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -z "$GREP"; then
4855  ac_path_GREP_found=false
4856  # Loop through the user's path and test for each of PROGNAME-LIST
4857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_prog in grep ggrep; do
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865      as_fn_executable_p "$ac_path_GREP" || continue
4866# Check for GNU ac_path_GREP and select it if it is found.
4867  # Check for GNU $ac_path_GREP
4868case `"$ac_path_GREP" --version 2>&1` in
4869*GNU*)
4870  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4871*)
4872  ac_count=0
4873  $as_echo_n 0123456789 >"conftest.in"
4874  while :
4875  do
4876    cat "conftest.in" "conftest.in" >"conftest.tmp"
4877    mv "conftest.tmp" "conftest.in"
4878    cp "conftest.in" "conftest.nl"
4879    $as_echo 'GREP' >> "conftest.nl"
4880    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882    as_fn_arith $ac_count + 1 && ac_count=$as_val
4883    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884      # Best one so far, save it but keep looking for a better one
4885      ac_cv_path_GREP="$ac_path_GREP"
4886      ac_path_GREP_max=$ac_count
4887    fi
4888    # 10*(2^10) chars as input seems more than enough
4889    test $ac_count -gt 10 && break
4890  done
4891  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892esac
4893
4894      $ac_path_GREP_found && break 3
4895    done
4896  done
4897  done
4898IFS=$as_save_IFS
4899  if test -z "$ac_cv_path_GREP"; then
4900    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901  fi
4902else
4903  ac_cv_path_GREP=$GREP
4904fi
4905
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908$as_echo "$ac_cv_path_GREP" >&6; }
4909 GREP="$ac_cv_path_GREP"
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913$as_echo_n "checking for egrep... " >&6; }
4914if ${ac_cv_path_EGREP+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918   then ac_cv_path_EGREP="$GREP -E"
4919   else
4920     if test -z "$EGREP"; then
4921  ac_path_EGREP_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in egrep; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931      as_fn_executable_p "$ac_path_EGREP" || continue
4932# Check for GNU ac_path_EGREP and select it if it is found.
4933  # Check for GNU $ac_path_EGREP
4934case `"$ac_path_EGREP" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo 'EGREP' >> "conftest.nl"
4946    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_EGREP="$ac_path_EGREP"
4952      ac_path_EGREP_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_EGREP_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_EGREP"; then
4966    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_EGREP=$EGREP
4970fi
4971
4972   fi
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975$as_echo "$ac_cv_path_EGREP" >&6; }
4976 EGREP="$ac_cv_path_EGREP"
4977
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4980$as_echo_n "checking for fgrep... " >&6; }
4981if ${ac_cv_path_FGREP+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985   then ac_cv_path_FGREP="$GREP -F"
4986   else
4987     if test -z "$FGREP"; then
4988  ac_path_FGREP_found=false
4989  # Loop through the user's path and test for each of PROGNAME-LIST
4990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992do
4993  IFS=$as_save_IFS
4994  test -z "$as_dir" && as_dir=.
4995    for ac_prog in fgrep; do
4996    for ac_exec_ext in '' $ac_executable_extensions; do
4997      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4998      as_fn_executable_p "$ac_path_FGREP" || continue
4999# Check for GNU ac_path_FGREP and select it if it is found.
5000  # Check for GNU $ac_path_FGREP
5001case `"$ac_path_FGREP" --version 2>&1` in
5002*GNU*)
5003  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5004*)
5005  ac_count=0
5006  $as_echo_n 0123456789 >"conftest.in"
5007  while :
5008  do
5009    cat "conftest.in" "conftest.in" >"conftest.tmp"
5010    mv "conftest.tmp" "conftest.in"
5011    cp "conftest.in" "conftest.nl"
5012    $as_echo 'FGREP' >> "conftest.nl"
5013    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015    as_fn_arith $ac_count + 1 && ac_count=$as_val
5016    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5017      # Best one so far, save it but keep looking for a better one
5018      ac_cv_path_FGREP="$ac_path_FGREP"
5019      ac_path_FGREP_max=$ac_count
5020    fi
5021    # 10*(2^10) chars as input seems more than enough
5022    test $ac_count -gt 10 && break
5023  done
5024  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025esac
5026
5027      $ac_path_FGREP_found && break 3
5028    done
5029  done
5030  done
5031IFS=$as_save_IFS
5032  if test -z "$ac_cv_path_FGREP"; then
5033    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034  fi
5035else
5036  ac_cv_path_FGREP=$FGREP
5037fi
5038
5039   fi
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042$as_echo "$ac_cv_path_FGREP" >&6; }
5043 FGREP="$ac_cv_path_FGREP"
5044
5045
5046test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066# Check whether --with-gnu-ld was given.
5067if test "${with_gnu_ld+set}" = set; then :
5068  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5069else
5070  with_gnu_ld=no
5071fi
5072
5073ac_prog=ld
5074if test "$GCC" = yes; then
5075  # Check if gcc -print-prog-name=ld gives a path.
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5077$as_echo_n "checking for ld used by $CC... " >&6; }
5078  case $host in
5079  *-*-mingw*)
5080    # gcc leaves a trailing carriage return which upsets mingw
5081    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5082  *)
5083    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5084  esac
5085  case $ac_prog in
5086    # Accept absolute paths.
5087    [\\/]* | ?:[\\/]*)
5088      re_direlt='/[^/][^/]*/\.\./'
5089      # Canonicalize the pathname of ld
5090      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5091      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5092	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5093      done
5094      test -z "$LD" && LD="$ac_prog"
5095      ;;
5096  "")
5097    # If it fails, then pretend we aren't using GCC.
5098    ac_prog=ld
5099    ;;
5100  *)
5101    # If it is relative, then search for the first ld in PATH.
5102    with_gnu_ld=unknown
5103    ;;
5104  esac
5105elif test "$with_gnu_ld" = yes; then
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5107$as_echo_n "checking for GNU ld... " >&6; }
5108else
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5110$as_echo_n "checking for non-GNU ld... " >&6; }
5111fi
5112if ${lt_cv_path_LD+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  if test -z "$LD"; then
5116  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5117  for ac_dir in $PATH; do
5118    IFS="$lt_save_ifs"
5119    test -z "$ac_dir" && ac_dir=.
5120    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5121      lt_cv_path_LD="$ac_dir/$ac_prog"
5122      # Check to see if the program is GNU ld.  I'd rather use --version,
5123      # but apparently some variants of GNU ld only accept -v.
5124      # Break only if it was the GNU/non-GNU ld that we prefer.
5125      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5126      *GNU* | *'with BFD'*)
5127	test "$with_gnu_ld" != no && break
5128	;;
5129      *)
5130	test "$with_gnu_ld" != yes && break
5131	;;
5132      esac
5133    fi
5134  done
5135  IFS="$lt_save_ifs"
5136else
5137  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5138fi
5139fi
5140
5141LD="$lt_cv_path_LD"
5142if test -n "$LD"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144$as_echo "$LD" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5152if ${lt_cv_prog_gnu_ld+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156case `$LD -v 2>&1 </dev/null` in
5157*GNU* | *'with BFD'*)
5158  lt_cv_prog_gnu_ld=yes
5159  ;;
5160*)
5161  lt_cv_prog_gnu_ld=no
5162  ;;
5163esac
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5167with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5178$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5179if ${lt_cv_path_NM+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$NM"; then
5183  # Let the user override the test.
5184  lt_cv_path_NM="$NM"
5185else
5186  lt_nm_to_check="${ac_tool_prefix}nm"
5187  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188    lt_nm_to_check="$lt_nm_to_check nm"
5189  fi
5190  for lt_tmp_nm in $lt_nm_to_check; do
5191    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193      IFS="$lt_save_ifs"
5194      test -z "$ac_dir" && ac_dir=.
5195      tmp_nm="$ac_dir/$lt_tmp_nm"
5196      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5197	# Check to see if the nm accepts a BSD-compat flag.
5198	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5199	#   nm: unknown option "B" ignored
5200	# Tru64's nm complains that /dev/null is an invalid object file
5201	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5202	*/dev/null* | *'Invalid file or object type'*)
5203	  lt_cv_path_NM="$tmp_nm -B"
5204	  break
5205	  ;;
5206	*)
5207	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5208	  */dev/null*)
5209	    lt_cv_path_NM="$tmp_nm -p"
5210	    break
5211	    ;;
5212	  *)
5213	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5214	    continue # so that we can try to find one that supports BSD flags
5215	    ;;
5216	  esac
5217	  ;;
5218	esac
5219      fi
5220    done
5221    IFS="$lt_save_ifs"
5222  done
5223  : ${lt_cv_path_NM=no}
5224fi
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5227$as_echo "$lt_cv_path_NM" >&6; }
5228if test "$lt_cv_path_NM" != "no"; then
5229  NM="$lt_cv_path_NM"
5230else
5231  # Didn't find any BSD compatible name lister, look for dumpbin.
5232  if test -n "$DUMPBIN"; then :
5233    # Let the user override the test.
5234  else
5235    if test -n "$ac_tool_prefix"; then
5236  for ac_prog in dumpbin "link -dump"
5237  do
5238    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if ${ac_cv_prog_DUMPBIN+:} false; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  if test -n "$DUMPBIN"; then
5246  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  test -z "$as_dir" && as_dir=.
5253    for ac_exec_ext in '' $ac_executable_extensions; do
5254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257    break 2
5258  fi
5259done
5260  done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265DUMPBIN=$ac_cv_prog_DUMPBIN
5266if test -n "$DUMPBIN"; then
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5268$as_echo "$DUMPBIN" >&6; }
5269else
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274
5275    test -n "$DUMPBIN" && break
5276  done
5277fi
5278if test -z "$DUMPBIN"; then
5279  ac_ct_DUMPBIN=$DUMPBIN
5280  for ac_prog in dumpbin "link -dump"
5281do
5282  # Extract the first word of "$ac_prog", so it can be a program name with args.
5283set dummy $ac_prog; ac_word=$2
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285$as_echo_n "checking for $ac_word... " >&6; }
5286if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  if test -n "$ac_ct_DUMPBIN"; then
5290  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297    for ac_exec_ext in '' $ac_executable_extensions; do
5298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301    break 2
5302  fi
5303done
5304  done
5305IFS=$as_save_IFS
5306
5307fi
5308fi
5309ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5310if test -n "$ac_ct_DUMPBIN"; then
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5312$as_echo "$ac_ct_DUMPBIN" >&6; }
5313else
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316fi
5317
5318
5319  test -n "$ac_ct_DUMPBIN" && break
5320done
5321
5322  if test "x$ac_ct_DUMPBIN" = x; then
5323    DUMPBIN=":"
5324  else
5325    case $cross_compiling:$ac_tool_warned in
5326yes:)
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329ac_tool_warned=yes ;;
5330esac
5331    DUMPBIN=$ac_ct_DUMPBIN
5332  fi
5333fi
5334
5335    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5336    *COFF*)
5337      DUMPBIN="$DUMPBIN -symbols"
5338      ;;
5339    *)
5340      DUMPBIN=:
5341      ;;
5342    esac
5343  fi
5344
5345  if test "$DUMPBIN" != ":"; then
5346    NM="$DUMPBIN"
5347  fi
5348fi
5349test -z "$NM" && NM=nm
5350
5351
5352
5353
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5357$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5358if ${lt_cv_nm_interface+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  lt_cv_nm_interface="BSD nm"
5362  echo "int some_variable = 0;" > conftest.$ac_ext
5363  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5364  (eval "$ac_compile" 2>conftest.err)
5365  cat conftest.err >&5
5366  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5367  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5368  cat conftest.err >&5
5369  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5370  cat conftest.out >&5
5371  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5372    lt_cv_nm_interface="MS dumpbin"
5373  fi
5374  rm -f conftest*
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5377$as_echo "$lt_cv_nm_interface" >&6; }
5378
5379# find the maximum length of command line arguments
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5381$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5382if ${lt_cv_sys_max_cmd_len+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385    i=0
5386  teststring="ABCD"
5387
5388  case $build_os in
5389  msdosdjgpp*)
5390    # On DJGPP, this test can blow up pretty badly due to problems in libc
5391    # (any single argument exceeding 2000 bytes causes a buffer overrun
5392    # during glob expansion).  Even if it were fixed, the result of this
5393    # check would be larger than it should be.
5394    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5395    ;;
5396
5397  gnu*)
5398    # Under GNU Hurd, this test is not required because there is
5399    # no limit to the length of command line arguments.
5400    # Libtool will interpret -1 as no limit whatsoever
5401    lt_cv_sys_max_cmd_len=-1;
5402    ;;
5403
5404  cygwin* | mingw* | cegcc*)
5405    # On Win9x/ME, this test blows up -- it succeeds, but takes
5406    # about 5 minutes as the teststring grows exponentially.
5407    # Worse, since 9x/ME are not pre-emptively multitasking,
5408    # you end up with a "frozen" computer, even though with patience
5409    # the test eventually succeeds (with a max line length of 256k).
5410    # Instead, let's just punt: use the minimum linelength reported by
5411    # all of the supported platforms: 8192 (on NT/2K/XP).
5412    lt_cv_sys_max_cmd_len=8192;
5413    ;;
5414
5415  mint*)
5416    # On MiNT this can take a long time and run out of memory.
5417    lt_cv_sys_max_cmd_len=8192;
5418    ;;
5419
5420  amigaos*)
5421    # On AmigaOS with pdksh, this test takes hours, literally.
5422    # So we just punt and use a minimum line length of 8192.
5423    lt_cv_sys_max_cmd_len=8192;
5424    ;;
5425
5426  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5427    # This has been around since 386BSD, at least.  Likely further.
5428    if test -x /sbin/sysctl; then
5429      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5430    elif test -x /usr/sbin/sysctl; then
5431      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5432    else
5433      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5434    fi
5435    # And add a safety zone
5436    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438    ;;
5439
5440  interix*)
5441    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5442    lt_cv_sys_max_cmd_len=196608
5443    ;;
5444
5445  os2*)
5446    # The test takes a long time on OS/2.
5447    lt_cv_sys_max_cmd_len=8192
5448    ;;
5449
5450  osf*)
5451    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5452    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5453    # nice to cause kernel panics so lets avoid the loop below.
5454    # First set a reasonable default.
5455    lt_cv_sys_max_cmd_len=16384
5456    #
5457    if test -x /sbin/sysconfig; then
5458      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5459        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5460      esac
5461    fi
5462    ;;
5463  sco3.2v5*)
5464    lt_cv_sys_max_cmd_len=102400
5465    ;;
5466  sysv5* | sco5v6* | sysv4.2uw2*)
5467    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5468    if test -n "$kargmax"; then
5469      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5470    else
5471      lt_cv_sys_max_cmd_len=32768
5472    fi
5473    ;;
5474  *)
5475    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5476    if test -n "$lt_cv_sys_max_cmd_len"; then
5477      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479    else
5480      # Make teststring a little bigger before we do anything with it.
5481      # a 1K string should be a reasonable start.
5482      for i in 1 2 3 4 5 6 7 8 ; do
5483        teststring=$teststring$teststring
5484      done
5485      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486      # If test is not a shell built-in, we'll probably end up computing a
5487      # maximum length that is only half of the actual maximum length, but
5488      # we can't tell.
5489      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5490	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491	      test $i != 17 # 1/2 MB should be enough
5492      do
5493        i=`expr $i + 1`
5494        teststring=$teststring$teststring
5495      done
5496      # Only check the string length outside the loop.
5497      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5498      teststring=
5499      # Add a significant safety factor because C++ compilers can tack on
5500      # massive amounts of additional arguments before passing them to the
5501      # linker.  It appears as though 1/2 is a usable value.
5502      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5503    fi
5504    ;;
5505  esac
5506
5507fi
5508
5509if test -n $lt_cv_sys_max_cmd_len ; then
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5512else
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514$as_echo "none" >&6; }
5515fi
5516max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
5523: ${CP="cp -f"}
5524: ${MV="mv -f"}
5525: ${RM="rm -f"}
5526
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5528$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5529# Try some XSI features
5530xsi_shell=no
5531( _lt_dummy="a/b/c"
5532  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5533      = c,a/b,b/c, \
5534    && eval 'test $(( 1 + 1 )) -eq 2 \
5535    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5536  && xsi_shell=yes
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5538$as_echo "$xsi_shell" >&6; }
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5542$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5543lt_shell_append=no
5544( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5545    >/dev/null 2>&1 \
5546  && lt_shell_append=yes
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5548$as_echo "$lt_shell_append" >&6; }
5549
5550
5551if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5552  lt_unset=unset
5553else
5554  lt_unset=false
5555fi
5556
5557
5558
5559
5560
5561# test EBCDIC or ASCII
5562case `echo X|tr X '\101'` in
5563 A) # ASCII based system
5564    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5565  lt_SP2NL='tr \040 \012'
5566  lt_NL2SP='tr \015\012 \040\040'
5567  ;;
5568 *) # EBCDIC based system
5569  lt_SP2NL='tr \100 \n'
5570  lt_NL2SP='tr \r\n \100\100'
5571  ;;
5572esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5583$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5584if ${lt_cv_to_host_file_cmd+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  case $host in
5588  *-*-mingw* )
5589    case $build in
5590      *-*-mingw* ) # actually msys
5591        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5592        ;;
5593      *-*-cygwin* )
5594        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5595        ;;
5596      * ) # otherwise, assume *nix
5597        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5598        ;;
5599    esac
5600    ;;
5601  *-*-cygwin* )
5602    case $build in
5603      *-*-mingw* ) # actually msys
5604        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5605        ;;
5606      *-*-cygwin* )
5607        lt_cv_to_host_file_cmd=func_convert_file_noop
5608        ;;
5609      * ) # otherwise, assume *nix
5610        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5611        ;;
5612    esac
5613    ;;
5614  * ) # unhandled hosts (and "normal" native builds)
5615    lt_cv_to_host_file_cmd=func_convert_file_noop
5616    ;;
5617esac
5618
5619fi
5620
5621to_host_file_cmd=$lt_cv_to_host_file_cmd
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5623$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5624
5625
5626
5627
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5630$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5631if ${lt_cv_to_tool_file_cmd+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  #assume ordinary cross tools, or native build.
5635lt_cv_to_tool_file_cmd=func_convert_file_noop
5636case $host in
5637  *-*-mingw* )
5638    case $build in
5639      *-*-mingw* ) # actually msys
5640        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5641        ;;
5642    esac
5643    ;;
5644esac
5645
5646fi
5647
5648to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5650$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5651
5652
5653
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5657$as_echo_n "checking for $LD option to reload object files... " >&6; }
5658if ${lt_cv_ld_reload_flag+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661  lt_cv_ld_reload_flag='-r'
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664$as_echo "$lt_cv_ld_reload_flag" >&6; }
5665reload_flag=$lt_cv_ld_reload_flag
5666case $reload_flag in
5667"" | " "*) ;;
5668*) reload_flag=" $reload_flag" ;;
5669esac
5670reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671case $host_os in
5672  cygwin* | mingw* | pw32* | cegcc*)
5673    if test "$GCC" != yes; then
5674      reload_cmds=false
5675    fi
5676    ;;
5677  darwin*)
5678    if test "$GCC" = yes; then
5679      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5680    else
5681      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5682    fi
5683    ;;
5684esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694if test -n "$ac_tool_prefix"; then
5695  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  if test -n "$OBJDUMP"; then
5703  ac_cv_prog_OBJDUMP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712    ac_cv_prog_OBJDUMP="${ac_tool_prefix}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
5722OBJDUMP=$ac_cv_prog_OBJDUMP
5723if test -n "$OBJDUMP"; then
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725$as_echo "$OBJDUMP" >&6; }
5726else
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732fi
5733if test -z "$ac_cv_prog_OBJDUMP"; then
5734  ac_ct_OBJDUMP=$OBJDUMP
5735  # Extract the first word of "objdump", so it can be a program name with args.
5736set dummy objdump; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$ac_ct_OBJDUMP"; then
5743  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763if test -n "$ac_ct_OBJDUMP"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5765$as_echo "$ac_ct_OBJDUMP" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771  if test "x$ac_ct_OBJDUMP" = x; then
5772    OBJDUMP="false"
5773  else
5774    case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780    OBJDUMP=$ac_ct_OBJDUMP
5781  fi
5782else
5783  OBJDUMP="$ac_cv_prog_OBJDUMP"
5784fi
5785
5786test -z "$OBJDUMP" && OBJDUMP=objdump
5787
5788
5789
5790
5791
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795if ${lt_cv_deplibs_check_method+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  lt_cv_file_magic_cmd='$MAGIC_CMD'
5799lt_cv_file_magic_test_file=
5800lt_cv_deplibs_check_method='unknown'
5801# Need to set the preceding variable on all platforms that support
5802# interlibrary dependencies.
5803# 'none' -- dependencies not supported.
5804# `unknown' -- same as none, but documents that we really don't know.
5805# 'pass_all' -- all dependencies passed with no checks.
5806# 'test_compile' -- check by making test program.
5807# 'file_magic [[regex]]' -- check by looking for files in library path
5808# which responds to the $file_magic_cmd with a given extended regex.
5809# If you have `file' or equivalent on your system and you're not sure
5810# whether `pass_all' will *always* work, you probably want this one.
5811
5812case $host_os in
5813aix[4-9]*)
5814  lt_cv_deplibs_check_method=pass_all
5815  ;;
5816
5817beos*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821bsdi[45]*)
5822  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823  lt_cv_file_magic_cmd='/usr/bin/file -L'
5824  lt_cv_file_magic_test_file=/shlib/libc.so
5825  ;;
5826
5827cygwin*)
5828  # func_win32_libid is a shell function defined in ltmain.sh
5829  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830  lt_cv_file_magic_cmd='func_win32_libid'
5831  ;;
5832
5833mingw* | pw32*)
5834  # Base MSYS/MinGW do not provide the 'file' command needed by
5835  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836  # unless we find 'file', for example because we are cross-compiling.
5837  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840    lt_cv_file_magic_cmd='func_win32_libid'
5841  else
5842    # Keep this pattern in sync with the one in func_win32_libid.
5843    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844    lt_cv_file_magic_cmd='$OBJDUMP -f'
5845  fi
5846  ;;
5847
5848cegcc*)
5849  # use the weaker test based on 'objdump'. See mingw*.
5850  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5851  lt_cv_file_magic_cmd='$OBJDUMP -f'
5852  ;;
5853
5854darwin* | rhapsody*)
5855  lt_cv_deplibs_check_method=pass_all
5856  ;;
5857
5858freebsd* | dragonfly*)
5859  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5860    case $host_cpu in
5861    i*86 )
5862      # Not sure whether the presence of OpenBSD here was a mistake.
5863      # Let's accept both of them until this is cleared up.
5864      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865      lt_cv_file_magic_cmd=/usr/bin/file
5866      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5867      ;;
5868    esac
5869  else
5870    lt_cv_deplibs_check_method=pass_all
5871  fi
5872  ;;
5873
5874gnu*)
5875  lt_cv_deplibs_check_method=pass_all
5876  ;;
5877
5878haiku*)
5879  lt_cv_deplibs_check_method=pass_all
5880  ;;
5881
5882hpux10.20* | hpux11*)
5883  lt_cv_file_magic_cmd=/usr/bin/file
5884  case $host_cpu in
5885  ia64*)
5886    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5888    ;;
5889  hppa*64*)
5890    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]'
5891    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892    ;;
5893  *)
5894    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896    ;;
5897  esac
5898  ;;
5899
5900interix[3-9]*)
5901  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5903  ;;
5904
5905irix5* | irix6* | nonstopux*)
5906  case $LD in
5907  *-32|*"-32 ") libmagic=32-bit;;
5908  *-n32|*"-n32 ") libmagic=N32;;
5909  *-64|*"-64 ") libmagic=64-bit;;
5910  *) libmagic=never-match;;
5911  esac
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915# This must be glibc/ELF.
5916linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917  lt_cv_deplibs_check_method=pass_all
5918  ;;
5919
5920netbsd*)
5921  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923  else
5924    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5925  fi
5926  ;;
5927
5928newos6*)
5929  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930  lt_cv_file_magic_cmd=/usr/bin/file
5931  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5932  ;;
5933
5934*nto* | *qnx*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938openbsd*)
5939  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5941  else
5942    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5943  fi
5944  ;;
5945
5946osf3* | osf4* | osf5*)
5947  lt_cv_deplibs_check_method=pass_all
5948  ;;
5949
5950rdos*)
5951  lt_cv_deplibs_check_method=pass_all
5952  ;;
5953
5954solaris*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959  lt_cv_deplibs_check_method=pass_all
5960  ;;
5961
5962sysv4 | sysv4.3*)
5963  case $host_vendor in
5964  motorola)
5965    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]'
5966    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5967    ;;
5968  ncr)
5969    lt_cv_deplibs_check_method=pass_all
5970    ;;
5971  sequent)
5972    lt_cv_file_magic_cmd='/bin/file'
5973    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5974    ;;
5975  sni)
5976    lt_cv_file_magic_cmd='/bin/file'
5977    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978    lt_cv_file_magic_test_file=/lib/libc.so
5979    ;;
5980  siemens)
5981    lt_cv_deplibs_check_method=pass_all
5982    ;;
5983  pc)
5984    lt_cv_deplibs_check_method=pass_all
5985    ;;
5986  esac
5987  ;;
5988
5989tpf*)
5990  lt_cv_deplibs_check_method=pass_all
5991  ;;
5992esac
5993
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996$as_echo "$lt_cv_deplibs_check_method" >&6; }
5997
5998file_magic_glob=
5999want_nocaseglob=no
6000if test "$build" = "$host"; then
6001  case $host_os in
6002  mingw* | pw32*)
6003    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6004      want_nocaseglob=yes
6005    else
6006      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6007    fi
6008    ;;
6009  esac
6010fi
6011
6012file_magic_cmd=$lt_cv_file_magic_cmd
6013deplibs_check_method=$lt_cv_deplibs_check_method
6014test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037if test -n "$ac_tool_prefix"; then
6038  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test -n "$DLLTOOL"; then
6046  ac_cv_prog_DLLTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055    ac_cv_prog_DLLTOOL="${ac_tool_prefix}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
6065DLLTOOL=$ac_cv_prog_DLLTOOL
6066if test -n "$DLLTOOL"; then
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068$as_echo "$DLLTOOL" >&6; }
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074
6075fi
6076if test -z "$ac_cv_prog_DLLTOOL"; then
6077  ac_ct_DLLTOOL=$DLLTOOL
6078  # Extract the first word of "dlltool", so it can be a program name with args.
6079set dummy dlltool; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  if test -n "$ac_ct_DLLTOOL"; then
6086  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091  IFS=$as_save_IFS
6092  test -z "$as_dir" && as_dir=.
6093    for ac_exec_ext in '' $ac_executable_extensions; do
6094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097    break 2
6098  fi
6099done
6100  done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106if test -n "$ac_ct_DLLTOOL"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108$as_echo "$ac_ct_DLLTOOL" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114  if test "x$ac_ct_DLLTOOL" = x; then
6115    DLLTOOL="false"
6116  else
6117    case $cross_compiling:$ac_tool_warned in
6118yes:)
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121ac_tool_warned=yes ;;
6122esac
6123    DLLTOOL=$ac_ct_DLLTOOL
6124  fi
6125else
6126  DLLTOOL="$ac_cv_prog_DLLTOOL"
6127fi
6128
6129test -z "$DLLTOOL" && DLLTOOL=dlltool
6130
6131
6132
6133
6134
6135
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6138$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6139if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  lt_cv_sharedlib_from_linklib_cmd='unknown'
6143
6144case $host_os in
6145cygwin* | mingw* | pw32* | cegcc*)
6146  # two different shell functions defined in ltmain.sh
6147  # decide which to use based on capabilities of $DLLTOOL
6148  case `$DLLTOOL --help 2>&1` in
6149  *--identify-strict*)
6150    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6151    ;;
6152  *)
6153    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6154    ;;
6155  esac
6156  ;;
6157*)
6158  # fallback: assume linklib IS sharedlib
6159  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6160  ;;
6161esac
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6165$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6166sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6168
6169
6170
6171
6172
6173
6174
6175if test -n "$ac_tool_prefix"; then
6176  for ac_prog in ar
6177  do
6178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_AR+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$AR"; then
6186  ac_cv_prog_AR="$AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205AR=$ac_cv_prog_AR
6206if test -n "$AR"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208$as_echo "$AR" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215    test -n "$AR" && break
6216  done
6217fi
6218if test -z "$AR"; then
6219  ac_ct_AR=$AR
6220  for ac_prog in ar
6221do
6222  # Extract the first word of "$ac_prog", so it can be a program name with args.
6223set dummy $ac_prog; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  if test -n "$ac_ct_AR"; then
6230  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_ac_ct_AR="$ac_prog"
6240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250if test -n "$ac_ct_AR"; then
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252$as_echo "$ac_ct_AR" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258
6259  test -n "$ac_ct_AR" && break
6260done
6261
6262  if test "x$ac_ct_AR" = x; then
6263    AR="false"
6264  else
6265    case $cross_compiling:$ac_tool_warned in
6266yes:)
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269ac_tool_warned=yes ;;
6270esac
6271    AR=$ac_ct_AR
6272  fi
6273fi
6274
6275: ${AR=ar}
6276: ${AR_FLAGS=cru}
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6289$as_echo_n "checking for archiver @FILE support... " >&6; }
6290if ${lt_cv_ar_at_file+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  lt_cv_ar_at_file=no
6294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h.  */
6296
6297int
6298main ()
6299{
6300
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306  echo conftest.$ac_objext > conftest.lst
6307      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6308      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6309  (eval $lt_ar_try) 2>&5
6310  ac_status=$?
6311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312  test $ac_status = 0; }
6313      if test "$ac_status" -eq 0; then
6314	# Ensure the archiver fails upon bogus file names.
6315	rm -f conftest.$ac_objext libconftest.a
6316	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6317  (eval $lt_ar_try) 2>&5
6318  ac_status=$?
6319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320  test $ac_status = 0; }
6321	if test "$ac_status" -ne 0; then
6322          lt_cv_ar_at_file=@
6323        fi
6324      fi
6325      rm -f conftest.* libconftest.a
6326
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332$as_echo "$lt_cv_ar_at_file" >&6; }
6333
6334if test "x$lt_cv_ar_at_file" = xno; then
6335  archiver_list_spec=
6336else
6337  archiver_list_spec=$lt_cv_ar_at_file
6338fi
6339
6340
6341
6342
6343
6344
6345
6346if test -n "$ac_tool_prefix"; then
6347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$STRIP"; then
6355  ac_cv_prog_STRIP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364    ac_cv_prog_STRIP="${ac_tool_prefix}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
6374STRIP=$ac_cv_prog_STRIP
6375if test -n "$STRIP"; then
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377$as_echo "$STRIP" >&6; }
6378else
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384fi
6385if test -z "$ac_cv_prog_STRIP"; then
6386  ac_ct_STRIP=$STRIP
6387  # Extract the first word of "strip", so it can be a program name with args.
6388set dummy strip; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$ac_ct_STRIP"; then
6395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404    ac_cv_prog_ac_ct_STRIP="strip"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415if test -n "$ac_ct_STRIP"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417$as_echo "$ac_ct_STRIP" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423  if test "x$ac_ct_STRIP" = x; then
6424    STRIP=":"
6425  else
6426    case $cross_compiling:$ac_tool_warned in
6427yes:)
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430ac_tool_warned=yes ;;
6431esac
6432    STRIP=$ac_ct_STRIP
6433  fi
6434else
6435  STRIP="$ac_cv_prog_STRIP"
6436fi
6437
6438test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}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_RANLIB+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$RANLIB"; then
6454  ac_cv_prog_RANLIB="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463    ac_cv_prog_RANLIB="${ac_tool_prefix}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
6473RANLIB=$ac_cv_prog_RANLIB
6474if test -n "$RANLIB"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476$as_echo "$RANLIB" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_RANLIB"; then
6485  ac_ct_RANLIB=$RANLIB
6486  # Extract the first word of "ranlib", so it can be a program name with args.
6487set dummy ranlib; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$ac_ct_RANLIB"; then
6494  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503    ac_cv_prog_ac_ct_RANLIB="ranlib"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514if test -n "$ac_ct_RANLIB"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516$as_echo "$ac_ct_RANLIB" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522  if test "x$ac_ct_RANLIB" = x; then
6523    RANLIB=":"
6524  else
6525    case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531    RANLIB=$ac_ct_RANLIB
6532  fi
6533else
6534  RANLIB="$ac_cv_prog_RANLIB"
6535fi
6536
6537test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544# Determine commands to create old-style static archives.
6545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546old_postinstall_cmds='chmod 644 $oldlib'
6547old_postuninstall_cmds=
6548
6549if test -n "$RANLIB"; then
6550  case $host_os in
6551  openbsd*)
6552    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6553    ;;
6554  *)
6555    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6556    ;;
6557  esac
6558  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6559fi
6560
6561case $host_os in
6562  darwin*)
6563    lock_old_archive_extraction=yes ;;
6564  *)
6565    lock_old_archive_extraction=no ;;
6566esac
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606# If no C compiler was specified, use CC.
6607LTCC=${LTCC-"$CC"}
6608
6609# If no C compiler flags were specified, use CFLAGS.
6610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612# Allow CC to be a program name with arguments.
6613compiler=$CC
6614
6615
6616# Check for command to grab the raw symbol name followed by C symbol from nm.
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6619if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622
6623# These are sane defaults that work on at least a few old systems.
6624# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6625
6626# Character class describing NM global symbol codes.
6627symcode='[BCDEGRST]'
6628
6629# Regexp to match symbols that can be accessed directly from C.
6630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632# Define system-specific variables.
6633case $host_os in
6634aix*)
6635  symcode='[BCDT]'
6636  ;;
6637cygwin* | mingw* | pw32* | cegcc*)
6638  symcode='[ABCDGISTW]'
6639  ;;
6640hpux*)
6641  if test "$host_cpu" = ia64; then
6642    symcode='[ABCDEGRST]'
6643  fi
6644  ;;
6645irix* | nonstopux*)
6646  symcode='[BCDEGRST]'
6647  ;;
6648osf*)
6649  symcode='[BCDEGQRST]'
6650  ;;
6651solaris*)
6652  symcode='[BDRT]'
6653  ;;
6654sco3.2v5*)
6655  symcode='[DT]'
6656  ;;
6657sysv4.2uw2*)
6658  symcode='[DT]'
6659  ;;
6660sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661  symcode='[ABDT]'
6662  ;;
6663sysv4)
6664  symcode='[DFNSTU]'
6665  ;;
6666esac
6667
6668# If we're using GNU nm, then use its standard symbol codes.
6669case `$NM -V 2>&1` in
6670*GNU* | *'with BFD'*)
6671  symcode='[ABCDGIRSTW]' ;;
6672esac
6673
6674# Transform an extracted symbol line into a proper C declaration.
6675# Some systems (esp. on ia64) link data and code symbols differently,
6676# so use this general approach.
6677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6678
6679# Transform an extracted symbol line into symbol name and symbol address
6680lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6681lt_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'"
6682
6683# Handle CRLF in mingw tool chain
6684opt_cr=
6685case $build_os in
6686mingw*)
6687  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6688  ;;
6689esac
6690
6691# Try without a prefix underscore, then with it.
6692for ac_symprfx in "" "_"; do
6693
6694  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6695  symxfrm="\\1 $ac_symprfx\\2 \\2"
6696
6697  # Write the raw and C identifiers.
6698  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699    # Fake it for dumpbin and say T for any non-static function
6700    # and D for any global variable.
6701    # Also find C++ and __fastcall symbols from MSVC++,
6702    # which start with @ or ?.
6703    lt_cv_sys_global_symbol_pipe="$AWK '"\
6704"     {last_section=section; section=\$ 3};"\
6705"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6706"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707"     \$ 0!~/External *\|/{next};"\
6708"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709"     {if(hide[section]) next};"\
6710"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714"     ' prfx=^$ac_symprfx"
6715  else
6716    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6717  fi
6718  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6719
6720  # Check to see that the pipe works correctly.
6721  pipe_works=no
6722
6723  rm -f conftest*
6724  cat > conftest.$ac_ext <<_LT_EOF
6725#ifdef __cplusplus
6726extern "C" {
6727#endif
6728char nm_test_var;
6729void nm_test_func(void);
6730void nm_test_func(void){}
6731#ifdef __cplusplus
6732}
6733#endif
6734int main(){nm_test_var='a';nm_test_func();return(0);}
6735_LT_EOF
6736
6737  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738  (eval $ac_compile) 2>&5
6739  ac_status=$?
6740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741  test $ac_status = 0; }; then
6742    # Now try to grab the symbols.
6743    nlist=conftest.nm
6744    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6745  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6746  ac_status=$?
6747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748  test $ac_status = 0; } && test -s "$nlist"; then
6749      # Try sorting and uniquifying the output.
6750      if sort "$nlist" | uniq > "$nlist"T; then
6751	mv -f "$nlist"T "$nlist"
6752      else
6753	rm -f "$nlist"T
6754      fi
6755
6756      # Make sure that we snagged all the symbols we need.
6757      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759	  cat <<_LT_EOF > conftest.$ac_ext
6760/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6761#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6762/* DATA imports from DLLs on WIN32 con't be const, because runtime
6763   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6764# define LT_DLSYM_CONST
6765#elif defined(__osf__)
6766/* This system does not cope well with relocations in const data.  */
6767# define LT_DLSYM_CONST
6768#else
6769# define LT_DLSYM_CONST const
6770#endif
6771
6772#ifdef __cplusplus
6773extern "C" {
6774#endif
6775
6776_LT_EOF
6777	  # Now generate the symbol file.
6778	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6779
6780	  cat <<_LT_EOF >> conftest.$ac_ext
6781
6782/* The mapping between symbol names and symbols.  */
6783LT_DLSYM_CONST struct {
6784  const char *name;
6785  void       *address;
6786}
6787lt__PROGRAM__LTX_preloaded_symbols[] =
6788{
6789  { "@PROGRAM@", (void *) 0 },
6790_LT_EOF
6791	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6792	  cat <<\_LT_EOF >> conftest.$ac_ext
6793  {0, (void *) 0}
6794};
6795
6796/* This works around a problem in FreeBSD linker */
6797#ifdef FREEBSD_WORKAROUND
6798static const void *lt_preloaded_setup() {
6799  return lt__PROGRAM__LTX_preloaded_symbols;
6800}
6801#endif
6802
6803#ifdef __cplusplus
6804}
6805#endif
6806_LT_EOF
6807	  # Now try linking the two files.
6808	  mv conftest.$ac_objext conftstm.$ac_objext
6809	  lt_globsym_save_LIBS=$LIBS
6810	  lt_globsym_save_CFLAGS=$CFLAGS
6811	  LIBS="conftstm.$ac_objext"
6812	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6813	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6814  (eval $ac_link) 2>&5
6815  ac_status=$?
6816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6818	    pipe_works=yes
6819	  fi
6820	  LIBS=$lt_globsym_save_LIBS
6821	  CFLAGS=$lt_globsym_save_CFLAGS
6822	else
6823	  echo "cannot find nm_test_func in $nlist" >&5
6824	fi
6825      else
6826	echo "cannot find nm_test_var in $nlist" >&5
6827      fi
6828    else
6829      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6830    fi
6831  else
6832    echo "$progname: failed program was:" >&5
6833    cat conftest.$ac_ext >&5
6834  fi
6835  rm -rf conftest* conftst*
6836
6837  # Do not use the global_symbol_pipe unless it works.
6838  if test "$pipe_works" = yes; then
6839    break
6840  else
6841    lt_cv_sys_global_symbol_pipe=
6842  fi
6843done
6844
6845fi
6846
6847if test -z "$lt_cv_sys_global_symbol_pipe"; then
6848  lt_cv_sys_global_symbol_to_cdecl=
6849fi
6850if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6852$as_echo "failed" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6855$as_echo "ok" >&6; }
6856fi
6857
6858# Response file support.
6859if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860  nm_file_list_spec='@'
6861elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6862  nm_file_list_spec='@'
6863fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6892$as_echo_n "checking for sysroot... " >&6; }
6893
6894# Check whether --with-sysroot was given.
6895if test "${with_sysroot+set}" = set; then :
6896  withval=$with_sysroot;
6897else
6898  with_sysroot=no
6899fi
6900
6901
6902lt_sysroot=
6903case ${with_sysroot} in #(
6904 yes)
6905   if test "$GCC" = yes; then
6906     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6907   fi
6908   ;; #(
6909 /*)
6910   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6911   ;; #(
6912 no|'')
6913   ;; #(
6914 *)
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6916$as_echo "${with_sysroot}" >&6; }
6917   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6918   ;;
6919esac
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6922$as_echo "${lt_sysroot:-no}" >&6; }
6923
6924
6925
6926
6927
6928# Check whether --enable-libtool-lock was given.
6929if test "${enable_libtool_lock+set}" = set; then :
6930  enableval=$enable_libtool_lock;
6931fi
6932
6933test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6934
6935# Some flags need to be propagated to the compiler or linker for good
6936# libtool support.
6937case $host in
6938ia64-*-hpux*)
6939  # Find out which ABI we are using.
6940  echo 'int i;' > conftest.$ac_ext
6941  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942  (eval $ac_compile) 2>&5
6943  ac_status=$?
6944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945  test $ac_status = 0; }; then
6946    case `/usr/bin/file conftest.$ac_objext` in
6947      *ELF-32*)
6948	HPUX_IA64_MODE="32"
6949	;;
6950      *ELF-64*)
6951	HPUX_IA64_MODE="64"
6952	;;
6953    esac
6954  fi
6955  rm -rf conftest*
6956  ;;
6957*-*-irix6*)
6958  # Find out which ABI we are using.
6959  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961  (eval $ac_compile) 2>&5
6962  ac_status=$?
6963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964  test $ac_status = 0; }; then
6965    if test "$lt_cv_prog_gnu_ld" = yes; then
6966      case `/usr/bin/file conftest.$ac_objext` in
6967	*32-bit*)
6968	  LD="${LD-ld} -melf32bsmip"
6969	  ;;
6970	*N32*)
6971	  LD="${LD-ld} -melf32bmipn32"
6972	  ;;
6973	*64-bit*)
6974	  LD="${LD-ld} -melf64bmip"
6975	;;
6976      esac
6977    else
6978      case `/usr/bin/file conftest.$ac_objext` in
6979	*32-bit*)
6980	  LD="${LD-ld} -32"
6981	  ;;
6982	*N32*)
6983	  LD="${LD-ld} -n32"
6984	  ;;
6985	*64-bit*)
6986	  LD="${LD-ld} -64"
6987	  ;;
6988      esac
6989    fi
6990  fi
6991  rm -rf conftest*
6992  ;;
6993
6994x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6996  # Find out which ABI we are using.
6997  echo 'int i;' > conftest.$ac_ext
6998  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999  (eval $ac_compile) 2>&5
7000  ac_status=$?
7001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002  test $ac_status = 0; }; then
7003    case `/usr/bin/file conftest.o` in
7004      *32-bit*)
7005	case $host in
7006	  x86_64-*kfreebsd*-gnu)
7007	    LD="${LD-ld} -m elf_i386_fbsd"
7008	    ;;
7009	  x86_64-*linux*)
7010	    LD="${LD-ld} -m elf_i386"
7011	    ;;
7012	  ppc64-*linux*|powerpc64-*linux*)
7013	    LD="${LD-ld} -m elf32ppclinux"
7014	    ;;
7015	  s390x-*linux*)
7016	    LD="${LD-ld} -m elf_s390"
7017	    ;;
7018	  sparc64-*linux*)
7019	    LD="${LD-ld} -m elf32_sparc"
7020	    ;;
7021	esac
7022	;;
7023      *64-bit*)
7024	case $host in
7025	  x86_64-*kfreebsd*-gnu)
7026	    LD="${LD-ld} -m elf_x86_64_fbsd"
7027	    ;;
7028	  x86_64-*linux*)
7029	    LD="${LD-ld} -m elf_x86_64"
7030	    ;;
7031	  ppc*-*linux*|powerpc*-*linux*)
7032	    LD="${LD-ld} -m elf64ppc"
7033	    ;;
7034	  s390*-*linux*|s390*-*tpf*)
7035	    LD="${LD-ld} -m elf64_s390"
7036	    ;;
7037	  sparc*-*linux*)
7038	    LD="${LD-ld} -m elf64_sparc"
7039	    ;;
7040	esac
7041	;;
7042    esac
7043  fi
7044  rm -rf conftest*
7045  ;;
7046
7047*-*-sco3.2v5*)
7048  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7049  SAVE_CFLAGS="$CFLAGS"
7050  CFLAGS="$CFLAGS -belf"
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7052$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7053if ${lt_cv_cc_needs_belf+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064
7065int
7066main ()
7067{
7068
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073if ac_fn_c_try_link "$LINENO"; then :
7074  lt_cv_cc_needs_belf=yes
7075else
7076  lt_cv_cc_needs_belf=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext \
7079    conftest$ac_exeext conftest.$ac_ext
7080     ac_ext=c
7081ac_cpp='$CPP $CPPFLAGS'
7082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086fi
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7088$as_echo "$lt_cv_cc_needs_belf" >&6; }
7089  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7090    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091    CFLAGS="$SAVE_CFLAGS"
7092  fi
7093  ;;
7094*-*solaris*)
7095  # Find out which ABI we are using.
7096  echo 'int i;' > conftest.$ac_ext
7097  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098  (eval $ac_compile) 2>&5
7099  ac_status=$?
7100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101  test $ac_status = 0; }; then
7102    case `/usr/bin/file conftest.o` in
7103    *64-bit*)
7104      case $lt_cv_prog_gnu_ld in
7105      yes*)
7106        case $host in
7107        i?86-*-solaris*|x86_64-*-solaris*)
7108          LD="${LD-ld} -m elf_x86_64"
7109          ;;
7110        sparc*-*-solaris*)
7111          LD="${LD-ld} -m elf64_sparc"
7112          ;;
7113        esac
7114        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7115        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7116          LD="${LD-ld}_sol2"
7117        fi
7118        ;;
7119      *)
7120	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7121	  LD="${LD-ld} -64"
7122	fi
7123	;;
7124      esac
7125      ;;
7126    esac
7127  fi
7128  rm -rf conftest*
7129  ;;
7130esac
7131
7132need_locks="$enable_libtool_lock"
7133
7134if test -n "$ac_tool_prefix"; then
7135  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}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_MANIFEST_TOOL+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$MANIFEST_TOOL"; then
7143  ac_cv_prog_MANIFEST_TOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}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
7162MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7163if test -n "$MANIFEST_TOOL"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7165$as_echo "$MANIFEST_TOOL" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7174  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7175  # Extract the first word of "mt", so it can be a program name with args.
7176set dummy mt; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_MANIFEST_TOOL"; then
7183  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7203if test -n "$ac_ct_MANIFEST_TOOL"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7205$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7212    MANIFEST_TOOL=":"
7213  else
7214    case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218ac_tool_warned=yes ;;
7219esac
7220    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7221  fi
7222else
7223  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7224fi
7225
7226test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7228$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7229if ${lt_cv_path_mainfest_tool+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  lt_cv_path_mainfest_tool=no
7233  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7234  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7235  cat conftest.err >&5
7236  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7237    lt_cv_path_mainfest_tool=yes
7238  fi
7239  rm -f conftest*
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7242$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7243if test "x$lt_cv_path_mainfest_tool" != xyes; then
7244  MANIFEST_TOOL=:
7245fi
7246
7247
7248
7249
7250
7251
7252  case $host_os in
7253    rhapsody* | darwin*)
7254    if test -n "$ac_tool_prefix"; then
7255  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256set dummy ${ac_tool_prefix}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_DSYMUTIL+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$DSYMUTIL"; then
7263  ac_cv_prog_DSYMUTIL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}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
7282DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283if test -n "$DSYMUTIL"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285$as_echo "$DSYMUTIL" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291
7292fi
7293if test -z "$ac_cv_prog_DSYMUTIL"; then
7294  ac_ct_DSYMUTIL=$DSYMUTIL
7295  # Extract the first word of "dsymutil", so it can be a program name with args.
7296set dummy dsymutil; ac_word=$2
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298$as_echo_n "checking for $ac_word... " >&6; }
7299if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  if test -n "$ac_ct_DSYMUTIL"; then
7303  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308  IFS=$as_save_IFS
7309  test -z "$as_dir" && as_dir=.
7310    for ac_exec_ext in '' $ac_executable_extensions; do
7311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314    break 2
7315  fi
7316done
7317  done
7318IFS=$as_save_IFS
7319
7320fi
7321fi
7322ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323if test -n "$ac_ct_DSYMUTIL"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325$as_echo "$ac_ct_DSYMUTIL" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
7329fi
7330
7331  if test "x$ac_ct_DSYMUTIL" = x; then
7332    DSYMUTIL=":"
7333  else
7334    case $cross_compiling:$ac_tool_warned in
7335yes:)
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338ac_tool_warned=yes ;;
7339esac
7340    DSYMUTIL=$ac_ct_DSYMUTIL
7341  fi
7342else
7343  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7344fi
7345
7346    if test -n "$ac_tool_prefix"; then
7347  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}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_NMEDIT+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$NMEDIT"; then
7355  ac_cv_prog_NMEDIT="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_prog_NMEDIT="${ac_tool_prefix}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
7374NMEDIT=$ac_cv_prog_NMEDIT
7375if test -n "$NMEDIT"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377$as_echo "$NMEDIT" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384fi
7385if test -z "$ac_cv_prog_NMEDIT"; then
7386  ac_ct_NMEDIT=$NMEDIT
7387  # Extract the first word of "nmedit", so it can be a program name with args.
7388set dummy nmedit; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$ac_ct_NMEDIT"; then
7395  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415if test -n "$ac_ct_NMEDIT"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417$as_echo "$ac_ct_NMEDIT" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_NMEDIT" = x; then
7424    NMEDIT=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    NMEDIT=$ac_ct_NMEDIT
7433  fi
7434else
7435  NMEDIT="$ac_cv_prog_NMEDIT"
7436fi
7437
7438    if test -n "$ac_tool_prefix"; then
7439  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7440set dummy ${ac_tool_prefix}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_LIPO+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  if test -n "$LIPO"; then
7447  ac_cv_prog_LIPO="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456    ac_cv_prog_LIPO="${ac_tool_prefix}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
7466LIPO=$ac_cv_prog_LIPO
7467if test -n "$LIPO"; then
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7469$as_echo "$LIPO" >&6; }
7470else
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
7473fi
7474
7475
7476fi
7477if test -z "$ac_cv_prog_LIPO"; then
7478  ac_ct_LIPO=$LIPO
7479  # Extract the first word of "lipo", so it can be a program name with args.
7480set dummy lipo; ac_word=$2
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482$as_echo_n "checking for $ac_word... " >&6; }
7483if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  if test -n "$ac_ct_LIPO"; then
7487  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492  IFS=$as_save_IFS
7493  test -z "$as_dir" && as_dir=.
7494    for ac_exec_ext in '' $ac_executable_extensions; do
7495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496    ac_cv_prog_ac_ct_LIPO="lipo"
7497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498    break 2
7499  fi
7500done
7501  done
7502IFS=$as_save_IFS
7503
7504fi
7505fi
7506ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7507if test -n "$ac_ct_LIPO"; then
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7509$as_echo "$ac_ct_LIPO" >&6; }
7510else
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512$as_echo "no" >&6; }
7513fi
7514
7515  if test "x$ac_ct_LIPO" = x; then
7516    LIPO=":"
7517  else
7518    case $cross_compiling:$ac_tool_warned in
7519yes:)
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522ac_tool_warned=yes ;;
7523esac
7524    LIPO=$ac_ct_LIPO
7525  fi
7526else
7527  LIPO="$ac_cv_prog_LIPO"
7528fi
7529
7530    if test -n "$ac_tool_prefix"; then
7531  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7532set dummy ${ac_tool_prefix}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_OTOOL+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$OTOOL"; then
7539  ac_cv_prog_OTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548    ac_cv_prog_OTOOL="${ac_tool_prefix}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
7558OTOOL=$ac_cv_prog_OTOOL
7559if test -n "$OTOOL"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7561$as_echo "$OTOOL" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568fi
7569if test -z "$ac_cv_prog_OTOOL"; then
7570  ac_ct_OTOOL=$OTOOL
7571  # Extract the first word of "otool", so it can be a program name with args.
7572set dummy otool; ac_word=$2
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  if test -n "$ac_ct_OTOOL"; then
7579  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584  IFS=$as_save_IFS
7585  test -z "$as_dir" && as_dir=.
7586    for ac_exec_ext in '' $ac_executable_extensions; do
7587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588    ac_cv_prog_ac_ct_OTOOL="otool"
7589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590    break 2
7591  fi
7592done
7593  done
7594IFS=$as_save_IFS
7595
7596fi
7597fi
7598ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7599if test -n "$ac_ct_OTOOL"; then
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7601$as_echo "$ac_ct_OTOOL" >&6; }
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
7605fi
7606
7607  if test "x$ac_ct_OTOOL" = x; then
7608    OTOOL=":"
7609  else
7610    case $cross_compiling:$ac_tool_warned in
7611yes:)
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614ac_tool_warned=yes ;;
7615esac
7616    OTOOL=$ac_ct_OTOOL
7617  fi
7618else
7619  OTOOL="$ac_cv_prog_OTOOL"
7620fi
7621
7622    if test -n "$ac_tool_prefix"; then
7623  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}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_OTOOL64+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$OTOOL64"; then
7631  ac_cv_prog_OTOOL64="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640    ac_cv_prog_OTOOL64="${ac_tool_prefix}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
7650OTOOL64=$ac_cv_prog_OTOOL64
7651if test -n "$OTOOL64"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7653$as_echo "$OTOOL64" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
7658
7659
7660fi
7661if test -z "$ac_cv_prog_OTOOL64"; then
7662  ac_ct_OTOOL64=$OTOOL64
7663  # Extract the first word of "otool64", so it can be a program name with args.
7664set dummy otool64; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  if test -n "$ac_ct_OTOOL64"; then
7671  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676  IFS=$as_save_IFS
7677  test -z "$as_dir" && as_dir=.
7678    for ac_exec_ext in '' $ac_executable_extensions; do
7679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680    ac_cv_prog_ac_ct_OTOOL64="otool64"
7681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682    break 2
7683  fi
7684done
7685  done
7686IFS=$as_save_IFS
7687
7688fi
7689fi
7690ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7691if test -n "$ac_ct_OTOOL64"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7693$as_echo "$ac_ct_OTOOL64" >&6; }
7694else
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
7698
7699  if test "x$ac_ct_OTOOL64" = x; then
7700    OTOOL64=":"
7701  else
7702    case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708    OTOOL64=$ac_ct_OTOOL64
7709  fi
7710else
7711  OTOOL64="$ac_cv_prog_OTOOL64"
7712fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7741$as_echo_n "checking for -single_module linker flag... " >&6; }
7742if ${lt_cv_apple_cc_single_mod+:} false; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  lt_cv_apple_cc_single_mod=no
7746      if test -z "${LT_MULTI_MODULE}"; then
7747	# By default we will add the -single_module flag. You can override
7748	# by either setting the environment variable LT_MULTI_MODULE
7749	# non-empty at configure time, or by adding -multi_module to the
7750	# link flags.
7751	rm -rf libconftest.dylib*
7752	echo "int foo(void){return 1;}" > conftest.c
7753	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7754-dynamiclib -Wl,-single_module conftest.c" >&5
7755	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7756	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7757        _lt_result=$?
7758	# If there is a non-empty error log, and "single_module"
7759	# appears in it, assume the flag caused a linker warning
7760        if test -s conftest.err && $GREP single_module conftest.err; then
7761	  cat conftest.err >&5
7762	# Otherwise, if the output was created with a 0 exit code from
7763	# the compiler, it worked.
7764	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7765	  lt_cv_apple_cc_single_mod=yes
7766	else
7767	  cat conftest.err >&5
7768	fi
7769	rm -rf libconftest.dylib*
7770	rm -f conftest.*
7771      fi
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7774$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7775
7776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7777$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7778if ${lt_cv_ld_exported_symbols_list+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  lt_cv_ld_exported_symbols_list=no
7782      save_LDFLAGS=$LDFLAGS
7783      echo "_main" > conftest.sym
7784      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h.  */
7787
7788int
7789main ()
7790{
7791
7792  ;
7793  return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797  lt_cv_ld_exported_symbols_list=yes
7798else
7799  lt_cv_ld_exported_symbols_list=no
7800fi
7801rm -f core conftest.err conftest.$ac_objext \
7802    conftest$ac_exeext conftest.$ac_ext
7803	LDFLAGS="$save_LDFLAGS"
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7807$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7808
7809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7810$as_echo_n "checking for -force_load linker flag... " >&6; }
7811if ${lt_cv_ld_force_load+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  lt_cv_ld_force_load=no
7815      cat > conftest.c << _LT_EOF
7816int forced_loaded() { return 2;}
7817_LT_EOF
7818      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820      echo "$AR cru libconftest.a conftest.o" >&5
7821      $AR cru libconftest.a conftest.o 2>&5
7822      echo "$RANLIB libconftest.a" >&5
7823      $RANLIB libconftest.a 2>&5
7824      cat > conftest.c << _LT_EOF
7825int main() { return 0;}
7826_LT_EOF
7827      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7828      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7829      _lt_result=$?
7830      if test -s conftest.err && $GREP force_load conftest.err; then
7831	cat conftest.err >&5
7832      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7833	lt_cv_ld_force_load=yes
7834      else
7835	cat conftest.err >&5
7836      fi
7837        rm -f conftest.err libconftest.a conftest conftest.c
7838        rm -rf conftest.dSYM
7839
7840fi
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7842$as_echo "$lt_cv_ld_force_load" >&6; }
7843    case $host_os in
7844    rhapsody* | darwin1.[012])
7845      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7846    darwin1.*)
7847      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7848    darwin*) # darwin 5.x on
7849      # if running on 10.5 or later, the deployment target defaults
7850      # to the OS version, if on x86, and 10.4, the deployment
7851      # target defaults to 10.4. Don't you love it?
7852      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7853	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7854	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7855	10.[012]*)
7856	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7857	10.*)
7858	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7859      esac
7860    ;;
7861  esac
7862    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7863      _lt_dar_single_mod='$single_module'
7864    fi
7865    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7866      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7867    else
7868      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869    fi
7870    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7871      _lt_dsymutil='~$DSYMUTIL $lib || :'
7872    else
7873      _lt_dsymutil=
7874    fi
7875    ;;
7876  esac
7877
7878ac_ext=c
7879ac_cpp='$CPP $CPPFLAGS'
7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7884$as_echo_n "checking how to run the C preprocessor... " >&6; }
7885# On Suns, sometimes $CPP names a directory.
7886if test -n "$CPP" && test -d "$CPP"; then
7887  CPP=
7888fi
7889if test -z "$CPP"; then
7890  if ${ac_cv_prog_CPP+:} false; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893      # Double quotes because CPP needs to be expanded
7894    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7895    do
7896      ac_preproc_ok=false
7897for ac_c_preproc_warn_flag in '' yes
7898do
7899  # Use a header file that comes with gcc, so configuring glibc
7900  # with a fresh cross-compiler works.
7901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902  # <limits.h> exists even on freestanding compilers.
7903  # On the NeXT, cc -E runs the code through the compiler's parser,
7904  # not just through cpp. "Syntax error" is here to catch this case.
7905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907#ifdef __STDC__
7908# include <limits.h>
7909#else
7910# include <assert.h>
7911#endif
7912		     Syntax error
7913_ACEOF
7914if ac_fn_c_try_cpp "$LINENO"; then :
7915
7916else
7917  # Broken: fails on valid input.
7918continue
7919fi
7920rm -f conftest.err conftest.i conftest.$ac_ext
7921
7922  # OK, works on sane cases.  Now check whether nonexistent headers
7923  # can be detected and how.
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926#include <ac_nonexistent.h>
7927_ACEOF
7928if ac_fn_c_try_cpp "$LINENO"; then :
7929  # Broken: success on invalid input.
7930continue
7931else
7932  # Passes both tests.
7933ac_preproc_ok=:
7934break
7935fi
7936rm -f conftest.err conftest.i conftest.$ac_ext
7937
7938done
7939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7940rm -f conftest.i conftest.err conftest.$ac_ext
7941if $ac_preproc_ok; then :
7942  break
7943fi
7944
7945    done
7946    ac_cv_prog_CPP=$CPP
7947
7948fi
7949  CPP=$ac_cv_prog_CPP
7950else
7951  ac_cv_prog_CPP=$CPP
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7954$as_echo "$CPP" >&6; }
7955ac_preproc_ok=false
7956for ac_c_preproc_warn_flag in '' yes
7957do
7958  # Use a header file that comes with gcc, so configuring glibc
7959  # with a fresh cross-compiler works.
7960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7961  # <limits.h> exists even on freestanding compilers.
7962  # On the NeXT, cc -E runs the code through the compiler's parser,
7963  # not just through cpp. "Syntax error" is here to catch this case.
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966#ifdef __STDC__
7967# include <limits.h>
7968#else
7969# include <assert.h>
7970#endif
7971		     Syntax error
7972_ACEOF
7973if ac_fn_c_try_cpp "$LINENO"; then :
7974
7975else
7976  # Broken: fails on valid input.
7977continue
7978fi
7979rm -f conftest.err conftest.i conftest.$ac_ext
7980
7981  # OK, works on sane cases.  Now check whether nonexistent headers
7982  # can be detected and how.
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985#include <ac_nonexistent.h>
7986_ACEOF
7987if ac_fn_c_try_cpp "$LINENO"; then :
7988  # Broken: success on invalid input.
7989continue
7990else
7991  # Passes both tests.
7992ac_preproc_ok=:
7993break
7994fi
7995rm -f conftest.err conftest.i conftest.$ac_ext
7996
7997done
7998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7999rm -f conftest.i conftest.err conftest.$ac_ext
8000if $ac_preproc_ok; then :
8001
8002else
8003  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8005as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8006See \`config.log' for more details" "$LINENO" 5; }
8007fi
8008
8009ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
8015
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8017$as_echo_n "checking for ANSI C header files... " >&6; }
8018if ${ac_cv_header_stdc+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023#include <stdlib.h>
8024#include <stdarg.h>
8025#include <string.h>
8026#include <float.h>
8027
8028int
8029main ()
8030{
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_compile "$LINENO"; then :
8037  ac_cv_header_stdc=yes
8038else
8039  ac_cv_header_stdc=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042
8043if test $ac_cv_header_stdc = yes; then
8044  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047#include <string.h>
8048
8049_ACEOF
8050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051  $EGREP "memchr" >/dev/null 2>&1; then :
8052
8053else
8054  ac_cv_header_stdc=no
8055fi
8056rm -f conftest*
8057
8058fi
8059
8060if test $ac_cv_header_stdc = yes; then
8061  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064#include <stdlib.h>
8065
8066_ACEOF
8067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068  $EGREP "free" >/dev/null 2>&1; then :
8069
8070else
8071  ac_cv_header_stdc=no
8072fi
8073rm -f conftest*
8074
8075fi
8076
8077if test $ac_cv_header_stdc = yes; then
8078  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8079  if test "$cross_compiling" = yes; then :
8080  :
8081else
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084#include <ctype.h>
8085#include <stdlib.h>
8086#if ((' ' & 0x0FF) == 0x020)
8087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8089#else
8090# define ISLOWER(c) \
8091		   (('a' <= (c) && (c) <= 'i') \
8092		     || ('j' <= (c) && (c) <= 'r') \
8093		     || ('s' <= (c) && (c) <= 'z'))
8094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095#endif
8096
8097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098int
8099main ()
8100{
8101  int i;
8102  for (i = 0; i < 256; i++)
8103    if (XOR (islower (i), ISLOWER (i))
8104	|| toupper (i) != TOUPPER (i))
8105      return 2;
8106  return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_run "$LINENO"; then :
8110
8111else
8112  ac_cv_header_stdc=no
8113fi
8114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8115  conftest.$ac_objext conftest.beam conftest.$ac_ext
8116fi
8117
8118fi
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8121$as_echo "$ac_cv_header_stdc" >&6; }
8122if test $ac_cv_header_stdc = yes; then
8123
8124$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8125
8126fi
8127
8128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8130		  inttypes.h stdint.h unistd.h
8131do :
8132  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8133ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8134"
8135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8136  cat >>confdefs.h <<_ACEOF
8137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138_ACEOF
8139
8140fi
8141
8142done
8143
8144
8145for ac_header in dlfcn.h
8146do :
8147  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8148"
8149if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8150  cat >>confdefs.h <<_ACEOF
8151#define HAVE_DLFCN_H 1
8152_ACEOF
8153
8154fi
8155
8156done
8157
8158
8159
8160
8161
8162# Set options
8163enable_win32_dll=yes
8164
8165case $host in
8166*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8167  if test -n "$ac_tool_prefix"; then
8168  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8169set dummy ${ac_tool_prefix}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_AS+:} false; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  if test -n "$AS"; then
8176  ac_cv_prog_AS="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185    ac_cv_prog_AS="${ac_tool_prefix}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
8195AS=$ac_cv_prog_AS
8196if test -n "$AS"; then
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198$as_echo "$AS" >&6; }
8199else
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8202fi
8203
8204
8205fi
8206if test -z "$ac_cv_prog_AS"; then
8207  ac_ct_AS=$AS
8208  # Extract the first word of "as", so it can be a program name with args.
8209set dummy as; ac_word=$2
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if ${ac_cv_prog_ac_ct_AS+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  if test -n "$ac_ct_AS"; then
8216  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8217else
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221  IFS=$as_save_IFS
8222  test -z "$as_dir" && as_dir=.
8223    for ac_exec_ext in '' $ac_executable_extensions; do
8224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225    ac_cv_prog_ac_ct_AS="as"
8226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227    break 2
8228  fi
8229done
8230  done
8231IFS=$as_save_IFS
8232
8233fi
8234fi
8235ac_ct_AS=$ac_cv_prog_ac_ct_AS
8236if test -n "$ac_ct_AS"; then
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8238$as_echo "$ac_ct_AS" >&6; }
8239else
8240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
8242fi
8243
8244  if test "x$ac_ct_AS" = x; then
8245    AS="false"
8246  else
8247    case $cross_compiling:$ac_tool_warned in
8248yes:)
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251ac_tool_warned=yes ;;
8252esac
8253    AS=$ac_ct_AS
8254  fi
8255else
8256  AS="$ac_cv_prog_AS"
8257fi
8258
8259  if test -n "$ac_tool_prefix"; then
8260  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8261set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  if test -n "$DLLTOOL"; then
8268  ac_cv_prog_DLLTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277    ac_cv_prog_DLLTOOL="${ac_tool_prefix}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
8287DLLTOOL=$ac_cv_prog_DLLTOOL
8288if test -n "$DLLTOOL"; then
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8290$as_echo "$DLLTOOL" >&6; }
8291else
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8295
8296
8297fi
8298if test -z "$ac_cv_prog_DLLTOOL"; then
8299  ac_ct_DLLTOOL=$DLLTOOL
8300  # Extract the first word of "dlltool", so it can be a program name with args.
8301set dummy dlltool; ac_word=$2
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
8304if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8305  $as_echo_n "(cached) " >&6
8306else
8307  if test -n "$ac_ct_DLLTOOL"; then
8308  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313  IFS=$as_save_IFS
8314  test -z "$as_dir" && as_dir=.
8315    for ac_exec_ext in '' $ac_executable_extensions; do
8316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319    break 2
8320  fi
8321done
8322  done
8323IFS=$as_save_IFS
8324
8325fi
8326fi
8327ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8328if test -n "$ac_ct_DLLTOOL"; then
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8330$as_echo "$ac_ct_DLLTOOL" >&6; }
8331else
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
8334fi
8335
8336  if test "x$ac_ct_DLLTOOL" = x; then
8337    DLLTOOL="false"
8338  else
8339    case $cross_compiling:$ac_tool_warned in
8340yes:)
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343ac_tool_warned=yes ;;
8344esac
8345    DLLTOOL=$ac_ct_DLLTOOL
8346  fi
8347else
8348  DLLTOOL="$ac_cv_prog_DLLTOOL"
8349fi
8350
8351  if test -n "$ac_tool_prefix"; then
8352  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8353set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$OBJDUMP"; then
8360  ac_cv_prog_OBJDUMP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369    ac_cv_prog_OBJDUMP="${ac_tool_prefix}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
8379OBJDUMP=$ac_cv_prog_OBJDUMP
8380if test -n "$OBJDUMP"; then
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8382$as_echo "$OBJDUMP" >&6; }
8383else
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8387
8388
8389fi
8390if test -z "$ac_cv_prog_OBJDUMP"; then
8391  ac_ct_OBJDUMP=$OBJDUMP
8392  # Extract the first word of "objdump", so it can be a program name with args.
8393set dummy objdump; ac_word=$2
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395$as_echo_n "checking for $ac_word... " >&6; }
8396if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  if test -n "$ac_ct_OBJDUMP"; then
8400  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8401else
8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405  IFS=$as_save_IFS
8406  test -z "$as_dir" && as_dir=.
8407    for ac_exec_ext in '' $ac_executable_extensions; do
8408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411    break 2
8412  fi
8413done
8414  done
8415IFS=$as_save_IFS
8416
8417fi
8418fi
8419ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8420if test -n "$ac_ct_OBJDUMP"; then
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8422$as_echo "$ac_ct_OBJDUMP" >&6; }
8423else
8424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425$as_echo "no" >&6; }
8426fi
8427
8428  if test "x$ac_ct_OBJDUMP" = x; then
8429    OBJDUMP="false"
8430  else
8431    case $cross_compiling:$ac_tool_warned in
8432yes:)
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435ac_tool_warned=yes ;;
8436esac
8437    OBJDUMP=$ac_ct_OBJDUMP
8438  fi
8439else
8440  OBJDUMP="$ac_cv_prog_OBJDUMP"
8441fi
8442
8443  ;;
8444esac
8445
8446test -z "$AS" && AS=as
8447
8448
8449
8450
8451
8452test -z "$DLLTOOL" && DLLTOOL=dlltool
8453
8454
8455
8456
8457
8458test -z "$OBJDUMP" && OBJDUMP=objdump
8459
8460
8461
8462
8463
8464
8465
8466        enable_dlopen=no
8467
8468
8469
8470            # Check whether --enable-shared was given.
8471if test "${enable_shared+set}" = set; then :
8472  enableval=$enable_shared; p=${PACKAGE-default}
8473    case $enableval in
8474    yes) enable_shared=yes ;;
8475    no) enable_shared=no ;;
8476    *)
8477      enable_shared=no
8478      # Look at the argument we got.  We use all the common list separators.
8479      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480      for pkg in $enableval; do
8481	IFS="$lt_save_ifs"
8482	if test "X$pkg" = "X$p"; then
8483	  enable_shared=yes
8484	fi
8485      done
8486      IFS="$lt_save_ifs"
8487      ;;
8488    esac
8489else
8490  enable_shared=yes
8491fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501  # Check whether --enable-static was given.
8502if test "${enable_static+set}" = set; then :
8503  enableval=$enable_static; p=${PACKAGE-default}
8504    case $enableval in
8505    yes) enable_static=yes ;;
8506    no) enable_static=no ;;
8507    *)
8508     enable_static=no
8509      # Look at the argument we got.  We use all the common list separators.
8510      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511      for pkg in $enableval; do
8512	IFS="$lt_save_ifs"
8513	if test "X$pkg" = "X$p"; then
8514	  enable_static=yes
8515	fi
8516      done
8517      IFS="$lt_save_ifs"
8518      ;;
8519    esac
8520else
8521  enable_static=yes
8522fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533# Check whether --with-pic was given.
8534if test "${with_pic+set}" = set; then :
8535  withval=$with_pic; lt_p=${PACKAGE-default}
8536    case $withval in
8537    yes|no) pic_mode=$withval ;;
8538    *)
8539      pic_mode=default
8540      # Look at the argument we got.  We use all the common list separators.
8541      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542      for lt_pkg in $withval; do
8543	IFS="$lt_save_ifs"
8544	if test "X$lt_pkg" = "X$lt_p"; then
8545	  pic_mode=yes
8546	fi
8547      done
8548      IFS="$lt_save_ifs"
8549      ;;
8550    esac
8551else
8552  pic_mode=default
8553fi
8554
8555
8556test -z "$pic_mode" && pic_mode=default
8557
8558
8559
8560
8561
8562
8563
8564  # Check whether --enable-fast-install was given.
8565if test "${enable_fast_install+set}" = set; then :
8566  enableval=$enable_fast_install; p=${PACKAGE-default}
8567    case $enableval in
8568    yes) enable_fast_install=yes ;;
8569    no) enable_fast_install=no ;;
8570    *)
8571      enable_fast_install=no
8572      # Look at the argument we got.  We use all the common list separators.
8573      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8574      for pkg in $enableval; do
8575	IFS="$lt_save_ifs"
8576	if test "X$pkg" = "X$p"; then
8577	  enable_fast_install=yes
8578	fi
8579      done
8580      IFS="$lt_save_ifs"
8581      ;;
8582    esac
8583else
8584  enable_fast_install=yes
8585fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597# This can be used to rebuild libtool when needed
8598LIBTOOL_DEPS="$ltmain"
8599
8600# Always use our own libtool.
8601LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632test -z "$LN_S" && LN_S="ln -s"
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647if test -n "${ZSH_VERSION+set}" ; then
8648   setopt NO_GLOB_SUBST
8649fi
8650
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8652$as_echo_n "checking for objdir... " >&6; }
8653if ${lt_cv_objdir+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  rm -f .libs 2>/dev/null
8657mkdir .libs 2>/dev/null
8658if test -d .libs; then
8659  lt_cv_objdir=.libs
8660else
8661  # MS-DOS does not allow filenames that begin with a dot.
8662  lt_cv_objdir=_libs
8663fi
8664rmdir .libs 2>/dev/null
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8667$as_echo "$lt_cv_objdir" >&6; }
8668objdir=$lt_cv_objdir
8669
8670
8671
8672
8673
8674cat >>confdefs.h <<_ACEOF
8675#define LT_OBJDIR "$lt_cv_objdir/"
8676_ACEOF
8677
8678
8679
8680
8681case $host_os in
8682aix3*)
8683  # AIX sometimes has problems with the GCC collect2 program.  For some
8684  # reason, if we set the COLLECT_NAMES environment variable, the problems
8685  # vanish in a puff of smoke.
8686  if test "X${COLLECT_NAMES+set}" != Xset; then
8687    COLLECT_NAMES=
8688    export COLLECT_NAMES
8689  fi
8690  ;;
8691esac
8692
8693# Global variables:
8694ofile=libtool
8695can_build_shared=yes
8696
8697# All known linkers require a `.a' archive for static linking (except MSVC,
8698# which needs '.lib').
8699libext=a
8700
8701with_gnu_ld="$lt_cv_prog_gnu_ld"
8702
8703old_CC="$CC"
8704old_CFLAGS="$CFLAGS"
8705
8706# Set sane defaults for various variables
8707test -z "$CC" && CC=cc
8708test -z "$LTCC" && LTCC=$CC
8709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8710test -z "$LD" && LD=ld
8711test -z "$ac_objext" && ac_objext=o
8712
8713for cc_temp in $compiler""; do
8714  case $cc_temp in
8715    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8716    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8717    \-*) ;;
8718    *) break;;
8719  esac
8720done
8721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8722
8723
8724# Only perform the check for file, if the check method requires it
8725test -z "$MAGIC_CMD" && MAGIC_CMD=file
8726case $deplibs_check_method in
8727file_magic*)
8728  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8731if ${lt_cv_path_MAGIC_CMD+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  case $MAGIC_CMD in
8735[\\/*] |  ?:[\\/]*)
8736  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8737  ;;
8738*)
8739  lt_save_MAGIC_CMD="$MAGIC_CMD"
8740  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8741  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8742  for ac_dir in $ac_dummy; do
8743    IFS="$lt_save_ifs"
8744    test -z "$ac_dir" && ac_dir=.
8745    if test -f $ac_dir/${ac_tool_prefix}file; then
8746      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8747      if test -n "$file_magic_test_file"; then
8748	case $deplibs_check_method in
8749	"file_magic "*)
8750	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8751	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8752	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8753	    $EGREP "$file_magic_regex" > /dev/null; then
8754	    :
8755	  else
8756	    cat <<_LT_EOF 1>&2
8757
8758*** Warning: the command libtool uses to detect shared libraries,
8759*** $file_magic_cmd, produces output that libtool cannot recognize.
8760*** The result is that libtool may fail to recognize shared libraries
8761*** as such.  This will affect the creation of libtool libraries that
8762*** depend on shared libraries, but programs linked with such libtool
8763*** libraries will work regardless of this problem.  Nevertheless, you
8764*** may want to report the problem to your system manager and/or to
8765*** [email protected]
8766
8767_LT_EOF
8768	  fi ;;
8769	esac
8770      fi
8771      break
8772    fi
8773  done
8774  IFS="$lt_save_ifs"
8775  MAGIC_CMD="$lt_save_MAGIC_CMD"
8776  ;;
8777esac
8778fi
8779
8780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781if test -n "$MAGIC_CMD"; then
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8783$as_echo "$MAGIC_CMD" >&6; }
8784else
8785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786$as_echo "no" >&6; }
8787fi
8788
8789
8790
8791
8792
8793if test -z "$lt_cv_path_MAGIC_CMD"; then
8794  if test -n "$ac_tool_prefix"; then
8795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8796$as_echo_n "checking for file... " >&6; }
8797if ${lt_cv_path_MAGIC_CMD+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  case $MAGIC_CMD in
8801[\\/*] |  ?:[\\/]*)
8802  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8803  ;;
8804*)
8805  lt_save_MAGIC_CMD="$MAGIC_CMD"
8806  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8807  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8808  for ac_dir in $ac_dummy; do
8809    IFS="$lt_save_ifs"
8810    test -z "$ac_dir" && ac_dir=.
8811    if test -f $ac_dir/file; then
8812      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8813      if test -n "$file_magic_test_file"; then
8814	case $deplibs_check_method in
8815	"file_magic "*)
8816	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8817	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8818	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8819	    $EGREP "$file_magic_regex" > /dev/null; then
8820	    :
8821	  else
8822	    cat <<_LT_EOF 1>&2
8823
8824*** Warning: the command libtool uses to detect shared libraries,
8825*** $file_magic_cmd, produces output that libtool cannot recognize.
8826*** The result is that libtool may fail to recognize shared libraries
8827*** as such.  This will affect the creation of libtool libraries that
8828*** depend on shared libraries, but programs linked with such libtool
8829*** libraries will work regardless of this problem.  Nevertheless, you
8830*** may want to report the problem to your system manager and/or to
8831*** [email protected]
8832
8833_LT_EOF
8834	  fi ;;
8835	esac
8836      fi
8837      break
8838    fi
8839  done
8840  IFS="$lt_save_ifs"
8841  MAGIC_CMD="$lt_save_MAGIC_CMD"
8842  ;;
8843esac
8844fi
8845
8846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847if test -n "$MAGIC_CMD"; then
8848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8849$as_echo "$MAGIC_CMD" >&6; }
8850else
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855
8856  else
8857    MAGIC_CMD=:
8858  fi
8859fi
8860
8861  fi
8862  ;;
8863esac
8864
8865# Use C for the default configuration in the libtool script
8866
8867lt_save_CC="$CC"
8868ac_ext=c
8869ac_cpp='$CPP $CPPFLAGS'
8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874
8875# Source file extension for C test sources.
8876ac_ext=c
8877
8878# Object file extension for compiled C test sources.
8879objext=o
8880objext=$objext
8881
8882# Code to be used in simple compile tests
8883lt_simple_compile_test_code="int some_variable = 0;"
8884
8885# Code to be used in simple link tests
8886lt_simple_link_test_code='int main(){return(0);}'
8887
8888
8889
8890
8891
8892
8893
8894# If no C compiler was specified, use CC.
8895LTCC=${LTCC-"$CC"}
8896
8897# If no C compiler flags were specified, use CFLAGS.
8898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8899
8900# Allow CC to be a program name with arguments.
8901compiler=$CC
8902
8903# Save the default compiler, since it gets overwritten when the other
8904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8905compiler_DEFAULT=$CC
8906
8907# save warnings/boilerplate of simple test code
8908ac_outfile=conftest.$ac_objext
8909echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8911_lt_compiler_boilerplate=`cat conftest.err`
8912$RM conftest*
8913
8914ac_outfile=conftest.$ac_objext
8915echo "$lt_simple_link_test_code" >conftest.$ac_ext
8916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8917_lt_linker_boilerplate=`cat conftest.err`
8918$RM -r conftest*
8919
8920
8921## CAVEAT EMPTOR:
8922## There is no encapsulation within the following macros, do not change
8923## the running order or otherwise move them around unless you know exactly
8924## what you are doing...
8925if test -n "$compiler"; then
8926
8927lt_prog_compiler_no_builtin_flag=
8928
8929if test "$GCC" = yes; then
8930  case $cc_basename in
8931  nvcc*)
8932    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8933  *)
8934    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8935  esac
8936
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  lt_cv_prog_compiler_rtti_exceptions=no
8943   ac_outfile=conftest.$ac_objext
8944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945   lt_compiler_flag="-fno-rtti -fno-exceptions"
8946   # Insert the option either (1) after the last *FLAGS variable, or
8947   # (2) before a word containing "conftest.", or (3) at the end.
8948   # Note that $ac_compile itself does not contain backslashes and begins
8949   # with a dollar sign (not a hyphen), so the echo should work correctly.
8950   # The option is referenced via a variable to avoid confusing sed.
8951   lt_compile=`echo "$ac_compile" | $SED \
8952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954   -e 's:$: $lt_compiler_flag:'`
8955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956   (eval "$lt_compile" 2>conftest.err)
8957   ac_status=$?
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   if (exit $ac_status) && test -s "$ac_outfile"; then
8961     # The compiler can only warn and ignore the option if not recognized
8962     # So say no if there are warnings other than the usual output.
8963     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8964     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8966       lt_cv_prog_compiler_rtti_exceptions=yes
8967     fi
8968   fi
8969   $RM conftest*
8970
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8974
8975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8976    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8977else
8978    :
8979fi
8980
8981fi
8982
8983
8984
8985
8986
8987
8988  lt_prog_compiler_wl=
8989lt_prog_compiler_pic=
8990lt_prog_compiler_static=
8991
8992
8993  if test "$GCC" = yes; then
8994    lt_prog_compiler_wl='-Wl,'
8995    lt_prog_compiler_static='-static'
8996
8997    case $host_os in
8998      aix*)
8999      # All AIX code is PIC.
9000      if test "$host_cpu" = ia64; then
9001	# AIX 5 now supports IA64 processor
9002	lt_prog_compiler_static='-Bstatic'
9003      fi
9004      ;;
9005
9006    amigaos*)
9007      case $host_cpu in
9008      powerpc)
9009            # see comment about AmigaOS4 .so support
9010            lt_prog_compiler_pic='-fPIC'
9011        ;;
9012      m68k)
9013            # FIXME: we need at least 68020 code to build shared libraries, but
9014            # adding the `-m68020' flag to GCC prevents building anything better,
9015            # like `-m68040'.
9016            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9017        ;;
9018      esac
9019      ;;
9020
9021    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9022      # PIC is the default for these OSes.
9023      ;;
9024
9025    mingw* | cygwin* | pw32* | os2* | cegcc*)
9026      # This hack is so that the source file can tell whether it is being
9027      # built for inclusion in a dll (and should export symbols for example).
9028      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9029      # (--disable-auto-import) libraries
9030      lt_prog_compiler_pic='-DDLL_EXPORT'
9031      ;;
9032
9033    darwin* | rhapsody*)
9034      # PIC is the default on this platform
9035      # Common symbols not allowed in MH_DYLIB files
9036      lt_prog_compiler_pic='-fno-common'
9037      ;;
9038
9039    haiku*)
9040      # PIC is the default for Haiku.
9041      # The "-static" flag exists, but is broken.
9042      lt_prog_compiler_static=
9043      ;;
9044
9045    hpux*)
9046      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9047      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9048      # sets the default TLS model and affects inlining.
9049      case $host_cpu in
9050      hppa*64*)
9051	# +Z the default
9052	;;
9053      *)
9054	lt_prog_compiler_pic='-fPIC'
9055	;;
9056      esac
9057      ;;
9058
9059    interix[3-9]*)
9060      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9061      # Instead, we relocate shared libraries at runtime.
9062      ;;
9063
9064    msdosdjgpp*)
9065      # Just because we use GCC doesn't mean we suddenly get shared libraries
9066      # on systems that don't support them.
9067      lt_prog_compiler_can_build_shared=no
9068      enable_shared=no
9069      ;;
9070
9071    *nto* | *qnx*)
9072      # QNX uses GNU C++, but need to define -shared option too, otherwise
9073      # it will coredump.
9074      lt_prog_compiler_pic='-fPIC -shared'
9075      ;;
9076
9077    sysv4*MP*)
9078      if test -d /usr/nec; then
9079	lt_prog_compiler_pic=-Kconform_pic
9080      fi
9081      ;;
9082
9083    *)
9084      lt_prog_compiler_pic='-fPIC'
9085      ;;
9086    esac
9087
9088    case $cc_basename in
9089    nvcc*) # Cuda Compiler Driver 2.2
9090      lt_prog_compiler_wl='-Xlinker '
9091      if test -n "$lt_prog_compiler_pic"; then
9092        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9093      fi
9094      ;;
9095    esac
9096  else
9097    # PORTME Check for flag to pass linker flags through the system compiler.
9098    case $host_os in
9099    aix*)
9100      lt_prog_compiler_wl='-Wl,'
9101      if test "$host_cpu" = ia64; then
9102	# AIX 5 now supports IA64 processor
9103	lt_prog_compiler_static='-Bstatic'
9104      else
9105	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9106      fi
9107      ;;
9108
9109    mingw* | cygwin* | pw32* | os2* | cegcc*)
9110      # This hack is so that the source file can tell whether it is being
9111      # built for inclusion in a dll (and should export symbols for example).
9112      lt_prog_compiler_pic='-DDLL_EXPORT'
9113      ;;
9114
9115    hpux9* | hpux10* | hpux11*)
9116      lt_prog_compiler_wl='-Wl,'
9117      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9118      # not for PA HP-UX.
9119      case $host_cpu in
9120      hppa*64*|ia64*)
9121	# +Z the default
9122	;;
9123      *)
9124	lt_prog_compiler_pic='+Z'
9125	;;
9126      esac
9127      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9128      lt_prog_compiler_static='${wl}-a ${wl}archive'
9129      ;;
9130
9131    irix5* | irix6* | nonstopux*)
9132      lt_prog_compiler_wl='-Wl,'
9133      # PIC (with -KPIC) is the default.
9134      lt_prog_compiler_static='-non_shared'
9135      ;;
9136
9137    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9138      case $cc_basename in
9139      # old Intel for x86_64 which still supported -KPIC.
9140      ecc*)
9141	lt_prog_compiler_wl='-Wl,'
9142	lt_prog_compiler_pic='-KPIC'
9143	lt_prog_compiler_static='-static'
9144        ;;
9145      # icc used to be incompatible with GCC.
9146      # ICC 10 doesn't accept -KPIC any more.
9147      icc* | ifort*)
9148	lt_prog_compiler_wl='-Wl,'
9149	lt_prog_compiler_pic='-fPIC'
9150	lt_prog_compiler_static='-static'
9151        ;;
9152      # Lahey Fortran 8.1.
9153      lf95*)
9154	lt_prog_compiler_wl='-Wl,'
9155	lt_prog_compiler_pic='--shared'
9156	lt_prog_compiler_static='--static'
9157	;;
9158      nagfor*)
9159	# NAG Fortran compiler
9160	lt_prog_compiler_wl='-Wl,-Wl,,'
9161	lt_prog_compiler_pic='-PIC'
9162	lt_prog_compiler_static='-Bstatic'
9163	;;
9164      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9165        # Portland Group compilers (*not* the Pentium gcc compiler,
9166	# which looks to be a dead project)
9167	lt_prog_compiler_wl='-Wl,'
9168	lt_prog_compiler_pic='-fpic'
9169	lt_prog_compiler_static='-Bstatic'
9170        ;;
9171      ccc*)
9172        lt_prog_compiler_wl='-Wl,'
9173        # All Alpha code is PIC.
9174        lt_prog_compiler_static='-non_shared'
9175        ;;
9176      xl* | bgxl* | bgf* | mpixl*)
9177	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9178	lt_prog_compiler_wl='-Wl,'
9179	lt_prog_compiler_pic='-qpic'
9180	lt_prog_compiler_static='-qstaticlink'
9181	;;
9182      *)
9183	case `$CC -V 2>&1 | sed 5q` in
9184	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9185	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9186	  lt_prog_compiler_pic='-KPIC'
9187	  lt_prog_compiler_static='-Bstatic'
9188	  lt_prog_compiler_wl=''
9189	  ;;
9190	*Sun\ F* | *Sun*Fortran*)
9191	  lt_prog_compiler_pic='-KPIC'
9192	  lt_prog_compiler_static='-Bstatic'
9193	  lt_prog_compiler_wl='-Qoption ld '
9194	  ;;
9195	*Sun\ C*)
9196	  # Sun C 5.9
9197	  lt_prog_compiler_pic='-KPIC'
9198	  lt_prog_compiler_static='-Bstatic'
9199	  lt_prog_compiler_wl='-Wl,'
9200	  ;;
9201        *Intel*\ [CF]*Compiler*)
9202	  lt_prog_compiler_wl='-Wl,'
9203	  lt_prog_compiler_pic='-fPIC'
9204	  lt_prog_compiler_static='-static'
9205	  ;;
9206	*Portland\ Group*)
9207	  lt_prog_compiler_wl='-Wl,'
9208	  lt_prog_compiler_pic='-fpic'
9209	  lt_prog_compiler_static='-Bstatic'
9210	  ;;
9211	esac
9212	;;
9213      esac
9214      ;;
9215
9216    newsos6)
9217      lt_prog_compiler_pic='-KPIC'
9218      lt_prog_compiler_static='-Bstatic'
9219      ;;
9220
9221    *nto* | *qnx*)
9222      # QNX uses GNU C++, but need to define -shared option too, otherwise
9223      # it will coredump.
9224      lt_prog_compiler_pic='-fPIC -shared'
9225      ;;
9226
9227    osf3* | osf4* | osf5*)
9228      lt_prog_compiler_wl='-Wl,'
9229      # All OSF/1 code is PIC.
9230      lt_prog_compiler_static='-non_shared'
9231      ;;
9232
9233    rdos*)
9234      lt_prog_compiler_static='-non_shared'
9235      ;;
9236
9237    solaris*)
9238      lt_prog_compiler_pic='-KPIC'
9239      lt_prog_compiler_static='-Bstatic'
9240      case $cc_basename in
9241      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9242	lt_prog_compiler_wl='-Qoption ld ';;
9243      *)
9244	lt_prog_compiler_wl='-Wl,';;
9245      esac
9246      ;;
9247
9248    sunos4*)
9249      lt_prog_compiler_wl='-Qoption ld '
9250      lt_prog_compiler_pic='-PIC'
9251      lt_prog_compiler_static='-Bstatic'
9252      ;;
9253
9254    sysv4 | sysv4.2uw2* | sysv4.3*)
9255      lt_prog_compiler_wl='-Wl,'
9256      lt_prog_compiler_pic='-KPIC'
9257      lt_prog_compiler_static='-Bstatic'
9258      ;;
9259
9260    sysv4*MP*)
9261      if test -d /usr/nec ;then
9262	lt_prog_compiler_pic='-Kconform_pic'
9263	lt_prog_compiler_static='-Bstatic'
9264      fi
9265      ;;
9266
9267    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9268      lt_prog_compiler_wl='-Wl,'
9269      lt_prog_compiler_pic='-KPIC'
9270      lt_prog_compiler_static='-Bstatic'
9271      ;;
9272
9273    unicos*)
9274      lt_prog_compiler_wl='-Wl,'
9275      lt_prog_compiler_can_build_shared=no
9276      ;;
9277
9278    uts4*)
9279      lt_prog_compiler_pic='-pic'
9280      lt_prog_compiler_static='-Bstatic'
9281      ;;
9282
9283    *)
9284      lt_prog_compiler_can_build_shared=no
9285      ;;
9286    esac
9287  fi
9288
9289case $host_os in
9290  # For platforms which do not support PIC, -DPIC is meaningless:
9291  *djgpp*)
9292    lt_prog_compiler_pic=
9293    ;;
9294  *)
9295    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9296    ;;
9297esac
9298
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9300$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9301if ${lt_cv_prog_compiler_pic+:} false; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9307$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9308lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9309
9310#
9311# Check to make sure the PIC flag actually works.
9312#
9313if test -n "$lt_prog_compiler_pic"; then
9314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9315$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9316if ${lt_cv_prog_compiler_pic_works+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  lt_cv_prog_compiler_pic_works=no
9320   ac_outfile=conftest.$ac_objext
9321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9322   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9323   # Insert the option either (1) after the last *FLAGS variable, or
9324   # (2) before a word containing "conftest.", or (3) at the end.
9325   # Note that $ac_compile itself does not contain backslashes and begins
9326   # with a dollar sign (not a hyphen), so the echo should work correctly.
9327   # The option is referenced via a variable to avoid confusing sed.
9328   lt_compile=`echo "$ac_compile" | $SED \
9329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9331   -e 's:$: $lt_compiler_flag:'`
9332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9333   (eval "$lt_compile" 2>conftest.err)
9334   ac_status=$?
9335   cat conftest.err >&5
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   if (exit $ac_status) && test -s "$ac_outfile"; then
9338     # The compiler can only warn and ignore the option if not recognized
9339     # So say no if there are warnings other than the usual output.
9340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9343       lt_cv_prog_compiler_pic_works=yes
9344     fi
9345   fi
9346   $RM conftest*
9347
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9350$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9351
9352if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9353    case $lt_prog_compiler_pic in
9354     "" | " "*) ;;
9355     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9356     esac
9357else
9358    lt_prog_compiler_pic=
9359     lt_prog_compiler_can_build_shared=no
9360fi
9361
9362fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374#
9375# Check to make sure the static flag actually works.
9376#
9377wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9379$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9380if ${lt_cv_prog_compiler_static_works+:} false; then :
9381  $as_echo_n "(cached) " >&6
9382else
9383  lt_cv_prog_compiler_static_works=no
9384   save_LDFLAGS="$LDFLAGS"
9385   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9386   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9387   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9388     # The linker can only warn and ignore the option if not recognized
9389     # So say no if there are warnings
9390     if test -s conftest.err; then
9391       # Append any errors to the config.log.
9392       cat conftest.err 1>&5
9393       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9394       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9395       if diff conftest.exp conftest.er2 >/dev/null; then
9396         lt_cv_prog_compiler_static_works=yes
9397       fi
9398     else
9399       lt_cv_prog_compiler_static_works=yes
9400     fi
9401   fi
9402   $RM -r conftest*
9403   LDFLAGS="$save_LDFLAGS"
9404
9405fi
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9407$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9408
9409if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9410    :
9411else
9412    lt_prog_compiler_static=
9413fi
9414
9415
9416
9417
9418
9419
9420
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9423if ${lt_cv_prog_compiler_c_o+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  lt_cv_prog_compiler_c_o=no
9427   $RM -r conftest 2>/dev/null
9428   mkdir conftest
9429   cd conftest
9430   mkdir out
9431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433   lt_compiler_flag="-o out/conftest2.$ac_objext"
9434   # Insert the option either (1) after the last *FLAGS variable, or
9435   # (2) before a word containing "conftest.", or (3) at the end.
9436   # Note that $ac_compile itself does not contain backslashes and begins
9437   # with a dollar sign (not a hyphen), so the echo should work correctly.
9438   lt_compile=`echo "$ac_compile" | $SED \
9439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441   -e 's:$: $lt_compiler_flag:'`
9442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443   (eval "$lt_compile" 2>out/conftest.err)
9444   ac_status=$?
9445   cat out/conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448   then
9449     # The compiler can only warn and ignore the option if not recognized
9450     # So say no if there are warnings
9451     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454       lt_cv_prog_compiler_c_o=yes
9455     fi
9456   fi
9457   chmod u+w . 2>&5
9458   $RM conftest*
9459   # SGI C++ compiler will create directory out/ii_files/ for
9460   # template instantiation
9461   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462   $RM out/* && rmdir out
9463   cd ..
9464   $RM -r conftest
9465   $RM conftest*
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474
9475
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9478if ${lt_cv_prog_compiler_c_o+:} false; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  lt_cv_prog_compiler_c_o=no
9482   $RM -r conftest 2>/dev/null
9483   mkdir conftest
9484   cd conftest
9485   mkdir out
9486   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9487
9488   lt_compiler_flag="-o out/conftest2.$ac_objext"
9489   # Insert the option either (1) after the last *FLAGS variable, or
9490   # (2) before a word containing "conftest.", or (3) at the end.
9491   # Note that $ac_compile itself does not contain backslashes and begins
9492   # with a dollar sign (not a hyphen), so the echo should work correctly.
9493   lt_compile=`echo "$ac_compile" | $SED \
9494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496   -e 's:$: $lt_compiler_flag:'`
9497   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9498   (eval "$lt_compile" 2>out/conftest.err)
9499   ac_status=$?
9500   cat out/conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9503   then
9504     # The compiler can only warn and ignore the option if not recognized
9505     # So say no if there are warnings
9506     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9507     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9508     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9509       lt_cv_prog_compiler_c_o=yes
9510     fi
9511   fi
9512   chmod u+w . 2>&5
9513   $RM conftest*
9514   # SGI C++ compiler will create directory out/ii_files/ for
9515   # template instantiation
9516   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9517   $RM out/* && rmdir out
9518   cd ..
9519   $RM -r conftest
9520   $RM conftest*
9521
9522fi
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9524$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9525
9526
9527
9528
9529hard_links="nottested"
9530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9531  # do not overwrite the value of need_locks provided by the user
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9533$as_echo_n "checking if we can lock with hard links... " >&6; }
9534  hard_links=yes
9535  $RM conftest*
9536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9537  touch conftest.a
9538  ln conftest.a conftest.b 2>&5 || hard_links=no
9539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9541$as_echo "$hard_links" >&6; }
9542  if test "$hard_links" = no; then
9543    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9545    need_locks=warn
9546  fi
9547else
9548  need_locks=no
9549fi
9550
9551
9552
9553
9554
9555
9556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9557$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9558
9559  runpath_var=
9560  allow_undefined_flag=
9561  always_export_symbols=no
9562  archive_cmds=
9563  archive_expsym_cmds=
9564  compiler_needs_object=no
9565  enable_shared_with_static_runtimes=no
9566  export_dynamic_flag_spec=
9567  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9568  hardcode_automatic=no
9569  hardcode_direct=no
9570  hardcode_direct_absolute=no
9571  hardcode_libdir_flag_spec=
9572  hardcode_libdir_separator=
9573  hardcode_minus_L=no
9574  hardcode_shlibpath_var=unsupported
9575  inherit_rpath=no
9576  link_all_deplibs=unknown
9577  module_cmds=
9578  module_expsym_cmds=
9579  old_archive_from_new_cmds=
9580  old_archive_from_expsyms_cmds=
9581  thread_safe_flag_spec=
9582  whole_archive_flag_spec=
9583  # include_expsyms should be a list of space-separated symbols to be *always*
9584  # included in the symbol list
9585  include_expsyms=
9586  # exclude_expsyms can be an extended regexp of symbols to exclude
9587  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9588  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9589  # as well as any symbol that contains `d'.
9590  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9591  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9592  # platforms (ab)use it in PIC code, but their linkers get confused if
9593  # the symbol is explicitly referenced.  Since portable code cannot
9594  # rely on this symbol name, it's probably fine to never include it in
9595  # preloaded symbol tables.
9596  # Exclude shared library initialization/finalization symbols.
9597  extract_expsyms_cmds=
9598
9599  case $host_os in
9600  cygwin* | mingw* | pw32* | cegcc*)
9601    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9602    # When not using gcc, we currently assume that we are using
9603    # Microsoft Visual C++.
9604    if test "$GCC" != yes; then
9605      with_gnu_ld=no
9606    fi
9607    ;;
9608  interix*)
9609    # we just hope/assume this is gcc and not c89 (= MSVC++)
9610    with_gnu_ld=yes
9611    ;;
9612  openbsd*)
9613    with_gnu_ld=no
9614    ;;
9615  esac
9616
9617  ld_shlibs=yes
9618
9619  # On some targets, GNU ld is compatible enough with the native linker
9620  # that we're better off using the native interface for both.
9621  lt_use_gnu_ld_interface=no
9622  if test "$with_gnu_ld" = yes; then
9623    case $host_os in
9624      aix*)
9625	# The AIX port of GNU ld has always aspired to compatibility
9626	# with the native linker.  However, as the warning in the GNU ld
9627	# block says, versions before 2.19.5* couldn't really create working
9628	# shared libraries, regardless of the interface used.
9629	case `$LD -v 2>&1` in
9630	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9631	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9632	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9633	  *)
9634	    lt_use_gnu_ld_interface=yes
9635	    ;;
9636	esac
9637	;;
9638      *)
9639	lt_use_gnu_ld_interface=yes
9640	;;
9641    esac
9642  fi
9643
9644  if test "$lt_use_gnu_ld_interface" = yes; then
9645    # If archive_cmds runs LD, not CC, wlarc should be empty
9646    wlarc='${wl}'
9647
9648    # Set some defaults for GNU ld with shared library support. These
9649    # are reset later if shared libraries are not supported. Putting them
9650    # here allows them to be overridden if necessary.
9651    runpath_var=LD_RUN_PATH
9652    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653    export_dynamic_flag_spec='${wl}--export-dynamic'
9654    # ancient GNU ld didn't support --whole-archive et. al.
9655    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9656      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9657    else
9658      whole_archive_flag_spec=
9659    fi
9660    supports_anon_versioning=no
9661    case `$LD -v 2>&1` in
9662      *GNU\ gold*) supports_anon_versioning=yes ;;
9663      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9664      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9665      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9666      *\ 2.11.*) ;; # other 2.11 versions
9667      *) supports_anon_versioning=yes ;;
9668    esac
9669
9670    # See if GNU ld supports shared libraries.
9671    case $host_os in
9672    aix[3-9]*)
9673      # On AIX/PPC, the GNU linker is very broken
9674      if test "$host_cpu" != ia64; then
9675	ld_shlibs=no
9676	cat <<_LT_EOF 1>&2
9677
9678*** Warning: the GNU linker, at least up to release 2.19, is reported
9679*** to be unable to reliably create shared libraries on AIX.
9680*** Therefore, libtool is disabling shared libraries support.  If you
9681*** really care for shared libraries, you may want to install binutils
9682*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9683*** You will then need to restart the configuration process.
9684
9685_LT_EOF
9686      fi
9687      ;;
9688
9689    amigaos*)
9690      case $host_cpu in
9691      powerpc)
9692            # see comment about AmigaOS4 .so support
9693            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694            archive_expsym_cmds=''
9695        ;;
9696      m68k)
9697            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)'
9698            hardcode_libdir_flag_spec='-L$libdir'
9699            hardcode_minus_L=yes
9700        ;;
9701      esac
9702      ;;
9703
9704    beos*)
9705      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706	allow_undefined_flag=unsupported
9707	# Joseph Beckenbach <[email protected]> says some releases of gcc
9708	# support --undefined.  This deserves some investigation.  FIXME
9709	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710      else
9711	ld_shlibs=no
9712      fi
9713      ;;
9714
9715    cygwin* | mingw* | pw32* | cegcc*)
9716      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9717      # as there is no search path for DLLs.
9718      hardcode_libdir_flag_spec='-L$libdir'
9719      export_dynamic_flag_spec='${wl}--export-all-symbols'
9720      allow_undefined_flag=unsupported
9721      always_export_symbols=no
9722      enable_shared_with_static_runtimes=yes
9723      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'
9724      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9725
9726      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9727        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9728	# If the export-symbols file already is a .def file (1st line
9729	# is EXPORTS), use it as is; otherwise, prepend...
9730	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9731	  cp $export_symbols $output_objdir/$soname.def;
9732	else
9733	  echo EXPORTS > $output_objdir/$soname.def;
9734	  cat $export_symbols >> $output_objdir/$soname.def;
9735	fi~
9736	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9737      else
9738	ld_shlibs=no
9739      fi
9740      ;;
9741
9742    haiku*)
9743      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744      link_all_deplibs=yes
9745      ;;
9746
9747    interix[3-9]*)
9748      hardcode_direct=no
9749      hardcode_shlibpath_var=no
9750      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9751      export_dynamic_flag_spec='${wl}-E'
9752      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9753      # Instead, shared libraries are loaded at an image base (0x10000000 by
9754      # default) and relocated if they conflict, which is a slow very memory
9755      # consuming and fragmenting process.  To avoid this, we pick a random,
9756      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9757      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9758      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9759      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'
9760      ;;
9761
9762    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9763      tmp_diet=no
9764      if test "$host_os" = linux-dietlibc; then
9765	case $cc_basename in
9766	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9767	esac
9768      fi
9769      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9770	 && test "$tmp_diet" = no
9771      then
9772	tmp_addflag=' $pic_flag'
9773	tmp_sharedflag='-shared'
9774	case $cc_basename,$host_cpu in
9775        pgcc*)				# Portland Group C compiler
9776	  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'
9777	  tmp_addflag=' $pic_flag'
9778	  ;;
9779	pgf77* | pgf90* | pgf95* | pgfortran*)
9780					# Portland Group f77 and f90 compilers
9781	  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'
9782	  tmp_addflag=' $pic_flag -Mnomain' ;;
9783	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9784	  tmp_addflag=' -i_dynamic' ;;
9785	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9786	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9787	ifc* | ifort*)			# Intel Fortran compiler
9788	  tmp_addflag=' -nofor_main' ;;
9789	lf95*)				# Lahey Fortran 8.1
9790	  whole_archive_flag_spec=
9791	  tmp_sharedflag='--shared' ;;
9792	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9793	  tmp_sharedflag='-qmkshrobj'
9794	  tmp_addflag= ;;
9795	nvcc*)	# Cuda Compiler Driver 2.2
9796	  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'
9797	  compiler_needs_object=yes
9798	  ;;
9799	esac
9800	case `$CC -V 2>&1 | sed 5q` in
9801	*Sun\ C*)			# Sun C 5.9
9802	  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'
9803	  compiler_needs_object=yes
9804	  tmp_sharedflag='-G' ;;
9805	*Sun\ F*)			# Sun Fortran 8.3
9806	  tmp_sharedflag='-G' ;;
9807	esac
9808	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809
9810        if test "x$supports_anon_versioning" = xyes; then
9811          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9812	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9813	    echo "local: *; };" >> $output_objdir/$libname.ver~
9814	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9815        fi
9816
9817	case $cc_basename in
9818	xlf* | bgf* | bgxlf* | mpixlf*)
9819	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9820	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9821	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9823	  if test "x$supports_anon_versioning" = xyes; then
9824	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9825	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9826	      echo "local: *; };" >> $output_objdir/$libname.ver~
9827	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9828	  fi
9829	  ;;
9830	esac
9831      else
9832        ld_shlibs=no
9833      fi
9834      ;;
9835
9836    netbsd*)
9837      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9838	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9839	wlarc=
9840      else
9841	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9842	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843      fi
9844      ;;
9845
9846    solaris*)
9847      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9848	ld_shlibs=no
9849	cat <<_LT_EOF 1>&2
9850
9851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9852*** create shared libraries on Solaris systems.  Therefore, libtool
9853*** is disabling shared libraries support.  We urge you to upgrade GNU
9854*** binutils to release 2.9.1 or newer.  Another option is to modify
9855*** your PATH or compiler configuration so that the native linker is
9856*** used, and then restart.
9857
9858_LT_EOF
9859      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9862      else
9863	ld_shlibs=no
9864      fi
9865      ;;
9866
9867    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9868      case `$LD -v 2>&1` in
9869        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9870	ld_shlibs=no
9871	cat <<_LT_EOF 1>&2
9872
9873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9874*** reliably create shared libraries on SCO systems.  Therefore, libtool
9875*** is disabling shared libraries support.  We urge you to upgrade GNU
9876*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9877*** your PATH or compiler configuration so that the native linker is
9878*** used, and then restart.
9879
9880_LT_EOF
9881	;;
9882	*)
9883	  # For security reasons, it is highly recommended that you always
9884	  # use absolute paths for naming shared libraries, and exclude the
9885	  # DT_RUNPATH tag from executables and libraries.  But doing so
9886	  # requires that you compile everything twice, which is a pain.
9887	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9888	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891	  else
9892	    ld_shlibs=no
9893	  fi
9894	;;
9895      esac
9896      ;;
9897
9898    sunos4*)
9899      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900      wlarc=
9901      hardcode_direct=yes
9902      hardcode_shlibpath_var=no
9903      ;;
9904
9905    *)
9906      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9907	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9909      else
9910	ld_shlibs=no
9911      fi
9912      ;;
9913    esac
9914
9915    if test "$ld_shlibs" = no; then
9916      runpath_var=
9917      hardcode_libdir_flag_spec=
9918      export_dynamic_flag_spec=
9919      whole_archive_flag_spec=
9920    fi
9921  else
9922    # PORTME fill in a description of your system's linker (not GNU ld)
9923    case $host_os in
9924    aix3*)
9925      allow_undefined_flag=unsupported
9926      always_export_symbols=yes
9927      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'
9928      # Note: this linker hardcodes the directories in LIBPATH if there
9929      # are no directories specified by -L.
9930      hardcode_minus_L=yes
9931      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9932	# Neither direct hardcoding nor static linking is supported with a
9933	# broken collect2.
9934	hardcode_direct=unsupported
9935      fi
9936      ;;
9937
9938    aix[4-9]*)
9939      if test "$host_cpu" = ia64; then
9940	# On IA64, the linker does run time linking by default, so we don't
9941	# have to do anything special.
9942	aix_use_runtimelinking=no
9943	exp_sym_flag='-Bexport'
9944	no_entry_flag=""
9945      else
9946	# If we're using GNU nm, then we don't want the "-C" option.
9947	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9948	# Also, AIX nm treats weak defined symbols like other global
9949	# defined symbols, whereas GNU nm marks them as "W".
9950	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9951	  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'
9952	else
9953	  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'
9954	fi
9955	aix_use_runtimelinking=no
9956
9957	# Test if we are trying to use run time linking or normal
9958	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9959	# need to do runtime linking.
9960	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9961	  for ld_flag in $LDFLAGS; do
9962	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9963	    aix_use_runtimelinking=yes
9964	    break
9965	  fi
9966	  done
9967	  ;;
9968	esac
9969
9970	exp_sym_flag='-bexport'
9971	no_entry_flag='-bnoentry'
9972      fi
9973
9974      # When large executables or shared objects are built, AIX ld can
9975      # have problems creating the table of contents.  If linking a library
9976      # or program results in "error TOC overflow" add -mminimal-toc to
9977      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9978      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9979
9980      archive_cmds=''
9981      hardcode_direct=yes
9982      hardcode_direct_absolute=yes
9983      hardcode_libdir_separator=':'
9984      link_all_deplibs=yes
9985      file_list_spec='${wl}-f,'
9986
9987      if test "$GCC" = yes; then
9988	case $host_os in aix4.[012]|aix4.[012].*)
9989	# We only want to do this on AIX 4.2 and lower, the check
9990	# below for broken collect2 doesn't work under 4.3+
9991	  collect2name=`${CC} -print-prog-name=collect2`
9992	  if test -f "$collect2name" &&
9993	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9994	  then
9995	  # We have reworked collect2
9996	  :
9997	  else
9998	  # We have old collect2
9999	  hardcode_direct=unsupported
10000	  # It fails to find uninstalled libraries when the uninstalled
10001	  # path is not listed in the libpath.  Setting hardcode_minus_L
10002	  # to unsupported forces relinking
10003	  hardcode_minus_L=yes
10004	  hardcode_libdir_flag_spec='-L$libdir'
10005	  hardcode_libdir_separator=
10006	  fi
10007	  ;;
10008	esac
10009	shared_flag='-shared'
10010	if test "$aix_use_runtimelinking" = yes; then
10011	  shared_flag="$shared_flag "'${wl}-G'
10012	fi
10013      else
10014	# not using gcc
10015	if test "$host_cpu" = ia64; then
10016	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10017	# chokes on -Wl,-G. The following line is correct:
10018	  shared_flag='-G'
10019	else
10020	  if test "$aix_use_runtimelinking" = yes; then
10021	    shared_flag='${wl}-G'
10022	  else
10023	    shared_flag='${wl}-bM:SRE'
10024	  fi
10025	fi
10026      fi
10027
10028      export_dynamic_flag_spec='${wl}-bexpall'
10029      # It seems that -bexpall does not export symbols beginning with
10030      # underscore (_), so it is better to generate a list of symbols to export.
10031      always_export_symbols=yes
10032      if test "$aix_use_runtimelinking" = yes; then
10033	# Warning - without using the other runtime loading flags (-brtl),
10034	# -berok will link without error, but may produce a broken library.
10035	allow_undefined_flag='-berok'
10036        # Determine the default libpath from the value encoded in an
10037        # empty executable.
10038        if test "${lt_cv_aix_libpath+set}" = set; then
10039  aix_libpath=$lt_cv_aix_libpath
10040else
10041  if ${lt_cv_aix_libpath_+:} false; then :
10042  $as_echo_n "(cached) " >&6
10043else
10044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046
10047int
10048main ()
10049{
10050
10051  ;
10052  return 0;
10053}
10054_ACEOF
10055if ac_fn_c_try_link "$LINENO"; then :
10056
10057  lt_aix_libpath_sed='
10058      /Import File Strings/,/^$/ {
10059	  /^0/ {
10060	      s/^0  *\([^ ]*\) *$/\1/
10061	      p
10062	  }
10063      }'
10064  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10065  # Check for a 64-bit object if we didn't find anything.
10066  if test -z "$lt_cv_aix_libpath_"; then
10067    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10068  fi
10069fi
10070rm -f core conftest.err conftest.$ac_objext \
10071    conftest$ac_exeext conftest.$ac_ext
10072  if test -z "$lt_cv_aix_libpath_"; then
10073    lt_cv_aix_libpath_="/usr/lib:/lib"
10074  fi
10075
10076fi
10077
10078  aix_libpath=$lt_cv_aix_libpath_
10079fi
10080
10081        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10082        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"
10083      else
10084	if test "$host_cpu" = ia64; then
10085	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10086	  allow_undefined_flag="-z nodefs"
10087	  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"
10088	else
10089	 # Determine the default libpath from the value encoded in an
10090	 # empty executable.
10091	 if test "${lt_cv_aix_libpath+set}" = set; then
10092  aix_libpath=$lt_cv_aix_libpath
10093else
10094  if ${lt_cv_aix_libpath_+:} false; then :
10095  $as_echo_n "(cached) " >&6
10096else
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099
10100int
10101main ()
10102{
10103
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
10109
10110  lt_aix_libpath_sed='
10111      /Import File Strings/,/^$/ {
10112	  /^0/ {
10113	      s/^0  *\([^ ]*\) *$/\1/
10114	      p
10115	  }
10116      }'
10117  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118  # Check for a 64-bit object if we didn't find anything.
10119  if test -z "$lt_cv_aix_libpath_"; then
10120    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10121  fi
10122fi
10123rm -f core conftest.err conftest.$ac_objext \
10124    conftest$ac_exeext conftest.$ac_ext
10125  if test -z "$lt_cv_aix_libpath_"; then
10126    lt_cv_aix_libpath_="/usr/lib:/lib"
10127  fi
10128
10129fi
10130
10131  aix_libpath=$lt_cv_aix_libpath_
10132fi
10133
10134	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10135	  # Warning - without using the other run time loading flags,
10136	  # -berok will link without error, but may produce a broken library.
10137	  no_undefined_flag=' ${wl}-bernotok'
10138	  allow_undefined_flag=' ${wl}-berok'
10139	  if test "$with_gnu_ld" = yes; then
10140	    # We only use this code for GNU lds that support --whole-archive.
10141	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10142	  else
10143	    # Exported symbols can be pulled into shared objects from archives
10144	    whole_archive_flag_spec='$convenience'
10145	  fi
10146	  archive_cmds_need_lc=yes
10147	  # This is similar to how AIX traditionally builds its shared libraries.
10148	  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'
10149	fi
10150      fi
10151      ;;
10152
10153    amigaos*)
10154      case $host_cpu in
10155      powerpc)
10156            # see comment about AmigaOS4 .so support
10157            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158            archive_expsym_cmds=''
10159        ;;
10160      m68k)
10161            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)'
10162            hardcode_libdir_flag_spec='-L$libdir'
10163            hardcode_minus_L=yes
10164        ;;
10165      esac
10166      ;;
10167
10168    bsdi[45]*)
10169      export_dynamic_flag_spec=-rdynamic
10170      ;;
10171
10172    cygwin* | mingw* | pw32* | cegcc*)
10173      # When not using gcc, we currently assume that we are using
10174      # Microsoft Visual C++.
10175      # hardcode_libdir_flag_spec is actually meaningless, as there is
10176      # no search path for DLLs.
10177      case $cc_basename in
10178      cl*)
10179	# Native MSVC
10180	hardcode_libdir_flag_spec=' '
10181	allow_undefined_flag=unsupported
10182	always_export_symbols=yes
10183	file_list_spec='@'
10184	# Tell ltmain to make .lib files, not .a files.
10185	libext=lib
10186	# Tell ltmain to make .dll files, not .so files.
10187	shrext_cmds=".dll"
10188	# FIXME: Setting linknames here is a bad hack.
10189	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10190	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10191	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10192	  else
10193	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10194	  fi~
10195	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10196	  linknames='
10197	# The linker will not automatically build a static lib if we build a DLL.
10198	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10199	enable_shared_with_static_runtimes=yes
10200	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10201	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10202	# Don't use ranlib
10203	old_postinstall_cmds='chmod 644 $oldlib'
10204	postlink_cmds='lt_outputfile="@OUTPUT@"~
10205	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10206	  case $lt_outputfile in
10207	    *.exe|*.EXE) ;;
10208	    *)
10209	      lt_outputfile="$lt_outputfile.exe"
10210	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10211	      ;;
10212	  esac~
10213	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10214	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10215	    $RM "$lt_outputfile.manifest";
10216	  fi'
10217	;;
10218      *)
10219	# Assume MSVC wrapper
10220	hardcode_libdir_flag_spec=' '
10221	allow_undefined_flag=unsupported
10222	# Tell ltmain to make .lib files, not .a files.
10223	libext=lib
10224	# Tell ltmain to make .dll files, not .so files.
10225	shrext_cmds=".dll"
10226	# FIXME: Setting linknames here is a bad hack.
10227	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10228	# The linker will automatically build a .lib file if we build a DLL.
10229	old_archive_from_new_cmds='true'
10230	# FIXME: Should let the user specify the lib program.
10231	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10232	enable_shared_with_static_runtimes=yes
10233	;;
10234      esac
10235      ;;
10236
10237    darwin* | rhapsody*)
10238
10239
10240  archive_cmds_need_lc=no
10241  hardcode_direct=no
10242  hardcode_automatic=yes
10243  hardcode_shlibpath_var=unsupported
10244  if test "$lt_cv_ld_force_load" = "yes"; then
10245    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\"`'
10246
10247  else
10248    whole_archive_flag_spec=''
10249  fi
10250  link_all_deplibs=yes
10251  allow_undefined_flag="$_lt_dar_allow_undefined"
10252  case $cc_basename in
10253     ifort*) _lt_dar_can_shared=yes ;;
10254     *) _lt_dar_can_shared=$GCC ;;
10255  esac
10256  if test "$_lt_dar_can_shared" = "yes"; then
10257    output_verbose_link_cmd=func_echo_all
10258    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10259    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10260    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}"
10261    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}"
10262
10263  else
10264  ld_shlibs=no
10265  fi
10266
10267      ;;
10268
10269    dgux*)
10270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271      hardcode_libdir_flag_spec='-L$libdir'
10272      hardcode_shlibpath_var=no
10273      ;;
10274
10275    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10276    # support.  Future versions do this automatically, but an explicit c++rt0.o
10277    # does not break anything, and helps significantly (at the cost of a little
10278    # extra space).
10279    freebsd2.2*)
10280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10281      hardcode_libdir_flag_spec='-R$libdir'
10282      hardcode_direct=yes
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10287    freebsd2.*)
10288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289      hardcode_direct=yes
10290      hardcode_minus_L=yes
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10295    freebsd* | dragonfly*)
10296      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10297      hardcode_libdir_flag_spec='-R$libdir'
10298      hardcode_direct=yes
10299      hardcode_shlibpath_var=no
10300      ;;
10301
10302    hpux9*)
10303      if test "$GCC" = yes; then
10304	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'
10305      else
10306	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'
10307      fi
10308      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309      hardcode_libdir_separator=:
10310      hardcode_direct=yes
10311
10312      # hardcode_minus_L: Not really in the search PATH,
10313      # but as the default location of the library.
10314      hardcode_minus_L=yes
10315      export_dynamic_flag_spec='${wl}-E'
10316      ;;
10317
10318    hpux10*)
10319      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10320	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321      else
10322	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10323      fi
10324      if test "$with_gnu_ld" = no; then
10325	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326	hardcode_libdir_separator=:
10327	hardcode_direct=yes
10328	hardcode_direct_absolute=yes
10329	export_dynamic_flag_spec='${wl}-E'
10330	# hardcode_minus_L: Not really in the search PATH,
10331	# but as the default location of the library.
10332	hardcode_minus_L=yes
10333      fi
10334      ;;
10335
10336    hpux11*)
10337      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10338	case $host_cpu in
10339	hppa*64*)
10340	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10341	  ;;
10342	ia64*)
10343	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10344	  ;;
10345	*)
10346	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347	  ;;
10348	esac
10349      else
10350	case $host_cpu in
10351	hppa*64*)
10352	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353	  ;;
10354	ia64*)
10355	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356	  ;;
10357	*)
10358
10359	  # Older versions of the 11.00 compiler do not understand -b yet
10360	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10361	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10362$as_echo_n "checking if $CC understands -b... " >&6; }
10363if ${lt_cv_prog_compiler__b+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  lt_cv_prog_compiler__b=no
10367   save_LDFLAGS="$LDFLAGS"
10368   LDFLAGS="$LDFLAGS -b"
10369   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371     # The linker can only warn and ignore the option if not recognized
10372     # So say no if there are warnings
10373     if test -s conftest.err; then
10374       # Append any errors to the config.log.
10375       cat conftest.err 1>&5
10376       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378       if diff conftest.exp conftest.er2 >/dev/null; then
10379         lt_cv_prog_compiler__b=yes
10380       fi
10381     else
10382       lt_cv_prog_compiler__b=yes
10383     fi
10384   fi
10385   $RM -r conftest*
10386   LDFLAGS="$save_LDFLAGS"
10387
10388fi
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10390$as_echo "$lt_cv_prog_compiler__b" >&6; }
10391
10392if test x"$lt_cv_prog_compiler__b" = xyes; then
10393    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394else
10395    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396fi
10397
10398	  ;;
10399	esac
10400      fi
10401      if test "$with_gnu_ld" = no; then
10402	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403	hardcode_libdir_separator=:
10404
10405	case $host_cpu in
10406	hppa*64*|ia64*)
10407	  hardcode_direct=no
10408	  hardcode_shlibpath_var=no
10409	  ;;
10410	*)
10411	  hardcode_direct=yes
10412	  hardcode_direct_absolute=yes
10413	  export_dynamic_flag_spec='${wl}-E'
10414
10415	  # hardcode_minus_L: Not really in the search PATH,
10416	  # but as the default location of the library.
10417	  hardcode_minus_L=yes
10418	  ;;
10419	esac
10420      fi
10421      ;;
10422
10423    irix5* | irix6* | nonstopux*)
10424      if test "$GCC" = yes; then
10425	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'
10426	# Try to use the -exported_symbol ld option, if it does not
10427	# work, assume that -exports_file does not work either and
10428	# implicitly export all symbols.
10429	# This should be the same for all languages, so no per-tag cache variable.
10430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10431$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10432if ${lt_cv_irix_exported_symbol+:} false; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  save_LDFLAGS="$LDFLAGS"
10436	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10437	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439int foo (void) { return 0; }
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442  lt_cv_irix_exported_symbol=yes
10443else
10444  lt_cv_irix_exported_symbol=no
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447    conftest$ac_exeext conftest.$ac_ext
10448           LDFLAGS="$save_LDFLAGS"
10449fi
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10451$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10452	if test "$lt_cv_irix_exported_symbol" = yes; then
10453          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'
10454	fi
10455      else
10456	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'
10457	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'
10458      fi
10459      archive_cmds_need_lc='no'
10460      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461      hardcode_libdir_separator=:
10462      inherit_rpath=yes
10463      link_all_deplibs=yes
10464      ;;
10465
10466    netbsd*)
10467      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10468	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10469      else
10470	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10471      fi
10472      hardcode_libdir_flag_spec='-R$libdir'
10473      hardcode_direct=yes
10474      hardcode_shlibpath_var=no
10475      ;;
10476
10477    newsos6)
10478      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479      hardcode_direct=yes
10480      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481      hardcode_libdir_separator=:
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    *nto* | *qnx*)
10486      ;;
10487
10488    openbsd*)
10489      if test -f /usr/libexec/ld.so; then
10490	hardcode_direct=yes
10491	hardcode_shlibpath_var=no
10492	hardcode_direct_absolute=yes
10493	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10494	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10496	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497	  export_dynamic_flag_spec='${wl}-E'
10498	else
10499	  case $host_os in
10500	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10501	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502	     hardcode_libdir_flag_spec='-R$libdir'
10503	     ;;
10504	   *)
10505	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10506	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507	     ;;
10508	  esac
10509	fi
10510      else
10511	ld_shlibs=no
10512      fi
10513      ;;
10514
10515    os2*)
10516      hardcode_libdir_flag_spec='-L$libdir'
10517      hardcode_minus_L=yes
10518      allow_undefined_flag=unsupported
10519      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'
10520      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521      ;;
10522
10523    osf3*)
10524      if test "$GCC" = yes; then
10525	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526	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'
10527      else
10528	allow_undefined_flag=' -expect_unresolved \*'
10529	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'
10530      fi
10531      archive_cmds_need_lc='no'
10532      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10533      hardcode_libdir_separator=:
10534      ;;
10535
10536    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10537      if test "$GCC" = yes; then
10538	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10539	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'
10540	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541      else
10542	allow_undefined_flag=' -expect_unresolved \*'
10543	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'
10544	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~
10545	$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'
10546
10547	# Both c and cxx compiler support -rpath directly
10548	hardcode_libdir_flag_spec='-rpath $libdir'
10549      fi
10550      archive_cmds_need_lc='no'
10551      hardcode_libdir_separator=:
10552      ;;
10553
10554    solaris*)
10555      no_undefined_flag=' -z defs'
10556      if test "$GCC" = yes; then
10557	wlarc='${wl}'
10558	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10559	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10560	  $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'
10561      else
10562	case `$CC -V 2>&1` in
10563	*"Compilers 5.0"*)
10564	  wlarc=''
10565	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10567	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10568	  ;;
10569	*)
10570	  wlarc='${wl}'
10571	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10572	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10573	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10574	  ;;
10575	esac
10576      fi
10577      hardcode_libdir_flag_spec='-R$libdir'
10578      hardcode_shlibpath_var=no
10579      case $host_os in
10580      solaris2.[0-5] | solaris2.[0-5].*) ;;
10581      *)
10582	# The compiler driver will combine and reorder linker options,
10583	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10584	# but is careful enough not to reorder.
10585	# Supported since Solaris 2.6 (maybe 2.5.1?)
10586	if test "$GCC" = yes; then
10587	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588	else
10589	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10590	fi
10591	;;
10592      esac
10593      link_all_deplibs=yes
10594      ;;
10595
10596    sunos4*)
10597      if test "x$host_vendor" = xsequent; then
10598	# Use $CC to link under sequent, because it throws in some extra .o
10599	# files that make .init and .fini sections work.
10600	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10601      else
10602	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10603      fi
10604      hardcode_libdir_flag_spec='-L$libdir'
10605      hardcode_direct=yes
10606      hardcode_minus_L=yes
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    sysv4)
10611      case $host_vendor in
10612	sni)
10613	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614	  hardcode_direct=yes # is this really true???
10615	;;
10616	siemens)
10617	  ## LD is ld it makes a PLAMLIB
10618	  ## CC just makes a GrossModule.
10619	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10620	  reload_cmds='$CC -r -o $output$reload_objs'
10621	  hardcode_direct=no
10622        ;;
10623	motorola)
10624	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10626	;;
10627      esac
10628      runpath_var='LD_RUN_PATH'
10629      hardcode_shlibpath_var=no
10630      ;;
10631
10632    sysv4.3*)
10633      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634      hardcode_shlibpath_var=no
10635      export_dynamic_flag_spec='-Bexport'
10636      ;;
10637
10638    sysv4*MP*)
10639      if test -d /usr/nec; then
10640	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641	hardcode_shlibpath_var=no
10642	runpath_var=LD_RUN_PATH
10643	hardcode_runpath_var=yes
10644	ld_shlibs=yes
10645      fi
10646      ;;
10647
10648    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10649      no_undefined_flag='${wl}-z,text'
10650      archive_cmds_need_lc=no
10651      hardcode_shlibpath_var=no
10652      runpath_var='LD_RUN_PATH'
10653
10654      if test "$GCC" = yes; then
10655	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657      else
10658	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660      fi
10661      ;;
10662
10663    sysv5* | sco3.2v5* | sco5v6*)
10664      # Note: We can NOT use -z defs as we might desire, because we do not
10665      # link with -lc, and that would cause any symbols used from libc to
10666      # always be unresolved, which means just about no library would
10667      # ever link correctly.  If we're not using GNU ld we use -z text
10668      # though, which does catch some bad symbols but isn't as heavy-handed
10669      # as -z defs.
10670      no_undefined_flag='${wl}-z,text'
10671      allow_undefined_flag='${wl}-z,nodefs'
10672      archive_cmds_need_lc=no
10673      hardcode_shlibpath_var=no
10674      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10675      hardcode_libdir_separator=':'
10676      link_all_deplibs=yes
10677      export_dynamic_flag_spec='${wl}-Bexport'
10678      runpath_var='LD_RUN_PATH'
10679
10680      if test "$GCC" = yes; then
10681	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683      else
10684	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686      fi
10687      ;;
10688
10689    uts4*)
10690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691      hardcode_libdir_flag_spec='-L$libdir'
10692      hardcode_shlibpath_var=no
10693      ;;
10694
10695    *)
10696      ld_shlibs=no
10697      ;;
10698    esac
10699
10700    if test x$host_vendor = xsni; then
10701      case $host in
10702      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10703	export_dynamic_flag_spec='${wl}-Blargedynsym'
10704	;;
10705      esac
10706    fi
10707  fi
10708
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10710$as_echo "$ld_shlibs" >&6; }
10711test "$ld_shlibs" = no && can_build_shared=no
10712
10713with_gnu_ld=$with_gnu_ld
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729#
10730# Do we need to explicitly link libc?
10731#
10732case "x$archive_cmds_need_lc" in
10733x|xyes)
10734  # Assume -lc should be added
10735  archive_cmds_need_lc=yes
10736
10737  if test "$enable_shared" = yes && test "$GCC" = yes; then
10738    case $archive_cmds in
10739    *'~'*)
10740      # FIXME: we may have to deal with multi-command sequences.
10741      ;;
10742    '$CC '*)
10743      # Test whether the compiler implicitly links with -lc since on some
10744      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10745      # to ld, don't add -lc before -lgcc.
10746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10747$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10748if ${lt_cv_archive_cmds_need_lc+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751  $RM conftest*
10752	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753
10754	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10755  (eval $ac_compile) 2>&5
10756  ac_status=$?
10757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758  test $ac_status = 0; } 2>conftest.err; then
10759	  soname=conftest
10760	  lib=conftest
10761	  libobjs=conftest.$ac_objext
10762	  deplibs=
10763	  wl=$lt_prog_compiler_wl
10764	  pic_flag=$lt_prog_compiler_pic
10765	  compiler_flags=-v
10766	  linker_flags=-v
10767	  verstring=
10768	  output_objdir=.
10769	  libname=conftest
10770	  lt_save_allow_undefined_flag=$allow_undefined_flag
10771	  allow_undefined_flag=
10772	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10773  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10774  ac_status=$?
10775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10776  test $ac_status = 0; }
10777	  then
10778	    lt_cv_archive_cmds_need_lc=no
10779	  else
10780	    lt_cv_archive_cmds_need_lc=yes
10781	  fi
10782	  allow_undefined_flag=$lt_save_allow_undefined_flag
10783	else
10784	  cat conftest.err 1>&5
10785	fi
10786	$RM conftest*
10787
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10790$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10791      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10792      ;;
10793    esac
10794  fi
10795  ;;
10796esac
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10950$as_echo_n "checking dynamic linker characteristics... " >&6; }
10951
10952if test "$GCC" = yes; then
10953  case $host_os in
10954    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10955    *) lt_awk_arg="/^libraries:/" ;;
10956  esac
10957  case $host_os in
10958    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10959    *) lt_sed_strip_eq="s,=/,/,g" ;;
10960  esac
10961  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10962  case $lt_search_path_spec in
10963  *\;*)
10964    # if the path contains ";" then we assume it to be the separator
10965    # otherwise default to the standard path separator (i.e. ":") - it is
10966    # assumed that no part of a normal pathname contains ";" but that should
10967    # okay in the real world where ";" in dirpaths is itself problematic.
10968    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10969    ;;
10970  *)
10971    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10972    ;;
10973  esac
10974  # Ok, now we have the path, separated by spaces, we can step through it
10975  # and add multilib dir if necessary.
10976  lt_tmp_lt_search_path_spec=
10977  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10978  for lt_sys_path in $lt_search_path_spec; do
10979    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10980      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10981    else
10982      test -d "$lt_sys_path" && \
10983	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10984    fi
10985  done
10986  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10987BEGIN {RS=" "; FS="/|\n";} {
10988  lt_foo="";
10989  lt_count=0;
10990  for (lt_i = NF; lt_i > 0; lt_i--) {
10991    if ($lt_i != "" && $lt_i != ".") {
10992      if ($lt_i == "..") {
10993        lt_count++;
10994      } else {
10995        if (lt_count == 0) {
10996          lt_foo="/" $lt_i lt_foo;
10997        } else {
10998          lt_count--;
10999        }
11000      }
11001    }
11002  }
11003  if (lt_foo != "") { lt_freq[lt_foo]++; }
11004  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11005}'`
11006  # AWK program above erroneously prepends '/' to C:/dos/paths
11007  # for these hosts.
11008  case $host_os in
11009    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11010      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11011  esac
11012  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11013else
11014  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11015fi
11016library_names_spec=
11017libname_spec='lib$name'
11018soname_spec=
11019shrext_cmds=".so"
11020postinstall_cmds=
11021postuninstall_cmds=
11022finish_cmds=
11023finish_eval=
11024shlibpath_var=
11025shlibpath_overrides_runpath=unknown
11026version_type=none
11027dynamic_linker="$host_os ld.so"
11028sys_lib_dlsearch_path_spec="/lib /usr/lib"
11029need_lib_prefix=unknown
11030hardcode_into_libs=no
11031
11032# when you set need_version to no, make sure it does not cause -set_version
11033# flags to be left without arguments
11034need_version=unknown
11035
11036case $host_os in
11037aix3*)
11038  version_type=linux # correct to gnu/linux during the next big refactor
11039  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11040  shlibpath_var=LIBPATH
11041
11042  # AIX 3 has no versioning support, so we append a major version to the name.
11043  soname_spec='${libname}${release}${shared_ext}$major'
11044  ;;
11045
11046aix[4-9]*)
11047  version_type=linux # correct to gnu/linux during the next big refactor
11048  need_lib_prefix=no
11049  need_version=no
11050  hardcode_into_libs=yes
11051  if test "$host_cpu" = ia64; then
11052    # AIX 5 supports IA64
11053    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11054    shlibpath_var=LD_LIBRARY_PATH
11055  else
11056    # With GCC up to 2.95.x, collect2 would create an import file
11057    # for dependence libraries.  The import file would start with
11058    # the line `#! .'.  This would cause the generated library to
11059    # depend on `.', always an invalid library.  This was fixed in
11060    # development snapshots of GCC prior to 3.0.
11061    case $host_os in
11062      aix4 | aix4.[01] | aix4.[01].*)
11063      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11064	   echo ' yes '
11065	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11066	:
11067      else
11068	can_build_shared=no
11069      fi
11070      ;;
11071    esac
11072    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11073    # soname into executable. Probably we can add versioning support to
11074    # collect2, so additional links can be useful in future.
11075    if test "$aix_use_runtimelinking" = yes; then
11076      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11077      # instead of lib<name>.a to let people know that these are not
11078      # typical AIX shared libraries.
11079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080    else
11081      # We preserve .a as extension for shared libraries through AIX4.2
11082      # and later when we are not doing run time linking.
11083      library_names_spec='${libname}${release}.a $libname.a'
11084      soname_spec='${libname}${release}${shared_ext}$major'
11085    fi
11086    shlibpath_var=LIBPATH
11087  fi
11088  ;;
11089
11090amigaos*)
11091  case $host_cpu in
11092  powerpc)
11093    # Since July 2007 AmigaOS4 officially supports .so libraries.
11094    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11095    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096    ;;
11097  m68k)
11098    library_names_spec='$libname.ixlibrary $libname.a'
11099    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11100    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'
11101    ;;
11102  esac
11103  ;;
11104
11105beos*)
11106  library_names_spec='${libname}${shared_ext}'
11107  dynamic_linker="$host_os ld.so"
11108  shlibpath_var=LIBRARY_PATH
11109  ;;
11110
11111bsdi[45]*)
11112  version_type=linux # correct to gnu/linux during the next big refactor
11113  need_version=no
11114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115  soname_spec='${libname}${release}${shared_ext}$major'
11116  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11117  shlibpath_var=LD_LIBRARY_PATH
11118  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11119  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11120  # the default ld.so.conf also contains /usr/contrib/lib and
11121  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11122  # libtool to hard-code these into programs
11123  ;;
11124
11125cygwin* | mingw* | pw32* | cegcc*)
11126  version_type=windows
11127  shrext_cmds=".dll"
11128  need_version=no
11129  need_lib_prefix=no
11130
11131  case $GCC,$cc_basename in
11132  yes,*)
11133    # gcc
11134    library_names_spec='$libname.dll.a'
11135    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11136    postinstall_cmds='base_file=`basename \${file}`~
11137      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11138      dldir=$destdir/`dirname \$dlpath`~
11139      test -d \$dldir || mkdir -p \$dldir~
11140      $install_prog $dir/$dlname \$dldir/$dlname~
11141      chmod a+x \$dldir/$dlname~
11142      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11143        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11144      fi'
11145    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11146      dlpath=$dir/\$dldll~
11147       $RM \$dlpath'
11148    shlibpath_overrides_runpath=yes
11149
11150    case $host_os in
11151    cygwin*)
11152      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11153      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154
11155      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11156      ;;
11157    mingw* | cegcc*)
11158      # MinGW DLLs use traditional 'lib' prefix
11159      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11160      ;;
11161    pw32*)
11162      # pw32 DLLs use 'pw' prefix rather than 'lib'
11163      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164      ;;
11165    esac
11166    dynamic_linker='Win32 ld.exe'
11167    ;;
11168
11169  *,cl*)
11170    # Native MSVC
11171    libname_spec='$name'
11172    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173    library_names_spec='${libname}.dll.lib'
11174
11175    case $build_os in
11176    mingw*)
11177      sys_lib_search_path_spec=
11178      lt_save_ifs=$IFS
11179      IFS=';'
11180      for lt_path in $LIB
11181      do
11182        IFS=$lt_save_ifs
11183        # Let DOS variable expansion print the short 8.3 style file name.
11184        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11185        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11186      done
11187      IFS=$lt_save_ifs
11188      # Convert to MSYS style.
11189      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11190      ;;
11191    cygwin*)
11192      # Convert to unix form, then to dos form, then back to unix form
11193      # but this time dos style (no spaces!) so that the unix form looks
11194      # like /cygdrive/c/PROGRA~1:/cygdr...
11195      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11196      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11197      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11198      ;;
11199    *)
11200      sys_lib_search_path_spec="$LIB"
11201      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11202        # It is most probably a Windows format PATH.
11203        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11204      else
11205        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11206      fi
11207      # FIXME: find the short name or the path components, as spaces are
11208      # common. (e.g. "Program Files" -> "PROGRA~1")
11209      ;;
11210    esac
11211
11212    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11213    postinstall_cmds='base_file=`basename \${file}`~
11214      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11215      dldir=$destdir/`dirname \$dlpath`~
11216      test -d \$dldir || mkdir -p \$dldir~
11217      $install_prog $dir/$dlname \$dldir/$dlname'
11218    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11219      dlpath=$dir/\$dldll~
11220       $RM \$dlpath'
11221    shlibpath_overrides_runpath=yes
11222    dynamic_linker='Win32 link.exe'
11223    ;;
11224
11225  *)
11226    # Assume MSVC wrapper
11227    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11228    dynamic_linker='Win32 ld.exe'
11229    ;;
11230  esac
11231  # FIXME: first we should search . and the directory the executable is in
11232  shlibpath_var=PATH
11233  ;;
11234
11235darwin* | rhapsody*)
11236  dynamic_linker="$host_os dyld"
11237  version_type=darwin
11238  need_lib_prefix=no
11239  need_version=no
11240  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11241  soname_spec='${libname}${release}${major}$shared_ext'
11242  shlibpath_overrides_runpath=yes
11243  shlibpath_var=DYLD_LIBRARY_PATH
11244  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11245
11246  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11247  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11248  ;;
11249
11250dgux*)
11251  version_type=linux # correct to gnu/linux during the next big refactor
11252  need_lib_prefix=no
11253  need_version=no
11254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11255  soname_spec='${libname}${release}${shared_ext}$major'
11256  shlibpath_var=LD_LIBRARY_PATH
11257  ;;
11258
11259freebsd* | dragonfly*)
11260  # DragonFly does not have aout.  When/if they implement a new
11261  # versioning mechanism, adjust this.
11262  if test -x /usr/bin/objformat; then
11263    objformat=`/usr/bin/objformat`
11264  else
11265    case $host_os in
11266    freebsd[23].*) objformat=aout ;;
11267    *) objformat=elf ;;
11268    esac
11269  fi
11270  version_type=freebsd-$objformat
11271  case $version_type in
11272    freebsd-elf*)
11273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274      need_version=no
11275      need_lib_prefix=no
11276      ;;
11277    freebsd-*)
11278      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279      need_version=yes
11280      ;;
11281  esac
11282  shlibpath_var=LD_LIBRARY_PATH
11283  case $host_os in
11284  freebsd2.*)
11285    shlibpath_overrides_runpath=yes
11286    ;;
11287  freebsd3.[01]* | freebsdelf3.[01]*)
11288    shlibpath_overrides_runpath=yes
11289    hardcode_into_libs=yes
11290    ;;
11291  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11292  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11293    shlibpath_overrides_runpath=no
11294    hardcode_into_libs=yes
11295    ;;
11296  *) # from 4.6 on, and DragonFly
11297    shlibpath_overrides_runpath=yes
11298    hardcode_into_libs=yes
11299    ;;
11300  esac
11301  ;;
11302
11303gnu*)
11304  version_type=linux # correct to gnu/linux during the next big refactor
11305  need_lib_prefix=no
11306  need_version=no
11307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11308  soname_spec='${libname}${release}${shared_ext}$major'
11309  shlibpath_var=LD_LIBRARY_PATH
11310  shlibpath_overrides_runpath=no
11311  hardcode_into_libs=yes
11312  ;;
11313
11314haiku*)
11315  version_type=linux # correct to gnu/linux during the next big refactor
11316  need_lib_prefix=no
11317  need_version=no
11318  dynamic_linker="$host_os runtime_loader"
11319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320  soname_spec='${libname}${release}${shared_ext}$major'
11321  shlibpath_var=LIBRARY_PATH
11322  shlibpath_overrides_runpath=yes
11323  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11324  hardcode_into_libs=yes
11325  ;;
11326
11327hpux9* | hpux10* | hpux11*)
11328  # Give a soname corresponding to the major version so that dld.sl refuses to
11329  # link against other versions.
11330  version_type=sunos
11331  need_lib_prefix=no
11332  need_version=no
11333  case $host_cpu in
11334  ia64*)
11335    shrext_cmds='.so'
11336    hardcode_into_libs=yes
11337    dynamic_linker="$host_os dld.so"
11338    shlibpath_var=LD_LIBRARY_PATH
11339    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341    soname_spec='${libname}${release}${shared_ext}$major'
11342    if test "X$HPUX_IA64_MODE" = X32; then
11343      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11344    else
11345      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11346    fi
11347    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11348    ;;
11349  hppa*64*)
11350    shrext_cmds='.sl'
11351    hardcode_into_libs=yes
11352    dynamic_linker="$host_os dld.sl"
11353    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11354    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356    soname_spec='${libname}${release}${shared_ext}$major'
11357    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11358    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359    ;;
11360  *)
11361    shrext_cmds='.sl'
11362    dynamic_linker="$host_os dld.sl"
11363    shlibpath_var=SHLIB_PATH
11364    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366    soname_spec='${libname}${release}${shared_ext}$major'
11367    ;;
11368  esac
11369  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11370  postinstall_cmds='chmod 555 $lib'
11371  # or fails outright, so override atomically:
11372  install_override_mode=555
11373  ;;
11374
11375interix[3-9]*)
11376  version_type=linux # correct to gnu/linux during the next big refactor
11377  need_lib_prefix=no
11378  need_version=no
11379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11380  soname_spec='${libname}${release}${shared_ext}$major'
11381  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11382  shlibpath_var=LD_LIBRARY_PATH
11383  shlibpath_overrides_runpath=no
11384  hardcode_into_libs=yes
11385  ;;
11386
11387irix5* | irix6* | nonstopux*)
11388  case $host_os in
11389    nonstopux*) version_type=nonstopux ;;
11390    *)
11391	if test "$lt_cv_prog_gnu_ld" = yes; then
11392		version_type=linux # correct to gnu/linux during the next big refactor
11393	else
11394		version_type=irix
11395	fi ;;
11396  esac
11397  need_lib_prefix=no
11398  need_version=no
11399  soname_spec='${libname}${release}${shared_ext}$major'
11400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401  case $host_os in
11402  irix5* | nonstopux*)
11403    libsuff= shlibsuff=
11404    ;;
11405  *)
11406    case $LD in # libtool.m4 will add one of these switches to LD
11407    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408      libsuff= shlibsuff= libmagic=32-bit;;
11409    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410      libsuff=32 shlibsuff=N32 libmagic=N32;;
11411    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413    *) libsuff= shlibsuff= libmagic=never-match;;
11414    esac
11415    ;;
11416  esac
11417  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418  shlibpath_overrides_runpath=no
11419  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421  hardcode_into_libs=yes
11422  ;;
11423
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426  dynamic_linker=no
11427  ;;
11428
11429# This must be glibc/ELF.
11430linux* | k*bsd*-gnu | kopensolaris*-gnu)
11431  version_type=linux # correct to gnu/linux during the next big refactor
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435  soname_spec='${libname}${release}${shared_ext}$major'
11436  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437  shlibpath_var=LD_LIBRARY_PATH
11438  shlibpath_overrides_runpath=no
11439
11440  # Some binutils ld are patched to set DT_RUNPATH
11441  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11442  $as_echo_n "(cached) " >&6
11443else
11444  lt_cv_shlibpath_overrides_runpath=no
11445    save_LDFLAGS=$LDFLAGS
11446    save_libdir=$libdir
11447    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11448	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h.  */
11451
11452int
11453main ()
11454{
11455
11456  ;
11457  return 0;
11458}
11459_ACEOF
11460if ac_fn_c_try_link "$LINENO"; then :
11461  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11462  lt_cv_shlibpath_overrides_runpath=yes
11463fi
11464fi
11465rm -f core conftest.err conftest.$ac_objext \
11466    conftest$ac_exeext conftest.$ac_ext
11467    LDFLAGS=$save_LDFLAGS
11468    libdir=$save_libdir
11469
11470fi
11471
11472  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11473
11474  # This implies no fast_install, which is unacceptable.
11475  # Some rework will be needed to allow for fast_install
11476  # before this can be enabled.
11477  hardcode_into_libs=yes
11478
11479  # Append ld.so.conf contents to the search path
11480  if test -f /etc/ld.so.conf; then
11481    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' ' '`
11482    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11483  fi
11484
11485  # We used to test for /lib/ld.so.1 and disable shared libraries on
11486  # powerpc, because MkLinux only supported shared libraries with the
11487  # GNU dynamic linker.  Since this was broken with cross compilers,
11488  # most powerpc-linux boxes support dynamic linking these days and
11489  # people can always --disable-shared, the test was removed, and we
11490  # assume the GNU/Linux dynamic linker is in use.
11491  dynamic_linker='GNU/Linux ld.so'
11492  ;;
11493
11494netbsd*)
11495  version_type=sunos
11496  need_lib_prefix=no
11497  need_version=no
11498  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11501    dynamic_linker='NetBSD (a.out) ld.so'
11502  else
11503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11504    soname_spec='${libname}${release}${shared_ext}$major'
11505    dynamic_linker='NetBSD ld.elf_so'
11506  fi
11507  shlibpath_var=LD_LIBRARY_PATH
11508  shlibpath_overrides_runpath=yes
11509  hardcode_into_libs=yes
11510  ;;
11511
11512newsos6)
11513  version_type=linux # correct to gnu/linux during the next big refactor
11514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515  shlibpath_var=LD_LIBRARY_PATH
11516  shlibpath_overrides_runpath=yes
11517  ;;
11518
11519*nto* | *qnx*)
11520  version_type=qnx
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524  soname_spec='${libname}${release}${shared_ext}$major'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  shlibpath_overrides_runpath=no
11527  hardcode_into_libs=yes
11528  dynamic_linker='ldqnx.so'
11529  ;;
11530
11531openbsd*)
11532  version_type=sunos
11533  sys_lib_dlsearch_path_spec="/usr/lib"
11534  need_lib_prefix=no
11535  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11536  case $host_os in
11537    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11538    *)				need_version=no  ;;
11539  esac
11540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544    case $host_os in
11545      openbsd2.[89] | openbsd2.[89].*)
11546	shlibpath_overrides_runpath=no
11547	;;
11548      *)
11549	shlibpath_overrides_runpath=yes
11550	;;
11551      esac
11552  else
11553    shlibpath_overrides_runpath=yes
11554  fi
11555  ;;
11556
11557os2*)
11558  libname_spec='$name'
11559  shrext_cmds=".dll"
11560  need_lib_prefix=no
11561  library_names_spec='$libname${shared_ext} $libname.a'
11562  dynamic_linker='OS/2 ld.exe'
11563  shlibpath_var=LIBPATH
11564  ;;
11565
11566osf3* | osf4* | osf5*)
11567  version_type=osf
11568  need_lib_prefix=no
11569  need_version=no
11570  soname_spec='${libname}${release}${shared_ext}$major'
11571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572  shlibpath_var=LD_LIBRARY_PATH
11573  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11574  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11575  ;;
11576
11577rdos*)
11578  dynamic_linker=no
11579  ;;
11580
11581solaris*)
11582  version_type=linux # correct to gnu/linux during the next big refactor
11583  need_lib_prefix=no
11584  need_version=no
11585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586  soname_spec='${libname}${release}${shared_ext}$major'
11587  shlibpath_var=LD_LIBRARY_PATH
11588  shlibpath_overrides_runpath=yes
11589  hardcode_into_libs=yes
11590  # ldd complains unless libraries are executable
11591  postinstall_cmds='chmod +x $lib'
11592  ;;
11593
11594sunos4*)
11595  version_type=sunos
11596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11598  shlibpath_var=LD_LIBRARY_PATH
11599  shlibpath_overrides_runpath=yes
11600  if test "$with_gnu_ld" = yes; then
11601    need_lib_prefix=no
11602  fi
11603  need_version=yes
11604  ;;
11605
11606sysv4 | sysv4.3*)
11607  version_type=linux # correct to gnu/linux during the next big refactor
11608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609  soname_spec='${libname}${release}${shared_ext}$major'
11610  shlibpath_var=LD_LIBRARY_PATH
11611  case $host_vendor in
11612    sni)
11613      shlibpath_overrides_runpath=no
11614      need_lib_prefix=no
11615      runpath_var=LD_RUN_PATH
11616      ;;
11617    siemens)
11618      need_lib_prefix=no
11619      ;;
11620    motorola)
11621      need_lib_prefix=no
11622      need_version=no
11623      shlibpath_overrides_runpath=no
11624      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11625      ;;
11626  esac
11627  ;;
11628
11629sysv4*MP*)
11630  if test -d /usr/nec ;then
11631    version_type=linux # correct to gnu/linux during the next big refactor
11632    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11633    soname_spec='$libname${shared_ext}.$major'
11634    shlibpath_var=LD_LIBRARY_PATH
11635  fi
11636  ;;
11637
11638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11639  version_type=freebsd-elf
11640  need_lib_prefix=no
11641  need_version=no
11642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11643  soname_spec='${libname}${release}${shared_ext}$major'
11644  shlibpath_var=LD_LIBRARY_PATH
11645  shlibpath_overrides_runpath=yes
11646  hardcode_into_libs=yes
11647  if test "$with_gnu_ld" = yes; then
11648    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11649  else
11650    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11651    case $host_os in
11652      sco3.2v5*)
11653        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11654	;;
11655    esac
11656  fi
11657  sys_lib_dlsearch_path_spec='/usr/lib'
11658  ;;
11659
11660tpf*)
11661  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11662  version_type=linux # correct to gnu/linux during the next big refactor
11663  need_lib_prefix=no
11664  need_version=no
11665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666  shlibpath_var=LD_LIBRARY_PATH
11667  shlibpath_overrides_runpath=no
11668  hardcode_into_libs=yes
11669  ;;
11670
11671uts4*)
11672  version_type=linux # correct to gnu/linux during the next big refactor
11673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674  soname_spec='${libname}${release}${shared_ext}$major'
11675  shlibpath_var=LD_LIBRARY_PATH
11676  ;;
11677
11678*)
11679  dynamic_linker=no
11680  ;;
11681esac
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11683$as_echo "$dynamic_linker" >&6; }
11684test "$dynamic_linker" = no && can_build_shared=no
11685
11686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11687if test "$GCC" = yes; then
11688  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11689fi
11690
11691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11692  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11693fi
11694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11695  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11696fi
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
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11790$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11791hardcode_action=
11792if test -n "$hardcode_libdir_flag_spec" ||
11793   test -n "$runpath_var" ||
11794   test "X$hardcode_automatic" = "Xyes" ; then
11795
11796  # We can hardcode non-existent directories.
11797  if test "$hardcode_direct" != no &&
11798     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11799     # have to relink, otherwise we might link with an installed library
11800     # when we should be linking with a yet-to-be-installed one
11801     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11802     test "$hardcode_minus_L" != no; then
11803    # Linking always hardcodes the temporary library directory.
11804    hardcode_action=relink
11805  else
11806    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11807    hardcode_action=immediate
11808  fi
11809else
11810  # We cannot hardcode anything, or else we can only hardcode existing
11811  # directories.
11812  hardcode_action=unsupported
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11815$as_echo "$hardcode_action" >&6; }
11816
11817if test "$hardcode_action" = relink ||
11818   test "$inherit_rpath" = yes; then
11819  # Fast installation is not supported
11820  enable_fast_install=no
11821elif test "$shlibpath_overrides_runpath" = yes ||
11822     test "$enable_shared" = no; then
11823  # Fast installation is not necessary
11824  enable_fast_install=needless
11825fi
11826
11827
11828
11829
11830
11831
11832  if test "x$enable_dlopen" != xyes; then
11833  enable_dlopen=unknown
11834  enable_dlopen_self=unknown
11835  enable_dlopen_self_static=unknown
11836else
11837  lt_cv_dlopen=no
11838  lt_cv_dlopen_libs=
11839
11840  case $host_os in
11841  beos*)
11842    lt_cv_dlopen="load_add_on"
11843    lt_cv_dlopen_libs=
11844    lt_cv_dlopen_self=yes
11845    ;;
11846
11847  mingw* | pw32* | cegcc*)
11848    lt_cv_dlopen="LoadLibrary"
11849    lt_cv_dlopen_libs=
11850    ;;
11851
11852  cygwin*)
11853    lt_cv_dlopen="dlopen"
11854    lt_cv_dlopen_libs=
11855    ;;
11856
11857  darwin*)
11858  # if libdl is installed we need to link against it
11859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11860$as_echo_n "checking for dlopen in -ldl... " >&6; }
11861if ${ac_cv_lib_dl_dlopen+:} false; then :
11862  $as_echo_n "(cached) " >&6
11863else
11864  ac_check_lib_save_LIBS=$LIBS
11865LIBS="-ldl  $LIBS"
11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h.  */
11868
11869/* Override any GCC internal prototype to avoid an error.
11870   Use char because int might match the return type of a GCC
11871   builtin and then its argument prototype would still apply.  */
11872#ifdef __cplusplus
11873extern "C"
11874#endif
11875char dlopen ();
11876int
11877main ()
11878{
11879return dlopen ();
11880  ;
11881  return 0;
11882}
11883_ACEOF
11884if ac_fn_c_try_link "$LINENO"; then :
11885  ac_cv_lib_dl_dlopen=yes
11886else
11887  ac_cv_lib_dl_dlopen=no
11888fi
11889rm -f core conftest.err conftest.$ac_objext \
11890    conftest$ac_exeext conftest.$ac_ext
11891LIBS=$ac_check_lib_save_LIBS
11892fi
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11896  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897else
11898
11899    lt_cv_dlopen="dyld"
11900    lt_cv_dlopen_libs=
11901    lt_cv_dlopen_self=yes
11902
11903fi
11904
11905    ;;
11906
11907  *)
11908    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11909if test "x$ac_cv_func_shl_load" = xyes; then :
11910  lt_cv_dlopen="shl_load"
11911else
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11913$as_echo_n "checking for shl_load in -ldld... " >&6; }
11914if ${ac_cv_lib_dld_shl_load+:} false; then :
11915  $as_echo_n "(cached) " >&6
11916else
11917  ac_check_lib_save_LIBS=$LIBS
11918LIBS="-ldld  $LIBS"
11919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h.  */
11921
11922/* Override any GCC internal prototype to avoid an error.
11923   Use char because int might match the return type of a GCC
11924   builtin and then its argument prototype would still apply.  */
11925#ifdef __cplusplus
11926extern "C"
11927#endif
11928char shl_load ();
11929int
11930main ()
11931{
11932return shl_load ();
11933  ;
11934  return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938  ac_cv_lib_dld_shl_load=yes
11939else
11940  ac_cv_lib_dld_shl_load=no
11941fi
11942rm -f core conftest.err conftest.$ac_objext \
11943    conftest$ac_exeext conftest.$ac_ext
11944LIBS=$ac_check_lib_save_LIBS
11945fi
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11947$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11948if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11949  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11950else
11951  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11952if test "x$ac_cv_func_dlopen" = xyes; then :
11953  lt_cv_dlopen="dlopen"
11954else
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956$as_echo_n "checking for dlopen in -ldl... " >&6; }
11957if ${ac_cv_lib_dl_dlopen+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  ac_check_lib_save_LIBS=$LIBS
11961LIBS="-ldl  $LIBS"
11962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963/* end confdefs.h.  */
11964
11965/* Override any GCC internal prototype to avoid an error.
11966   Use char because int might match the return type of a GCC
11967   builtin and then its argument prototype would still apply.  */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char dlopen ();
11972int
11973main ()
11974{
11975return dlopen ();
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981  ac_cv_lib_dl_dlopen=yes
11982else
11983  ac_cv_lib_dl_dlopen=no
11984fi
11985rm -f core conftest.err conftest.$ac_objext \
11986    conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11993else
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11995$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11996if ${ac_cv_lib_svld_dlopen+:} false; then :
11997  $as_echo_n "(cached) " >&6
11998else
11999  ac_check_lib_save_LIBS=$LIBS
12000LIBS="-lsvld  $LIBS"
12001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h.  */
12003
12004/* Override any GCC internal prototype to avoid an error.
12005   Use char because int might match the return type of a GCC
12006   builtin and then its argument prototype would still apply.  */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010char dlopen ();
12011int
12012main ()
12013{
12014return dlopen ();
12015  ;
12016  return 0;
12017}
12018_ACEOF
12019if ac_fn_c_try_link "$LINENO"; then :
12020  ac_cv_lib_svld_dlopen=yes
12021else
12022  ac_cv_lib_svld_dlopen=no
12023fi
12024rm -f core conftest.err conftest.$ac_objext \
12025    conftest$ac_exeext conftest.$ac_ext
12026LIBS=$ac_check_lib_save_LIBS
12027fi
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12029$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12030if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12031  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032else
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12034$as_echo_n "checking for dld_link in -ldld... " >&6; }
12035if ${ac_cv_lib_dld_dld_link+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldld  $LIBS"
12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041/* end confdefs.h.  */
12042
12043/* Override any GCC internal prototype to avoid an error.
12044   Use char because int might match the return type of a GCC
12045   builtin and then its argument prototype would still apply.  */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049char dld_link ();
12050int
12051main ()
12052{
12053return dld_link ();
12054  ;
12055  return 0;
12056}
12057_ACEOF
12058if ac_fn_c_try_link "$LINENO"; then :
12059  ac_cv_lib_dld_dld_link=yes
12060else
12061  ac_cv_lib_dld_dld_link=no
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064    conftest$ac_exeext conftest.$ac_ext
12065LIBS=$ac_check_lib_save_LIBS
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12068$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12069if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12070  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12071fi
12072
12073
12074fi
12075
12076
12077fi
12078
12079
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088    ;;
12089  esac
12090
12091  if test "x$lt_cv_dlopen" != xno; then
12092    enable_dlopen=yes
12093  else
12094    enable_dlopen=no
12095  fi
12096
12097  case $lt_cv_dlopen in
12098  dlopen)
12099    save_CPPFLAGS="$CPPFLAGS"
12100    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12101
12102    save_LDFLAGS="$LDFLAGS"
12103    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104
12105    save_LIBS="$LIBS"
12106    LIBS="$lt_cv_dlopen_libs $LIBS"
12107
12108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12109$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12110if ${lt_cv_dlopen_self+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  	  if test "$cross_compiling" = yes; then :
12114  lt_cv_dlopen_self=cross
12115else
12116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117  lt_status=$lt_dlunknown
12118  cat > conftest.$ac_ext <<_LT_EOF
12119#line $LINENO "configure"
12120#include "confdefs.h"
12121
12122#if HAVE_DLFCN_H
12123#include <dlfcn.h>
12124#endif
12125
12126#include <stdio.h>
12127
12128#ifdef RTLD_GLOBAL
12129#  define LT_DLGLOBAL		RTLD_GLOBAL
12130#else
12131#  ifdef DL_GLOBAL
12132#    define LT_DLGLOBAL		DL_GLOBAL
12133#  else
12134#    define LT_DLGLOBAL		0
12135#  endif
12136#endif
12137
12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139   find out it does not work in some platform. */
12140#ifndef LT_DLLAZY_OR_NOW
12141#  ifdef RTLD_LAZY
12142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12143#  else
12144#    ifdef DL_LAZY
12145#      define LT_DLLAZY_OR_NOW		DL_LAZY
12146#    else
12147#      ifdef RTLD_NOW
12148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12149#      else
12150#        ifdef DL_NOW
12151#          define LT_DLLAZY_OR_NOW	DL_NOW
12152#        else
12153#          define LT_DLLAZY_OR_NOW	0
12154#        endif
12155#      endif
12156#    endif
12157#  endif
12158#endif
12159
12160/* When -fvisbility=hidden is used, assume the code has been annotated
12161   correspondingly for the symbols needed.  */
12162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12163int fnord () __attribute__((visibility("default")));
12164#endif
12165
12166int fnord () { return 42; }
12167int main ()
12168{
12169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12170  int status = $lt_dlunknown;
12171
12172  if (self)
12173    {
12174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12175      else
12176        {
12177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12178          else puts (dlerror ());
12179	}
12180      /* dlclose (self); */
12181    }
12182  else
12183    puts (dlerror ());
12184
12185  return status;
12186}
12187_LT_EOF
12188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12189  (eval $ac_link) 2>&5
12190  ac_status=$?
12191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12192  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12193    (./conftest; exit; ) >&5 2>/dev/null
12194    lt_status=$?
12195    case x$lt_status in
12196      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12197      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12198      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12199    esac
12200  else :
12201    # compilation failed
12202    lt_cv_dlopen_self=no
12203  fi
12204fi
12205rm -fr conftest*
12206
12207
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12210$as_echo "$lt_cv_dlopen_self" >&6; }
12211
12212    if test "x$lt_cv_dlopen_self" = xyes; then
12213      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12214      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12215$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12216if ${lt_cv_dlopen_self_static+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  	  if test "$cross_compiling" = yes; then :
12220  lt_cv_dlopen_self_static=cross
12221else
12222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12223  lt_status=$lt_dlunknown
12224  cat > conftest.$ac_ext <<_LT_EOF
12225#line $LINENO "configure"
12226#include "confdefs.h"
12227
12228#if HAVE_DLFCN_H
12229#include <dlfcn.h>
12230#endif
12231
12232#include <stdio.h>
12233
12234#ifdef RTLD_GLOBAL
12235#  define LT_DLGLOBAL		RTLD_GLOBAL
12236#else
12237#  ifdef DL_GLOBAL
12238#    define LT_DLGLOBAL		DL_GLOBAL
12239#  else
12240#    define LT_DLGLOBAL		0
12241#  endif
12242#endif
12243
12244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12245   find out it does not work in some platform. */
12246#ifndef LT_DLLAZY_OR_NOW
12247#  ifdef RTLD_LAZY
12248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12249#  else
12250#    ifdef DL_LAZY
12251#      define LT_DLLAZY_OR_NOW		DL_LAZY
12252#    else
12253#      ifdef RTLD_NOW
12254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12255#      else
12256#        ifdef DL_NOW
12257#          define LT_DLLAZY_OR_NOW	DL_NOW
12258#        else
12259#          define LT_DLLAZY_OR_NOW	0
12260#        endif
12261#      endif
12262#    endif
12263#  endif
12264#endif
12265
12266/* When -fvisbility=hidden is used, assume the code has been annotated
12267   correspondingly for the symbols needed.  */
12268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269int fnord () __attribute__((visibility("default")));
12270#endif
12271
12272int fnord () { return 42; }
12273int main ()
12274{
12275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12276  int status = $lt_dlunknown;
12277
12278  if (self)
12279    {
12280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12281      else
12282        {
12283	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12284          else puts (dlerror ());
12285	}
12286      /* dlclose (self); */
12287    }
12288  else
12289    puts (dlerror ());
12290
12291  return status;
12292}
12293_LT_EOF
12294  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295  (eval $ac_link) 2>&5
12296  ac_status=$?
12297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299    (./conftest; exit; ) >&5 2>/dev/null
12300    lt_status=$?
12301    case x$lt_status in
12302      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12303      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12304      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12305    esac
12306  else :
12307    # compilation failed
12308    lt_cv_dlopen_self_static=no
12309  fi
12310fi
12311rm -fr conftest*
12312
12313
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12316$as_echo "$lt_cv_dlopen_self_static" >&6; }
12317    fi
12318
12319    CPPFLAGS="$save_CPPFLAGS"
12320    LDFLAGS="$save_LDFLAGS"
12321    LIBS="$save_LIBS"
12322    ;;
12323  esac
12324
12325  case $lt_cv_dlopen_self in
12326  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12327  *) enable_dlopen_self=unknown ;;
12328  esac
12329
12330  case $lt_cv_dlopen_self_static in
12331  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12332  *) enable_dlopen_self_static=unknown ;;
12333  esac
12334fi
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352striplib=
12353old_striplib=
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12357  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12358  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12360$as_echo "yes" >&6; }
12361else
12362# FIXME - insert some real tests, host_os isn't really good enough
12363  case $host_os in
12364  darwin*)
12365    if test -n "$STRIP" ; then
12366      striplib="$STRIP -x"
12367      old_striplib="$STRIP -S"
12368      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369$as_echo "yes" >&6; }
12370    else
12371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373    fi
12374    ;;
12375  *)
12376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
12378    ;;
12379  esac
12380fi
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393  # Report which library types will actually be built
12394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12397$as_echo "$can_build_shared" >&6; }
12398
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12400$as_echo_n "checking whether to build shared libraries... " >&6; }
12401  test "$can_build_shared" = "no" && enable_shared=no
12402
12403  # On AIX, shared libraries and static libraries use the same namespace, and
12404  # are all built from PIC.
12405  case $host_os in
12406  aix3*)
12407    test "$enable_shared" = yes && enable_static=no
12408    if test -n "$RANLIB"; then
12409      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12410      postinstall_cmds='$RANLIB $lib'
12411    fi
12412    ;;
12413
12414  aix[4-9]*)
12415    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12416      test "$enable_shared" = yes && enable_static=no
12417    fi
12418    ;;
12419  esac
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12421$as_echo "$enable_shared" >&6; }
12422
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12424$as_echo_n "checking whether to build static libraries... " >&6; }
12425  # Make sure either enable_shared or enable_static is yes.
12426  test "$enable_shared" = yes || enable_static=yes
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12428$as_echo "$enable_static" >&6; }
12429
12430
12431
12432
12433fi
12434ac_ext=c
12435ac_cpp='$CPP $CPPFLAGS'
12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440CC="$lt_save_CC"
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456        ac_config_commands="$ac_config_commands libtool"
12457
12458
12459
12460
12461# Only expand once:
12462
12463
12464ac_ext=cpp
12465ac_cpp='$CXXCPP $CPPFLAGS'
12466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469if test -z "$CXX"; then
12470  if test -n "$CCC"; then
12471    CXX=$CCC
12472  else
12473    if test -n "$ac_tool_prefix"; then
12474  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12475  do
12476    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if ${ac_cv_prog_CXX+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  if test -n "$CXX"; then
12484  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489  IFS=$as_save_IFS
12490  test -z "$as_dir" && as_dir=.
12491    for ac_exec_ext in '' $ac_executable_extensions; do
12492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495    break 2
12496  fi
12497done
12498  done
12499IFS=$as_save_IFS
12500
12501fi
12502fi
12503CXX=$ac_cv_prog_CXX
12504if test -n "$CXX"; then
12505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12506$as_echo "$CXX" >&6; }
12507else
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510fi
12511
12512
12513    test -n "$CXX" && break
12514  done
12515fi
12516if test -z "$CXX"; then
12517  ac_ct_CXX=$CXX
12518  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12519do
12520  # Extract the first word of "$ac_prog", so it can be a program name with args.
12521set dummy $ac_prog; ac_word=$2
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12525  $as_echo_n "(cached) " >&6
12526else
12527  if test -n "$ac_ct_CXX"; then
12528  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12529else
12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
12532do
12533  IFS=$as_save_IFS
12534  test -z "$as_dir" && as_dir=.
12535    for ac_exec_ext in '' $ac_executable_extensions; do
12536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537    ac_cv_prog_ac_ct_CXX="$ac_prog"
12538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539    break 2
12540  fi
12541done
12542  done
12543IFS=$as_save_IFS
12544
12545fi
12546fi
12547ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12548if test -n "$ac_ct_CXX"; then
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12550$as_echo "$ac_ct_CXX" >&6; }
12551else
12552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
12554fi
12555
12556
12557  test -n "$ac_ct_CXX" && break
12558done
12559
12560  if test "x$ac_ct_CXX" = x; then
12561    CXX="g++"
12562  else
12563    case $cross_compiling:$ac_tool_warned in
12564yes:)
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567ac_tool_warned=yes ;;
12568esac
12569    CXX=$ac_ct_CXX
12570  fi
12571fi
12572
12573  fi
12574fi
12575# Provide some information about the compiler.
12576$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12577set X $ac_compile
12578ac_compiler=$2
12579for ac_option in --version -v -V -qversion; do
12580  { { ac_try="$ac_compiler $ac_option >&5"
12581case "(($ac_try" in
12582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583  *) ac_try_echo=$ac_try;;
12584esac
12585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12586$as_echo "$ac_try_echo"; } >&5
12587  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12588  ac_status=$?
12589  if test -s conftest.err; then
12590    sed '10a\
12591... rest of stderr output deleted ...
12592         10q' conftest.err >conftest.er1
12593    cat conftest.er1 >&5
12594  fi
12595  rm -f conftest.er1 conftest.err
12596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597  test $ac_status = 0; }
12598done
12599
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12601$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12602if ${ac_cv_cxx_compiler_gnu+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h.  */
12607
12608int
12609main ()
12610{
12611#ifndef __GNUC__
12612       choke me
12613#endif
12614
12615  ;
12616  return 0;
12617}
12618_ACEOF
12619if ac_fn_cxx_try_compile "$LINENO"; then :
12620  ac_compiler_gnu=yes
12621else
12622  ac_compiler_gnu=no
12623fi
12624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12626
12627fi
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12629$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12630if test $ac_compiler_gnu = yes; then
12631  GXX=yes
12632else
12633  GXX=
12634fi
12635ac_test_CXXFLAGS=${CXXFLAGS+set}
12636ac_save_CXXFLAGS=$CXXFLAGS
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12638$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12639if ${ac_cv_prog_cxx_g+:} false; then :
12640  $as_echo_n "(cached) " >&6
12641else
12642  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12643   ac_cxx_werror_flag=yes
12644   ac_cv_prog_cxx_g=no
12645   CXXFLAGS="-g"
12646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648
12649int
12650main ()
12651{
12652
12653  ;
12654  return 0;
12655}
12656_ACEOF
12657if ac_fn_cxx_try_compile "$LINENO"; then :
12658  ac_cv_prog_cxx_g=yes
12659else
12660  CXXFLAGS=""
12661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662/* end confdefs.h.  */
12663
12664int
12665main ()
12666{
12667
12668  ;
12669  return 0;
12670}
12671_ACEOF
12672if ac_fn_cxx_try_compile "$LINENO"; then :
12673
12674else
12675  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12676	 CXXFLAGS="-g"
12677	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679
12680int
12681main ()
12682{
12683
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688if ac_fn_cxx_try_compile "$LINENO"; then :
12689  ac_cv_prog_cxx_g=yes
12690fi
12691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692fi
12693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694fi
12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12699$as_echo "$ac_cv_prog_cxx_g" >&6; }
12700if test "$ac_test_CXXFLAGS" = set; then
12701  CXXFLAGS=$ac_save_CXXFLAGS
12702elif test $ac_cv_prog_cxx_g = yes; then
12703  if test "$GXX" = yes; then
12704    CXXFLAGS="-g -O2"
12705  else
12706    CXXFLAGS="-g"
12707  fi
12708else
12709  if test "$GXX" = yes; then
12710    CXXFLAGS="-O2"
12711  else
12712    CXXFLAGS=
12713  fi
12714fi
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721depcc="$CXX"  am_compiler_list=
12722
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12724$as_echo_n "checking dependency style of $depcc... " >&6; }
12725if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12726  $as_echo_n "(cached) " >&6
12727else
12728  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12729  # We make a subdir and do the tests there.  Otherwise we can end up
12730  # making bogus files that we don't know about and never remove.  For
12731  # instance it was reported that on HP-UX the gcc test will end up
12732  # making a dummy file named 'D' -- because '-MD' means "put the output
12733  # in D".
12734  rm -rf conftest.dir
12735  mkdir conftest.dir
12736  # Copy depcomp to subdir because otherwise we won't find it if we're
12737  # using a relative directory.
12738  cp "$am_depcomp" conftest.dir
12739  cd conftest.dir
12740  # We will build objects and dependencies in a subdirectory because
12741  # it helps to detect inapplicable dependency modes.  For instance
12742  # both Tru64's cc and ICC support -MD to output dependencies as a
12743  # side effect of compilation, but ICC will put the dependencies in
12744  # the current directory while Tru64 will put them in the object
12745  # directory.
12746  mkdir sub
12747
12748  am_cv_CXX_dependencies_compiler_type=none
12749  if test "$am_compiler_list" = ""; then
12750     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12751  fi
12752  am__universal=false
12753  case " $depcc " in #(
12754     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12755     esac
12756
12757  for depmode in $am_compiler_list; do
12758    # Setup a source with many dependencies, because some compilers
12759    # like to wrap large dependency lists on column 80 (with \), and
12760    # we should not choose a depcomp mode which is confused by this.
12761    #
12762    # We need to recreate these files for each test, as the compiler may
12763    # overwrite some of them when testing with obscure command lines.
12764    # This happens at least with the AIX C compiler.
12765    : > sub/conftest.c
12766    for i in 1 2 3 4 5 6; do
12767      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12768      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12769      # Solaris 10 /bin/sh.
12770      echo '/* dummy */' > sub/conftst$i.h
12771    done
12772    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12773
12774    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12775    # mode.  It turns out that the SunPro C++ compiler does not properly
12776    # handle '-M -o', and we need to detect this.  Also, some Intel
12777    # versions had trouble with output in subdirs.
12778    am__obj=sub/conftest.${OBJEXT-o}
12779    am__minus_obj="-o $am__obj"
12780    case $depmode in
12781    gcc)
12782      # This depmode causes a compiler race in universal mode.
12783      test "$am__universal" = false || continue
12784      ;;
12785    nosideeffect)
12786      # After this tag, mechanisms are not by side-effect, so they'll
12787      # only be used when explicitly requested.
12788      if test "x$enable_dependency_tracking" = xyes; then
12789	continue
12790      else
12791	break
12792      fi
12793      ;;
12794    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12795      # This compiler won't grok '-c -o', but also, the minuso test has
12796      # not run yet.  These depmodes are late enough in the game, and
12797      # so weak that their functioning should not be impacted.
12798      am__obj=conftest.${OBJEXT-o}
12799      am__minus_obj=
12800      ;;
12801    none) break ;;
12802    esac
12803    if depmode=$depmode \
12804       source=sub/conftest.c object=$am__obj \
12805       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12806       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12807         >/dev/null 2>conftest.err &&
12808       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12809       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12810       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12811       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12812      # icc doesn't choke on unknown options, it will just issue warnings
12813      # or remarks (even with -Werror).  So we grep stderr for any message
12814      # that says an option was ignored or not supported.
12815      # When given -MP, icc 7.0 and 7.1 complain thusly:
12816      #   icc: Command line warning: ignoring option '-M'; no argument required
12817      # The diagnosis changed in icc 8.0:
12818      #   icc: Command line remark: option '-MP' not supported
12819      if (grep 'ignoring option' conftest.err ||
12820          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12821        am_cv_CXX_dependencies_compiler_type=$depmode
12822        break
12823      fi
12824    fi
12825  done
12826
12827  cd ..
12828  rm -rf conftest.dir
12829else
12830  am_cv_CXX_dependencies_compiler_type=none
12831fi
12832
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12835$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12836CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12837
12838 if
12839  test "x$enable_dependency_tracking" != xno \
12840  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12841  am__fastdepCXX_TRUE=
12842  am__fastdepCXX_FALSE='#'
12843else
12844  am__fastdepCXX_TRUE='#'
12845  am__fastdepCXX_FALSE=
12846fi
12847
12848
12849
12850
12851
12852func_stripname_cnf ()
12853{
12854  case ${2} in
12855  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12856  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12857  esac
12858} # func_stripname_cnf
12859
12860      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12861    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12862    (test "X$CXX" != "Xg++"))) ; then
12863  ac_ext=cpp
12864ac_cpp='$CXXCPP $CPPFLAGS'
12865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12869$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12870if test -z "$CXXCPP"; then
12871  if ${ac_cv_prog_CXXCPP+:} false; then :
12872  $as_echo_n "(cached) " >&6
12873else
12874      # Double quotes because CXXCPP needs to be expanded
12875    for CXXCPP in "$CXX -E" "/lib/cpp"
12876    do
12877      ac_preproc_ok=false
12878for ac_cxx_preproc_warn_flag in '' yes
12879do
12880  # Use a header file that comes with gcc, so configuring glibc
12881  # with a fresh cross-compiler works.
12882  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12883  # <limits.h> exists even on freestanding compilers.
12884  # On the NeXT, cc -E runs the code through the compiler's parser,
12885  # not just through cpp. "Syntax error" is here to catch this case.
12886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887/* end confdefs.h.  */
12888#ifdef __STDC__
12889# include <limits.h>
12890#else
12891# include <assert.h>
12892#endif
12893		     Syntax error
12894_ACEOF
12895if ac_fn_cxx_try_cpp "$LINENO"; then :
12896
12897else
12898  # Broken: fails on valid input.
12899continue
12900fi
12901rm -f conftest.err conftest.i conftest.$ac_ext
12902
12903  # OK, works on sane cases.  Now check whether nonexistent headers
12904  # can be detected and how.
12905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907#include <ac_nonexistent.h>
12908_ACEOF
12909if ac_fn_cxx_try_cpp "$LINENO"; then :
12910  # Broken: success on invalid input.
12911continue
12912else
12913  # Passes both tests.
12914ac_preproc_ok=:
12915break
12916fi
12917rm -f conftest.err conftest.i conftest.$ac_ext
12918
12919done
12920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12921rm -f conftest.i conftest.err conftest.$ac_ext
12922if $ac_preproc_ok; then :
12923  break
12924fi
12925
12926    done
12927    ac_cv_prog_CXXCPP=$CXXCPP
12928
12929fi
12930  CXXCPP=$ac_cv_prog_CXXCPP
12931else
12932  ac_cv_prog_CXXCPP=$CXXCPP
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12935$as_echo "$CXXCPP" >&6; }
12936ac_preproc_ok=false
12937for ac_cxx_preproc_warn_flag in '' yes
12938do
12939  # Use a header file that comes with gcc, so configuring glibc
12940  # with a fresh cross-compiler works.
12941  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12942  # <limits.h> exists even on freestanding compilers.
12943  # On the NeXT, cc -E runs the code through the compiler's parser,
12944  # not just through cpp. "Syntax error" is here to catch this case.
12945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946/* end confdefs.h.  */
12947#ifdef __STDC__
12948# include <limits.h>
12949#else
12950# include <assert.h>
12951#endif
12952		     Syntax error
12953_ACEOF
12954if ac_fn_cxx_try_cpp "$LINENO"; then :
12955
12956else
12957  # Broken: fails on valid input.
12958continue
12959fi
12960rm -f conftest.err conftest.i conftest.$ac_ext
12961
12962  # OK, works on sane cases.  Now check whether nonexistent headers
12963  # can be detected and how.
12964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966#include <ac_nonexistent.h>
12967_ACEOF
12968if ac_fn_cxx_try_cpp "$LINENO"; then :
12969  # Broken: success on invalid input.
12970continue
12971else
12972  # Passes both tests.
12973ac_preproc_ok=:
12974break
12975fi
12976rm -f conftest.err conftest.i conftest.$ac_ext
12977
12978done
12979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12980rm -f conftest.i conftest.err conftest.$ac_ext
12981if $ac_preproc_ok; then :
12982
12983else
12984  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12986as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12987See \`config.log' for more details" "$LINENO" 5; }
12988fi
12989
12990ac_ext=c
12991ac_cpp='$CPP $CPPFLAGS'
12992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996else
12997  _lt_caught_CXX_error=yes
12998fi
12999
13000ac_ext=cpp
13001ac_cpp='$CXXCPP $CPPFLAGS'
13002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13005
13006archive_cmds_need_lc_CXX=no
13007allow_undefined_flag_CXX=
13008always_export_symbols_CXX=no
13009archive_expsym_cmds_CXX=
13010compiler_needs_object_CXX=no
13011export_dynamic_flag_spec_CXX=
13012hardcode_direct_CXX=no
13013hardcode_direct_absolute_CXX=no
13014hardcode_libdir_flag_spec_CXX=
13015hardcode_libdir_separator_CXX=
13016hardcode_minus_L_CXX=no
13017hardcode_shlibpath_var_CXX=unsupported
13018hardcode_automatic_CXX=no
13019inherit_rpath_CXX=no
13020module_cmds_CXX=
13021module_expsym_cmds_CXX=
13022link_all_deplibs_CXX=unknown
13023old_archive_cmds_CXX=$old_archive_cmds
13024reload_flag_CXX=$reload_flag
13025reload_cmds_CXX=$reload_cmds
13026no_undefined_flag_CXX=
13027whole_archive_flag_spec_CXX=
13028enable_shared_with_static_runtimes_CXX=no
13029
13030# Source file extension for C++ test sources.
13031ac_ext=cpp
13032
13033# Object file extension for compiled C++ test sources.
13034objext=o
13035objext_CXX=$objext
13036
13037# No sense in running all these tests if we already determined that
13038# the CXX compiler isn't working.  Some variables (like enable_shared)
13039# are currently assumed to apply to all compilers on this platform,
13040# and will be corrupted by setting them based on a non-working compiler.
13041if test "$_lt_caught_CXX_error" != yes; then
13042  # Code to be used in simple compile tests
13043  lt_simple_compile_test_code="int some_variable = 0;"
13044
13045  # Code to be used in simple link tests
13046  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13047
13048  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13049
13050
13051
13052
13053
13054
13055# If no C compiler was specified, use CC.
13056LTCC=${LTCC-"$CC"}
13057
13058# If no C compiler flags were specified, use CFLAGS.
13059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13060
13061# Allow CC to be a program name with arguments.
13062compiler=$CC
13063
13064
13065  # save warnings/boilerplate of simple test code
13066  ac_outfile=conftest.$ac_objext
13067echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069_lt_compiler_boilerplate=`cat conftest.err`
13070$RM conftest*
13071
13072  ac_outfile=conftest.$ac_objext
13073echo "$lt_simple_link_test_code" >conftest.$ac_ext
13074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13075_lt_linker_boilerplate=`cat conftest.err`
13076$RM -r conftest*
13077
13078
13079  # Allow CC to be a program name with arguments.
13080  lt_save_CC=$CC
13081  lt_save_CFLAGS=$CFLAGS
13082  lt_save_LD=$LD
13083  lt_save_GCC=$GCC
13084  GCC=$GXX
13085  lt_save_with_gnu_ld=$with_gnu_ld
13086  lt_save_path_LD=$lt_cv_path_LD
13087  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13088    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13089  else
13090    $as_unset lt_cv_prog_gnu_ld
13091  fi
13092  if test -n "${lt_cv_path_LDCXX+set}"; then
13093    lt_cv_path_LD=$lt_cv_path_LDCXX
13094  else
13095    $as_unset lt_cv_path_LD
13096  fi
13097  test -z "${LDCXX+set}" || LD=$LDCXX
13098  CC=${CXX-"c++"}
13099  CFLAGS=$CXXFLAGS
13100  compiler=$CC
13101  compiler_CXX=$CC
13102  for cc_temp in $compiler""; do
13103  case $cc_temp in
13104    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13105    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13106    \-*) ;;
13107    *) break;;
13108  esac
13109done
13110cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13111
13112
13113  if test -n "$compiler"; then
13114    # We don't want -fno-exception when compiling C++ code, so set the
13115    # no_builtin_flag separately
13116    if test "$GXX" = yes; then
13117      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13118    else
13119      lt_prog_compiler_no_builtin_flag_CXX=
13120    fi
13121
13122    if test "$GXX" = yes; then
13123      # Set up default GNU C++ configuration
13124
13125
13126
13127# Check whether --with-gnu-ld was given.
13128if test "${with_gnu_ld+set}" = set; then :
13129  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13130else
13131  with_gnu_ld=no
13132fi
13133
13134ac_prog=ld
13135if test "$GCC" = yes; then
13136  # Check if gcc -print-prog-name=ld gives a path.
13137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13138$as_echo_n "checking for ld used by $CC... " >&6; }
13139  case $host in
13140  *-*-mingw*)
13141    # gcc leaves a trailing carriage return which upsets mingw
13142    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13143  *)
13144    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13145  esac
13146  case $ac_prog in
13147    # Accept absolute paths.
13148    [\\/]* | ?:[\\/]*)
13149      re_direlt='/[^/][^/]*/\.\./'
13150      # Canonicalize the pathname of ld
13151      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13152      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13153	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13154      done
13155      test -z "$LD" && LD="$ac_prog"
13156      ;;
13157  "")
13158    # If it fails, then pretend we aren't using GCC.
13159    ac_prog=ld
13160    ;;
13161  *)
13162    # If it is relative, then search for the first ld in PATH.
13163    with_gnu_ld=unknown
13164    ;;
13165  esac
13166elif test "$with_gnu_ld" = yes; then
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13168$as_echo_n "checking for GNU ld... " >&6; }
13169else
13170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13171$as_echo_n "checking for non-GNU ld... " >&6; }
13172fi
13173if ${lt_cv_path_LD+:} false; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  if test -z "$LD"; then
13177  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13178  for ac_dir in $PATH; do
13179    IFS="$lt_save_ifs"
13180    test -z "$ac_dir" && ac_dir=.
13181    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13182      lt_cv_path_LD="$ac_dir/$ac_prog"
13183      # Check to see if the program is GNU ld.  I'd rather use --version,
13184      # but apparently some variants of GNU ld only accept -v.
13185      # Break only if it was the GNU/non-GNU ld that we prefer.
13186      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13187      *GNU* | *'with BFD'*)
13188	test "$with_gnu_ld" != no && break
13189	;;
13190      *)
13191	test "$with_gnu_ld" != yes && break
13192	;;
13193      esac
13194    fi
13195  done
13196  IFS="$lt_save_ifs"
13197else
13198  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13199fi
13200fi
13201
13202LD="$lt_cv_path_LD"
13203if test -n "$LD"; then
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13205$as_echo "$LD" >&6; }
13206else
13207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208$as_echo "no" >&6; }
13209fi
13210test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13212$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13213if ${lt_cv_prog_gnu_ld+:} false; then :
13214  $as_echo_n "(cached) " >&6
13215else
13216  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13217case `$LD -v 2>&1 </dev/null` in
13218*GNU* | *'with BFD'*)
13219  lt_cv_prog_gnu_ld=yes
13220  ;;
13221*)
13222  lt_cv_prog_gnu_ld=no
13223  ;;
13224esac
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13227$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13228with_gnu_ld=$lt_cv_prog_gnu_ld
13229
13230
13231
13232
13233
13234
13235
13236      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13237      # archiving commands below assume that GNU ld is being used.
13238      if test "$with_gnu_ld" = yes; then
13239        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240        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'
13241
13242        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13244
13245        # If archive_cmds runs LD, not CC, wlarc should be empty
13246        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13247        #     investigate it a little bit more. (MM)
13248        wlarc='${wl}'
13249
13250        # ancient GNU ld didn't support --whole-archive et. al.
13251        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13252	  $GREP 'no-whole-archive' > /dev/null; then
13253          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13254        else
13255          whole_archive_flag_spec_CXX=
13256        fi
13257      else
13258        with_gnu_ld=no
13259        wlarc=
13260
13261        # A generic and very simple default shared library creation
13262        # command for GNU C++ for the case where it uses the native
13263        # linker, instead of GNU ld.  If possible, this setting should
13264        # overridden to take advantage of the native linker features on
13265        # the platform it is being used on.
13266        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13267      fi
13268
13269      # Commands to make compiler produce verbose output that lists
13270      # what "hidden" libraries, object files and flags are used when
13271      # linking a shared library.
13272      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13273
13274    else
13275      GXX=no
13276      with_gnu_ld=no
13277      wlarc=
13278    fi
13279
13280    # PORTME: fill in a description of your system's C++ link characteristics
13281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13282$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13283    ld_shlibs_CXX=yes
13284    case $host_os in
13285      aix3*)
13286        # FIXME: insert proper C++ library support
13287        ld_shlibs_CXX=no
13288        ;;
13289      aix[4-9]*)
13290        if test "$host_cpu" = ia64; then
13291          # On IA64, the linker does run time linking by default, so we don't
13292          # have to do anything special.
13293          aix_use_runtimelinking=no
13294          exp_sym_flag='-Bexport'
13295          no_entry_flag=""
13296        else
13297          aix_use_runtimelinking=no
13298
13299          # Test if we are trying to use run time linking or normal
13300          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13301          # need to do runtime linking.
13302          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13303	    for ld_flag in $LDFLAGS; do
13304	      case $ld_flag in
13305	      *-brtl*)
13306	        aix_use_runtimelinking=yes
13307	        break
13308	        ;;
13309	      esac
13310	    done
13311	    ;;
13312          esac
13313
13314          exp_sym_flag='-bexport'
13315          no_entry_flag='-bnoentry'
13316        fi
13317
13318        # When large executables or shared objects are built, AIX ld can
13319        # have problems creating the table of contents.  If linking a library
13320        # or program results in "error TOC overflow" add -mminimal-toc to
13321        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13322        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13323
13324        archive_cmds_CXX=''
13325        hardcode_direct_CXX=yes
13326        hardcode_direct_absolute_CXX=yes
13327        hardcode_libdir_separator_CXX=':'
13328        link_all_deplibs_CXX=yes
13329        file_list_spec_CXX='${wl}-f,'
13330
13331        if test "$GXX" = yes; then
13332          case $host_os in aix4.[012]|aix4.[012].*)
13333          # We only want to do this on AIX 4.2 and lower, the check
13334          # below for broken collect2 doesn't work under 4.3+
13335	  collect2name=`${CC} -print-prog-name=collect2`
13336	  if test -f "$collect2name" &&
13337	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13338	  then
13339	    # We have reworked collect2
13340	    :
13341	  else
13342	    # We have old collect2
13343	    hardcode_direct_CXX=unsupported
13344	    # It fails to find uninstalled libraries when the uninstalled
13345	    # path is not listed in the libpath.  Setting hardcode_minus_L
13346	    # to unsupported forces relinking
13347	    hardcode_minus_L_CXX=yes
13348	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13349	    hardcode_libdir_separator_CXX=
13350	  fi
13351          esac
13352          shared_flag='-shared'
13353	  if test "$aix_use_runtimelinking" = yes; then
13354	    shared_flag="$shared_flag "'${wl}-G'
13355	  fi
13356        else
13357          # not using gcc
13358          if test "$host_cpu" = ia64; then
13359	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13360	  # chokes on -Wl,-G. The following line is correct:
13361	  shared_flag='-G'
13362          else
13363	    if test "$aix_use_runtimelinking" = yes; then
13364	      shared_flag='${wl}-G'
13365	    else
13366	      shared_flag='${wl}-bM:SRE'
13367	    fi
13368          fi
13369        fi
13370
13371        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13372        # It seems that -bexpall does not export symbols beginning with
13373        # underscore (_), so it is better to generate a list of symbols to
13374	# export.
13375        always_export_symbols_CXX=yes
13376        if test "$aix_use_runtimelinking" = yes; then
13377          # Warning - without using the other runtime loading flags (-brtl),
13378          # -berok will link without error, but may produce a broken library.
13379          allow_undefined_flag_CXX='-berok'
13380          # Determine the default libpath from the value encoded in an empty
13381          # executable.
13382          if test "${lt_cv_aix_libpath+set}" = set; then
13383  aix_libpath=$lt_cv_aix_libpath
13384else
13385  if ${lt_cv_aix_libpath__CXX+:} false; then :
13386  $as_echo_n "(cached) " >&6
13387else
13388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h.  */
13390
13391int
13392main ()
13393{
13394
13395  ;
13396  return 0;
13397}
13398_ACEOF
13399if ac_fn_cxx_try_link "$LINENO"; then :
13400
13401  lt_aix_libpath_sed='
13402      /Import File Strings/,/^$/ {
13403	  /^0/ {
13404	      s/^0  *\([^ ]*\) *$/\1/
13405	      p
13406	  }
13407      }'
13408  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409  # Check for a 64-bit object if we didn't find anything.
13410  if test -z "$lt_cv_aix_libpath__CXX"; then
13411    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412  fi
13413fi
13414rm -f core conftest.err conftest.$ac_objext \
13415    conftest$ac_exeext conftest.$ac_ext
13416  if test -z "$lt_cv_aix_libpath__CXX"; then
13417    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13418  fi
13419
13420fi
13421
13422  aix_libpath=$lt_cv_aix_libpath__CXX
13423fi
13424
13425          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426
13427          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"
13428        else
13429          if test "$host_cpu" = ia64; then
13430	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13431	    allow_undefined_flag_CXX="-z nodefs"
13432	    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"
13433          else
13434	    # Determine the default libpath from the value encoded in an
13435	    # empty executable.
13436	    if test "${lt_cv_aix_libpath+set}" = set; then
13437  aix_libpath=$lt_cv_aix_libpath
13438else
13439  if ${lt_cv_aix_libpath__CXX+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443/* end confdefs.h.  */
13444
13445int
13446main ()
13447{
13448
13449  ;
13450  return 0;
13451}
13452_ACEOF
13453if ac_fn_cxx_try_link "$LINENO"; then :
13454
13455  lt_aix_libpath_sed='
13456      /Import File Strings/,/^$/ {
13457	  /^0/ {
13458	      s/^0  *\([^ ]*\) *$/\1/
13459	      p
13460	  }
13461      }'
13462  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13463  # Check for a 64-bit object if we didn't find anything.
13464  if test -z "$lt_cv_aix_libpath__CXX"; then
13465    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13466  fi
13467fi
13468rm -f core conftest.err conftest.$ac_objext \
13469    conftest$ac_exeext conftest.$ac_ext
13470  if test -z "$lt_cv_aix_libpath__CXX"; then
13471    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13472  fi
13473
13474fi
13475
13476  aix_libpath=$lt_cv_aix_libpath__CXX
13477fi
13478
13479	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13480	    # Warning - without using the other run time loading flags,
13481	    # -berok will link without error, but may produce a broken library.
13482	    no_undefined_flag_CXX=' ${wl}-bernotok'
13483	    allow_undefined_flag_CXX=' ${wl}-berok'
13484	    if test "$with_gnu_ld" = yes; then
13485	      # We only use this code for GNU lds that support --whole-archive.
13486	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13487	    else
13488	      # Exported symbols can be pulled into shared objects from archives
13489	      whole_archive_flag_spec_CXX='$convenience'
13490	    fi
13491	    archive_cmds_need_lc_CXX=yes
13492	    # This is similar to how AIX traditionally builds its shared
13493	    # libraries.
13494	    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'
13495          fi
13496        fi
13497        ;;
13498
13499      beos*)
13500	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13501	  allow_undefined_flag_CXX=unsupported
13502	  # Joseph Beckenbach <[email protected]> says some releases of gcc
13503	  # support --undefined.  This deserves some investigation.  FIXME
13504	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505	else
13506	  ld_shlibs_CXX=no
13507	fi
13508	;;
13509
13510      chorus*)
13511        case $cc_basename in
13512          *)
13513	  # FIXME: insert proper C++ library support
13514	  ld_shlibs_CXX=no
13515	  ;;
13516        esac
13517        ;;
13518
13519      cygwin* | mingw* | pw32* | cegcc*)
13520	case $GXX,$cc_basename in
13521	,cl* | no,cl*)
13522	  # Native MSVC
13523	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13524	  # no search path for DLLs.
13525	  hardcode_libdir_flag_spec_CXX=' '
13526	  allow_undefined_flag_CXX=unsupported
13527	  always_export_symbols_CXX=yes
13528	  file_list_spec_CXX='@'
13529	  # Tell ltmain to make .lib files, not .a files.
13530	  libext=lib
13531	  # Tell ltmain to make .dll files, not .so files.
13532	  shrext_cmds=".dll"
13533	  # FIXME: Setting linknames here is a bad hack.
13534	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13535	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13536	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13537	    else
13538	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13539	    fi~
13540	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13541	    linknames='
13542	  # The linker will not automatically build a static lib if we build a DLL.
13543	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13544	  enable_shared_with_static_runtimes_CXX=yes
13545	  # Don't use ranlib
13546	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13547	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13548	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13549	    case $lt_outputfile in
13550	      *.exe|*.EXE) ;;
13551	      *)
13552		lt_outputfile="$lt_outputfile.exe"
13553		lt_tool_outputfile="$lt_tool_outputfile.exe"
13554		;;
13555	    esac~
13556	    func_to_tool_file "$lt_outputfile"~
13557	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13558	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13559	      $RM "$lt_outputfile.manifest";
13560	    fi'
13561	  ;;
13562	*)
13563	  # g++
13564	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13565	  # as there is no search path for DLLs.
13566	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13567	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13568	  allow_undefined_flag_CXX=unsupported
13569	  always_export_symbols_CXX=no
13570	  enable_shared_with_static_runtimes_CXX=yes
13571
13572	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13573	    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'
13574	    # If the export-symbols file already is a .def file (1st line
13575	    # is EXPORTS), use it as is; otherwise, prepend...
13576	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13577	      cp $export_symbols $output_objdir/$soname.def;
13578	    else
13579	      echo EXPORTS > $output_objdir/$soname.def;
13580	      cat $export_symbols >> $output_objdir/$soname.def;
13581	    fi~
13582	    $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'
13583	  else
13584	    ld_shlibs_CXX=no
13585	  fi
13586	  ;;
13587	esac
13588	;;
13589      darwin* | rhapsody*)
13590
13591
13592  archive_cmds_need_lc_CXX=no
13593  hardcode_direct_CXX=no
13594  hardcode_automatic_CXX=yes
13595  hardcode_shlibpath_var_CXX=unsupported
13596  if test "$lt_cv_ld_force_load" = "yes"; then
13597    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\"`'
13598
13599  else
13600    whole_archive_flag_spec_CXX=''
13601  fi
13602  link_all_deplibs_CXX=yes
13603  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13604  case $cc_basename in
13605     ifort*) _lt_dar_can_shared=yes ;;
13606     *) _lt_dar_can_shared=$GCC ;;
13607  esac
13608  if test "$_lt_dar_can_shared" = "yes"; then
13609    output_verbose_link_cmd=func_echo_all
13610    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}"
13611    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13612    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}"
13613    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}"
13614       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13615      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}"
13616      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}"
13617    fi
13618
13619  else
13620  ld_shlibs_CXX=no
13621  fi
13622
13623	;;
13624
13625      dgux*)
13626        case $cc_basename in
13627          ec++*)
13628	    # FIXME: insert proper C++ library support
13629	    ld_shlibs_CXX=no
13630	    ;;
13631          ghcx*)
13632	    # Green Hills C++ Compiler
13633	    # FIXME: insert proper C++ library support
13634	    ld_shlibs_CXX=no
13635	    ;;
13636          *)
13637	    # FIXME: insert proper C++ library support
13638	    ld_shlibs_CXX=no
13639	    ;;
13640        esac
13641        ;;
13642
13643      freebsd2.*)
13644        # C++ shared libraries reported to be fairly broken before
13645	# switch to ELF
13646        ld_shlibs_CXX=no
13647        ;;
13648
13649      freebsd-elf*)
13650        archive_cmds_need_lc_CXX=no
13651        ;;
13652
13653      freebsd* | dragonfly*)
13654        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13655        # conventions
13656        ld_shlibs_CXX=yes
13657        ;;
13658
13659      gnu*)
13660        ;;
13661
13662      haiku*)
13663        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664        link_all_deplibs_CXX=yes
13665        ;;
13666
13667      hpux9*)
13668        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13669        hardcode_libdir_separator_CXX=:
13670        export_dynamic_flag_spec_CXX='${wl}-E'
13671        hardcode_direct_CXX=yes
13672        hardcode_minus_L_CXX=yes # Not in the search PATH,
13673				             # but as the default
13674				             # location of the library.
13675
13676        case $cc_basename in
13677          CC*)
13678            # FIXME: insert proper C++ library support
13679            ld_shlibs_CXX=no
13680            ;;
13681          aCC*)
13682            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'
13683            # Commands to make compiler produce verbose output that lists
13684            # what "hidden" libraries, object files and flags are used when
13685            # linking a shared library.
13686            #
13687            # There doesn't appear to be a way to prevent this compiler from
13688            # explicitly linking system object files so we need to strip them
13689            # from the output so that they don't get included in the library
13690            # dependencies.
13691            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"'
13692            ;;
13693          *)
13694            if test "$GXX" = yes; then
13695              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'
13696            else
13697              # FIXME: insert proper C++ library support
13698              ld_shlibs_CXX=no
13699            fi
13700            ;;
13701        esac
13702        ;;
13703
13704      hpux10*|hpux11*)
13705        if test $with_gnu_ld = no; then
13706	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13707	  hardcode_libdir_separator_CXX=:
13708
13709          case $host_cpu in
13710            hppa*64*|ia64*)
13711              ;;
13712            *)
13713	      export_dynamic_flag_spec_CXX='${wl}-E'
13714              ;;
13715          esac
13716        fi
13717        case $host_cpu in
13718          hppa*64*|ia64*)
13719            hardcode_direct_CXX=no
13720            hardcode_shlibpath_var_CXX=no
13721            ;;
13722          *)
13723            hardcode_direct_CXX=yes
13724            hardcode_direct_absolute_CXX=yes
13725            hardcode_minus_L_CXX=yes # Not in the search PATH,
13726					         # but as the default
13727					         # location of the library.
13728            ;;
13729        esac
13730
13731        case $cc_basename in
13732          CC*)
13733	    # FIXME: insert proper C++ library support
13734	    ld_shlibs_CXX=no
13735	    ;;
13736          aCC*)
13737	    case $host_cpu in
13738	      hppa*64*)
13739	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13740	        ;;
13741	      ia64*)
13742	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13743	        ;;
13744	      *)
13745	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746	        ;;
13747	    esac
13748	    # Commands to make compiler produce verbose output that lists
13749	    # what "hidden" libraries, object files and flags are used when
13750	    # linking a shared library.
13751	    #
13752	    # There doesn't appear to be a way to prevent this compiler from
13753	    # explicitly linking system object files so we need to strip them
13754	    # from the output so that they don't get included in the library
13755	    # dependencies.
13756	    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"'
13757	    ;;
13758          *)
13759	    if test "$GXX" = yes; then
13760	      if test $with_gnu_ld = no; then
13761	        case $host_cpu in
13762	          hppa*64*)
13763	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13764	            ;;
13765	          ia64*)
13766	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13767	            ;;
13768	          *)
13769	            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'
13770	            ;;
13771	        esac
13772	      fi
13773	    else
13774	      # FIXME: insert proper C++ library support
13775	      ld_shlibs_CXX=no
13776	    fi
13777	    ;;
13778        esac
13779        ;;
13780
13781      interix[3-9]*)
13782	hardcode_direct_CXX=no
13783	hardcode_shlibpath_var_CXX=no
13784	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13785	export_dynamic_flag_spec_CXX='${wl}-E'
13786	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13787	# Instead, shared libraries are loaded at an image base (0x10000000 by
13788	# default) and relocated if they conflict, which is a slow very memory
13789	# consuming and fragmenting process.  To avoid this, we pick a random,
13790	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13791	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13792	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'
13793	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'
13794	;;
13795      irix5* | irix6*)
13796        case $cc_basename in
13797          CC*)
13798	    # SGI C++
13799	    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'
13800
13801	    # Archives containing C++ object files must be created using
13802	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13803	    # necessary to make sure instantiated templates are included
13804	    # in the archive.
13805	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13806	    ;;
13807          *)
13808	    if test "$GXX" = yes; then
13809	      if test "$with_gnu_ld" = no; then
13810	        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'
13811	      else
13812	        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'
13813	      fi
13814	    fi
13815	    link_all_deplibs_CXX=yes
13816	    ;;
13817        esac
13818        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13819        hardcode_libdir_separator_CXX=:
13820        inherit_rpath_CXX=yes
13821        ;;
13822
13823      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13824        case $cc_basename in
13825          KCC*)
13826	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13827
13828	    # KCC will only create a shared library if the output file
13829	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13830	    # to its proper name (with version) after linking.
13831	    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'
13832	    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'
13833	    # Commands to make compiler produce verbose output that lists
13834	    # what "hidden" libraries, object files and flags are used when
13835	    # linking a shared library.
13836	    #
13837	    # There doesn't appear to be a way to prevent this compiler from
13838	    # explicitly linking system object files so we need to strip them
13839	    # from the output so that they don't get included in the library
13840	    # dependencies.
13841	    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"'
13842
13843	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13844	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845
13846	    # Archives containing C++ object files must be created using
13847	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13848	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13849	    ;;
13850	  icpc* | ecpc* )
13851	    # Intel C++
13852	    with_gnu_ld=yes
13853	    # version 8.0 and above of icpc choke on multiply defined symbols
13854	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13855	    # earlier do not add the objects themselves.
13856	    case `$CC -V 2>&1` in
13857	      *"Version 7."*)
13858	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859		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'
13860		;;
13861	      *)  # Version 8.0 or newer
13862	        tmp_idyn=
13863	        case $host_cpu in
13864		  ia64*) tmp_idyn=' -i_dynamic';;
13865		esac
13866	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867		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'
13868		;;
13869	    esac
13870	    archive_cmds_need_lc_CXX=no
13871	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13873	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13874	    ;;
13875          pgCC* | pgcpp*)
13876            # Portland Group C++ compiler
13877	    case `$CC -V` in
13878	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13879	      prelink_cmds_CXX='tpldir=Template.dir~
13880		rm -rf $tpldir~
13881		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13882		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13883	      old_archive_cmds_CXX='tpldir=Template.dir~
13884		rm -rf $tpldir~
13885		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13886		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13887		$RANLIB $oldlib'
13888	      archive_cmds_CXX='tpldir=Template.dir~
13889		rm -rf $tpldir~
13890		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13891		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13892	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13893		rm -rf $tpldir~
13894		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13895		$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'
13896	      ;;
13897	    *) # Version 6 and above use weak symbols
13898	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13899	      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'
13900	      ;;
13901	    esac
13902
13903	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13904	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13905	    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'
13906            ;;
13907	  cxx*)
13908	    # Compaq C++
13909	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13910	    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'
13911
13912	    runpath_var=LD_RUN_PATH
13913	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914	    hardcode_libdir_separator_CXX=:
13915
13916	    # Commands to make compiler produce verbose output that lists
13917	    # what "hidden" libraries, object files and flags are used when
13918	    # linking a shared library.
13919	    #
13920	    # There doesn't appear to be a way to prevent this compiler from
13921	    # explicitly linking system object files so we need to strip them
13922	    # from the output so that they don't get included in the library
13923	    # dependencies.
13924	    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'
13925	    ;;
13926	  xl* | mpixl* | bgxl*)
13927	    # IBM XL 8.0 on PPC, with GNU ld
13928	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13929	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13930	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931	    if test "x$supports_anon_versioning" = xyes; then
13932	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13933		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13934		echo "local: *; };" >> $output_objdir/$libname.ver~
13935		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13936	    fi
13937	    ;;
13938	  *)
13939	    case `$CC -V 2>&1 | sed 5q` in
13940	    *Sun\ C*)
13941	      # Sun C++ 5.9
13942	      no_undefined_flag_CXX=' -zdefs'
13943	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944	      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'
13945	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13946	      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'
13947	      compiler_needs_object_CXX=yes
13948
13949	      # Not sure whether something based on
13950	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13951	      # would be better.
13952	      output_verbose_link_cmd='func_echo_all'
13953
13954	      # Archives containing C++ object files must be created using
13955	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13956	      # necessary to make sure instantiated templates are included
13957	      # in the archive.
13958	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13959	      ;;
13960	    esac
13961	    ;;
13962	esac
13963	;;
13964
13965      lynxos*)
13966        # FIXME: insert proper C++ library support
13967	ld_shlibs_CXX=no
13968	;;
13969
13970      m88k*)
13971        # FIXME: insert proper C++ library support
13972        ld_shlibs_CXX=no
13973	;;
13974
13975      mvs*)
13976        case $cc_basename in
13977          cxx*)
13978	    # FIXME: insert proper C++ library support
13979	    ld_shlibs_CXX=no
13980	    ;;
13981	  *)
13982	    # FIXME: insert proper C++ library support
13983	    ld_shlibs_CXX=no
13984	    ;;
13985	esac
13986	;;
13987
13988      netbsd*)
13989        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13990	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13991	  wlarc=
13992	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13993	  hardcode_direct_CXX=yes
13994	  hardcode_shlibpath_var_CXX=no
13995	fi
13996	# Workaround some broken pre-1.5 toolchains
13997	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13998	;;
13999
14000      *nto* | *qnx*)
14001        ld_shlibs_CXX=yes
14002	;;
14003
14004      openbsd2*)
14005        # C++ shared libraries are fairly broken
14006	ld_shlibs_CXX=no
14007	;;
14008
14009      openbsd*)
14010	if test -f /usr/libexec/ld.so; then
14011	  hardcode_direct_CXX=yes
14012	  hardcode_shlibpath_var_CXX=no
14013	  hardcode_direct_absolute_CXX=yes
14014	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14015	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14016	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14017	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14018	    export_dynamic_flag_spec_CXX='${wl}-E'
14019	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14020	  fi
14021	  output_verbose_link_cmd=func_echo_all
14022	else
14023	  ld_shlibs_CXX=no
14024	fi
14025	;;
14026
14027      osf3* | osf4* | osf5*)
14028        case $cc_basename in
14029          KCC*)
14030	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14031
14032	    # KCC will only create a shared library if the output file
14033	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14034	    # to its proper name (with version) after linking.
14035	    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'
14036
14037	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14038	    hardcode_libdir_separator_CXX=:
14039
14040	    # Archives containing C++ object files must be created using
14041	    # the KAI C++ compiler.
14042	    case $host in
14043	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14044	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14045	    esac
14046	    ;;
14047          RCC*)
14048	    # Rational C++ 2.4.1
14049	    # FIXME: insert proper C++ library support
14050	    ld_shlibs_CXX=no
14051	    ;;
14052          cxx*)
14053	    case $host in
14054	      osf3*)
14055	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14056	        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'
14057	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058		;;
14059	      *)
14060	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14061	        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'
14062	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14063	          echo "-hidden">> $lib.exp~
14064	          $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~
14065	          $RM $lib.exp'
14066	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14067		;;
14068	    esac
14069
14070	    hardcode_libdir_separator_CXX=:
14071
14072	    # Commands to make compiler produce verbose output that lists
14073	    # what "hidden" libraries, object files and flags are used when
14074	    # linking a shared library.
14075	    #
14076	    # There doesn't appear to be a way to prevent this compiler from
14077	    # explicitly linking system object files so we need to strip them
14078	    # from the output so that they don't get included in the library
14079	    # dependencies.
14080	    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"'
14081	    ;;
14082	  *)
14083	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14084	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14085	      case $host in
14086	        osf3*)
14087	          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'
14088		  ;;
14089	        *)
14090	          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'
14091		  ;;
14092	      esac
14093
14094	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14095	      hardcode_libdir_separator_CXX=:
14096
14097	      # Commands to make compiler produce verbose output that lists
14098	      # what "hidden" libraries, object files and flags are used when
14099	      # linking a shared library.
14100	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14101
14102	    else
14103	      # FIXME: insert proper C++ library support
14104	      ld_shlibs_CXX=no
14105	    fi
14106	    ;;
14107        esac
14108        ;;
14109
14110      psos*)
14111        # FIXME: insert proper C++ library support
14112        ld_shlibs_CXX=no
14113        ;;
14114
14115      sunos4*)
14116        case $cc_basename in
14117          CC*)
14118	    # Sun C++ 4.x
14119	    # FIXME: insert proper C++ library support
14120	    ld_shlibs_CXX=no
14121	    ;;
14122          lcc*)
14123	    # Lucid
14124	    # FIXME: insert proper C++ library support
14125	    ld_shlibs_CXX=no
14126	    ;;
14127          *)
14128	    # FIXME: insert proper C++ library support
14129	    ld_shlibs_CXX=no
14130	    ;;
14131        esac
14132        ;;
14133
14134      solaris*)
14135        case $cc_basename in
14136          CC* | sunCC*)
14137	    # Sun C++ 4.2, 5.x and Centerline C++
14138            archive_cmds_need_lc_CXX=yes
14139	    no_undefined_flag_CXX=' -zdefs'
14140	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14141	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142	      $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'
14143
14144	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14145	    hardcode_shlibpath_var_CXX=no
14146	    case $host_os in
14147	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14148	      *)
14149		# The compiler driver will combine and reorder linker options,
14150		# but understands `-z linker_flag'.
14151	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14152		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14153	        ;;
14154	    esac
14155	    link_all_deplibs_CXX=yes
14156
14157	    output_verbose_link_cmd='func_echo_all'
14158
14159	    # Archives containing C++ object files must be created using
14160	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14161	    # necessary to make sure instantiated templates are included
14162	    # in the archive.
14163	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14164	    ;;
14165          gcx*)
14166	    # Green Hills C++ Compiler
14167	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14168
14169	    # The C++ compiler must be used to create the archive.
14170	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14171	    ;;
14172          *)
14173	    # GNU C++ compiler with Solaris linker
14174	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14175	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14176	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14177	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14178	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14179		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14180
14181	        # Commands to make compiler produce verbose output that lists
14182	        # what "hidden" libraries, object files and flags are used when
14183	        # linking a shared library.
14184	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14185	      else
14186	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14187	        # platform.
14188	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14189	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14190		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14191
14192	        # Commands to make compiler produce verbose output that lists
14193	        # what "hidden" libraries, object files and flags are used when
14194	        # linking a shared library.
14195	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14196	      fi
14197
14198	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14199	      case $host_os in
14200		solaris2.[0-5] | solaris2.[0-5].*) ;;
14201		*)
14202		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14203		  ;;
14204	      esac
14205	    fi
14206	    ;;
14207        esac
14208        ;;
14209
14210    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14211      no_undefined_flag_CXX='${wl}-z,text'
14212      archive_cmds_need_lc_CXX=no
14213      hardcode_shlibpath_var_CXX=no
14214      runpath_var='LD_RUN_PATH'
14215
14216      case $cc_basename in
14217        CC*)
14218	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14220	  ;;
14221	*)
14222	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14223	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14224	  ;;
14225      esac
14226      ;;
14227
14228      sysv5* | sco3.2v5* | sco5v6*)
14229	# Note: We can NOT use -z defs as we might desire, because we do not
14230	# link with -lc, and that would cause any symbols used from libc to
14231	# always be unresolved, which means just about no library would
14232	# ever link correctly.  If we're not using GNU ld we use -z text
14233	# though, which does catch some bad symbols but isn't as heavy-handed
14234	# as -z defs.
14235	no_undefined_flag_CXX='${wl}-z,text'
14236	allow_undefined_flag_CXX='${wl}-z,nodefs'
14237	archive_cmds_need_lc_CXX=no
14238	hardcode_shlibpath_var_CXX=no
14239	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14240	hardcode_libdir_separator_CXX=':'
14241	link_all_deplibs_CXX=yes
14242	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14243	runpath_var='LD_RUN_PATH'
14244
14245	case $cc_basename in
14246          CC*)
14247	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14250	      '"$old_archive_cmds_CXX"
14251	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14252	      '"$reload_cmds_CXX"
14253	    ;;
14254	  *)
14255	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14256	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14257	    ;;
14258	esac
14259      ;;
14260
14261      tandem*)
14262        case $cc_basename in
14263          NCC*)
14264	    # NonStop-UX NCC 3.20
14265	    # FIXME: insert proper C++ library support
14266	    ld_shlibs_CXX=no
14267	    ;;
14268          *)
14269	    # FIXME: insert proper C++ library support
14270	    ld_shlibs_CXX=no
14271	    ;;
14272        esac
14273        ;;
14274
14275      vxworks*)
14276        # FIXME: insert proper C++ library support
14277        ld_shlibs_CXX=no
14278        ;;
14279
14280      *)
14281        # FIXME: insert proper C++ library support
14282        ld_shlibs_CXX=no
14283        ;;
14284    esac
14285
14286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14287$as_echo "$ld_shlibs_CXX" >&6; }
14288    test "$ld_shlibs_CXX" = no && can_build_shared=no
14289
14290    GCC_CXX="$GXX"
14291    LD_CXX="$LD"
14292
14293    ## CAVEAT EMPTOR:
14294    ## There is no encapsulation within the following macros, do not change
14295    ## the running order or otherwise move them around unless you know exactly
14296    ## what you are doing...
14297    # Dependencies to place before and after the object being linked:
14298predep_objects_CXX=
14299postdep_objects_CXX=
14300predeps_CXX=
14301postdeps_CXX=
14302compiler_lib_search_path_CXX=
14303
14304cat > conftest.$ac_ext <<_LT_EOF
14305class Foo
14306{
14307public:
14308  Foo (void) { a = 0; }
14309private:
14310  int a;
14311};
14312_LT_EOF
14313
14314
14315_lt_libdeps_save_CFLAGS=$CFLAGS
14316case "$CC $CFLAGS " in #(
14317*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14318*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14319*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14320esac
14321
14322if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14323  (eval $ac_compile) 2>&5
14324  ac_status=$?
14325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326  test $ac_status = 0; }; then
14327  # Parse the compiler output and extract the necessary
14328  # objects, libraries and library flags.
14329
14330  # Sentinel used to keep track of whether or not we are before
14331  # the conftest object file.
14332  pre_test_object_deps_done=no
14333
14334  for p in `eval "$output_verbose_link_cmd"`; do
14335    case ${prev}${p} in
14336
14337    -L* | -R* | -l*)
14338       # Some compilers place space between "-{L,R}" and the path.
14339       # Remove the space.
14340       if test $p = "-L" ||
14341          test $p = "-R"; then
14342	 prev=$p
14343	 continue
14344       fi
14345
14346       # Expand the sysroot to ease extracting the directories later.
14347       if test -z "$prev"; then
14348         case $p in
14349         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14350         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14351         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14352         esac
14353       fi
14354       case $p in
14355       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14356       esac
14357       if test "$pre_test_object_deps_done" = no; then
14358	 case ${prev} in
14359	 -L | -R)
14360	   # Internal compiler library paths should come after those
14361	   # provided the user.  The postdeps already come after the
14362	   # user supplied libs so there is no need to process them.
14363	   if test -z "$compiler_lib_search_path_CXX"; then
14364	     compiler_lib_search_path_CXX="${prev}${p}"
14365	   else
14366	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14367	   fi
14368	   ;;
14369	 # The "-l" case would never come before the object being
14370	 # linked, so don't bother handling this case.
14371	 esac
14372       else
14373	 if test -z "$postdeps_CXX"; then
14374	   postdeps_CXX="${prev}${p}"
14375	 else
14376	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14377	 fi
14378       fi
14379       prev=
14380       ;;
14381
14382    *.lto.$objext) ;; # Ignore GCC LTO objects
14383    *.$objext)
14384       # This assumes that the test object file only shows up
14385       # once in the compiler output.
14386       if test "$p" = "conftest.$objext"; then
14387	 pre_test_object_deps_done=yes
14388	 continue
14389       fi
14390
14391       if test "$pre_test_object_deps_done" = no; then
14392	 if test -z "$predep_objects_CXX"; then
14393	   predep_objects_CXX="$p"
14394	 else
14395	   predep_objects_CXX="$predep_objects_CXX $p"
14396	 fi
14397       else
14398	 if test -z "$postdep_objects_CXX"; then
14399	   postdep_objects_CXX="$p"
14400	 else
14401	   postdep_objects_CXX="$postdep_objects_CXX $p"
14402	 fi
14403       fi
14404       ;;
14405
14406    *) ;; # Ignore the rest.
14407
14408    esac
14409  done
14410
14411  # Clean up.
14412  rm -f a.out a.exe
14413else
14414  echo "libtool.m4: error: problem compiling CXX test program"
14415fi
14416
14417$RM -f confest.$objext
14418CFLAGS=$_lt_libdeps_save_CFLAGS
14419
14420# PORTME: override above test on systems where it is broken
14421case $host_os in
14422interix[3-9]*)
14423  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14424  # hack all around it, let's just trust "g++" to DTRT.
14425  predep_objects_CXX=
14426  postdep_objects_CXX=
14427  postdeps_CXX=
14428  ;;
14429
14430linux*)
14431  case `$CC -V 2>&1 | sed 5q` in
14432  *Sun\ C*)
14433    # Sun C++ 5.9
14434
14435    # The more standards-conforming stlport4 library is
14436    # incompatible with the Cstd library. Avoid specifying
14437    # it if it's in CXXFLAGS. Ignore libCrun as
14438    # -library=stlport4 depends on it.
14439    case " $CXX $CXXFLAGS " in
14440    *" -library=stlport4 "*)
14441      solaris_use_stlport4=yes
14442      ;;
14443    esac
14444
14445    if test "$solaris_use_stlport4" != yes; then
14446      postdeps_CXX='-library=Cstd -library=Crun'
14447    fi
14448    ;;
14449  esac
14450  ;;
14451
14452solaris*)
14453  case $cc_basename in
14454  CC* | sunCC*)
14455    # The more standards-conforming stlport4 library is
14456    # incompatible with the Cstd library. Avoid specifying
14457    # it if it's in CXXFLAGS. Ignore libCrun as
14458    # -library=stlport4 depends on it.
14459    case " $CXX $CXXFLAGS " in
14460    *" -library=stlport4 "*)
14461      solaris_use_stlport4=yes
14462      ;;
14463    esac
14464
14465    # Adding this requires a known-good setup of shared libraries for
14466    # Sun compiler versions before 5.6, else PIC objects from an old
14467    # archive will be linked into the output, leading to subtle bugs.
14468    if test "$solaris_use_stlport4" != yes; then
14469      postdeps_CXX='-library=Cstd -library=Crun'
14470    fi
14471    ;;
14472  esac
14473  ;;
14474esac
14475
14476
14477case " $postdeps_CXX " in
14478*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14479esac
14480 compiler_lib_search_dirs_CXX=
14481if test -n "${compiler_lib_search_path_CXX}"; then
14482 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14483fi
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515    lt_prog_compiler_wl_CXX=
14516lt_prog_compiler_pic_CXX=
14517lt_prog_compiler_static_CXX=
14518
14519
14520  # C++ specific cases for pic, static, wl, etc.
14521  if test "$GXX" = yes; then
14522    lt_prog_compiler_wl_CXX='-Wl,'
14523    lt_prog_compiler_static_CXX='-static'
14524
14525    case $host_os in
14526    aix*)
14527      # All AIX code is PIC.
14528      if test "$host_cpu" = ia64; then
14529	# AIX 5 now supports IA64 processor
14530	lt_prog_compiler_static_CXX='-Bstatic'
14531      fi
14532      ;;
14533
14534    amigaos*)
14535      case $host_cpu in
14536      powerpc)
14537            # see comment about AmigaOS4 .so support
14538            lt_prog_compiler_pic_CXX='-fPIC'
14539        ;;
14540      m68k)
14541            # FIXME: we need at least 68020 code to build shared libraries, but
14542            # adding the `-m68020' flag to GCC prevents building anything better,
14543            # like `-m68040'.
14544            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14545        ;;
14546      esac
14547      ;;
14548
14549    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14550      # PIC is the default for these OSes.
14551      ;;
14552    mingw* | cygwin* | os2* | pw32* | cegcc*)
14553      # This hack is so that the source file can tell whether it is being
14554      # built for inclusion in a dll (and should export symbols for example).
14555      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14556      # (--disable-auto-import) libraries
14557      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14558      ;;
14559    darwin* | rhapsody*)
14560      # PIC is the default on this platform
14561      # Common symbols not allowed in MH_DYLIB files
14562      lt_prog_compiler_pic_CXX='-fno-common'
14563      ;;
14564    *djgpp*)
14565      # DJGPP does not support shared libraries at all
14566      lt_prog_compiler_pic_CXX=
14567      ;;
14568    haiku*)
14569      # PIC is the default for Haiku.
14570      # The "-static" flag exists, but is broken.
14571      lt_prog_compiler_static_CXX=
14572      ;;
14573    interix[3-9]*)
14574      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14575      # Instead, we relocate shared libraries at runtime.
14576      ;;
14577    sysv4*MP*)
14578      if test -d /usr/nec; then
14579	lt_prog_compiler_pic_CXX=-Kconform_pic
14580      fi
14581      ;;
14582    hpux*)
14583      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14584      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14585      # sets the default TLS model and affects inlining.
14586      case $host_cpu in
14587      hppa*64*)
14588	;;
14589      *)
14590	lt_prog_compiler_pic_CXX='-fPIC'
14591	;;
14592      esac
14593      ;;
14594    *qnx* | *nto*)
14595      # QNX uses GNU C++, but need to define -shared option too, otherwise
14596      # it will coredump.
14597      lt_prog_compiler_pic_CXX='-fPIC -shared'
14598      ;;
14599    *)
14600      lt_prog_compiler_pic_CXX='-fPIC'
14601      ;;
14602    esac
14603  else
14604    case $host_os in
14605      aix[4-9]*)
14606	# All AIX code is PIC.
14607	if test "$host_cpu" = ia64; then
14608	  # AIX 5 now supports IA64 processor
14609	  lt_prog_compiler_static_CXX='-Bstatic'
14610	else
14611	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14612	fi
14613	;;
14614      chorus*)
14615	case $cc_basename in
14616	cxch68*)
14617	  # Green Hills C++ Compiler
14618	  # _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"
14619	  ;;
14620	esac
14621	;;
14622      mingw* | cygwin* | os2* | pw32* | cegcc*)
14623	# This hack is so that the source file can tell whether it is being
14624	# built for inclusion in a dll (and should export symbols for example).
14625	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14626	;;
14627      dgux*)
14628	case $cc_basename in
14629	  ec++*)
14630	    lt_prog_compiler_pic_CXX='-KPIC'
14631	    ;;
14632	  ghcx*)
14633	    # Green Hills C++ Compiler
14634	    lt_prog_compiler_pic_CXX='-pic'
14635	    ;;
14636	  *)
14637	    ;;
14638	esac
14639	;;
14640      freebsd* | dragonfly*)
14641	# FreeBSD uses GNU C++
14642	;;
14643      hpux9* | hpux10* | hpux11*)
14644	case $cc_basename in
14645	  CC*)
14646	    lt_prog_compiler_wl_CXX='-Wl,'
14647	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14648	    if test "$host_cpu" != ia64; then
14649	      lt_prog_compiler_pic_CXX='+Z'
14650	    fi
14651	    ;;
14652	  aCC*)
14653	    lt_prog_compiler_wl_CXX='-Wl,'
14654	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14655	    case $host_cpu in
14656	    hppa*64*|ia64*)
14657	      # +Z the default
14658	      ;;
14659	    *)
14660	      lt_prog_compiler_pic_CXX='+Z'
14661	      ;;
14662	    esac
14663	    ;;
14664	  *)
14665	    ;;
14666	esac
14667	;;
14668      interix*)
14669	# This is c89, which is MS Visual C++ (no shared libs)
14670	# Anyone wants to do a port?
14671	;;
14672      irix5* | irix6* | nonstopux*)
14673	case $cc_basename in
14674	  CC*)
14675	    lt_prog_compiler_wl_CXX='-Wl,'
14676	    lt_prog_compiler_static_CXX='-non_shared'
14677	    # CC pic flag -KPIC is the default.
14678	    ;;
14679	  *)
14680	    ;;
14681	esac
14682	;;
14683      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14684	case $cc_basename in
14685	  KCC*)
14686	    # KAI C++ Compiler
14687	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14688	    lt_prog_compiler_pic_CXX='-fPIC'
14689	    ;;
14690	  ecpc* )
14691	    # old Intel C++ for x86_64 which still supported -KPIC.
14692	    lt_prog_compiler_wl_CXX='-Wl,'
14693	    lt_prog_compiler_pic_CXX='-KPIC'
14694	    lt_prog_compiler_static_CXX='-static'
14695	    ;;
14696	  icpc* )
14697	    # Intel C++, used to be incompatible with GCC.
14698	    # ICC 10 doesn't accept -KPIC any more.
14699	    lt_prog_compiler_wl_CXX='-Wl,'
14700	    lt_prog_compiler_pic_CXX='-fPIC'
14701	    lt_prog_compiler_static_CXX='-static'
14702	    ;;
14703	  pgCC* | pgcpp*)
14704	    # Portland Group C++ compiler
14705	    lt_prog_compiler_wl_CXX='-Wl,'
14706	    lt_prog_compiler_pic_CXX='-fpic'
14707	    lt_prog_compiler_static_CXX='-Bstatic'
14708	    ;;
14709	  cxx*)
14710	    # Compaq C++
14711	    # Make sure the PIC flag is empty.  It appears that all Alpha
14712	    # Linux and Compaq Tru64 Unix objects are PIC.
14713	    lt_prog_compiler_pic_CXX=
14714	    lt_prog_compiler_static_CXX='-non_shared'
14715	    ;;
14716	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14717	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14718	    lt_prog_compiler_wl_CXX='-Wl,'
14719	    lt_prog_compiler_pic_CXX='-qpic'
14720	    lt_prog_compiler_static_CXX='-qstaticlink'
14721	    ;;
14722	  *)
14723	    case `$CC -V 2>&1 | sed 5q` in
14724	    *Sun\ C*)
14725	      # Sun C++ 5.9
14726	      lt_prog_compiler_pic_CXX='-KPIC'
14727	      lt_prog_compiler_static_CXX='-Bstatic'
14728	      lt_prog_compiler_wl_CXX='-Qoption ld '
14729	      ;;
14730	    esac
14731	    ;;
14732	esac
14733	;;
14734      lynxos*)
14735	;;
14736      m88k*)
14737	;;
14738      mvs*)
14739	case $cc_basename in
14740	  cxx*)
14741	    lt_prog_compiler_pic_CXX='-W c,exportall'
14742	    ;;
14743	  *)
14744	    ;;
14745	esac
14746	;;
14747      netbsd*)
14748	;;
14749      *qnx* | *nto*)
14750        # QNX uses GNU C++, but need to define -shared option too, otherwise
14751        # it will coredump.
14752        lt_prog_compiler_pic_CXX='-fPIC -shared'
14753        ;;
14754      osf3* | osf4* | osf5*)
14755	case $cc_basename in
14756	  KCC*)
14757	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14758	    ;;
14759	  RCC*)
14760	    # Rational C++ 2.4.1
14761	    lt_prog_compiler_pic_CXX='-pic'
14762	    ;;
14763	  cxx*)
14764	    # Digital/Compaq C++
14765	    lt_prog_compiler_wl_CXX='-Wl,'
14766	    # Make sure the PIC flag is empty.  It appears that all Alpha
14767	    # Linux and Compaq Tru64 Unix objects are PIC.
14768	    lt_prog_compiler_pic_CXX=
14769	    lt_prog_compiler_static_CXX='-non_shared'
14770	    ;;
14771	  *)
14772	    ;;
14773	esac
14774	;;
14775      psos*)
14776	;;
14777      solaris*)
14778	case $cc_basename in
14779	  CC* | sunCC*)
14780	    # Sun C++ 4.2, 5.x and Centerline C++
14781	    lt_prog_compiler_pic_CXX='-KPIC'
14782	    lt_prog_compiler_static_CXX='-Bstatic'
14783	    lt_prog_compiler_wl_CXX='-Qoption ld '
14784	    ;;
14785	  gcx*)
14786	    # Green Hills C++ Compiler
14787	    lt_prog_compiler_pic_CXX='-PIC'
14788	    ;;
14789	  *)
14790	    ;;
14791	esac
14792	;;
14793      sunos4*)
14794	case $cc_basename in
14795	  CC*)
14796	    # Sun C++ 4.x
14797	    lt_prog_compiler_pic_CXX='-pic'
14798	    lt_prog_compiler_static_CXX='-Bstatic'
14799	    ;;
14800	  lcc*)
14801	    # Lucid
14802	    lt_prog_compiler_pic_CXX='-pic'
14803	    ;;
14804	  *)
14805	    ;;
14806	esac
14807	;;
14808      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14809	case $cc_basename in
14810	  CC*)
14811	    lt_prog_compiler_wl_CXX='-Wl,'
14812	    lt_prog_compiler_pic_CXX='-KPIC'
14813	    lt_prog_compiler_static_CXX='-Bstatic'
14814	    ;;
14815	esac
14816	;;
14817      tandem*)
14818	case $cc_basename in
14819	  NCC*)
14820	    # NonStop-UX NCC 3.20
14821	    lt_prog_compiler_pic_CXX='-KPIC'
14822	    ;;
14823	  *)
14824	    ;;
14825	esac
14826	;;
14827      vxworks*)
14828	;;
14829      *)
14830	lt_prog_compiler_can_build_shared_CXX=no
14831	;;
14832    esac
14833  fi
14834
14835case $host_os in
14836  # For platforms which do not support PIC, -DPIC is meaningless:
14837  *djgpp*)
14838    lt_prog_compiler_pic_CXX=
14839    ;;
14840  *)
14841    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14842    ;;
14843esac
14844
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14846$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14847if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14848  $as_echo_n "(cached) " >&6
14849else
14850  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14851fi
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14853$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14854lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14855
14856#
14857# Check to make sure the PIC flag actually works.
14858#
14859if test -n "$lt_prog_compiler_pic_CXX"; then
14860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14861$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14862if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14863  $as_echo_n "(cached) " >&6
14864else
14865  lt_cv_prog_compiler_pic_works_CXX=no
14866   ac_outfile=conftest.$ac_objext
14867   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14869   # Insert the option either (1) after the last *FLAGS variable, or
14870   # (2) before a word containing "conftest.", or (3) at the end.
14871   # Note that $ac_compile itself does not contain backslashes and begins
14872   # with a dollar sign (not a hyphen), so the echo should work correctly.
14873   # The option is referenced via a variable to avoid confusing sed.
14874   lt_compile=`echo "$ac_compile" | $SED \
14875   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877   -e 's:$: $lt_compiler_flag:'`
14878   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14879   (eval "$lt_compile" 2>conftest.err)
14880   ac_status=$?
14881   cat conftest.err >&5
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   if (exit $ac_status) && test -s "$ac_outfile"; then
14884     # The compiler can only warn and ignore the option if not recognized
14885     # So say no if there are warnings other than the usual output.
14886     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14887     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14888     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14889       lt_cv_prog_compiler_pic_works_CXX=yes
14890     fi
14891   fi
14892   $RM conftest*
14893
14894fi
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14896$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14897
14898if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14899    case $lt_prog_compiler_pic_CXX in
14900     "" | " "*) ;;
14901     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14902     esac
14903else
14904    lt_prog_compiler_pic_CXX=
14905     lt_prog_compiler_can_build_shared_CXX=no
14906fi
14907
14908fi
14909
14910
14911
14912
14913
14914#
14915# Check to make sure the static flag actually works.
14916#
14917wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14920if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14921  $as_echo_n "(cached) " >&6
14922else
14923  lt_cv_prog_compiler_static_works_CXX=no
14924   save_LDFLAGS="$LDFLAGS"
14925   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14926   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14927   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14928     # The linker can only warn and ignore the option if not recognized
14929     # So say no if there are warnings
14930     if test -s conftest.err; then
14931       # Append any errors to the config.log.
14932       cat conftest.err 1>&5
14933       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14934       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14935       if diff conftest.exp conftest.er2 >/dev/null; then
14936         lt_cv_prog_compiler_static_works_CXX=yes
14937       fi
14938     else
14939       lt_cv_prog_compiler_static_works_CXX=yes
14940     fi
14941   fi
14942   $RM -r conftest*
14943   LDFLAGS="$save_LDFLAGS"
14944
14945fi
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14947$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14948
14949if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14950    :
14951else
14952    lt_prog_compiler_static_CXX=
14953fi
14954
14955
14956
14957
14958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14960if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14961  $as_echo_n "(cached) " >&6
14962else
14963  lt_cv_prog_compiler_c_o_CXX=no
14964   $RM -r conftest 2>/dev/null
14965   mkdir conftest
14966   cd conftest
14967   mkdir out
14968   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14969
14970   lt_compiler_flag="-o out/conftest2.$ac_objext"
14971   # Insert the option either (1) after the last *FLAGS variable, or
14972   # (2) before a word containing "conftest.", or (3) at the end.
14973   # Note that $ac_compile itself does not contain backslashes and begins
14974   # with a dollar sign (not a hyphen), so the echo should work correctly.
14975   lt_compile=`echo "$ac_compile" | $SED \
14976   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978   -e 's:$: $lt_compiler_flag:'`
14979   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980   (eval "$lt_compile" 2>out/conftest.err)
14981   ac_status=$?
14982   cat out/conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14985   then
14986     # The compiler can only warn and ignore the option if not recognized
14987     # So say no if there are warnings
14988     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14989     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14990     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14991       lt_cv_prog_compiler_c_o_CXX=yes
14992     fi
14993   fi
14994   chmod u+w . 2>&5
14995   $RM conftest*
14996   # SGI C++ compiler will create directory out/ii_files/ for
14997   # template instantiation
14998   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14999   $RM out/* && rmdir out
15000   cd ..
15001   $RM -r conftest
15002   $RM conftest*
15003
15004fi
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15006$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15007
15008
15009
15010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15012if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15013  $as_echo_n "(cached) " >&6
15014else
15015  lt_cv_prog_compiler_c_o_CXX=no
15016   $RM -r conftest 2>/dev/null
15017   mkdir conftest
15018   cd conftest
15019   mkdir out
15020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15021
15022   lt_compiler_flag="-o out/conftest2.$ac_objext"
15023   # Insert the option either (1) after the last *FLAGS variable, or
15024   # (2) before a word containing "conftest.", or (3) at the end.
15025   # Note that $ac_compile itself does not contain backslashes and begins
15026   # with a dollar sign (not a hyphen), so the echo should work correctly.
15027   lt_compile=`echo "$ac_compile" | $SED \
15028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15030   -e 's:$: $lt_compiler_flag:'`
15031   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15032   (eval "$lt_compile" 2>out/conftest.err)
15033   ac_status=$?
15034   cat out/conftest.err >&5
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15037   then
15038     # The compiler can only warn and ignore the option if not recognized
15039     # So say no if there are warnings
15040     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15041     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15042     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15043       lt_cv_prog_compiler_c_o_CXX=yes
15044     fi
15045   fi
15046   chmod u+w . 2>&5
15047   $RM conftest*
15048   # SGI C++ compiler will create directory out/ii_files/ for
15049   # template instantiation
15050   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15051   $RM out/* && rmdir out
15052   cd ..
15053   $RM -r conftest
15054   $RM conftest*
15055
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15058$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15059
15060
15061
15062
15063hard_links="nottested"
15064if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15065  # do not overwrite the value of need_locks provided by the user
15066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15067$as_echo_n "checking if we can lock with hard links... " >&6; }
15068  hard_links=yes
15069  $RM conftest*
15070  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15071  touch conftest.a
15072  ln conftest.a conftest.b 2>&5 || hard_links=no
15073  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15075$as_echo "$hard_links" >&6; }
15076  if test "$hard_links" = no; then
15077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15078$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15079    need_locks=warn
15080  fi
15081else
15082  need_locks=no
15083fi
15084
15085
15086
15087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15088$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15089
15090  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15091  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15092  case $host_os in
15093  aix[4-9]*)
15094    # If we're using GNU nm, then we don't want the "-C" option.
15095    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15096    # Also, AIX nm treats weak defined symbols like other global defined
15097    # symbols, whereas GNU nm marks them as "W".
15098    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15099      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'
15100    else
15101      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'
15102    fi
15103    ;;
15104  pw32*)
15105    export_symbols_cmds_CXX="$ltdll_cmds"
15106    ;;
15107  cygwin* | mingw* | cegcc*)
15108    case $cc_basename in
15109    cl*)
15110      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15111      ;;
15112    *)
15113      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'
15114      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15115      ;;
15116    esac
15117    ;;
15118  *)
15119    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15120    ;;
15121  esac
15122
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15124$as_echo "$ld_shlibs_CXX" >&6; }
15125test "$ld_shlibs_CXX" = no && can_build_shared=no
15126
15127with_gnu_ld_CXX=$with_gnu_ld
15128
15129
15130
15131
15132
15133
15134#
15135# Do we need to explicitly link libc?
15136#
15137case "x$archive_cmds_need_lc_CXX" in
15138x|xyes)
15139  # Assume -lc should be added
15140  archive_cmds_need_lc_CXX=yes
15141
15142  if test "$enable_shared" = yes && test "$GCC" = yes; then
15143    case $archive_cmds_CXX in
15144    *'~'*)
15145      # FIXME: we may have to deal with multi-command sequences.
15146      ;;
15147    '$CC '*)
15148      # Test whether the compiler implicitly links with -lc since on some
15149      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150      # to ld, don't add -lc before -lgcc.
15151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15153if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15154  $as_echo_n "(cached) " >&6
15155else
15156  $RM conftest*
15157	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15158
15159	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15160  (eval $ac_compile) 2>&5
15161  ac_status=$?
15162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15163  test $ac_status = 0; } 2>conftest.err; then
15164	  soname=conftest
15165	  lib=conftest
15166	  libobjs=conftest.$ac_objext
15167	  deplibs=
15168	  wl=$lt_prog_compiler_wl_CXX
15169	  pic_flag=$lt_prog_compiler_pic_CXX
15170	  compiler_flags=-v
15171	  linker_flags=-v
15172	  verstring=
15173	  output_objdir=.
15174	  libname=conftest
15175	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15176	  allow_undefined_flag_CXX=
15177	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15178  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15179  ac_status=$?
15180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15181  test $ac_status = 0; }
15182	  then
15183	    lt_cv_archive_cmds_need_lc_CXX=no
15184	  else
15185	    lt_cv_archive_cmds_need_lc_CXX=yes
15186	  fi
15187	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15188	else
15189	  cat conftest.err 1>&5
15190	fi
15191	$RM conftest*
15192
15193fi
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15195$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15196      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15197      ;;
15198    esac
15199  fi
15200  ;;
15201esac
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265$as_echo_n "checking dynamic linker characteristics... " >&6; }
15266
15267library_names_spec=
15268libname_spec='lib$name'
15269soname_spec=
15270shrext_cmds=".so"
15271postinstall_cmds=
15272postuninstall_cmds=
15273finish_cmds=
15274finish_eval=
15275shlibpath_var=
15276shlibpath_overrides_runpath=unknown
15277version_type=none
15278dynamic_linker="$host_os ld.so"
15279sys_lib_dlsearch_path_spec="/lib /usr/lib"
15280need_lib_prefix=unknown
15281hardcode_into_libs=no
15282
15283# when you set need_version to no, make sure it does not cause -set_version
15284# flags to be left without arguments
15285need_version=unknown
15286
15287case $host_os in
15288aix3*)
15289  version_type=linux # correct to gnu/linux during the next big refactor
15290  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15291  shlibpath_var=LIBPATH
15292
15293  # AIX 3 has no versioning support, so we append a major version to the name.
15294  soname_spec='${libname}${release}${shared_ext}$major'
15295  ;;
15296
15297aix[4-9]*)
15298  version_type=linux # correct to gnu/linux during the next big refactor
15299  need_lib_prefix=no
15300  need_version=no
15301  hardcode_into_libs=yes
15302  if test "$host_cpu" = ia64; then
15303    # AIX 5 supports IA64
15304    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15305    shlibpath_var=LD_LIBRARY_PATH
15306  else
15307    # With GCC up to 2.95.x, collect2 would create an import file
15308    # for dependence libraries.  The import file would start with
15309    # the line `#! .'.  This would cause the generated library to
15310    # depend on `.', always an invalid library.  This was fixed in
15311    # development snapshots of GCC prior to 3.0.
15312    case $host_os in
15313      aix4 | aix4.[01] | aix4.[01].*)
15314      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15315	   echo ' yes '
15316	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15317	:
15318      else
15319	can_build_shared=no
15320      fi
15321      ;;
15322    esac
15323    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15324    # soname into executable. Probably we can add versioning support to
15325    # collect2, so additional links can be useful in future.
15326    if test "$aix_use_runtimelinking" = yes; then
15327      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15328      # instead of lib<name>.a to let people know that these are not
15329      # typical AIX shared libraries.
15330      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331    else
15332      # We preserve .a as extension for shared libraries through AIX4.2
15333      # and later when we are not doing run time linking.
15334      library_names_spec='${libname}${release}.a $libname.a'
15335      soname_spec='${libname}${release}${shared_ext}$major'
15336    fi
15337    shlibpath_var=LIBPATH
15338  fi
15339  ;;
15340
15341amigaos*)
15342  case $host_cpu in
15343  powerpc)
15344    # Since July 2007 AmigaOS4 officially supports .so libraries.
15345    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347    ;;
15348  m68k)
15349    library_names_spec='$libname.ixlibrary $libname.a'
15350    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15351    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'
15352    ;;
15353  esac
15354  ;;
15355
15356beos*)
15357  library_names_spec='${libname}${shared_ext}'
15358  dynamic_linker="$host_os ld.so"
15359  shlibpath_var=LIBRARY_PATH
15360  ;;
15361
15362bsdi[45]*)
15363  version_type=linux # correct to gnu/linux during the next big refactor
15364  need_version=no
15365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366  soname_spec='${libname}${release}${shared_ext}$major'
15367  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15368  shlibpath_var=LD_LIBRARY_PATH
15369  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15370  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15371  # the default ld.so.conf also contains /usr/contrib/lib and
15372  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15373  # libtool to hard-code these into programs
15374  ;;
15375
15376cygwin* | mingw* | pw32* | cegcc*)
15377  version_type=windows
15378  shrext_cmds=".dll"
15379  need_version=no
15380  need_lib_prefix=no
15381
15382  case $GCC,$cc_basename in
15383  yes,*)
15384    # gcc
15385    library_names_spec='$libname.dll.a'
15386    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15387    postinstall_cmds='base_file=`basename \${file}`~
15388      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15389      dldir=$destdir/`dirname \$dlpath`~
15390      test -d \$dldir || mkdir -p \$dldir~
15391      $install_prog $dir/$dlname \$dldir/$dlname~
15392      chmod a+x \$dldir/$dlname~
15393      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15394        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15395      fi'
15396    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15397      dlpath=$dir/\$dldll~
15398       $RM \$dlpath'
15399    shlibpath_overrides_runpath=yes
15400
15401    case $host_os in
15402    cygwin*)
15403      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15404      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15405
15406      ;;
15407    mingw* | cegcc*)
15408      # MinGW DLLs use traditional 'lib' prefix
15409      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15410      ;;
15411    pw32*)
15412      # pw32 DLLs use 'pw' prefix rather than 'lib'
15413      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15414      ;;
15415    esac
15416    dynamic_linker='Win32 ld.exe'
15417    ;;
15418
15419  *,cl*)
15420    # Native MSVC
15421    libname_spec='$name'
15422    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423    library_names_spec='${libname}.dll.lib'
15424
15425    case $build_os in
15426    mingw*)
15427      sys_lib_search_path_spec=
15428      lt_save_ifs=$IFS
15429      IFS=';'
15430      for lt_path in $LIB
15431      do
15432        IFS=$lt_save_ifs
15433        # Let DOS variable expansion print the short 8.3 style file name.
15434        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15435        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15436      done
15437      IFS=$lt_save_ifs
15438      # Convert to MSYS style.
15439      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15440      ;;
15441    cygwin*)
15442      # Convert to unix form, then to dos form, then back to unix form
15443      # but this time dos style (no spaces!) so that the unix form looks
15444      # like /cygdrive/c/PROGRA~1:/cygdr...
15445      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15446      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15447      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15448      ;;
15449    *)
15450      sys_lib_search_path_spec="$LIB"
15451      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15452        # It is most probably a Windows format PATH.
15453        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15454      else
15455        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15456      fi
15457      # FIXME: find the short name or the path components, as spaces are
15458      # common. (e.g. "Program Files" -> "PROGRA~1")
15459      ;;
15460    esac
15461
15462    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15463    postinstall_cmds='base_file=`basename \${file}`~
15464      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15465      dldir=$destdir/`dirname \$dlpath`~
15466      test -d \$dldir || mkdir -p \$dldir~
15467      $install_prog $dir/$dlname \$dldir/$dlname'
15468    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15469      dlpath=$dir/\$dldll~
15470       $RM \$dlpath'
15471    shlibpath_overrides_runpath=yes
15472    dynamic_linker='Win32 link.exe'
15473    ;;
15474
15475  *)
15476    # Assume MSVC wrapper
15477    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15478    dynamic_linker='Win32 ld.exe'
15479    ;;
15480  esac
15481  # FIXME: first we should search . and the directory the executable is in
15482  shlibpath_var=PATH
15483  ;;
15484
15485darwin* | rhapsody*)
15486  dynamic_linker="$host_os dyld"
15487  version_type=darwin
15488  need_lib_prefix=no
15489  need_version=no
15490  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15491  soname_spec='${libname}${release}${major}$shared_ext'
15492  shlibpath_overrides_runpath=yes
15493  shlibpath_var=DYLD_LIBRARY_PATH
15494  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15495
15496  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15497  ;;
15498
15499dgux*)
15500  version_type=linux # correct to gnu/linux during the next big refactor
15501  need_lib_prefix=no
15502  need_version=no
15503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15504  soname_spec='${libname}${release}${shared_ext}$major'
15505  shlibpath_var=LD_LIBRARY_PATH
15506  ;;
15507
15508freebsd* | dragonfly*)
15509  # DragonFly does not have aout.  When/if they implement a new
15510  # versioning mechanism, adjust this.
15511  if test -x /usr/bin/objformat; then
15512    objformat=`/usr/bin/objformat`
15513  else
15514    case $host_os in
15515    freebsd[23].*) objformat=aout ;;
15516    *) objformat=elf ;;
15517    esac
15518  fi
15519  version_type=freebsd-$objformat
15520  case $version_type in
15521    freebsd-elf*)
15522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15523      need_version=no
15524      need_lib_prefix=no
15525      ;;
15526    freebsd-*)
15527      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15528      need_version=yes
15529      ;;
15530  esac
15531  shlibpath_var=LD_LIBRARY_PATH
15532  case $host_os in
15533  freebsd2.*)
15534    shlibpath_overrides_runpath=yes
15535    ;;
15536  freebsd3.[01]* | freebsdelf3.[01]*)
15537    shlibpath_overrides_runpath=yes
15538    hardcode_into_libs=yes
15539    ;;
15540  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15541  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15542    shlibpath_overrides_runpath=no
15543    hardcode_into_libs=yes
15544    ;;
15545  *) # from 4.6 on, and DragonFly
15546    shlibpath_overrides_runpath=yes
15547    hardcode_into_libs=yes
15548    ;;
15549  esac
15550  ;;
15551
15552gnu*)
15553  version_type=linux # correct to gnu/linux during the next big refactor
15554  need_lib_prefix=no
15555  need_version=no
15556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15557  soname_spec='${libname}${release}${shared_ext}$major'
15558  shlibpath_var=LD_LIBRARY_PATH
15559  shlibpath_overrides_runpath=no
15560  hardcode_into_libs=yes
15561  ;;
15562
15563haiku*)
15564  version_type=linux # correct to gnu/linux during the next big refactor
15565  need_lib_prefix=no
15566  need_version=no
15567  dynamic_linker="$host_os runtime_loader"
15568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15569  soname_spec='${libname}${release}${shared_ext}$major'
15570  shlibpath_var=LIBRARY_PATH
15571  shlibpath_overrides_runpath=yes
15572  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15573  hardcode_into_libs=yes
15574  ;;
15575
15576hpux9* | hpux10* | hpux11*)
15577  # Give a soname corresponding to the major version so that dld.sl refuses to
15578  # link against other versions.
15579  version_type=sunos
15580  need_lib_prefix=no
15581  need_version=no
15582  case $host_cpu in
15583  ia64*)
15584    shrext_cmds='.so'
15585    hardcode_into_libs=yes
15586    dynamic_linker="$host_os dld.so"
15587    shlibpath_var=LD_LIBRARY_PATH
15588    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590    soname_spec='${libname}${release}${shared_ext}$major'
15591    if test "X$HPUX_IA64_MODE" = X32; then
15592      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15593    else
15594      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15595    fi
15596    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15597    ;;
15598  hppa*64*)
15599    shrext_cmds='.sl'
15600    hardcode_into_libs=yes
15601    dynamic_linker="$host_os dld.sl"
15602    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15603    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15604    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605    soname_spec='${libname}${release}${shared_ext}$major'
15606    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15607    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15608    ;;
15609  *)
15610    shrext_cmds='.sl'
15611    dynamic_linker="$host_os dld.sl"
15612    shlibpath_var=SHLIB_PATH
15613    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615    soname_spec='${libname}${release}${shared_ext}$major'
15616    ;;
15617  esac
15618  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15619  postinstall_cmds='chmod 555 $lib'
15620  # or fails outright, so override atomically:
15621  install_override_mode=555
15622  ;;
15623
15624interix[3-9]*)
15625  version_type=linux # correct to gnu/linux during the next big refactor
15626  need_lib_prefix=no
15627  need_version=no
15628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15629  soname_spec='${libname}${release}${shared_ext}$major'
15630  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15631  shlibpath_var=LD_LIBRARY_PATH
15632  shlibpath_overrides_runpath=no
15633  hardcode_into_libs=yes
15634  ;;
15635
15636irix5* | irix6* | nonstopux*)
15637  case $host_os in
15638    nonstopux*) version_type=nonstopux ;;
15639    *)
15640	if test "$lt_cv_prog_gnu_ld" = yes; then
15641		version_type=linux # correct to gnu/linux during the next big refactor
15642	else
15643		version_type=irix
15644	fi ;;
15645  esac
15646  need_lib_prefix=no
15647  need_version=no
15648  soname_spec='${libname}${release}${shared_ext}$major'
15649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15650  case $host_os in
15651  irix5* | nonstopux*)
15652    libsuff= shlibsuff=
15653    ;;
15654  *)
15655    case $LD in # libtool.m4 will add one of these switches to LD
15656    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15657      libsuff= shlibsuff= libmagic=32-bit;;
15658    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15659      libsuff=32 shlibsuff=N32 libmagic=N32;;
15660    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15661      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15662    *) libsuff= shlibsuff= libmagic=never-match;;
15663    esac
15664    ;;
15665  esac
15666  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15667  shlibpath_overrides_runpath=no
15668  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15669  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15670  hardcode_into_libs=yes
15671  ;;
15672
15673# No shared lib support for Linux oldld, aout, or coff.
15674linux*oldld* | linux*aout* | linux*coff*)
15675  dynamic_linker=no
15676  ;;
15677
15678# This must be glibc/ELF.
15679linux* | k*bsd*-gnu | kopensolaris*-gnu)
15680  version_type=linux # correct to gnu/linux during the next big refactor
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684  soname_spec='${libname}${release}${shared_ext}$major'
15685  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15686  shlibpath_var=LD_LIBRARY_PATH
15687  shlibpath_overrides_runpath=no
15688
15689  # Some binutils ld are patched to set DT_RUNPATH
15690  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15691  $as_echo_n "(cached) " >&6
15692else
15693  lt_cv_shlibpath_overrides_runpath=no
15694    save_LDFLAGS=$LDFLAGS
15695    save_libdir=$libdir
15696    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15697	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15698    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h.  */
15700
15701int
15702main ()
15703{
15704
15705  ;
15706  return 0;
15707}
15708_ACEOF
15709if ac_fn_cxx_try_link "$LINENO"; then :
15710  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15711  lt_cv_shlibpath_overrides_runpath=yes
15712fi
15713fi
15714rm -f core conftest.err conftest.$ac_objext \
15715    conftest$ac_exeext conftest.$ac_ext
15716    LDFLAGS=$save_LDFLAGS
15717    libdir=$save_libdir
15718
15719fi
15720
15721  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15722
15723  # This implies no fast_install, which is unacceptable.
15724  # Some rework will be needed to allow for fast_install
15725  # before this can be enabled.
15726  hardcode_into_libs=yes
15727
15728  # Append ld.so.conf contents to the search path
15729  if test -f /etc/ld.so.conf; then
15730    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' ' '`
15731    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15732  fi
15733
15734  # We used to test for /lib/ld.so.1 and disable shared libraries on
15735  # powerpc, because MkLinux only supported shared libraries with the
15736  # GNU dynamic linker.  Since this was broken with cross compilers,
15737  # most powerpc-linux boxes support dynamic linking these days and
15738  # people can always --disable-shared, the test was removed, and we
15739  # assume the GNU/Linux dynamic linker is in use.
15740  dynamic_linker='GNU/Linux ld.so'
15741  ;;
15742
15743netbsd*)
15744  version_type=sunos
15745  need_lib_prefix=no
15746  need_version=no
15747  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15749    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15750    dynamic_linker='NetBSD (a.out) ld.so'
15751  else
15752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15753    soname_spec='${libname}${release}${shared_ext}$major'
15754    dynamic_linker='NetBSD ld.elf_so'
15755  fi
15756  shlibpath_var=LD_LIBRARY_PATH
15757  shlibpath_overrides_runpath=yes
15758  hardcode_into_libs=yes
15759  ;;
15760
15761newsos6)
15762  version_type=linux # correct to gnu/linux during the next big refactor
15763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764  shlibpath_var=LD_LIBRARY_PATH
15765  shlibpath_overrides_runpath=yes
15766  ;;
15767
15768*nto* | *qnx*)
15769  version_type=qnx
15770  need_lib_prefix=no
15771  need_version=no
15772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773  soname_spec='${libname}${release}${shared_ext}$major'
15774  shlibpath_var=LD_LIBRARY_PATH
15775  shlibpath_overrides_runpath=no
15776  hardcode_into_libs=yes
15777  dynamic_linker='ldqnx.so'
15778  ;;
15779
15780openbsd*)
15781  version_type=sunos
15782  sys_lib_dlsearch_path_spec="/usr/lib"
15783  need_lib_prefix=no
15784  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15785  case $host_os in
15786    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15787    *)				need_version=no  ;;
15788  esac
15789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791  shlibpath_var=LD_LIBRARY_PATH
15792  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15793    case $host_os in
15794      openbsd2.[89] | openbsd2.[89].*)
15795	shlibpath_overrides_runpath=no
15796	;;
15797      *)
15798	shlibpath_overrides_runpath=yes
15799	;;
15800      esac
15801  else
15802    shlibpath_overrides_runpath=yes
15803  fi
15804  ;;
15805
15806os2*)
15807  libname_spec='$name'
15808  shrext_cmds=".dll"
15809  need_lib_prefix=no
15810  library_names_spec='$libname${shared_ext} $libname.a'
15811  dynamic_linker='OS/2 ld.exe'
15812  shlibpath_var=LIBPATH
15813  ;;
15814
15815osf3* | osf4* | osf5*)
15816  version_type=osf
15817  need_lib_prefix=no
15818  need_version=no
15819  soname_spec='${libname}${release}${shared_ext}$major'
15820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821  shlibpath_var=LD_LIBRARY_PATH
15822  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15824  ;;
15825
15826rdos*)
15827  dynamic_linker=no
15828  ;;
15829
15830solaris*)
15831  version_type=linux # correct to gnu/linux during the next big refactor
15832  need_lib_prefix=no
15833  need_version=no
15834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835  soname_spec='${libname}${release}${shared_ext}$major'
15836  shlibpath_var=LD_LIBRARY_PATH
15837  shlibpath_overrides_runpath=yes
15838  hardcode_into_libs=yes
15839  # ldd complains unless libraries are executable
15840  postinstall_cmds='chmod +x $lib'
15841  ;;
15842
15843sunos4*)
15844  version_type=sunos
15845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15846  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15847  shlibpath_var=LD_LIBRARY_PATH
15848  shlibpath_overrides_runpath=yes
15849  if test "$with_gnu_ld" = yes; then
15850    need_lib_prefix=no
15851  fi
15852  need_version=yes
15853  ;;
15854
15855sysv4 | sysv4.3*)
15856  version_type=linux # correct to gnu/linux during the next big refactor
15857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15858  soname_spec='${libname}${release}${shared_ext}$major'
15859  shlibpath_var=LD_LIBRARY_PATH
15860  case $host_vendor in
15861    sni)
15862      shlibpath_overrides_runpath=no
15863      need_lib_prefix=no
15864      runpath_var=LD_RUN_PATH
15865      ;;
15866    siemens)
15867      need_lib_prefix=no
15868      ;;
15869    motorola)
15870      need_lib_prefix=no
15871      need_version=no
15872      shlibpath_overrides_runpath=no
15873      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15874      ;;
15875  esac
15876  ;;
15877
15878sysv4*MP*)
15879  if test -d /usr/nec ;then
15880    version_type=linux # correct to gnu/linux during the next big refactor
15881    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882    soname_spec='$libname${shared_ext}.$major'
15883    shlibpath_var=LD_LIBRARY_PATH
15884  fi
15885  ;;
15886
15887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888  version_type=freebsd-elf
15889  need_lib_prefix=no
15890  need_version=no
15891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892  soname_spec='${libname}${release}${shared_ext}$major'
15893  shlibpath_var=LD_LIBRARY_PATH
15894  shlibpath_overrides_runpath=yes
15895  hardcode_into_libs=yes
15896  if test "$with_gnu_ld" = yes; then
15897    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15898  else
15899    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900    case $host_os in
15901      sco3.2v5*)
15902        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15903	;;
15904    esac
15905  fi
15906  sys_lib_dlsearch_path_spec='/usr/lib'
15907  ;;
15908
15909tpf*)
15910  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15911  version_type=linux # correct to gnu/linux during the next big refactor
15912  need_lib_prefix=no
15913  need_version=no
15914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915  shlibpath_var=LD_LIBRARY_PATH
15916  shlibpath_overrides_runpath=no
15917  hardcode_into_libs=yes
15918  ;;
15919
15920uts4*)
15921  version_type=linux # correct to gnu/linux during the next big refactor
15922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923  soname_spec='${libname}${release}${shared_ext}$major'
15924  shlibpath_var=LD_LIBRARY_PATH
15925  ;;
15926
15927*)
15928  dynamic_linker=no
15929  ;;
15930esac
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15932$as_echo "$dynamic_linker" >&6; }
15933test "$dynamic_linker" = no && can_build_shared=no
15934
15935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15936if test "$GCC" = yes; then
15937  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15938fi
15939
15940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15941  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15942fi
15943if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15944  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15945fi
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15985$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15986hardcode_action_CXX=
15987if test -n "$hardcode_libdir_flag_spec_CXX" ||
15988   test -n "$runpath_var_CXX" ||
15989   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15990
15991  # We can hardcode non-existent directories.
15992  if test "$hardcode_direct_CXX" != no &&
15993     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15994     # have to relink, otherwise we might link with an installed library
15995     # when we should be linking with a yet-to-be-installed one
15996     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15997     test "$hardcode_minus_L_CXX" != no; then
15998    # Linking always hardcodes the temporary library directory.
15999    hardcode_action_CXX=relink
16000  else
16001    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16002    hardcode_action_CXX=immediate
16003  fi
16004else
16005  # We cannot hardcode anything, or else we can only hardcode existing
16006  # directories.
16007  hardcode_action_CXX=unsupported
16008fi
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16010$as_echo "$hardcode_action_CXX" >&6; }
16011
16012if test "$hardcode_action_CXX" = relink ||
16013   test "$inherit_rpath_CXX" = yes; then
16014  # Fast installation is not supported
16015  enable_fast_install=no
16016elif test "$shlibpath_overrides_runpath" = yes ||
16017     test "$enable_shared" = no; then
16018  # Fast installation is not necessary
16019  enable_fast_install=needless
16020fi
16021
16022
16023
16024
16025
16026
16027
16028  fi # test -n "$compiler"
16029
16030  CC=$lt_save_CC
16031  CFLAGS=$lt_save_CFLAGS
16032  LDCXX=$LD
16033  LD=$lt_save_LD
16034  GCC=$lt_save_GCC
16035  with_gnu_ld=$lt_save_with_gnu_ld
16036  lt_cv_path_LDCXX=$lt_cv_path_LD
16037  lt_cv_path_LD=$lt_save_path_LD
16038  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16039  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16040fi # test "$_lt_caught_CXX_error" != yes
16041
16042ac_ext=c
16043ac_cpp='$CPP $CPPFLAGS'
16044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047
16048
16049
16050# Enable support for silent build rules
16051# Check whether --enable-silent-rules was given.
16052if test "${enable_silent_rules+set}" = set; then :
16053  enableval=$enable_silent_rules;
16054fi
16055
16056case $enable_silent_rules in # (((
16057  yes) AM_DEFAULT_VERBOSITY=0;;
16058   no) AM_DEFAULT_VERBOSITY=1;;
16059    *) AM_DEFAULT_VERBOSITY=1;;
16060esac
16061am_make=${MAKE-make}
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16063$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16064if ${am_cv_make_support_nested_variables+:} false; then :
16065  $as_echo_n "(cached) " >&6
16066else
16067  if $as_echo 'TRUE=$(BAR$(V))
16068BAR0=false
16069BAR1=true
16070V=1
16071am__doit:
16072	@$(TRUE)
16073.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16074  am_cv_make_support_nested_variables=yes
16075else
16076  am_cv_make_support_nested_variables=no
16077fi
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16080$as_echo "$am_cv_make_support_nested_variables" >&6; }
16081if test $am_cv_make_support_nested_variables = yes; then
16082    AM_V='$(V)'
16083  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16084else
16085  AM_V=$AM_DEFAULT_VERBOSITY
16086  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16087fi
16088AM_BACKSLASH='\'
16089
16090
16091tiff_libs_private=
16092
16093
16094case "${host_os}" in
16095    cygwin* | mingw32* | beos* | darwin*)
16096        ;;
16097    *)
16098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16099$as_echo_n "checking for sin in -lm... " >&6; }
16100if ${ac_cv_lib_m_sin+:} false; then :
16101  $as_echo_n "(cached) " >&6
16102else
16103  ac_check_lib_save_LIBS=$LIBS
16104LIBS="-lm  $LIBS"
16105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h.  */
16107
16108/* Override any GCC internal prototype to avoid an error.
16109   Use char because int might match the return type of a GCC
16110   builtin and then its argument prototype would still apply.  */
16111#ifdef __cplusplus
16112extern "C"
16113#endif
16114char sin ();
16115int
16116main ()
16117{
16118return sin ();
16119  ;
16120  return 0;
16121}
16122_ACEOF
16123if ac_fn_c_try_link "$LINENO"; then :
16124  ac_cv_lib_m_sin=yes
16125else
16126  ac_cv_lib_m_sin=no
16127fi
16128rm -f core conftest.err conftest.$ac_objext \
16129    conftest$ac_exeext conftest.$ac_ext
16130LIBS=$ac_check_lib_save_LIBS
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16133$as_echo "$ac_cv_lib_m_sin" >&6; }
16134if test "x$ac_cv_lib_m_sin" = xyes; then :
16135  libm_lib=yes
16136else
16137  libm_lib=no
16138fi
16139
16140	if test "x$libm_lib" = "xyes" ; then
16141	  LIBS="-lm $LIBS"
16142	  tiff_libs_private="-lm ${tiff_libs_private}"
16143	fi
16144        ;;
16145esac
16146
16147for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16148do :
16149  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16152  cat >>confdefs.h <<_ACEOF
16153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154_ACEOF
16155
16156fi
16157
16158done
16159
16160
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16162$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16163if ${ac_cv_c_const+:} false; then :
16164  $as_echo_n "(cached) " >&6
16165else
16166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h.  */
16168
16169int
16170main ()
16171{
16172
16173#ifndef __cplusplus
16174  /* Ultrix mips cc rejects this sort of thing.  */
16175  typedef int charset[2];
16176  const charset cs = { 0, 0 };
16177  /* SunOS 4.1.1 cc rejects this.  */
16178  char const *const *pcpcc;
16179  char **ppc;
16180  /* NEC SVR4.0.2 mips cc rejects this.  */
16181  struct point {int x, y;};
16182  static struct point const zero = {0,0};
16183  /* AIX XL C 1.02.0.0 rejects this.
16184     It does not let you subtract one const X* pointer from another in
16185     an arm of an if-expression whose if-part is not a constant
16186     expression */
16187  const char *g = "string";
16188  pcpcc = &g + (g ? g-g : 0);
16189  /* HPUX 7.0 cc rejects these. */
16190  ++pcpcc;
16191  ppc = (char**) pcpcc;
16192  pcpcc = (char const *const *) ppc;
16193  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16194    char tx;
16195    char *t = &tx;
16196    char const *s = 0 ? (char *) 0 : (char const *) 0;
16197
16198    *t++ = 0;
16199    if (s) return 0;
16200  }
16201  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16202    int x[] = {25, 17};
16203    const int *foo = &x[0];
16204    ++foo;
16205  }
16206  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16207    typedef const int *iptr;
16208    iptr p = 0;
16209    ++p;
16210  }
16211  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16212       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16213    struct s { int j; const int *ap[3]; } bx;
16214    struct s *b = &bx; b->j = 5;
16215  }
16216  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16217    const int foo = 10;
16218    if (!foo) return 0;
16219  }
16220  return !cs[0] && !zero.x;
16221#endif
16222
16223  ;
16224  return 0;
16225}
16226_ACEOF
16227if ac_fn_c_try_compile "$LINENO"; then :
16228  ac_cv_c_const=yes
16229else
16230  ac_cv_c_const=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16235$as_echo "$ac_cv_c_const" >&6; }
16236if test $ac_cv_c_const = no; then
16237
16238$as_echo "#define const /**/" >>confdefs.h
16239
16240fi
16241
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16243$as_echo_n "checking for inline... " >&6; }
16244if ${ac_cv_c_inline+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  ac_cv_c_inline=no
16248for ac_kw in inline __inline__ __inline; do
16249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250/* end confdefs.h.  */
16251#ifndef __cplusplus
16252typedef int foo_t;
16253static $ac_kw foo_t static_foo () {return 0; }
16254$ac_kw foo_t foo () {return 0; }
16255#endif
16256
16257_ACEOF
16258if ac_fn_c_try_compile "$LINENO"; then :
16259  ac_cv_c_inline=$ac_kw
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262  test "$ac_cv_c_inline" != no && break
16263done
16264
16265fi
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16267$as_echo "$ac_cv_c_inline" >&6; }
16268
16269case $ac_cv_c_inline in
16270  inline | yes) ;;
16271  *)
16272    case $ac_cv_c_inline in
16273      no) ac_val=;;
16274      *) ac_val=$ac_cv_c_inline;;
16275    esac
16276    cat >>confdefs.h <<_ACEOF
16277#ifndef __cplusplus
16278#define inline $ac_val
16279#endif
16280_ACEOF
16281    ;;
16282esac
16283
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16285$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16286if ${ac_cv_c_bigendian+:} false; then :
16287  $as_echo_n "(cached) " >&6
16288else
16289  ac_cv_c_bigendian=unknown
16290    # See if we're dealing with a universal compiler.
16291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h.  */
16293#ifndef __APPLE_CC__
16294	       not a universal capable compiler
16295	     #endif
16296	     typedef int dummy;
16297
16298_ACEOF
16299if ac_fn_c_try_compile "$LINENO"; then :
16300
16301	# Check for potential -arch flags.  It is not universal unless
16302	# there are at least two -arch flags with different values.
16303	ac_arch=
16304	ac_prev=
16305	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16306	 if test -n "$ac_prev"; then
16307	   case $ac_word in
16308	     i?86 | x86_64 | ppc | ppc64)
16309	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16310		 ac_arch=$ac_word
16311	       else
16312		 ac_cv_c_bigendian=universal
16313		 break
16314	       fi
16315	       ;;
16316	   esac
16317	   ac_prev=
16318	 elif test "x$ac_word" = "x-arch"; then
16319	   ac_prev=arch
16320	 fi
16321       done
16322fi
16323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324    if test $ac_cv_c_bigendian = unknown; then
16325      # See if sys/param.h defines the BYTE_ORDER macro.
16326      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327/* end confdefs.h.  */
16328#include <sys/types.h>
16329	     #include <sys/param.h>
16330
16331int
16332main ()
16333{
16334#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16335		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16336		     && LITTLE_ENDIAN)
16337	      bogus endian macros
16338	     #endif
16339
16340  ;
16341  return 0;
16342}
16343_ACEOF
16344if ac_fn_c_try_compile "$LINENO"; then :
16345  # It does; now see whether it defined to BIG_ENDIAN or not.
16346	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347/* end confdefs.h.  */
16348#include <sys/types.h>
16349		#include <sys/param.h>
16350
16351int
16352main ()
16353{
16354#if BYTE_ORDER != BIG_ENDIAN
16355		 not big endian
16356		#endif
16357
16358  ;
16359  return 0;
16360}
16361_ACEOF
16362if ac_fn_c_try_compile "$LINENO"; then :
16363  ac_cv_c_bigendian=yes
16364else
16365  ac_cv_c_bigendian=no
16366fi
16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368fi
16369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370    fi
16371    if test $ac_cv_c_bigendian = unknown; then
16372      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16373      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375#include <limits.h>
16376
16377int
16378main ()
16379{
16380#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16381	      bogus endian macros
16382	     #endif
16383
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388if ac_fn_c_try_compile "$LINENO"; then :
16389  # It does; now see whether it defined to _BIG_ENDIAN or not.
16390	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392#include <limits.h>
16393
16394int
16395main ()
16396{
16397#ifndef _BIG_ENDIAN
16398		 not big endian
16399		#endif
16400
16401  ;
16402  return 0;
16403}
16404_ACEOF
16405if ac_fn_c_try_compile "$LINENO"; then :
16406  ac_cv_c_bigendian=yes
16407else
16408  ac_cv_c_bigendian=no
16409fi
16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411fi
16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413    fi
16414    if test $ac_cv_c_bigendian = unknown; then
16415      # Compile a test program.
16416      if test "$cross_compiling" = yes; then :
16417  # Try to guess by grepping values from an object file.
16418	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419/* end confdefs.h.  */
16420short int ascii_mm[] =
16421		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16422		short int ascii_ii[] =
16423		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16424		int use_ascii (int i) {
16425		  return ascii_mm[i] + ascii_ii[i];
16426		}
16427		short int ebcdic_ii[] =
16428		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16429		short int ebcdic_mm[] =
16430		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16431		int use_ebcdic (int i) {
16432		  return ebcdic_mm[i] + ebcdic_ii[i];
16433		}
16434		extern int foo;
16435
16436int
16437main ()
16438{
16439return use_ascii (foo) == use_ebcdic (foo);
16440  ;
16441  return 0;
16442}
16443_ACEOF
16444if ac_fn_c_try_compile "$LINENO"; then :
16445  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16446	      ac_cv_c_bigendian=yes
16447	    fi
16448	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16449	      if test "$ac_cv_c_bigendian" = unknown; then
16450		ac_cv_c_bigendian=no
16451	      else
16452		# finding both strings is unlikely to happen, but who knows?
16453		ac_cv_c_bigendian=unknown
16454	      fi
16455	    fi
16456fi
16457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458else
16459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460/* end confdefs.h.  */
16461$ac_includes_default
16462int
16463main ()
16464{
16465
16466	     /* Are we little or big endian?  From Harbison&Steele.  */
16467	     union
16468	     {
16469	       long int l;
16470	       char c[sizeof (long int)];
16471	     } u;
16472	     u.l = 1;
16473	     return u.c[sizeof (long int) - 1] == 1;
16474
16475  ;
16476  return 0;
16477}
16478_ACEOF
16479if ac_fn_c_try_run "$LINENO"; then :
16480  ac_cv_c_bigendian=no
16481else
16482  ac_cv_c_bigendian=yes
16483fi
16484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16485  conftest.$ac_objext conftest.beam conftest.$ac_ext
16486fi
16487
16488    fi
16489fi
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16491$as_echo "$ac_cv_c_bigendian" >&6; }
16492 case $ac_cv_c_bigendian in #(
16493   yes)
16494     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16495;; #(
16496   no)
16497      ;; #(
16498   universal)
16499
16500$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16501
16502     ;; #(
16503   *)
16504     as_fn_error $? "unknown endianness
16505 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16506 esac
16507
16508ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16509if test "x$ac_cv_type_off_t" = xyes; then :
16510
16511else
16512
16513cat >>confdefs.h <<_ACEOF
16514#define off_t long int
16515_ACEOF
16516
16517fi
16518
16519ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16520if test "x$ac_cv_type_size_t" = xyes; then :
16521
16522else
16523
16524cat >>confdefs.h <<_ACEOF
16525#define size_t unsigned int
16526_ACEOF
16527
16528fi
16529
16530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16531$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16532if ${ac_cv_header_time+:} false; then :
16533  $as_echo_n "(cached) " >&6
16534else
16535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536/* end confdefs.h.  */
16537#include <sys/types.h>
16538#include <sys/time.h>
16539#include <time.h>
16540
16541int
16542main ()
16543{
16544if ((struct tm *) 0)
16545return 0;
16546  ;
16547  return 0;
16548}
16549_ACEOF
16550if ac_fn_c_try_compile "$LINENO"; then :
16551  ac_cv_header_time=yes
16552else
16553  ac_cv_header_time=no
16554fi
16555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16558$as_echo "$ac_cv_header_time" >&6; }
16559if test $ac_cv_header_time = yes; then
16560
16561$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16562
16563fi
16564
16565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16566$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16567if ${ac_cv_struct_tm+:} false; then :
16568  $as_echo_n "(cached) " >&6
16569else
16570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571/* end confdefs.h.  */
16572#include <sys/types.h>
16573#include <time.h>
16574
16575int
16576main ()
16577{
16578struct tm tm;
16579				     int *p = &tm.tm_sec;
16580				     return !p;
16581  ;
16582  return 0;
16583}
16584_ACEOF
16585if ac_fn_c_try_compile "$LINENO"; then :
16586  ac_cv_struct_tm=time.h
16587else
16588  ac_cv_struct_tm=sys/time.h
16589fi
16590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16591fi
16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16593$as_echo "$ac_cv_struct_tm" >&6; }
16594if test $ac_cv_struct_tm = sys/time.h; then
16595
16596$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16597
16598fi
16599
16600
16601
16602# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
16603# The cast to long int works around a bug in the HP C Compiler
16604# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16605# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16606# This bug is HP SR number 8606223364.
16607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
16608$as_echo_n "checking size of signed short... " >&6; }
16609if ${ac_cv_sizeof_signed_short+:} false; then :
16610  $as_echo_n "(cached) " >&6
16611else
16612  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
16613
16614else
16615  if test "$ac_cv_type_signed_short" = yes; then
16616     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16618as_fn_error 77 "cannot compute sizeof (signed short)
16619See \`config.log' for more details" "$LINENO" 5; }
16620   else
16621     ac_cv_sizeof_signed_short=0
16622   fi
16623fi
16624
16625fi
16626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
16627$as_echo "$ac_cv_sizeof_signed_short" >&6; }
16628
16629
16630
16631cat >>confdefs.h <<_ACEOF
16632#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
16633_ACEOF
16634
16635
16636
16637# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
16638# The cast to long int works around a bug in the HP C Compiler
16639# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16640# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16641# This bug is HP SR number 8606223364.
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16643$as_echo_n "checking size of unsigned short... " >&6; }
16644if ${ac_cv_sizeof_unsigned_short+:} false; then :
16645  $as_echo_n "(cached) " >&6
16646else
16647  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
16648
16649else
16650  if test "$ac_cv_type_unsigned_short" = yes; then
16651     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16653as_fn_error 77 "cannot compute sizeof (unsigned short)
16654See \`config.log' for more details" "$LINENO" 5; }
16655   else
16656     ac_cv_sizeof_unsigned_short=0
16657   fi
16658fi
16659
16660fi
16661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16662$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16663
16664
16665
16666cat >>confdefs.h <<_ACEOF
16667#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16668_ACEOF
16669
16670
16671
16672# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
16673# The cast to long int works around a bug in the HP C Compiler
16674# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16675# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16676# This bug is HP SR number 8606223364.
16677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
16678$as_echo_n "checking size of signed int... " >&6; }
16679if ${ac_cv_sizeof_signed_int+:} false; then :
16680  $as_echo_n "(cached) " >&6
16681else
16682  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
16683
16684else
16685  if test "$ac_cv_type_signed_int" = yes; then
16686     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16688as_fn_error 77 "cannot compute sizeof (signed int)
16689See \`config.log' for more details" "$LINENO" 5; }
16690   else
16691     ac_cv_sizeof_signed_int=0
16692   fi
16693fi
16694
16695fi
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16697$as_echo "$ac_cv_sizeof_signed_int" >&6; }
16698
16699
16700
16701cat >>confdefs.h <<_ACEOF
16702#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16703_ACEOF
16704
16705
16706
16707# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
16708# The cast to long int works around a bug in the HP C Compiler
16709# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16710# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16711# This bug is HP SR number 8606223364.
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16713$as_echo_n "checking size of unsigned int... " >&6; }
16714if ${ac_cv_sizeof_unsigned_int+:} false; then :
16715  $as_echo_n "(cached) " >&6
16716else
16717  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16718
16719else
16720  if test "$ac_cv_type_unsigned_int" = yes; then
16721     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16723as_fn_error 77 "cannot compute sizeof (unsigned int)
16724See \`config.log' for more details" "$LINENO" 5; }
16725   else
16726     ac_cv_sizeof_unsigned_int=0
16727   fi
16728fi
16729
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16732$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16733
16734
16735
16736cat >>confdefs.h <<_ACEOF
16737#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16738_ACEOF
16739
16740
16741
16742# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
16743# The cast to long int works around a bug in the HP C Compiler
16744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16746# This bug is HP SR number 8606223364.
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
16748$as_echo_n "checking size of signed long... " >&6; }
16749if ${ac_cv_sizeof_signed_long+:} false; then :
16750  $as_echo_n "(cached) " >&6
16751else
16752  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
16753
16754else
16755  if test "$ac_cv_type_signed_long" = yes; then
16756     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16758as_fn_error 77 "cannot compute sizeof (signed long)
16759See \`config.log' for more details" "$LINENO" 5; }
16760   else
16761     ac_cv_sizeof_signed_long=0
16762   fi
16763fi
16764
16765fi
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16767$as_echo "$ac_cv_sizeof_signed_long" >&6; }
16768
16769
16770
16771cat >>confdefs.h <<_ACEOF
16772#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
16773_ACEOF
16774
16775
16776
16777# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
16778# The cast to long int works around a bug in the HP C Compiler
16779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16781# This bug is HP SR number 8606223364.
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16783$as_echo_n "checking size of unsigned long... " >&6; }
16784if ${ac_cv_sizeof_unsigned_long+:} false; then :
16785  $as_echo_n "(cached) " >&6
16786else
16787  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16788
16789else
16790  if test "$ac_cv_type_unsigned_long" = yes; then
16791     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16793as_fn_error 77 "cannot compute sizeof (unsigned long)
16794See \`config.log' for more details" "$LINENO" 5; }
16795   else
16796     ac_cv_sizeof_unsigned_long=0
16797   fi
16798fi
16799
16800fi
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16802$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16803
16804
16805
16806cat >>confdefs.h <<_ACEOF
16807#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16808_ACEOF
16809
16810
16811
16812# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
16813# If 'long long' is not supported then the value defined is zero.
16814# The cast to long int works around a bug in the HP C Compiler
16815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16817# This bug is HP SR number 8606223364.
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
16819$as_echo_n "checking size of signed long long... " >&6; }
16820if ${ac_cv_sizeof_signed_long_long+:} false; then :
16821  $as_echo_n "(cached) " >&6
16822else
16823  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
16824
16825else
16826  if test "$ac_cv_type_signed_long_long" = yes; then
16827     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16829as_fn_error 77 "cannot compute sizeof (signed long long)
16830See \`config.log' for more details" "$LINENO" 5; }
16831   else
16832     ac_cv_sizeof_signed_long_long=0
16833   fi
16834fi
16835
16836fi
16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
16838$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
16839
16840
16841
16842cat >>confdefs.h <<_ACEOF
16843#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
16844_ACEOF
16845
16846
16847
16848# Obtain size of a 'unsigned long long' and define as
16849# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
16850# supported then the value defined is zero.
16851# The cast to long int works around a bug in the HP C Compiler
16852# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16853# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16854# This bug is HP SR number 8606223364.
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16856$as_echo_n "checking size of unsigned long long... " >&6; }
16857if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
16861
16862else
16863  if test "$ac_cv_type_unsigned_long_long" = yes; then
16864     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16866as_fn_error 77 "cannot compute sizeof (unsigned long long)
16867See \`config.log' for more details" "$LINENO" 5; }
16868   else
16869     ac_cv_sizeof_unsigned_long_long=0
16870   fi
16871fi
16872
16873fi
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16875$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
16876
16877
16878
16879cat >>confdefs.h <<_ACEOF
16880#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16881_ACEOF
16882
16883
16884
16885# Obtain the size of an 'unsigned char *' and define as
16886# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
16887# ac_cv_sizeof_unsigned_char_p.
16888# The cast to long int works around a bug in the HP C Compiler
16889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16891# This bug is HP SR number 8606223364.
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
16893$as_echo_n "checking size of unsigned char *... " >&6; }
16894if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
16895  $as_echo_n "(cached) " >&6
16896else
16897  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
16898
16899else
16900  if test "$ac_cv_type_unsigned_char_p" = yes; then
16901     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16903as_fn_error 77 "cannot compute sizeof (unsigned char *)
16904See \`config.log' for more details" "$LINENO" 5; }
16905   else
16906     ac_cv_sizeof_unsigned_char_p=0
16907   fi
16908fi
16909
16910fi
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
16912$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
16913
16914
16915
16916cat >>confdefs.h <<_ACEOF
16917#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
16918_ACEOF
16919
16920
16921
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
16923$as_echo_n "checking for signed 8-bit type... " >&6; }
16924INT8_T='signed char'
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
16926$as_echo "$INT8_T" >&6; }
16927
16928cat >>confdefs.h <<_ACEOF
16929#define TIFF_INT8_T $INT8_T
16930_ACEOF
16931
16932
16933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
16934$as_echo_n "checking for unsigned 8-bit type... " >&6; }
16935UINT8_T='unsigned char'
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
16937$as_echo "$UINT8_T" >&6; }
16938
16939cat >>confdefs.h <<_ACEOF
16940#define TIFF_UINT8_T $UINT8_T
16941_ACEOF
16942
16943
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
16945$as_echo_n "checking for signed 16-bit type... " >&6; }
16946INT16_T='signed short'
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
16948$as_echo "$INT16_T" >&6; }
16949
16950cat >>confdefs.h <<_ACEOF
16951#define TIFF_INT16_T $INT16_T
16952_ACEOF
16953
16954
16955
16956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
16957$as_echo_n "checking for unsigned 16-bit type... " >&6; }
16958UINT16_T='unsigned short'
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
16960$as_echo "$UINT16_T" >&6; }
16961
16962cat >>confdefs.h <<_ACEOF
16963#define TIFF_UINT16_T $UINT16_T
16964_ACEOF
16965
16966
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
16968$as_echo_n "checking for signed 32-bit type... " >&6; }
16969INT32_T='none'
16970INT32_FORMAT='none'
16971if test $ac_cv_sizeof_signed_int -eq 4
16972then
16973  INT32_T='signed int'
16974  INT32_FORMAT='"%d"'
16975elif test $ac_cv_sizeof_signed_long -eq 4
16976then
16977  INT32_T='signed long'
16978  INT32_FORMAT='"%ld"'
16979fi
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
16981$as_echo "$INT32_T" >&6; }
16982
16983cat >>confdefs.h <<_ACEOF
16984#define TIFF_INT32_T $INT32_T
16985_ACEOF
16986
16987
16988cat >>confdefs.h <<_ACEOF
16989#define TIFF_INT32_FORMAT $INT32_FORMAT
16990_ACEOF
16991
16992
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
16994$as_echo_n "checking for unsigned 32-bit type... " >&6; }
16995UINT32_T='none'
16996UINT32_FORMAT='none'
16997if test $ac_cv_sizeof_unsigned_int -eq 4
16998then
16999  UINT32_T='unsigned int'
17000  UINT32_FORMAT='"%u"'
17001elif test $ac_cv_sizeof_unsigned_long -eq 4
17002then
17003  UINT32_T='unsigned long'
17004  UINT32_FORMAT='"%lu"'
17005fi
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17007$as_echo "$UINT32_T" >&6; }
17008
17009cat >>confdefs.h <<_ACEOF
17010#define TIFF_UINT32_T $UINT32_T
17011_ACEOF
17012
17013
17014cat >>confdefs.h <<_ACEOF
17015#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17016_ACEOF
17017
17018
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17020$as_echo_n "checking for signed 64-bit type... " >&6; }
17021INT64_T='none'
17022INT64_FORMAT='none'
17023if test $ac_cv_sizeof_signed_long -eq 8
17024then
17025  INT64_T='signed long'
17026  INT64_FORMAT='"%ld"'
17027elif test $ac_cv_sizeof_signed_long_long -eq 8
17028then
17029  INT64_T='signed long long'
17030  case "${host_os}" in
17031    mingw32*)
17032      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17033      INT64_FORMAT='"%I64d"'
17034      ;;
17035    *)
17036      INT64_FORMAT='"%lld"'
17037      ;;
17038  esac
17039fi
17040
17041
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17043$as_echo "$INT64_T" >&6; }
17044
17045cat >>confdefs.h <<_ACEOF
17046#define TIFF_INT64_T $INT64_T
17047_ACEOF
17048
17049
17050cat >>confdefs.h <<_ACEOF
17051#define TIFF_INT64_FORMAT $INT64_FORMAT
17052_ACEOF
17053
17054
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17056$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17057UINT64_T='none'
17058UINT64_FORMAT='none'
17059if test $ac_cv_sizeof_unsigned_long -eq 8
17060then
17061  UINT64_T='unsigned long'
17062  UINT64_FORMAT='"%lu"'
17063elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17064then
17065  UINT64_T='unsigned long long'
17066  case "${host_os}" in
17067    mingw32*)
17068      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17069      UINT64_FORMAT='"%I64u"'
17070      ;;
17071    *)
17072      UINT64_FORMAT='"%llu"'
17073      ;;
17074  esac
17075fi
17076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17077$as_echo "$UINT64_T" >&6; }
17078
17079cat >>confdefs.h <<_ACEOF
17080#define TIFF_UINT64_T $UINT64_T
17081_ACEOF
17082
17083
17084cat >>confdefs.h <<_ACEOF
17085#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17086_ACEOF
17087
17088
17089# Determine TIFF equivalent of ssize_t
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17091$as_echo_n "checking for signed size type... " >&6; }
17092SSIZE_T='unknown'
17093SSIZE_FORMAT='unknown'
17094if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17095then
17096  SSIZE_T='signed long'
17097  SSIZE_FORMAT='"%ld"'
17098elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17099then
17100  SSIZE_T='signed long long'
17101  SSIZE_FORMAT='"%lld"'
17102fi
17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17104$as_echo "$SSIZE_T" >&6; }
17105
17106cat >>confdefs.h <<_ACEOF
17107#define TIFF_SSIZE_T $SSIZE_T
17108_ACEOF
17109
17110
17111cat >>confdefs.h <<_ACEOF
17112#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17113_ACEOF
17114
17115
17116# Determine the type to use for the difference between two pointers.
17117# We will default to the POSIX ptrdiff_t if it is available, but will
17118# be prepared for the case when it is not.
17119PTRDIFF_T='unknown'
17120PTRDIFF_FORMAT='"%ld"'
17121ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17122if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17123  PTRDIFF_T=ptrdiff_t
17124fi
17125
17126if test $PTRDIFF_T = unknown
17127then
17128  PTRDIFF_T=$SSIZE_T
17129  PTRDIFF_FORMAT=$SSIZE_FORMAT
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17132$as_echo_n "checking for pointer difference type... " >&6; }
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17134$as_echo "$PTRDIFF_T" >&6; }
17135
17136cat >>confdefs.h <<_ACEOF
17137#define TIFF_PTRDIFF_T $PTRDIFF_T
17138_ACEOF
17139
17140
17141cat >>confdefs.h <<_ACEOF
17142#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17143_ACEOF
17144
17145
17146ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17147#if HAVE_INTTYPES_H
17148# include <inttypes.h>
17149#endif
17150
17151"
17152if test "x$ac_cv_type_int8" = xyes; then :
17153
17154cat >>confdefs.h <<_ACEOF
17155#define HAVE_INT8 1
17156_ACEOF
17157
17158
17159fi
17160ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17161#if HAVE_INTTYPES_H
17162# include <inttypes.h>
17163#endif
17164
17165"
17166if test "x$ac_cv_type_int16" = xyes; then :
17167
17168cat >>confdefs.h <<_ACEOF
17169#define HAVE_INT16 1
17170_ACEOF
17171
17172
17173fi
17174ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17175#if HAVE_INTTYPES_H
17176# include <inttypes.h>
17177#endif
17178
17179"
17180if test "x$ac_cv_type_int32" = xyes; then :
17181
17182cat >>confdefs.h <<_ACEOF
17183#define HAVE_INT32 1
17184_ACEOF
17185
17186
17187fi
17188
17189
17190for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17191do :
17192  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17193ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17194if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17195  cat >>confdefs.h <<_ACEOF
17196#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17197_ACEOF
17198
17199fi
17200done
17201
17202
17203ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17204if test "x$ac_cv_func_getopt" = xyes; then :
17205  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17206
17207else
17208  case " $LIBOBJS " in
17209  *" getopt.$ac_objext "* ) ;;
17210  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17211 ;;
17212esac
17213
17214fi
17215
17216
17217ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17218if test "x$ac_cv_func_strcasecmp" = xyes; then :
17219  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17220
17221else
17222  case " $LIBOBJS " in
17223  *" strcasecmp.$ac_objext "* ) ;;
17224  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17225 ;;
17226esac
17227
17228fi
17229
17230
17231ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17232if test "x$ac_cv_func_strtoul" = xyes; then :
17233  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17234
17235else
17236  case " $LIBOBJS " in
17237  *" strtoul.$ac_objext "* ) ;;
17238  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17239 ;;
17240esac
17241
17242fi
17243
17244
17245ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17246if test "x$ac_cv_func_strtoull" = xyes; then :
17247  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17248
17249else
17250  case " $LIBOBJS " in
17251  *" strtoull.$ac_objext "* ) ;;
17252  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17253 ;;
17254esac
17255
17256fi
17257
17258
17259ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17260if test "x$ac_cv_func_lfind" = xyes; then :
17261  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17262
17263else
17264  case " $LIBOBJS " in
17265  *" lfind.$ac_objext "* ) ;;
17266  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17267 ;;
17268esac
17269
17270fi
17271
17272
17273
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17275$as_echo_n "checking native cpu bit order... " >&6; }
17276case "$host_cpu" in
17277    i*86*|x86_64*)
17278        HOST_FILLORDER=FILLORDER_LSB2MSB
17279	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17280$as_echo "lsb2msb" >&6; }
17281	;;
17282    *)
17283	HOST_FILLORDER=FILLORDER_MSB2LSB
17284	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17285$as_echo "msb2lsb" >&6; }
17286        ;;
17287esac
17288
17289cat >>confdefs.h <<_ACEOF
17290#define HOST_FILLORDER $HOST_FILLORDER
17291_ACEOF
17292
17293
17294if test "$ac_cv_c_bigendian" = yes ; then
17295    HOST_BIGENDIAN=1
17296else
17297    HOST_BIGENDIAN=0
17298fi
17299
17300cat >>confdefs.h <<_ACEOF
17301#define HOST_BIGENDIAN $HOST_BIGENDIAN
17302_ACEOF
17303
17304
17305#_POSIX_C_SOURCE=2
17306#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17307
17308HAVE_IEEEFP=1
17309
17310cat >>confdefs.h <<_ACEOF
17311#define HAVE_IEEEFP $HAVE_IEEEFP
17312_ACEOF
17313
17314
17315
17316# Check whether --enable-rpath was given.
17317if test "${enable_rpath+set}" = set; then :
17318  enableval=$enable_rpath; HAVE_RPATH=$enableval
17319else
17320  HAVE_RPATH=no
17321fi
17322
17323 if test "$HAVE_RPATH" = "yes"; then
17324  HAVE_RPATH_TRUE=
17325  HAVE_RPATH_FALSE='#'
17326else
17327  HAVE_RPATH_TRUE='#'
17328  HAVE_RPATH_FALSE=
17329fi
17330
17331
17332
17333# Check whether --enable-largefile was given.
17334if test "${enable_largefile+set}" = set; then :
17335  enableval=$enable_largefile;
17336fi
17337
17338if test "$enable_largefile" != no; then
17339
17340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17341$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17342if ${ac_cv_sys_largefile_CC+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  ac_cv_sys_largefile_CC=no
17346     if test "$GCC" != yes; then
17347       ac_save_CC=$CC
17348       while :; do
17349	 # IRIX 6.2 and later do not support large files by default,
17350	 # so use the C compiler's -n32 option if that helps.
17351	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353#include <sys/types.h>
17354 /* Check that off_t can represent 2**63 - 1 correctly.
17355    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17356    since some C++ compilers masquerading as C compilers
17357    incorrectly reject 9223372036854775807.  */
17358#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17359  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17360		       && LARGE_OFF_T % 2147483647 == 1)
17361		      ? 1 : -1];
17362int
17363main ()
17364{
17365
17366  ;
17367  return 0;
17368}
17369_ACEOF
17370	 if ac_fn_c_try_compile "$LINENO"; then :
17371  break
17372fi
17373rm -f core conftest.err conftest.$ac_objext
17374	 CC="$CC -n32"
17375	 if ac_fn_c_try_compile "$LINENO"; then :
17376  ac_cv_sys_largefile_CC=' -n32'; break
17377fi
17378rm -f core conftest.err conftest.$ac_objext
17379	 break
17380       done
17381       CC=$ac_save_CC
17382       rm -f conftest.$ac_ext
17383    fi
17384fi
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17386$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17387  if test "$ac_cv_sys_largefile_CC" != no; then
17388    CC=$CC$ac_cv_sys_largefile_CC
17389  fi
17390
17391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17392$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17393if ${ac_cv_sys_file_offset_bits+:} false; then :
17394  $as_echo_n "(cached) " >&6
17395else
17396  while :; do
17397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398/* end confdefs.h.  */
17399#include <sys/types.h>
17400 /* Check that off_t can represent 2**63 - 1 correctly.
17401    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17402    since some C++ compilers masquerading as C compilers
17403    incorrectly reject 9223372036854775807.  */
17404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17405  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17406		       && LARGE_OFF_T % 2147483647 == 1)
17407		      ? 1 : -1];
17408int
17409main ()
17410{
17411
17412  ;
17413  return 0;
17414}
17415_ACEOF
17416if ac_fn_c_try_compile "$LINENO"; then :
17417  ac_cv_sys_file_offset_bits=no; break
17418fi
17419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421/* end confdefs.h.  */
17422#define _FILE_OFFSET_BITS 64
17423#include <sys/types.h>
17424 /* Check that off_t can represent 2**63 - 1 correctly.
17425    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17426    since some C++ compilers masquerading as C compilers
17427    incorrectly reject 9223372036854775807.  */
17428#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17429  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17430		       && LARGE_OFF_T % 2147483647 == 1)
17431		      ? 1 : -1];
17432int
17433main ()
17434{
17435
17436  ;
17437  return 0;
17438}
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"; then :
17441  ac_cv_sys_file_offset_bits=64; break
17442fi
17443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17444  ac_cv_sys_file_offset_bits=unknown
17445  break
17446done
17447fi
17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17449$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17450case $ac_cv_sys_file_offset_bits in #(
17451  no | unknown) ;;
17452  *)
17453cat >>confdefs.h <<_ACEOF
17454#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17455_ACEOF
17456;;
17457esac
17458rm -rf conftest*
17459  if test $ac_cv_sys_file_offset_bits = unknown; then
17460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17461$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17462if ${ac_cv_sys_large_files+:} false; then :
17463  $as_echo_n "(cached) " >&6
17464else
17465  while :; do
17466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467/* end confdefs.h.  */
17468#include <sys/types.h>
17469 /* Check that off_t can represent 2**63 - 1 correctly.
17470    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17471    since some C++ compilers masquerading as C compilers
17472    incorrectly reject 9223372036854775807.  */
17473#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17474  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17475		       && LARGE_OFF_T % 2147483647 == 1)
17476		      ? 1 : -1];
17477int
17478main ()
17479{
17480
17481  ;
17482  return 0;
17483}
17484_ACEOF
17485if ac_fn_c_try_compile "$LINENO"; then :
17486  ac_cv_sys_large_files=no; break
17487fi
17488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h.  */
17491#define _LARGE_FILES 1
17492#include <sys/types.h>
17493 /* Check that off_t can represent 2**63 - 1 correctly.
17494    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17495    since some C++ compilers masquerading as C compilers
17496    incorrectly reject 9223372036854775807.  */
17497#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17498  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17499		       && LARGE_OFF_T % 2147483647 == 1)
17500		      ? 1 : -1];
17501int
17502main ()
17503{
17504
17505  ;
17506  return 0;
17507}
17508_ACEOF
17509if ac_fn_c_try_compile "$LINENO"; then :
17510  ac_cv_sys_large_files=1; break
17511fi
17512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513  ac_cv_sys_large_files=unknown
17514  break
17515done
17516fi
17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17518$as_echo "$ac_cv_sys_large_files" >&6; }
17519case $ac_cv_sys_large_files in #(
17520  no | unknown) ;;
17521  *)
17522cat >>confdefs.h <<_ACEOF
17523#define _LARGE_FILES $ac_cv_sys_large_files
17524_ACEOF
17525;;
17526esac
17527rm -rf conftest*
17528  fi
17529
17530
17531fi
17532
17533
17534
17535LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17536
17537
17538# Check whether --with-docdir was given.
17539if test "${with_docdir+set}" = set; then :
17540  withval=$with_docdir;
17541fi
17542
17543if test "x$with_docdir" != "x" ; then
17544  LIBTIFF_DOCDIR=$with_docdir
17545fi
17546
17547
17548
17549
17550# Check whether --enable-ccitt was given.
17551if test "${enable_ccitt+set}" = set; then :
17552  enableval=$enable_ccitt; HAVE_CCITT=$enableval
17553else
17554  HAVE_CCITT=yes
17555fi
17556
17557
17558if test "$HAVE_CCITT" = "yes" ; then
17559
17560$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
17561
17562fi
17563
17564# Check whether --enable-packbits was given.
17565if test "${enable_packbits+set}" = set; then :
17566  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17567else
17568  HAVE_PACKBITS=yes
17569fi
17570
17571
17572if test "$HAVE_PACKBITS" = "yes" ; then
17573
17574$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
17575
17576fi
17577
17578# Check whether --enable-lzw was given.
17579if test "${enable_lzw+set}" = set; then :
17580  enableval=$enable_lzw; HAVE_LZW=$enableval
17581else
17582  HAVE_LZW=yes
17583fi
17584
17585
17586if test "$HAVE_LZW" = "yes" ; then
17587
17588$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
17589
17590fi
17591
17592# Check whether --enable-thunder was given.
17593if test "${enable_thunder+set}" = set; then :
17594  enableval=$enable_thunder; HAVE_THUNDER=$enableval
17595else
17596  HAVE_THUNDER=yes
17597fi
17598
17599
17600if test "$HAVE_THUNDER" = "yes" ; then
17601
17602$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
17603
17604fi
17605
17606HAVE_NEXT=yes
17607
17608# Check whether --enable-next was given.
17609if test "${enable_next+set}" = set; then :
17610  enableval=$enable_next; HAVE_NEXT=$enableval
17611else
17612  HAVE_NEXT=yes
17613fi
17614
17615
17616if test "$HAVE_NEXT" = "yes" ; then
17617
17618$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
17619
17620fi
17621
17622# Check whether --enable-logluv was given.
17623if test "${enable_logluv+set}" = set; then :
17624  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
17625else
17626  HAVE_LOGLUV=yes
17627fi
17628
17629
17630if test "$HAVE_LOGLUV" = "yes" ; then
17631
17632$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17633
17634fi
17635
17636
17637# Check whether --enable-mdi was given.
17638if test "${enable_mdi+set}" = set; then :
17639  enableval=$enable_mdi; HAVE_MDI=$enableval
17640else
17641  HAVE_MDI=yes
17642fi
17643
17644
17645if test "$HAVE_MDI" = "yes" ; then
17646
17647$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
17648
17649fi
17650
17651
17652HAVE_ZLIB=no
17653
17654# Check whether --enable-zlib was given.
17655if test "${enable_zlib+set}" = set; then :
17656  enableval=$enable_zlib;
17657fi
17658
17659
17660# Check whether --with-zlib-include-dir was given.
17661if test "${with_zlib_include_dir+set}" = set; then :
17662  withval=$with_zlib_include_dir;
17663fi
17664
17665
17666# Check whether --with-zlib-lib-dir was given.
17667if test "${with_zlib_lib_dir+set}" = set; then :
17668  withval=$with_zlib_lib_dir;
17669fi
17670
17671
17672if test "x$enable_zlib" != "xno" ; then
17673
17674  if test "x$with_zlib_lib_dir" != "x" ; then
17675    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17676  fi
17677
17678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17679$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17680if ${ac_cv_lib_z_inflateEnd+:} false; then :
17681  $as_echo_n "(cached) " >&6
17682else
17683  ac_check_lib_save_LIBS=$LIBS
17684LIBS="-lz  $LIBS"
17685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687
17688/* Override any GCC internal prototype to avoid an error.
17689   Use char because int might match the return type of a GCC
17690   builtin and then its argument prototype would still apply.  */
17691#ifdef __cplusplus
17692extern "C"
17693#endif
17694char inflateEnd ();
17695int
17696main ()
17697{
17698return inflateEnd ();
17699  ;
17700  return 0;
17701}
17702_ACEOF
17703if ac_fn_c_try_link "$LINENO"; then :
17704  ac_cv_lib_z_inflateEnd=yes
17705else
17706  ac_cv_lib_z_inflateEnd=no
17707fi
17708rm -f core conftest.err conftest.$ac_objext \
17709    conftest$ac_exeext conftest.$ac_ext
17710LIBS=$ac_check_lib_save_LIBS
17711fi
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17713$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17714if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17715  zlib_lib=yes
17716else
17717  zlib_lib=no
17718fi
17719
17720  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
17721    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
17722  fi
17723
17724  if test "x$with_zlib_include_dir" != "x" ; then
17725    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
17726  fi
17727  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17728if test "x$ac_cv_header_zlib_h" = xyes; then :
17729  zlib_h=yes
17730else
17731  zlib_h=no
17732fi
17733
17734
17735  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
17736    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
17737  fi
17738
17739  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17740    HAVE_ZLIB=yes
17741  fi
17742
17743fi
17744
17745if test "$HAVE_ZLIB" = "yes" ; then
17746
17747$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
17748
17749  LIBS="-lz $LIBS"
17750  tiff_libs_private="-lz ${tiff_libs_private}"
17751
17752  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
17753    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
17754  fi
17755
17756fi
17757
17758
17759# Check whether --enable-pixarlog was given.
17760if test "${enable_pixarlog+set}" = set; then :
17761  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17762else
17763  HAVE_PIXARLOG=yes
17764fi
17765
17766
17767if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
17768
17769$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
17770
17771else
17772  HAVE_PIXARLOG=no
17773fi
17774
17775
17776HAVE_JPEG=no
17777
17778# Check whether --enable-jpeg was given.
17779if test "${enable_jpeg+set}" = set; then :
17780  enableval=$enable_jpeg;
17781fi
17782
17783
17784# Check whether --with-jpeg-include-dir was given.
17785if test "${with_jpeg_include_dir+set}" = set; then :
17786  withval=$with_jpeg_include_dir;
17787fi
17788
17789
17790# Check whether --with-jpeg-lib-dir was given.
17791if test "${with_jpeg_lib_dir+set}" = set; then :
17792  withval=$with_jpeg_lib_dir;
17793fi
17794
17795
17796if test "x$enable_jpeg" != "xno" ; then
17797
17798  if test "x$with_jpeg_lib_dir" != "x" ; then
17799    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
17800
17801  fi
17802
17803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
17804$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
17805if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17806  $as_echo_n "(cached) " >&6
17807else
17808  ac_check_lib_save_LIBS=$LIBS
17809LIBS="-ljpeg  $LIBS"
17810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811/* end confdefs.h.  */
17812
17813/* Override any GCC internal prototype to avoid an error.
17814   Use char because int might match the return type of a GCC
17815   builtin and then its argument prototype would still apply.  */
17816#ifdef __cplusplus
17817extern "C"
17818#endif
17819char jpeg_read_scanlines ();
17820int
17821main ()
17822{
17823return jpeg_read_scanlines ();
17824  ;
17825  return 0;
17826}
17827_ACEOF
17828if ac_fn_c_try_link "$LINENO"; then :
17829  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17830else
17831  ac_cv_lib_jpeg_jpeg_read_scanlines=no
17832fi
17833rm -f core conftest.err conftest.$ac_objext \
17834    conftest$ac_exeext conftest.$ac_ext
17835LIBS=$ac_check_lib_save_LIBS
17836fi
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
17838$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
17839if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
17840  jpeg_lib=yes
17841else
17842  jpeg_lib=no
17843fi
17844
17845  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
17846    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
17847  fi
17848
17849  if test "x$with_jpeg_include_dir" != "x" ; then
17850    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
17851  fi
17852  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17853if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17854  jpeg_h=yes
17855else
17856  jpeg_h=no
17857fi
17858
17859
17860  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
17861    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
17862  fi
17863
17864  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
17865    HAVE_JPEG=yes
17866  fi
17867
17868fi
17869
17870if test "$HAVE_JPEG" = "yes" ; then
17871
17872$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
17873
17874  LIBS="-ljpeg $LIBS"
17875  tiff_libs_private="-ljpeg ${tiff_libs_private}"
17876
17877  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
17878    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
17879  fi
17880
17881fi
17882
17883
17884# Check whether --enable-old-jpeg was given.
17885if test "${enable_old_jpeg+set}" = set; then :
17886  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
17887else
17888  HAVE_OJPEG=yes
17889fi
17890
17891
17892if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
17893
17894$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
17895
17896else
17897  HAVE_OJPEG=no
17898fi
17899
17900
17901HAVE_JBIG=no
17902
17903# Check whether --enable-jbig was given.
17904if test "${enable_jbig+set}" = set; then :
17905  enableval=$enable_jbig;
17906fi
17907
17908
17909# Check whether --with-jbig-include-dir was given.
17910if test "${with_jbig_include_dir+set}" = set; then :
17911  withval=$with_jbig_include_dir;
17912fi
17913
17914
17915# Check whether --with-jbig-lib-dir was given.
17916if test "${with_jbig_lib_dir+set}" = set; then :
17917  withval=$with_jbig_lib_dir;
17918fi
17919
17920
17921if test "x$enable_jbig" != "xno" ; then
17922
17923  if test "x$with_jbig_lib_dir" != "x" ; then
17924    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
17925
17926  fi
17927
17928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
17929$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
17930if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
17931  $as_echo_n "(cached) " >&6
17932else
17933  ac_check_lib_save_LIBS=$LIBS
17934LIBS="-ljbig  $LIBS"
17935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937
17938/* Override any GCC internal prototype to avoid an error.
17939   Use char because int might match the return type of a GCC
17940   builtin and then its argument prototype would still apply.  */
17941#ifdef __cplusplus
17942extern "C"
17943#endif
17944char jbg_dec_init ();
17945int
17946main ()
17947{
17948return jbg_dec_init ();
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953if ac_fn_c_try_link "$LINENO"; then :
17954  ac_cv_lib_jbig_jbg_dec_init=yes
17955else
17956  ac_cv_lib_jbig_jbg_dec_init=no
17957fi
17958rm -f core conftest.err conftest.$ac_objext \
17959    conftest$ac_exeext conftest.$ac_ext
17960LIBS=$ac_check_lib_save_LIBS
17961fi
17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
17963$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
17964if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
17965  jbig_lib=yes
17966else
17967  jbig_lib=no
17968fi
17969
17970  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
17971    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
17972  fi
17973
17974  if test "x$with_jbig_include_dir" != "x" ; then
17975    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
17976  fi
17977  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
17978if test "x$ac_cv_header_jbig_h" = xyes; then :
17979  jbig_h=yes
17980else
17981  jbig_h=no
17982fi
17983
17984
17985  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
17986    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
17987  fi
17988
17989  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
17990    HAVE_JBIG=yes
17991  fi
17992
17993fi
17994
17995if test "$HAVE_JBIG" = "yes" ; then
17996
17997$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
17998
17999  LIBS="-ljbig $LIBS"
18000  tiff_libs_private="-ljbig ${tiff_libs_private}"
18001
18002  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18003    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18004  fi
18005
18006  # Older versions of jbigkit lack jbg_newlen
18007  for ac_func in jbg_newlen
18008do :
18009  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18010if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18011  cat >>confdefs.h <<_ACEOF
18012#define HAVE_JBG_NEWLEN 1
18013_ACEOF
18014
18015fi
18016done
18017
18018
18019fi
18020
18021
18022HAVE_LZMA=no
18023
18024# Check whether --enable-lzma was given.
18025if test "${enable_lzma+set}" = set; then :
18026  enableval=$enable_lzma;
18027fi
18028
18029
18030# Check whether --with-lzma-include-dir was given.
18031if test "${with_lzma_include_dir+set}" = set; then :
18032  withval=$with_lzma_include_dir;
18033fi
18034
18035
18036# Check whether --with-lzma-lib-dir was given.
18037if test "${with_lzma_lib_dir+set}" = set; then :
18038  withval=$with_lzma_lib_dir;
18039fi
18040
18041
18042if test "x$enable_lzma" != "xno" ; then
18043
18044  if test "x$with_lzma_lib_dir" != "x" ; then
18045    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18046  fi
18047
18048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18049$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18050if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  ac_check_lib_save_LIBS=$LIBS
18054LIBS="-llzma  $LIBS"
18055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056/* end confdefs.h.  */
18057
18058/* Override any GCC internal prototype to avoid an error.
18059   Use char because int might match the return type of a GCC
18060   builtin and then its argument prototype would still apply.  */
18061#ifdef __cplusplus
18062extern "C"
18063#endif
18064char lzma_code ();
18065int
18066main ()
18067{
18068return lzma_code ();
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"; then :
18074  ac_cv_lib_lzma_lzma_code=yes
18075else
18076  ac_cv_lib_lzma_lzma_code=no
18077fi
18078rm -f core conftest.err conftest.$ac_objext \
18079    conftest$ac_exeext conftest.$ac_ext
18080LIBS=$ac_check_lib_save_LIBS
18081fi
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18083$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18084if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18085  lzma_lib=yes
18086else
18087  lzma_lib=no
18088fi
18089
18090  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18091    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18092  fi
18093
18094  if test "x$with_lzma_include_dir" != "x" ; then
18095    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18096  fi
18097  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18098if test "x$ac_cv_header_lzma_h" = xyes; then :
18099  lzma_h=yes
18100else
18101  lzma_h=no
18102fi
18103
18104
18105  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18106    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18107  fi
18108
18109  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18110    HAVE_LZMA=yes
18111  fi
18112
18113fi
18114
18115if test "$HAVE_LZMA" = "yes" ; then
18116
18117$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18118
18119  LIBS="-llzma $LIBS"
18120  tiff_libs_private="-llzma ${tiff_libs_private}"
18121
18122  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18123    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18124  fi
18125
18126fi
18127
18128
18129HAVE_JPEG12=no
18130
18131# Check whether --enable-jpeg12 was given.
18132if test "${enable_jpeg12+set}" = set; then :
18133  enableval=$enable_jpeg12;
18134fi
18135
18136
18137# Check whether --with-jpeg12-include-dir was given.
18138if test "${with_jpeg12_include_dir+set}" = set; then :
18139  withval=$with_jpeg12_include_dir;
18140fi
18141
18142
18143# Check whether --with-jpeg12-lib was given.
18144if test "${with_jpeg12_lib+set}" = set; then :
18145  withval=$with_jpeg12_lib;
18146fi
18147
18148
18149if test "x$enable_jpeg12" == "xyes" ; then
18150
18151  if test "x$with_jpeg12_lib" != "x" ; then
18152    LIBS="$with_jpeg12_lib $LIBS"
18153  fi
18154
18155  HAVE_JPEG12=yes
18156
18157
18158$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18159
18160  if test "x$with_jpeg12_include_dir" != "x" ; then
18161
18162cat >>confdefs.h <<_ACEOF
18163#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18164_ACEOF
18165
18166  fi
18167fi
18168
18169
18170
18171# Check whether --enable-cxx was given.
18172if test "${enable_cxx+set}" = set; then :
18173  enableval=$enable_cxx; HAVE_CXX=$enableval
18174else
18175  HAVE_CXX=yes
18176fi
18177
18178
18179if test "$HAVE_CXX" = "yes" ; then
18180
18181$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18182
18183else
18184  HAVE_CXX=no
18185fi
18186
18187 if test "$HAVE_CXX" = "yes"; then
18188  HAVE_CXX_TRUE=
18189  HAVE_CXX_FALSE='#'
18190else
18191  HAVE_CXX_TRUE='#'
18192  HAVE_CXX_FALSE=
18193fi
18194
18195
18196
18197HAVE_OPENGL=no
18198
18199
18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18201$as_echo_n "checking for X... " >&6; }
18202
18203
18204# Check whether --with-x was given.
18205if test "${with_x+set}" = set; then :
18206  withval=$with_x;
18207fi
18208
18209# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18210if test "x$with_x" = xno; then
18211  # The user explicitly disabled X.
18212  have_x=disabled
18213else
18214  case $x_includes,$x_libraries in #(
18215    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18216    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18217  $as_echo_n "(cached) " >&6
18218else
18219  # One or both of the vars are not set, and there is no cached value.
18220ac_x_includes=no ac_x_libraries=no
18221rm -f -r conftest.dir
18222if mkdir conftest.dir; then
18223  cd conftest.dir
18224  cat >Imakefile <<'_ACEOF'
18225incroot:
18226	@echo incroot='${INCROOT}'
18227usrlibdir:
18228	@echo usrlibdir='${USRLIBDIR}'
18229libdir:
18230	@echo libdir='${LIBDIR}'
18231_ACEOF
18232  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18233    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18234    for ac_var in incroot usrlibdir libdir; do
18235      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18236    done
18237    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18238    for ac_extension in a so sl dylib la dll; do
18239      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18240	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18241	ac_im_usrlibdir=$ac_im_libdir; break
18242      fi
18243    done
18244    # Screen out bogus values from the imake configuration.  They are
18245    # bogus both because they are the default anyway, and because
18246    # using them would break gcc on systems where it needs fixed includes.
18247    case $ac_im_incroot in
18248	/usr/include) ac_x_includes= ;;
18249	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18250    esac
18251    case $ac_im_usrlibdir in
18252	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18253	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18254    esac
18255  fi
18256  cd ..
18257  rm -f -r conftest.dir
18258fi
18259
18260# Standard set of common directories for X headers.
18261# Check X11 before X11Rn because it is often a symlink to the current release.
18262ac_x_header_dirs='
18263/usr/X11/include
18264/usr/X11R7/include
18265/usr/X11R6/include
18266/usr/X11R5/include
18267/usr/X11R4/include
18268
18269/usr/include/X11
18270/usr/include/X11R7
18271/usr/include/X11R6
18272/usr/include/X11R5
18273/usr/include/X11R4
18274
18275/usr/local/X11/include
18276/usr/local/X11R7/include
18277/usr/local/X11R6/include
18278/usr/local/X11R5/include
18279/usr/local/X11R4/include
18280
18281/usr/local/include/X11
18282/usr/local/include/X11R7
18283/usr/local/include/X11R6
18284/usr/local/include/X11R5
18285/usr/local/include/X11R4
18286
18287/usr/X386/include
18288/usr/x386/include
18289/usr/XFree86/include/X11
18290
18291/usr/include
18292/usr/local/include
18293/usr/unsupported/include
18294/usr/athena/include
18295/usr/local/x11r5/include
18296/usr/lpp/Xamples/include
18297
18298/usr/openwin/include
18299/usr/openwin/share/include'
18300
18301if test "$ac_x_includes" = no; then
18302  # Guess where to find include files, by looking for Xlib.h.
18303  # First, try using that file with no special directory specified.
18304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305/* end confdefs.h.  */
18306#include <X11/Xlib.h>
18307_ACEOF
18308if ac_fn_c_try_cpp "$LINENO"; then :
18309  # We can compile using X headers with no special include directory.
18310ac_x_includes=
18311else
18312  for ac_dir in $ac_x_header_dirs; do
18313  if test -r "$ac_dir/X11/Xlib.h"; then
18314    ac_x_includes=$ac_dir
18315    break
18316  fi
18317done
18318fi
18319rm -f conftest.err conftest.i conftest.$ac_ext
18320fi # $ac_x_includes = no
18321
18322if test "$ac_x_libraries" = no; then
18323  # Check for the libraries.
18324  # See if we find them without any special options.
18325  # Don't add to $LIBS permanently.
18326  ac_save_LIBS=$LIBS
18327  LIBS="-lX11 $LIBS"
18328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329/* end confdefs.h.  */
18330#include <X11/Xlib.h>
18331int
18332main ()
18333{
18334XrmInitialize ()
18335  ;
18336  return 0;
18337}
18338_ACEOF
18339if ac_fn_c_try_link "$LINENO"; then :
18340  LIBS=$ac_save_LIBS
18341# We can link X programs with no special library path.
18342ac_x_libraries=
18343else
18344  LIBS=$ac_save_LIBS
18345for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18346do
18347  # Don't even attempt the hair of trying to link an X program!
18348  for ac_extension in a so sl dylib la dll; do
18349    if test -r "$ac_dir/libX11.$ac_extension"; then
18350      ac_x_libraries=$ac_dir
18351      break 2
18352    fi
18353  done
18354done
18355fi
18356rm -f core conftest.err conftest.$ac_objext \
18357    conftest$ac_exeext conftest.$ac_ext
18358fi # $ac_x_libraries = no
18359
18360case $ac_x_includes,$ac_x_libraries in #(
18361  no,* | *,no | *\'*)
18362    # Didn't find X, or a directory has "'" in its name.
18363    ac_cv_have_x="have_x=no";; #(
18364  *)
18365    # Record where we found X for the cache.
18366    ac_cv_have_x="have_x=yes\
18367	ac_x_includes='$ac_x_includes'\
18368	ac_x_libraries='$ac_x_libraries'"
18369esac
18370fi
18371;; #(
18372    *) have_x=yes;;
18373  esac
18374  eval "$ac_cv_have_x"
18375fi # $with_x != no
18376
18377if test "$have_x" != yes; then
18378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18379$as_echo "$have_x" >&6; }
18380  no_x=yes
18381else
18382  # If each of the values was on the command line, it overrides each guess.
18383  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18384  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18385  # Update the cache value to reflect the command line values.
18386  ac_cv_have_x="have_x=yes\
18387	ac_x_includes='$x_includes'\
18388	ac_x_libraries='$x_libraries'"
18389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18390$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18391fi
18392
18393if test "$no_x" = yes; then
18394  # Not all programs may use this symbol, but it does not hurt to define it.
18395
18396$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18397
18398  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18399else
18400  if test -n "$x_includes"; then
18401    X_CFLAGS="$X_CFLAGS -I$x_includes"
18402  fi
18403
18404  # It would also be nice to do this for all -L options, not just this one.
18405  if test -n "$x_libraries"; then
18406    X_LIBS="$X_LIBS -L$x_libraries"
18407    # For Solaris; some versions of Sun CC require a space after -R and
18408    # others require no space.  Words are not sufficient . . . .
18409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18410$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18411    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18412    ac_xsave_c_werror_flag=$ac_c_werror_flag
18413    ac_c_werror_flag=yes
18414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415/* end confdefs.h.  */
18416
18417int
18418main ()
18419{
18420
18421  ;
18422  return 0;
18423}
18424_ACEOF
18425if ac_fn_c_try_link "$LINENO"; then :
18426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427$as_echo "no" >&6; }
18428       X_LIBS="$X_LIBS -R$x_libraries"
18429else
18430  LIBS="$ac_xsave_LIBS -R $x_libraries"
18431       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h.  */
18433
18434int
18435main ()
18436{
18437
18438  ;
18439  return 0;
18440}
18441_ACEOF
18442if ac_fn_c_try_link "$LINENO"; then :
18443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444$as_echo "yes" >&6; }
18445	  X_LIBS="$X_LIBS -R $x_libraries"
18446else
18447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18448$as_echo "neither works" >&6; }
18449fi
18450rm -f core conftest.err conftest.$ac_objext \
18451    conftest$ac_exeext conftest.$ac_ext
18452fi
18453rm -f core conftest.err conftest.$ac_objext \
18454    conftest$ac_exeext conftest.$ac_ext
18455    ac_c_werror_flag=$ac_xsave_c_werror_flag
18456    LIBS=$ac_xsave_LIBS
18457  fi
18458
18459  # Check for system-dependent libraries X programs must link with.
18460  # Do this before checking for the system-independent R6 libraries
18461  # (-lICE), since we may need -lsocket or whatever for X linking.
18462
18463  if test "$ISC" = yes; then
18464    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18465  else
18466    # Martyn Johnson says this is needed for Ultrix, if the X
18467    # libraries were built with DECnet support.  And Karl Berry says
18468    # the Alpha needs dnet_stub (dnet does not exist).
18469    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18470    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471/* end confdefs.h.  */
18472
18473/* Override any GCC internal prototype to avoid an error.
18474   Use char because int might match the return type of a GCC
18475   builtin and then its argument prototype would still apply.  */
18476#ifdef __cplusplus
18477extern "C"
18478#endif
18479char XOpenDisplay ();
18480int
18481main ()
18482{
18483return XOpenDisplay ();
18484  ;
18485  return 0;
18486}
18487_ACEOF
18488if ac_fn_c_try_link "$LINENO"; then :
18489
18490else
18491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18492$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18493if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18494  $as_echo_n "(cached) " >&6
18495else
18496  ac_check_lib_save_LIBS=$LIBS
18497LIBS="-ldnet  $LIBS"
18498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499/* end confdefs.h.  */
18500
18501/* Override any GCC internal prototype to avoid an error.
18502   Use char because int might match the return type of a GCC
18503   builtin and then its argument prototype would still apply.  */
18504#ifdef __cplusplus
18505extern "C"
18506#endif
18507char dnet_ntoa ();
18508int
18509main ()
18510{
18511return dnet_ntoa ();
18512  ;
18513  return 0;
18514}
18515_ACEOF
18516if ac_fn_c_try_link "$LINENO"; then :
18517  ac_cv_lib_dnet_dnet_ntoa=yes
18518else
18519  ac_cv_lib_dnet_dnet_ntoa=no
18520fi
18521rm -f core conftest.err conftest.$ac_objext \
18522    conftest$ac_exeext conftest.$ac_ext
18523LIBS=$ac_check_lib_save_LIBS
18524fi
18525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18526$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18527if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18528  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18529fi
18530
18531    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18532      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18533$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18534if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18535  $as_echo_n "(cached) " >&6
18536else
18537  ac_check_lib_save_LIBS=$LIBS
18538LIBS="-ldnet_stub  $LIBS"
18539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540/* end confdefs.h.  */
18541
18542/* Override any GCC internal prototype to avoid an error.
18543   Use char because int might match the return type of a GCC
18544   builtin and then its argument prototype would still apply.  */
18545#ifdef __cplusplus
18546extern "C"
18547#endif
18548char dnet_ntoa ();
18549int
18550main ()
18551{
18552return dnet_ntoa ();
18553  ;
18554  return 0;
18555}
18556_ACEOF
18557if ac_fn_c_try_link "$LINENO"; then :
18558  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18559else
18560  ac_cv_lib_dnet_stub_dnet_ntoa=no
18561fi
18562rm -f core conftest.err conftest.$ac_objext \
18563    conftest$ac_exeext conftest.$ac_ext
18564LIBS=$ac_check_lib_save_LIBS
18565fi
18566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18567$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18568if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18569  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18570fi
18571
18572    fi
18573fi
18574rm -f core conftest.err conftest.$ac_objext \
18575    conftest$ac_exeext conftest.$ac_ext
18576    LIBS="$ac_xsave_LIBS"
18577
18578    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
18579    # to get the SysV transport functions.
18580    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18581    # needs -lnsl.
18582    # The nsl library prevents programs from opening the X display
18583    # on Irix 5.2, according to T.E. Dickey.
18584    # The functions gethostbyname, getservbyname, and inet_addr are
18585    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18586    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18587if test "x$ac_cv_func_gethostbyname" = xyes; then :
18588
18589fi
18590
18591    if test $ac_cv_func_gethostbyname = no; then
18592      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18593$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18594if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18595  $as_echo_n "(cached) " >&6
18596else
18597  ac_check_lib_save_LIBS=$LIBS
18598LIBS="-lnsl  $LIBS"
18599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601
18602/* Override any GCC internal prototype to avoid an error.
18603   Use char because int might match the return type of a GCC
18604   builtin and then its argument prototype would still apply.  */
18605#ifdef __cplusplus
18606extern "C"
18607#endif
18608char gethostbyname ();
18609int
18610main ()
18611{
18612return gethostbyname ();
18613  ;
18614  return 0;
18615}
18616_ACEOF
18617if ac_fn_c_try_link "$LINENO"; then :
18618  ac_cv_lib_nsl_gethostbyname=yes
18619else
18620  ac_cv_lib_nsl_gethostbyname=no
18621fi
18622rm -f core conftest.err conftest.$ac_objext \
18623    conftest$ac_exeext conftest.$ac_ext
18624LIBS=$ac_check_lib_save_LIBS
18625fi
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18627$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18628if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18629  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18630fi
18631
18632      if test $ac_cv_lib_nsl_gethostbyname = no; then
18633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18634$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18635if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18636  $as_echo_n "(cached) " >&6
18637else
18638  ac_check_lib_save_LIBS=$LIBS
18639LIBS="-lbsd  $LIBS"
18640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641/* end confdefs.h.  */
18642
18643/* Override any GCC internal prototype to avoid an error.
18644   Use char because int might match the return type of a GCC
18645   builtin and then its argument prototype would still apply.  */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649char gethostbyname ();
18650int
18651main ()
18652{
18653return gethostbyname ();
18654  ;
18655  return 0;
18656}
18657_ACEOF
18658if ac_fn_c_try_link "$LINENO"; then :
18659  ac_cv_lib_bsd_gethostbyname=yes
18660else
18661  ac_cv_lib_bsd_gethostbyname=no
18662fi
18663rm -f core conftest.err conftest.$ac_objext \
18664    conftest$ac_exeext conftest.$ac_ext
18665LIBS=$ac_check_lib_save_LIBS
18666fi
18667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18668$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18669if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18670  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18671fi
18672
18673      fi
18674    fi
18675
18676    # [email protected] says without -lsocket,
18677    # socket/setsockopt and other routines are undefined under SCO ODT
18678    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18679    # on later versions), says Simon Leinen: it contains gethostby*
18680    # variants that don't use the name server (or something).  -lsocket
18681    # must be given before -lnsl if both are needed.  We assume that
18682    # if connect needs -lnsl, so does gethostbyname.
18683    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18684if test "x$ac_cv_func_connect" = xyes; then :
18685
18686fi
18687
18688    if test $ac_cv_func_connect = no; then
18689      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18690$as_echo_n "checking for connect in -lsocket... " >&6; }
18691if ${ac_cv_lib_socket_connect+:} false; then :
18692  $as_echo_n "(cached) " >&6
18693else
18694  ac_check_lib_save_LIBS=$LIBS
18695LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697/* end confdefs.h.  */
18698
18699/* Override any GCC internal prototype to avoid an error.
18700   Use char because int might match the return type of a GCC
18701   builtin and then its argument prototype would still apply.  */
18702#ifdef __cplusplus
18703extern "C"
18704#endif
18705char connect ();
18706int
18707main ()
18708{
18709return connect ();
18710  ;
18711  return 0;
18712}
18713_ACEOF
18714if ac_fn_c_try_link "$LINENO"; then :
18715  ac_cv_lib_socket_connect=yes
18716else
18717  ac_cv_lib_socket_connect=no
18718fi
18719rm -f core conftest.err conftest.$ac_objext \
18720    conftest$ac_exeext conftest.$ac_ext
18721LIBS=$ac_check_lib_save_LIBS
18722fi
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18724$as_echo "$ac_cv_lib_socket_connect" >&6; }
18725if test "x$ac_cv_lib_socket_connect" = xyes; then :
18726  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18727fi
18728
18729    fi
18730
18731    # Guillermo Gomez says -lposix is necessary on A/UX.
18732    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18733if test "x$ac_cv_func_remove" = xyes; then :
18734
18735fi
18736
18737    if test $ac_cv_func_remove = no; then
18738      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18739$as_echo_n "checking for remove in -lposix... " >&6; }
18740if ${ac_cv_lib_posix_remove+:} false; then :
18741  $as_echo_n "(cached) " >&6
18742else
18743  ac_check_lib_save_LIBS=$LIBS
18744LIBS="-lposix  $LIBS"
18745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746/* end confdefs.h.  */
18747
18748/* Override any GCC internal prototype to avoid an error.
18749   Use char because int might match the return type of a GCC
18750   builtin and then its argument prototype would still apply.  */
18751#ifdef __cplusplus
18752extern "C"
18753#endif
18754char remove ();
18755int
18756main ()
18757{
18758return remove ();
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763if ac_fn_c_try_link "$LINENO"; then :
18764  ac_cv_lib_posix_remove=yes
18765else
18766  ac_cv_lib_posix_remove=no
18767fi
18768rm -f core conftest.err conftest.$ac_objext \
18769    conftest$ac_exeext conftest.$ac_ext
18770LIBS=$ac_check_lib_save_LIBS
18771fi
18772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18773$as_echo "$ac_cv_lib_posix_remove" >&6; }
18774if test "x$ac_cv_lib_posix_remove" = xyes; then :
18775  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18776fi
18777
18778    fi
18779
18780    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18781    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18782if test "x$ac_cv_func_shmat" = xyes; then :
18783
18784fi
18785
18786    if test $ac_cv_func_shmat = no; then
18787      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18788$as_echo_n "checking for shmat in -lipc... " >&6; }
18789if ${ac_cv_lib_ipc_shmat+:} false; then :
18790  $as_echo_n "(cached) " >&6
18791else
18792  ac_check_lib_save_LIBS=$LIBS
18793LIBS="-lipc  $LIBS"
18794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795/* end confdefs.h.  */
18796
18797/* Override any GCC internal prototype to avoid an error.
18798   Use char because int might match the return type of a GCC
18799   builtin and then its argument prototype would still apply.  */
18800#ifdef __cplusplus
18801extern "C"
18802#endif
18803char shmat ();
18804int
18805main ()
18806{
18807return shmat ();
18808  ;
18809  return 0;
18810}
18811_ACEOF
18812if ac_fn_c_try_link "$LINENO"; then :
18813  ac_cv_lib_ipc_shmat=yes
18814else
18815  ac_cv_lib_ipc_shmat=no
18816fi
18817rm -f core conftest.err conftest.$ac_objext \
18818    conftest$ac_exeext conftest.$ac_ext
18819LIBS=$ac_check_lib_save_LIBS
18820fi
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18822$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18823if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18824  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18825fi
18826
18827    fi
18828  fi
18829
18830  # Check for libraries that X11R6 Xt/Xaw programs need.
18831  ac_save_LDFLAGS=$LDFLAGS
18832  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18833  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18834  # check for ICE first), but we must link in the order -lSM -lICE or
18835  # we get undefined symbols.  So assume we have SM if we have ICE.
18836  # These have to be linked with before -lX11, unlike the other
18837  # libraries we check for below, so use a different variable.
18838  # John Interrante, Karl Berry
18839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18840$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18841if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18842  $as_echo_n "(cached) " >&6
18843else
18844  ac_check_lib_save_LIBS=$LIBS
18845LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847/* end confdefs.h.  */
18848
18849/* Override any GCC internal prototype to avoid an error.
18850   Use char because int might match the return type of a GCC
18851   builtin and then its argument prototype would still apply.  */
18852#ifdef __cplusplus
18853extern "C"
18854#endif
18855char IceConnectionNumber ();
18856int
18857main ()
18858{
18859return IceConnectionNumber ();
18860  ;
18861  return 0;
18862}
18863_ACEOF
18864if ac_fn_c_try_link "$LINENO"; then :
18865  ac_cv_lib_ICE_IceConnectionNumber=yes
18866else
18867  ac_cv_lib_ICE_IceConnectionNumber=no
18868fi
18869rm -f core conftest.err conftest.$ac_objext \
18870    conftest$ac_exeext conftest.$ac_ext
18871LIBS=$ac_check_lib_save_LIBS
18872fi
18873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18874$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18875if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18876  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18877fi
18878
18879  LDFLAGS=$ac_save_LDFLAGS
18880
18881fi
18882
18883
18884
18885
18886
18887ac_ext=c
18888ac_cpp='$CPP $CPPFLAGS'
18889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893ax_pthread_ok=no
18894
18895
18896if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18897        save_CFLAGS="$CFLAGS"
18898        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18899        save_LIBS="$LIBS"
18900        LIBS="$PTHREAD_LIBS $LIBS"
18901        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18902$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904/* end confdefs.h.  */
18905
18906/* Override any GCC internal prototype to avoid an error.
18907   Use char because int might match the return type of a GCC
18908   builtin and then its argument prototype would still apply.  */
18909#ifdef __cplusplus
18910extern "C"
18911#endif
18912char pthread_join ();
18913int
18914main ()
18915{
18916return pthread_join ();
18917  ;
18918  return 0;
18919}
18920_ACEOF
18921if ac_fn_c_try_link "$LINENO"; then :
18922  ax_pthread_ok=yes
18923fi
18924rm -f core conftest.err conftest.$ac_objext \
18925    conftest$ac_exeext conftest.$ac_ext
18926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18927$as_echo "$ax_pthread_ok" >&6; }
18928        if test x"$ax_pthread_ok" = xno; then
18929                PTHREAD_LIBS=""
18930                PTHREAD_CFLAGS=""
18931        fi
18932        LIBS="$save_LIBS"
18933        CFLAGS="$save_CFLAGS"
18934fi
18935
18936
18937
18938ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18939
18940
18941
18942case "${host_cpu}-${host_os}" in
18943        *solaris*)
18944
18945
18946        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18947        ;;
18948
18949	*-darwin*)
18950	ax_pthread_flags="-pthread $ax_pthread_flags"
18951	;;
18952esac
18953
18954if test x"$ax_pthread_ok" = xno; then
18955for flag in $ax_pthread_flags; do
18956
18957        case $flag in
18958                none)
18959                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18960$as_echo_n "checking whether pthreads work without any flags... " >&6; }
18961                ;;
18962
18963                -*)
18964                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18965$as_echo_n "checking whether pthreads work with $flag... " >&6; }
18966                PTHREAD_CFLAGS="$flag"
18967                ;;
18968
18969		pthread-config)
18970		# Extract the first word of "pthread-config", so it can be a program name with args.
18971set dummy pthread-config; ac_word=$2
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18973$as_echo_n "checking for $ac_word... " >&6; }
18974if ${ac_cv_prog_ax_pthread_config+:} false; then :
18975  $as_echo_n "(cached) " >&6
18976else
18977  if test -n "$ax_pthread_config"; then
18978  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18979else
18980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18981for as_dir in $PATH
18982do
18983  IFS=$as_save_IFS
18984  test -z "$as_dir" && as_dir=.
18985    for ac_exec_ext in '' $ac_executable_extensions; do
18986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18987    ac_cv_prog_ax_pthread_config="yes"
18988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18989    break 2
18990  fi
18991done
18992  done
18993IFS=$as_save_IFS
18994
18995  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18996fi
18997fi
18998ax_pthread_config=$ac_cv_prog_ax_pthread_config
18999if test -n "$ax_pthread_config"; then
19000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19001$as_echo "$ax_pthread_config" >&6; }
19002else
19003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004$as_echo "no" >&6; }
19005fi
19006
19007
19008		if test x"$ax_pthread_config" = xno; then continue; fi
19009		PTHREAD_CFLAGS="`pthread-config --cflags`"
19010		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19011		;;
19012
19013                *)
19014                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19015$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19016                PTHREAD_LIBS="-l$flag"
19017                ;;
19018        esac
19019
19020        save_LIBS="$LIBS"
19021        save_CFLAGS="$CFLAGS"
19022        LIBS="$PTHREAD_LIBS $LIBS"
19023        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19024
19025                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026/* end confdefs.h.  */
19027#include <pthread.h>
19028	             static void routine(void* a) {a=0;}
19029	             static void* start_routine(void* a) {return a;}
19030int
19031main ()
19032{
19033pthread_t th; pthread_attr_t attr;
19034                     pthread_create(&th,0,start_routine,0);
19035                     pthread_join(th, 0);
19036                     pthread_attr_init(&attr);
19037                     pthread_cleanup_push(routine, 0);
19038                     pthread_cleanup_pop(0);
19039  ;
19040  return 0;
19041}
19042_ACEOF
19043if ac_fn_c_try_link "$LINENO"; then :
19044  ax_pthread_ok=yes
19045fi
19046rm -f core conftest.err conftest.$ac_objext \
19047    conftest$ac_exeext conftest.$ac_ext
19048
19049        LIBS="$save_LIBS"
19050        CFLAGS="$save_CFLAGS"
19051
19052        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19053$as_echo "$ax_pthread_ok" >&6; }
19054        if test "x$ax_pthread_ok" = xyes; then
19055                break;
19056        fi
19057
19058        PTHREAD_LIBS=""
19059        PTHREAD_CFLAGS=""
19060done
19061fi
19062
19063if test "x$ax_pthread_ok" = xyes; then
19064        save_LIBS="$LIBS"
19065        LIBS="$PTHREAD_LIBS $LIBS"
19066        save_CFLAGS="$CFLAGS"
19067        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19068
19069        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19070$as_echo_n "checking for joinable pthread attribute... " >&6; }
19071	attr_name=unknown
19072	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19073	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074/* end confdefs.h.  */
19075#include <pthread.h>
19076int
19077main ()
19078{
19079int attr=$attr; return attr;
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084if ac_fn_c_try_link "$LINENO"; then :
19085  attr_name=$attr; break
19086fi
19087rm -f core conftest.err conftest.$ac_objext \
19088    conftest$ac_exeext conftest.$ac_ext
19089	done
19090        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19091$as_echo "$attr_name" >&6; }
19092        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19093
19094cat >>confdefs.h <<_ACEOF
19095#define PTHREAD_CREATE_JOINABLE $attr_name
19096_ACEOF
19097
19098        fi
19099
19100        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19101$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19102        flag=no
19103        case "${host_cpu}-${host_os}" in
19104            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19105            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19106        esac
19107        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19108$as_echo "${flag}" >&6; }
19109        if test "x$flag" != xno; then
19110            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19111        fi
19112
19113        LIBS="$save_LIBS"
19114        CFLAGS="$save_CFLAGS"
19115
19116        	if test x"$GCC" != xyes; then
19117          for ac_prog in xlc_r cc_r
19118do
19119  # Extract the first word of "$ac_prog", so it can be a program name with args.
19120set dummy $ac_prog; ac_word=$2
19121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19122$as_echo_n "checking for $ac_word... " >&6; }
19123if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19124  $as_echo_n "(cached) " >&6
19125else
19126  if test -n "$PTHREAD_CC"; then
19127  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19128else
19129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19130for as_dir in $PATH
19131do
19132  IFS=$as_save_IFS
19133  test -z "$as_dir" && as_dir=.
19134    for ac_exec_ext in '' $ac_executable_extensions; do
19135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19136    ac_cv_prog_PTHREAD_CC="$ac_prog"
19137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19138    break 2
19139  fi
19140done
19141  done
19142IFS=$as_save_IFS
19143
19144fi
19145fi
19146PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19147if test -n "$PTHREAD_CC"; then
19148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19149$as_echo "$PTHREAD_CC" >&6; }
19150else
19151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152$as_echo "no" >&6; }
19153fi
19154
19155
19156  test -n "$PTHREAD_CC" && break
19157done
19158test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19159
19160        else
19161          PTHREAD_CC=$CC
19162	fi
19163else
19164        PTHREAD_CC="$CC"
19165fi
19166
19167
19168
19169
19170
19171if test x"$ax_pthread_ok" = xyes; then
19172
19173$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19174
19175        :
19176else
19177        ax_pthread_ok=no
19178
19179fi
19180ac_ext=c
19181ac_cpp='$CPP $CPPFLAGS'
19182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184ac_compiler_gnu=$ac_cv_c_compiler_gnu
19185
19186
19187
19188
19189ac_ext=c
19190ac_cpp='$CPP $CPPFLAGS'
19191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19193ac_compiler_gnu=$ac_cv_c_compiler_gnu
19194
19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19196$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19197if ${ax_cv_c_compiler_ms+:} false; then :
19198  $as_echo_n "(cached) " >&6
19199else
19200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201/* end confdefs.h.  */
19202
19203int
19204main ()
19205{
19206#ifndef _MSC_VER
19207       choke me
19208#endif
19209
19210  ;
19211  return 0;
19212}
19213_ACEOF
19214if ac_fn_c_try_compile "$LINENO"; then :
19215  ax_compiler_ms=yes
19216else
19217  ax_compiler_ms=no
19218fi
19219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220ax_cv_c_compiler_ms=$ax_compiler_ms
19221
19222fi
19223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19224$as_echo "$ax_cv_c_compiler_ms" >&6; }
19225if test X$ax_compiler_ms = Xno; then :
19226  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19227fi
19228
19229if test "X$no_x" != "Xyes"; then :
19230  if test -n "$x_includes"; then :
19231  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19232fi
19233       if test -n "$x_libraries"; then :
19234  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19235fi
19236fi
19237
19238ax_save_CPPFLAGS="${CPPFLAGS}"
19239CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19240for ac_header in GL/gl.h OpenGL/gl.h
19241do :
19242  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19243ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19245  cat >>confdefs.h <<_ACEOF
19246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19247_ACEOF
19248
19249fi
19250
19251done
19252
19253CPPFLAGS="${ax_save_CPPFLAGS}"
19254
19255for ac_header in windows.h
19256do :
19257  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19258if test "x$ac_cv_header_windows_h" = xyes; then :
19259  cat >>confdefs.h <<_ACEOF
19260#define HAVE_WINDOWS_H 1
19261_ACEOF
19262
19263fi
19264
19265done
19266
19267
19268
19269
19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19271$as_echo_n "checking for OpenGL library... " >&6; }
19272if ${ax_cv_check_gl_libgl+:} false; then :
19273  $as_echo_n "(cached) " >&6
19274else
19275  ax_cv_check_gl_libgl="no"
19276case $host_cpu in
19277  x86_64) ax_check_gl_libdir=lib64 ;;
19278  *)      ax_check_gl_libdir=lib ;;
19279esac
19280ax_save_CPPFLAGS="${CPPFLAGS}"
19281CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19282ax_save_LIBS="${LIBS}"
19283LIBS=""
19284ax_check_libs="-lopengl32 -lGL"
19285for ax_lib in ${ax_check_libs}; do
19286  if test X$ax_compiler_ms = Xyes; then :
19287  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19288else
19289  ax_try_lib="${ax_lib}"
19290fi
19291  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293/* end confdefs.h.  */
19294
19295# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19296#   include <windows.h>
19297# endif
19298# ifdef HAVE_GL_GL_H
19299#   include <GL/gl.h>
19300# elif defined(HAVE_OPENGL_GL_H)
19301#   include <OpenGL/gl.h>
19302# else
19303#   error no gl.h
19304# endif
19305int
19306main ()
19307{
19308glBegin(0)
19309  ;
19310  return 0;
19311}
19312_ACEOF
19313if ac_fn_c_try_link "$LINENO"; then :
19314  ax_cv_check_gl_libgl="${ax_try_lib}"; break
19315else
19316  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}"
19317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318/* end confdefs.h.  */
19319
19320# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19321#   include <windows.h>
19322# endif
19323# ifdef HAVE_GL_GL_H
19324#   include <GL/gl.h>
19325# elif defined(HAVE_OPENGL_GL_H)
19326#   include <OpenGL/gl.h>
19327# else
19328#   error no gl.h
19329# endif
19330int
19331main ()
19332{
19333glBegin(0)
19334  ;
19335  return 0;
19336}
19337_ACEOF
19338if ac_fn_c_try_link "$LINENO"; then :
19339  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19340else
19341  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}"
19342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343/* end confdefs.h.  */
19344
19345# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19346#   include <windows.h>
19347# endif
19348# ifdef HAVE_GL_GL_H
19349#   include <GL/gl.h>
19350# elif defined(HAVE_OPENGL_GL_H)
19351#   include <OpenGL/gl.h>
19352# else
19353#   error no gl.h
19354# endif
19355int
19356main ()
19357{
19358glBegin(0)
19359  ;
19360  return 0;
19361}
19362_ACEOF
19363if ac_fn_c_try_link "$LINENO"; then :
19364  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19365fi
19366rm -f core conftest.err conftest.$ac_objext \
19367    conftest$ac_exeext conftest.$ac_ext
19368fi
19369rm -f core conftest.err conftest.$ac_objext \
19370    conftest$ac_exeext conftest.$ac_ext
19371fi
19372rm -f core conftest.err conftest.$ac_objext \
19373    conftest$ac_exeext conftest.$ac_ext
19374done
19375
19376if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19377  LIBS='-framework OpenGL'
19378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379/* end confdefs.h.  */
19380
19381# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19382#   include <windows.h>
19383# endif
19384# ifdef HAVE_GL_GL_H
19385#   include <GL/gl.h>
19386# elif defined(HAVE_OPENGL_GL_H)
19387#   include <OpenGL/gl.h>
19388# else
19389#   error no gl.h
19390# endif
19391int
19392main ()
19393{
19394glBegin(0)
19395  ;
19396  return 0;
19397}
19398_ACEOF
19399if ac_fn_c_try_link "$LINENO"; then :
19400  ax_cv_check_gl_libgl="$LIBS"
19401fi
19402rm -f core conftest.err conftest.$ac_objext \
19403    conftest$ac_exeext conftest.$ac_ext
19404fi
19405
19406LIBS=${ax_save_LIBS}
19407CPPFLAGS=${ax_save_CPPFLAGS}
19408fi
19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19410$as_echo "$ax_cv_check_gl_libgl" >&6; }
19411
19412if test "X$ax_cv_check_gl_libgl" = Xno; then :
19413  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
19414else
19415  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
19416fi
19417ac_ext=c
19418ac_cpp='$CPP $CPPFLAGS'
19419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19421ac_compiler_gnu=$ac_cv_c_compiler_gnu
19422
19423
19424
19425
19426
19427
19428GLU_CFLAGS="${GL_CFLAGS}"
19429
19430ax_save_CPPFLAGS="${CPPFLAGS}"
19431CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19432for ac_header in GL/glu.h OpenGL/glu.h
19433do :
19434  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19437  cat >>confdefs.h <<_ACEOF
19438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19439_ACEOF
19440
19441fi
19442
19443done
19444
19445CPPFLAGS="${ax_save_CPPFLAGS}"
19446
19447
19448
19449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
19450$as_echo_n "checking for OpenGL Utility library... " >&6; }
19451if ${ax_cv_check_glu_libglu+:} false; then :
19452  $as_echo_n "(cached) " >&6
19453else
19454  ax_cv_check_glu_libglu="no"
19455ax_save_CPPFLAGS="${CPPFLAGS}"
19456CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19457ax_save_LIBS="${LIBS}"
19458
19459LIBS="${GL_LIBS} ${ax_save_LIBS}"
19460ac_ext=cpp
19461ac_cpp='$CXXCPP $CPPFLAGS'
19462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19465
19466if test X$ax_compiler_ms = Xyes; then :
19467  ac_ext=c
19468ac_cpp='$CPP $CPPFLAGS'
19469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19471ac_compiler_gnu=$ac_cv_c_compiler_gnu
19472
19473fi
19474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475/* end confdefs.h.  */
19476
19477# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19478#   include <windows.h>
19479# endif
19480# ifdef HAVE_GL_GLU_H
19481#   include <GL/glu.h>
19482# elif defined(HAVE_OPENGL_GLU_H)
19483#   include <OpenGL/glu.h>
19484# else
19485#   error no glu.h
19486# endif
19487int
19488main ()
19489{
19490gluBeginCurve(0)
19491  ;
19492  return 0;
19493}
19494_ACEOF
19495if ac_fn_c_try_link "$LINENO"; then :
19496  ax_cv_check_glu_libglu=yes
19497else
19498  LIBS=""
19499ax_check_libs="-lglu32 -lGLU"
19500for ax_lib in ${ax_check_libs}; do
19501  if test X$ax_compiler_ms = Xyes; then :
19502  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19503else
19504  ax_try_lib="${ax_lib}"
19505fi
19506  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19508/* end confdefs.h.  */
19509
19510# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19511#   include <windows.h>
19512# endif
19513# ifdef HAVE_GL_GLU_H
19514#   include <GL/glu.h>
19515# elif defined(HAVE_OPENGL_GLU_H)
19516#   include <OpenGL/glu.h>
19517# else
19518#   error no glu.h
19519# endif
19520int
19521main ()
19522{
19523gluBeginCurve(0)
19524  ;
19525  return 0;
19526}
19527_ACEOF
19528if ac_fn_c_try_link "$LINENO"; then :
19529  ax_cv_check_glu_libglu="${ax_try_lib}"; break
19530fi
19531rm -f core conftest.err conftest.$ac_objext \
19532    conftest$ac_exeext conftest.$ac_ext
19533done
19534
19535fi
19536rm -f core conftest.err conftest.$ac_objext \
19537    conftest$ac_exeext conftest.$ac_ext
19538if test X$ax_compiler_ms = Xyes; then :
19539  ac_ext=cpp
19540ac_cpp='$CXXCPP $CPPFLAGS'
19541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19544
19545fi
19546ac_ext=c
19547ac_cpp='$CPP $CPPFLAGS'
19548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19550ac_compiler_gnu=$ac_cv_c_compiler_gnu
19551
19552
19553LIBS=${ax_save_LIBS}
19554CPPFLAGS=${ax_save_CPPFLAGS}
19555fi
19556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19557$as_echo "$ax_cv_check_glu_libglu" >&6; }
19558if test "X$ax_cv_check_glu_libglu" = Xno; then :
19559  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19560else
19561  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19562  GLU_LIBS="$GL_LIBS"
19563else
19564  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19565fi
19566fi
19567
19568
19569
19570if test "X$ax_cv_check_glu_libglu" != Xno; then :
19571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
19572$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
19573if ${ax_cv_varargs_glu_tesscb+:} false; then :
19574  $as_echo_n "(cached) " >&6
19575else
19576  ax_cv_varargs_glu_tesscb=no
19577ax_save_CFLAGS="$CFLAGS"
19578CFLAGS="$GL_CFLAGS $CFLAGS"
19579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580/* end confdefs.h.  */
19581
19582# ifdef HAVE_GL_GLU_H
19583#   include <GL/glu.h>
19584# else
19585#   include <OpenGL/glu.h>
19586# endif
19587int
19588main ()
19589{
19590GLvoid (*func)(...); gluTessCallback(0, 0, func)
19591  ;
19592  return 0;
19593}
19594_ACEOF
19595if ac_fn_c_try_compile "$LINENO"; then :
19596  ax_cv_varargs_glu_tesscb=yes
19597fi
19598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599CFLAGS="$ax_save_CFLAGS"
19600fi
19601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19602$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19603if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
19604
19605$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19606
19607fi
19608fi
19609
19610
19611
19612ax_save_CPPFLAGS="${CPPFLAGS}"
19613CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19614for ac_header in GL/glut.h GLUT/glut.h
19615do :
19616  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19619  cat >>confdefs.h <<_ACEOF
19620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19621_ACEOF
19622
19623fi
19624
19625done
19626
19627CPPFLAGS="${ax_save_CPPFLAGS}"
19628
19629GLUT_CFLAGS=${GLU_CFLAGS}
19630GLUT_LIBS=${GLU_LIBS}
19631
19632
19633
19634if test X$no_x != Xyes; then :
19635  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19636fi
19637
19638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19639$as_echo_n "checking for GLUT library... " >&6; }
19640if ${ax_cv_check_glut_libglut+:} false; then :
19641  $as_echo_n "(cached) " >&6
19642else
19643  ax_cv_check_glut_libglut="no"
19644ac_ext=c
19645ac_cpp='$CPP $CPPFLAGS'
19646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650ax_save_CPPFLAGS="${CPPFLAGS}"
19651CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19652ax_save_LIBS="${LIBS}"
19653LIBS=""
19654ax_check_libs="-lglut32 -lglut"
19655for ax_lib in ${ax_check_libs}; do
19656  if test X$ax_compiler_ms = Xyes; then :
19657  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19658else
19659  ax_try_lib="${ax_lib}"
19660fi
19661  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663/* end confdefs.h.  */
19664
19665# if HAVE_WINDOWS_H && defined(_WIN32)
19666#   include <windows.h>
19667# endif
19668# ifdef HAVE_GL_GLUT_H
19669#   include <GL/glut.h>
19670# elif defined(HAVE_GLUT_GLUT_H)
19671#   include <GLUT/glut.h>
19672# else
19673#   error no glut.h
19674# endif
19675int
19676main ()
19677{
19678glutMainLoop()
19679  ;
19680  return 0;
19681}
19682_ACEOF
19683if ac_fn_c_try_link "$LINENO"; then :
19684  ax_cv_check_glut_libglut="${ax_try_lib}"; break
19685fi
19686rm -f core conftest.err conftest.$ac_objext \
19687    conftest$ac_exeext conftest.$ac_ext
19688done
19689
19690if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19691  LIBS='-framework GLUT'
19692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693/* end confdefs.h.  */
19694
19695# if HAVE_WINDOWS_H && defined(_WIN32)
19696#   include <windows.h>
19697# endif
19698# ifdef HAVE_GL_GLUT_H
19699#   include <GL/glut.h>
19700# elif defined(HAVE_GLUT_GLUT_H)
19701#   include <GLUT/glut.h>
19702# else
19703#   error no glut.h
19704# endif
19705int
19706main ()
19707{
19708glutMainLoop()
19709  ;
19710  return 0;
19711}
19712_ACEOF
19713if ac_fn_c_try_link "$LINENO"; then :
19714  ax_cv_check_glut_libglut="$LIBS"
19715fi
19716rm -f core conftest.err conftest.$ac_objext \
19717    conftest$ac_exeext conftest.$ac_ext
19718fi
19719
19720CPPFLAGS="${ax_save_CPPFLAGS}"
19721LIBS="${ax_save_LIBS}"
19722ac_ext=c
19723ac_cpp='$CPP $CPPFLAGS'
19724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728fi
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19730$as_echo "$ax_cv_check_glut_libglut" >&6; }
19731
19732if test "X$ax_cv_check_glut_libglut" = Xno; then :
19733  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19734else
19735  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19736fi
19737
19738
19739
19740
19741
19742if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19743	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19744  HAVE_OPENGL=yes
19745fi
19746
19747 if test "$HAVE_OPENGL" = "yes"; then
19748  HAVE_OPENGL_TRUE=
19749  HAVE_OPENGL_FALSE='#'
19750else
19751  HAVE_OPENGL_TRUE='#'
19752  HAVE_OPENGL_FALSE=
19753fi
19754
19755
19756
19757win32_io_ok=no
19758case "${host_os}" in
19759    cygwin*)
19760        ;;
19761    *)
19762        if test x"$ac_cv_header_windows_h" = xyes; then
19763            win32_io_ok=yes
19764
19765$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
19766
19767	fi
19768        ;;
19769esac
19770 if test "$win32_io_ok" = yes; then
19771  WIN32_IO_TRUE=
19772  WIN32_IO_FALSE='#'
19773else
19774  WIN32_IO_TRUE='#'
19775  WIN32_IO_FALSE=
19776fi
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786# Check whether --enable-strip-chopping was given.
19787if test "${enable_strip_chopping+set}" = set; then :
19788  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
19789else
19790  HAVE_STRIPCHOP=yes
19791fi
19792
19793
19794# Check whether --with-default-strip-size was given.
19795if test "${with_default_strip_size+set}" = set; then :
19796  withval=$with_default_strip_size;
19797fi
19798
19799
19800if test "$HAVE_STRIPCHOP" = "yes" \
19801	-a "x$with_default_strip_size" != "xno"; then
19802
19803$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
19804
19805
19806  if test "x$with_default_strip_size" = "x" \
19807	  -o "x$with_default_strip_size" = "xyes"; then
19808    with_default_strip_size="8192"
19809  fi
19810
19811
19812cat >>confdefs.h <<_ACEOF
19813#define STRIP_SIZE_DEFAULT $with_default_strip_size
19814_ACEOF
19815
19816
19817fi
19818
19819
19820# Check whether --enable-defer-strile-load was given.
19821if test "${enable_defer_strile_load+set}" = set; then :
19822  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
19823else
19824  HAVE_DEFER_STRILE_LOAD=no
19825fi
19826
19827
19828if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
19829
19830$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
19831
19832
19833fi
19834
19835
19836# Check whether --enable-chunky-strip-read was given.
19837if test "${enable_chunky_strip_read+set}" = set; then :
19838  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
19839else
19840  HAVE_CHUNKY_STRIP_READ=no
19841fi
19842
19843
19844if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
19845
19846$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
19847
19848
19849fi
19850
19851
19852$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
19853
19854
19855
19856# Check whether --enable-extrasample-as-alpha was given.
19857if test "${enable_extrasample_as_alpha+set}" = set; then :
19858  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
19859else
19860  HAVE_EXTRASAMPLE_AS_ALPHA=yes
19861fi
19862
19863
19864if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
19865
19866$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
19867
19868fi
19869
19870
19871# Check whether --enable-check-ycbcr-subsampling was given.
19872if test "${enable_check_ycbcr_subsampling+set}" = set; then :
19873  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
19874else
19875  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
19876fi
19877
19878
19879if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
19880
19881$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
19882
19883fi
19884
19885
19886
19887
19888ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
19889
19890
19891ac_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"
19892
19893cat >confcache <<\_ACEOF
19894# This file is a shell script that caches the results of configure
19895# tests run on this system so they can be shared between configure
19896# scripts and configure runs, see configure's option --config-cache.
19897# It is not useful on other systems.  If it contains results you don't
19898# want to keep, you may remove or edit it.
19899#
19900# config.status only pays attention to the cache file if you give it
19901# the --recheck option to rerun configure.
19902#
19903# `ac_cv_env_foo' variables (set or unset) will be overridden when
19904# loading this file, other *unset* `ac_cv_foo' will be assigned the
19905# following values.
19906
19907_ACEOF
19908
19909# The following way of writing the cache mishandles newlines in values,
19910# but we know of no workaround that is simple, portable, and efficient.
19911# So, we kill variables containing newlines.
19912# Ultrix sh set writes to stderr and can't be redirected directly,
19913# and sets the high bit in the cache file unless we assign to the vars.
19914(
19915  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19916    eval ac_val=\$$ac_var
19917    case $ac_val in #(
19918    *${as_nl}*)
19919      case $ac_var in #(
19920      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19921$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19922      esac
19923      case $ac_var in #(
19924      _ | IFS | as_nl) ;; #(
19925      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19926      *) { eval $ac_var=; unset $ac_var;} ;;
19927      esac ;;
19928    esac
19929  done
19930
19931  (set) 2>&1 |
19932    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19933    *${as_nl}ac_space=\ *)
19934      # `set' does not quote correctly, so add quotes: double-quote
19935      # substitution turns \\\\ into \\, and sed turns \\ into \.
19936      sed -n \
19937	"s/'/'\\\\''/g;
19938	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19939      ;; #(
19940    *)
19941      # `set' quotes correctly as required by POSIX, so do not add quotes.
19942      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19943      ;;
19944    esac |
19945    sort
19946) |
19947  sed '
19948     /^ac_cv_env_/b end
19949     t clear
19950     :clear
19951     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19952     t end
19953     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19954     :end' >>confcache
19955if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19956  if test -w "$cache_file"; then
19957    if test "x$cache_file" != "x/dev/null"; then
19958      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19959$as_echo "$as_me: updating cache $cache_file" >&6;}
19960      if test ! -f "$cache_file" || test -h "$cache_file"; then
19961	cat confcache >"$cache_file"
19962      else
19963        case $cache_file in #(
19964        */* | ?:*)
19965	  mv -f confcache "$cache_file"$$ &&
19966	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19967        *)
19968	  mv -f confcache "$cache_file" ;;
19969	esac
19970      fi
19971    fi
19972  else
19973    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19974$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19975  fi
19976fi
19977rm -f confcache
19978
19979test "x$prefix" = xNONE && prefix=$ac_default_prefix
19980# Let make expand exec_prefix.
19981test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19982
19983DEFS=-DHAVE_CONFIG_H
19984
19985ac_libobjs=
19986ac_ltlibobjs=
19987U=
19988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19989  # 1. Remove the extension, and $U if already installed.
19990  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19991  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19992  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19993  #    will be set to the directory where LIBOBJS objects are built.
19994  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19995  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19996done
19997LIBOBJS=$ac_libobjs
19998
19999LTLIBOBJS=$ac_ltlibobjs
20000
20001
20002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20003$as_echo_n "checking that generated files are newer than configure... " >&6; }
20004   if test -n "$am_sleep_pid"; then
20005     # Hide warnings about reused PIDs.
20006     wait $am_sleep_pid 2>/dev/null
20007   fi
20008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20009$as_echo "done" >&6; }
20010 if test -n "$EXEEXT"; then
20011  am__EXEEXT_TRUE=
20012  am__EXEEXT_FALSE='#'
20013else
20014  am__EXEEXT_TRUE='#'
20015  am__EXEEXT_FALSE=
20016fi
20017
20018if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20019  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20020Usually this means the macro was only invoked conditionally." "$LINENO" 5
20021fi
20022if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20023  as_fn_error $? "conditional \"AMDEP\" was never defined.
20024Usually this means the macro was only invoked conditionally." "$LINENO" 5
20025fi
20026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20027  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20028Usually this means the macro was only invoked conditionally." "$LINENO" 5
20029fi
20030if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20031  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20032Usually this means the macro was only invoked conditionally." "$LINENO" 5
20033fi
20034if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20035  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20036Usually this means the macro was only invoked conditionally." "$LINENO" 5
20037fi
20038
20039if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20040  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20041Usually this means the macro was only invoked conditionally." "$LINENO" 5
20042fi
20043if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20044  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20045Usually this means the macro was only invoked conditionally." "$LINENO" 5
20046fi
20047if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20048  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20049Usually this means the macro was only invoked conditionally." "$LINENO" 5
20050fi
20051if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20052  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20053Usually this means the macro was only invoked conditionally." "$LINENO" 5
20054fi
20055
20056: "${CONFIG_STATUS=./config.status}"
20057ac_write_fail=0
20058ac_clean_files_save=$ac_clean_files
20059ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20061$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20062as_write_fail=0
20063cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20064#! $SHELL
20065# Generated by $as_me.
20066# Run this file to recreate the current configuration.
20067# Compiler output produced by configure, useful for debugging
20068# configure, is in config.log if it exists.
20069
20070debug=false
20071ac_cs_recheck=false
20072ac_cs_silent=false
20073
20074SHELL=\${CONFIG_SHELL-$SHELL}
20075export SHELL
20076_ASEOF
20077cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20078## -------------------- ##
20079## M4sh Initialization. ##
20080## -------------------- ##
20081
20082# Be more Bourne compatible
20083DUALCASE=1; export DUALCASE # for MKS sh
20084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20085  emulate sh
20086  NULLCMD=:
20087  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20088  # is contrary to our usage.  Disable this feature.
20089  alias -g '${1+"$@"}'='"$@"'
20090  setopt NO_GLOB_SUBST
20091else
20092  case `(set -o) 2>/dev/null` in #(
20093  *posix*) :
20094    set -o posix ;; #(
20095  *) :
20096     ;;
20097esac
20098fi
20099
20100
20101as_nl='
20102'
20103export as_nl
20104# Printing a long string crashes Solaris 7 /usr/bin/printf.
20105as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20108# Prefer a ksh shell builtin over an external printf program on Solaris,
20109# but without wasting forks for bash or zsh.
20110if test -z "$BASH_VERSION$ZSH_VERSION" \
20111    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20112  as_echo='print -r --'
20113  as_echo_n='print -rn --'
20114elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20115  as_echo='printf %s\n'
20116  as_echo_n='printf %s'
20117else
20118  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20119    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20120    as_echo_n='/usr/ucb/echo -n'
20121  else
20122    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20123    as_echo_n_body='eval
20124      arg=$1;
20125      case $arg in #(
20126      *"$as_nl"*)
20127	expr "X$arg" : "X\\(.*\\)$as_nl";
20128	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20129      esac;
20130      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20131    '
20132    export as_echo_n_body
20133    as_echo_n='sh -c $as_echo_n_body as_echo'
20134  fi
20135  export as_echo_body
20136  as_echo='sh -c $as_echo_body as_echo'
20137fi
20138
20139# The user is always right.
20140if test "${PATH_SEPARATOR+set}" != set; then
20141  PATH_SEPARATOR=:
20142  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20143    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20144      PATH_SEPARATOR=';'
20145  }
20146fi
20147
20148
20149# IFS
20150# We need space, tab and new line, in precisely that order.  Quoting is
20151# there to prevent editors from complaining about space-tab.
20152# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20153# splitting by setting IFS to empty value.)
20154IFS=" ""	$as_nl"
20155
20156# Find who we are.  Look in the path if we contain no directory separator.
20157as_myself=
20158case $0 in #((
20159  *[\\/]* ) as_myself=$0 ;;
20160  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161for as_dir in $PATH
20162do
20163  IFS=$as_save_IFS
20164  test -z "$as_dir" && as_dir=.
20165    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20166  done
20167IFS=$as_save_IFS
20168
20169     ;;
20170esac
20171# We did not find ourselves, most probably we were run as `sh COMMAND'
20172# in which case we are not to be found in the path.
20173if test "x$as_myself" = x; then
20174  as_myself=$0
20175fi
20176if test ! -f "$as_myself"; then
20177  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20178  exit 1
20179fi
20180
20181# Unset variables that we do not need and which cause bugs (e.g. in
20182# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20183# suppresses any "Segmentation fault" message there.  '((' could
20184# trigger a bug in pdksh 5.2.14.
20185for as_var in BASH_ENV ENV MAIL MAILPATH
20186do eval test x\${$as_var+set} = xset \
20187  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20188done
20189PS1='$ '
20190PS2='> '
20191PS4='+ '
20192
20193# NLS nuisances.
20194LC_ALL=C
20195export LC_ALL
20196LANGUAGE=C
20197export LANGUAGE
20198
20199# CDPATH.
20200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20201
20202
20203# as_fn_error STATUS ERROR [LINENO LOG_FD]
20204# ----------------------------------------
20205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20207# script with STATUS, using 1 if that was 0.
20208as_fn_error ()
20209{
20210  as_status=$1; test $as_status -eq 0 && as_status=1
20211  if test "$4"; then
20212    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20213    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20214  fi
20215  $as_echo "$as_me: error: $2" >&2
20216  as_fn_exit $as_status
20217} # as_fn_error
20218
20219
20220# as_fn_set_status STATUS
20221# -----------------------
20222# Set $? to STATUS, without forking.
20223as_fn_set_status ()
20224{
20225  return $1
20226} # as_fn_set_status
20227
20228# as_fn_exit STATUS
20229# -----------------
20230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20231as_fn_exit ()
20232{
20233  set +e
20234  as_fn_set_status $1
20235  exit $1
20236} # as_fn_exit
20237
20238# as_fn_unset VAR
20239# ---------------
20240# Portably unset VAR.
20241as_fn_unset ()
20242{
20243  { eval $1=; unset $1;}
20244}
20245as_unset=as_fn_unset
20246# as_fn_append VAR VALUE
20247# ----------------------
20248# Append the text in VALUE to the end of the definition contained in VAR. Take
20249# advantage of any shell optimizations that allow amortized linear growth over
20250# repeated appends, instead of the typical quadratic growth present in naive
20251# implementations.
20252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20253  eval 'as_fn_append ()
20254  {
20255    eval $1+=\$2
20256  }'
20257else
20258  as_fn_append ()
20259  {
20260    eval $1=\$$1\$2
20261  }
20262fi # as_fn_append
20263
20264# as_fn_arith ARG...
20265# ------------------
20266# Perform arithmetic evaluation on the ARGs, and store the result in the
20267# global $as_val. Take advantage of shells that can avoid forks. The arguments
20268# must be portable across $(()) and expr.
20269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20270  eval 'as_fn_arith ()
20271  {
20272    as_val=$(( $* ))
20273  }'
20274else
20275  as_fn_arith ()
20276  {
20277    as_val=`expr "$@" || test $? -eq 1`
20278  }
20279fi # as_fn_arith
20280
20281
20282if expr a : '\(a\)' >/dev/null 2>&1 &&
20283   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20284  as_expr=expr
20285else
20286  as_expr=false
20287fi
20288
20289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20290  as_basename=basename
20291else
20292  as_basename=false
20293fi
20294
20295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20296  as_dirname=dirname
20297else
20298  as_dirname=false
20299fi
20300
20301as_me=`$as_basename -- "$0" ||
20302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20303	 X"$0" : 'X\(//\)$' \| \
20304	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20305$as_echo X/"$0" |
20306    sed '/^.*\/\([^/][^/]*\)\/*$/{
20307	    s//\1/
20308	    q
20309	  }
20310	  /^X\/\(\/\/\)$/{
20311	    s//\1/
20312	    q
20313	  }
20314	  /^X\/\(\/\).*/{
20315	    s//\1/
20316	    q
20317	  }
20318	  s/.*/./; q'`
20319
20320# Avoid depending upon Character Ranges.
20321as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20323as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20324as_cr_digits='0123456789'
20325as_cr_alnum=$as_cr_Letters$as_cr_digits
20326
20327ECHO_C= ECHO_N= ECHO_T=
20328case `echo -n x` in #(((((
20329-n*)
20330  case `echo 'xy\c'` in
20331  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20332  xy)  ECHO_C='\c';;
20333  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20334       ECHO_T='	';;
20335  esac;;
20336*)
20337  ECHO_N='-n';;
20338esac
20339
20340rm -f conf$$ conf$$.exe conf$$.file
20341if test -d conf$$.dir; then
20342  rm -f conf$$.dir/conf$$.file
20343else
20344  rm -f conf$$.dir
20345  mkdir conf$$.dir 2>/dev/null
20346fi
20347if (echo >conf$$.file) 2>/dev/null; then
20348  if ln -s conf$$.file conf$$ 2>/dev/null; then
20349    as_ln_s='ln -s'
20350    # ... but there are two gotchas:
20351    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20352    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20353    # In both cases, we have to default to `cp -pR'.
20354    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20355      as_ln_s='cp -pR'
20356  elif ln conf$$.file conf$$ 2>/dev/null; then
20357    as_ln_s=ln
20358  else
20359    as_ln_s='cp -pR'
20360  fi
20361else
20362  as_ln_s='cp -pR'
20363fi
20364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20365rmdir conf$$.dir 2>/dev/null
20366
20367
20368# as_fn_mkdir_p
20369# -------------
20370# Create "$as_dir" as a directory, including parents if necessary.
20371as_fn_mkdir_p ()
20372{
20373
20374  case $as_dir in #(
20375  -*) as_dir=./$as_dir;;
20376  esac
20377  test -d "$as_dir" || eval $as_mkdir_p || {
20378    as_dirs=
20379    while :; do
20380      case $as_dir in #(
20381      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20382      *) as_qdir=$as_dir;;
20383      esac
20384      as_dirs="'$as_qdir' $as_dirs"
20385      as_dir=`$as_dirname -- "$as_dir" ||
20386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20387	 X"$as_dir" : 'X\(//\)[^/]' \| \
20388	 X"$as_dir" : 'X\(//\)$' \| \
20389	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20390$as_echo X"$as_dir" |
20391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20392	    s//\1/
20393	    q
20394	  }
20395	  /^X\(\/\/\)[^/].*/{
20396	    s//\1/
20397	    q
20398	  }
20399	  /^X\(\/\/\)$/{
20400	    s//\1/
20401	    q
20402	  }
20403	  /^X\(\/\).*/{
20404	    s//\1/
20405	    q
20406	  }
20407	  s/.*/./; q'`
20408      test -d "$as_dir" && break
20409    done
20410    test -z "$as_dirs" || eval "mkdir $as_dirs"
20411  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20412
20413
20414} # as_fn_mkdir_p
20415if mkdir -p . 2>/dev/null; then
20416  as_mkdir_p='mkdir -p "$as_dir"'
20417else
20418  test -d ./-p && rmdir ./-p
20419  as_mkdir_p=false
20420fi
20421
20422
20423# as_fn_executable_p FILE
20424# -----------------------
20425# Test if FILE is an executable regular file.
20426as_fn_executable_p ()
20427{
20428  test -f "$1" && test -x "$1"
20429} # as_fn_executable_p
20430as_test_x='test -x'
20431as_executable_p=as_fn_executable_p
20432
20433# Sed expression to map a string onto a valid CPP name.
20434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20435
20436# Sed expression to map a string onto a valid variable name.
20437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20438
20439
20440exec 6>&1
20441## ----------------------------------- ##
20442## Main body of $CONFIG_STATUS script. ##
20443## ----------------------------------- ##
20444_ASEOF
20445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20446
20447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20448# Save the log message, to keep $0 and so on meaningful, and to
20449# report actual input values of CONFIG_FILES etc. instead of their
20450# values after options handling.
20451ac_log="
20452This file was extended by LibTIFF Software $as_me 4.0.3, which was
20453generated by GNU Autoconf 2.69.  Invocation command line was
20454
20455  CONFIG_FILES    = $CONFIG_FILES
20456  CONFIG_HEADERS  = $CONFIG_HEADERS
20457  CONFIG_LINKS    = $CONFIG_LINKS
20458  CONFIG_COMMANDS = $CONFIG_COMMANDS
20459  $ $0 $@
20460
20461on `(hostname || uname -n) 2>/dev/null | sed 1q`
20462"
20463
20464_ACEOF
20465
20466case $ac_config_files in *"
20467"*) set x $ac_config_files; shift; ac_config_files=$*;;
20468esac
20469
20470case $ac_config_headers in *"
20471"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20472esac
20473
20474
20475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20476# Files that config.status was made for.
20477config_files="$ac_config_files"
20478config_headers="$ac_config_headers"
20479config_commands="$ac_config_commands"
20480
20481_ACEOF
20482
20483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20484ac_cs_usage="\
20485\`$as_me' instantiates files and other configuration actions
20486from templates according to the current configuration.  Unless the files
20487and actions are specified as TAGs, all are instantiated by default.
20488
20489Usage: $0 [OPTION]... [TAG]...
20490
20491  -h, --help       print this help, then exit
20492  -V, --version    print version number and configuration settings, then exit
20493      --config     print configuration, then exit
20494  -q, --quiet, --silent
20495                   do not print progress messages
20496  -d, --debug      don't remove temporary files
20497      --recheck    update $as_me by reconfiguring in the same conditions
20498      --file=FILE[:TEMPLATE]
20499                   instantiate the configuration file FILE
20500      --header=FILE[:TEMPLATE]
20501                   instantiate the configuration header FILE
20502
20503Configuration files:
20504$config_files
20505
20506Configuration headers:
20507$config_headers
20508
20509Configuration commands:
20510$config_commands
20511
20512Report bugs to <[email protected]>."
20513
20514_ACEOF
20515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20516ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20517ac_cs_version="\\
20518LibTIFF Software config.status 4.0.3
20519configured by $0, generated by GNU Autoconf 2.69,
20520  with options \\"\$ac_cs_config\\"
20521
20522Copyright (C) 2012 Free Software Foundation, Inc.
20523This config.status script is free software; the Free Software Foundation
20524gives unlimited permission to copy, distribute and modify it."
20525
20526ac_pwd='$ac_pwd'
20527srcdir='$srcdir'
20528INSTALL='$INSTALL'
20529MKDIR_P='$MKDIR_P'
20530AWK='$AWK'
20531test -n "\$AWK" || AWK=awk
20532_ACEOF
20533
20534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20535# The default lists apply if the user does not specify any file.
20536ac_need_defaults=:
20537while test $# != 0
20538do
20539  case $1 in
20540  --*=?*)
20541    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20542    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20543    ac_shift=:
20544    ;;
20545  --*=)
20546    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20547    ac_optarg=
20548    ac_shift=:
20549    ;;
20550  *)
20551    ac_option=$1
20552    ac_optarg=$2
20553    ac_shift=shift
20554    ;;
20555  esac
20556
20557  case $ac_option in
20558  # Handling of the options.
20559  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20560    ac_cs_recheck=: ;;
20561  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20562    $as_echo "$ac_cs_version"; exit ;;
20563  --config | --confi | --conf | --con | --co | --c )
20564    $as_echo "$ac_cs_config"; exit ;;
20565  --debug | --debu | --deb | --de | --d | -d )
20566    debug=: ;;
20567  --file | --fil | --fi | --f )
20568    $ac_shift
20569    case $ac_optarg in
20570    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20571    '') as_fn_error $? "missing file argument" ;;
20572    esac
20573    as_fn_append CONFIG_FILES " '$ac_optarg'"
20574    ac_need_defaults=false;;
20575  --header | --heade | --head | --hea )
20576    $ac_shift
20577    case $ac_optarg in
20578    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20579    esac
20580    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20581    ac_need_defaults=false;;
20582  --he | --h)
20583    # Conflict between --help and --header
20584    as_fn_error $? "ambiguous option: \`$1'
20585Try \`$0 --help' for more information.";;
20586  --help | --hel | -h )
20587    $as_echo "$ac_cs_usage"; exit ;;
20588  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20589  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20590    ac_cs_silent=: ;;
20591
20592  # This is an error.
20593  -*) as_fn_error $? "unrecognized option: \`$1'
20594Try \`$0 --help' for more information." ;;
20595
20596  *) as_fn_append ac_config_targets " $1"
20597     ac_need_defaults=false ;;
20598
20599  esac
20600  shift
20601done
20602
20603ac_configure_extra_args=
20604
20605if $ac_cs_silent; then
20606  exec 6>/dev/null
20607  ac_configure_extra_args="$ac_configure_extra_args --silent"
20608fi
20609
20610_ACEOF
20611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20612if \$ac_cs_recheck; then
20613  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20614  shift
20615  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20616  CONFIG_SHELL='$SHELL'
20617  export CONFIG_SHELL
20618  exec "\$@"
20619fi
20620
20621_ACEOF
20622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20623exec 5>>config.log
20624{
20625  echo
20626  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20627## Running $as_me. ##
20628_ASBOX
20629  $as_echo "$ac_log"
20630} >&5
20631
20632_ACEOF
20633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20634#
20635# INIT-COMMANDS
20636#
20637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20638
20639
20640# The HP-UX ksh and POSIX shell print the target directory to stdout
20641# if CDPATH is set.
20642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20643
20644sed_quote_subst='$sed_quote_subst'
20645double_quote_subst='$double_quote_subst'
20646delay_variable_subst='$delay_variable_subst'
20647macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20648macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20649AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20650DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20651OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20652enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20653enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20654pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20655enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20656SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20657ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20658PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20659host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20660host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20661host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20662build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20663build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20664build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20665SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20666Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20667GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20668EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20669FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20670LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20671NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20672LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20673max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20674ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20675exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20676lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20677lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20678lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20679lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20680lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20681reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20682reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20683deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20684file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20685file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20686want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20687sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20688AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20689AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20690archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20691STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20692RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20693old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20694old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20695old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20696lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20697CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20698CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20699compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20700GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20701lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20702lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20703lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20704lt_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"`'
20705nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20706lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20707objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20708MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20709lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20710lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20711lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20712lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20713lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20714need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20715MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20716DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20717NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20718LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20719OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20720OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20721libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20722shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20723extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20724archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20725enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20726export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20727whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20728compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20729old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20730old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20731archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20732archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20733module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20734module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20735with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20736allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20737no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20738hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20739hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20740hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20741hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20742hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20743hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20744hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20745inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20746link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20747always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20748export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20749exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20750include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20751prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20752postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20753file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20754variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20755need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20756need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20757version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20758runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20759shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20760shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20761libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20762library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20763soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20764install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20765postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20766postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20767finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20768finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20769hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20770sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20771sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20772hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20773enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20774enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20775enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20776old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20777striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20778compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20779predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20780postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20781predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20782postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20783compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20784LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20785reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20786reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20787old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20788compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20789GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20790lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20791lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20792lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20793lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20794lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20795archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20796enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20797export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20798whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20799compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20800old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20803archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20804module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20805module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20806with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20807allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20808no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20809hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20810hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20811hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20812hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20813hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20814hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20815hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20816inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20817link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20818always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20819export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20820exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20821include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20822prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20823postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20824file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20825hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20826compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20827predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20828postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20829predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20830postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20831compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20832
20833LTCC='$LTCC'
20834LTCFLAGS='$LTCFLAGS'
20835compiler='$compiler_DEFAULT'
20836
20837# A function that is used when there is no print builtin or printf.
20838func_fallback_echo ()
20839{
20840  eval 'cat <<_LTECHO_EOF
20841\$1
20842_LTECHO_EOF'
20843}
20844
20845# Quote evaled strings.
20846for var in AS \
20847DLLTOOL \
20848OBJDUMP \
20849SHELL \
20850ECHO \
20851PATH_SEPARATOR \
20852SED \
20853GREP \
20854EGREP \
20855FGREP \
20856LD \
20857NM \
20858LN_S \
20859lt_SP2NL \
20860lt_NL2SP \
20861reload_flag \
20862deplibs_check_method \
20863file_magic_cmd \
20864file_magic_glob \
20865want_nocaseglob \
20866sharedlib_from_linklib_cmd \
20867AR \
20868AR_FLAGS \
20869archiver_list_spec \
20870STRIP \
20871RANLIB \
20872CC \
20873CFLAGS \
20874compiler \
20875lt_cv_sys_global_symbol_pipe \
20876lt_cv_sys_global_symbol_to_cdecl \
20877lt_cv_sys_global_symbol_to_c_name_address \
20878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20879nm_file_list_spec \
20880lt_prog_compiler_no_builtin_flag \
20881lt_prog_compiler_pic \
20882lt_prog_compiler_wl \
20883lt_prog_compiler_static \
20884lt_cv_prog_compiler_c_o \
20885need_locks \
20886MANIFEST_TOOL \
20887DSYMUTIL \
20888NMEDIT \
20889LIPO \
20890OTOOL \
20891OTOOL64 \
20892shrext_cmds \
20893export_dynamic_flag_spec \
20894whole_archive_flag_spec \
20895compiler_needs_object \
20896with_gnu_ld \
20897allow_undefined_flag \
20898no_undefined_flag \
20899hardcode_libdir_flag_spec \
20900hardcode_libdir_separator \
20901exclude_expsyms \
20902include_expsyms \
20903file_list_spec \
20904variables_saved_for_relink \
20905libname_spec \
20906library_names_spec \
20907soname_spec \
20908install_override_mode \
20909finish_eval \
20910old_striplib \
20911striplib \
20912compiler_lib_search_dirs \
20913predep_objects \
20914postdep_objects \
20915predeps \
20916postdeps \
20917compiler_lib_search_path \
20918LD_CXX \
20919reload_flag_CXX \
20920compiler_CXX \
20921lt_prog_compiler_no_builtin_flag_CXX \
20922lt_prog_compiler_pic_CXX \
20923lt_prog_compiler_wl_CXX \
20924lt_prog_compiler_static_CXX \
20925lt_cv_prog_compiler_c_o_CXX \
20926export_dynamic_flag_spec_CXX \
20927whole_archive_flag_spec_CXX \
20928compiler_needs_object_CXX \
20929with_gnu_ld_CXX \
20930allow_undefined_flag_CXX \
20931no_undefined_flag_CXX \
20932hardcode_libdir_flag_spec_CXX \
20933hardcode_libdir_separator_CXX \
20934exclude_expsyms_CXX \
20935include_expsyms_CXX \
20936file_list_spec_CXX \
20937compiler_lib_search_dirs_CXX \
20938predep_objects_CXX \
20939postdep_objects_CXX \
20940predeps_CXX \
20941postdeps_CXX \
20942compiler_lib_search_path_CXX; do
20943    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20944    *[\\\\\\\`\\"\\\$]*)
20945      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20946      ;;
20947    *)
20948      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20949      ;;
20950    esac
20951done
20952
20953# Double-quote double-evaled strings.
20954for var in reload_cmds \
20955old_postinstall_cmds \
20956old_postuninstall_cmds \
20957old_archive_cmds \
20958extract_expsyms_cmds \
20959old_archive_from_new_cmds \
20960old_archive_from_expsyms_cmds \
20961archive_cmds \
20962archive_expsym_cmds \
20963module_cmds \
20964module_expsym_cmds \
20965export_symbols_cmds \
20966prelink_cmds \
20967postlink_cmds \
20968postinstall_cmds \
20969postuninstall_cmds \
20970finish_cmds \
20971sys_lib_search_path_spec \
20972sys_lib_dlsearch_path_spec \
20973reload_cmds_CXX \
20974old_archive_cmds_CXX \
20975old_archive_from_new_cmds_CXX \
20976old_archive_from_expsyms_cmds_CXX \
20977archive_cmds_CXX \
20978archive_expsym_cmds_CXX \
20979module_cmds_CXX \
20980module_expsym_cmds_CXX \
20981export_symbols_cmds_CXX \
20982prelink_cmds_CXX \
20983postlink_cmds_CXX; do
20984    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20985    *[\\\\\\\`\\"\\\$]*)
20986      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20987      ;;
20988    *)
20989      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20990      ;;
20991    esac
20992done
20993
20994ac_aux_dir='$ac_aux_dir'
20995xsi_shell='$xsi_shell'
20996lt_shell_append='$lt_shell_append'
20997
20998# See if we are running on zsh, and set the options which allow our
20999# commands through without removal of \ escapes INIT.
21000if test -n "\${ZSH_VERSION+set}" ; then
21001   setopt NO_GLOB_SUBST
21002fi
21003
21004
21005    PACKAGE='$PACKAGE'
21006    VERSION='$VERSION'
21007    TIMESTAMP='$TIMESTAMP'
21008    RM='$RM'
21009    ofile='$ofile'
21010
21011
21012
21013
21014
21015
21016_ACEOF
21017
21018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21019
21020# Handling of arguments.
21021for ac_config_target in $ac_config_targets
21022do
21023  case $ac_config_target in
21024    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21025    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21026    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21027    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21028    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21029    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21030    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21031    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21032    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21033    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21034    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21035    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21036    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21037    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21038    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21039    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21040    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21041    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21042    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21043    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21044    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
21045    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21046    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21047    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21048    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21049    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21050
21051  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21052  esac
21053done
21054
21055
21056# If the user did not use the arguments to specify the items to instantiate,
21057# then the envvar interface is used.  Set only those that are not.
21058# We use the long form for the default assignment because of an extremely
21059# bizarre bug on SunOS 4.1.3.
21060if $ac_need_defaults; then
21061  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21062  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21063  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21064fi
21065
21066# Have a temporary directory for convenience.  Make it in the build tree
21067# simply because there is no reason against having it here, and in addition,
21068# creating and moving files from /tmp can sometimes cause problems.
21069# Hook for its removal unless debugging.
21070# Note that there is a small window in which the directory will not be cleaned:
21071# after its creation but before its name has been assigned to `$tmp'.
21072$debug ||
21073{
21074  tmp= ac_tmp=
21075  trap 'exit_status=$?
21076  : "${ac_tmp:=$tmp}"
21077  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21078' 0
21079  trap 'as_fn_exit 1' 1 2 13 15
21080}
21081# Create a (secure) tmp directory for tmp files.
21082
21083{
21084  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21085  test -d "$tmp"
21086}  ||
21087{
21088  tmp=./conf$$-$RANDOM
21089  (umask 077 && mkdir "$tmp")
21090} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21091ac_tmp=$tmp
21092
21093# Set up the scripts for CONFIG_FILES section.
21094# No need to generate them if there are no CONFIG_FILES.
21095# This happens for instance with `./config.status config.h'.
21096if test -n "$CONFIG_FILES"; then
21097
21098
21099ac_cr=`echo X | tr X '\015'`
21100# On cygwin, bash can eat \r inside `` if the user requested igncr.
21101# But we know of no other shell where ac_cr would be empty at this
21102# point, so we can use a bashism as a fallback.
21103if test "x$ac_cr" = x; then
21104  eval ac_cr=\$\'\\r\'
21105fi
21106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21108  ac_cs_awk_cr='\\r'
21109else
21110  ac_cs_awk_cr=$ac_cr
21111fi
21112
21113echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21114_ACEOF
21115
21116
21117{
21118  echo "cat >conf$$subs.awk <<_ACEOF" &&
21119  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21120  echo "_ACEOF"
21121} >conf$$subs.sh ||
21122  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21124ac_delim='%!_!# '
21125for ac_last_try in false false false false false :; do
21126  . ./conf$$subs.sh ||
21127    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21128
21129  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21130  if test $ac_delim_n = $ac_delim_num; then
21131    break
21132  elif $ac_last_try; then
21133    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21134  else
21135    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21136  fi
21137done
21138rm -f conf$$subs.sh
21139
21140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21141cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21142_ACEOF
21143sed -n '
21144h
21145s/^/S["/; s/!.*/"]=/
21146p
21147g
21148s/^[^!]*!//
21149:repl
21150t repl
21151s/'"$ac_delim"'$//
21152t delim
21153:nl
21154h
21155s/\(.\{148\}\)..*/\1/
21156t more1
21157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21158p
21159n
21160b repl
21161:more1
21162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21163p
21164g
21165s/.\{148\}//
21166t nl
21167:delim
21168h
21169s/\(.\{148\}\)..*/\1/
21170t more2
21171s/["\\]/\\&/g; s/^/"/; s/$/"/
21172p
21173b
21174:more2
21175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21176p
21177g
21178s/.\{148\}//
21179t delim
21180' <conf$$subs.awk | sed '
21181/^[^""]/{
21182  N
21183  s/\n//
21184}
21185' >>$CONFIG_STATUS || ac_write_fail=1
21186rm -f conf$$subs.awk
21187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21188_ACAWK
21189cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21190  for (key in S) S_is_set[key] = 1
21191  FS = ""
21192
21193}
21194{
21195  line = $ 0
21196  nfields = split(line, field, "@")
21197  substed = 0
21198  len = length(field[1])
21199  for (i = 2; i < nfields; i++) {
21200    key = field[i]
21201    keylen = length(key)
21202    if (S_is_set[key]) {
21203      value = S[key]
21204      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21205      len += length(value) + length(field[++i])
21206      substed = 1
21207    } else
21208      len += 1 + keylen
21209  }
21210
21211  print line
21212}
21213
21214_ACAWK
21215_ACEOF
21216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21218  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21219else
21220  cat
21221fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21222  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21223_ACEOF
21224
21225# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21227# trailing colons and then remove the whole line if VPATH becomes empty
21228# (actually we leave an empty line to preserve line numbers).
21229if test "x$srcdir" = x.; then
21230  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21231h
21232s///
21233s/^/:/
21234s/[	 ]*$/:/
21235s/:\$(srcdir):/:/g
21236s/:\${srcdir}:/:/g
21237s/:@srcdir@:/:/g
21238s/^:*//
21239s/:*$//
21240x
21241s/\(=[	 ]*\).*/\1/
21242G
21243s/\n//
21244s/^[^=]*=[	 ]*$//
21245}'
21246fi
21247
21248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21249fi # test -n "$CONFIG_FILES"
21250
21251# Set up the scripts for CONFIG_HEADERS section.
21252# No need to generate them if there are no CONFIG_HEADERS.
21253# This happens for instance with `./config.status Makefile'.
21254if test -n "$CONFIG_HEADERS"; then
21255cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21256BEGIN {
21257_ACEOF
21258
21259# Transform confdefs.h into an awk script `defines.awk', embedded as
21260# here-document in config.status, that substitutes the proper values into
21261# config.h.in to produce config.h.
21262
21263# Create a delimiter string that does not exist in confdefs.h, to ease
21264# handling of long lines.
21265ac_delim='%!_!# '
21266for ac_last_try in false false :; do
21267  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21268  if test -z "$ac_tt"; then
21269    break
21270  elif $ac_last_try; then
21271    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21272  else
21273    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21274  fi
21275done
21276
21277# For the awk script, D is an array of macro values keyed by name,
21278# likewise P contains macro parameters if any.  Preserve backslash
21279# newline sequences.
21280
21281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21282sed -n '
21283s/.\{148\}/&'"$ac_delim"'/g
21284t rset
21285:rset
21286s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21287t def
21288d
21289:def
21290s/\\$//
21291t bsnl
21292s/["\\]/\\&/g
21293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21294D["\1"]=" \3"/p
21295s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21296d
21297:bsnl
21298s/["\\]/\\&/g
21299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21300D["\1"]=" \3\\\\\\n"\\/p
21301t cont
21302s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21303t cont
21304d
21305:cont
21306n
21307s/.\{148\}/&'"$ac_delim"'/g
21308t clear
21309:clear
21310s/\\$//
21311t bsnlc
21312s/["\\]/\\&/g; s/^/"/; s/$/"/p
21313d
21314:bsnlc
21315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21316b cont
21317' <confdefs.h | sed '
21318s/'"$ac_delim"'/"\\\
21319"/g' >>$CONFIG_STATUS || ac_write_fail=1
21320
21321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21322  for (key in D) D_is_set[key] = 1
21323  FS = ""
21324}
21325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21326  line = \$ 0
21327  split(line, arg, " ")
21328  if (arg[1] == "#") {
21329    defundef = arg[2]
21330    mac1 = arg[3]
21331  } else {
21332    defundef = substr(arg[1], 2)
21333    mac1 = arg[2]
21334  }
21335  split(mac1, mac2, "(") #)
21336  macro = mac2[1]
21337  prefix = substr(line, 1, index(line, defundef) - 1)
21338  if (D_is_set[macro]) {
21339    # Preserve the white space surrounding the "#".
21340    print prefix "define", macro P[macro] D[macro]
21341    next
21342  } else {
21343    # Replace #undef with comments.  This is necessary, for example,
21344    # in the case of _POSIX_SOURCE, which is predefined and required
21345    # on some systems where configure will not decide to define it.
21346    if (defundef == "undef") {
21347      print "/*", prefix defundef, macro, "*/"
21348      next
21349    }
21350  }
21351}
21352{ print }
21353_ACAWK
21354_ACEOF
21355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21356  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21357fi # test -n "$CONFIG_HEADERS"
21358
21359
21360eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21361shift
21362for ac_tag
21363do
21364  case $ac_tag in
21365  :[FHLC]) ac_mode=$ac_tag; continue;;
21366  esac
21367  case $ac_mode$ac_tag in
21368  :[FHL]*:*);;
21369  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21370  :[FH]-) ac_tag=-:-;;
21371  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21372  esac
21373  ac_save_IFS=$IFS
21374  IFS=:
21375  set x $ac_tag
21376  IFS=$ac_save_IFS
21377  shift
21378  ac_file=$1
21379  shift
21380
21381  case $ac_mode in
21382  :L) ac_source=$1;;
21383  :[FH])
21384    ac_file_inputs=
21385    for ac_f
21386    do
21387      case $ac_f in
21388      -) ac_f="$ac_tmp/stdin";;
21389      *) # Look for the file first in the build tree, then in the source tree
21390	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21391	 # because $ac_f cannot contain `:'.
21392	 test -f "$ac_f" ||
21393	   case $ac_f in
21394	   [\\/$]*) false;;
21395	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21396	   esac ||
21397	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21398      esac
21399      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21400      as_fn_append ac_file_inputs " '$ac_f'"
21401    done
21402
21403    # Let's still pretend it is `configure' which instantiates (i.e., don't
21404    # use $as_me), people would be surprised to read:
21405    #    /* config.h.  Generated by config.status.  */
21406    configure_input='Generated from '`
21407	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21408	`' by configure.'
21409    if test x"$ac_file" != x-; then
21410      configure_input="$ac_file.  $configure_input"
21411      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21412$as_echo "$as_me: creating $ac_file" >&6;}
21413    fi
21414    # Neutralize special characters interpreted by sed in replacement strings.
21415    case $configure_input in #(
21416    *\&* | *\|* | *\\* )
21417       ac_sed_conf_input=`$as_echo "$configure_input" |
21418       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21419    *) ac_sed_conf_input=$configure_input;;
21420    esac
21421
21422    case $ac_tag in
21423    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21424      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21425    esac
21426    ;;
21427  esac
21428
21429  ac_dir=`$as_dirname -- "$ac_file" ||
21430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21431	 X"$ac_file" : 'X\(//\)[^/]' \| \
21432	 X"$ac_file" : 'X\(//\)$' \| \
21433	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21434$as_echo X"$ac_file" |
21435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21436	    s//\1/
21437	    q
21438	  }
21439	  /^X\(\/\/\)[^/].*/{
21440	    s//\1/
21441	    q
21442	  }
21443	  /^X\(\/\/\)$/{
21444	    s//\1/
21445	    q
21446	  }
21447	  /^X\(\/\).*/{
21448	    s//\1/
21449	    q
21450	  }
21451	  s/.*/./; q'`
21452  as_dir="$ac_dir"; as_fn_mkdir_p
21453  ac_builddir=.
21454
21455case "$ac_dir" in
21456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21457*)
21458  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21459  # A ".." for each directory in $ac_dir_suffix.
21460  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21461  case $ac_top_builddir_sub in
21462  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21463  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21464  esac ;;
21465esac
21466ac_abs_top_builddir=$ac_pwd
21467ac_abs_builddir=$ac_pwd$ac_dir_suffix
21468# for backward compatibility:
21469ac_top_builddir=$ac_top_build_prefix
21470
21471case $srcdir in
21472  .)  # We are building in place.
21473    ac_srcdir=.
21474    ac_top_srcdir=$ac_top_builddir_sub
21475    ac_abs_top_srcdir=$ac_pwd ;;
21476  [\\/]* | ?:[\\/]* )  # Absolute name.
21477    ac_srcdir=$srcdir$ac_dir_suffix;
21478    ac_top_srcdir=$srcdir
21479    ac_abs_top_srcdir=$srcdir ;;
21480  *) # Relative name.
21481    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21482    ac_top_srcdir=$ac_top_build_prefix$srcdir
21483    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21484esac
21485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21486
21487
21488  case $ac_mode in
21489  :F)
21490  #
21491  # CONFIG_FILE
21492  #
21493
21494  case $INSTALL in
21495  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21496  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21497  esac
21498  ac_MKDIR_P=$MKDIR_P
21499  case $MKDIR_P in
21500  [\\/$]* | ?:[\\/]* ) ;;
21501  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21502  esac
21503_ACEOF
21504
21505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21506# If the template does not know about datarootdir, expand it.
21507# FIXME: This hack should be removed a few years after 2.60.
21508ac_datarootdir_hack=; ac_datarootdir_seen=
21509ac_sed_dataroot='
21510/datarootdir/ {
21511  p
21512  q
21513}
21514/@datadir@/p
21515/@docdir@/p
21516/@infodir@/p
21517/@localedir@/p
21518/@mandir@/p'
21519case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21520*datarootdir*) ac_datarootdir_seen=yes;;
21521*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21522  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21523$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21524_ACEOF
21525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21526  ac_datarootdir_hack='
21527  s&@datadir@&$datadir&g
21528  s&@docdir@&$docdir&g
21529  s&@infodir@&$infodir&g
21530  s&@localedir@&$localedir&g
21531  s&@mandir@&$mandir&g
21532  s&\\\${datarootdir}&$datarootdir&g' ;;
21533esac
21534_ACEOF
21535
21536# Neutralize VPATH when `$srcdir' = `.'.
21537# Shell code in configure.ac might set extrasub.
21538# FIXME: do we really want to maintain this feature?
21539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21540ac_sed_extra="$ac_vpsub
21541$extrasub
21542_ACEOF
21543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21544:t
21545/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21546s|@configure_input@|$ac_sed_conf_input|;t t
21547s&@top_builddir@&$ac_top_builddir_sub&;t t
21548s&@top_build_prefix@&$ac_top_build_prefix&;t t
21549s&@srcdir@&$ac_srcdir&;t t
21550s&@abs_srcdir@&$ac_abs_srcdir&;t t
21551s&@top_srcdir@&$ac_top_srcdir&;t t
21552s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21553s&@builddir@&$ac_builddir&;t t
21554s&@abs_builddir@&$ac_abs_builddir&;t t
21555s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21556s&@INSTALL@&$ac_INSTALL&;t t
21557s&@MKDIR_P@&$ac_MKDIR_P&;t t
21558$ac_datarootdir_hack
21559"
21560eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21561  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21562
21563test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21564  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21565  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21566      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21568which seems to be undefined.  Please make sure it is defined" >&5
21569$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21570which seems to be undefined.  Please make sure it is defined" >&2;}
21571
21572  rm -f "$ac_tmp/stdin"
21573  case $ac_file in
21574  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21575  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21576  esac \
21577  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21578 ;;
21579  :H)
21580  #
21581  # CONFIG_HEADER
21582  #
21583  if test x"$ac_file" != x-; then
21584    {
21585      $as_echo "/* $configure_input  */" \
21586      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21587    } >"$ac_tmp/config.h" \
21588      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21589    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21590      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21591$as_echo "$as_me: $ac_file is unchanged" >&6;}
21592    else
21593      rm -f "$ac_file"
21594      mv "$ac_tmp/config.h" "$ac_file" \
21595	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21596    fi
21597  else
21598    $as_echo "/* $configure_input  */" \
21599      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21600      || as_fn_error $? "could not create -" "$LINENO" 5
21601  fi
21602# Compute "$ac_file"'s index in $config_headers.
21603_am_arg="$ac_file"
21604_am_stamp_count=1
21605for _am_header in $config_headers :; do
21606  case $_am_header in
21607    $_am_arg | $_am_arg:* )
21608      break ;;
21609    * )
21610      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21611  esac
21612done
21613echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21614$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21615	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21616	 X"$_am_arg" : 'X\(//\)$' \| \
21617	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21618$as_echo X"$_am_arg" |
21619    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21620	    s//\1/
21621	    q
21622	  }
21623	  /^X\(\/\/\)[^/].*/{
21624	    s//\1/
21625	    q
21626	  }
21627	  /^X\(\/\/\)$/{
21628	    s//\1/
21629	    q
21630	  }
21631	  /^X\(\/\).*/{
21632	    s//\1/
21633	    q
21634	  }
21635	  s/.*/./; q'`/stamp-h$_am_stamp_count
21636 ;;
21637
21638  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21639$as_echo "$as_me: executing $ac_file commands" >&6;}
21640 ;;
21641  esac
21642
21643
21644  case $ac_file$ac_mode in
21645    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21646  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21647  # are listed without --file.  Let's play safe and only enable the eval
21648  # if we detect the quoting.
21649  case $CONFIG_FILES in
21650  *\'*) eval set x "$CONFIG_FILES" ;;
21651  *)   set x $CONFIG_FILES ;;
21652  esac
21653  shift
21654  for mf
21655  do
21656    # Strip MF so we end up with the name of the file.
21657    mf=`echo "$mf" | sed -e 's/:.*$//'`
21658    # Check whether this is an Automake generated Makefile or not.
21659    # We used to match only the files named 'Makefile.in', but
21660    # some people rename them; so instead we look at the file content.
21661    # Grep'ing the first line is not enough: some people post-process
21662    # each Makefile.in and add a new line on top of each file to say so.
21663    # Grep'ing the whole file is not good either: AIX grep has a line
21664    # limit of 2048, but all sed's we know have understand at least 4000.
21665    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21666      dirpart=`$as_dirname -- "$mf" ||
21667$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21668	 X"$mf" : 'X\(//\)[^/]' \| \
21669	 X"$mf" : 'X\(//\)$' \| \
21670	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21671$as_echo X"$mf" |
21672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21673	    s//\1/
21674	    q
21675	  }
21676	  /^X\(\/\/\)[^/].*/{
21677	    s//\1/
21678	    q
21679	  }
21680	  /^X\(\/\/\)$/{
21681	    s//\1/
21682	    q
21683	  }
21684	  /^X\(\/\).*/{
21685	    s//\1/
21686	    q
21687	  }
21688	  s/.*/./; q'`
21689    else
21690      continue
21691    fi
21692    # Extract the definition of DEPDIR, am__include, and am__quote
21693    # from the Makefile without running 'make'.
21694    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21695    test -z "$DEPDIR" && continue
21696    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21697    test -z "am__include" && continue
21698    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21699    # Find all dependency output files, they are included files with
21700    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21701    # simplest approach to changing $(DEPDIR) to its actual value in the
21702    # expansion.
21703    for file in `sed -n "
21704      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21705	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21706      # Make sure the directory exists.
21707      test -f "$dirpart/$file" && continue
21708      fdir=`$as_dirname -- "$file" ||
21709$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21710	 X"$file" : 'X\(//\)[^/]' \| \
21711	 X"$file" : 'X\(//\)$' \| \
21712	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21713$as_echo X"$file" |
21714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21715	    s//\1/
21716	    q
21717	  }
21718	  /^X\(\/\/\)[^/].*/{
21719	    s//\1/
21720	    q
21721	  }
21722	  /^X\(\/\/\)$/{
21723	    s//\1/
21724	    q
21725	  }
21726	  /^X\(\/\).*/{
21727	    s//\1/
21728	    q
21729	  }
21730	  s/.*/./; q'`
21731      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21732      # echo "creating $dirpart/$file"
21733      echo '# dummy' > "$dirpart/$file"
21734    done
21735  done
21736}
21737 ;;
21738    "libtool":C)
21739
21740    # See if we are running on zsh, and set the options which allow our
21741    # commands through without removal of \ escapes.
21742    if test -n "${ZSH_VERSION+set}" ; then
21743      setopt NO_GLOB_SUBST
21744    fi
21745
21746    cfgfile="${ofile}T"
21747    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21748    $RM "$cfgfile"
21749
21750    cat <<_LT_EOF >> "$cfgfile"
21751#! $SHELL
21752
21753# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21754# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21755# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21756# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21757#
21758#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21759#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21760#                 Foundation, Inc.
21761#   Written by Gordon Matzigkeit, 1996
21762#
21763#   This file is part of GNU Libtool.
21764#
21765# GNU Libtool is free software; you can redistribute it and/or
21766# modify it under the terms of the GNU General Public License as
21767# published by the Free Software Foundation; either version 2 of
21768# the License, or (at your option) any later version.
21769#
21770# As a special exception to the GNU General Public License,
21771# if you distribute this file as part of a program or library that
21772# is built using GNU Libtool, you may include this file under the
21773# same distribution terms that you use for the rest of that program.
21774#
21775# GNU Libtool is distributed in the hope that it will be useful,
21776# but WITHOUT ANY WARRANTY; without even the implied warranty of
21777# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21778# GNU General Public License for more details.
21779#
21780# You should have received a copy of the GNU General Public License
21781# along with GNU Libtool; see the file COPYING.  If not, a copy
21782# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21783# obtained by writing to the Free Software Foundation, Inc.,
21784# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21785
21786
21787# The names of the tagged configurations supported by this script.
21788available_tags="CXX "
21789
21790# ### BEGIN LIBTOOL CONFIG
21791
21792# Which release of libtool.m4 was used?
21793macro_version=$macro_version
21794macro_revision=$macro_revision
21795
21796# Assembler program.
21797AS=$lt_AS
21798
21799# DLL creation program.
21800DLLTOOL=$lt_DLLTOOL
21801
21802# Object dumper program.
21803OBJDUMP=$lt_OBJDUMP
21804
21805# Whether or not to build shared libraries.
21806build_libtool_libs=$enable_shared
21807
21808# Whether or not to build static libraries.
21809build_old_libs=$enable_static
21810
21811# What type of objects to build.
21812pic_mode=$pic_mode
21813
21814# Whether or not to optimize for fast installation.
21815fast_install=$enable_fast_install
21816
21817# Shell to use when invoking shell scripts.
21818SHELL=$lt_SHELL
21819
21820# An echo program that protects backslashes.
21821ECHO=$lt_ECHO
21822
21823# The PATH separator for the build system.
21824PATH_SEPARATOR=$lt_PATH_SEPARATOR
21825
21826# The host system.
21827host_alias=$host_alias
21828host=$host
21829host_os=$host_os
21830
21831# The build system.
21832build_alias=$build_alias
21833build=$build
21834build_os=$build_os
21835
21836# A sed program that does not truncate output.
21837SED=$lt_SED
21838
21839# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21840Xsed="\$SED -e 1s/^X//"
21841
21842# A grep program that handles long lines.
21843GREP=$lt_GREP
21844
21845# An ERE matcher.
21846EGREP=$lt_EGREP
21847
21848# A literal string matcher.
21849FGREP=$lt_FGREP
21850
21851# A BSD- or MS-compatible name lister.
21852NM=$lt_NM
21853
21854# Whether we need soft or hard links.
21855LN_S=$lt_LN_S
21856
21857# What is the maximum length of a command?
21858max_cmd_len=$max_cmd_len
21859
21860# Object file suffix (normally "o").
21861objext=$ac_objext
21862
21863# Executable file suffix (normally "").
21864exeext=$exeext
21865
21866# whether the shell understands "unset".
21867lt_unset=$lt_unset
21868
21869# turn spaces into newlines.
21870SP2NL=$lt_lt_SP2NL
21871
21872# turn newlines into spaces.
21873NL2SP=$lt_lt_NL2SP
21874
21875# convert \$build file names to \$host format.
21876to_host_file_cmd=$lt_cv_to_host_file_cmd
21877
21878# convert \$build files to toolchain format.
21879to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21880
21881# Method to check whether dependent libraries are shared objects.
21882deplibs_check_method=$lt_deplibs_check_method
21883
21884# Command to use when deplibs_check_method = "file_magic".
21885file_magic_cmd=$lt_file_magic_cmd
21886
21887# How to find potential files when deplibs_check_method = "file_magic".
21888file_magic_glob=$lt_file_magic_glob
21889
21890# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21891want_nocaseglob=$lt_want_nocaseglob
21892
21893# Command to associate shared and link libraries.
21894sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21895
21896# The archiver.
21897AR=$lt_AR
21898
21899# Flags to create an archive.
21900AR_FLAGS=$lt_AR_FLAGS
21901
21902# How to feed a file listing to the archiver.
21903archiver_list_spec=$lt_archiver_list_spec
21904
21905# A symbol stripping program.
21906STRIP=$lt_STRIP
21907
21908# Commands used to install an old-style archive.
21909RANLIB=$lt_RANLIB
21910old_postinstall_cmds=$lt_old_postinstall_cmds
21911old_postuninstall_cmds=$lt_old_postuninstall_cmds
21912
21913# Whether to use a lock for old archive extraction.
21914lock_old_archive_extraction=$lock_old_archive_extraction
21915
21916# A C compiler.
21917LTCC=$lt_CC
21918
21919# LTCC compiler flags.
21920LTCFLAGS=$lt_CFLAGS
21921
21922# Take the output of nm and produce a listing of raw symbols and C names.
21923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21924
21925# Transform the output of nm in a proper C declaration.
21926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21927
21928# Transform the output of nm in a C name address pair.
21929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21930
21931# Transform the output of nm in a C name address pair when lib prefix is needed.
21932global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21933
21934# Specify filename containing input files for \$NM.
21935nm_file_list_spec=$lt_nm_file_list_spec
21936
21937# The root where to search for dependent libraries,and in which our libraries should be installed.
21938lt_sysroot=$lt_sysroot
21939
21940# The name of the directory that contains temporary libtool files.
21941objdir=$objdir
21942
21943# Used to examine libraries when file_magic_cmd begins with "file".
21944MAGIC_CMD=$MAGIC_CMD
21945
21946# Must we lock files when doing compilation?
21947need_locks=$lt_need_locks
21948
21949# Manifest tool.
21950MANIFEST_TOOL=$lt_MANIFEST_TOOL
21951
21952# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21953DSYMUTIL=$lt_DSYMUTIL
21954
21955# Tool to change global to local symbols on Mac OS X.
21956NMEDIT=$lt_NMEDIT
21957
21958# Tool to manipulate fat objects and archives on Mac OS X.
21959LIPO=$lt_LIPO
21960
21961# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21962OTOOL=$lt_OTOOL
21963
21964# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21965OTOOL64=$lt_OTOOL64
21966
21967# Old archive suffix (normally "a").
21968libext=$libext
21969
21970# Shared library suffix (normally ".so").
21971shrext_cmds=$lt_shrext_cmds
21972
21973# The commands to extract the exported symbol list from a shared archive.
21974extract_expsyms_cmds=$lt_extract_expsyms_cmds
21975
21976# Variables whose values should be saved in libtool wrapper scripts and
21977# restored at link time.
21978variables_saved_for_relink=$lt_variables_saved_for_relink
21979
21980# Do we need the "lib" prefix for modules?
21981need_lib_prefix=$need_lib_prefix
21982
21983# Do we need a version for libraries?
21984need_version=$need_version
21985
21986# Library versioning type.
21987version_type=$version_type
21988
21989# Shared library runtime path variable.
21990runpath_var=$runpath_var
21991
21992# Shared library path variable.
21993shlibpath_var=$shlibpath_var
21994
21995# Is shlibpath searched before the hard-coded library search path?
21996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21997
21998# Format of library name prefix.
21999libname_spec=$lt_libname_spec
22000
22001# List of archive names.  First name is the real one, the rest are links.
22002# The last name is the one that the linker finds with -lNAME
22003library_names_spec=$lt_library_names_spec
22004
22005# The coded name of the library, if different from the real name.
22006soname_spec=$lt_soname_spec
22007
22008# Permission mode override for installation of shared libraries.
22009install_override_mode=$lt_install_override_mode
22010
22011# Command to use after installation of a shared archive.
22012postinstall_cmds=$lt_postinstall_cmds
22013
22014# Command to use after uninstallation of a shared archive.
22015postuninstall_cmds=$lt_postuninstall_cmds
22016
22017# Commands used to finish a libtool library installation in a directory.
22018finish_cmds=$lt_finish_cmds
22019
22020# As "finish_cmds", except a single script fragment to be evaled but
22021# not shown.
22022finish_eval=$lt_finish_eval
22023
22024# Whether we should hardcode library paths into libraries.
22025hardcode_into_libs=$hardcode_into_libs
22026
22027# Compile-time system search path for libraries.
22028sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22029
22030# Run-time system search path for libraries.
22031sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22032
22033# Whether dlopen is supported.
22034dlopen_support=$enable_dlopen
22035
22036# Whether dlopen of programs is supported.
22037dlopen_self=$enable_dlopen_self
22038
22039# Whether dlopen of statically linked programs is supported.
22040dlopen_self_static=$enable_dlopen_self_static
22041
22042# Commands to strip libraries.
22043old_striplib=$lt_old_striplib
22044striplib=$lt_striplib
22045
22046
22047# The linker used to build libraries.
22048LD=$lt_LD
22049
22050# How to create reloadable object files.
22051reload_flag=$lt_reload_flag
22052reload_cmds=$lt_reload_cmds
22053
22054# Commands used to build an old-style archive.
22055old_archive_cmds=$lt_old_archive_cmds
22056
22057# A language specific compiler.
22058CC=$lt_compiler
22059
22060# Is the compiler the GNU compiler?
22061with_gcc=$GCC
22062
22063# Compiler flag to turn off builtin functions.
22064no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22065
22066# Additional compiler flags for building library objects.
22067pic_flag=$lt_lt_prog_compiler_pic
22068
22069# How to pass a linker flag through the compiler.
22070wl=$lt_lt_prog_compiler_wl
22071
22072# Compiler flag to prevent dynamic linking.
22073link_static_flag=$lt_lt_prog_compiler_static
22074
22075# Does compiler simultaneously support -c and -o options?
22076compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22077
22078# Whether or not to add -lc for building shared libraries.
22079build_libtool_need_lc=$archive_cmds_need_lc
22080
22081# Whether or not to disallow shared libs when runtime libs are static.
22082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22083
22084# Compiler flag to allow reflexive dlopens.
22085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22086
22087# Compiler flag to generate shared objects directly from archives.
22088whole_archive_flag_spec=$lt_whole_archive_flag_spec
22089
22090# Whether the compiler copes with passing no objects directly.
22091compiler_needs_object=$lt_compiler_needs_object
22092
22093# Create an old-style archive from a shared archive.
22094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22095
22096# Create a temporary old-style archive to link instead of a shared archive.
22097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22098
22099# Commands used to build a shared archive.
22100archive_cmds=$lt_archive_cmds
22101archive_expsym_cmds=$lt_archive_expsym_cmds
22102
22103# Commands used to build a loadable module if different from building
22104# a shared archive.
22105module_cmds=$lt_module_cmds
22106module_expsym_cmds=$lt_module_expsym_cmds
22107
22108# Whether we are building with GNU ld or not.
22109with_gnu_ld=$lt_with_gnu_ld
22110
22111# Flag that allows shared libraries with undefined symbols to be built.
22112allow_undefined_flag=$lt_allow_undefined_flag
22113
22114# Flag that enforces no undefined symbols.
22115no_undefined_flag=$lt_no_undefined_flag
22116
22117# Flag to hardcode \$libdir into a binary during linking.
22118# This must work even if \$libdir does not exist
22119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22120
22121# Whether we need a single "-rpath" flag with a separated argument.
22122hardcode_libdir_separator=$lt_hardcode_libdir_separator
22123
22124# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22125# DIR into the resulting binary.
22126hardcode_direct=$hardcode_direct
22127
22128# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22129# DIR into the resulting binary and the resulting library dependency is
22130# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22131# library is relocated.
22132hardcode_direct_absolute=$hardcode_direct_absolute
22133
22134# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22135# into the resulting binary.
22136hardcode_minus_L=$hardcode_minus_L
22137
22138# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22139# into the resulting binary.
22140hardcode_shlibpath_var=$hardcode_shlibpath_var
22141
22142# Set to "yes" if building a shared library automatically hardcodes DIR
22143# into the library and all subsequent libraries and executables linked
22144# against it.
22145hardcode_automatic=$hardcode_automatic
22146
22147# Set to yes if linker adds runtime paths of dependent libraries
22148# to runtime path list.
22149inherit_rpath=$inherit_rpath
22150
22151# Whether libtool must link a program against all its dependency libraries.
22152link_all_deplibs=$link_all_deplibs
22153
22154# Set to "yes" if exported symbols are required.
22155always_export_symbols=$always_export_symbols
22156
22157# The commands to list exported symbols.
22158export_symbols_cmds=$lt_export_symbols_cmds
22159
22160# Symbols that should not be listed in the preloaded symbols.
22161exclude_expsyms=$lt_exclude_expsyms
22162
22163# Symbols that must always be exported.
22164include_expsyms=$lt_include_expsyms
22165
22166# Commands necessary for linking programs (against libraries) with templates.
22167prelink_cmds=$lt_prelink_cmds
22168
22169# Commands necessary for finishing linking programs.
22170postlink_cmds=$lt_postlink_cmds
22171
22172# Specify filename containing input files.
22173file_list_spec=$lt_file_list_spec
22174
22175# How to hardcode a shared library path into an executable.
22176hardcode_action=$hardcode_action
22177
22178# The directories searched by this compiler when creating a shared library.
22179compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22180
22181# Dependencies to place before and after the objects being linked to
22182# create a shared library.
22183predep_objects=$lt_predep_objects
22184postdep_objects=$lt_postdep_objects
22185predeps=$lt_predeps
22186postdeps=$lt_postdeps
22187
22188# The library search path used internally by the compiler when linking
22189# a shared library.
22190compiler_lib_search_path=$lt_compiler_lib_search_path
22191
22192# ### END LIBTOOL CONFIG
22193
22194_LT_EOF
22195
22196  case $host_os in
22197  aix3*)
22198    cat <<\_LT_EOF >> "$cfgfile"
22199# AIX sometimes has problems with the GCC collect2 program.  For some
22200# reason, if we set the COLLECT_NAMES environment variable, the problems
22201# vanish in a puff of smoke.
22202if test "X${COLLECT_NAMES+set}" != Xset; then
22203  COLLECT_NAMES=
22204  export COLLECT_NAMES
22205fi
22206_LT_EOF
22207    ;;
22208  esac
22209
22210
22211ltmain="$ac_aux_dir/ltmain.sh"
22212
22213
22214  # We use sed instead of cat because bash on DJGPP gets confused if
22215  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22216  # text mode, it properly converts lines to CR/LF.  This bash problem
22217  # is reportedly fixed, but why not run on old versions too?
22218  sed '$q' "$ltmain" >> "$cfgfile" \
22219     || (rm -f "$cfgfile"; exit 1)
22220
22221  if test x"$xsi_shell" = xyes; then
22222  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22223func_dirname ()\
22224{\
22225\    case ${1} in\
22226\      */*) func_dirname_result="${1%/*}${2}" ;;\
22227\      *  ) func_dirname_result="${3}" ;;\
22228\    esac\
22229} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22230  && mv -f "$cfgfile.tmp" "$cfgfile" \
22231    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22232test 0 -eq $? || _lt_function_replace_fail=:
22233
22234
22235  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22236func_basename ()\
22237{\
22238\    func_basename_result="${1##*/}"\
22239} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22240  && mv -f "$cfgfile.tmp" "$cfgfile" \
22241    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22242test 0 -eq $? || _lt_function_replace_fail=:
22243
22244
22245  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22246func_dirname_and_basename ()\
22247{\
22248\    case ${1} in\
22249\      */*) func_dirname_result="${1%/*}${2}" ;;\
22250\      *  ) func_dirname_result="${3}" ;;\
22251\    esac\
22252\    func_basename_result="${1##*/}"\
22253} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22254  && mv -f "$cfgfile.tmp" "$cfgfile" \
22255    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22256test 0 -eq $? || _lt_function_replace_fail=:
22257
22258
22259  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22260func_stripname ()\
22261{\
22262\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22263\    # positional parameters, so assign one to ordinary parameter first.\
22264\    func_stripname_result=${3}\
22265\    func_stripname_result=${func_stripname_result#"${1}"}\
22266\    func_stripname_result=${func_stripname_result%"${2}"}\
22267} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22268  && mv -f "$cfgfile.tmp" "$cfgfile" \
22269    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22270test 0 -eq $? || _lt_function_replace_fail=:
22271
22272
22273  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22274func_split_long_opt ()\
22275{\
22276\    func_split_long_opt_name=${1%%=*}\
22277\    func_split_long_opt_arg=${1#*=}\
22278} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22279  && mv -f "$cfgfile.tmp" "$cfgfile" \
22280    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22281test 0 -eq $? || _lt_function_replace_fail=:
22282
22283
22284  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22285func_split_short_opt ()\
22286{\
22287\    func_split_short_opt_arg=${1#??}\
22288\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22289} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22290  && mv -f "$cfgfile.tmp" "$cfgfile" \
22291    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22292test 0 -eq $? || _lt_function_replace_fail=:
22293
22294
22295  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22296func_lo2o ()\
22297{\
22298\    case ${1} in\
22299\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22300\      *)    func_lo2o_result=${1} ;;\
22301\    esac\
22302} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22303  && mv -f "$cfgfile.tmp" "$cfgfile" \
22304    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22305test 0 -eq $? || _lt_function_replace_fail=:
22306
22307
22308  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22309func_xform ()\
22310{\
22311    func_xform_result=${1%.*}.lo\
22312} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22313  && mv -f "$cfgfile.tmp" "$cfgfile" \
22314    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22315test 0 -eq $? || _lt_function_replace_fail=:
22316
22317
22318  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22319func_arith ()\
22320{\
22321    func_arith_result=$(( $* ))\
22322} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22323  && mv -f "$cfgfile.tmp" "$cfgfile" \
22324    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22325test 0 -eq $? || _lt_function_replace_fail=:
22326
22327
22328  sed -e '/^func_len ()$/,/^} # func_len /c\
22329func_len ()\
22330{\
22331    func_len_result=${#1}\
22332} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22333  && mv -f "$cfgfile.tmp" "$cfgfile" \
22334    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22335test 0 -eq $? || _lt_function_replace_fail=:
22336
22337fi
22338
22339if test x"$lt_shell_append" = xyes; then
22340  sed -e '/^func_append ()$/,/^} # func_append /c\
22341func_append ()\
22342{\
22343    eval "${1}+=\\${2}"\
22344} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22345  && mv -f "$cfgfile.tmp" "$cfgfile" \
22346    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22347test 0 -eq $? || _lt_function_replace_fail=:
22348
22349
22350  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22351func_append_quoted ()\
22352{\
22353\    func_quote_for_eval "${2}"\
22354\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22355} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22356  && mv -f "$cfgfile.tmp" "$cfgfile" \
22357    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22358test 0 -eq $? || _lt_function_replace_fail=:
22359
22360
22361  # Save a `func_append' function call where possible by direct use of '+='
22362  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22363    && mv -f "$cfgfile.tmp" "$cfgfile" \
22364      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22365  test 0 -eq $? || _lt_function_replace_fail=:
22366else
22367  # Save a `func_append' function call even when '+=' is not available
22368  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22369    && mv -f "$cfgfile.tmp" "$cfgfile" \
22370      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22371  test 0 -eq $? || _lt_function_replace_fail=:
22372fi
22373
22374if test x"$_lt_function_replace_fail" = x":"; then
22375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22376$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22377fi
22378
22379
22380   mv -f "$cfgfile" "$ofile" ||
22381    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22382  chmod +x "$ofile"
22383
22384
22385    cat <<_LT_EOF >> "$ofile"
22386
22387# ### BEGIN LIBTOOL TAG CONFIG: CXX
22388
22389# The linker used to build libraries.
22390LD=$lt_LD_CXX
22391
22392# How to create reloadable object files.
22393reload_flag=$lt_reload_flag_CXX
22394reload_cmds=$lt_reload_cmds_CXX
22395
22396# Commands used to build an old-style archive.
22397old_archive_cmds=$lt_old_archive_cmds_CXX
22398
22399# A language specific compiler.
22400CC=$lt_compiler_CXX
22401
22402# Is the compiler the GNU compiler?
22403with_gcc=$GCC_CXX
22404
22405# Compiler flag to turn off builtin functions.
22406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22407
22408# Additional compiler flags for building library objects.
22409pic_flag=$lt_lt_prog_compiler_pic_CXX
22410
22411# How to pass a linker flag through the compiler.
22412wl=$lt_lt_prog_compiler_wl_CXX
22413
22414# Compiler flag to prevent dynamic linking.
22415link_static_flag=$lt_lt_prog_compiler_static_CXX
22416
22417# Does compiler simultaneously support -c and -o options?
22418compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22419
22420# Whether or not to add -lc for building shared libraries.
22421build_libtool_need_lc=$archive_cmds_need_lc_CXX
22422
22423# Whether or not to disallow shared libs when runtime libs are static.
22424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22425
22426# Compiler flag to allow reflexive dlopens.
22427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22428
22429# Compiler flag to generate shared objects directly from archives.
22430whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22431
22432# Whether the compiler copes with passing no objects directly.
22433compiler_needs_object=$lt_compiler_needs_object_CXX
22434
22435# Create an old-style archive from a shared archive.
22436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22437
22438# Create a temporary old-style archive to link instead of a shared archive.
22439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22440
22441# Commands used to build a shared archive.
22442archive_cmds=$lt_archive_cmds_CXX
22443archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22444
22445# Commands used to build a loadable module if different from building
22446# a shared archive.
22447module_cmds=$lt_module_cmds_CXX
22448module_expsym_cmds=$lt_module_expsym_cmds_CXX
22449
22450# Whether we are building with GNU ld or not.
22451with_gnu_ld=$lt_with_gnu_ld_CXX
22452
22453# Flag that allows shared libraries with undefined symbols to be built.
22454allow_undefined_flag=$lt_allow_undefined_flag_CXX
22455
22456# Flag that enforces no undefined symbols.
22457no_undefined_flag=$lt_no_undefined_flag_CXX
22458
22459# Flag to hardcode \$libdir into a binary during linking.
22460# This must work even if \$libdir does not exist
22461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22462
22463# Whether we need a single "-rpath" flag with a separated argument.
22464hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22465
22466# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22467# DIR into the resulting binary.
22468hardcode_direct=$hardcode_direct_CXX
22469
22470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22471# DIR into the resulting binary and the resulting library dependency is
22472# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22473# library is relocated.
22474hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22475
22476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22477# into the resulting binary.
22478hardcode_minus_L=$hardcode_minus_L_CXX
22479
22480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22481# into the resulting binary.
22482hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22483
22484# Set to "yes" if building a shared library automatically hardcodes DIR
22485# into the library and all subsequent libraries and executables linked
22486# against it.
22487hardcode_automatic=$hardcode_automatic_CXX
22488
22489# Set to yes if linker adds runtime paths of dependent libraries
22490# to runtime path list.
22491inherit_rpath=$inherit_rpath_CXX
22492
22493# Whether libtool must link a program against all its dependency libraries.
22494link_all_deplibs=$link_all_deplibs_CXX
22495
22496# Set to "yes" if exported symbols are required.
22497always_export_symbols=$always_export_symbols_CXX
22498
22499# The commands to list exported symbols.
22500export_symbols_cmds=$lt_export_symbols_cmds_CXX
22501
22502# Symbols that should not be listed in the preloaded symbols.
22503exclude_expsyms=$lt_exclude_expsyms_CXX
22504
22505# Symbols that must always be exported.
22506include_expsyms=$lt_include_expsyms_CXX
22507
22508# Commands necessary for linking programs (against libraries) with templates.
22509prelink_cmds=$lt_prelink_cmds_CXX
22510
22511# Commands necessary for finishing linking programs.
22512postlink_cmds=$lt_postlink_cmds_CXX
22513
22514# Specify filename containing input files.
22515file_list_spec=$lt_file_list_spec_CXX
22516
22517# How to hardcode a shared library path into an executable.
22518hardcode_action=$hardcode_action_CXX
22519
22520# The directories searched by this compiler when creating a shared library.
22521compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22522
22523# Dependencies to place before and after the objects being linked to
22524# create a shared library.
22525predep_objects=$lt_predep_objects_CXX
22526postdep_objects=$lt_postdep_objects_CXX
22527predeps=$lt_predeps_CXX
22528postdeps=$lt_postdeps_CXX
22529
22530# The library search path used internally by the compiler when linking
22531# a shared library.
22532compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22533
22534# ### END LIBTOOL TAG CONFIG: CXX
22535_LT_EOF
22536
22537 ;;
22538
22539  esac
22540done # for ac_tag
22541
22542
22543as_fn_exit 0
22544_ACEOF
22545ac_clean_files=$ac_clean_files_save
22546
22547test $ac_write_fail = 0 ||
22548  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22549
22550
22551# configure is writing to config.log, and then calls config.status.
22552# config.status does its own redirection, appending to config.log.
22553# Unfortunately, on DOS this fails, as config.log is still kept open
22554# by configure, so config.status won't be able to write to it; its
22555# output is simply discarded.  So we exec the FD to /dev/null,
22556# effectively closing config.log, so it can be properly (re)opened and
22557# appended to by config.status.  When coming back to configure, we
22558# need to make the FD available again.
22559if test "$no_create" != yes; then
22560  ac_cs_success=:
22561  ac_config_status_args=
22562  test "$silent" = yes &&
22563    ac_config_status_args="$ac_config_status_args --quiet"
22564  exec 5>/dev/null
22565  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22566  exec 5>>config.log
22567  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22568  # would make configure fail if this is the last instruction.
22569  $ac_cs_success || as_fn_exit 1
22570fi
22571if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22572  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22573$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22574fi
22575
22576
22577
22578echo ""
22579echo "Libtiff is now configured for ${host}"
22580echo ""
22581echo "  Installation directory:             ${prefix}"
22582echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
22583echo "  C compiler:                         ${CC} ${CFLAGS}"
22584echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
22585echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
22586echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
22587echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
22588echo "  Use win32 IO:                       ${win32_io_ok}"
22589echo ""
22590echo " Support for internal codecs:"
22591echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
22592echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
22593echo "  LZW algorithm:                      ${HAVE_LZW}"
22594echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
22595echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
22596echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22597echo ""
22598echo " Support for external codecs:"
22599echo "  ZLIB support:                       ${HAVE_ZLIB}"
22600echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
22601echo "  JPEG support:                       ${HAVE_JPEG}"
22602echo "  Old JPEG support:                   ${HAVE_OJPEG}"
22603echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
22604echo "  ISO JBIG support:                   ${HAVE_JBIG}"
22605echo "  LZMA2 support:                      ${HAVE_LZMA}"
22606echo ""
22607echo "  C++ support:                        ${HAVE_CXX}"
22608echo ""
22609echo "  OpenGL support:                     ${HAVE_OPENGL}"
22610echo ""
22611
22612